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
Stage-change confirm: a flow that reaches an approval through a subflow is listed without the approval mark #36322
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Filing gate: ② an out-of-scope finding while building #35928 (PR #36316, os-dev-report 7075034362 on #35928, open question 2). ⛔ Not a claim; triage sets lane and grade.
Dedupe: subflow approval, startsApproval, record-starts subflow (open: only #35928 itself and seat posts). No card covers it.
What happens (as the dev measured it on the PR head 0658fbc; not yet on main)
showcase_project_closure reaches its approval through a subflow, so a member moving a showcase project to completed sees it listed without the approval mark, although the change does start an approval.
reach: any record update whose matching flow starts an approval only inside a called subflow. Lands when PR #36316 merges.
Ask
Decide whether the approval mark follows subflows (the flow's own nodes plus the flows it calls, with a depth or cycle guard), and if so make startsApproval true for such flows, reusing the one approval test. ⛔ No second approval rule.
If triage reads this as a change to what ruling 7073655354 says, it goes to the maintainer as a decision first.
Pins: a flow whose subflow holds the approval is marked; a flow calling a subflow with no approval is not; a self-calling flow ends.
Triage: lands in domain:server (POST /api/v1/automation/_record-starts, startsApproval) · pm:queue; rationale: area:workflow (was ux; the list gives a wrong result, it does not merely look wrong) · Bug · a flow that reaches an approval through a subflow is listed in the stage-change confirm without the approval mark, so the user is not told the move starts an approval. Measured on PR #36316's head, not yet on main; out-of-scope finding of #35928 → p2 · size S. Linked under topic #36243 (审批收尾).
Claim: PM loop round 1
Session: session_01WGufzi4PechTRCTBrfxV8W
Account: os-support-ai
Branch: claude/issue-36322-subflow-approval-mark
Worktree: objectstack-issue-36322
Domain: domain:server
Seat: repo:objectstack#3
File surface: packages/services/service-automation/src/record-update-starts.ts and its tests (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: platform code in objectstack (service-automation record-update-starts.ts) | none | any member changing a record whose matching flow reaches an approval only through a subflow (showcase_project_closure today)
Thread-read: 7075525249
Premise: holds
Serial constraints cleared: none (no in-flight claim on service-automation record-update-starts.ts; PR #36316 merged)
Ruling-ref: 7073655354 on #35928, verbatim: "A flow that contains an approval node is marked as starting an approval (ADR-0019: an approval is a node inside a flow)." Seat reading: following subflows implements the mark's meaning; a measured conflict is reported as a fork, not built.
{
"issue": 36322,
"status": "done",
"branch": "claude/issue-36322-subflow-approval-mark",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36682",
"head_sha": "1966dced794f9e334fe93a509597057dca766b60",
"session": "session_01WGufzi4PechTRCTBrfxV8W",
"premise_still_valid": true,
"summary": "Premise measured on origin/main 9348f02b: flowStartsApproval (record-update-starts.ts:51-53) tests only flow.nodes, used at :88; showcase_project_closure calls showcase_closure_signoff via a subflow node and signoff holds the approval node. The mark now follows the flows a run calls: module-private flowReachesApproval walks AutomationEngine.subflowTargets (subflow and map calls, every region depth, shared names resolved to the slot the run dispatches to), asks each flow the one existing flowStartsApproval test, does not follow an unheld or disabled target, and visits each flow once. Ruling 7073655354 holds unchanged: one boolean per listed flow, no subflow name served, and the ruling's basis records no per-flow view permission, so no fork.",
"files_changed": [".changeset/36322-subflow-approval-mark.md", "packages/services/service-automation/src/engine.ts (+1)", "packages/services/service-automation/src/record-update-starts.test.ts (+95)", "packages/services/service-automation/src/record-update-starts.ts (+32 -2)"],
"line_budget": "140 changed lines (+138 / -2, 4 files), under the 3000 human-merge threshold; skills/** untouched",
"deviations": [
"File-surface breach, declared: engine.ts +1 line (the listRecordUpdateStarts host literal passes the existing private subflowTargets). The order says stop on breach; the walk cannot resolve a shared flow name to its slot without the engine's resolver, and no correct in-surface alternative exists, so it was built and declared for the seat to accept or refuse.",
"New pins went into the existing record-update-starts.test.ts as a top-level describe, not a new card-named file: AGENTS.md (ruling record 6583487846) puts a new pin for a component with a shared harness file into that file.",
"check:plugin-teardown-shape --self-test and check:dual-build-cjs-loads exit 3 (shallow clone / no full build): NOT MEASURED locally, CI owns them."
],
"tests": "head 1966dced. vitest src/record-update-starts.test.ts: Test Files 1 passed (1), Tests 14 passed (14). pnpm --filter @objectstack/service-automation test: Test Files 293 passed (293), Tests 4264 passed (4264), lock VERDICT command-exit 0. typecheck: VERDICT command-exit 0, listFiles includes the test file. Ablation 1 (ablation-replace.mjs, src import, no dist): subflow follow emptied, anchor 1->0, blob 26f2db07->6aa7aeef, 2 failed (both marks pins) 12 passed, restored blob==HEAD. Ablation 2: enabled check -> true, anchor 1->0, blob 26f2db07->180d531d, 1 failed (disabled pin) 13 passed, restored blob==HEAD. Cycle guard not ablated (synchronous infinite loop).",
"gates": "Local: 72 derived commands (dispatch-gates --commands --repo objectstack-ai/objectstack, tree 1966dced, merge base 9348f02b) run with exit captured before any pipe: 70 exit 0, 2 exit 3 (node scripts/check-plugin-teardown-shape.mjs --self-test: pinned fixture unreachable on shallow clone; pnpm check:dual-build-cjs-loads: PREREQUISITE NOT MET, no full build). --ran reconciliation: 72 derived, 70 run, 2 NOT-MEASURED (derived from exit 3), 0 UNRUN. ①: pnpm --workspace-concurrency=2 --filter '@objectstack/service-automation^...' build, VERDICT command-exit 0. CI on PR #36682: started (CI, Governed Surface Guard, Docs Drift Check, PR-Body Guards, PR Automation in_progress; Lint & Type Check queued), mergeable_state blocked (draft), not dirty; conclusions in_progress at report time. test:repo not run locally (diff touches no repo-project test), declared to CI.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (repository_dispatch fw-20261123T111738Z-dbb271 -> POST /repos/objectstack-ai/objectstack/pulls + assignee POST, run 45163877146 success); post-stamped os-dev-report comment on #36322. git push x4 (not REST).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted, not filed: the walk does not mirror the subflow node's runtime nesting cap (16); an approval reachable only past 16 distinct nested flows would be marked although a run refuses there (PR Acceptance notes)"]
}
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 22, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(POST /api/v1/automation/_record-starts,startsApproval) ·pm:queue; rationale: area:workflow (was ux; the list gives a wrong result, it does not merely look wrong) · Bug · a flow that reaches an approval through a subflow is listed in the stage-change confirm without the approval mark, so the user is not told the move starts an approval. Measured on PR #36316's head, not yet on main; out-of-scope finding of #35928 → p2 · size S. Linked under topic #36243 (审批收尾).feat(automation): the stage confirms name the flows a move would start (
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W
Claim: PM loop round 1
Session:
session_01WGufzi4PechTRCTBrfxV8WAccount:
os-support-aiBranch:
claude/issue-36322-subflow-approval-markWorktree:
objectstack-issue-36322Domain:
domain:serverSeat:
repo:objectstack#3File surface:
packages/services/service-automation/src/record-update-starts.tsand its tests (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate",effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
platform code in objectstack (service-automation record-update-starts.ts) | none | any member changing a record whose matching flow reaches an approval only through a subflow (showcase_project_closure today)Thread-read: 7075525249
Premise: holds
Serial constraints cleared: none (no in-flight claim on service-automation record-update-starts.ts; PR #36316 merged)
Ruling-ref: 7073655354 on #35928, verbatim: "A flow that contains an approval node is marked as starting an approval (ADR-0019: an approval is a node inside a flow)." Seat reading: following subflows implements the mark's meaning; a measured conflict is reported as a fork, not built.
objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W
os-dev-report
{ "issue": 36322, "status": "done", "branch": "claude/issue-36322-subflow-approval-mark", "pr": "https://github.com/objectstack-ai/objectstack/pull/36682", "head_sha": "1966dced794f9e334fe93a509597057dca766b60", "session": "session_01WGufzi4PechTRCTBrfxV8W", "premise_still_valid": true, "summary": "Premise measured on origin/main 9348f02b: flowStartsApproval (record-update-starts.ts:51-53) tests only flow.nodes, used at :88; showcase_project_closure calls showcase_closure_signoff via a subflow node and signoff holds the approval node. The mark now follows the flows a run calls: module-private flowReachesApproval walks AutomationEngine.subflowTargets (subflow and map calls, every region depth, shared names resolved to the slot the run dispatches to), asks each flow the one existing flowStartsApproval test, does not follow an unheld or disabled target, and visits each flow once. Ruling 7073655354 holds unchanged: one boolean per listed flow, no subflow name served, and the ruling's basis records no per-flow view permission, so no fork.", "files_changed": [".changeset/36322-subflow-approval-mark.md", "packages/services/service-automation/src/engine.ts (+1)", "packages/services/service-automation/src/record-update-starts.test.ts (+95)", "packages/services/service-automation/src/record-update-starts.ts (+32 -2)"], "line_budget": "140 changed lines (+138 / -2, 4 files), under the 3000 human-merge threshold; skills/** untouched", "deviations": [ "File-surface breach, declared: engine.ts +1 line (the listRecordUpdateStarts host literal passes the existing private subflowTargets). The order says stop on breach; the walk cannot resolve a shared flow name to its slot without the engine's resolver, and no correct in-surface alternative exists, so it was built and declared for the seat to accept or refuse.", "New pins went into the existing record-update-starts.test.ts as a top-level describe, not a new card-named file: AGENTS.md (ruling record 6583487846) puts a new pin for a component with a shared harness file into that file.", "check:plugin-teardown-shape --self-test and check:dual-build-cjs-loads exit 3 (shallow clone / no full build): NOT MEASURED locally, CI owns them." ], "tests": "head 1966dced. vitest src/record-update-starts.test.ts: Test Files 1 passed (1), Tests 14 passed (14). pnpm --filter @objectstack/service-automation test: Test Files 293 passed (293), Tests 4264 passed (4264), lock VERDICT command-exit 0. typecheck: VERDICT command-exit 0, listFiles includes the test file. Ablation 1 (ablation-replace.mjs, src import, no dist): subflow follow emptied, anchor 1->0, blob 26f2db07->6aa7aeef, 2 failed (both marks pins) 12 passed, restored blob==HEAD. Ablation 2: enabled check -> true, anchor 1->0, blob 26f2db07->180d531d, 1 failed (disabled pin) 13 passed, restored blob==HEAD. Cycle guard not ablated (synchronous infinite loop).", "gates": "Local: 72 derived commands (dispatch-gates --commands --repo objectstack-ai/objectstack, tree 1966dced, merge base 9348f02b) run with exit captured before any pipe: 70 exit 0, 2 exit 3 (node scripts/check-plugin-teardown-shape.mjs --self-test: pinned fixture unreachable on shallow clone; pnpm check:dual-build-cjs-loads: PREREQUISITE NOT MET, no full build). --ran reconciliation: 72 derived, 70 run, 2 NOT-MEASURED (derived from exit 3), 0 UNRUN. ①: pnpm --workspace-concurrency=2 --filter '@objectstack/service-automation^...' build, VERDICT command-exit 0. CI on PR #36682: started (CI, Governed Surface Guard, Docs Drift Check, PR-Body Guards, PR Automation in_progress; Lint & Type Check queued), mergeable_state blocked (draft), not dirty; conclusions in_progress at report time. test:repo not run locally (diff touches no repo-project test), declared to CI.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (repository_dispatch fw-20261123T111738Z-dbb271 -> POST /repos/objectstack-ai/objectstack/pulls + assignee POST, run 45163877146 success); post-stamped os-dev-report comment on #36322. git push x4 (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed: the walk does not mirror the subflow node's runtime nesting cap (16); an approval reachable only past 16 distinct nested flows would be marked although a run refuses there (PR Acceptance notes)"] }objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W
Closed by PR #36682 (merged 0a49be3,
Fixes #36322).pm:dispatchedremoved · 2026-11-23T12:51Z.