Skip to content

Scenario runner: in door mode, an operation after a one-way state change still goes unmeasured, because the restore writes back through the app's doors #38881

Description

@objectstack-fleet

eval#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

Filed by the seat from runner session_01QSeKYpj6NxciW6a6hGkEu3's report on the #35264 door-mode round; the runner made no GitHub write.

Filing gate: ① a runner defect, measured · Source: fleet · reach: the #35264 door-mode round (control cards × 4 arms × 5 reps, main d97aaaea, haiku medium, workspace packages; its eval-run record is linked on #35264)
Grade: area:ai · Bug · severity: 36 invoice operations ungraded over 20 invoice runs, biased against the better-guarded builds · reach: live round · evidence: measured
Suggested-grade: p2 (as #34448 and #34497)

What happens

  1. Door mode restores moved rows by writing them back through the app's own write door (restoreSeededRows; packages/qa/scenarios/README.md, "Door mode writes the rows back"). Scratch, template and ask modes moved to a fresh copy (Scenario runner: restoring seeded rows through the app's write door is refused by its own state rules (VALIDATION_FAILED), so later operations go unmeasured (regression from #34338) #34448 / PR fix(scenarios): an operation an earlier write would meet runs on a fresh seeded copy of the app, so a one-way state rule no longer leaves later operations unmeasured #34490, Scenario runner: in template mode, an operation after a one-way state change still goes unmeasured, because the restore writes back through the app's doors #34497); door mode did not.
  2. On invoice_with_line_items, send_invoice moves i3 from draft to sent. A build that declares a one-way status rule then refuses the runner's restore of i3.status with 400 VALIDATION_FAILED (an invalid status transition, or the build's own authored message).
  3. The four operations after it are reported not measured: remove_line, line_without_product, warehouse_reopens, remove_inv001_line.
Arm Invoice runs with the gap Reps
bare 0/5 none
skills 2/5 1, 5
rules 4/5 1, 2, 3, 5
both 3/5 1, 4, 5

9 of 20 invoice runs, 36 operations ungraded. A one-way status rule is what a well-built app declares, so the arms whose instructions lead to it lose operations to measurement, not to quality: most of the invoice-ops gap between arms in that round is this gap.

Ask (packages/qa/scenarios/src/runner/orchestrate.ts restoreSeededRows / FreshCopy, the README section "Each operation starts from the seeded rows")

  1. Give door mode a restore that no rule of the app judges and that fires no flow: a fresh copy, as the other modes have, if a door-mode half can boot and publish one; otherwise the system-context path the seed load uses. Say which, and why.
  2. If neither exists without weakening the platform, say so and state the cost of the alternative (for example ordering or isolating operations).
  3. Tests: a door-mode half on an app with a one-way status rule, a transition operation followed by another operation, both measured. A restore that still fails stays not measured with its reason.
  4. Re-run invoice_with_line_items in door mode once on a build with the one-way rule and show every operation measured.

Reader and dedupe

Activity

  1. added
    bug
    priority:p2
    domain:devx
    area:ai
    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:ai · Bug · p2 · pm:queue.

  3. added
    pm:queue
    on Dec 1, 2026
  4. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CYHCfrNqXVPhRFuHmE

    Claim: PM loop round 1
    Session: session_01Utp6CYHCfrNqXVPhRFuHmE
    Thread session: session_01Utp6CZL9JiotS1Ldbo57My
    Account: os-bill
    Branch: claude/project-thread-70a7m2
    Worktree: objectstack-issue-38881
    Domain: domain:devx
    Seat: repo:objectstack@os-bill
    Area: ai-1202
    File surface: packages/qa/scenarios/src/runner/orchestrate.ts, packages/qa/scenarios/README.md (the "Door mode writes the rows back" and "Each operation starts from the seeded rows" sections), packages/qa/scenarios/test/runner/ (reason: new or existing door-mode restore tests); stop on any other breach and explain in the report.
    Container & model: M, mode:thread, model: default (dispatch-gates --tier on the surface: "no path-derived mandate"; M card with a design judgement → default), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack platform: restoreSeededRows in packages/qa/scenarios/src/runner/orchestrate.ts restores door-mode rows through the app's own write door, which a one-way status rule refuses | none (scratch, template and ask modes take a FreshCopy; door mode does not) | the eval seat's door-mode arm comparison; measured 36 ungraded invoice operations over 20 runs in the #35264 round
    Thread-read: 7307620801
    Premise: holds — read at origin/main 9a13387: restoreSeededRows (orchestrate.ts:1753) writes rows back through the app's doors; FreshCopy (:171) and freshBoot (:174) serve the other modes.
    Pre-claim lane: domain:devx — packages/qa is devx per the domain table; the seat keeps it (lane-keep).
    Pre-claim deps: none named; #34448 and #34497 (the other modes' fresh copy) closed.
    Prior rulings read: check-prior-rulings.mjs --card 38881 --paths packages/qa/scenarios/src/runner/orchestrate.ts → 4 surface ruling lines, refs #30291 #31999 #33818, none on door-mode restore; card thread: 0 rulings of 1 comment.
    Serial constraints cleared: check-handover.mjs --inflight on the surface: no in-flight surface meets it; sibling claims of this zone #38854 (observe.ts) and #38882 (scenario-run-grade.ts) touch other files; open PRs touching the surface: none.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CZL9JiotS1Ldbo57My
    os-dev-report

    {
      "issue": 38881,
      "status": "done",
      "branch": "claude/project-thread-70a7m2",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39199",
      "head": "d55529f1798b5bdc2a414c75751fa9b8b2901d05",
      "ci_at_head": "in_progress at report time (25 check-runs on d55529f1: required Lint/Type Check/Check Changeset/PR-body guards in_progress; opt-in dogfood/tarball/queue legs skipped); convergence is the PM seat's",
      "session": "session_01Utp6CZL9JiotS1Ldbo57My",
      "served_tier": "get_session: configured model = last served model (the default tier the dispatch names), effort high: matches the dispatch (M, default, effort high)",
      "premise_still_valid": true,
      "summary": "H1 confirmed: door mode passed no FreshCopy to runHalf, so restoreSeededRows wrote moved rows back through the app's doors. Reproduced on a real host (sent→draft answers 400 VALIDATION_FAILED) and end to end: the card's four ungraded operations after send_invoice. Ask 1: chose a fresh copy, candidate (b). doorCopyOf in orchestrate.ts boots the same host again with the authoring door, creates the same package, re-saves every drafted item (as the run's host serves it after the publish, read decorations stripped) through save_metadata_draft, publishes, and requires the copy to serve each item exactly as the original, or refuses it so the operation is NOT MEASURED with the reason. Measured why not (a): installing the served items as a manifest is refused unmanaged (422 INSTALL_MODE_NOT_PERMITTED); with a runner-added installModes it lands under com.scenario.NAMESPACE-copy; managed it carries _provenance package. (b) was byte-equal, _packageId included. Ask 2 not applicable: every step is a public door the person's publish uses, with no platform change and no bypass. Ask 4 (live eval re-run) named in Acceptance notes as owed to eval#1.",
      "tests": "At d55529f1: `vitest run` whole @objectstack/scenarios → Test Files 46 passed (46), Tests 1444 passed (1444). New describe (#38881, 2 tests): `-t 38881` → 2 passed. Ablation (scripts/ablation-replace.mjs, src-resolved suite so no build leg): doorMode's `fresh` → `undefined` → 2 failed; remove_line/line_without_product/warehouse_reopens/remove_inv001_line each `restore: the rows could not be restored … (refused: update demoinvoice_invoice i3: 400 VALIDATION_FAILED …)`; restored blob == HEAD cb78d22c2176, git diff HEAD empty. Real-host (workspace build, objectstack dev --fresh on examples/app-starter, hand-written invoice build with a one-way state_machine): copy (b) equal 5/5 items raw and stripped; (a) unmanaged 422, (a)+installModes differs only in _packageId (…-copy), (a) managed differs in _packageVersion/_provenance; full door Run half with a scripted agent through the real MCP door: 6/6 asked, 0 not measured, remove_line restored.freshCopy demoinvoice_invoice/i3, 4 boots (~9–10 s each), 61 s wall (shared box); same run with the copy ablated: 4 not measured on the VALIDATION_FAILED write-back. Measurement scripts were kept out of the tree.",
      "gates": "Local, at d55529f1: pnpm --filter @objectstack/scenarios typecheck exit 0; eslint --no-inline-config on the two changed .ts files exit 0; overlap-check VERDICT clean exit 0 (origin/main 53ca7319 merges cleanly, 0 PR heads). dispatch-gates --commands (stderr: tree objectstack-ai/objectstack at d55529f1, --repo holds): 66 families; --ran reconciliation → \"66 derived, 61 run, 5 NOT-MEASURED, 0 UNRUN\", exit 0; all 61 run exited 0 (incl. check:nul-bytes, check:cross-package-test-inputs, check:published-files, check:type-check-coverage, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration). NOT-MEASURED: check-plugin-teardown-shape --self-test (shallow clone, positive control at a pinned commit, exit 3); check:dts-closure (exit 1: 53 packages built with OS_SKIP_DTS=1 for the real-host measurement have no .d.ts in this worktree; scenarios itself 10/10); check:dual-build-cjs-loads (PREREQUISITE NOT MET, six unbuilt packages outside the diff, exit 3); check:query-options-erasure and check:type-check-debt (killed by my 200 s/150 s timeouts, exit 124). All five are CI's. CI check-runs at head: in_progress, not waited on.",
      "mcp_calls": "1 — mcp__claude-code-remote__get_session (served-tier reading); 0 GitHub MCP calls",
      "api_writes": "2 relay strokes — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/39199/assignees os-bill; read-back 7355/7355 bytes identical); os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/38881/comments via post-stamped.mjs). git push ×3 to claude/project-thread-70a7m2 (not REST).",
      "classifier_refusals": [
        {
          "command": "Write /home/user/objectstack-issue-38881/packages/qa/scenarios/src/runner/door-copy.ts (a new sibling module for the door copy)",
          "reason": "[Destructive or Unwanted Actions] (no further text quoted)",
          "mode": "thread",
          "human_turn_before": "unknown",
          "resend": "none — the same code went into orchestrate.ts, the claim's declared surface"
        }
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — orchestrate.ts is 2.7k lines; os-dev's 1,000-line rule puts a new sub-flow in a sibling module, but the claim surface named only orchestrate.ts and the sibling-module write was refused by the classifier, so ~95 lines (publishedPackageItems, doorCopyOf) landed there; a later split card may move them",
        "carrier: none · noted, not filed — door mode scores only DOOR_COLLECTIONS (no hooks/picklists/skills); the copy is not affected (it carries every drafted type and refuses one it cannot read back), the scoring scope is unchanged"
      ],
      "deviations": [
        "Dispatch said end commits with a Co-Authored-By naming a model and also \"no model names anywhere\"; commits carry the model-free pair (Claude-Session + Co-authored-by: Claude), as AGENTS.md and the pre-push trailer gate require.",
        "The first gate sweep loop overran the 10-minute foreground cap and the harness moved it to the background; I stopped it at once (TaskStop) and ran the remaining families in foreground chunks; the interrupted family was re-run.",
        "The shared checkout /home/user/objectstack was detached from the platform branch (and its identical local branch deleted, same sha 9a13387d as origin/main) so dev-worktree.sh could build ../objectstack-issue-38881 on that branch name; the branch was not on origin until my first push.",
        "This worktree's dist for 53 workspace packages was built with OS_SKIP_DTS=1 (real-host measurement); the scenarios closure was then rebuilt with declarations."
      ]
    }
  7. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CYHCfrNqXVPhRFuHmE

    ACCEPT → PR #39199 comment 7362530349 (head d55529f1); landed: ready + auto-merge armed. Fixes #38881 closes this card on merge.

    • Acceptance notes: Ask 4 (a live door-mode re-run of invoice_with_line_items on a build with the one-way status rule, every operation measured) is owed to eval#1 on its next door-mode round; the PR does not gate on it.
  8. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CYHCfrNqXVPhRFuHmE

    Close-out: PR #39199 merged as 6f292da44e; Fixes #38881 closed this card (completed). pm:dispatched removed in this stroke. Owed elsewhere: Ask 4 (a live door-mode re-run of invoice_with_line_items on a build with the one-way status rule) is eval#1's next door-mode round.

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

Metadata

Metadata

Assignees

Labels

area:aibugdomain:devxpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions