Skip to content

refactor(planning): cut model-read ecosystem specifics, starting with the TypeScript idioms page - #16810

Merged
kyle-sexton merged 6 commits into
mainfrom
work-resolve-issue/issue-16754-44108846044-1
Nov 18, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
work-resolve-issue/issue-16754-44108846044-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Refs: #16754

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Row count: 6. Cuts the 6 R11 rows of #16754 from planning under ADR 0101. F0317 (R11 K2): cut. The Phase 3 detection table in design SKILL.md is deleted with no replacement, because Phase 3 still applies reference/type-discipline.md, whose last paragraph already tells a language with no idioms file to use its own sum types, narrowing and exhaustiveness check (the contract sentence #15840 added). So no language-specific step is left and planning does not join the ecosystem-resolution contract as a carrier. F0318 (R11 K4): cut. reference/type-discipline/typescript.md is deleted (a whole-page deletion). F0319 (R11 K7): cut. The Python and Rust stub-body examples are deleted from design SKILL.md. F0320 (R11 K7; the other possible reading was R6): cut in the canonical docs/contracts/standards/README.md (the csharp example index row and the example csharp/python/markdown surface ids). I also cut the C# pointer directive in the same file's .claude/rules seam section, the same kind of content, which the classifier did not list. The contract goes to 1.1.6 with a CHANGELOG entry, and the shared-copies sync regenerated the planning, review and improvement copies. F0321 (R11 K7): cut. The package.json:14 "bullmq" example is deleted from assumption-sweep.md, and the example F1 line and its 'replace the example line' sentence are deleted from the checklist template. F0322 (R11 K7): cut. The 'assume Postgres for now' example is deleted from loop.md. Kept rows: none. Script-reader searches (Grep over plugins, scripts and .github, the stand-in for git grep -n -F because only git-read status/diff/log/show runs in this lane): typescript.md / type-discipline/ is named only by scripts/docs-anchor-baseline.txt:103 (a baseline row, removed), .performance/ratchets.json:185 (a fence ceiling, removed) and the design evals (updated). No script reads its content. standards-contract.md is named by scripts/shared-copies.txt:89,90,97 (the sync registry), scripts/check-standards-contract-bump.test.sh:53 (a synthetic fixture), scripts/test_check_vocabulary.py:668-669 and scripts/vocabulary-senses.json:178 (a path exemption), scripts/cross-plugin-source-registry.txt:34,38, scripts/affected-tests-live.sh:89 (a comment), and plugins/{planning,review}/tests/standards-binding.test.sh (each checks only that skills cite the path). None parses the example row or ids, so the row is cut, not reported on #15730. assumption-sweep.md, context/loop.md and templates/checklist.md are read by plugins/planning/tests/interview-defenses.test.sh (digest pins, re-pinned with repin-digests and a reason recorded beside each pin) and by plugins/planning/scripts/check-open-questions.test.sh:174 (needs only that the template's register grades as exit 0 or 1, which the cut leaves alone). The checklist's BullMQ F1 line also survives in check-open-questions.test.sh:1135 as test fixture data, which no model reads.

The lane cut its summary off at this point. Its last sentence, completed from the head: scripts/test_check_next_graph.py:254 names the fixture path plugins/p/skills/design/SKILL.md, a synthetic file that test writes for itself; it reads none of the cut text.

Cut extent and eval case per changed file

Each changed skill file, whether the cut deletes the whole page or part of it, and the existing eval case whose run reads the cut text:

  • plugins/planning/skills/design/SKILL.md (design): part (the Phase 3 detection table, F0317; the stub-body examples, F0319). Existing case: design-types-ts-idioms (the file loads with the skill). F0319's stub-body text was measured by a case written for this pull request (p16810-design-rust-stub-body); no existing case reads it.
  • plugins/planning/skills/design/reference/type-discipline/typescript.md (design): whole page deleted (F0318). Existing case: design-types-ts-idioms.
  • plugins/planning/skills/interview/templates/checklist.md (interview): part (F0321). Existing case: interview-fact-looked-up-not-asked; the targeted eval's copy of it opened this file in 3 of 3 runs on each side.
  • plugins/planning/skills/interview/context/loop.md (interview): part (F0322). Existing case: interview-fact-looked-up-not-asked; its copy opened this file in 2 of 3 runs on the new text only, so F0322 stays unmeasured.
  • plugins/planning/skills/interview/context/assumption-sweep.md (interview): part (F0321). No existing case's run opened it in the targeted eval; unmeasured.
  • docs/contracts/standards/README.md and its three synced copies plugins/planning/reference/standards-contract.md, plugins/review/reference/standards-contract.md, plugins/improvement/reference/standards-contract.md: part (F0320). No existing eval case in planning, review or improvement reads reference/standards-contract.md: their scaffolds only stamp a standards-contract: version in a consumer's standards file. F0320 is unmeasured.

Remaining work

Not verified

  • Targeted before-and-after eval verdict for each changed skill (sonnet, 3 runs a side, run by an agent session after this pull request opened, at 4bea779; full record: refactor(planning): cut model-read ecosystem specifics, starting with the TypeScript idioms page #16810 (comment)): design LOSS (case p16810-design-types-ts-idioms, mean case score 1.000 before, 0.500 after; literal-satisfies 3 of 3 before, 0 of 3 after), traced to the cut: this pull request deletes the TypeScript idioms page, the only text that taught satisfies for a literal, and the after runs wrote the literal as a type annotation, twice followed by as const; whether that gives up a compile-time check was not verified. design handoff PASS (Rust stub-body case, 1.000 before, 0.889 after, inside the loss line). interview LOSS on its grader (ledger-fline-basis 3 of 3 before, 1 of 3 after; mean case score 1.000 before, 0.867 after), traced to a grader fault, not the cut: the grader counted only a ledger written with the Write or Edit tool, one after run wrote the expected line through a shell heredoc and one wrote no ledger because its copy command was denied. The owner accepted the loss of the satisfies idiom for this pull request on 2026-11-17: the cut does what the cut policy intends (language-specific idioms leave the skills). Measured rows: F0317, F0318, F0319 and the checklist template's part of F0321. Unmeasured rows: F0320, F0322, the assumption-sweep.md part of F0321, and the deleted TypeScript page's idioms other than satisfies (schema-library reuse, hand-written parse). A re-run at bddcaa9 read no new loss: refactor(planning): cut model-read ecosystem specifics, starting with the TypeScript idioms page #16810 (comment)
  • AC7 sensitivity-control and detection-control results: not run, by the owner's decision of 2026-11-17 above; see Remaining work.
  • Freezing and reproducing the content-dependent cases on the before version was not run. design-types-ts-idioms keeps its prompt and scaffold; the grader that required reading the deleted file and literal-satisfies are removed, and retry-constant-typed grades the written type-inventory.md, so the same case can run on both sides
  • design evals.json cases 9 and 10 (schema-library reuse, hand-written parse without a new dependency) grade behavior that only the deleted TypeScript page taught; kept as rubric cases for the owner to retire or relax after the targeted-case verdict
  • Planning unit tests (interview-defenses.test.sh, check-open-questions.test.sh, standards-binding.test.sh) were not executed directly in this lane; left to the PR's CI
  • Tidy skipped: the change is over the tidy cutoffs (20 files, 4 areas: plugins/planning, plugins/review, plugins/improvement, docs and more) and touches scripts/
  • review-venue.txt absent: the review ran locally in one fresh-context subagent, as the fallback says

Fix

  • plugins/planning/skills/design/reference/type-discipline/typescript.md: deleted (F0318)
  • plugins/planning/skills/design/SKILL.md: Phase 3 language-detection table and idioms-file sentence deleted (F0317); Python/Rust stub examples deleted (F0319)
  • plugins/planning/skills/interview/context/assumption-sweep.md: bullmq example quote deleted and the bullet rewrapped (F0321)
  • plugins/planning/skills/interview/templates/checklist.md: example F1 BullMQ line and its replace-the-example sentence deleted (F0321)
  • plugins/planning/skills/interview/context/loop.md: Postgres example deleted from Defer-with-assumption (F0322)
  • plugins/planning/tests/interview-defenses.test.sh: re-pinned the assumption-sweep.md file digest and the loop.md Step 2 section digest via repin-digests, with each reason recorded
  • docs/contracts/standards/README.md: csharp example row, example ecosystem surface ids and the C# pointer directive deleted; version 1.1.5 -> 1.1.6 (F0320)
  • docs/contracts/standards/CHANGELOG.md: 1.1.6 entry
  • plugins/planning/reference/standards-contract.md, plugins/review/reference/standards-contract.md, plugins/improvement/reference/standards-contract.md: regenerated by sync-shared-copies
  • plugins/planning/skills/design/evals/evals.json: cases 7 and 8 renamed; case 7 keeps "typed unknown (never any)"; cases 7 and 8 keep the read of reference/type-discipline.md and gain "reads no file under reference/type-discipline/"; cases 9 and 10 no longer say the skill reads the TypeScript reference
  • plugins/planning/evals/design-types-ts-idioms/graders/reads-typescript-idioms.md: deleted (it required a Read of the deleted page, so it could never pass after the cut)
  • plugins/planning/evals/design-types-ts-idioms/graders/literal-satisfies.md and samples/literal-satisfies.json: deleted (review thread); replaced by graders/retry-constant-typed.md and samples/retry-constant-typed.json, a regex on type-inventory.md that needs the retry constant held to a named retry type by annotation or satisfies, with an empty artifact and a cast as failure samples. The owner chose to keep this replacement grader on 2026-11-18.
  • plugins/planning/evals/design-types-ts-idioms/prompt.md, scaffold.sh: description, expected_outcome and comment no longer name the idioms file or credit the shared rules with satisfies; the case is now the before-and-after case for the cut
  • .performance/ratchets.json: skill-stack-fences ceiling for the deleted typescript.md removed (5 -> file gone)
  • scripts/docs-anchor-baseline.txt: entry for the deleted typescript.md removed
  • docs/upstream/cursor-pstack.md: typescript-best-practices row no longer cites the deleted file or lists planning:design under Ours; principle rows' branding note points at the contract row that now holds it
  • docs/skill-cheat-sheet.md: planning:design line drops the typescript-best-practices attribution, matching the generator's expected output for the edited upstream row
  • .changes/planning/work-resolve-issue-issue-16754-44108846044-1-9a454643.md, .changes/review/work-resolve-issue-issue-16754-44108846044-1-3c8a3d0e.md, .changes/improvement/work-resolve-issue-issue-16754-44108846044-1-27963e6c.md: patch fragments

Verification

The runner ran each check from the base copy against 4bea779:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 88 fragments valid
  • check-changed-skills: design and interview PASS, 0 errors (warnings were already there: size, description length, gotchas)
  • check-affected: first run failed validate-plugins on cheat-sheet drift from the upstream-record edit; fixed docs/skill-cheat-sheet.md to the generator's expected line; rerun 16 passed, 6 skipped, 0 failed over 20 changed files
  • check-evals-quality plugins/planning/skills/design/evals/evals.json: PASS, 0 warnings
  • sync-shared-copies: regenerated the 3 standards-contract copies, exit 0
  • repin-digests: assumption-sweep.md 81583265... -> ca06590c... -> 6e5ada58... (cut, then rewrap); loop.md Step 2 ba772715... -> d91d5185...
  • Grep for type-discipline/typescript and 'TypeScript idioms' across the repo, CHANGELOGs excluded: only the planning fragment and the eval case's own description remain
  • Fresh-context review subagent over the whole diff: 5 findings (stale upstream-record text at cursor-pstack.md:91 and :99, a missed 'reads the TypeScript reference' in eval 10, a stale scaffold.sh comment, evals 9 and 10 grading behavior only the cut page taught) plus a line-wrap nit. The lane cut this line off here. From the Fix list above: the cursor-pstack.md rows, eval 10's wording and the scaffold.sh comment were fixed, and evals 9 and 10 were kept as rubric cases (see Not verified). What the run did about the line-wrap nit is not recorded.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44108846044
  • At head 79d2b69, retry-constant-typed was checked against its samples: validate-cases.py plugins/planning/evals reports no FAIL, and scripts/check-affected.sh passed 18 and skipped 1.

Left out: the items under Not verified.

Related

#16754

🤖 Generated with Claude Code

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 79d2b69532282329c8f64d335e5d22cd7fb5f156. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (evidence-unbound:claude-review: not bound:
  incremental-gap; evidence-unbound:claude-security-review: not bound: incremental-gap)

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Held for the before-and-after eval its cut item requires; a host session runs it and posts the record here. Posted by an agent session.

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: NOT PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.326 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: not a pure cut. F0318 deletes the design skill's whole TypeScript idioms page (reference/type-discipline/typescript.md) and F0317 deletes the Phase 3 table that loaded it, so a TypeScript repository now gets only the shared type rules: idioms the page alone taught (satisfies for a literal, a schema library's inference helper) may no longer be applied. F0319, F0320, F0321 and F0322 are pure cuts of examples. Measured: F0317 and F0318 (design case design-types-ts-idioms, copied as the PR leaves it; its literal-satisfies grader depends on the deleted page), F0319 (design handoff rules-only case on a Rust repository's stub body), the checklist template's part of F0321 (interview case interview-fact-looked-up-not-asked, copied with deterministic graders; it must Read templates/checklist.md, which eval-pr-16810's smoke showed the first message reads). Unmeasured: F0322 and the assumption-sweep.md part of F0321 (the first message reads neither context/loop.md nor context/assumption-sweep.md), F0320 (the standards contract's example index row and surface ids, in planning's reference/standards-contract.md; the review and improvement copies and the canonical docs/contracts/standards/README.md are outside this plugin), and the deleted page's other idioms (schema-library reuse, hand-written parse) that design evals.json cases 9 and 10 describe but that do not run.

  • The design types case is the existing design-types-ts-idioms as the PR leaves it (its reads-typescript-idioms grader deleted by the PR), renamed only. The interview case is the existing interview-fact-looked-up-not-asked with its prompt and scaffold unchanged and its llm grader replaced by four deterministic graders, two of them on the written ledger; cites-retry-source is kept.

  • Re-registered after eval-pr-16810 stopped at smoke batch 0: the interview's first message read the checklist template, not context/loop.md, so must_read now names the template and the loop.md row is unmeasured.

  • Unmeasured rows: F0320, F0322, the assumption-sweep.md part of F0321, and the deleted TypeScript page's idioms other than satisfies.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: a9fbe610089f006aa616db386188173aa185ee72 (merge base with main)

  • After: 4bea7791a54b03756e71e91caf1418469f6567fb (pull request head; live head when this was written: 4bea7791a54b03756e71e91caf1418469f6567fb)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p16810-design-types-ts-idioms reads-type-rules 3/3 3/3
p16810-design-types-ts-idioms literal-satisfies 3/3 0/3
p16810-design-types-ts-idioms mean case score 1.000 0.500
p16810-design-rust-stub-body names-stub-section 3/3 2/3
p16810-design-rust-stub-body stub-body-rust 3/3 3/3
p16810-design-rust-stub-body stub-body-not-python 3/3 3/3
p16810-design-rust-stub-body mean case score 1.000 0.889
p16810-interview-fact-cited-with-line cites-retry-source 3/3 3/3
p16810-interview-fact-cited-with-line states-retry-count 3/3 3/3
p16810-interview-fact-cited-with-line cites-config-line 3/3 3/3
p16810-interview-fact-cited-with-line ledger-fline-basis 3/3 1/3
p16810-interview-fact-cited-with-line ledger-no-template-example 3/3 3/3
p16810-interview-fact-cited-with-line mean case score 1.000 0.867

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Verdicts:

  • verdict p16810-design-types-ts-idioms (design): LOSS (after 0.500 is 0.500 below before; trace read and opus confirm next)
  • verdict p16810-design-rust-stub-body (design-handoff): PASS (no loss: after 0.889, before 1.000)
  • verdict p16810-interview-fact-cited-with-line (interview): LOSS (grader(s) ledger-fline-basis pass 2 or more fewer after runs; trace read and opus confirm next)

Cost: 4.83 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 3 cases: prompt.md and case.yaml

p16810-design-types-ts-idioms

prompt.md:

---
description: "Hard case. Source: the existing case design-types-ts-idioms as PR 16810 leaves it (its reads-typescript-idioms grader deleted by the PR), copied unchanged but for its name; cuts F0317 and F0318. Outcome case: a TypeScript shipment poller needs a retry policy literal set once in code. Phase 3 reads the shared type rules and holds the literal to its type with satisfies. Hard because only the deleted TypeScript idioms page named satisfies for a literal; after the cut the session must reach it from the shared type rules alone (the PR body predicts literal-satisfies drops on the after side)."
tags: [design, outcome, type-discipline, typescript, scaffold, hard]
runs: 3
max_turns: 20
timeout_seconds: 600
allowed_tools: [Read, Skill, Write]
expected_outcome: "The run reads the skill's shared type rules, and .work/shipment-poller/design/type-inventory.md holds the retry literal to its type with satisfies"
---

/planning:design library

Topic slug `shipment-poller`; the Brief is in `.work/shipment-poller/PLAN.md` and `.work/shipment-poller/design/design-threads.md` holds the settled threads. Threads are settled, so move on to type modeling: write `.work/shipment-poller/design/type-inventory.md`, with each type's definition, the retry constant and each function signature written out in the repository's language, then stop. Don't write any other file.

case.yaml:

schema_version: "1.1"
name: p16810-design-types-ts-idioms
context:
  scaffold_script: scaffold.sh

p16810-design-rust-stub-body

prompt.md:

/planning:design handoff Before you run the gate, one question. This repository is Rust only, and its docs/conventions/planning.yaml sets scaffold_stubs: true. When the gate writes out the stub files for the new modules, what body does each stub function get? Answer from the skill's rules only, don't run the gate yet, and end your reply with this line:

STUB-BODY: <the body each stub function gets>

case.yaml:

schema_version: "1.1"
name: p16810-design-rust-stub-body
description: "Hard case. Source: written for PR 16810 (cut F0319, the raise NotImplementedError and todo!() examples of the design handoff's stub bodies), the consumer's own writing, no transcript; rules-only, it ends before the gate runs. Hard because the old rule named the Rust form outright, while the new one says only 'the language's ordinary not-implemented form', so the session must supply the Rust macro itself and must not carry over the Python form the old sentence also named."
tags: [design, handoff, stub-scaffold, hard]
plugins: ["../.."]
runs: 3
expected_outcome: "The reply says the gate adds a Stub scaffold section and ends with a STUB-BODY line naming todo!() (or unimplemented!()), not a Python raise."
execution:
  allowed_tools: [Read, Glob, Grep, Skill]
  max_turns: 10
  timeout_seconds: 300
graders:
  - name: 'names-stub-section'
    type: 'regex'
    pattern: 'stub scaffold'
    flags: 'i'
  - name: 'stub-body-rust'
    type: 'regex'
    pattern: '^\W*STUB-BODY:[^\n]*\b(?:todo|unimplemented)!\s*\('
    flags: 'mi'
  - name: 'stub-body-not-python'
    type: 'regex'
    pattern: '^\W*STUB-BODY:[^\n]*(?:NotImplementedError|\braise\b)'
    flags: 'mi'
    match: 'not_contains'

p16810-interview-fact-cited-with-line

prompt.md:

---
description: "Hard case. Source: the existing case interview-fact-looked-up-not-asked, copied for PR 16810 (cuts F0321, the package.json:14 bullmq basis example in assumption-sweep.md and the checklist template's example F1 line, and F0322, loop.md's assume-Postgres example), prompt and scaffold unchanged, its llm grader replaced by deterministic ones; cites-retry-source is kept. The alert threshold turns on how many times the webhook sender retries today, which the user does not know and the repository's config file states. Why hard: the user's 'I don't know' invites a question back, or a request to go and check, when the fact is the interview's to look up; and the basis must quote the file with its line, the form the cut example showed (cites-config-line). In eval-pr-16810's smoke the first message read the checklist template, not context/loop.md, so this case measures the template's part of F0321: the ledger's F-line keeps a file:line basis (ledger-fline-basis) and the template's example line does not reach the ledger (ledger-no-template-example); F0322 is not reached."
tags: [interview, self-answer, facts, scaffold, hard]
runs: 3
max_turns: 16
timeout_seconds: 600
allowed_tools: [Read, Glob, Grep, Skill]
expected_outcome: "The reply states the current retry count (4 retries, from config/webhooks.json) as a looked-up fact with its source and builds its alert-threshold recommendation on it; it does not ask the user how many retries there are or ask them to go and find out"
---

/planning:interview me: alert the on-call engineer when a partner webhook finally fails. I don't know how many times the sender retries today, so I can't say when "finally" is. I'm here and will answer.

[Session state: an engineering session in this repository; the quality bar is production, already stated. Nothing has been asked yet. Write your first message to the user.]

case.yaml:

schema_version: "1.1"
name: p16810-interview-fact-cited-with-line
context:
  scaffold_script: scaffold.sh

Trace read of the two losses

  • Design types (literal-satisfies 3 of 3 before, 0 of 3 after): traced to the cut. This pull request deletes the TypeScript idioms page, the only text that taught satisfies for a literal, and its body predicted the drop. The after runs wrote the literal as a type annotation, twice followed by as const. That is different TypeScript, not broken TypeScript; whether it gives up a compile-time check was not verified.
  • Interview (ledger-fline-basis 3 of 3 before, 1 of 3 after): a grader fault, not the cut. The grader counted only a ledger written with the Write or Edit tool. One after run wrote the expected line (... | src/webhooks/sender.ts:4, config/webhooks.json:2) through a shell heredoc, and one wrote no ledger because its copy command was denied. The template still requires a file and line.
  • Rust stub (names-stub-section 3 of 3 before, 2 of 3 after): run-to-run variation; inside the loss line.

Decision

Owner decision, 2026-11-17, typed in the agent session, verbatim: "go w/ recomemndations" (to the questions as put, each with its recommended option). The option chosen for this pull request: accept the loss of the satisfies idiom and merge. The cut does what the cut policy intends (language-specific idioms leave the skills). No eval record line is posted, because the result is a loss; the hold is lifted on the owner's decision.

Posted by an agent session.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
The Lint Repo comment-lint check failed five comment lines this pull
request added. The design-types-ts-idioms scaffold header is deleted:
the case's prompt and graders state what it grades. The two re-pin
justifications in interview-defenses.test.sh now link ADR 0101, the
outside constraint they cite, and the rewrap note joins the bullmq note
above the same pin. No code, pin or digest changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
Takes main at 74b3329 so the branch is no
longer behind on docs/upstream/cursor-pstack.md and
scripts/docs-anchor-baseline.txt. Git merged both without conflict; each
keeps main's lines plus this pull request's own edits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main changed plugins/planning/tests/interview-defenses.test.sh again
after the previous merge, so the pre-push stale-base check refused the
push.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 79d2b69532282329c8f64d335e5d22cd7fb5f156: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16810, incremental since b7d33259

No security issues found. This lane already reviewed an earlier head of this pull request, so this review was blocking only: it reports CRITICAL and IMPORTANT findings and drops SUGGESTION ones.

Scope: I read every hunk of .claude-lane/incremental.diff, which covers both listed files.

  • plugins/planning/evals/design-types-ts-idioms/graders/retry-constant-typed.md: adds a regex grader. It checks the eval's own output artifact .work/shipment-poller/design/type-inventory.md for a retry constant that is annotated with a type or checked with satisfies.
  • plugins/planning/evals/design-types-ts-idioms/samples/retry-constant-typed.json: adds the pass and fail sample strings for that grader.

What I checked:

  • Neither file is on a trusted path, and neither is a workflow, a plugin manifest, a userConfig key or a trust control.
  • No tool grant, permission or token scope changes.
  • No standing instruction is deleted or softened.
  • The grader reads only a fixed path inside the eval's .work/ workspace. It does not take that path from input, and it runs nothing.
  • The regex is fixed and is applied to the eval's own output. No attacker-supplied input reaches it.

Spend: none of these files changes the eval's run count or limits. The added grader runs inside the eval case's existing runs.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on bddcaa9898394a3f1c6f5d5f68dd210b60bfd26e; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 79d2b69532282329c8f64d335e5d22cd7fb5f156: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): PR #16810 at 79d2b695

This review covers only the change since b7d33259. That change adds two files, and I read every hunk of both in .claude-lane/incremental.diff:

  • plugins/planning/evals/design-types-ts-idioms/graders/retry-constant-typed.md
  • plugins/planning/evals/design-types-ts-idioms/samples/retry-constant-typed.json

For context I also read the rest of the case at head (case.yaml, prompt.md, scaffold.sh, graders/reads-type-rules.md) and the sibling Python case's regex graders. This lane has already reviewed earlier heads, so this review reports blocking findings only.

The earlier finding is fixed

The last review found that literal-satisfies had been deleted with no spec. That left nothing checking that type-inventory.md gets written.

This push adds retry-constant-typed.md, a regex grader that targets .work/shipment-poller/design/type-inventory.md. It passes when the retry constant is annotated with a named retry type (const X: [Readonly<]…Retry…) or checked with satisfies. Its sample file lists an empty artifact as a failure, which is what the earlier finding asked for. A run that reads the rules and writes nothing now fails the case again.

Grader check

I checked the pattern against every sample by hand; I ran nothing. With flags: i, the result matches each sample's label:

  • All 4 pass samples match: an annotation followed by as const, a plain annotation, a Readonly<RetryConfig> annotation, and } satisfies RetryPolicy.
  • None of the 5 fail samples match:
    • the empty file
    • the untyped literal
    • the as RetryPolicy cast
    • the interface and signature with no constant
    • const retryCount: number, a typed constant with no retry type

flags: i, the target form and leaving out arm all match the sibling design-types-py-money-minor-units/graders/integer-minor-units.md.

New findings: none blocking.

Other notes

  • Unverified claims: the PR body's eval verdicts are the author's claims; I have not verified them.
  • Closing issue: the PR body says only Refs: #16754 and closes no issue, so there are no acceptance criteria to check. I found no embedded instructions in the PR context, settled-threads or prior-findings files.
  • Spend: this change can't cause a charge. The case still uses 3 runs and 20 turns, and the extra regex grader adds no model turns.
  • Loosened-check verdict: fail (the default; the wrapper wrote no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. This push adds a check and loosens none.
  • Manifests: no .claude-plugin/plugin.json or marketplace.json changed, so there are no manifest lines.

Verifier dropped 0 of 0 candidates.

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: NOT PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.327 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: a re-run of eval-pr-16810b's registration on the PR's new head bddcaa9: one comment-only commit (bd131ff: the design-types-ts-idioms scaffold header deleted, two re-pin justifications in tests/interview-defenses.test.sh reworded to link ADR 0101) and merges of main up to eaf7446, which is the new BEFORE; main's changes to the interview skill text since 16810b (a live-system lookup clause, an auto value for question_pacing, a /planning:prd handoff) are present on both sides. The PR is not a pure cut: F0318 deletes the design skill's TypeScript idioms page and F0317 the Phase 3 table that loaded it; F0319, F0320, F0321 and F0322 are pure cuts of examples. Measured: F0317 and F0318 (design-types-ts-idioms), F0319 (design handoff rules-only case on a Rust stub body), the checklist template's part of F0321 (interview case). Unmeasured: F0322 and the assumption-sweep.md part of F0321, F0320, and the deleted page's idioms other than satisfies. The gate for this registration is no new loss against eval-pr-16810b's recorded after side (prereg.md); the literal-satisfies loss is accepted by the owner and ledger-fline-basis has a known grader fault.

  • Same cases as eval-pr-16810b, byte for byte. The design types case is the existing design-types-ts-idioms as the PR left it at 4bea779 (its reads-typescript-idioms grader deleted by the PR), renamed only; the PR's later commit deletes only that scaffold's two header comment lines, which grade nothing. The interview case is the existing interview-fact-looked-up-not-asked with its prompt and scaffold unchanged and its llm grader replaced by four deterministic graders, two of them on the written ledger; cites-retry-source is kept.

  • Re-registered because the PR head moved from 4bea779 to bddcaa9 (a comment-only commit, then merges of main up to eaf7446) and tests/interview-defenses.test.sh is a side file. BEFORE moved from a9fbe61 to eaf7446, so both sides carry main's interview-skill changes since then.

  • Unmeasured rows: F0320, F0322, the assumption-sweep.md part of F0321, and the deleted TypeScript page's idioms other than satisfies.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: eaf7446bc1679bd6a1e4cfe0cfd7021af166bf01 (merge base with main)

  • After: bddcaa9898394a3f1c6f5d5f68dd210b60bfd26e (pull request head; live head when this was written: bddcaa9898394a3f1c6f5d5f68dd210b60bfd26e)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p16810-design-types-ts-idioms reads-type-rules 3/3 3/3
p16810-design-types-ts-idioms literal-satisfies 3/3 0/3
p16810-design-types-ts-idioms mean case score 1.000 0.500
p16810-design-rust-stub-body names-stub-section 3/3 3/3
p16810-design-rust-stub-body stub-body-rust 3/3 3/3
p16810-design-rust-stub-body stub-body-not-python 3/3 3/3
p16810-design-rust-stub-body mean case score 1.000 1.000
p16810-interview-fact-cited-with-line cites-retry-source 3/3 3/3
p16810-interview-fact-cited-with-line states-retry-count 3/3 3/3
p16810-interview-fact-cited-with-line cites-config-line 3/3 3/3
p16810-interview-fact-cited-with-line ledger-fline-basis 2/3 2/3
p16810-interview-fact-cited-with-line ledger-no-template-example 3/3 3/3
p16810-interview-fact-cited-with-line mean case score 0.933 0.933

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Changed files the compare runs opened, per case and side:

  • p16810-design-types-ts-idioms before: opened skills/design/reference/type-discipline/typescript.md in 3 of 3 runs
  • p16810-design-types-ts-idioms after: opened no changed file in 3 runs
  • p16810-design-rust-stub-body before: opened no changed file in 3 runs
  • p16810-design-rust-stub-body after: opened no changed file in 3 runs
  • p16810-interview-fact-cited-with-line before: opened skills/interview/templates/checklist.md in 3 of 3 runs
  • p16810-interview-fact-cited-with-line after: opened skills/interview/context/loop.md in 2 of 3 runs; opened skills/interview/templates/checklist.md in 3 of 3 runs

Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

  • F0317 (skills/design/SKILL.md, case p16810-design-types-ts-idioms): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0319 (skills/design/SKILL.md, case p16810-design-rust-stub-body): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0321 (skills/interview/templates/checklist.md, case p16810-interview-fact-cited-with-line): opened in 3 of 3 before, 3 of 3 after runs

Rows these runs did not measure:

  • F0318 (skills/design/reference/type-discipline/typescript.md, case p16810-design-types-ts-idioms): opened in 3 of 3 before, 0 of 3 after runs: below the measured line

Verdicts:

  • verdict p16810-design-types-ts-idioms (design): LOSS (after 0.500 is 0.500 below before; trace read and opus confirm next)
  • verdict p16810-design-rust-stub-body (design-handoff): PASS (no loss: after 1.000, before 1.000)
  • verdict p16810-interview-fact-cited-with-line (interview): PASS (no loss: after 0.933, before 0.933)

Cost: 5.07 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 3 cases: prompt.md and case.yaml

p16810-design-types-ts-idioms

prompt.md:

---
description: "Hard case. Source: the existing case design-types-ts-idioms as PR 16810 leaves it (its reads-typescript-idioms grader deleted by the PR), copied unchanged but for its name; cuts F0317 and F0318. Outcome case: a TypeScript shipment poller needs a retry policy literal set once in code. Phase 3 reads the shared type rules and holds the literal to its type with satisfies. Hard because only the deleted TypeScript idioms page named satisfies for a literal; after the cut the session must reach it from the shared type rules alone (the PR body predicts literal-satisfies drops on the after side)."
tags: [design, outcome, type-discipline, typescript, scaffold, hard]
runs: 3
max_turns: 20
timeout_seconds: 600
allowed_tools: [Read, Skill, Write]
expected_outcome: "The run reads the skill's shared type rules, and .work/shipment-poller/design/type-inventory.md holds the retry literal to its type with satisfies"
---

/planning:design library

Topic slug `shipment-poller`; the Brief is in `.work/shipment-poller/PLAN.md` and `.work/shipment-poller/design/design-threads.md` holds the settled threads. Threads are settled, so move on to type modeling: write `.work/shipment-poller/design/type-inventory.md`, with each type's definition, the retry constant and each function signature written out in the repository's language, then stop. Don't write any other file.

case.yaml:

schema_version: "1.1"
name: p16810-design-types-ts-idioms
context:
  scaffold_script: scaffold.sh

p16810-design-rust-stub-body

prompt.md:

/planning:design handoff Before you run the gate, one question. This repository is Rust only, and its docs/conventions/planning.yaml sets scaffold_stubs: true. When the gate writes out the stub files for the new modules, what body does each stub function get? Answer from the skill's rules only, don't run the gate yet, and end your reply with this line:

STUB-BODY: <the body each stub function gets>

case.yaml:

schema_version: "1.1"
name: p16810-design-rust-stub-body
description: "Hard case. Source: written for PR 16810 (cut F0319, the raise NotImplementedError and todo!() examples of the design handoff's stub bodies), the consumer's own writing, no transcript; rules-only, it ends before the gate runs. Hard because the old rule named the Rust form outright, while the new one says only 'the language's ordinary not-implemented form', so the session must supply the Rust macro itself and must not carry over the Python form the old sentence also named."
tags: [design, handoff, stub-scaffold, hard]
plugins: ["../.."]
runs: 3
expected_outcome: "The reply says the gate adds a Stub scaffold section and ends with a STUB-BODY line naming todo!() (or unimplemented!()), not a Python raise."
execution:
  allowed_tools: [Read, Glob, Grep, Skill]
  max_turns: 10
  timeout_seconds: 300
graders:
  - name: 'names-stub-section'
    type: 'regex'
    pattern: 'stub scaffold'
    flags: 'i'
  - name: 'stub-body-rust'
    type: 'regex'
    pattern: '^\W*STUB-BODY:[^\n]*\b(?:todo|unimplemented)!\s*\('
    flags: 'mi'
  - name: 'stub-body-not-python'
    type: 'regex'
    pattern: '^\W*STUB-BODY:[^\n]*(?:NotImplementedError|\braise\b)'
    flags: 'mi'
    match: 'not_contains'

p16810-interview-fact-cited-with-line

prompt.md:

---
description: "Hard case. Source: the existing case interview-fact-looked-up-not-asked, copied for PR 16810 (cuts F0321, the package.json:14 bullmq basis example in assumption-sweep.md and the checklist template's example F1 line, and F0322, loop.md's assume-Postgres example), prompt and scaffold unchanged, its llm grader replaced by deterministic ones; cites-retry-source is kept. The alert threshold turns on how many times the webhook sender retries today, which the user does not know and the repository's config file states. Why hard: the user's 'I don't know' invites a question back, or a request to go and check, when the fact is the interview's to look up; and the basis must quote the file with its line, the form the cut example showed (cites-config-line). In eval-pr-16810's smoke the first message read the checklist template, not context/loop.md, so this case measures the template's part of F0321: the ledger's F-line keeps a file:line basis (ledger-fline-basis) and the template's example line does not reach the ledger (ledger-no-template-example); F0322 is not reached."
tags: [interview, self-answer, facts, scaffold, hard]
runs: 3
max_turns: 16
timeout_seconds: 600
allowed_tools: [Read, Glob, Grep, Skill]
expected_outcome: "The reply states the current retry count (4 retries, from config/webhooks.json) as a looked-up fact with its source and builds its alert-threshold recommendation on it; it does not ask the user how many retries there are or ask them to go and find out"
---

/planning:interview me: alert the on-call engineer when a partner webhook finally fails. I don't know how many times the sender retries today, so I can't say when "finally" is. I'm here and will answer.

[Session state: an engineering session in this repository; the quality bar is production, already stated. Nothing has been asked yet. Write your first message to the user.]

case.yaml:

schema_version: "1.1"
name: p16810-interview-fact-cited-with-line
context:
  scaffold_script: scaffold.sh

How this registration is read: the scoring script prints NOT PASS because literal-satisfies falls from 3 of 3 to 0 of 3, the same loss the first eval of this pull request read and the owner accepted on 2026-11-17 ("go w/ recomemndations", to the question put with accept-and-merge as its recommended option). The registration, written before any run, said that verdict alone would not fail it; it fails only on a new loss against the earlier eval's new-text counts on any grader other than literal-satisfies and ledger-fline-basis (a grader that passes in 2 or more fewer runs, or a case whose mean over the other graders drops by 0.15 or more). Read by hand against that rule: no new loss. Every other grader passes in 3 of 3 new-text runs (the earlier eval read 3 of 3 on each, and 2 of 3 on names-stub-section), and ledger-fline-basis, the grader the earlier trace read found at fault, reads 2 of 3 on both sides here. Limits: this compares across one Claude Code version (2.1.327 here, 2.1.326 before) and across main's interview-skill changes, which are on both sides. No eval-pair line is posted, because the script's verdict is a loss. The owner signed off this reading on 2026-11-18, typed in the agent session, verbatim: "Go with recommendations." (to the question listing this hand-read rule with sign-off as its recommended option), so the session removes its own do-not-merge label.

Denied calls: one Bash call in one old-text run and one Glob call in one new-text run were denied by the sandbox; no grader reads those tools, so all compare runs are counted.

Posted by an agent session.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
Case 7 of the design skill's evals keeps outside input typed unknown
(never any), which the shared rule for data with no type yet still
requires, and cases 7 and 8 check that no file under
reference/type-discipline/ is read. The design-types-ts-idioms case
retires its literal-satisfies grader and samples, since the shared rules
do not teach satisfies, and now names the read of the shared type rules
as its outcome.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44234661675

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton

Copy link
Copy Markdown
Member

The head moved from bddcaa9 to b7d3325 to address the two claude-review threads. The commit changes only eval cases and graders under plugins/planning:

  • plugins/planning/skills/design/evals/evals.json
  • plugins/planning/evals/design-types-ts-idioms/prompt.md (description and expected_outcome only; the prompt body and scaffold are unchanged)
  • plugins/planning/evals/design-types-ts-idioms/graders/literal-satisfies.md (removed)
  • plugins/planning/evals/design-types-ts-idioms/samples/literal-satisfies.json (removed)

None of these is among the skill, reference and test files the targeted eval measured, so its measurement of the cut stands for the new head. On the design types case, the posted result recorded reads-type-rules at 3/3 before and 3/3 after and literal-satisfies at 3/3 before and 0/3 after, the loss the owner accepted; with literal-satisfies retired, the case's remaining grader passed in every after-cut run.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on b7d33259adf09af90b2322603239cb2e82e276c4; the summary is in this lane's pull request comment.

claude-lane: claude-review

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
…oms case

Add graders/retry-constant-typed.md, a regex on
.work/shipment-poller/design/type-inventory.md: the retry constant is
declared against a named retry type, by annotation or by satisfies,
never by a cast. An empty artifact, an untyped literal, a cast and a
type with no constant fail; samples/retry-constant-typed.json holds
the pass and fail answers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member

Held with do-not-merge for the owner's answer; no eval is owed.

The code review of b7d3325 failed the deletion of graders/literal-satisfies.md as a loosened check (thread) and offered two fixes. An agent session is pushing the first one: a replacement grader that checks type-inventory.md is written, without grading the satisfies idiom the cut page taught. That grader is an agent-made choice, so this pull request waits until the owner has seen it. The label comes off when he answers.

Posted by an agent session.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44242036442

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44242036442

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on b7d3325.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44242036442

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the review replies the lane recorded did not pass validation, so none was posted. The lane sets no label: the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=16810 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44242036442

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton

Copy link
Copy Markdown
Member

Held for the owner's decision: the review failed the deletion of the literal-satisfies grader as a loosened check, and an agent added a replacement grader (retry-constant-typed) in answer. The owner chooses between keeping that replacement, retiring the grader with a spec line on the issue, or restoring the old one (question Q61 in the backlog drive's morning report). do-not-merge stays until he answers.

@kyle-sexton

Copy link
Copy Markdown
Member

Owner decision, 2026-11-18, typed in the owning session: "go w/ recommendations" on Q61, option A: keep the replacement grader retry-constant-typed and merge. The hold is lifted.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44327021815

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit e315096 Nov 18, 2026
86 of 88 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-16754-44108846044-1 branch November 18, 2026 16:26
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant