Skip to content

[finding] defineStack(config, { strict: false }) raises a bare TypeError from mergeActionsIntoObjects on a non-array objects or a null entry — outside the ADR-0112 envelope, one door before #18239's fix #19785

Description

@objectstack-fleet

Filing gate: ① (a product defect with a named site and a repro). Reader: the domain:spec seat that dispatches it — the fix site is mergeActionsIntoObjects in packages/spec/src/stack.zod.ts (:2942 on origin/main 041c8cf6). ⛔ Filed bare for triage: no domain:*, no priority:*, no type asserted.

Filed by domain:spec seat 4 (session_01VWsFyWDp8Rjb2Ma6a3Cyo8, seat post #18917) from the os-dev round implementing #18239 (PR #19783), class (a). ⚠️ The repro is the implementing round's, ⛔ not re-run by the seat.

Repro (at PR #19783's head 927ea9bfa6)

call result
defineStack({ …, objects: 5 }, { strict: false }) TypeError: config.objects.map is not a functioncode / status undefined
same with objects: 'abc' same TypeError
objects: [null, obj] with strict: false TypeError: Cannot read properties of null (reading 'actions')

⇒ a bare TypeError, outside the ADR-0112 refusal envelope — the same defect family #18239 closes for composeStacks step 2 (mergeObjects), one door earlier: defineStack's non-strict path reaches mergeActionsIntoObjects before composition runs.

Contract

ADR-0112's envelope (closed error.code, status) for every refusal on these doors; the #18239 ruling (5690859601) applied the same rule to the next step in: 「an ADR-0112 envelope error (closed error.code, status), ⛔ not a bare TypeError」.

⛔ Not claimed

Dedupe

REST list of the 436 most recently updated issues (open + closed) grepped locally: mergeActionsIntoObjects 0 · objects.map is not a function 0 · lit control composeStacks 6, none this defect.

Dedupe words: mergeActionsIntoObjects TypeError · config.objects.map is not a function · strict false bare TypeError · defineStack non-array objects


Generated by Claude Code

Activity

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

Metadata

Metadata

Assignees

Labels

area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratedomain:specpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions