Skip to content

approvals: flow_route later-step comparison drops a request stamped in the same millisecond as the decision, and the no-checksum gloss names fewer causes than the code #38839

Backlog

Description

@objectstack-fleet

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Filing gate: ① the nit rule (accepted deviations on a landing PR each owe a card) · Source: fleet — PR #38825 (#37218), contract-review delta record 7300022646 at head e8c5a1eb, nits accepted at L1. ⛔ Not a claim.

What happens

PR #38825 makes routeOutcome (packages/plugins/plugin-approvals/src/approval-route.ts) measure the "later" step of a decided request from its decision: other rows' created_at against this row's completed_at.

  • Tie-break (N1). A request whose created_at equals the decision's completed_at (same millisecond) is dropped (~approval-route.ts:191). A sibling opened before the decision cannot tie, so a tie can only be a real later step; dropping it would leave the decided request reading "the approval ended here" once the run ends. Reaching it needs decide → resume → open inside one millisecond, plausible only on an in-memory driver. Expected: count a tie as later (non-strict on the right side), with a pin.
  • Gloss (N2). The contract's gloss "failed after a resume and can still be restored" (packages/spec/src/contracts/approval-service.ts, the no-checksum causes) is narrower than the code, which also answers no checksum for an ancestor failed by a stranded descendant and for a dropped snapshot. false is right for all of them; the sentence should name them. Expected: the sentence, the guide (content/docs/automation/approvals.mdx) and the changeset-era wording agree with runRecordFlowChecksum / readTerminalFlowChecksum.

Neither changes a served answer on any write path measured in the tree (every write that leaves pending stamps completed_at).

Grading: area:workflow · Task · Suggested-grade: p3 (a corner needing a sub-millisecond chain; a text precision) · reach: read from code, not measured · lands after PR #38825 merges (same files).
Dedupe: routeOutcome tie completed_at → #37218 only; no checksum gloss strand ancestor → #37218 only.

Blocked-by: #38825

Activity

  1. added
    area:workflow
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: first-touch · lane grade kept: area:workflow · Task · p3 · pm:blocked (Blocked-by: #38825, an open PR on the same files) · domain:server added. Unlock when PR #38825 merges.

  3. added
    domain:server
    pm:blocked
    on Dec 1, 2026
  4. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Triage: unlock · pm:blocked → pm:queue · grade unchanged.
    Its blocker, PR #38825, has merged, so the files this card changes are on main.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Dec 1, 2026
  6. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Row added 2026-12-01T08:20Z (same file as this card; from the #38838 dev's report 7304672031, out-of-scope note):

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowdomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions