Skip to content

fix(scenarios): a thrown live turn is recorded and replays as the same failure; a wrongly cased skill file is refused - #35007

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-34878-thrown-ask-recorded-skill-case
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-34878-thrown-ask-recorded-skill-case

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34878

Clause-②: yes (widening: published @objectstack/scenarios ./runner types ThrownTurn, RecordedTurn and RecordedThrowError, plus one optional field on Recording.turns)
Metadata-protocol: none

维护者速读

  • 改了什么:场景卡评测的录制回放与 --ask-skills 读取各修一处。一是录制时如果一次提问抛了异常,现在会把它记成一个失败的回合,回放时原样再抛一次。二是技能文件名必须正好是 SKILL.md,大小写不对就直接拒绝,并说出找到的文件名。
  • 为什么改:以前抛异常的回合什么也不记,回放时这一步成了"未测量",数据集问题那一行就会从现场的 4/5 变成回放的 4/4,分数虚高。大小写不对的 skill.md 在 macOS 上会让运行崩溃(TypeError),在 Linux 上又被悄悄跳过。
  • 风险与回滚:风险低,只动评测工具,不碰平台运行时。以前录的录制文件里没有失败标记,回放和原来完全一样,有测试钉住。回滚就是撤掉这个 PR。
  • 先看:packages/qa/scenarios/src/runner/driver.ts(RecordingDriver 的 try/catch,以及 RecordedDriver.ask 和 author 开头的重新抛出)、packages/qa/scenarios/src/runner/ask-skills.ts(skillFileOf 和拒绝的那句话)、packages/qa/scenarios/test/runner/orchestrate.test.ts 文件末尾新加的 describe。
  • 两分钟验证:pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/runner/orchestrate.test.ts test/runner/ask-skills.test.ts,预期 157 个测试全部通过。
  • 需要你做的:无,席位落地。

What changes

Half 1: a thrown live turn is recorded and replays as the same failure (src/runner/driver.ts)

  • RecordingDriver.ask and RecordingDriver.author (driver.ts:826-856) catch a throw from the live driver. They record the step as an empty turn carrying thrown: { name, message }, then rethrow the original error object unchanged. The new optional field lives on RecordedTurn extends ParsedTurn (driver.ts:522-535), and Recording.turns is typed by it. ParsedTurn itself is untouched. A non-Error throw records name: 'Error' and String(e).
  • RecordedDriver.ask and RecordedDriver.author (driver.ts:752, :768) throw RecordedThrowError (driver.ts:573) when a turn carries thrown. The error has the recorded name and message. Nothing is re-sent, and no recorded file is written.
  • A throw that is itself a replay's verdict (MissingRecordingError, ReplayNotFaithfulError, when a replay is being recorded) is left unrecorded, as before (driver.ts:588). Recording it as a plain throw would turn a live "not measured" into an error on the next replay.
  • A recording made before this change has no thrown turns and replays exactly as it did.

How the runner counts a live throw and a missing turn. These sites decided the replay behaviour. All of them are in orchestrate.ts, which this PR does not edit:

Turn Live throw Missing turn on replay (before) Scorer
question res.error = errText(e) (orchestrate.ts:1536-1540) same branch, text no recorded turn for … counted, fails (scorecard.ts:332, :340-341)
dataset question res.error (orchestrate.ts:1557-1561) MissingRecordingError ⇒ notMeasured (:1558) measured = !notMeasured (scorecard.ts:347-355): 4/5 → 4/4
operation rethrown (:1606-1607) ⇒ res.error (:1697-1698) same path, other text scorecard.ts:405-411
confirmation turn rethrown (:1684) ⇒ confirmed.error (:1692-1693) MissingRecordingError ⇒ notMeasured (:1679) scorecard.ts:391-395, :427-431
authoring half.error + half.notMeasured with the message (:1042-1052) same, other text build not measured

errText (orchestrate.ts:586) reads only e.message. A replay that throws an error with the recorded message, and that is neither MissingRecordingError nor ReplayNotFaithfulError, therefore takes the live branch at every site and gives the identical row, the identical error string included. That is why replay rethrows rather than returning a failed turn. A returned turn would be graded, and the grade would differ from the live error.

Half 2: a wrongly cased skill file is refused clearly (src/runner/ask-skills.ts)

  • skillFileOf (ask-skills.ts:159) reads the directory listing. It answers SKILL.md, or the name of a file spelled in some other case of skill.md, or nothing. existsSync(join(dir, 'SKILL.md')) is gone from the skill test, so the answer is the same on every filesystem.
  • readAskSkills refuses such a directory before any turn runs. This applies to a top-level skill and to one skill among a directory of skills (ask-skills.ts:181-200). The refusal uses the existing --ask-skills names … style: --ask-skills names `DIR`, which holds `mixed/Skill.md`: a skill file is spelled `SKILL.md` exactly, or a session reads it on one filesystem and misses it on another; rename it to `SKILL.md` .
  • Before this change: on a case-insensitive filesystem, f.get('SKILL.md')! was undefined and the read threw Cannot read properties of undefined (reading 'toString'). On a case-sensitive filesystem, a top-level skill.md answered "holds no skill", and a misspelt skill among others was skipped without a word.

Tests

All new tests are in existing harness files, as top-level describe blocks.

  • test/runner/orchestrate.test.ts, at the end of the file, runHalf — a live turn that throws is recorded as a failed turn, and its replay counts the row it counted live:
    • A live ask-mode run whose dataset question dq_staff, question tech_accounts and operation add_contact throw. The recording holds each step as { replyText: '', toolCalls: [], meta: {}, thrown }. Replaying it gives the same datasetTally (1/2, never 1/1), the same question and dataset-question results (error, notMeasured, grade) and the same operation error. This is the card's Done-when.
    • Control: the same recording with the thrown steps' keys removed, which is what a run before this change wrote. It replays as today: dq_staff not measured (1/1 · 1 not measured), and tech_accounts erroring no recorded turn for ….
    • Driver level: the live error object is rethrown as is (rejects.toBe). The replay's error has the same name and message and is not ReplayNotFaithfulError. A replayed authoring turn writes no file. A recording of the replay holds the same turns.
    • A thrown authoring turn replays to the same build half (error: 'author: spawn claude ENOENT', same notMeasured).
  • test/runner/ask-skills.test.ts, readAskSkills — a skill file is matched by its exact spelling, on every filesystem. A hoisted vi.mock('node:fs') stands in for a case-insensitive filesystem on any host: when switched on, existsSync answers true for any casing. Each case runs with it on and off.
    • A top-level skill.md gets the full refusal sentence.
    • mixed/Skill.md among other skills is refused by its path, not skipped.
    • Control: SKILL.md still loads, as a directory of skills and as a single skill.

Acceptance notes

  • Other SKILL.md existsSync sites in the package, not changed (listed as the card asked):
    • src/runner/packages.ts:332 (skillDirs): it compares the workspace catalog with the project's synced copy by real file names. It reads no file through the SKILL.md spelling, so there is no TypeError. A wrongly cased catalog skill would be counted on a case-insensitive host and skipped on a case-sensitive one, on both sides alike, so the copy check still holds. The catalog is the published skills/ tree, which has its own gates.
    • src/skill-evals/cases.ts:145: on a case-insensitive host it reads join(root, b, 'SKILL.md') successfully (no TypeError). On a case-sensitive host a wrongly cased bundle is skipped silently, so its evals are not loaded. The root is the same published catalog. Fixing it would be outside this claim's file surface.
  • thrownTurn leaves ReplayNotFaithfulError unrecorded, as today, when a replay is itself recorded. A recording of a replay therefore still meets a gap at that step. This is unchanged behaviour, and only a replay of a replay hits it.
  • Recording.turns now maps each step key to a RecordedTurn, a subtype of ParsedTurn. Readers typed ParsedTurn (export/transcript.ts mergeRecordings) compile unchanged. The export path looks a turn up only for a question with a grade, which a thrown turn never has.

Verification

All readings are at head 3644012a50 unless a line says otherwise.

Red first: the fix's two source files restored to origin/main (db1a05c), tests kept
mutated: 0 RecordedThrowError, 0 skillFileOf
 Test Files  2 failed (2)
      Tests  5 failed | 152 passed (157)
os-verify-lock: VERDICT command-exit 1
 × a skill directory whose file is spelled `skill.md` is refused ...   Received: "Cannot read properties of undefined (reading 'toString')"
 × in a directory of skills, one spelled `Skill.md` is refused ...     Received: "Cannot read properties of undefined (reading 'toString')"
 × the recording holds each thrown turn ... never 1/1                  expected { passed: 1, total: 1, … } to deeply equal { passed: 1, total: 2, … }
 × the driver: a live throw is rethrown ...
 × a thrown authoring turn ...
restore: git checkout HEAD -- both paths; blob == HEAD blob for each, git diff HEAD empty (RESTORED-OK)

The control (old recording replays unchanged) is green on both trees.

Ablation: the replay's rethrow deleted from RecordedDriver.ask (scripts/ablation-replace.mjs; src is imported directly, so no dist leg)
ablation-replace: anchor x1 -> x0; replace "/* ABLATED-34878 */ const writes" x0 -> x1
ablation-replace: blob 1a93e689ee9a -> 2febe57284fd (mutation landed)
 × the recording holds each thrown turn ... never 1/1
 × the driver: a live throw is rethrown ...
 Tests  2 failed | 2 passed | 131 skipped (135)
ablation-replace: ok restored: blob == HEAD (1a93e689ee9a) and `git diff HEAD` is empty

The two that stay green are the control and the authoring case. The authoring case runs through RecordedDriver.author, which the ablation does not touch.

Package suite and typecheck
pnpm --filter '@objectstack/scenarios^...' build                    VERDICT command-exit 0
pnpm --filter @objectstack/scenarios typecheck                      tsc --noEmit, exit 0 (tsconfig lists both edited test files: --listFiles count 2)
pnpm --filter @objectstack/scenarios build && ... test              VERDICT command-exit 0 · Test Files 39 passed (39) · Tests 1093 passed (1093)
Derived gate families (dispatch-gates --commands, 64)

dispatch-gates --ran: 64 derived, 62 run with exit 0, 2 NOT MEASURED (exit 3, prerequisite):

  • node scripts/check-plugin-teardown-shape.mjs --self-test: exit 3. The positive control is pinned to a commit this shallow checkout cannot reach. CI runs it.
  • pnpm check:dual-build-cjs-loads: exit 3. It reads every package's dist/, and only this card's dependency closure is built here. CI runs it.

node scripts/check-nul-bytes.mjs: exit 0. overlap-check: VERDICT clean exit 0 (origin/main and #34985 merge cleanly).

Not run locally, declared to CI: the repo-wide lint and the test:repo project. The branch is not merged with the 7 commits main gained since db1a05c. They touch packages/spec and ui/, and in this package only test/dataset-cards.test.ts. overlap-check reads a clean merge, and PR CI runs on the merge ref.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzgNCAXyGfBQFZBwixH

…e failure; a wrongly cased skill file is refused

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgNCAXyGfBQFZBwixH
…the control builds the old recording by key

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgNCAXyGfBQFZBwixH
…ll-file spelling refusal

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgNCAXyGfBQFZBwixH
@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 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

8 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • 5 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 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; 123 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 4443014630c094cde840f9dd0b0b45ade45b48d9 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 7ed5be3045e7e5e390cdbea4143b6432ec119f2a — the merge of head a0892887cc8251852c1602e3dd332a7141e72d58 into base 4443014630c094cde840f9dd0b0b45ade45b48d9, 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 7ed5be3045e7e5e390cdbea4143b6432ec119f2a && git checkout 7ed5be3045e7e5e390cdbea4143b6432ec119f2a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4443014630c094cde840f9dd0b0b45ade45b48d9 a0892887cc8251852c1602e3dd332a7141e72d58 && git checkout -B drift-repro 4443014630c094cde840f9dd0b0b45ade45b48d9 && git merge --no-ff a0892887cc8251852c1602e3dd332a7141e72d58

node scripts/docs-audit/affected-docs.mjs --json 4443014630c094cde840f9dd0b0b45ade45b48d9

⚠️ 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#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg

L1: ACCEPT · 2026-11-17T22:53Z

Head-sha: 3644012
Reviewer: seat 3 L1-c, for card #34878 (claim 6961939261, os-dev report 6963313201).

席位核对

PR shape. Fixes #34878, base main. Five paths, +296/-15:

  • driver.ts and ask-skills.ts;
  • their tests in ask-skills.test.ts and orchestrate.test.ts;
  • one @objectstack/scenarios patch changeset.

This stays inside the claim's file surface: orchestrate.ts, app.ts and the README are untouched, which keeps clear of #34985. Not governed. The branch is 7 behind main, with no overlap.

CI. It was still running when I read it (16 pending, 14 success, nothing failed). This verdict holds on the condition that Lint & Repo Gates, TypeScript Type Check and Test Core finish green on this head.

Half 1: a thrown turn is recorded and replays as the same failure.

  • The recording side. RecordingDriver.ask and author catch the throw, record { replyText: '', toolCalls: [], meta: {}, thrown: { name, message } } under the step's key, and rethrow the original error. So a live run behaves exactly as before.

  • The replay side. RecordedDriver.ask and author check turn.thrown right after the missing-turn check and before writing files or re-sending writes, then throw RecordedThrowError with the recorded name and message.

  • Each counting site lands where the live throw landed. errText reads only message. Every site in orchestrate.ts that tells errors apart singles out only MissingRecordingError or ReplayNotFaithfulError:

    • questions (:1537), where anything else goes to res.error;
    • dataset questions (:1558);
    • operations (:1607, which rethrows to :1698);
    • confirmations (:1679);
    • authoring (:1049).

    RecordedThrowError is neither class, so it takes the errText branch at each one, as the live error did. The 4/5-live, 4/4-replay drift on a dataset row is gone. That is the row test's { passed: 1, total: 2 }.

  • Replay verdicts stay unrecorded. thrownTurn returns undefined for MissingRecordingError and ReplayNotFaithfulError. So recording a replay of a recording with a gap keeps the gap, and does not turn the gap into a recorded throw. A RecordedThrowError met while re-recording is kept as a thrown turn, which is right: the original failure carries forward.

  • Old recordings. thrown is optional, so a recording without it replays as it did, and the control pin proves it on both trees.

Half 2: the skill file must be spelled exactly SKILL.md. skillFileOf reads the directory listing, so the spelling is the one on disk on every filesystem. An exact SKILL.md wins, and any other casing is returned and refused by misspelt with the path named (name/skill.md for a nested skill). A subdirectory with no skill file is still skipped, as before. The two crash cases from the premise (a case-insensitive existsSync true for skill.md, then f.get(SKILL_FILE)! undefined) are each pinned under a simulated case-insensitive existsSync, and both are red on main.

Red first and ablation. On the main sources with the tests kept: 5 red, including the two toString crashes and the row's {1,1} vs {1,2}. Deleting the replay rethrow turns the replay pins red. Both legs were restored by a blob-hash match.

Must-fix

None.

Should-fix

Notes

  • N1. skillFileOf and the file walk both filter on Dirent.isFile(), so a SKILL.md that is a symlink is not seen. Before, it passed existsSync and then crashed in the walk. Now it is skipped, or refused as "holds no skill" when it is the only one. That is pre-existing, and the result is better than a crash, but the sentence does not say why. Not owed.

Next: the S1 amendment, which is text only and gets a delta read. Then o3-G lands once the three aggregates are green. No seat L2 is owed, unless the seat wants to rule Clause-② itself.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1: ACCEPT (delta) · 2026-11-17T23:00Z

Head-sha: a089288
Reviewer: seat 3 L1-c. This is a delta read of 3644012a..a0892887 against my 6963367712.

席位核对

Delta. One commit on top of my ACCEPTed head. It touches one path, the changeset, and changes one line. No code or test moved.

S1: closed. The changeset, the PR body (line 6) and claim amendment 6963351666 all read Clause-②: yes (widening: published @objectstack/scenarios ./runner types ThrownTurn, RecordedTurn and RecordedThrowError, plus one optional field on Recording.turns), which is the seat's wording. Metadata-protocol: none and the patch level are unchanged, as the level rule asks.

CI. It was just starting on this head (18 pending, nothing failed). This verdict holds on the condition that Lint & Repo Gates, TypeScript Type Check, Test Core and Check Changeset finish green on this head.

Must-fix

None.

Should-fix

None.

Notes

  • N1 of my first read (a symlinked SKILL.md) stands as a note, not owed.

Next: o3-G lands once those checks are green. No seat L2 is owed. A later push owes an L1-c delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head a0892887cc8251852c1602e3dd332a7141e72d58 · 2026-11-17T23:04Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: TIER_DEFAULT
Head-sha: a0892887cc8251852c1602e3dd332a7141e72d58
Local-runs: none

Face: declaration (Clause-②: yes (widening) alone). The PR has no published schema under packages/spec/src/** and no governed path. The five paths are .changeset/34878-scenario-thrown-turn-skill-case.md, packages/qa/scenarios/src/runner/{driver,ask-skills}.ts, and their two tests. Inputs read: card #34878 (body, triage 6951618642, claim 6961939261, os-dev-report 6963313201, claim amendment 6963351666); PR #35007 (body, file list, net diff from merge-base db1a05cdae to this head); the L1-c records on the PR (6963367712, delta 6963512956); the check-runs on this head.

① Derived judgments

The published surface is the exports map of @objectstack/scenarios. ./runner maps to src/runner/index.ts, which runs export * from './driver.js', so everything driver.ts exports is published. ask-skills.ts is not re-exported, but its readAskSkills is reached through the exported ClaudeCodeDriver (driver.ts:375, opts.askSkillsDir) and through the objectstack-scenarios bin.

  • New export ThrownTurn (./runner), an interface of { name, message }. Right. It is additive and is the type the recorded field needs.

  • New export RecordedTurn extends ParsedTurn { thrown?: ThrownTurn } (./runner). Right. ParsedTurn is untouched, so every reader typed ParsedTurn compiles. A RecordedTurn is assignable to ParsedTurn. A ParsedTurn is also assignable to RecordedTurn, because the field is optional, so writes into Recording.turns also compile.

  • Recording.turns: Record<string, ParsedTurn> → Record<string, RecordedTurn> (./runner). Right. This widens the recording file a published reader parses: one optional key, and nothing is narrowed. A recording written before this change has no thrown and replays as before, which the control pin shows. The in-repo readers are export/cli.ts:119, export/exporter.ts:85, export/refresh.ts:261 and export/transcript.ts:67 (mergeRecordings, which returns Map<string, ParsedTurn>). Each takes the subtype unchanged. buildTranscript looks a turn up only for a graded question (transcript.ts:108-110), and a thrown turn is never graded. mergeRecordings of an old recording, which has a gap, and a new one, which has a thrown turn, does not clash, because the gap has no key.

  • New export RecordedThrowError (./runner), a class with readonly key that takes the recorded name and message. Right. It is additive. A consumer that wants to tell it apart must use instanceof, since .name is the recorded name. This class is how the runner's errText (it reads only message) and the MissingRecordingError/ReplayNotFaithfulError branches in orchestrate.ts count a replayed throw as the live one. The PR body's site table and L1-c both cite those branches. I read the cited lines only as context for this declaration, not as code under review.

  • Behaviour of exported classes.

    • RecordingDriver.ask/author now record a thrown turn and rethrow the original error object, so live behaviour is unchanged.
    • RecordedDriver.ask/author throw RecordedThrowError before any file write or re-send (driver.ts:752, :768).
    • thrownTurn leaves MissingRecordingError and ReplayNotFaithfulError unrecorded.

    This is additive to what a recording can express, and it is the change the card's Done-when asks for. It is right.

  • No name collision under export *. git grep at this head finds ThrownTurn, RecordedTurn and RecordedThrowError only in driver.ts and the changeset. None of the other thirteen modules runner/index.ts star-exports declares them, so no TS2308 ambiguity can drop one.

  • Not exported, correctly. thrownTurn (driver.ts) and skillFileOf (ask-skills.ts) are module-private.

  • --ask-skills / ClaudeCodeDriverOptions.askSkillsDir accept set. The listing-based match newly refuses some inputs on a case-sensitive filesystem that main ran:

    • a directory of skills in which one subdirectory holds Skill.md (main skipped that skill silently);
    • a top-level skill.md beside valid skill subdirectories.

    That would be a narrowing if the accept set were published, but it is not. --ask-skills and askSkillsDir came in with feat(scenarios): an opt-in skills directory for ask turns, and dataset questions on two open cards #34808 (merged 2026-11-17T13:38Z), and that changeset is still pending at this head (.changeset/34687-ask-skills-dataset-cards.md). The released @objectstack/scenarios@18.5.0 CHANGELOG does not mention ask-skills. Tightening a surface that has never been released narrows no published accept set, so no (narrowing) arm is owed. The refusal also makes the option's documented contract real on every filesystem, because a skill is a directory holding exactly SKILL.md. Right.

② Semver level

  • Changeset: one file, '@objectstack/scenarios': patch. The diff moves no other package. The package has released before (18.5.0), so a changeset is owed and skip-changeset would be wrong. Right.
  • Level: AGENTS.md, Post-Task Checklist step 3, says: "The level follows the kind alone … none takes patch; a non-protocol change, widening or breaking, ships patch." Metadata-protocol: none is right, because the diff changes nothing a metadata author writes (no spec key, value or metadata type). So patch is the required level, not minor, even though a published package's types widen. L1-c cites the ruling on changeset levels: minor only when the metadata protocol changes (added / narrowed / semantic), patch otherwise; release notes grouped by what the reader must do (maintainer ruling A, 2026-10-21) #25105 for the same reading.
  • Clause-② line: Clause-②: yes (widening: published @objectstack/scenarios ./runner types ThrownTurn, RecordedTurn and RecordedThrowError, plus one optional field on Recording.turns) is line-initial in both the PR body and the changeset body, and the two are identical.
    • scripts/pm/clause2-line.mjs reads the value yes. readArmToken reads the arm widening as the first token inside the parenthesis, because the lookahead admits the following :.
    • The export list matches exactly what the diff adds to ./runner: three new exported names and one optional field on the element type of Recording.turns. Strictly, the field is RecordedTurn.thrown, the element type of Recording.turns. The line's wording is accurate.
    • The line names nothing the diff does not publish and omits nothing it does.
    • The precedents agree: the scenarios CHANGELOG entries b76df9a and 1e77fef declare ./runner export additions the same way.
  • Gates on this head: Check Changeset (both runs) succeeded, and so did PR-body guards (claim · duplicate · Part-of · single-writer path) (both runs) and Governed Surface Queue Guard. At 23:07Z these had also succeeded: Type Check · workspace, Type Check · source gates, Type Check · debt ledger, Lint · ESLint, every other Lint · family, Build Core, and Test Core 4/10, 5/10 and 6/10. No shard 7/10 to 10/10 run exists on this head, after Plan Test Core shards succeeded. No check-run has failed.
  • Consumer type-checks: no existing consumer breaks. Every in-repo reader of Recording is listed under ①. No other workspace package depends on @objectstack/scenarios: outside its own package.json, the name appears only in .changeset/config.json and turbo.json. Type Check · workspace is green on this head. Type Check · consumer gates and Test Core 1/10, 2/10 and 3/10 were still in_progress when I read them. The verdict below holds on condition that those four finish green on this head.

③ Boundary flags

  • open_questions[0] (Clause-② no vs yes (widening)): answered. The seat ruled B, and the claim amendment 6963351666, the PR body and the changeset now carry yes (widening) with the export list. I concur on the diff: ./runner star-exports driver.ts, so the three types and the optional field are a published widening. This closes L1-c's S1 (6963367712), and the delta 6963512956 is on this head.
  • open_questions[1] (dev-written HTML comments in the PR body): answered as no contract effect. The leading attribution comment and the trailing signed comment are not part of any published surface or declaration line. The Clause-② and Metadata-protocol lines are plain, line-initial text outside any comment, and the PR-body guards passed. Which process rule governs is a seat-protocol matter, outside this record. No finding.
  • out_of_scope_findings: both are acknowledged and owe nothing on this head.
    • skill-evals/cases.ts:145 silently skips a wrongly cased bundle on a case-sensitive host. It is outside the claim's file surface and reads the published skills/ catalogue, which has its own gates. The seat may file it as its own card.
    • A recording of a replay keeps a ReplayNotFaithfulError gap. That behaviour is unchanged and is pinned as the reason thrownTurn excludes that error.
  • Note, not owed (forward compatibility): an older @objectstack/scenarios that replays a recording written by this version reads a thrown turn as an answered empty turn. It is graded rather than errored, so the old runner's row differs. Recordings are produced and replayed by the same runner version, and the published surface makes no cross-version replay promise, so this is not a finding.
  • Note, not owed: L1-c N1 (a symlinked SKILL.md is filtered out by Dirent.isFile() and reads as "holds no skill") stands as a note.
  • SQL push-down (Prime Directive 5): not applicable. The diff touches an in-memory recording map, a JSON recording file and a filesystem listing. It adds no id materialisation, no in-app join and no data query that SQL could push down. No finding.

Must-fix: none. Should-fix: none.

Implemented-by: claude/issue-34878-thrown-ask-recorded-skill-case
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · 2026-11-17T23:18Z

Probe Reading
L1 ACCEPT 6963367712 (L1-c) at 3644012a5 with S1 (Clause-② is yes (widening)). Delta ACCEPT 6963512956 at a0892887cc8251852c1602e3dd332a7141e72d58 closes S1. No open must-fix or should-fix; N1 (a symlinked SKILL.md is skipped, as before) is a note, not owed.
L2 Seat declaration review (TIER_DEFAULT) PASS 6963704463 at a0892887c: Clause-②: yes (widening) and patch are correct, and no consumer breaks. Its two notes are not owed. Claim amendment 6963351666 (seat ruling B).
Governed check-governed-merges.mjs --pr 35007: NOT governed, 311 lines ≤ 3000.
CI at head 53 check runs: 35 success, 18 skipped, 0 failed.
K behind main 7 first-parent commits from merge-base db1a05cdae to PRBASE 4443014630 (< 15).
Overlap overlap-check.mjs: VERDICT clean exit 0 (merges cleanly with #34985).

Ready + auto-merge into the queue. Area o3-G (repo:objectstack#3) watches it to MERGED and closes out #34878.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 23:18
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 9af5e11 Nov 17, 2026
54 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34878-thrown-ask-recorded-skill-case branch November 17, 2026 23:48
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.

scenarios: a thrown live ask is recorded so replay counts it, and a wrongly cased skill file is refused clearly

2 participants