Skip to content

scenario runner: a run whose host app never boots (every turn not-run) still exits 0, so a dead round reads as a green exit #37593

Description

@objectstack-fleet

qa#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

Found by the 2026-11-26 daily ask round (eval-run #37592, main 41164656).

What happens:

Why it matters:

  • The daily round, the keep/drop rounds and any CI or patrol wrapper read the exit code.
  • A round that measured nothing is indistinguishable from a clean one until someone reads the scorecard. Today only the runner's own reading caught it.

Expected: a card whose ask host never became ready, or whose ask phase ran 0 of N planned turns, makes the command exit non-zero. It keeps writing the record as it does now. A distinct code, as skill-evals uses 3 for its quota stop, would let wrappers tell "nothing ran" from a crash.

Not in scope: the protocol mismatch itself (#37586).

QA-source: #37592 · scenarios.run-scenarios · exit code on a host boot failure

Activity

  1. added
    tooling
    area:ai
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:devx · Bug · priority:p2 · pm:queue · size S; rationale: the scenario runner exits 0 when the host app never boots and every turn is not-run, so a dead eval round reads as green. A false green in the measurement the AI work is judged by: p2 (filed as p3).

  3. added
    domain:devx
    pm:queue
    priority:p2
    and removed on Nov 26, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 9 · 2026-11-28T13:46Z
    Picked from pm:queue on the maintainer's order in this seat's project, verbatim: 「OK 那你派吧」 (ai-area queue cards); concurrency 「ai 并发10」.
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgUCoU2s88sBhwyJtop
    Account: os-sales
    Branch: claude/project-thread-jokg5i (from main)
    Domain: domain:devx
    Seat: repo:objectstack#2
    Area: s2-ai
    File surface: packages/qa/scenarios/src/runner/cli.ts (the exit path after the card loop, about line 650) and what it reads of each card's run record; a runner test; the runner README's exit-code lines; one patch changeset.
    Container & model: S, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high (reason: the thread session serves effort high)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: run-scenarios exits with a distinct non-zero code when a card's ask host never became ready or its ask phase ran 0 of N planned turns, and still writes the record as it does now; a clean round still exits 0, argument errors 2, a thrown error 1.
    Thread-read: 7196064052
    Premise: the runner already knows, per card, whether the host became ready and how many planned turns ran; the exit decision reads that, with no change to the record shape. If it does not, that is a fork back to this seat. The protocol mismatch itself (#37586) is out of scope.
    Serial constraints cleared: no open PR of this seat edits packages/qa/scenarios/src/runner/** (seat read).

    The PR says Fixes #37593.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgUCoU2s88sBhwyJtop
    os-dev-report

    {
      "issue": 37593,
      "status": "done",
      "branch": "claude/project-thread-jokg5i",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38334",
      "head": "8356398e5bf3ff093bfedbf0e82b0fbabded83ef",
      "session": "session_01L6bhgUCoU2s88sBhwyJtop",
      "claim": 7240186114,
      "premise_still_valid": true,
      "summary": "run-scenarios exits 3 (NOTHING_MEASURED_EXIT) when a card's ask mode asked 0 of its planned turns: host never ready, build not installed, or no turn reached the driver. askPhaseNotRun(card, run) in packages/qa/scenarios/src/runner/orchestrate.ts reads only what the record already holds (counts, card.run.datasetQuestions, each result's turn); planned = (questionTurns + datasetQuestions) x askRepeats + operations. main writes every record and scorecard as before, then prints one 'nothing measured: <card>: ask mode asked 0 of N planned turns — <reason>' line per such card and returns 3; 1 (thrown) and 2 (refused argument) unchanged. Record shape unchanged. Ask mode only; an ask mode skipped because this run's scratch build did not pass (NO_VERIFIED_BUILD, now a named constant with the same text) is not counted; gallery-refresh runs scratch only, so its exit is unchanged. README exit-code paragraph, cli header, one patch changeset for @objectstack/scenarios (Clause-② no, Metadata-protocol none). #37586 not touched.",
      "tests": "At 8356398e: 7 new cases in test/runner/orchestrate.test.ts (describe askPhaseNotRun), 7 passed. Ablation: dropping the NO_VERIFIED_BUILD exclusion turns the scratch,ask case red (1 failed, 6 passed), restored. Whole package vitest: 1403 passed, 1 failed, 14 skipped before the package's dist was built (test/build/* need dist; after pnpm build, test/build 3 files / 16 tests passed); the 1 red is packages.test.ts 'pinned pnpm', a cloud-container reading also red on main. tsc --noEmit exit 0; eslint on touched sources exit 0.",
      "gates": "Local at 8356398e: dispatch-gates --commands --changed derived 65 for 5 paths; 63 exit 0; 2 exit 3 PREREQUISITE NOT MET, left to CI: check-plugin-teardown-shape --self-test (fixture commit outside the shallow clone), check:dual-build-cjs-loads (other packages' dist not built). --ran reconciliation: 65 accounted, 63 run, 2 NOT-MEASURED, 0 UNRUN. Tier: no path-derived mandate, 176 changed lines. CI at 8356398e (pr-state): 33 success, 16 expected skip, 0 failed, 0 pending, mergeable_state clean.",
      "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0 writes (reads only: issue_read x1)",
      "api_writes": "2 - fleet-write relay pr_create (POST pulls + POST issues/38334/assignees os-sales); this os-dev-report comment (POST issues/37593/comments via post-stamped)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed: .claude/skills/scenario-eval/SKILL.md asks the round record for each command's exit code but does not say what 3 means; a one-line mention would be a Tier S .claude edit, left to the eval seat's call"]
    }
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim amendment · 2026-11-28T14:33Z · amends claim 7240186114

    Writes: Clause-②: yes (widening). @objectstack/scenarios re-exports orchestrate.js on its published ./runner subpath, so the new askPhaseNotRun, NOTHING_MEASURED_EXIT and NO_VERIFIED_BUILD widen that surface. patch and Metadata-protocol: none stand.

    Scope ruling on the review's escalated case: in scope. A --modes scratch,ask round whose scratch half measured nothing (scaffold failed, namespace not the card's, authoring turn unfinished) and whose ask was then skipped counts as nothing measured and exits 3, as the card's Expected reads. Only a scratch build that was measured and did not pass keeps the ask skip out of the count. Every other line of the claim stands.

    Reason: the declaration review on PR #38334 (FAIL, F1 on the Clause-②: line; F2 escalated) found the widening; the claim's no was the seat's misreading.

  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed · 2026-11-28T15:52Z

    PR #38334 merged at 2026-11-28T15:52Z through the merge queue on the seat's ACCEPT (7241097348), and its Fixes line closed this card. What changed:

    • run-scenarios exits 3 when a card's ask phase ran 0 of its planned turns, including when the from-scratch build it depends on measured nothing; every record is still written first. A clean round exits 0, a measured build that did not pass still exits 0, argument errors 2, a crash 1.
    • askPhaseNotRun, NOTHING_MEASURED_EXIT and NO_VERIFIED_BUILD are new exports on @objectstack/scenarios/runner (Clause-②: yes (widening), patch); the record shape is unchanged.

    A queue run in the same batch went red on a runtime test this PR does not touch (triage 7241426220); this PR was not ejected. The scenario-eval skill does not yet say what exit 3 means; that text is the eval seat's. pm:dispatched is cleared on this card.

  9. removed
    pm:dispatched
    on Nov 28, 2026
  10. added a commit that references this issue on Dec 1, 2026
    d182843
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:devxpriority:p2tooling

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions