Repository navigation
fix(scenarios): run-scenarios exits 3 when a card's ask mode asked none of its planned turns - #38334
Conversation
…ne of its planned turns An ask round whose host app never booted wrote not-run records and still exited 0. askPhaseNotRun reads the record as written (the card's planned turns, each result's turn) and the CLI exits NOTHING_MEASURED_EXIT (3) on any such card, after every record is written. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUCoU2s88sBhwyJtop
📓 Docs Drift Check4 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin e7dcfef8e0096b46dc2537048e96e8cd2896b7f2 && git checkout e7dcfef8e0096b46dc2537048e96e8cd2896b7f2
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f38a3ca8469368dcdcca177f4b8a94ba9ac5bf1d 2706d16a9812302433fd93b806ac22f6961480dd && git checkout -B drift-repro f38a3ca8469368dcdcca177f4b8a94ba9ac5bf1d && git merge --no-ff 2706d16a9812302433fd93b806ac22f6961480dd
node scripts/docs-audit/affected-docs.mjs --json f38a3ca8469368dcdcca177f4b8a94ba9ac5bf1d |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: Inputs read: card #37593 (body, triage 7196064052, claim 7240186114, dev report 7240679073), the PR #38334 body and its 5 files, the net diff against ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: FAIL |
…excuses a dead ask round The NO_VERIFIED_BUILD exclusion now holds only when this run's scratch Build half was measured and did not pass; a scaffold or namespace skip, or an authoring turn that did not finish, leaves the round with nothing measured. The changeset declares the three new ./runner exports. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUCoU2s88sBhwyJtop
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA Contract reviewServed-tier: This is a delta review of PR #38334 (card #37593). The new head is one commit on
The first review's other judgments hold, because nothing else in the diff moved. They covered the record shape, collisions on exit 3, the partly measured round, the accept set and SQL push-down. ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA 席位核对 — ACCEPT · head 2706d16 · card #37593 · area s2-ai · 2026-11-28T14:58ZL1 checklist
Noted, not filed: the scenario-eval skill does not yet say what exit 3 means; that is the eval seat's text. Tier: S. Landing: ready and auto-merge in this stroke. |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46157471807 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Requested by Sales · project thread
Fixes #37593
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
packages/qa/scenarios/src/runner/orchestrate.ts:askPhaseNotRun(card, run)reads a card's ask mode off the record as written. Planned turns are the card's question turns and dataset questions, each timesaskRepeats, plus its operations (counts,card.run.datasetQuestions). Asked turns are the results that carry aturn. When the mode planned turns and asked none, it answers<card>: ask mode asked 0 of N planned turns — <reason>. The reason is the mode's skip, the Run half's error, the first line of its first finding (boot/run: objectstack dev exited before it was ready:, an install refusal), orno turn reached the driver.NOTHING_MEASURED_EXIT = 3sits beside it. The skip textNO_VERIFIED_BUILDis now a named constant, used where it was written before; the text is unchanged.packages/qa/scenarios/src/runner/cli.ts:mainwrites every record and prints every scorecard as before. It then prints onenothing measured: …line per such card plus a closingexit 3: …line, and returns 3. Otherwise it returns 0 as before. 1 (a thrown error) and 2 (a refused argument) are unchanged. The header lists the exit codes.packages/qa/scenarios/README.md(Running the cards): an Exit code paragraph../runnerentry (runner/index.tsre-exportsorchestrate.js):askPhaseNotRun,NOTHING_MEASURED_EXIT,NO_VERIFIED_BUILD. That widens the public surface, henceClause-②: yes (widening).@objectstack/scenariospatch.Decided in the thread (small, listed per the dev-thread rule):
NO_VERIFIED_BUILD,--modes scratch,ask) leaves that build's failure as the round's result, so it does not exit 3. A scratch mode that measured no Build half (scaffold failed, namespace not the card's, authoring turn did not finish) leaves the round with nothing measured, so it exits 3 (review F2, ruled in scope by the seat).gallery-refreshruns--modes scratchonly and refuses on any non-zero exit, so it is unaffected.spawn claude ENOENTon every ask). So does a seed whose refusals leave every turn not measured. One turn asked is enough to measure something.countsand each result'sturn, as the claim asked.Acceptance notes
engines.protocolfromPROTOCOL_VERSION, asos initdoes, so template and runtime agree at every commit #37586).skill-evalsalready exits 3 on its quota stop. The two commands now mean the same by 3: the round did not measure what it planned.Tests
runs
Head 2706d16 (gates and CI below read at 8356398; round 2 changed only the exclusion in
askPhaseNotRun, its tests, the changeset and the README).pnpm turbo run build --filter '@objectstack/scenarios^...': 16 tasks successful.npx vitest run test/runner/orchestrate.test.ts -t askPhaseNotRun(packages/qa/scenarios): 7 passed. The cases: host never ready (boot throws); a clean ask round; every ask throwing before the driver, and one ask succeeding; template namespace mismatch withaskRepeats: 2(planned 38); install refused;--modes scratch,askwith a degraded scratch build; scratch only with a failing boot; dataset questions counted × repeats; nothing planned.NO_VERIFIED_BUILDexclusion turns the scratch,ask case red (1 failed, 6 passed); restored.0 of 22 planned turns — no verified build …. Ablation: restoring the round-1 exclusion turns that case red (1 failed, 6 passed); restored.test/runner/orchestrate.test.tswhole file: 187 passed.tsc --noEmitexit 0; eslint on the touched files exit 0.npx vitest run(whole package, before its owndist/was built): Test Files 42 passed, 3 failed (45); Tests 1403 passed, 1 failed, 14 skipped. Two of the red files aretest/build/*, which need the package'sdist/("build @objectstack/scenarios first"); afterpnpm buildof the package,npx vitest run test/build: Test Files 3 passed, Tests 16 passed. The third red istest/runner/packages.test.ts› "every install ran the workspace's pinned pnpm": a cloud-container reading that fails onmaintoo. CI is the reading of record for it.npx tsc --noEmit(packages/qa/scenarios): exit 0.npx eslinton the three touched sources: exit 0.check-changeset-fixed,check-changeset-no-major,check-empty-changeset: pass.node scripts/pm/dispatch-gates.mjs --commands --changed(tree objectstack-ai/objectstack at 8356398): 65 derived for 5 paths. 63 exit 0; 2 exit 3 (PREREQUISITE NOT MET), left to CI:check-plugin-teardown-shape.mjs --self-test(its fixture commit is outside this shallow clone) andcheck:dual-build-cjs-loads(reads every package'sdist/).--ranreconciliation: 65 accounted, 63 run, 2 NOT-MEASURED, 0 UNRUN.pr-state.mjs).Human Minimum
packages/specholds no runtime logic. (packages/specuntouched)askPhaseNotRun,NOTHING_MEASURED_EXIT,NO_VERIFIED_BUILD).main, one pull request. (branchclaude/project-thread-jokg5iis the harness-assigned name)packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgUCoU2s88sBhwyJtop