Skip to content

fix(scenarios): run-scenarios exits 3 when a card's ask mode asked none of its planned turns - #38334

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-jokg5i
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-jokg5i

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #37593

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:跑场景评测的人会看到区别。以前问答模式的宿主应用没起来、一题都没问成,命令照样“成功”退出(0),要翻记分表才知道这一轮白跑了;现在这种情况命令以 3 退出,并打印一行“nothing measured: 哪张卡、计划几轮、0 轮问成、原因”。记录文件照写,内容一字不变。
  • 为什么做:每日问数轮、保留/去掉对比轮和巡检脚本都看退出码,白跑的一轮不能看起来和正常一轮一样。3 和崩溃(1)、参数错(2)分开,和 skill-evals 额度停用的 3 同义:这一轮没量到该量的。
  • 出错会怎样:只影响评测命令的退出码;只看问答模式,建站(scratch / template / door)模式和图库刷新(只跑 scratch)的退出码不变。
  • 要你做的:无。

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 times askRepeats, plus its operations (counts, card.run.datasetQuestions). Asked turns are the results that carry a turn. 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), or no turn reached the driver. NOTHING_MEASURED_EXIT = 3 sits beside it. The skip text NO_VERIFIED_BUILD is now a named constant, used where it was written before; the text is unchanged.
  • packages/qa/scenarios/src/runner/cli.ts: main writes every record and prints every scorecard as before. It then prints one nothing measured: … line per such card plus a closing exit 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.
  • New exports on the published ./runner entry (runner/index.ts re-exports orchestrate.js): askPhaseNotRun, NOTHING_MEASURED_EXIT, NO_VERIFIED_BUILD. That widens the public surface, hence Clause-②: yes (widening).
  • Changeset: @objectstack/scenarios patch.

Decided in the thread (small, listed per the dev-thread rule):

  • Ask mode only. Scratch, template and door modes run an authoring turn first, and its Build half is a measurement however the rest goes. An ask mode skipped because the same run's scratch build was measured and did not pass (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-refresh runs --modes scratch only and refuses on any non-zero exit, so it is unaffected.
  • Any card. One dead card in a multi-card round makes the round exit 3. The other cards' records are written all the same.
  • Every turn failing before the driver ran it counts as nothing measured too (for example spawn claude ENOENT on every ask). So does a seed whose refusals leave every turn not measured. One turn asked is enough to measure something.
  • The record shape is unchanged. Nothing is stamped into it; the judgment reads counts and each result's turn, as the claim asked.

Acceptance notes

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 with askRepeats: 2 (planned 38); install refused; --modes scratch,ask with a degraded scratch build; scratch only with a failing boot; dataset questions counted × repeats; nothing planned.
  • Ablation: dropping the NO_VERIFIED_BUILD exclusion turns the scratch,ask case red (1 failed, 6 passed); restored.
  • Round 2 (2706d16): the scratch,ask case gains an authoring turn the timeout killed and a failed scaffold, each now 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.ts whole file: 187 passed. tsc --noEmit exit 0; eslint on the touched files exit 0.
  • npx vitest run (whole package, before its own dist/ was built): Test Files 42 passed, 3 failed (45); Tests 1403 passed, 1 failed, 14 skipped. Two of the red files are test/build/*, which need the package's dist/ ("build @objectstack/scenarios first"); after pnpm build of the package, npx vitest run test/build: Test Files 3 passed, Tests 16 passed. The third red is test/runner/packages.test.ts › "every install ran the workspace's pinned pnpm": a cloud-container reading that fails on main too. CI is the reading of record for it.
  • npx tsc --noEmit (packages/qa/scenarios): exit 0. npx eslint on 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) and check:dual-build-cjs-loads (reads every package's dist/). --ran reconciliation: 65 accounted, 63 run, 2 NOT-MEASURED, 0 UNRUN.
  • PR checks at 8356398: 33 success, 16 expected skip, 0 failed, 0 pending, mergeable_state clean (pr-state.mjs).

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (packages/spec untouched)
  • 2. Every name I added uses the casing for its kind (askPhaseNotRun, NOTHING_MEASURED_EXIT, NO_VERIFIED_BUILD).
  • 3. No formatter ran; eslint passes on the touched files.
  • 4. One issue, one branch off an up-to-date main, one pull request. (branch claude/project-thread-jokg5i is the harness-assigned name)
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English (the 维护者速读 block is the maintainer summary).
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgUCoU2s88sBhwyJtop

…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
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

4 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. ⚠️ 2 changed file(s) yielded no anchor (packages/qa/scenarios/README.md, packages/qa/scenarios/src/runner/cli.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/qa/scenarios/README.md, packages/qa/scenarios/src/runner/cli.ts) — pages documenting those are invisible to this run
  • the SDK route bridge reached 69 of 253 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 125 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json f38a3ca8469368dcdcca177f4b8a94ba9ac5bf1d → packageMentionDocs.

Which tree this was computed on

This run read content/docs from e7dcfef8e0096b46dc2537048e96e8cd2896b7f2 — the merge of head 2706d16a9812302433fd93b806ac22f6961480dd into base f38a3ca8469368dcdcca177f4b8a94ba9ac5bf1d, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 8356398e5bf3ff093bfedbf0e82b0fbabded83ef
Local-runs: none

Inputs read: card #37593 (body, triage 7196064052, claim 7240186114, dev report 7240679073), the PR #38334 body and its 5 files, the net diff against main (1 ahead, merge base 600197a6), and the 53 check-runs on the head: 37 success, 16 skipped, 0 failure, 0 pending. Code outside the diff was read on main only to judge the diff.

① Derived judgments

  • Public surface: three new exports on the published ./runner entry. The declaration is wrong. packages/qa/scenarios/src/runner/index.ts re-exports orchestrate.js wholesale (export * from './orchestrate.js'). The ./runner subpath of @objectstack/scenarios is in the package's export map and has a built entry. The diff adds askPhaseNotRun, NOTHING_MEASURED_EXIT and NO_VERIFIED_BUILD as exports of orchestrate.ts, so all three ship on ./runner. The PR body, the changeset and the claim all say Clause-②: no, and none of them names these exports.
  • Public surface: the published command's exit code. objectstack-scenarios run and run-scenarios now exit 3 in a case that used to exit 0. bin/objectstack-scenarios.js passes main's return to process.exit. The changeset body, the README "Exit code" paragraph and the cli.ts header all state this. Named right.
  • Run record shape: unchanged. askPhaseNotRun only reads run.counts, run.askRepeats, card.run.datasetQuestions, mode.skipped, mode.run and each result's turn, and it writes nothing. main calls it after writeRecord and the scorecard print. The new test pins the record's top-level keys. Named right, and it matches the claim's premise.
  • NO_VERIFIED_BUILD: the skip text is byte-identical to the literal it replaces at the single assignment site in withInstalledBuild. Records keep the same skipped string. Named right.
  • Accept set: none. No flag, argument, card key or schema is added, refused or changed. Named right.
  • Exit 3 collisions: none. On main, cli.ts main returns only 0 and 2, and a thrown error becomes 1 in both wrappers. The bin's other commands (summary, export-gallery --check) use 0 and 1. gallery-refresh (export/refresh.ts runnerArgv) passes --modes scratch only and refuses any non-zero code, so it is unaffected. No workflow under .github/ and no script under scripts/ invokes run-scenarios. skill-evals is a separate command, and its 3 (quota stop, turns not run) means the same thing. Named right.
  • Partly measured round. If any one card's ask mode asks 0 of its planned turns, the round exits 3, every card's record is still written, and the closing line says how many of the round's cards measured nothing. The card asks for "a card whose ask host never became ready … makes the command exit non-zero", so per-card is the right unit. Named right.

② Semver level

  • Changeset: '@objectstack/scenarios': patch, with Metadata-protocol: none. Patch is the right level. This is a non-protocol change in a released package, and AGENTS.md (Post-Task Checklist step 3) has such a change ship patch whether or not it widens. Metadata-protocol: none is right: nothing a metadata author writes changes.
  • Clause-② line: wrong. CONTRIBUTING.md defines Clause-② as whether the change widens or narrows what a published package accepts or exposes, its accept set or its public surface. Three new ./runner exports (① first bullet) are a widening of a published public surface. This package's own CHANGELOG declares that exact shape as Clause-②: yes (widening). For example, bd22740 reads "new exports confirmTurnMetNoConfirmationService and SEED_POSTURE on the ./runner entry", and it shipped under Patch Changes. The line also decides the release-notes section (docs/releases-maintenance.md: a non-breaking Clause-②: yes widening goes to the new-capability group, not the other-fixes group).
  • F1, the fix: in both the PR body and the changeset body, change the line to Clause-②: yes (widening) and name the three new ./runner exports (askPhaseNotRun, NOTHING_MEASURED_EXIT, NO_VERIFIED_BUILD). Keep patch and Metadata-protocol: none. The Check Changeset success does not cover this: that gate reads the line's form and the level rule, not whether the declaration matches the diff.

③ Boundary flags

  • open_questions: empty. There is nothing to answer.

  • security_findings: none reported, and none found in the diff.

  • Out of scope (dev): .claude/skills/scenario-eval/SKILL.md asks the round record for each command's exit code but does not say what 3 means. Agreed, it is out of scope for this card. It belongs to the eval seat as a small .claude follow-up, and it does not block this PR.

  • F2: the scratch-failure exclusion leaves one kind of dead round with exit 0. Escalated to the seat. askPhaseNotRun returns undefined whenever the ask mode's skipped equals NO_VERIFIED_BUILD. The thread's reason is that the scratch build's Build half is the round's measurement. On main, though, scratchMode also leaves no passing build when nothing was measured at all:

    • the scaffold failed (mode.skipped = 'scaffold failed: …', no Build half);
    • the scaffolded namespace is not the card's (skipped, no Build half);
    • the authoring turn did not finish (mode.build.notMeasured, "not measured").

    In each case buildPassed is false, verified stays unset, ask mode is skipped with NO_VERIFIED_BUILD, and the --modes scratch,ask round exits 0 having measured nothing. The card's Expected ("whose ask phase ran 0 of N planned turns") and the claim's Responsibility cover this case literally. The daily ask round (--modes ask --template F, per the scenario-eval skill) is not affected; this matters only for scratch,ask rounds. Before landing, the seat must either rule this case out of the card's scope, or narrow the exclusion to a scratch mode whose Build half was measured (not skipped, not notMeasured) and did not pass, with a test for a skipped or unmeasured scratch build under scratch,ask.

  • README: the code is stated in "Running the cards — @objectstack/scenarios/runner", the parent section of "Running from npm", whose run hands every flag to the same main. That is enough.

  • SQL push-down (Prime Directive 5): not applicable. The diff counts in memory over the run record's own result arrays. It adds no query, no id materialisation and no join over app data.

Implemented-by: claude/project-thread-jokg5i
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA (isolated contract-review sub-agent)

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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 2706d16a9812302433fd93b806ac22f6961480dd
Local-runs: none

This is a delta review of PR #38334 (card #37593). The new head is one commit on 8356398e, the head of the first review. Inputs:

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

  • Public surface. askPhaseNotRun keeps its signature, so the three ./runner exports from the first review are unchanged. It now also reads the run's scratch mode (skipped, build, build.notMeasured), which the record already holds. It writes nothing, so the run record shape is still unchanged. Named right.

  • The narrowed exclusion is correct. An ask mode skipped with NO_VERIFIED_BUILD is left out of the count only when all three of these hold for the run's scratch mode:

    • skipped is unset;
    • build is present;
    • build.notMeasured is unset.

    BuildHalf.notMeasured is an optional string, set only when the authoring turn did not finish. scratchMode on main sets skipped on a scaffold failure and on a namespace mismatch. So each of these three dead cases is now counted and exits 3: scaffold failed, namespace not the card's, authoring turn unfinished. A Build half that was measured and failed, including one with score: null because no artifact was produced, still leaves the build's fail as the round's result. That is the case the seat's ruling keeps out of the count.

  • No other path is affected. --modes ask and template,ask with no template are refused before any mode runs (askModeRefusal). So NO_VERIFIED_BUILD arises only beside a scratch mode, and the scratch?. guard never has to stand in for a missing scratch mode. A supplied --template still sets verified before scratch runs, so the skip never arises then.

  • Tests.

    • The scratch,ask case now also covers an authoring turn that was killed (asserted notMeasured plus the skip) and a scaffold that failed (asserted scaffold failed: … plus the skip). Each reads 0 of 22 planned turns.
    • The degraded, measured-and-failing build still reads undefined.
    • The namespace-mismatch case has no test of its own. It takes the same scratch.skipped branch as the scaffold case, which is tested.
    • The dev reports that the reverse check turns this case red when the round-1 exclusion is restored. It was not re-run here, as the brief requires.
  • Remark, no effect on the verdict. In the two new counted cases, the reason printed is the NO_VERIFIED_BUILD text ("the from-scratch build did not pass"), although that build was never measured. Changing that text would change the record's skipped string, which the claim keeps fixed. It is left as is.

② Semver level

  • F1: closed. The changeset and the PR body both say Clause-②: yes (widening). Both name the three new ./runner exports: askPhaseNotRun, NOTHING_MEASURED_EXIT, and NO_VERIFIED_BUILD with its bytes unchanged. '@objectstack/scenarios': patch and Metadata-protocol: none are unchanged. Patch beside yes (widening) is the right pairing: scripts/check-changeset-no-major.mjs on main takes the level from the Metadata-protocol: kind alone, and none takes patch. This matches the package's own precedent (bd22740) and claim amendment 7240765067.

③ Boundary flags

  • F2: closed. The seat ruled the case in scope (7240765067), and the new head implements that ruling as written. The changeset, the README "Exit code" paragraph and the askPhaseNotRun jsdoc now each say that a scratch mode which measured no Build half leaves the round with nothing measured, so it exits 3. The PR body's "Decided in the thread" bullet says the same. Scratch-only rounds and gallery-refresh (--modes scratch) are untouched, so the maintainer summary's line that the scratch, template and door modes' own exit is unchanged still holds.
  • open_questions: none in this round. Dev flags: none new.
  • SQL push-down: still not applicable. The delta adds an in-memory find over the record's own modes array.
  • New findings: none.
  • Check-runs on 2706d16a, read at 2026-11-28T14:38Z: 44 runs: 9 success, 18 skipped, 17 in progress, 0 failure. Still running: Check Changeset (two runs), Build Core, Plan Test Core shards, Live E2E UI, Lint · ESLint, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · docs & code guards, the three Lint · scoped jobs, the four Type Check jobs and Flag docs affected by code changes. This verdict covers the contract. The gate verdicts are those runs' conclusions, which the seat reads green on this head before landing.

Implemented-by: claude/project-thread-jokg5i
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA (isolated contract-review sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 2706d16 · card #37593 · area s2-ai · 2026-11-28T14:58Z

L1 checklist

  • Shape and checks. Every check on the head is green apart from expected skips (35 success, 18 skipped); mergeable clean. The PR is a draft. It changes packages/qa/scenarios/src/runner/cli.ts and orchestrate.ts, their tests, the runner README, and adds one changeset. Dev report 7240679073.
  • Contract review at TIER_DEFAULT (declaration face). Record 7240759299 FAILed on F1 (the Clause-②: line: the new exports ship on the published ./runner subpath) and escalated F2 (a scratch,ask round whose scratch half measured nothing still exited 0). The seat ruled F2 in scope and amended the claim (7240765067). Delta record 7240837139 on this head is a PASS: F1 and F2 closed. The seat adopts both records.
  • What changes. run-scenarios now 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; it still writes every record first. A clean round exits 0, a measured build that did not pass still exits 0, argument errors 2, a crash 1. The daily ask round and the keep/drop rounds can now tell "nothing ran" from a pass by the exit code. The record shape is unchanged.
  • Declarations. Clause-②: yes (widening) (askPhaseNotRun, NOTHING_MEASURED_EXIT, NO_VERIFIED_BUILD on @objectstack/scenarios/runner), Metadata-protocol: none, patch. Fixes #37593 is right.

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.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 28, 2026 14:59
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46157471807 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (2/12) — 失败步骤: Run this shard's tests

    @objectstack/runtime:test:  FAIL   local  src/domains/packages-knowledge-source-gate.test.ts > /packages — duplicate admits each knowledge source it copies for the caller (guard two) > a source naming
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: expected "vi.fn()" to be called with arguments: [ { name: 'faq', …(3) }, …(1) ]
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • src/domains/packages-knowledge-source-gate.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 16 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants