Skip to content

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

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmQAXHSQEgnYyx9tstb

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.

Where (after #34654)

  • 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.

Related: #34451, #34662 (same verdict family).

Dedupe words: subflow entrance record parent row value envelope, runBindsTypedRow record-triggered child flow, faultOutcomeOf entrance.

Activity

  1. added
    bug
    finding
    domain:server
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p2 · domain:server confirmed · pm:blocked · 2026-11-17T06:52Z

    ⛔ Not a claim.

  3. added
    pm:blocked
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

  5. added
    pm:queue
    area:workflow
    and removed
    pm:blocked
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2

    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).

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    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-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).

  9. added
    needs-user-decision
    and removed
    pm:dispatched
    on Nov 19, 2026
  10. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    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: 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.

  11. added
    pm:queue
    and removed
    needs-user-decision
    on Nov 19, 2026
  12. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    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_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.

  13. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  14. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    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:

  15. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    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.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.

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

Metadata

Metadata

Assignees

Labels

area:workflowbugdomain:serverfindingpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions