Skip to content

scenarios travel_expense: file_and_submit_from_text pins the claim lines' quantity shape (2 x 430, 3 x 115) — check the per-type amounts instead, so per-unit lines also pass #35025

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filed by triage at the request of repo:objectstack#3 (mailbox #32588, 6963882491), from area o3-H's reading on #34998 (6963855363).

What happens

docs/qa/scenarios/travel_expense.json, operation file_and_submit_from_text, pins the line shape claim_line quantity 2 × 430 and quantity 3 × 115.

On main, the agent filed per-night and per-day lines at quantity 1. That is an equally faithful reading, with total_amount = 1205, matching the card. It is graded as a fail.

Done when

  • The operation checks the per-type amounts (hotel 860, meals 345), or accepts either line shape.
  • The scorecard notes the card change.

Parent: #34659. Blocks: #34996 ("operations 100%").
Grade: p1 · domain:devx · area:ai. It falsely fails a correct answer and caps the maintainer-requested loop.

Activity

  1. added
    priority:p1
    pm:queue
    domain:devx
    finding
    area:ai
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9rnXEpD9ne7yFhD

    Claim: PM loop round 1 · 2026-11-17T23:29Z
    Session: session_01WGufziH9rnXEpD9ne7yFhD
    Account: os-support-ai
    Branch: claude/issue-35025-per-type-amounts
    Worktree: objectstack-issue-35025
    Domain: domain:devx
    Seat: repo:objectstack#3
    File surface: docs/qa/scenarios/travel_expense.json (operation file_and_submit_from_text outcome), the operation state grader in packages/qa/scenarios/src/** only if it cannot already express a per-type amount (a sum over matching rows) or an either-shape check, the scorecard/record line that names the card revision, scenarios tests, README, and a changeset.
    Container & model: M, mode:subagent (area o3-F), model: TIER_DEFAULT, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: scenarios card + grader (packages/qa/scenarios)
    Thread-read: none
    Premise: holds (o3-H reading 6963855363 on #34998; card at main): the outcome pins claim_line rows {expense_type: hotel, quantity: 2, unit_amount: 430} and {expense_type: meals, quantity: 3, unit_amount: 115}, so per-night / per-day lines at quantity 1 (an equally faithful filing, total_amount 1205) fail the state checks. Area's own workspace runs (iterations 0-2) filed quantity 2 and 3 and passed those rows; their remaining miss there is the build's submit action (HOOK_ABORTED), which rides the fresh verified build (#34920 / #34896), not this card. check-governed-merges --test on the surface: NOT governed.
    Serial constraints cleared: overlap-check before push; earlier loop recordings are regraded on the changed card after it lands (seat 2026-11-17T23:29Z).
    Pre-claim lane: domain:devx, routed to area o3-F by the seat (2026-11-17T23:29Z); ahead of #34920.
    Pre-claim deps: none open.
    Prior rulings read: none on the scenarios operation grader (same corpus as #34997's reading); thread: none; repo: objectstack-ai/objectstack

    Lease o3-F (seat post #34584); child of epic #34659; blocks #34996.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9rnXEpD9ne7yFhD
    os-dev-report

    Reported 2026-11-18T00:07Z for PR #35044.

    {
     "issue": 35025,
     "status": "rework",
     "branch": "claude/issue-35025-per-type-amounts",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35044",
     "session": "session_01WGufziH9rnXEpD9ne7yFhD",
     "premise_still_valid": true,
     "summary": "Card and grader half done; the scorecard note is owed after #35023 merges, so the PR says `Part of #35025` and status is rework by design (dispatch order). The operation grader could not express a per-type sum: a `where` had to match exactly one row, and its keys were the object's own fields only. I added two things. First, aggregate post-states (`sum` / `each` over every row a `where` matches, at least one row; `->rows` fails when none match). Second, relation paths in a post-state `where` (`claim.trip`, resolved through `expect.lookups`). Both come with schema refinements, loader validation, runner reads of the hop objects (`relationObjects`), tests and README lines. The card now checks hotel sum 860, meals sum 345 and no over-standard line, all scoped to the claim for trip t121; the claim-level checks and the audit actor are unchanged. Proposed note design: the record stamps top-level `card: {id, sha256}` from cli.ts beside `template`; the scorecard prints `card: ID (sha256 FIRST12)` under the table (scorecard.ts render); summary.ts refuses to sum mixed card hashes and reads an older record as `not recorded`. Regrade: the replay of the iter2 recording read this operation NOT MEASURED (replay not faithful, see out_of_scope_findings). Grading the recorded rows directly with this head still fails on status alone; the sums and the each check pass.",
     "tests": "At 6513b37c: `pnpm --filter @objectstack/scenarios build && typecheck && test` under os-verify-lock: VERDICT command-exit 0, Test Files 39 passed (39), Tests 1103 passed (1103). tsc --listFiles counts all 3 edited test files. New pins: travel-expense.test.ts runs the namespaced real card through observeOperation and gradeCardOperation over the full seed. The quantity-2/3 rows (iter2 recording) and the per-unit rows (five-rep recording) both pass, with a decoy claim on t124 kept out. The recorded rows fail on status alone. A hotel total of 430, an extra over-standard line, and no lines all fail. Without lookups nothing resolves and the operation fails. Also an aggregate describe in scenario-operation-grade.test.ts, and 7 refusal cases plus a clean-load control in refusals.test.ts. Ablations via scripts/ablation-replace.mjs (anchor 1->0, restore blob == HEAD, git diff HEAD empty; tests import src, so no dist leg): removing the aggregateChecks call gave Tests 6 failed | 52 passed (58); stubbing the relation-path read to undefined gave Tests 3 failed | 7 passed (10). Regrade: replay `run-scenarios --only travel_expense --modes ask --template .../template.json --ask-repeats 5 --packages workspace --driver recorded:.../iter2/ask.rec.json` (VERDICT command-exit 0). Run-operations went from 2/3 (before, round record) to 2/2 · 4 not measured (after), because this operation is NOT MEASURED on replay. An offline grade of the record's observed rows at this head fails on state:demotravel_expense_claim[trip=t121].status alone; sum(amount) reads 860 and 345, each(over_standard) reads 2 of 2 false.",
     "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at 6513b37c derived 67 families. Each ran with its exit captured before any pipe: 66 exit 0, and 1 exit 3 (`node scripts/check-plugin-teardown-shape.mjs --self-test`, PREREQUISITE NOT MET: its fixture commit is outside this shallow clone), which is NOT MEASURED. `--ran` (cmd :: exit N records): 67 derived, 66 run, 1 NOT-MEASURED, 0 UNRUN. `node scripts/pm/overlap-check.mjs`: VERDICT clean exit 0 (origin/main a841e26b, #35023, #35022, #34985 merge cleanly). `node scripts/check-nul-bytes.mjs`: exit 0. No exported symbol was renamed or deleted (two were added), so check-platform-checklist does not apply. CI check-runs on #35044: in_progress, not awaited.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/35044/assignees, one repository_dispatch, run 44204979430); post-stamped os-dev-report comment on #35025 (POST /repos/objectstack-ai/objectstack/issues/35025/comments). Plus git push (not REST).",
     "open_questions": [
      {
       "question": "The dispatch order puts two HTML comments in the PR body: the attribution first line and a `signed:` last line. os-dev.md bans dev-written HTML comments and says the file wins when the two disagree. Which applies?",
       "options": [
        "A keep the seat's signed line (it survived read-back on #35044 and #35023)",
        "B drop it and sign in prose"
       ],
       "recommendation": "A for now, because read-back shows it intact. I followed the dispatch and am flagging the conflict rather than quietly choosing a side."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: a · reach: `run-scenarios --modes ask --packages workspace --driver recorded:/mnt/project-files/issue-34869/skill-iter/iter2/ask.rec.json` reads file_and_submit_from_text NOT MEASURED ('run_action was refused HOOK_ABORTED in the recorded run and refused RECORD_NOT_FOUND on replay') · evidence: RecordedDriver createdIdOf (packages/qa/scenarios/src/runner/driver.ts) reads only a top-level `id`. The run_action that created the claim answered `{ok, action, objectName, result: {id}}`, so the id was never remapped, and the next run_action's recordId was sent with the recorded id · dedupe words: RecordedDriver createdIdOf run_action result.id remap, replay not faithful RECORD_NOT_FOUND, recorded driver created id nested",
      "carrier: area o3-F second round after #35023 · scorecard card-revision note (design in summary and PR Acceptance notes) · noted, not filed"
     ]
    }
  5. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9rnXEpD9ne7yFhD

    Claim amendment: 2026-11-18T01:39Z (round 2, area o3-F, on the claim above for claude/issue-35025-per-type-amounts)
    Clause-②: yes (widening)
    Metadata-protocol: none

    Why it changed: round 2 adds the card stamp. The run record gains a top-level card: { id, sha256 }, and its scorecard gains cardStamp. The card schema's post-state gains optional sum / each members and relation-path where keys, and summary gains a card dimension. Each of these widens a published shape of @objectstack/scenarios, and nothing that loaded, graded or summed before is refused. The changeset stays patch (Metadata-protocol none). Every other line of the claim is unchanged, except that the file surface now also covers runner/scorecard.ts, runner/summary.ts and runner/cli.ts (the card stamp), since #35023 has merged.

  6. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9rnXEpD9ne7yFhD
    os-dev-report

    Round 2, reported 2026-11-18T01:41Z for PR #35044 at head c8ab4e4.

    {
     "issue": 35025,
     "status": "done",
     "branch": "claude/issue-35025-per-type-amounts",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35044",
     "session": "session_01WGufziH9rnXEpD9ne7yFhD",
     "premise_still_valid": true,
     "summary": "Round 2. New head c8ab4e48. I merged origin/main (eb7b09d4, which includes #35023 as 339c2f42) with a plain merge; it applied with no conflicts. Card stamp: CardStamp {id, sha256} and cardStampOf are in runner/scorecard.ts. The sha256 is over the card file's bytes as loaded. cli.ts stamps it on each run, runRecord writes it as top-level `card` and as scorecard `cardStamp`, and renderScorecard prints `card: ID (sha256 FIRST12)` under the packages line. A replay stamps the current card. summary.ts adds `card` to TABLE_DIMENSIONS: two hashes refuse the table, with the line naming each hash and the records holding it. A stamped record next to an unstamped one (`card: not recorded`) is refused too. Unstamped records keep summing with each other and print as before. driver.ts and scenario-dataset-grade.ts were not touched. Clause-② is now `yes (widening)` in the changeset, the PR body and an amended claim comment (6966396612); Metadata-protocol stays none and the changeset stays patch. The PR body now says Fixes #35025, patched through issue_patch, and ends with the signed line. The round-1 card and grader change is unchanged.",
     "tests": "At c8ab4e48: `pnpm --filter @objectstack/scenarios build && typecheck && test` under os-verify-lock: VERDICT command-exit 0, Test Files 39 passed (39), Tests 1126 passed (1126). This run was at 5a802de5; the later commit c8ab4e48 touches only the README and the changeset. New pins: summary.test.ts covers two hashes refused (line names both hashes and a1.json, a2.json vs b.json; exit 1), stamped vs unstamped refused, one hash summed with the dims line naming it, and unstamped printing no `card:`. orchestrate.test.ts covers runRecord stamping top-level card and scorecard cardStamp, the scorecard printing the line, a one-character card edit moving the hash, and no key and no line without a stamp. Ablations via scripts/ablation-replace.mjs (anchor 1->0, restore blob == HEAD, git diff HEAD empty; tests import src): dropping 'card' from TABLE_DIMENSIONS gave Tests 3 failed | 24 passed (27); deleting the cardStampText render line gave Tests 1 failed | 143 passed (144). Round-1 pins and ablations stand (aggregate 6 failed, relation path 3 failed). The round-1 replay regrade (operation NOT MEASURED, replay not faithful; offline grade fails on status alone) was not repeated: the stamp commits change no grade.",
     "gates": "Local at c8ab4e48: `dispatch-gates --commands --repo objectstack-ai/objectstack` derived 70 families. Each ran with its exit captured before any pipe: 68 exit 0, and 2 exit 3 (NOT MEASURED): `node scripts/check-plugin-teardown-shape.mjs --self-test` (fixture commit outside the shallow clone) and `pnpm check:dual-build-cjs-loads` (needs the whole workspace dist after the merge). `--ran`: 70 derived, 68 run, 2 NOT-MEASURED, 0 UNRUN. overlap-check at c8ab4e48: VERDICT clean exit 0 (origin/main eb7b09d4, #35064 sharing test/runner/orchestrate.test.ts, #35022). Branch claude/issue-35058-asks-after-comma has no PR; its files merge cleanly with this head (merge-tree, empty attr source, exit 0). check-nul-bytes: exit 0. PR check-runs at c8ab4e48 when read: Lint & Repo Gates success, TypeScript Type Check success, Test Core success (shards 1-7 of 10 read success), Build Core success, Test UI success, Live E2E UI success, Dogfood Regression Gate success; Check Changeset and PR-body guards in_progress.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "Round 2: 3 — post-stamped claim amendment comment 6966396612 (POST /repos/objectstack-ai/objectstack/issues/35025/comments); relay issue_patch of the PR body (PATCH /repos/objectstack-ai/objectstack/issues/35044, run 44217672283, read-back identical 13667 bytes); post-stamped os-dev-report round-2 comment (POST /repos/objectstack-ai/objectstack/issues/35025/comments). Round 1: 2 (pr_create with assignee; report comment 6964789623). git push is not REST.",
     "open_questions": [
      {
       "question": "The dispatch order puts two HTML comments in the PR body: the attribution first line and a `signed:` last line. os-dev.md bans dev-written HTML comments and says the file wins when the two disagree. Which applies?",
       "options": [
        "A keep the seat's signed line (it survives read-back)",
        "B drop it and sign in prose"
       ],
       "recommendation": "A, because read-back keeps it intact. I followed the dispatch and am flagging the conflict rather than quietly choosing a side."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: a · reach: `run-scenarios --modes ask --packages workspace --driver recorded:/mnt/project-files/issue-34869/skill-iter/iter2/ask.rec.json` reads file_and_submit_from_text NOT MEASURED ('run_action was refused HOOK_ABORTED in the recorded run and refused RECORD_NOT_FOUND on replay') · evidence: RecordedDriver createdIdOf (packages/qa/scenarios/src/runner/driver.ts) reads only a top-level `id`. The run_action that created the claim answered `{ok, action, objectName, result: {id}}`, so its new id was never remapped, and the next run_action's recordId was sent with the recorded id. driver.ts is #35064's surface · dedupe words: RecordedDriver createdIdOf run_action result.id remap, replay not faithful RECORD_NOT_FOUND, recorded driver created id nested"
     ]
    }
  7. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9rnXEpD9ne7yFhD
    os-dev-report

    Round 3, reported 2026-11-18T02:32Z for PR #35044 at head b2d22c5.

    {
     "issue": 35025,
     "status": "done",
     "branch": "claude/issue-35025-per-type-amounts",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35044",
     "session": "session_01WGufziH9rnXEpD9ne7yFhD",
     "premise_still_valid": true,
     "summary": "Round 3 (S1). New head b2d22c5f. The loader now hashes the very bytes it parses (`LoadedScenario.fileSha256`, set in loadOne from one readFileSync buffer), and cli.ts stamps each run from that through `loadedCardStamp`, never a second read after runCard. This mirrors the supplied-template path. A card edited mid-run keeps its load-time hash, and a card moved or deleted mid-run still gets its record, and so do the remaining cards. The scorecard.ts doc, the README and the changeset now state this. n1 to n3 are unchanged as ruled, and the signed line stays (option A). The PR body was patched for the new readings and the S1 behaviour.",
     "tests": "At b2d22c5f: `pnpm --filter @objectstack/scenarios build && typecheck && test` under os-verify-lock: VERDICT command-exit 0, Test Files 39 passed (39), Tests 1128 passed (1128). New pins in test/runner/orchestrate.test.ts (card-stamp describe) load a temp copy of travel_expense.json. Edited between load and record write: the record's card equals the load-time hash, and the edited file's hash differs. Deleted between load and record write: the record is still written, with the load-time hash. Ablation via scripts/ablation-replace.mjs (anchor 1->0, restore blob == HEAD, git diff HEAD empty), with loadedCardStamp put back to a re-read (`suppliedTemplateOf(loaded.file).sha256`): Tests 2 failed | 2 passed | 142 skipped (146) under -t 'card stamp'. The edited pin fails on the hash; the deleted pin fails with ENOENT. The first ablation attempt never acquired the lock (exit 99, queue-timeout behind another seat's replay, pid 6990); the retry with the same slot ran after 78s.",
     "gates": "Local at b2d22c5f: dispatch-gates --commands derived 70 families. Each ran with its exit captured: 68 exit 0, and 2 exit 3 (NOT MEASURED): check-plugin-teardown-shape --self-test (fixture commit outside the shallow clone) and check:dual-build-cjs-loads (needs the whole workspace dist). --ran: 70 derived, 68 run, 2 NOT-MEASURED, 0 UNRUN. overlap-check: VERDICT clean exit 0 against origin/main a3e216ef, with 0 open PRs sharing a file. check-nul-bytes: exit 0. CI check-runs on b2d22c5f: not read, not awaited.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "Round 3: 2 — relay issue_patch of the PR body (PATCH /repos/objectstack-ai/objectstack/issues/35044, run 44223877229, read-back identical 14279 bytes); post-stamped round-3 os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35025/comments). git push is not REST.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: a · reach: replay of iter2 recording reads file_and_submit_from_text NOT MEASURED (RECORD_NOT_FOUND vs recorded HOOK_ABORTED) · evidence: RecordedDriver createdIdOf reads only a top-level `id`, so run_action's nested result.id is never remapped (unchanged since round 1; driver.ts is #35064's surface) · dedupe words: RecordedDriver createdIdOf run_action result.id remap"
     ]
    }
  8. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9rnXEpD9ne7yFhD

    Landed · area o3-F · 2026-11-18T03:28Z · PR #35044 merged at 2026-11-18T03:27Z (526282e). file_and_submit_from_text checks per-type amounts (either line shape passes), and each run record and scorecard carries the card's {id, sha256}, hashed from the bytes the loader parsed; summaries refuse to mix card hashes. Lease cleared. Area o3-F has nothing left in hand (hand-offs: #34996 6968024016, #34869 6968037240).

  9. removed
    pm:dispatched
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:devxfindingpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions