Skip to content

flow trigger response: the notify row in summary.nodes[] carries no warning when its channel was refused #33341

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Source: v18.4.0 sweep close-out, #32908 comment 6881136418 (devx#4 ledger, read at 87330e89), routed by triage.

What is wrong

Row 52 (record #32949 §1), item integration-system.notify-inbox-delivery. This is what is left of #32143, which is closed: the run no longer records a false success, but the trigger response's summary.nodes[] notify row carries no warning. A caller that reads the summary can't tell that nothing was delivered.

Do

Put the refusal or warning on the notify row in summary.nodes[], in the same shape other nodes use for warnings. Pin it with a test.

Grade

p2.

Reader

domain:server, pilot Area A5 (automation).

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:server
    on Nov 14, 2026
  2. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: +lease:A5 · 2026-11-14T18:47Z

    ⛔ Not a claim; claim, grade and state unchanged.

    Area A5 under the area-lease pilot (#33059, table on #28677). The label replaces the text Area: line now that lease: labels exist. Decisions go area → domain:server#5.

  3. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cykhsWAtSL6Sr4VWFG

    Claim: area-lease pilot #33059, area A5 thread · 2026-11-14T20:16Z · p2, dispatched to an os-dev subagent of this thread (parallel run approved 14:55Z).
    Session: session_016WV4cykhsWAtSL6Sr4VWFG
    Account: os-elon-musk
    Branch: claude/area-A5-33341
    Worktree: objectstack-issue-33341
    Domain: domain:server
    Seat: domain:server#5 (area A5)
    File surface: the record-change / flow trigger response's summary.nodes[] (service-automation run summary) and the notify node's refusal / warning it should carry, their tests, a changeset. Stop on breach.
    Clause-②: no (expected: an added warning on a row that already exists; the final value is declared from the diff)
    Metadata-protocol: none (expected; the final value is declared from the diff)
    Premise: re-measured on origin/main before any edit; premise_still_valid: false is a valid result

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · os-elon-musk · session_016WV4cykhsWAtSL6Sr4VWFG
    os-dev-report

    {
      "issue": 33341,
      "status": "done",
      "branch": "claude/area-A5-33341",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/33438",
      "session": "session_016WV4cykhsWAtSL6Sr4VWFG",
      "premise_still_valid": true,
      "summary": "Premise held on origin/main b4624440e: the notify step carried its refused-channel warning on the step log, but summarizeRun (service-automation run-summary.ts) never copied step warnings, so the notify row in summary.nodes[] (which the trigger door serves verbatim via deps.success(result)) read success / acted: 0 with no reason. Fix: FlowRunNodeSummarySchema (packages/spec, a published contract) gains optional warnings: string[] in the step log's own element shape, and summarizeRun folds every node's step warnings onto its row (distinct texts, first-seen order, absent when none, bounded at 5 per node with a final counted-overflow entry so the summary stays sized by the flow's static shape under the 16 KB summary_json cap). One fold covers every node type, so create/update rows with stripped fields warn too; status, counters and flow control unchanged. Declared from the diff: Clause-② yes (widening), Metadata-protocol added (not the claim's expected none: FlowRunNodeSummary sits on the authorable-surface baseline, which moved by one key, and the changeset gate refuses none beside that), minor changeset for spec and service-automation.",
      "tests": "Head c14afda2e9. Premise red before the fix (real AutomationEngine.execute + real MessagingService/outbox/dispatcher): notify-delivery-outcome.integration.test.ts new describe -> Tests 3 failed | 9 passed (12), 'AssertionError: Target cannot be null or undefined.' on row.warnings, control green, lock VERDICT command-exit 1. After the fix: pnpm --filter @objectstack/service-automation test -> Test Files 281 passed (281), Tests 3916 passed (3916), VERDICT command-exit 0; service-automation typecheck (tsc + check:test-typecheck) exit 0; pnpm --filter @objectstack/spec test -> Test Files 840 passed (840), Tests 26868 passed | 1 todo (26869), VERDICT 0; spec typecheck exit 0; runtime (dependent: trigger door + typed FlowFailureDetails builder) typecheck exit 0 + 4 summary-reading test files -> Test Files 4 passed (4), Tests 39 passed (39), VERDICT 0; eslint --no-inline-config over the 5 touched files exit 0. New pins: 4 integration cases (durable, inline, partial, control; each parses through FlowRunSummarySchema), 5 summarizeRun cases, 3 spec schema cases. Ablation on the committed fix via scripts/ablation-replace.mjs: anchor 'if (warnings) node.warnings = warnings;' 1 -> 0, blob bacf67bb -> ef6fbf30, Tests 8 failed | 51 passed (59), every new warning pin red and the controls green; restored blob == HEAD bacf67bb, git diff HEAD empty (re-read: 0 lines). Tests import run-summary.ts from src: no dist leg.",
      "gates": "Local: node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands at c14afda2e9 (8 paths vs merge base b4624440e) derived 109 commands; each run with exit captured before any pipe; --ran: 109 accounted for, 107 run (all exit 0), 2 NOT MEASURED, 0 UNRUN, exit 0. NOT MEASURED: check:skill-examples (spec), reason: exit 3 PREREQUISITE NOT MET, needs built @objectstack/client and client-react declarations; check:dual-build-cjs-loads, reason: exit 3 PREREQUISITE NOT MET, needs a full pnpm build (38 package dists absent). Spec: check:generated named check:docs stale once, --fix regenerated it, then 14/14 current; check:authorable-surface and check:api-surface green. CI on PR #33438 head c14afda2: at report time Check Changeset, Lint (ESLint, PM dispatch-gates, repo & tooling, docs & code guards, CI/release/engine, scoped lanes), Type Check (workspace, source, consumer, debt ledger), Governed Surface Queue Guard, PR-body guards, Spec property liveness, Check PR Size, Check Documentation Links: in_progress; opt-in and queue-only runs skipped. Not waited on (PM owns CI convergence).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 seat writes — 1 fleet-write relay dispatch (POST /repos/objectstack-ai/objectstack/dispatches carrying pr_create; the relay executed POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/33438/assignees [os-elon-musk]); 1 post-stamped comment (POST /repos/objectstack-ai/objectstack/issues/33341/comments, this report). git push x3 not counted (not REST).",
      "open_questions": [
        {
          "question": "os-dev.md says a Zod contract shape change is reported needs_decision; the dispatch pre-provisioned an added optional summary field as Clause-② yes (widening), and the card fixes both place and shape. This PR adds FlowRunNodeSummary.warnings on that provision. Keep it?",
          "options": [
            "A keep the widening as landed: one optional member in the step log's own shape, additive for every client",
            "B withdraw the spec member and carry the warning only at run level (a new run-level member: also a widening, and further from what the card asks)",
            "C hold the PR for a contract-tier ruling before ACCEPT"
          ],
          "recommendation": "A, because the card names the row and the shape, the member is optional and additive, the dispatch provisioned exactly this widening, and B is a widening too while being further from the card"
        },
        {
          "question": "The per-node bound (5 distinct texts, then one entry saying how many were left out) is a shape choice the card did not state. Keep it?",
          "options": [
            "A keep 5 plus the counted overflow entry: the summary stays sized by the flow's static shape, as serializeSummaryBounded's header requires for the 16 KB summary_json cap",
            "B no bound: a loop whose warning texts embed per-execution counts could grow a row without limit and push the whole summary past the cap into detailOmitted",
            "C a bound plus a separate count member instead of the overflow sentence (one more spec member)"
          ],
          "recommendation": "A, because it keeps the existing byte-cap invariant without adding a second new member, and the overflow is stated rather than silent"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the Console Runs panel reads step warnings and does not read the summary row's new warnings; whether it should is a UI choice, not a defect (PR Acceptance notes)"
      ],
      "deviations": [
        "PR opened after the fix commit, not at the first pushed commit (the red test, 70c0182607): the dev writes the PR body once at pr_create and never PATCHes it, so it was written when the evidence existed; the branch was pushed at the first commit.",
        "origin/main not merged before opening: 9 commits behind, none touching packages/spec/src/automation, run-summary.ts, the authorable-surface or the reference docs (git diff HEAD...origin/main on those paths empty); the merge queue tests the merged tree.",
        "Dependent testing narrowed and declared: of spec's downstream only @objectstack/runtime was re-run locally (typecheck + 4 summary-reading test files); the rest is CI's Test Core / TypeScript Type Check.",
        "The identity line sits at the end of the PR body ('Seat: ...'), because the dispatch requires the body to start with the attribution comment and the Requested-by line.",
        "The harness reminder asked for a model-named Co-Authored-By trailer and a different PR footer; commits carry the dispatch's model-free pair and the body the AGENTS.md session-URL footer.",
        "Metadata-protocol declared added, not the claim's expected none (reason in summary)."
      ]
    }
  6. added a commit that references this issue on Nov 16, 2026
    8b53cc8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:serverpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions