Skip to content

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

Closed

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic). The maintainer set who files this epic's cards, in this session's chat, 2026-11-17, verbatim: 「你应该负责立卡,对方只是派发处理」. The gap was reported to this session by the dispatching seat repo:objectstack#3 on #34659 (comment 6948819963, item 2); the filer did not re-read the code behind it. Source: the contract-review delta on PR #34808 (#34687), 6948332112.

Why

Two ways the ask runner can report a better or a stranger result than what happened: a failed run that disappears on replay, and a crash in place of a refusal.

Evidence

  • Per the report: when a live ask throws, RecordingDriver records no turn; on replay the counted failure becomes "not measured" and a row can rise from 4/5 live to 4/4.
  • Per the report: the SKILL.md match is case-sensitive; on a case-insensitive filesystem a top-level skill.md ends in a TypeError.

Scope

  • A thrown ask is recorded as a turn that failed, and replays as that failure.
  • A skills directory whose skill file is not spelled SKILL.md is refused with a sentence naming the file.

Done when

  • A recording with one thrown ask replays to the same row it showed live; the wrongly cased file gets the refusal.

Relations

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (R1197, 14:5xZ): p3 · domain:devx → pm:queue.

    Theme: MCP / 问数 eval tooling. Two problems: replay miscounts a thrown live ask, and a wrongly cased skill file crashes instead of being refused. It is a nit carried under the maintainer's land-with-nits merge standard, and the filer's p3 is kept. Not dispatched while p3 is paused. Whether such nit cards stay open is asked of the maintainer on #6015 (R1197).

  3. added
    domain:devx
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 · 2026-11-17T21:47Z
    Session: session_01WGufzgNCAXyGfBQFZBwixH
    Account: os-support-ai
    Branch: claude/issue-34878-thrown-ask-recorded-skill-case
    Worktree: objectstack-issue-34878
    Domain: domain:devx
    Seat: repo:objectstack#3
    File surface: packages/qa/scenarios/src/runner/driver.ts (RecordingDriver.ask, and the replay side that reads a recorded failed turn), packages/qa/scenarios/src/runner/ask-skills.ts (the skill-file read), whichever scorer or report code counts a recorded failed ask (only if needed), their tests under packages/qa/scenarios/test/runner/, and a changeset if the package takes one. Not orchestrate.ts, app.ts or the README seed section, which #34897 (route A, same area) is changing.
    Container & model: M, mode:subagent (area o3-G), model: TIER_DEFAULT, effort: high
    Clause-②: no (eval tooling; no published accept set)
    Metadata-protocol: none
    Responsibility: platform (eval runner)
    Thread-read: 6951618642
    Premise: holds at origin/main.

    • driver.ts:756-796: RecordingDriver.ask awaits inner.ask(task) and writes the turn only after it returns. A throw records nothing, so replay finds no turn for that step.
    • ask-skills.ts:165-191: the directory test is existsSync(join(dir, 'SKILL.md')), which a case-insensitive filesystem answers true for skill.md. The file walk keys the real name, so f.get(SKILL_FILE)! at :191 is undefined and .toString throws a TypeError.
      Route:
    1. A thrown live ask is recorded as a turn that failed, carrying the error's name and message and marked so replay knows it was a throw. Replay returns that failure (or rethrows it as the live run did) so the row counts it exactly as live did. The original error still propagates live.
    2. The skill file is matched by its exact spelling. A directory whose skill file is spelled otherwise (for example skill.md) is refused with a sentence naming the file found and the spelling required, on every filesystem.
      Serial constraints cleared: reading first: why author validation refused 584 of 757 seed rows on travel_expense #34897 (o3-G, route A on the runner's seed path) shares the package but not these files. If either dev needs the other's file, the second one waits for the first to land.
      Pre-claim lane: domain:devx. An epic Decision: open-source MCP — the client thinks locally, the server keeps a thin door (a metadata draft write entry for building; the data door for 问数), plus policy, version skew and the 问数 eval #34659 child (p3, carried under the land-with-nits standard), routed to area o3-G by seat 3 (21:46Z).
      Pre-claim deps: parent Decision: open-source MCP — the client thinks locally, the server keeps a thin door (a metadata draft write entry for building; the data door for 问数), plus policy, version skew and the 问数 eval #34659. Related: scenarios: ask mode can give the client a skills directory; dataset scenario cards with graders for metric-selected, asked-back and fallback-labelled #34687 (PR feat(scenarios): an opt-in skills directory for ask turns, and dataset questions on two open cards #34808); contract-review delta 6948332112.
      Prior rulings read: scenarios,thrown,replay,skill,file,refused → 150 hits; ADR-0076 D11, ADR-0029 D8, ADR-0086 D1, ADR-0119 D1, ADR-0144 D5, ADR-0145 D2, ADR-0146 D6 keyword-only; thread: triage 6951618642 only.

    Lease o3-G (seat post #34584); child of epic #34659. L1 for this epic is L1-c.

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34878,
      "status": "done",
      "branch": "claude/issue-34878-thrown-ask-recorded-skill-case",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35007",
      "session": "session_01WGufzgNCAXyGfBQFZBwixH",
      "premise_still_valid": true,
      "summary": "Half 1: RecordingDriver.ask and .author (driver.ts:826-856) now record a live throw as an empty turn carrying thrown {name, message} on a new optional RecordedTurn field (driver.ts:522-535; ParsedTurn untouched) and rethrow the original error. RecordedDriver.ask and .author (driver.ts:752, :768) throw RecordedThrowError with the recorded name and message, and re-send and write nothing. Because errText (orchestrate.ts:586) reads only the message, a replay takes the live branch at every counting site: questions at orchestrate.ts:1536-1540, dataset questions at :1557-1561 (a missing turn was notMeasured there, 4/5 to 4/4), operations at :1606-1607 then :1697-1698, confirmation at :1678-1684 then :1692-1693, author at :1042-1052. Scorer: scorecard.ts:332/340-341, 347-355, 405-411, 391-395/427-431. MissingRecordingError and ReplayNotFaithfulError are left unrecorded, as before. Recordings made before this change replay unchanged. Half 2: ask-skills.ts skillFileOf (:159) matches by exact spelling from readdirSync, and readAskSkills refuses any other casing of SKILL.md by path (:181-200) on every filesystem, in the existing `--ask-skills names ...` style. packages.ts:332 and skill-evals/cases.ts:145 are listed in the PR and not changed (no TypeError path).",
      "tests": "At head 3644012a50. RED on origin/main sources (driver.ts and ask-skills.ts restored to db1a05cdae, tests kept): VERDICT command-exit 1, Tests 5 failed | 152 passed (157). The two skill tests fail with Received 'Cannot read properties of undefined (reading toString)' under the simulated case-insensitive existsSync. The row test fails with 'expected { passed: 1, total: 1 } to deeply equal { passed: 1, total: 2 }'. The driver and author pins also fail. Restore was proven by HEAD blob hash match and an empty git diff HEAD. The control (old recording replays unchanged) is green on both trees. GREEN: vitest run test/runner/ask-skills.test.ts test/runner/orchestrate.test.ts: VERDICT command-exit 0, Tests 157 passed (157). ABLATION via scripts/ablation-replace.mjs (deleted the rethrow in RecordedDriver.ask; anchor x1->x0, marker x0->x1, blob 1a93e689ee9a->2febe57284fd): Tests 2 failed | 2 passed | 131 skipped. Restore was verified as blob == HEAD with git diff HEAD empty. There is no dist leg because the tests import src directly. Package: pnpm --filter @objectstack/scenarios typecheck exit 0 (--listFiles includes both test files); build + test VERDICT command-exit 0, Test Files 39 passed (39), Tests 1093 passed (1093).",
      "gates": "Local: ① pnpm --filter '@objectstack/scenarios^...' build, VERDICT command-exit 0. dispatch-gates --commands derived 64 families. --ran reconciliation with exit codes: 62 exit 0 and 2 NOT MEASURED (exit 3, prerequisite). The first is node scripts/check-plugin-teardown-shape.mjs --self-test: its positive control is pinned to a commit the shallow checkout cannot reach. The second is pnpm check:dual-build-cjs-loads, which needs every package's dist/. check-nul-bytes exit 0. overlap-check before the final push: VERDICT clean exit 0 (origin/main and #34985 both merge cleanly). CI: at report time every PR check-run at 3644012a50 was in_progress (Check Changeset, Lint x8, Type Check x4, Governed Surface Queue Guard, PR-body guards), and the opt-in and queue jobs were skipped. Not run locally and declared to CI: repo-wide lint, test:repo, and the two exit-3 families. Deviations: overlap-check was not run before the first WIP push at 4dbf91395a. It was run right after that push (VERDICT clean exit 0) and again before the final push. The branch is not merged with the 7 commits main gained since db1a05cdae (packages/spec, 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.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (one repository_dispatch; the relay ran POST /repos/objectstack-ai/objectstack/pulls draft and POST /issues/35007/assignees os-support-ai, and read back an identical body); post-stamped.mjs POST /repos/objectstack-ai/objectstack/issues/34878/comments (this report). Two git pushes, which are not REST writes.",
      "open_questions": [
        {
          "question": "The claim says Clause-②: no, and that line is copied verbatim into the PR and the changeset. But the diff widens the ./runner exports: new ThrownTurn, RecordedTurn and RecordedThrowError, and Recording.turns now typed by RecordedTurn, an optional field. Earlier scenarios changesets (34687, 34448) declared that kind of change as 'yes (widening)'. Which should it be?",
          "options": [
            "A keep no, as claimed (eval tooling, no published accept set)",
            "B the seat amends the claim to yes (widening), and the dev updates the PR body and changeset"
          ],
          "recommendation": "A, because the claim's reasoning covers it and the rule is to copy the claim. Flagged so the seat decides with the export list in hand."
        },
        {
          "question": "os-dev.md bans dev-written HTML comments in GitHub bodies. The dispatch order required the attribution comment as the first line and a signed comment as the last line of the PR body. Which rule governs?",
          "options": [
            "A follow the dispatch (done): pm-dispatch seat-post-protocol mandates the trailer, dispatch.mjs reads it, and nothing follows it to be eaten; the full-body read-back was identical",
            "B drop both comments"
          ],
          "recommendation": "A. The conflict is named here, not resolved silently."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in the PR's Acceptance notes, not filed: skill-evals/cases.ts:145 silently skips a wrongly cased bundle on a case-sensitive host. Read-only inference with no reach measured. Dedupe words: skill-evals, SKILL.md, case-insensitive, existsSync, bundle skipped",
        "carrier: none · noted, not filed: when a replay is itself recorded, a ReplayNotFaithfulError is left unrecorded (unchanged behaviour), so a replay of that recording meets a gap at that step. This affects replay-of-replay only."
      ]
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amended · 2026-11-17T22:52Z (claim 6961939261, PR #35007 head 3644012a5), on the seat's ruling (B):

    The file surface, route, Metadata-protocol: none and lease o3-G are unchanged.

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered · 2026-11-17T23:49Z

    PR #35007 merged to main at 9af5e1100c and closed this card (Fixes).

    • A live ask or author turn that throws is now recorded as a failed turn (thrown: { name, message }), and a replay throws RecordedThrowError with the same message. So the row counts it exactly as the live run did: a 4/5 live row no longer reads 4/4 on replay. Recordings made before this change replay unchanged.
    • A skills directory whose skill file is spelled other than SKILL.md is now refused with a sentence naming the file, on every filesystem, instead of crashing with a TypeError.

    Declared Clause-②: yes (widening) (new ./runner types; claim amendment 6963351666, seat ruling B). Reviews: L1-c ACCEPT 6963367712 and delta ACCEPT 6963512956; seat declaration review PASS 6963704463. pm:dispatched and lease:o3-G removed in this stroke.

  9. removed
    pm:dispatched
    on Nov 17, 2026
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:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions