You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
control-flow: validateControlFlow throws an exported error carrying the region container's path and node id, so a reader can locate the fault without parsing the sentence #29719
Filing gate: ② an out-of-scope finding of the in-flight card #29558 (claim 6593246940, amendment 6593285300), routed here by triage's route ruling 6593312043 ("a domain:spec card first, not a cross-domain PR"). ⛔ Not a claim. No grade: triage sets it (the ruling notes 「协议新增定 p1」 for a new protocol export).
Carries the spec half of #29558; #29558 keeps the lint half (reading the new member) and gains Blocked-by: this card.
What happens
validateControlFlow (packages/spec/src/automation/control-flow.zod.ts, on origin/main1c1a5d40) throws a plain Error whose only location is its sentence: `${where}: invalid region — …`, `${where}: …` (where = graph.scope → slot.label), and `parallel '${node.id}': a parallel block needs at least 2 branches` with no enclosing scope at all.
So the flow-region-shape-invalid lint rule (packages/lint/src/validate-flow-region-shape.ts) can anchor its finding only on the whole flow. Locating the container inside lint would mean parsing that sentence against collectFlowGraphs' scope labels: a second spelling of the judge, and it cannot locate the nested parallel case at all (pinned in packages/metadata-protocol/src/protocol.draft-publish-verdict.test.ts). Measured by the #29558 dev (amendment 6593285300).
Wanted
validateControlFlow throws an exported Error subclass that carries the faulty container's path inside the flow (the same spelling as collectFlowGraphs' FlowGraph.path, for example nodes.1.config.try.nodes.0) and its node id.
The message stays byte for byte the same, so the engine log and every pinned sentence hold.
One judge, one spelling: no second validation path beside the existing one.
Declarations expected: Clause-②: yes (a new public export), spec minor; the generated artifacts a new export moves (api surface, export origins, declaration map) regenerated.
Tests
A red-first pin per throw site (invalid region, region analysis error, a parallel with fewer than 2 branches, including the nested case) asserting instanceof, path and the node id, plus the unchanged message.
Reader: domain:spec. Consumer: #29558 (domain:server, lint reads err.path when present, else the flow stays the anchor).
Claim: PM loop round 4
Session: session_01WGufzfgvGexKn9vLHsy89K
Account: os-support-ai
Branch: the card thread's own claude/project-thread-* branch, named in the dev's hand-back and restated in a later claim (a measured platform exception to claude/issue-29719-…)
Worktree: objectstack-issue-29719
Domain: domain:spec
Seat: domain:spec#3
File surface: packages/spec/src/automation/control-flow.zod.ts (validateControlFlow throw sites and the new exported FlowRegionShapeError), its tests, the api-surface / export-origin / declaration-map artifacts a new export moves, .changeset/29719-*.md. ⛔ Not packages/lint/** (#29558's half).
Container & model: S–M, mode:thread, model: TIER_DEFAULT build; CONTRACT_REVIEW_TIER review owed (seat-run, isolated subagent), effort: xhigh (p1)
Clause-②: yes (widening)
Metadata-protocol: none
Responsibility: n/a — not a defect card (the spec half of #29558, per route ruling 6593312043)
Thread-read: 6594281149
Premise: holds. On origin/mainvalidateControlFlow (control-flow.zod.ts:645) throws plain Errors at :651, :657 and :665, carrying the location only in the sentence.
Serial constraints cleared: none; no open claim or PR read here touches control-flow.zod.ts. Name: FlowRegionShapeError, the seat's call on precedent (ListViewGroupQueryError, MigrationFloorError), under the maintainer's veto window.
Claim: PM loop round 4
Session: session_01WGufzfgvGexKn9vLHsy89K
Account: os-support-ai
Branch: claude/project-thread-ee3j2b (the card thread's own branch, reported by the dev; a measured platform exception to claude/issue-29719-…). This restates the seat's earlier claim with the branch named.
Worktree: objectstack-issue-29719
Domain: domain:spec
Seat: domain:spec#3
File surface: packages/spec/src/automation/control-flow.zod.ts (validateControlFlow throw sites and the new exported FlowRegionShapeError), its tests, the api-surface / export-origin / declaration-map artifacts a new export moves, .changeset/29719-*.md. ⛔ Not packages/lint/** (#29558's half).
Container & model: S–M, mode:thread, model: TIER_DEFAULT build; CONTRACT_REVIEW_TIER review owed (seat-run, isolated subagent), effort: xhigh (p1)
Clause-②: yes (widening)
Metadata-protocol: none
Responsibility: n/a — not a defect card (the spec half of #29558, per route ruling 6593312043)
Thread-read: 6594908365
Premise: holds. On origin/mainvalidateControlFlow (control-flow.zod.ts:645) throws plain Errors at :651, :657 and :665, carrying the location only in the sentence.
Serial constraints cleared: none; no open claim or PR read here touches control-flow.zod.ts. Name: FlowRegionShapeError, the seat's call on precedent (ListViewGroupQueryError, MigrationFloorError), under the maintainer's veto window.
{
"issue": 29719,
"status": "done",
"branch": "claude/project-thread-ee3j2b",
"pr": "https://github.com/objectstack-ai/objectstack/pull/29789",
"head": "78d8ed02eeeeb32b7a5a71199d4cc2ddeb8b2a1e",
"session": "session_01WGufzj9yXiuW9h8YrpyLMy",
"premise_still_valid": true,
"summary": "validateControlFlow (packages/spec/src/automation/control-flow.zod.ts) throws the new exported FlowRegionShapeError (extends Error; readonly path: readonly (string|number)[] and nodeId: string; name set; no code/status) at all three throw sites: parallel with <2 branches (:651), invalid region (:657), region analysis error (:665). path = FlowGraph.path + ['nodes', i], i taken from the RAW list read back through graph.path (identity), so a dropped non-record member does not renumber the container. Messages byte-identical (probe old vs new over 6 refused flows: 6/6). Measured: findRegionEntry's 'malformed control-flow region' (:532) is a separate run-time judge (service-automation dag-traversal.ts:761 runRegion, bare region, no flow context); not on validateControlFlow's path, left a plain Error. Changeset: @objectstack/spec patch, not the order's assumed minor: AGENTS.md Post-Task step 3 grades Metadata-protocol none at patch, and check-changeset-no-major refuses none beside minor (control run).",
"tests": "head 78d8ed02, os-verify-lock: spec test Test Files 803 passed (803), Tests 23805 passed | 1 todo; spec typecheck exit 0; metadata-protocol test Test Files 310 passed | 4 skipped (314), Tests 22292 passed | 26 skipped (draft-publish-verdict pinned sentence holds); lock VERDICT command-exit 0. Red first: control-flow.zod.ts from origin/main -> Tests 5 failed | 51 passed (56), VERDICT command-exit 1; restored via git checkout HEAD --, blob == HEAD, git diff HEAD empty. Ablation (ablation-replace.mjs, anchor 1->0, blob 0ac7eeaa->370278a2): raw.indexOf -> graph.nodes.indexOf: Tests 1 failed | 55 passed; restored blob == HEAD. Spec test:repo not run locally (CI Test Core).",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 80 derived at 78d8ed02 (5 paths vs merge base 3eeb81d1). Serial pass 77 exit 0, 3 exit 3 (teardown fixture commit, dual-build-cjs-loads + lean-entry-closure dist). After git fetch origin 621a4876 and full turbo build (118/118, VERDICT command-exit 0): all 3 exit 0. dispatch-gates --ran: 80 derived, 80 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. check:generated: 2 of 14 stale (api-surface, export-origins) -> --fix -> 14/14 fresh (declaration-map fresh throughout). check-changeset-no-major --event (PR body): exit 0, LEVEL AXIS none at patch; control with spec minor: exit 1 (none-minor). CI check-runs: in_progress at report time.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0 — GitHub reads were gh api REST GETs (issue #29719 + comments, comments 6593312043 and 6593285300)",
"api_writes": "2 relay writes as objectstack-fleet[bot]: pr_create (#29789, 11694 bytes read back identical, no assignees, no labels), comment (this report on #29719). Plus 1 git push of the thread branch. No assignee, reviewer or label written.",
"writes": "git push x1; relay pr_create x1; relay comment x1",
"deviations": [
"Changeset graded @objectstack/spec patch, not the order's PM-assumed minor (AGENTS.md step 3 + check-changeset-no-major none-minor control).",
"FlowRegionShapeError does not mirror ListViewGroupQueryError's closed `reason` or ADR-0112 code/status: the card asks for path + node id only, and a declared .status would overrule runtime flowDefinitionRefusal's 400 classification.",
"PR opened without assignees and without a review request (os-dev rule 2 over the session's assignee step); the seat hands the PR over.",
"Worktree ../objectstack-issue-29719 kept for a patch round."
],
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": []
}
Landed · PR #29789 merged as eb05ea2f · 2026-11-03T05:37Z
validateControlFlow now throws FlowRegionShapeError (exported from @objectstack/spec/automation), carrying the faulting container's path and nodeId. The refusal sentences and the accept set are unchanged. Contract review 6595881129 PASS, ACCEPT 6596046598.
#29558 (lint reads err.path when present) is unblocked by this landing. Removing pm:dispatched and pm:blocking here.
Activity
objectstack-fleet commentedon Nov 3, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: none
Triage: first-touch audit · p1 ·
domain:spec·pm:queue·pm:blocking· 2026-11-03T02:56Z⛔ Not a claim.
validateControlFlowthrows an exportedErrorsubclass carrying the container's path and node id. The message stays byte for byte the same, with one judge and one spelling.FlowRegionShapeError, with precedent inListViewGroupQueryErrorandMigrationFloorError) is the spec seat's call under the veto window.Blocked-by:this card (its 02:41Z comment), hencepm:blocking.Generated by Claude Code
objectstack-fleet commentedon Nov 3, 2026
domain:spec#3 · os-support-ai · session_01WGufzfgvGexKn9vLHsy89K
Claim: PM loop round 4
Session:
session_01WGufzfgvGexKn9vLHsy89KAccount:
os-support-aiBranch: the card thread's own
claude/project-thread-*branch, named in the dev's hand-back and restated in a later claim (a measured platform exception toclaude/issue-29719-…)Worktree:
objectstack-issue-29719Domain:
domain:specSeat:
domain:spec#3File surface:
packages/spec/src/automation/control-flow.zod.ts(validateControlFlowthrow sites and the new exportedFlowRegionShapeError), its tests, the api-surface / export-origin / declaration-map artifacts a new export moves,.changeset/29719-*.md. ⛔ Notpackages/lint/**(#29558's half).Container & model:
S–M,mode:thread,model: TIER_DEFAULT build; CONTRACT_REVIEW_TIER review owed (seat-run, isolated subagent),effort: xhigh(p1)Clause-②: yes (widening)
Metadata-protocol: none
Responsibility:
n/a — not a defect card(the spec half of #29558, per route ruling 6593312043)Thread-read: 6594281149
Premise: holds. On
origin/mainvalidateControlFlow(control-flow.zod.ts:645) throws plainErrors at :651, :657 and :665, carrying the location only in the sentence.Serial constraints cleared: none; no open claim or PR read here touches
control-flow.zod.ts. Name:FlowRegionShapeError, the seat's call on precedent (ListViewGroupQueryError,MigrationFloorError), under the maintainer's veto window.objectstack-fleet commentedon Nov 3, 2026
domain:spec#3 · os-support-ai · session_01WGufzfgvGexKn9vLHsy89K
Claim: PM loop round 4
Session:
session_01WGufzfgvGexKn9vLHsy89KAccount:
os-support-aiBranch:
claude/project-thread-ee3j2b(the card thread's own branch, reported by the dev; a measured platform exception toclaude/issue-29719-…). This restates the seat's earlier claim with the branch named.Worktree:
objectstack-issue-29719Domain:
domain:specSeat:
domain:spec#3File surface:
packages/spec/src/automation/control-flow.zod.ts(validateControlFlowthrow sites and the new exportedFlowRegionShapeError), its tests, the api-surface / export-origin / declaration-map artifacts a new export moves,.changeset/29719-*.md. ⛔ Notpackages/lint/**(#29558's half).Container & model:
S–M,mode:thread,model: TIER_DEFAULT build; CONTRACT_REVIEW_TIER review owed (seat-run, isolated subagent),effort: xhigh(p1)Clause-②: yes (widening)
Metadata-protocol: none
Responsibility:
n/a — not a defect card(the spec half of #29558, per route ruling 6593312043)Thread-read: 6594908365
Premise: holds. On
origin/mainvalidateControlFlow(control-flow.zod.ts:645) throws plainErrors at :651, :657 and :665, carrying the location only in the sentence.Serial constraints cleared: none; no open claim or PR read here touches
control-flow.zod.ts. Name:FlowRegionShapeError, the seat's call on precedent (ListViewGroupQueryError,MigrationFloorError), under the maintainer's veto window.objectstack-fleet commentedon Nov 3, 2026
domain:spec#3 · os-support-ai · session_01WGufzj9yXiuW9h8YrpyLMy
os-dev-report
{ "issue": 29719, "status": "done", "branch": "claude/project-thread-ee3j2b", "pr": "https://github.com/objectstack-ai/objectstack/pull/29789", "head": "78d8ed02eeeeb32b7a5a71199d4cc2ddeb8b2a1e", "session": "session_01WGufzj9yXiuW9h8YrpyLMy", "premise_still_valid": true, "summary": "validateControlFlow (packages/spec/src/automation/control-flow.zod.ts) throws the new exported FlowRegionShapeError (extends Error; readonly path: readonly (string|number)[] and nodeId: string; name set; no code/status) at all three throw sites: parallel with <2 branches (:651), invalid region (:657), region analysis error (:665). path = FlowGraph.path + ['nodes', i], i taken from the RAW list read back through graph.path (identity), so a dropped non-record member does not renumber the container. Messages byte-identical (probe old vs new over 6 refused flows: 6/6). Measured: findRegionEntry's 'malformed control-flow region' (:532) is a separate run-time judge (service-automation dag-traversal.ts:761 runRegion, bare region, no flow context); not on validateControlFlow's path, left a plain Error. Changeset: @objectstack/spec patch, not the order's assumed minor: AGENTS.md Post-Task step 3 grades Metadata-protocol none at patch, and check-changeset-no-major refuses none beside minor (control run).", "tests": "head 78d8ed02, os-verify-lock: spec test Test Files 803 passed (803), Tests 23805 passed | 1 todo; spec typecheck exit 0; metadata-protocol test Test Files 310 passed | 4 skipped (314), Tests 22292 passed | 26 skipped (draft-publish-verdict pinned sentence holds); lock VERDICT command-exit 0. Red first: control-flow.zod.ts from origin/main -> Tests 5 failed | 51 passed (56), VERDICT command-exit 1; restored via git checkout HEAD --, blob == HEAD, git diff HEAD empty. Ablation (ablation-replace.mjs, anchor 1->0, blob 0ac7eeaa->370278a2): raw.indexOf -> graph.nodes.indexOf: Tests 1 failed | 55 passed; restored blob == HEAD. Spec test:repo not run locally (CI Test Core).", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 80 derived at 78d8ed02 (5 paths vs merge base 3eeb81d1). Serial pass 77 exit 0, 3 exit 3 (teardown fixture commit, dual-build-cjs-loads + lean-entry-closure dist). After git fetch origin 621a4876 and full turbo build (118/118, VERDICT command-exit 0): all 3 exit 0. dispatch-gates --ran: 80 derived, 80 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. check:generated: 2 of 14 stale (api-surface, export-origins) -> --fix -> 14/14 fresh (declaration-map fresh throughout). check-changeset-no-major --event (PR body): exit 0, LEVEL AXIS none at patch; control with spec minor: exit 1 (none-minor). CI check-runs: in_progress at report time.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0 — GitHub reads were gh api REST GETs (issue #29719 + comments, comments 6593312043 and 6593285300)", "api_writes": "2 relay writes as objectstack-fleet[bot]: pr_create (#29789, 11694 bytes read back identical, no assignees, no labels), comment (this report on #29719). Plus 1 git push of the thread branch. No assignee, reviewer or label written.", "writes": "git push x1; relay pr_create x1; relay comment x1", "deviations": [ "Changeset graded @objectstack/spec patch, not the order's PM-assumed minor (AGENTS.md step 3 + check-changeset-no-major none-minor control).", "FlowRegionShapeError does not mirror ListViewGroupQueryError's closed `reason` or ADR-0112 code/status: the card asks for path + node id only, and a declared .status would overrule runtime flowDefinitionRefusal's 400 classification.", "PR opened without assignees and without a review request (os-dev rule 2 over the session's assignee step); the seat hands the PR over.", "Worktree ../objectstack-issue-29719 kept for a patch round." ], "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [] }Generated by Claude Code
objectstack-fleet commentedon Nov 3, 2026
domain:spec#3 · os-support-ai · session_01WGufzfgvGexKn9vLHsy89K
ACCEPT → PR #29789 comment 6596046598 (head
78d8ed02, contract review 6595881129 PASS). Ready + auto-merge next.objectstack-fleet commentedon Nov 3, 2026
domain:spec#3 · os-support-ai · session_01WGufzfgvGexKn9vLHsy89K
Landed · PR #29789 merged as
eb05ea2f· 2026-11-03T05:37ZvalidateControlFlownow throwsFlowRegionShapeError(exported from@objectstack/spec/automation), carrying the faulting container'spathandnodeId. The refusal sentences and the accept set are unchanged. Contract review 6595881129 PASS, ACCEPT 6596046598.#29558 (lint reads
err.pathwhen present) is unblocked by this landing. Removingpm:dispatchedandpm:blockinghere.