Repository navigation
Description
Derived from #9889 (PR #10024) as the explicitly-undecided half. Filed unassigned — this is a ruling request, not work in progress. The parity floor already shipped and is correct under either answer; this card is only about what happens on top of it.
What is settled
#9889 restored the invariant: validateNodeInputSchemas is now called by both attempt paths (execute() and executeWithoutRetry), so a flow whose node config violates its own declared inputSchema is refused on every attempt instead of being refused once and then run for real on retries. That defect — a retry strategy acting as a way past authoring-time validation — is closed.
What is not settled
The guard's verdict is a pure function of the flow definition: its signature is validateNodeInputSchemas(flow: FlowParsed, _variables: Map<string, unknown>) with the variables parameter deliberately unused, and it reads node.inputSchema against the static node.config. Re-running it on attempt 2 cannot produce a different answer than attempt 1.
So under the shipped parity floor, a strategy: 'retry' flow with a mis-declared inputSchema:
- burns its entire retry budget — including configured backoff delays — re-deriving a certainty;
- writes
maxRetries + 1identical failed run-log rows, each carrying the same guard message, which is what a run-history reader has to page through to find the one fact that matters.
The two options
A — keep the parity floor as shipped. Every attempt dispatches and is refused; retry accounting is untouched; run history shows N identical refusals. Simplest, already landed, zero further risk.
B — classify a definition-level guard failure as non-retryable, so execute() never hands off to retryExecution for it at all. Refuse once, skip the retry loop.
B is not free, and that is why it is here rather than in the PR:
- It changes retry accounting — an operator watching retry counters or run-log volume sees different numbers for the same flow after the change.
- It likely changes the result classification. Today the refusal carries
status: 'failed'and no ADR-0112codeon either path, because automation: bothtriggerroutes still answer HTTP 200 wrapping an inner {success:false} — the same #3962 residue #8684 closed on resume #9378's classification givescodeto the never-dispatched exits (FLOW_DISABLED,FLOW_NO_START_NODE) andstatus: 'failed'to dispatched-and-failed exits. A non-retryable definition-level refusal arguably becomes a never-dispatched exit and would deserve its owncode— which is a public envelope addition, not an internal tidy-up.
The dev's recommendation (#10024, recorded verbatim in intent)
B as the end state — re-running a check whose verdict cannot change wastes the retry budget and misleads run-history readers with N identical failed rows — while noting that it changes retry accounting and result classification, so it wants a ruling, and that the shipped parity floor is correct and safe under either answer.
PM note
Not adjudicated in the domain:services seat. B touches retry accounting and would add an ADR-0112 code to a public envelope; both sit above seat discretion. Recording it here so the choice is made once, deliberately, rather than drifting in on some later card.
Refs: #9889 (the parity card) · PR #10024 (the landed floor) · #9378 (the exit classification B would move this refusal into) · #9704 / #9510 / #9414 / #9415 (the execute/executeWithoutRetry drift family)
Activity
os-zhuang commentedon Aug 19, 2026
Decision-inbox duty (triage seat, session
session_014qTKTqjme5Fp5BH9iRmy6t): card is correctly in the inbox (needs-user-decision+domain:services, ruling request derived from #9889 with the parity floor already shipped and safe under either answer). Backfilling the standard facet block the body lacks.<!-- os-decision-facets -->
triggerroutes still answer HTTP 200 wrapping an inner {success:false} — the same #3962 residue #8684 closed on resume #9378 already classifies never-dispatched exits with their own ADR-0112code; a definition-level refusal IS a never-dispatched exit in substance, and A leaves it misclassified as dispatched-and-failed N times over. But B's coherence gain requires thecodeaddition, which is a public envelope extension.codeis the machine-readable answer.codehalf changes retry accounting while leaving the refusal uncodeable, the worst of both.Options: A — keep the parity floor as shipped (N refusals, unchanged accounting). B — classify definition-level guard failure as non-retryable + give it its own ADR-0112
codeas a never-dispatched exit (the dev's recommendation).Recommendation: B, taken whole (non-retryable +
codein one change), on axes ① and ③ — but it is envelope surface, so the human floor decides; if deferred, A costs nothing and the card can hold on a "first operator report of retry-budget burn" condition. Confidence gap: this analysis has not measured whether any consumer already keys on the current N-identical-rows shape (e.g. a retry-count alert), which is what B's accounting change would silently move.Generated by Claude Code
os-zhuang commentedon Aug 20, 2026
Maintainer ruling recorded (2026-08-20, live decision-inbox session with the triage seat, session
session_01PjAP6vbcsg2yMtvySPv1Qo)Ruled: B as the end state — a definition-level input-schema refusal is non-retryable. Provenance: maintainer accepted the batch, verbatim: 「其他接受你的建议。」
execute()skipsretryExecutionfor it; the refusal becomes a never-dispatched exit and receives its own ADR-0112codeper the #9378 classification (public envelope addition — Clause-②: yes, contract-review tierclaude-fable-5). The shipped #9889 parity floor stays as the safety net underneath. Retry accounting and run-log volume change for affected flows; the changeset states it plainly.State transition in the same stroke:
needs-user-decision→pm:queue.Generated by Claude Code
feat(spec): register FLOW_INPUT_SCHEMA_INVALID — the definition-level…
os-zhuang commentedon Aug 26, 2026
Contract half status + two work items for this card's services-half dispatch (spec seat R8,
session_012xGvxcwPRTJfA7RfjXEYA4):#11504 is delivered as draft PR #12611 (ACCEPTed, heading to the merge queue on CI green). What it fixes for this card: the code name is final —
FLOW_INPUT_SCHEMA_INVALID— registered inERROR_CODE_LEDGER['@objectstack/runtime']and inAutomationResult.code, with never-dispatched semantics (nostatus), 422 transport mapping, and non-retryability all recorded as contract text. Theflow-dispatch-status.tsFlowRefusalCoderow was measured as needed by no gate and deliberately left to THIS card's half, per the recorded split — it now transcribes spec-recorded inputs rather than minting anything.Two docs sites for the implementing dispatch to carry (found via the drift check on PR #12611; deliberately NOT edited there because today no producer stamps the code — adding the rows before the engine behaviour lands would be docs-side declared≠enforced):
content/docs/automation/flows.mdx~:1383 — the trigger-refusal table (409 FLOW_DISABLED/422 FLOW_NO_START_NODE) gains a422 FLOW_INPUT_SCHEMA_INVALIDrow when the sweep starts emitting it.content/docs/api/client-sdk.mdx~:720-740 — the never-dispatched enumeration and theerr.codeunion comment gain the new member at the same time.This card unblocks when PR #12611 merges (the unlock scan re-verifies on the merged ref as usual).
Generated by Claude Code
os-zhuang commentedon Aug 27, 2026
Unblocked (spec seat R8, session
session_012xGvxcwPRTJfA7RfjXEYA4) — release double-check done on the merged ref, not the webhook:FLOW_INPUT_SCHEMA_INVALIDis onorigin/mainin bothpackages/spec/src/contracts/automation-service.ts(union member) andpackages/spec/src/api/error-code-ledger.zod.ts(ledger row), verified bygit grepatmain(merge commitf90e82024).pm:blocked→pm:queue.needs:contract-reviewstays per the 2026-08-24 disposition — the services half still carries a Clause-② content limb (the invertedinput-schema-retry-parity.test.ts:98/:128assertions and theFlowRefusalCodetranscription row).content/docs/automation/flows.mdx~:1383 refusal-table row andcontent/docs/api/client-sdk.mdx~:720-740 enumeration — to land WITH the engine behaviour, not before.Reader: the
domain:servicesexecution seat's queue scan — this card is that lane's to dispatch.Generated by Claude Code
feat(spec): register FLOW_INPUT_SCHEMA_INVALID — the definition-level…
feat(service-automation): definition-level input-schema refusal is no…
feat(pm): H53 — a contract-review carrier hung on a card with no clai…
feat(pm): H51 + H53 — the two contract-review carrier states no sweep…
fix(spec): the error-code waiver reasons and the auth-feature registr…
test(spec): the first api/ file group's test titles state each cited …