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
a record-triggered flow that a parent also starts as a subflow is judged as if record were its trigger row: the value-envelope date-text refusal reads the parent's record with the child's field types #34694
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Filing gate: ① measured scope (the stand-down predicate in PR #34654, residue 2 of its dev report). ⛔ Not a claim.
Blocked-by: #34451
Suggested-grade: p2 · domain:server — a false refusal at registerFlow is fatal (the flow does not register), the same door #34451 makes refusing.
What
PR #34654 (#34451) types a flow value envelope for the date-text verdicts only where the run's record is the typed object's row: a record-triggered start (deriveTriggerBinding record_change; lint faultOutcomeOf) or a time-relative sweep of the typed object, with no record variable of the flow's own. The predicate reads the flow's own start node. A flow whose start is record-triggered can ALSO be started by a parent through a subflow (or map) node, and on that entrance record is the record the parent hands down, not a row of the child's trigger object. Both doors still judge record.<field> with the child's field types, so a child envelope written for the parent's record (timestamp(record.<field>) where the parent's field is a datetime and the child object's same-named field is a date) is refused although it evaluates.
packages/services/service-automation/src/flow-registration-checks.ts: runBindsTypedRow reads the flow's own start only.
packages/lint/src/validate-expressions.ts: the envelope typing follows faultOutcomeOf for the flow alone; lint already reads entrances across the stack (flowCelEntrances), the engine registers one flow at a time.
Done when
An envelope in a flow that some entrance starts with a record other than its trigger row is not refused on the trigger object's field types (lint, with the stack's entrances in hand), and the engine either reaches the same answer or states in its docblock why it cannot see the entrance; a CONTROL keeps the plain record-triggered flow refused.
The shape is narrow: a record-triggered flow that a parent also starts as a subflow, where a same-named field differs in type between the two objects. So p2, not p1.
Domain:service-automationflow-registration-checks.ts plus packages/lintvalidate-expressions.ts. The registration door is the fatal half → domain:server is confirmed. Declare the lint half at claim time.
Claim: PM loop round 1 · area a4-W · 2026-11-19T21:07Z
Session: session_016WV4czKnDE6hsyXQzB9wB2
Account: os-elon-musk
Branch: claude/area-a4W-34694
Worktree: objectstack-issue-34694
Domain: domain:server
Area: a4-W
Seat: repo:objectstack#4
File surface: packages/services/service-automation/src/flow-registration-checks.ts (+ its tests), packages/lint/src/validate-expressions.ts (+ its tests) — the lint half declared here as triage asked, .changeset/*.md. Stop on breach; explain in the report.
Container & model: M, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: added
Responsibility: service-automation registerFlow + lint judge a subflow/map-started child's record. with the child trigger object's types | no path covers it; both docblocks already say such a flow is judged untyped | authors of a record-triggered flow that a parent also starts as a subflow with a same-named field of another type; fatal at registerFlow since #34654
Pre-claim lane: domain:server · area a4-W — service-automation is an a4-W root; packages/lint/src/validate-expressions.ts is named for this card in the a4-W brief.
Pre-claim deps: Blocked-by #34451 closed 2026-11-17 (PR #34654 merged); overlap-check clean vs 2495486, 0 open PR heads share the files.
Prior rulings read: subflow,entrance,value-envelope,runBindsTypedRow → check-prior-rulings 343 ADR hits, none ruling on entrance typing; #34451 / PR #34654 shipped the refusal as Clause-②: yes (narrowing) in lint 18.6.0; thread: 0 rulings.
Clause-② reading (seat): removing a refusal so the code matches its own docblock (flow-registration-checks.ts ~:756–759, validate-expressions.ts ~:3341–3343) widens the accept set; that is not a narrowing ⇒ no. Metadata-protocol added = AGENTS.md step 3 literal (a previously refused value is accepted). If the dev finds a published consumer or doc that promises the refusal ⇒ stop, hand to the seat. L1-a checks this reading.
Thread-read: 6950044359
Premise: holds (main cf6bb70: runBindsTypedRow reads the flow's own start only; valueEnvelopeFieldTypes follows faultOutcomeOf for its own triggerKind; dev re-measures on 2495486)
Serial constraints cleared: none in flight on either file (PR #35351 touches only a service-automation integration test).
Release: to needs-user-decision · the fix changes a fatal door and partly reverses PR #34654's registerFlow narrowing, so the arm is the maintainer's. Branch claude/area-a4W-34694 is empty (no code written); Resume-from: none.
Options put to the maintainer (independent review, read-only at origin/main eca20d2):
A (recommended): registerFlow turns the typed date-text verdict on a flow that a subflow/map node may start into an advisory warning; os validate and the build lint keep refusing when no parent entrance is in hand. Riders: keep _migrate-stored listing such flows as advisories; decide in the same PR whether the Studio/AI save check (validate-expressions.ts:3177, which sees no parent) stands down too. ~250–350 lines; the three ADR-0087 semantic entries under packages/spec/src/migrations/entries/semantic/18.formula-*-refused.ts and the engine/plugin docblocks are rewritten to the new set.
B: keep the boot failure fatal and document the load-order reason (an app passes os validate, then the child flow fails at boot). ~150 lines.
C: an arming-gate route (the subflowRetriedCallout precedent) as its own card, >3x the size.
Reviewer's note: the bulk load points in plugin.ts (~2768–2793, ~6185, ~6278) do hold the whole flow list before registering, so a fourth arm (stand down there only) exists; it is larger than A and misses the type: 'flow' action entrance.
Prior rulings read: PR #34654 seat rulings S1(i)/S2/S3; #33501 (spec/contract/narrowing changes land with the maintainer).
Ruling: letter A · maintainer 「A 启动时改为警告(推荐)」 2026-11-19T22:00Z · options in 7022800713
The maintainer chose arm A on the seat's decision card at 2026-11-19T21:59Z: registerFlow turns the typed date-text verdict on a flow that a subflow/map node may start into an advisory warning at boot; os validate and the build lint keep refusing when no parent entrance is in hand. Riders carried with the arm: keep _migrate-stored listing such flows as advisories, and decide in the same PR whether the Studio/AI save check (validate-expressions.ts, which sees no parent) stands down too. The three ADR-0087 semantic entries (packages/spec/src/migrations/entries/semantic/18.formula-*-refused.ts) and the engine/plugin docblocks are rewritten to the new set in the same PR.
Back to pm:queue; seat 4's area a4-W re-claims it.
Claim: PM loop round 2 · area a4-W · re-claim on ruling 7023408378 (letter A) · 2026-11-19T22:04Z
Session: session_016WV4czKnDE6hsyXQzB9wB2
Account: os-elon-musk
Branch: claude/area-a4W-34694
Worktree: objectstack-issue-34694
Domain: domain:server
Area: a4-W
Seat: repo:objectstack#4
File surface: packages/services/service-automation/src/{flow-registration-checks,engine,plugin}.ts (+ tests; engine.ts/plugin.ts docblocks per the ruling), packages/lint/src/validate-expressions.ts (+ tests; flow-cel-root-scope.ts only if the dev exports the parent edges instead of re-walking — say which), packages/spec/src/migrations/entries/semantic/18.formula-{timestamp-date-only,date-text-call,date-subtraction}-refused.ts (surface + acceptanceCriteria text only; id, keys, shape unchanged), .changeset/*.md. Surface widening approved by the seat as routing (21:25Z). Stop on breach; explain in the report.
Container & model: M, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: added
Responsibility: service-automation registerFlow + lint judge a subflow/map-started child's record. with the child trigger object's types | no path covers it | authors of a record-triggered flow a parent also starts; fatal at boot since #34654
Pre-claim lane: domain:server · area a4-W; the spec migration entries are text edits carried by the ruling (留道: stays in this lane, seat L1/L2).
Pre-claim deps: Blocked-by #34451 closed; dev report /mnt/project-files/area-ai-seat/a4-W/34694/report.json (round 1, stopped for this ruling).
Prior rulings read: ruling 7023408378 (letter A, maintainer 2026-11-19T22:00Z, options 7022800713) — registerFlow turns the typed date-text verdict on a subflow/map-startable flow into a boot warning; os validate + build lint keep refusing without a parent entrance; riders: keep _migrate-stored advisories, decide the Studio/AI save check in this PR, rewrite the three ADR-0087 entries + docblocks. Partly reverses PR #34654's registerFlow narrowing (widening ⇒ Clause-② no). Contract review at CONTRACT_REVIEW_TIER owed by the seat after L1 (spec migrations text).
Thread-read: 7023408378
Premise: holds (probed on eca20d2 by round 1: both doors refuse the child)
Serial constraints cleared: overlap-check clean at round 1; dev re-runs before push.
Ruling: letter keep-refusing · maintainer 「继续拒绝+改写提示」 2026-11-19T22:14Z · supersedes 7023408378
The seat's independent review disagreed with arm A: the engine sees no parent at registration, so A would demote the verdict on every record-triggered and sweep flow, and the measured shape faults on every run its own trigger starts (seedRunVariables, dag-traversal.ts ~1273). Put back to the maintainer, who chose at 2026-11-19T22:13Z:
The refusal names the rewrite: move the shared steps into a child flow with no trigger of its own, which is already judged untyped.
Correct the two docblocks that say a parent-started flow is judged untyped (flow-registration-checks.ts ~790, validate-expressions.ts ~3341).
Arm A's riders and the ADR-0087 semantic-entry rewrite fall away. Area a4-W keeps the claim (7023494752).
Claim amendment: on ruling 7023700548 (supersedes 7023408378) · 2026-11-19T22:15Z
Branch: claude/area-a4W-34694 (unchanged)
File surface: packages/services/service-automation/src/flow-registration-checks.ts and packages/lint/src/validate-expressions.ts (refusal sentence + the two docblocks ~790 / ~3341, + tests; translations if the refusal sentence is catalogued), .changeset/*.md. The engine.ts/plugin.ts docblocks and the three spec semantic entries leave the surface.
Clause-②: no
Metadata-protocol: none (refused set unchanged; only the refusal's wording and the docblocks change)
Prior rulings read: 7023700548 — keep refusing at both doors for a flow with its own record trigger; the refusal names the rewrite (shared steps into a trigger-less child flow); PR #34654 seat ruling S1(i) stands.
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch → p2 ·
domain:serverconfirmed ·pm:blocked· 2026-11-17T06:52Z⛔ Not a claim.
registerFlowstops a flow that evaluates fine from registering. Once PR fix(lint,service-automation)!: a flow value envelope is typed for the date-text verdicts, so timestamp() over a date field is refused at os validate and registerFlow #34654 lands, an upgrade can newly break a working app.service-automationflow-registration-checks.tspluspackages/lintvalidate-expressions.ts. The registration door is the fatal half →domain:serveris confirmed. Declare the lint half at claim time.objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Unlock (13:5xZ): the only blocker, #34451, closed at 12:52Z. Moved
pm:blocked→pm:queue. The grade is unchanged.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2
Claim: PM loop round 1 · area a4-W · 2026-11-19T21:07Z
Session:
session_016WV4czKnDE6hsyXQzB9wB2Account:
os-elon-muskBranch:
claude/area-a4W-34694Worktree:
objectstack-issue-34694Domain:
domain:serverArea: a4-W
Seat: repo:objectstack#4
File surface:
packages/services/service-automation/src/flow-registration-checks.ts(+ its tests),packages/lint/src/validate-expressions.ts(+ its tests) — the lint half declared here as triage asked,.changeset/*.md. Stop on breach; explain in the report.Container & model: M,
mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: highClause-②: no
Metadata-protocol: added
Responsibility: service-automation registerFlow + lint judge a subflow/map-started child's record. with the child trigger object's types | no path covers it; both docblocks already say such a flow is judged untyped | authors of a record-triggered flow that a parent also starts as a subflow with a same-named field of another type; fatal at registerFlow since #34654
Pre-claim lane: domain:server · area a4-W — service-automation is an a4-W root; packages/lint/src/validate-expressions.ts is named for this card in the a4-W brief.
Pre-claim deps: Blocked-by #34451 closed 2026-11-17 (PR #34654 merged); overlap-check clean vs 2495486, 0 open PR heads share the files.
Prior rulings read: subflow,entrance,value-envelope,runBindsTypedRow → check-prior-rulings 343 ADR hits, none ruling on entrance typing; #34451 / PR #34654 shipped the refusal as
Clause-②: yes (narrowing)in lint 18.6.0; thread: 0 rulings.Clause-② reading (seat): removing a refusal so the code matches its own docblock (flow-registration-checks.ts ~:756–759, validate-expressions.ts ~:3341–3343) widens the accept set; that is not a narrowing ⇒
no. Metadata-protocoladded= AGENTS.md step 3 literal (a previously refused value is accepted). If the dev finds a published consumer or doc that promises the refusal ⇒ stop, hand to the seat. L1-a checks this reading.Thread-read: 6950044359
Premise: holds (main cf6bb70: runBindsTypedRow reads the flow's own start only; valueEnvelopeFieldTypes follows faultOutcomeOf for its own triggerKind; dev re-measures on 2495486)
Serial constraints cleared: none in flight on either file (PR #35351 touches only a service-automation integration test).
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4cysZsTQwxLv9M2TzHH
Release: to needs-user-decision · the fix changes a fatal door and partly reverses PR #34654's registerFlow narrowing, so the arm is the maintainer's. Branch
claude/area-a4W-34694is empty (no code written); Resume-from: none.Options put to the maintainer (independent review, read-only at origin/main eca20d2):
os validateand the build lint keep refusing when no parent entrance is in hand. Riders: keep_migrate-storedlisting such flows as advisories; decide in the same PR whether the Studio/AI save check (validate-expressions.ts:3177, which sees no parent) stands down too. ~250–350 lines; the three ADR-0087 semantic entries underpackages/spec/src/migrations/entries/semantic/18.formula-*-refused.tsand the engine/plugin docblocks are rewritten to the new set.os validate, then the child flow fails at boot). ~150 lines.type: 'flow'action entrance.Prior rulings read: PR #34654 seat rulings S1(i)/S2/S3; #33501 (spec/contract/narrowing changes land with the maintainer).
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4cxgb3PKFkt8y5FigJn
Ruling: letter A · maintainer 「A 启动时改为警告(推荐)」 2026-11-19T22:00Z · options in 7022800713
The maintainer chose arm A on the seat's decision card at 2026-11-19T21:59Z:
registerFlowturns the typed date-text verdict on a flow that a subflow/map node may start into an advisory warning at boot;os validateand the build lint keep refusing when no parent entrance is in hand. Riders carried with the arm: keep_migrate-storedlisting such flows as advisories, and decide in the same PR whether the Studio/AI save check (validate-expressions.ts, which sees no parent) stands down too. The three ADR-0087 semantic entries (packages/spec/src/migrations/entries/semantic/18.formula-*-refused.ts) and the engine/plugin docblocks are rewritten to the new set in the same PR.Back to
pm:queue; seat 4's areaa4-Wre-claims it.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2
Claim: PM loop round 2 · area a4-W · re-claim on ruling 7023408378 (letter A) · 2026-11-19T22:04Z
Session:
session_016WV4czKnDE6hsyXQzB9wB2Account:
os-elon-muskBranch:
claude/area-a4W-34694Worktree:
objectstack-issue-34694Domain:
domain:serverArea: a4-W
Seat: repo:objectstack#4
File surface:
packages/services/service-automation/src/{flow-registration-checks,engine,plugin}.ts(+ tests; engine.ts/plugin.ts docblocks per the ruling),packages/lint/src/validate-expressions.ts(+ tests;flow-cel-root-scope.tsonly if the dev exports the parent edges instead of re-walking — say which),packages/spec/src/migrations/entries/semantic/18.formula-{timestamp-date-only,date-text-call,date-subtraction}-refused.ts(surface + acceptanceCriteria text only; id, keys, shape unchanged),.changeset/*.md. Surface widening approved by the seat as routing (21:25Z). Stop on breach; explain in the report.Container & model: M,
mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: highClause-②: no
Metadata-protocol: added
Responsibility: service-automation registerFlow + lint judge a subflow/map-started child's record. with the child trigger object's types | no path covers it | authors of a record-triggered flow a parent also starts; fatal at boot since #34654
Pre-claim lane: domain:server · area a4-W; the spec migration entries are text edits carried by the ruling (留道: stays in this lane, seat L1/L2).
Pre-claim deps: Blocked-by #34451 closed; dev report /mnt/project-files/area-ai-seat/a4-W/34694/report.json (round 1, stopped for this ruling).
Prior rulings read: ruling 7023408378 (letter A, maintainer 2026-11-19T22:00Z, options 7022800713) — registerFlow turns the typed date-text verdict on a subflow/map-startable flow into a boot warning; os validate + build lint keep refusing without a parent entrance; riders: keep
_migrate-storedadvisories, decide the Studio/AI save check in this PR, rewrite the three ADR-0087 entries + docblocks. Partly reverses PR #34654's registerFlow narrowing (widening ⇒ Clause-② no). Contract review at CONTRACT_REVIEW_TIER owed by the seat after L1 (spec migrations text).Thread-read: 7023408378
Premise: holds (probed on eca20d2 by round 1: both doors refuse the child)
Serial constraints cleared: overlap-check clean at round 1; dev re-runs before push.
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4cxgb3PKFkt8y5FigJn
Ruling: letter keep-refusing · maintainer 「继续拒绝+改写提示」 2026-11-19T22:14Z · supersedes 7023408378
The seat's independent review disagreed with arm A: the engine sees no parent at registration, so A would demote the verdict on every record-triggered and sweep flow, and the measured shape faults on every run its own trigger starts (
seedRunVariables,dag-traversal.ts~1273). Put back to the maintainer, who chose at 2026-11-19T22:13Z:os validate/ build lint andregisterFlowat boot) for a flow that has its own record trigger; no change to the refused set (PR fix(lint,service-automation)!: a flow value envelope is typed for the date-text verdicts, so timestamp() over a date field is refused at os validate and registerFlow #34654 seat ruling S1(i) stands).flow-registration-checks.ts~790,validate-expressions.ts~3341).Arm A's riders and the ADR-0087 semantic-entry rewrite fall away. Area
a4-Wkeeps the claim (7023494752).objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2
Claim amendment: on ruling 7023700548 (supersedes 7023408378) · 2026-11-19T22:15Z
Branch:
claude/area-a4W-34694(unchanged)File surface:
packages/services/service-automation/src/flow-registration-checks.tsandpackages/lint/src/validate-expressions.ts(refusal sentence + the two docblocks ~790 / ~3341, + tests; translations if the refusal sentence is catalogued),.changeset/*.md. The engine.ts/plugin.ts docblocks and the three spec semantic entries leave the surface.Clause-②: no
Metadata-protocol: none (refused set unchanged; only the refusal's wording and the docblocks change)
Prior rulings read: 7023700548 — keep refusing at both doors for a flow with its own record trigger; the refusal names the rewrite (shared steps into a trigger-less child flow); PR #34654 seat ruling S1(i) stands.