Skip to content

fix(runtime)!: the flow trigger door refuses a params that is not a JSON object - #25974

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-er748c
Oct 26, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-er748c

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #25821

Clause-②: no (narrowing)
Metadata-protocol: none

Contract review owed: the (narrowing) arm. The trigger doors refuse request shapes they used to dispatch, a params that is a string, number, boolean, array or null. Nothing is widened, and no packages/spec/** path is touched. The seat's claim (6409382263) carries Clause-②: no; the line above is the measured value on this diff, declared as the dispatch order asked.

What changed

buildAutomationContext (packages/runtime/src/domains/automation.ts) read params with params && typeof params === 'object' ? { ...params } : {}. A string became an empty bag and the flow ran with no inputs. An array was spread into an index-keyed bag. A falsy value (null, 0, false, "") took the flat-body branch, which forwarded the body's other top-level keys as params instead.

The builder now refuses a params that is not a JSON object, before anything is dispatched: 400 VALIDATION_FAILED, one fields[] entry { field: 'params', code: 'invalid_type' }, message Invalid trigger body — params expected an object (a map of names to values), received a string (the received type varies). It is thrown as the validation failure both dispatcher exits and the endpoint executor already answer as 400.

The check is one function, objectValueFailure(field, value), hoisted out of the resume door's #9416 value-shape loop. The resume door now calls it for inputs, variables and output and the trigger door calls it for params, so the two doors of one engine ask the same question in the same words. The resume answers are byte-identical (its suites pass unchanged). The resume arm's local jsonTypeOf stays local, as its note asks; only this one refusal is shared.

undefined counts as absent, as on the resume door, so a body with no params key still takes the flat-body branch. An explicit null is refused, as the resume door refuses {"inputs":null}.

Doors measured

Door Shares the builder? Now
POST /api/v1/automation/:name/trigger yes, through respondToFlowTrigger refuses
POST /api/v1/automation/trigger/:name (legacy, client.automation.trigger()) yes, same function refuses
A declared type: 'flow' API endpoint (endpoint-executor.ts executeFlow) yes refuses
POST /api/v1/actions/:object/:action on a type: 'flow' action no, it reads reqBody.params itself (domains/actions.ts) unchanged, see Acceptance notes
Flow-to-flow (subflow, map nodes) no, they call engine.execute with a built context not a wire door
MCP no MCP tool starts a flow by name; verify calls execute in process not applicable

Order on the REST doors and the endpoint: an unknown flow still answers 404 and a caller the flow refuses still answers 403, before the body is judged. The refusal is before execute(), so no run starts and no run row is written.

Evidence

Live, fresh showcase boot (pnpm dev -- --fresh) on this branch at 7f0c45b4, signed in as the seeded admin:

  • POST /api/v1/automation/showcase_notify_owner/trigger and POST /api/v1/automation/trigger/showcase_notify_owner, each with {"params":"oops"}, {"params":[1,2]}, {"params":null,"ownerId":"u1"} and {"params":42}: all eight answer 400 VALIDATION_FAILED naming params with the received type.
  • Control {"params":{}} on both routes still dispatches (400 FLOW_FAILED, "Unknown variable: ownerId", the flow's own answer with no inputs).
  • GET /api/v1/automation/showcase_notify_owner/runs afterwards lists 2 runs, the two controls. The eight refused requests left no run row.
  • POST /api/v1/apps/showcase/inquiries/purge (a declared type: 'flow' endpoint) with {"params":"oops"}: 400 VALIDATION_FAILED naming params.

Tests (packages/runtime/src/domains/automation-trigger-params-shape.test.ts, new, 42 cases):

  • Red first: with automation.ts restored from base 9ca36b16, 29 failed / 13 passed (every refusal case red, every preservation case green).
  • Green on the fix: 42/42, with the neighbouring suites (resume value-shape, resume envelope, trigger route status, endpoint executor, caller param keys, run locale, anonymous gate): 8 files, 215 tests passed.
  • Ablation (scripts/ablation-replace.mjs, if (paramsFailure) { to if (paramsFailure && false) {, anchor 1 to 0, blob moved, restored to the HEAD blob with git diff HEAD empty): 29 failed / 13 passed.
  • pnpm --filter @objectstack/runtime typecheck && pnpm --filter @objectstack/runtime test at 7f0c45b4: lock VERDICT command-exit 0, 448 test files passed, 7224 tests passed, 19 skipped.

Gates at 7f0c45b4: node scripts/pm/dispatch-gates.mjs --commands derived 69 families; all 69 exit 0 (three needed the full build or an unshallow fetch first and were rerun after it). --ran reconciliation: 69 derived, 69 run, 0 NOT-MEASURED. eslint --no-inline-config packages/runtime: exit 0. Full pnpm turbo run build: 121/121 tasks.

Dogfood battery (the (narrowing) arm), full, at 7f0c45b4: pnpm --filter @objectstack/dogfood test under the lock, VERDICT command-exit 0, Test Files 296 passed / 3 skipped (299), Tests 2523 passed / 18 skipped (2541), no failures.

origin/main moved after the merge (10 commits, none touching domains/automation.ts, endpoint-executor.ts or http-dispatcher.ts; git merge-tree clean), so this head is not re-merged; CI runs on the merge ref.

Acceptance notes

Two sibling doors drop a non-object value the same way. Neither shares the builder, so neither is touched here; both are reported to the seat with their live readings.

  • POST /api/v1/actions/:object/:action reads params with the same params && typeof params === 'object' guard (domains/actions.ts). On the fresh boot, POST /api/v1/actions/showcase_task/showcase_bulk_reassign with {"params":"oops"} and with {"params":[1,2]} each answered 200 and started a paused run, exactly as {"params":{}} did.
  • The trigger door's body itself is not judged: ctxBody = body && typeof body === 'object' ? body : {}. A JSON string body "oops" dispatched showcase_notify_owner with an empty bag (400 FLOW_FAILED, "Unknown variable: ownerId"), and an array body [1,2] forwarded its indices as params. The resume door refuses a non-object body; the trigger ruling covers params only.

Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Oct 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/runtime, touching 4 documentable anchor(s).

6 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/api/error-catalog.mdx (via invalid_type (literal, a string literal in handleAutomationRequest; a string literal in objectValueFailure; a string literal on a changed line))
  • content/docs/api/error-handling-server.mdx (via invalid_type (literal, a string literal in handleAutomationRequest; a string literal in objectValueFailure; a string literal on a changed line))
  • content/docs/automation/flows.mdx (via invalid_type (literal, a string literal in handleAutomationRequest; a string literal in objectValueFailure; a string literal on a changed line))
  • content/docs/deployment/cli.mdx (via invalid_type (literal, a string literal in handleAutomationRequest; a string literal in objectValueFailure; a string literal on a changed line))
  • content/docs/permissions/system-context.mdx (via handleAutomationRequest (symbol, a top-level function))
  • content/docs/protocol/objectui/concept.mdx (via invalid_type (literal, a string literal in handleAutomationRequest; a string literal in objectValueFailure; a string literal on a changed line))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via invalid_type (literal, a string literal in handleAutomationRequest; a string literal in objectValueFailure; a string literal on a changed line))
  • content/docs/releases/v17/17-6.mdx (via invalid_type (literal, a string literal in handleAutomationRequest; a string literal in objectValueFailure; a string literal on a changed line))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 54 of 206 client-bound route-ledger rows — the other 152 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 152: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 55 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 97 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 27 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json cdd4eea93811522cca145a0f24858def51443671 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 3823beb0dfabe1b5508653d832e1789f4a93e697 — the merge of head 7f0c45b48d2f72e049c3ce4039c0552d0021ed43 into base cdd4eea93811522cca145a0f24858def51443671, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 3823beb0dfabe1b5508653d832e1789f4a93e697 && git checkout 3823beb0dfabe1b5508653d832e1789f4a93e697
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin cdd4eea93811522cca145a0f24858def51443671 7f0c45b48d2f72e049c3ce4039c0552d0021ed43 && git checkout -B drift-repro cdd4eea93811522cca145a0f24858def51443671 && git merge --no-ff 7f0c45b48d2f72e049c3ce4039c0552d0021ed43

node scripts/docs-audit/affected-docs.mjs --json cdd4eea93811522cca145a0f24858def51443671

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs cdd4eea93811522cca145a0f24858def51443671 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet objectstack-fleet Bot added the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Oct 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7f0c45b48d2f72e049c3ce4039c0552d0021ed43
Local-runs: none
Scope: packages/runtime/src/domains/automation.ts, packages/runtime/src/domains/automation-trigger-params-shape.test.ts + packages/runtime/src/endpoint-executor.ts (the type: 'flow' arm, executeFlow and endpointErrorAnswer), packages/runtime/src/http-dispatcher.ts (handleAutomation, errorFromThrown, the dispatch() catch), packages/runtime/src/domains/actions.ts (the action door's own params read, for flag ③-c), packages/types/src/validation-failure.ts and packages/types/src/thrown-http-error.ts (the 400 VALIDATION_FAILED + details.fields derivation), packages/rest/src/error-response.ts (the transport's resolver call), packages/spec/src/api/plugin-rest-api.zod.ts (the trigger route's declared request surface), .changeset/25821-trigger-params-object.md (prose face, read for ②)

Inputs: card #25821 body and its three comments (triage 6399814705, claim 6409382263, os-dev-report 6410469534); PR #25974 body, file list and the net diff origin/main...origin/pr-25974 (merge-base 073f08b3, three files: the changeset, automation.ts +61/-13, the new test +200); the check-runs on the head. Read-only: the diff was read with git diff and git show against fetched refs, nothing built or run.

① Derived judgments

CI on the head is still in progress at review time. 50 check-runs: 25 success, 15 skipped, 10 in_progress (Test Core 1/8 to 8/8, Build Core, Type Check · workspace), 0 failed. Concluded and green: Check Changeset, Governed Surface Queue Guard, Dogfood Regression Gate, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Check PR Size, Check Documentation Links, Flag docs affected, the three card/branch/single-writer guards. The judgments below are read from the code; the in-progress families are the dev's reported local runs until they conclude (runtime typecheck + test 448 files / 7224 passed, dogfood 2523 passed, 69/69 dispatch-gate families exit 0).

a. Which params shapes are now refused, at which doors — right. buildAutomationContext (automation.ts line 156) now calls objectValueFailure('params', ctxBody.params) before any read. The function returns a failure for every value that is not undefined and not a non-null, non-array object: a string, number, boolean, array and null are refused; undefined (key absent) is admitted; an object, {} included, is admitted. Every door that reaches the builder gets the refusal, and I confirmed the caller set by git grep buildAutomationContext on the head: exactly two call sites, respondToFlowTrigger (automation.ts line 2172, reached by both POST /:name/trigger at line 3024 and the legacy POST /trigger/:name at line 2821 through the same function) and executeFlow in endpoint-executor.ts line 579 (every declared type: 'flow' endpoint). No other package imports the builder; the remaining grep hits are comments and CHANGELOG prose. The PR body's door table is accurate: the action door (actions.ts line 690, reqBody.params && typeof reqBody.params === 'object' ? reqBody.params : {}) does not share the builder and is unchanged; flow-to-flow nodes and MCP never pass through it.

b. Refusing null matches the triage — right. The triage's conditional ("and null, if the resume door admits it") resolves against the resume door's own loop on main (automation.ts line 3358 on main): if (v === null || typeof v !== 'object' || Array.isArray(v)) pushes invalid_type, so the resume door refuses {"inputs":null}; null is therefore in the refused class, not the empty-bag class. Absent params (undefined) keeps the empty bag: baseParams is {} and the flat-body branch still runs, so {}, {"ownerId":"u1"} and no body at all build the same bag as before. One consequence the PR declares and I confirm is a real accept-set narrowing beyond the card's literal reproduction: {"params":null,"ownerId":"u1"} used to take the flat-body branch (!ctxBody.params was true) and run with { ownerId: 'u1' }; it is now refused. Same for 0, false, "". The changeset's Before/Now/Fix names this ("replaced by the body's other keys"), so the narrowing is declared where it is published.

c. Accepted shapes are byte-identical — right. baseParams = ctxBody.params !== undefined ? { ...ctxBody.params } : {} and if (ctxBody.params === undefined) replace params && typeof params === 'object' and !ctxBody.params. After the refusal above, ctxBody.params is either undefined or a plain non-array object, and on that domain the two spellings agree: an object (truthy) is spread and skips the flat branch in both versions; undefined takes {} and the flat branch in both. The callerParamKeys, recordId/alias seeding and identity envelope below the hunk are untouched. The test's six preservation cases on each route plus the endpoint case pin this direction.

d. The resume door is byte-identical after the hoist — right. On main the loop computed received with the arm-local jsonTypeOf: v === null ? 'null' : Array.isArray(v) ? 'an array' : 'a ' + typeof v. The hoisted objectValueFailure computes received as value === null ? 'null' : Array.isArray(value) ? 'an array' : 'a ' + typeof value and the message expected an object (a map of names to values), received ... with the same words; the pushed object is { field, code: 'invalid_type', message } in the same key order. The loop's admission (undefined continues) and refusal predicate are the same truth table. The ordering around the loop (after the closed-set unknown-key refusal, before resume()) is untouched; branchLabel still uses the local jsonTypeOf, so that formatter stays local as its note asks. The ordering within the resume door and the outer (body) refusal are not in the diff. Judgment: no observable change on the resume door.

e. The refusal body is the ruled one, before dispatch, no run row — right. validationFailure(message, [entry]) (@objectstack/types) builds an Error with name: 'ValidationError', code: 'VALIDATION_FAILED', fields: [entry]. On the REST doors the throw leaves handleAutomationRequest and dispatch() (the dispatch() catch rethrows anything that is not a permission denial, http-dispatcher.ts line 3170) to the transport, whose resolveThrownHttpError (thrown-http-error.ts line 208, called from rest/src/error-response.ts line 954 and dispatcher-plugin.ts line 739) maps a validation failure with no .status to VALIDATION_FAILED_STATUS (400), code: 'VALIDATION_FAILED' and details.fields verbatim. This is the identical path the resume door's #9416 refusal already rides, so the two doors answer the same envelope. On the declared endpoint the throw is caught by executeEndpointTarget (line 648) and answered through endpointErrorAnswer, the same resolver, which the test asserts as 400 / error.code === 'VALIDATION_FAILED' / details.fields[0] = { field: 'params', code: 'invalid_type' }. The throw is before automationService.execute(...) at both call sites, so no run starts and no run row exists; the test pins execute not called on every refused shape at all three doors. Order on the doors is preserved: flowIsUnknown (404) and flowStartRefusal (403) run before the builder at both respondToFlowTrigger and executeFlow, so an unknown flow and a refused caller keep their answers before the body is judged, as the changeset states. The top-level message names params in backticks and the received type.

f. Public surface. No published schema moves: the spec's trigger route (plugin-rest-api.zod.ts line 1428) declares no requestSchema and describes the body as { recordId?, objectName?, params? } with unknown top-level keys forwarded, which remains true. No packages/spec/** path is touched, honouring the claim's constraint. The client's automation.trigger(name, payload) is unaffected for every typed in-repo caller (all pass objects); a repo-wide grep for a trigger or automation caller sending a non-object params found none. The narrowing is of the runtime's accept set only.

g. Test shape. The new suite drives the real HttpDispatcher and the real executeEndpointTarget, pins both directions (9 shapes x 2 routes + the null-with-flat-keys case x 2 + 9 shapes on an endpoint refused; 6 bodies x 2 routes + 1 endpoint body accepted), and the PR records red-first (29 failed / 13 passed on base) and an ablation that restores the same count. Right.

② Semver level

.changeset/25821-trigger-params-object.md: '@objectstack/runtime': patch, title fix(runtime)!: ..., line-initial Clause-②: no (narrowing) — ..., line-initial Metadata-protocol: none (...), one adr-0087: not-required (no-migration-prescription) marker, a BREAKING banner with Before/Now/Fix. The PR body carries the same two lines (Clause-②: no (narrowing), Metadata-protocol: none). Measured against the diff: the only published change is a runtime accept-set narrowing at the trigger doors; nothing a metadata author writes moves (no spec key, authorable value, stored shape or export changes), so Metadata-protocol: none is the right kind and under AGENTS.md's level rule and check-changeset-no-major.mjs ruling A (none takes patch; a non-protocol narrowing ships patch and keeps its BREAKING banner and ADR-0087 disposition) patch is the right level. The two cross-checks the gate refuses (added under no; narrowed without the (narrowing) arm) do not arise. The shape matches the two precedent changesets the report cites (25572, 25491: patch, no (narrowing), none, not-required (no-migration-prescription)). Check Changeset concluded success on this head. The (narrowing) arm is what makes this contract review owed; Clause-②: no with the arm is the measured value, correctly departing from the claim's bare no (flag ③-a). Right.

③ Boundary flags

  • open_questions: [] in the os-dev-report. Nothing to answer.
  • a. Deviation: Clause-② declared no (narrowing) where the claim wrote no. Answered: the measured value is correct (② above); the claim's line was pre-measurement, and the dispatch asked for the measured value. Accepted.
  • b. Deviation: origin/main moved after the pre-PR merge, head not re-merged. Answered: at review time origin/main (cdd4eea9) is 14 commits past the merge-base 073f08b3; git log 073f08b3..origin/main over domains/automation.ts, endpoint-executor.ts, http-dispatcher.ts and domains/actions.ts is empty, and git merge-tree --write-tree origin/main origin/pr-25974 is clean. CI runs on the merge ref. Accepted; no re-merge needed for this review.
  • c. Out-of-scope class-a finding, the action door. Confirmed in the cited code: actions.ts line 690 keeps reqBody.params && typeof reqBody.params === 'object' ? reqBody.params : {}, the guard this PR removed from the trigger builder, so POST /api/v1/actions/:object/:action on a type: 'flow' action still drops a non-object params silently (the report's live reading: 200, paused run). Correctly left out: the automation trigger door silently drops a non-object params (string or array) and dispatches the flow with an empty params bag #25821 ruling and the claim's file surface name the trigger door and the doors sharing its builder; the action door reads params itself. Escalated to the seat: file it as its own card (or dispatch it directly, per the owner's standing instruction on card handling), citing objectValueFailure as the ready check; the dev's dedupe strings are in the report.
  • d. Out-of-scope class-a finding, a non-object trigger body. Confirmed in the cited code: ctxBody = body && typeof body === 'object' ? body : {} (automation.ts line 157) admits an array body (its indices are forwarded as params by the flat-body branch) and replaces a string body with {}; the resume door refuses a non-object body as (body) invalid_type. Correctly left out: the ruling covers params only. Escalated to the seat the same way as c.
  • e. The claim's ⛔ No packages/spec/** constraint. Held: the file list is three paths, none under packages/spec.
  • f. CI in progress. The 10 in-progress families (Test Core x8, Build Core, Type Check · workspace) are the derived gates for the test and type surface this PR touches. This record judges the code; the seat lands only once they conclude green, per the Tier S rule (every check green beside the PASS record). No concluded check failed.

Implemented-by: claude/project-thread-er748c
Reviewed-by: session_01R1q2xdtYgU6FKrZ7LgjPCC

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot removed the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Oct 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对 · ACCEPT · domain:server seat 1 · os-project-manager · session_01R1q2xdtYgU6FKrZ7LgjPCC · 2026-10-26T07:28Z

Head 7f0c45b48d, report 6410469534, claim 6409382263, contract review 6410594343 (PASS, narrowing face).

item reading
Shape draft, base main, Fixes #25821, Clause-②: no (narrowing: …) and Metadata-protocol: none line-initial in body and changeset, patch with the BREAKING banner. The claim said Clause-②: no; the dev measured a narrowing and declared it, accepted.
Files (3, +284/−13) runtime/src/domains/automation.ts (one shape check objectValueFailure, hoisted from the resume door's #9416 loop and shared by both doors), one new suite, one changeset. No packages/spec/**, not governed (check-governed-merges --pr 25974), 297 changed lines.
Fix a non-object params (string, number, boolean, array, null) on both trigger spellings and every declared type: 'flow' endpoint answers 400 VALIDATION_FAILED with fields[0] = { params, invalid_type }, before execute(), no run row; absent params keeps the empty bag; 404/403 still come first. Refusing null matches the resume door on main.
Evidence red first 29/42 on base; ablation 29 red; runtime 7224 tests + typecheck green; 69/69 derived gates exit 0; live boot shows 400 and no run row (report).
Carried the two class-a findings (the action door's own params guard; a non-object trigger body) are out of this card and carried by the seat.
Landing ready + auto-merge through the relay once every check on this head is green or an expected skip.

Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

automation trigger door silently drops a non-object params (string or array) and dispatches the flow with an empty params bag

2 participants