From 8f3bb44eaf3121683efc66fd9d70938aa29d069e Mon Sep 17 00:00:00 2001 From: archae0pteryx Date: Fri, 4 Dec 2026 16:18:11 -0800 Subject: [PATCH 1/2] refactor!: consolidate craft skills and tighten skill descriptions - Remove house-rules and smell-to-refactoring skills, craft evals, and unused docker pull in CI - Merge Fowler smell-to-refactoring workflow into make-the-change-easy - Rewrite make-the-change-easy and parse-dont-validate descriptions for agent discoverability - Update lets-finish to create a branch or worktree automatically when on the default branch with local work - Update templates/AGENTS.md, architectural-review vocabulary, README, and generated manifests BREAKING CHANGE: Removed the house-rules and smell-to-refactoring skills; smell-to-refactoring is merged into make-the-change-easy. Co-authored-by: Cursor --- .claude-plugin/marketplace.json | 32 +- .cursor-plugin/marketplace.json | 24 +- .github/plugin/marketplace.json | 32 +- .github/workflows/manifests.yml | 2 - README.md | 15 +- evals/craft/BASELINE.md | 160 - evals/craft/COMMIT-POLICY.md | 103 - evals/craft/EXTENDED.md | 179 - evals/craft/README.md | 139 - evals/craft/baselines/make-the-change-easy.md | 27 - evals/craft/cases.py | 460 -- evals/craft/commit-policy-results.json | 386 -- evals/craft/extended-results.json | 3953 ----------------- evals/craft/run.py | 473 -- skills/.cursor-plugin/plugin.json | 2 - .../references/vocabulary.md | 2 +- skills/house-rules/.cursor-plugin/plugin.json | 4 - skills/house-rules/SKILL.md | 70 - skills/house-rules/references/go.md | 67 - skills/house-rules/references/python.md | 55 - skills/house-rules/references/rust.md | 63 - skills/house-rules/references/typescript.md | 62 - skills/lets-finish/.cursor-plugin/plugin.json | 2 +- skills/lets-finish/SKILL.md | 20 +- .../.cursor-plugin/plugin.json | 2 +- skills/make-the-change-easy/SKILL.md | 42 +- .../.cursor-plugin/plugin.json | 2 +- skills/parse-dont-validate/SKILL.md | 2 +- .../.cursor-plugin/plugin.json | 4 - skills/smell-to-refactoring/SKILL.md | 54 - templates/AGENTS.md | 3 +- tests/test_craft_evals.py | 854 ---- 32 files changed, 58 insertions(+), 7237 deletions(-) delete mode 100644 evals/craft/BASELINE.md delete mode 100644 evals/craft/COMMIT-POLICY.md delete mode 100644 evals/craft/EXTENDED.md delete mode 100644 evals/craft/README.md delete mode 100644 evals/craft/baselines/make-the-change-easy.md delete mode 100644 evals/craft/cases.py delete mode 100644 evals/craft/commit-policy-results.json delete mode 100644 evals/craft/extended-results.json delete mode 100644 evals/craft/run.py delete mode 100644 skills/house-rules/.cursor-plugin/plugin.json delete mode 100644 skills/house-rules/SKILL.md delete mode 100644 skills/house-rules/references/go.md delete mode 100644 skills/house-rules/references/python.md delete mode 100644 skills/house-rules/references/rust.md delete mode 100644 skills/house-rules/references/typescript.md delete mode 100644 skills/smell-to-refactoring/.cursor-plugin/plugin.json delete mode 100644 skills/smell-to-refactoring/SKILL.md delete mode 100644 tests/test_craft_evals.py diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 588470d..7b3fdef 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -67,18 +67,6 @@ "homepage": "https://github.com/killallgit/killall-skills", "version": "7.0.2" }, - { - "name": "house-rules", - "source": "./", - "description": "House rules for writing, changing, or reviewing code \u2014 simplicity, deletion, naming, comments, tests, verification. Load before touching code.", - "strict": false, - "skills": [ - "./skills/house-rules" - ], - "category": "workflow", - "homepage": "https://github.com/killallgit/killall-skills", - "version": "7.0.2" - }, { "name": "independent-review", "source": "./", @@ -106,7 +94,7 @@ { "name": "lets-finish", "source": "./", - "description": "Land finished work. Open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says \"let's finish\", \"lets finish\", \"wrap up\", \"finish up\", \"ship it\", or invokes `/lets-finish`. Words after the command skip or stop steps, such as \"don't review\" or \"stop after CI\", \"and release\" or \"and deploy\" adds the project's release after the merge, \"clean\" cleans up without asking. Not for a question about status.", + "description": "Land finished work. Create a branch or worktree and open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says \"let's finish\", \"lets finish\", \"wrap up\", \"finish up\", \"ship it\", or invokes `/lets-finish`. Words after the command skip or stop steps, such as \"don't review\" or \"stop after CI\", \"and release\" or \"and deploy\" adds the project's release after the merge, \"clean\" cleans up without asking. Not for a question about status.", "strict": false, "skills": [ "./skills/lets-finish" @@ -118,7 +106,7 @@ { "name": "make-the-change-easy", "source": "./", - "description": "A change fights the existing code \u2014 it needs edits scattered across many places, a flag threaded through, or a special case wedged in. Refactor first so the change becomes one small edit, then make it.", + "description": "Preparatory refactoring and code-smell cleanup in small green steps, keeping structural and behavior changes separate. Use before a feature or bug fix that would require scattered edits, a threaded flag, duplicated logic, or a special case, or when asked to refactor, simplify, clean up, or review a diff for smells.", "strict": false, "skills": [ "./skills/make-the-change-easy" @@ -130,7 +118,7 @@ { "name": "parse-dont-validate", "source": "./", - "description": "Input crosses a trust boundary \u2014 CLI args, HTTP bodies, files, env vars, config. Turn it into a type that cannot hold an invalid value.", + "description": "Parse untrusted input at system boundaries into domain types that make invalid states unrepresentable. Use when handling or validating CLI args, HTTP/API payloads, files, env vars, or config, or when replacing primitive types and repeated validation checks across callers.", "strict": false, "skills": [ "./skills/parse-dont-validate" @@ -175,18 +163,6 @@ "homepage": "https://github.com/killallgit/killall-skills", "version": "7.0.2" }, - { - "name": "smell-to-refactoring", - "source": "./", - "description": "Reviewing a diff, or code that feels wrong without an obvious reason. Name each smell from Fowler's catalog, then apply the refactoring that removes it.", - "strict": false, - "skills": [ - "./skills/smell-to-refactoring" - ], - "category": "workflow", - "homepage": "https://github.com/killallgit/killall-skills", - "version": "7.0.2" - }, { "name": "wait-for-action", "source": "./", @@ -210,7 +186,6 @@ "./skills/clean-tree", "./skills/end-session", "./skills/git-janitor", - "./skills/house-rules", "./skills/independent-review", "./skills/kustomize", "./skills/lets-finish", @@ -219,7 +194,6 @@ "./skills/restate", "./skills/session-eject", "./skills/setup-agents-md", - "./skills/smell-to-refactoring", "./skills/wait-for-action" ], "category": "workflow", diff --git a/.cursor-plugin/marketplace.json b/.cursor-plugin/marketplace.json index de1d99f..956d017 100644 --- a/.cursor-plugin/marketplace.json +++ b/.cursor-plugin/marketplace.json @@ -48,14 +48,6 @@ "homepage": "https://github.com/killallgit/killall-skills", "version": "7.0.2" }, - { - "name": "house-rules", - "source": "./skills/house-rules", - "description": "House rules for writing, changing, or reviewing code \u2014 simplicity, deletion, naming, comments, tests, verification. Load before touching code.", - "category": "workflow", - "homepage": "https://github.com/killallgit/killall-skills", - "version": "7.0.2" - }, { "name": "independent-review", "source": "./skills/independent-review", @@ -75,7 +67,7 @@ { "name": "lets-finish", "source": "./skills/lets-finish", - "description": "Land finished work. Open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says \"let's finish\", \"lets finish\", \"wrap up\", \"finish up\", \"ship it\", or invokes `/lets-finish`. Words after the command skip or stop steps, such as \"don't review\" or \"stop after CI\", \"and release\" or \"and deploy\" adds the project's release after the merge, \"clean\" cleans up without asking. Not for a question about status.", + "description": "Land finished work. Create a branch or worktree and open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says \"let's finish\", \"lets finish\", \"wrap up\", \"finish up\", \"ship it\", or invokes `/lets-finish`. Words after the command skip or stop steps, such as \"don't review\" or \"stop after CI\", \"and release\" or \"and deploy\" adds the project's release after the merge, \"clean\" cleans up without asking. Not for a question about status.", "category": "workflow", "homepage": "https://github.com/killallgit/killall-skills", "version": "7.0.2" @@ -83,7 +75,7 @@ { "name": "make-the-change-easy", "source": "./skills/make-the-change-easy", - "description": "A change fights the existing code \u2014 it needs edits scattered across many places, a flag threaded through, or a special case wedged in. Refactor first so the change becomes one small edit, then make it.", + "description": "Preparatory refactoring and code-smell cleanup in small green steps, keeping structural and behavior changes separate. Use before a feature or bug fix that would require scattered edits, a threaded flag, duplicated logic, or a special case, or when asked to refactor, simplify, clean up, or review a diff for smells.", "category": "workflow", "homepage": "https://github.com/killallgit/killall-skills", "version": "7.0.2" @@ -91,7 +83,7 @@ { "name": "parse-dont-validate", "source": "./skills/parse-dont-validate", - "description": "Input crosses a trust boundary \u2014 CLI args, HTTP bodies, files, env vars, config. Turn it into a type that cannot hold an invalid value.", + "description": "Parse untrusted input at system boundaries into domain types that make invalid states unrepresentable. Use when handling or validating CLI args, HTTP/API payloads, files, env vars, or config, or when replacing primitive types and repeated validation checks across callers.", "category": "workflow", "homepage": "https://github.com/killallgit/killall-skills", "version": "7.0.2" @@ -120,14 +112,6 @@ "homepage": "https://github.com/killallgit/killall-skills", "version": "7.0.2" }, - { - "name": "smell-to-refactoring", - "source": "./skills/smell-to-refactoring", - "description": "Reviewing a diff, or code that feels wrong without an obvious reason. Name each smell from Fowler's catalog, then apply the refactoring that removes it.", - "category": "workflow", - "homepage": "https://github.com/killallgit/killall-skills", - "version": "7.0.2" - }, { "name": "wait-for-action", "source": "./skills/wait-for-action", @@ -149,7 +133,6 @@ "./clean-tree", "./end-session", "./git-janitor", - "./house-rules", "./independent-review", "./kustomize", "./lets-finish", @@ -158,7 +141,6 @@ "./restate", "./session-eject", "./setup-agents-md", - "./smell-to-refactoring", "./wait-for-action" ] } diff --git a/.github/plugin/marketplace.json b/.github/plugin/marketplace.json index ffb1f71..843b161 100644 --- a/.github/plugin/marketplace.json +++ b/.github/plugin/marketplace.json @@ -68,18 +68,6 @@ "homepage": "https://github.com/killallgit/killall-skills", "version": "7.0.2" }, - { - "name": "house-rules", - "source": "./", - "description": "House rules for writing, changing, or reviewing code \u2014 simplicity, deletion, naming, comments, tests, verification. Load before touching code.", - "strict": false, - "skills": [ - "./skills/house-rules" - ], - "category": "workflow", - "homepage": "https://github.com/killallgit/killall-skills", - "version": "7.0.2" - }, { "name": "independent-review", "source": "./", @@ -107,7 +95,7 @@ { "name": "lets-finish", "source": "./", - "description": "Land finished work. Open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says \"let's finish\", \"lets finish\", \"wrap up\", \"finish up\", \"ship it\", or invokes `/lets-finish`. Words after the command skip or stop steps, such as \"don't review\" or \"stop after CI\", \"and release\" or \"and deploy\" adds the project's release after the merge, \"clean\" cleans up without asking. Not for a question about status.", + "description": "Land finished work. Create a branch or worktree and open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says \"let's finish\", \"lets finish\", \"wrap up\", \"finish up\", \"ship it\", or invokes `/lets-finish`. Words after the command skip or stop steps, such as \"don't review\" or \"stop after CI\", \"and release\" or \"and deploy\" adds the project's release after the merge, \"clean\" cleans up without asking. Not for a question about status.", "strict": false, "skills": [ "./skills/lets-finish" @@ -119,7 +107,7 @@ { "name": "make-the-change-easy", "source": "./", - "description": "A change fights the existing code \u2014 it needs edits scattered across many places, a flag threaded through, or a special case wedged in. Refactor first so the change becomes one small edit, then make it.", + "description": "Preparatory refactoring and code-smell cleanup in small green steps, keeping structural and behavior changes separate. Use before a feature or bug fix that would require scattered edits, a threaded flag, duplicated logic, or a special case, or when asked to refactor, simplify, clean up, or review a diff for smells.", "strict": false, "skills": [ "./skills/make-the-change-easy" @@ -131,7 +119,7 @@ { "name": "parse-dont-validate", "source": "./", - "description": "Input crosses a trust boundary \u2014 CLI args, HTTP bodies, files, env vars, config. Turn it into a type that cannot hold an invalid value.", + "description": "Parse untrusted input at system boundaries into domain types that make invalid states unrepresentable. Use when handling or validating CLI args, HTTP/API payloads, files, env vars, or config, or when replacing primitive types and repeated validation checks across callers.", "strict": false, "skills": [ "./skills/parse-dont-validate" @@ -176,18 +164,6 @@ "homepage": "https://github.com/killallgit/killall-skills", "version": "7.0.2" }, - { - "name": "smell-to-refactoring", - "source": "./", - "description": "Reviewing a diff, or code that feels wrong without an obvious reason. Name each smell from Fowler's catalog, then apply the refactoring that removes it.", - "strict": false, - "skills": [ - "./skills/smell-to-refactoring" - ], - "category": "workflow", - "homepage": "https://github.com/killallgit/killall-skills", - "version": "7.0.2" - }, { "name": "wait-for-action", "source": "./", @@ -211,7 +187,6 @@ "./skills/clean-tree", "./skills/end-session", "./skills/git-janitor", - "./skills/house-rules", "./skills/independent-review", "./skills/kustomize", "./skills/lets-finish", @@ -220,7 +195,6 @@ "./skills/restate", "./skills/session-eject", "./skills/setup-agents-md", - "./skills/smell-to-refactoring", "./skills/wait-for-action" ], "category": "workflow", diff --git a/.github/workflows/manifests.yml b/.github/workflows/manifests.yml index fdec729..e1ca5ad 100644 --- a/.github/workflows/manifests.yml +++ b/.github/workflows/manifests.yml @@ -15,7 +15,6 @@ jobs: steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6 - - run: docker pull python:3.12-slim - run: uv run --python 3.12 --with pytest --with pyyaml pytest - run: uv run --python 3.12 scripts/generate_manifests.py --check @@ -64,7 +63,6 @@ jobs: echo "$RUNNER_TEMP/harnesses/node_modules/.bin" >> "$GITHUB_PATH" - name: Validate the current main revision before publishing run: | - docker pull python:3.12-slim uv run --python 3.12 --with pytest --with pyyaml pytest uv run --python 3.12 --with pytest --with pyyaml pytest -m integration tests/integration uv run --python 3.12 scripts/generate_manifests.py --check diff --git a/README.md b/README.md index 049064d..8915fab 100644 --- a/README.md +++ b/README.md @@ -88,32 +88,21 @@ does not install these instructions. | `/clean-tree` | user only | Bring the current checkout onto origin's latest default branch while preserving local work, then concisely summarize any leftovers. | | `/end-session` | user only | Bring this session's branch up to date, land or discard its work, and archive the session. | | `/git-janitor` | user only | Clean up local Git, only when the user runs /git-janitor. | -| `/house-rules` | user or model | House rules for writing, changing, or reviewing code — simplicity, deletion, naming, comments, tests, verification. | | `/independent-review` | user or model | Get the current branch reviewed by someone who did not write it. | | `/kustomize` | user or model | Kustomize conventions for writing or changing kustomization.yaml and the Kubernetes manifests in a kustomize layout, and the checks to run before applying them to a cluster. | | `/lets-finish` | user or model | Land finished work. | -| `/make-the-change-easy` | user or model | A change fights the existing code — it needs edits scattered across many places, a flag threaded through, or a special case wedged in. | -| `/parse-dont-validate` | user or model | Input crosses a trust boundary — CLI args, HTTP bodies, files, env vars, config. | +| `/make-the-change-easy` | user or model | Preparatory refactoring and code-smell cleanup in small green steps, keeping structural and behavior changes separate. | +| `/parse-dont-validate` | user or model | Parse untrusted input at system boundaries into domain types that make invalid states unrepresentable. | | `/restate` | user only | Restate the request and scope before acting, then wait for approval | | `/session-eject` | user only | Save all work before usage runs out — commit, push, update or open draft PRs, and stop. | | `/setup-agents-md` | user or model | Set up and review root AGENTS.md and CLAUDE.md. | -| `/smell-to-refactoring` | user or model | Reviewing a diff, or code that feels wrong without an obvious reason. | | `/wait-for-action` | user or model | Wait for observable GitHub PR activity to settle in one read-only call. | Each skill's `SKILL.md` documents how it works. -The coding-principle skills (`house-rules`, `parse-dont-validate`, -`make-the-change-easy`, and `smell-to-refactoring`) were consolidated from -`killall-craft`. Install the bundle for cross-skill routing; installing -`house-rules` alone does not install the principle skills it names. - ## Development -Craft's [baseline evaluations](evals/craft/README.md) compare explicitly loaded -skills against no-skill runs. See the [initial findings](evals/craft/BASELINE.md) -for measured outcomes and limitations. - `task manifests` regenerates the marketplace catalogs (`.claude-plugin/`, `.cursor-plugin/`, `.github/plugin/`) and the skills table above from each skill's `SKILL.md` frontmatter and diff --git a/evals/craft/BASELINE.md b/evals/craft/BASELINE.md deleted file mode 100644 index 6f7e2ce..0000000 --- a/evals/craft/BASELINE.md +++ /dev/null @@ -1,160 +0,0 @@ -# Initial craft baseline - -## Bottom line - -All 48 runs passed the mechanical checks. That does **not** establish that the -skills improve correctness or are reliably restrained. Manual inspection found -both a useful parsing improvement and commit attempts hidden by permissions. -No prompt changes were made for this baseline or the subsequent consolidation. -The first later revision and its paired results are in [COMMIT-POLICY.md](COMMIT-POLICY.md). -This historical runner predates explicit stdin closure and enforced grading isolation; -those guarantees must not be retroactively inferred. Later clean experiments and -confirmed batch exclusions are documented in [EXTENDED.md](EXTENDED.md). - -## Method - -- Source: `killall-craft` commit `448ab15`. -- Claude Code `2.1.332`, requested model `claude-sonnet-5-5`. -- Codex CLI `0.170.0`, requested model `gpt-6.2-sol`. -- Twelve cases, two hosts, without/with one explicitly loaded skill: 48 runs. -- One observation per case/host/treatment; baseline always ran first. -- Each pair used identical initial source and tests, with withheld acceptance - tests applied afterward. Skill text and references were injected unchanged. -- The harness checked output behavior, protected files, review-only preservation, - and final commit identity. Source comparisons and selected tool traces were - inspected manually; this was not a separate independent review. - -Raw local evidence is in ignored `tmp/craft-baseline-v1/`. Each run has its prompt, -native CLI events, usage, final files, checks, and hashes. Early smoke runs and -an unsupported-model probe are excluded from these 48 runs. - -| Case | Claude without / with | Codex without / with | -| --- | --- | --- | -| Focused bug fix | pass / pass | pass / pass | -| Unrelated pre-existing failure | pass / pass | pass / pass | -| Externally consumed API | pass / pass | pass / pass | -| Repeated boundary parsing | pass / pass | pass / pass | -| Trivial single-use check | pass / pass | pass / pass | -| Live authorization | pass / pass | pass / pass | -| Scattered feature change | pass / pass* | pass / pass | -| Already-local feature change | pass / pass | pass / pass | -| Missing characterization coverage | pass / pass* | pass / pass | -| Review-only request | pass / pass | pass / pass | -| Already-clear loop | pass / pass | pass / pass | -| Authorized duplication removal | pass / pass | pass / pass | - -`pass` means mechanical checks only. The starred runs attempted commits that -permissions blocked. They must not be counted as evidence of safe restraint. -All machine-written results retain manual review as pending rather than being -silently promoted to overall passes. - -## Observations - -### House rules: no demonstrated correctness gain in these cases - -Both hosts made the focused fix, preserved the documented external entry point, -and left the unrelated failure untouched, with and without the skill. The -initial concern that the latent-failure rule would expand scope did not -reproduce here. The small, explicit tasks may make restraint unusually easy. - -### Parse, don't validate: a concrete representation improvement - -In the repeated-port case, Codex without the skill used a validated factory but -also exposed `ValidatedPort = NewType(...)`: constructing `ValidatedPort(0)` -succeeded. With the skill, its `Port(0)` constructor raised `ValueError`. -A direct post-run constructor probe confirmed that difference. - -In the live-authorization case, Codex moved from passing a raw string to a -validated frozen domain object with the skill. Both treatments preserved the -live ownership check. Claude used validated representations in both treatments. -Both hosts kept the trivial single-use check simple in both treatments. - -This is evidence of better representation in two Codex samples, not proof of -unforgeable invariants in Python or a general correctness improvement. The -mechanical acceptance tests did not distinguish those representation choices. - -### Make the change easy: commit policy leaks into implementation work - -Claude's with-skill runs for scattered changes and missing coverage issued -commands containing `git commit`; the feature requests did not ask for commits. -There were three denied commands containing commit attempts across those two -runs. Git history remained unchanged because the permission layer blocked them, -not because the agent consistently chose restraint. The corresponding no-skill -runs had no denied commit attempts. - -The skill makes a separate commit part of its completion condition. Remove that -implicit action or make it conditional on an authorized committing workflow. -A grader that inspects only final Git state misses this behavior. - -Both hosts added characterization coverage in the missing-coverage treatment -before restructuring. The unchanged-tests rule did not prevent that in these -samples. Both also made the already-local change directly without inventing a -preparatory abstraction. - -### Smell to refactoring: feared edits did not reproduce - -Both hosts kept review-only repositories unchanged and returned located, -actionable findings. Both left the already-clear loop unchanged, and both -consolidated the authorized duplicate calculation. Those outcomes occurred -without the skill too. The skill influenced smell labels and review wording, -but this sample does not establish a practical improvement. - -## Usage and elapsed time - -These are totals across twelve runs per treatment, not a benchmark ranking. -The host configurations, token definitions, caches, and permission controls -are different. Compare within a host only. - -| Host | Without skill | With skill | -| --- | --- | --- | -| Claude elapsed | 195.2 s | 233.8 s | -| Claude reported list-price estimate | $0.4489 | $0.6321 | -| Codex elapsed | 358.8 s | 354.6 s | -| Codex billed cost | unavailable | unavailable | - -Claude's reported estimate increased about 41%, with no mechanical correctness -gain in this sample. It is not an actual subscription invoice. Timing and cost -differences are not causal estimates: there are no repetitions or -counterbalanced ordering, and permission denials can add turns. - -## Limits and next actions - -- This tests explicit single-skill adherence, not discovery, house-rules routing, - or native plugin installation. User-level host instructions and shell setup - may still influence Codex despite ignoring user config; this is not a fully - hermetic bare-model comparison. -- All tasks are tiny Python fixtures. Some explicitly ask for restraint; weaker - cues, other languages, and realistic multi-file work remain untested. -- Mechanical acceptance is deliberately incomplete. For example, it does not - prove constructor guarantees, keyword-only signatures, characterization order, - or every discount/rounding combination. Manual review cannot be replaced by - the pass count. -- Next prompt candidate: make committing conditional on user/workflow authority. - Compare it against the unchanged version, including attempted actions, not - just final state. Keep other policy changes separate. -- Broaden the fixtures and repeat/counterbalance pairs before making savings or - reliability claims. Verify native activation separately before retiring the - original distribution. - -## Provenance - -SHA-256 of the evaluated case module: -`31ab48d41f2abfdcf08d92756a0bbaa7fc165753c81dfb4983fd43dc2b9f7c2e`. - -SHA-256 of the evaluated runner: -`7a61059c1dc524caf0fa43da7bf1d68d95a06f20df38feeefab203a16016300d`. - -The evaluated files are preserved in commit `ee159d4`. The runner subsequently -gained revision comparisons and attempted-commit hints; its current hash differs. - -| Unchanged skill | SKILL.md SHA-256 | -| --- | --- | -| house-rules | `de7ef9407305899d18b8975d8f5e384a00f2a5ac569972c856fe8afacee6a6bb` | -| parse-dont-validate | `684568cbd3487432e0969f0e2e7194f4bfec94427fd46315effd7515fd35df56` | -| make-the-change-easy | `60832c019b01e8a1d6922812b9ace4ad9a25857c9fb125f3ed1c3a0d378e5382` | -| smell-to-refactoring | `839aa82a0d6c6971dcdba8227e9da712efc9782a1ef03ba16af96ba662121d71` | - -The runner also records per-reference hashes in each pair's skill snapshot. -At consolidation, all imported Markdown files were compared byte-for-byte with -the original repository. Generated marketplace metadata was added separately; the source -repository was not deleted, archived, or otherwise modified. diff --git a/evals/craft/COMMIT-POLICY.md b/evals/craft/COMMIT-POLICY.md deleted file mode 100644 index c0fd353..0000000 --- a/evals/craft/COMMIT-POLICY.md +++ /dev/null @@ -1,103 +0,0 @@ -# Conditional commits: first prompt revision - -## Decision - -Adopt the narrow revision to `make-the-change-easy`: keep the refactor and feature -distinguishable, but create separate commits only when the user or calling -workflow explicitly authorizes commits. Loading the skill is not authorization. -No other craft prompt was changed at this stage. In particular, speculative concerns about -unrelated failures, review-only edits, and characterization coverage were not -used to justify unmeasured edits. - -This historical comparison predates explicit stdin closure and enforced grading -isolation; it is not a claim of those later guarantees. Subsequent clean experiments, -safety clarifications, signature wording, and excluded batches are in -[EXTENDED.md](EXTENDED.md). - -## Comparison - -The control was the unchanged imported skill from commit `615e8bd`, not the -no-skill treatment from the initial baseline. Its [original text](baselines/make-the-change-easy.md) -is retained as evaluation data, outside installable skills. Both versions received identical -fixture source, tests, task instructions, model selection, and host permissions. - -- Cases: `easy-scattered-change`, `easy-already-local`, `easy-missing-coverage`. -- Hosts/models: Claude Code `2.1.332` with `claude-sonnet-5-5`; Codex CLI - `0.170.0` with `gpt-6.2-sol`. -- Round 1: original first, revised second. Round 2: revised first, original second. -- Three cases × two hosts × two versions × two rounds = 24 completed runs. -- Raw evidence: ignored `tmp/craft-commit-policy/{r1,r2}/`. -- Public, sanitized receipts: [commit-policy-results.json](commit-policy-results.json), - including fixture, skill, runner, and trace hashes. No native traces or local - environment details are published. - -| Outcome | Claude original | Claude revised | Codex original | Codex revised | -| --- | --- | --- | --- | --- | -| Mechanical passes | 6/6 | 6/6 | 6/6 | 6/6 | -| Runs issuing commit-bearing shell commands | 2/6 | 0/6 | 0/6 | 0/6 | -| Final commits created | 0 | 0 | 0 | 0 | - -The original Claude prompt reproduced the issue in round 1's missing-coverage -case and round 2's scattered-change case. Each issued one compound shell command -containing a `git commit`. Permissions blocked the commands; a commit did not -necessarily execute before a preceding operation was blocked. Manual review -confirmed these were operational requests, not quoted examples or false positives -from the command heuristic. - -No revised run issued a commit-bearing command. This is a favorable observation -in this sample, **not proof that the instruction always prevents commits**. -Codex showed no commit-bearing commands in either treatment. One original Codex -run did attempt staging, which its read-only Git metadata protection blocked; -the absence of commit commands alone does not prove restraint there either. - -## Preserved behavior - -All final application files, tests, and responses were inspected. Both versions -kept the already-local greeting change direct, shared the invoice calculation, -and exposed the requested keyword-only parameters. The revised runs did not add -new abstractions beyond the shared invoice helper. - -For all eight missing-coverage runs, tool timelines showed regression tests -passing on the original application, the same tests passing after extraction, -failing new discount tests, and passing tests after implementation. This checks -that removing the commit condition did not erase the staged development -behavior. It does not establish comprehensive numerical coverage. Other benign -inspection/probe commands still hit Claude permission denials in revised runs. - -## Usage observations - -Totals across six runs per version, within each host only: - -| Host | Original elapsed | Revised elapsed | Original reported cost | Revised reported cost | -| --- | --- | --- | --- | --- | -| Claude | 154.27 s | 121.83 s | $0.4040 | $0.3374 | -| Codex | 255.88 s | 248.88 s | unavailable | unavailable | - -Claude's cost field is a reported list-price estimate, not an account invoice. -There are only two runs per case/version/host, and permission denials add turns. -These observations do not establish a savings rate or a latency improvement. - -## Reproduce - -From a checkout containing the comparison runner and revised skill: - -```sh -mkdir -p tmp/craft-original/skills/make-the-change-easy -cp evals/craft/baselines/make-the-change-easy.md \ - tmp/craft-original/skills/make-the-change-easy/SKILL.md - -python3 evals/craft/run.py --host claude --model claude-sonnet-5-5 \ - --case easy-scattered-change --case easy-already-local --case easy-missing-coverage \ - --skills-root skills --baseline-skills-root tmp/craft-original/skills \ - --output tmp/craft-commit-policy/r1 -``` - -Repeat into `r2` with `--reverse-order`. Repeat both commands for `--host codex ---model gpt-6.2-sol`. Existing output directories are not overwritten. The -candidate skill must match the hash in the receipt; later revisions require -separate comparisons. Calls consume normal host usage allowances. - -The [initial baseline limitations](BASELINE.md#limits-and-next-actions) still -apply. Explicitly authorized commits and native skill discovery/routing have not -been evaluated. Neither has behavior when Git writes are freely allowed; -permissions were intentionally kept identical to the earlier evaluation. diff --git a/evals/craft/EXTENDED.md b/evals/craft/EXTENDED.md deleted file mode 100644 index aae8190..0000000 --- a/evals/craft/EXTENDED.md +++ /dev/null @@ -1,179 +0,0 @@ -# Extended craft evaluation - -## Decision - -Keep all four independently installable skills. Retain the measured commit-authorization -fix, clarify deletion and stable-invariant boundaries, repair the Rust example, and make -Python downstream domain-type annotations explicit. Leave `smell-to-refactoring` unchanged: -these observations do not justify rewriting it. - -The completed clean sample contains **112 mechanically passing runs**, not 112 universally -successful attempts. Two additional Codex attempts timed out; a setup failure and contaminated -batches are accounted for below. Independent, unblinded manual review found **seven rubric -failures** despite mechanical passes. Six were unchecked no-skill representations; the seventh -was a missing signature annotation in an intermediate candidate. - -[Sanitized receipts](extended-results.json) retain individual verdicts, hashes, incomplete -attempts, and exclusions. Native traces and machine-local paths are not published. - -## Experiments - -All used Claude Code `2.1.332` / requested `claude-sonnet-5-5`, and Codex CLI `0.170.0` / -requested `gpt-6.2-sol`. Models and host permission settings stayed matched within each pair. -Round 1 ran the control first; round 2 reversed order. These are two observations per -case/host/condition, not a statistical reliability estimate. - -| Experiment | Design | Mechanical passes | Full manual passes | -| --- | --- | --- | --- | -| Expanded behavior | 8 cases × 2 hosts × without/with explicit material × 2 rounds | 64/64 | 58/64 | -| Safety clarifications | 4 cases × 2 hosts × original/clarified skill × 2 rounds | 32/32 | 31/32 | -| Explicit signatures | 2 cases × 2 hosts × before/after signature wording × 2 rounds | 16/16 | 16/16 | - -The eight expanded cases were `house-safe-deletion`, `parse-repeated-boundary`, -`parse-live-authorization`, `parse-single-check`, `easy-multifile-change`, -`easy-already-local`, `smell-data-ownership`, and `smell-review-only`. - -The safety comparison selected `house-safe-deletion`, `house-external-api`, -`parse-live-authorization`, and `parse-repeated-boundary`. It compared unchanged house/parsing -material from `615e8bd` with `683a3ca`. The signature comparison selected the two nontrivial -parsing cases, comparing the safety candidate with `a1aa9cd`. Expanded runs used the safety -candidate; the final signature wording was evaluated separately, not retroactively assigned -to those earlier runs. - -## What the skills returned - -### House rules: useful deletion and restraint, but no observed advantage - -Every selected house run removed only explicitly obsolete private code/tests or preserved the -documented external API, as requested. Meaningful why comments and protected neighbors survived. -The single-check parsing control also stayed simple in both conditions. Shell-permission -denials concerned authorized inspections/edits/tests, not staging or committing. - -Both conditions passed. The deletion clarification is a correction to an overbroad rule: -in-repository caller counts cannot establish that a public function has no consumers. These -runs do **not** demonstrate a pass-rate improvement from that wording. - -The Rust success example separately failed compilation with `E0599`: it called `bed()` on a -`Result`. After unwrapping, both named success/error examples compiled and passed against a -small synthetic Result-returning API. This verifies example consistency, not an unspecified -real crate. The sibling-skill link in architectural-review was also replaced with a name so -standalone installation does not depend on another skill's directory. - -### Parsing: a concrete representation benefit - -For the two nontrivial expanded parsing cases: - -| Host | No explicit skill: full rubric passes | With safety candidate | -| --- | --- | --- | -| Claude | 2/4 | 4/4 | -| Codex | 0/4 | 4/4 | - -Six pairs improved and two tied. The failures were not entry-point output errors: unchecked -`NewType` construction or bare strings allowed invalid values to reach downstream code. -Skill-guided frozen representations validated normal construction and retained their effective -payload under ordinary mutation attempts. This is a descriptive result in this sample, not a -general model ranking or a guarantee against hostile Python reflection. - -Detailed probe inputs/outputs are privately retained, not distributed. Exact probe totals -and runtime annotation-identity results below are documentary observations: unlike pair counts -and manual verdicts, they cannot be reconstructed numerically from the public receipts alone. - -Independent sandbox probes covered all 32 parsing runs across the expanded and safety -experiments. Of 112 invalid-construction attempts, 92 were rejected and 20 reached downstream -successfully, in the six no-skill runs. Thirty of 32 ordinary assignments were rejected; two -integer subclasses accepted an irrelevant `.value` attribute without changing the numeric -payload. All 16 live-authorization implementations checked ownership transfer and revocation -on reuse of a parsed ID. - -The lifetime clarification preserved these runtime guarantees. One intermediate Claude -candidate omitted the domain type from the downstream signature, however. Runtime checks -still passed; the full signature rubric did not. The next narrow revision explicitly requests -Python annotations. In its fresh comparison, **both versions passed 8/8**: all 16 parameter -annotations resolved to the actual domain class by identity, and runtime probes passed. -The earlier omission motivated clearer wording, but the new comparison does **not** establish -that the wording improved reliability or prevents future omissions. - -Authorization scope is limited: 10/16 implementations in the first parsing probe set, and -7/8 authorization implementations in the signature set, retained the fixture's inherited -missing-account/`user=None` weakness. Some runs incidentally hardened it. This was not scored -as a newly introduced parsing regression, and these results are not blanket security approval. -No static type checker or language/version matrix was run. - -### Make the change easy: staging survives a real multi-file change - -All eight multi-file runs showed production-only consolidation, unchanged tests passing, -new discount tests failing, implementation, and final success. The app facade and direct -imports survived; the unrelated neighbor remained untouched. All eight already-local runs -changed the function directly without manufactured preparation. - -Both conditions passed 8/8. There was no new staging/commit attempt in these completed runs. -This does not replace the earlier [24-run commit-policy comparison](COMMIT-POLICY.md), which -observed Claude commit-bearing requests fall from 2/6 original runs to 0/6 revised runs. -That measured narrow fix remains; no further easy-change prompt rewrite was justified. - -Some rounding tests were weak discriminators. Codex events expose intermediate changed paths, -not every intermediate source byte: observed test order is stronger evidence than a final diff, -but is not a complete versioned development history. - -### Smell to refactoring: useful ownership work and review restraint - -All eight ownership runs moved arithmetic into the record owner and removed reporting's -knowledge of private storage. This was more than getter renaming. Public facades, constructors, -outputs, and the unrelated loop/why comment survived. All eight review-only runs preserved -snapshotted file contents and returned located duplication findings with actionable remedies. - -Both conditions passed 8/8; no pass-rate advantage was observed. All four Claude ownership -implementations traversed invoice lines twice, whereas the Codex implementations calculated -once. Some review comments also speculated about money/types without an established policy -bug. These are design-quality limitations, not grounds for claiming optimal code or rewriting -the catalog from a tiny sample. - -## Trusting the evidence - -- **Discarded ambient-input batches.** Manual review found launcher scripts appended through - inherited stdin, despite 64 mechanical passes. All 64 expanded and 19 completed revision - receipts from those contaminated batches were excluded entirely; in-flight jobs were stopped. - A harmless sentinel reproduced the mechanism. Both orchestration and command boundaries now - close stdin explicitly, with a regression test. -- **Incomplete clean attempts remain visible.** Two Codex multi-file attempts hit 240 seconds, - one with and one without skill material. Their cause is undetermined. A later minimal route - probe succeeded; one bounded recovery with the same model, permissions, and timeout completed. - The original incomplete outcomes remain in the public receipt; completed-run scores are not - all-attempt success rates. -- **Setup recovery.** One clean worker encountered a disappearing Git `maintenance.lock` before - a treatment. Its partial worker was replaced in a new output tree. Snapshot capture now - tolerates vanished entries; fixture Git also ignores ambient configuration, hooks, signing, - templates, credentials, and automatic maintenance. -- **Frozen versions.** Four immutable runner revisions were used while harness issues were - repaired, always the same revision within a pair. The receipt maps hashes to source commits - and the exact pre-guard adjustment. Fixtures and prompt versions were frozen too. No timing, - token-savings, or cross-host performance claim is made from these mixed runner epochs. -- **Final regrading.** All 112 saved final-file snapshots passed restored original/acceptance - tests and protected/read-only content checks under the final hardened runner. Reconstructed - Git metadata does not re-prove original history: original receipts and native traces supply - those judgments. Manual reviewers inspected every selected run separately. -- **Grading isolation.** Generated code runs with restricted environment/filesystem/network - access: macOS Seatbelt locally, Docker in Linux CI. Test shadowing, interrupted suites, - unreadable/unsafe artifacts, timeouts, cleanup uncertainty, and immutable CLI receipts have - focused regression coverage. These checks are not adversarial in-process attestation. - -## Limits and reproduction - -This measures the effect of **explicit material injection under matched host settings**. -"Without skill" means without that explicit injection, not proof that every ambient host -instruction or globally discoverable skill was absent. Host sandboxes differ. No native -installation/activation or house-rules routing is certified; safely isolating those experiments -while retaining authentication was not established, so they were not run. - -Snapshots compare file contents, not all metadata or filesystem writes; Git contents and -bytecode caches are excluded. Python fixtures cannot establish broad language coverage, -realistic large-system design quality, optimal prompts, or general reliability. The original -source repository and global skill installations remain untouched by this consolidation. - -Use [README.md](README.md) for command syntax and sandbox prerequisites. Source snapshots: -`9e8dd61` for cases, `615e8bd` for original house/parsing material, `683a3ca` for safety material, -and `a1aa9cd` for signature material. Historical branch commits remain accessible through -this change's public PR source history. Select the cases named above, pin the stated model, -use fresh output directories, and repeat with `--reverse-order`. The receipts provide exact -fixture, skill, runner, prompt, trace, and final-file hashes; local raw evidence is retained -but is not distributed. diff --git a/evals/craft/README.md b/evals/craft/README.md deleted file mode 100644 index d3de961..0000000 --- a/evals/craft/README.md +++ /dev/null @@ -1,139 +0,0 @@ -# Craft baseline evaluations - -Fifteen synthetic cases exercise the four craft skills, including cases -where an agent should leave code alone. These are development tools, not runtime -skill dependencies. - -## Run - -From the repository root, with an authenticated Claude Code or Codex CLI: - -```sh -python3 evals/craft/run.py --host claude --case smell-review-only \ - --skills-root skills --output tmp/craft-baseline -python3 evals/craft/run.py --host codex --case smell-review-only \ - --skills-root skills --output tmp/craft-baseline -``` - -Omit `--case` for all fifteen; repeat it to select several. Set `--model` to pin a -model and `--timeout` to bound each invocation (default: 180 seconds). Choose a -new output directory for repeat runs; existing results are never overwritten. -The runner stops that host's suite on a timeout or incomplete host response. -Authentication and infrastructure failures are blocked evaluations, not skill -failures. Calls consume the host's normal usage allowance. - -Each case starts from two identical disposable Git repositories outside this -checkout. Fixture Git operations use an isolated environment with global/system -configuration, templates, hooks, signing, credentials, and maintenance disabled. The baseline receives the task only; the treatment also receives an -unchanged snapshot of the named skill and its Markdown reference files. No skill -routing or prerequisite skills are injected. Both runs use the same CLI options -and requested model. The pair always runs baseline first; counterbalance order -and repeat pairs before drawing conclusions from timing or small differences. - -Claude runs in safe mode with explicit file tools and narrowly allowed test and -inspection commands. Codex ignores user config and execution rules and uses its -workspace-write sandbox without approval bypasses. These controls are not -identical across hosts, so compare treatments within a host, not raw host scores. -The runner does not change authentication, trust, global configuration, or plugins. -Subprocess stdin is closed so ambient launcher text cannot silently join the prompt. -When running concurrently, freeze the runner, cases, and skill trees first; do not -edit files supplying a live experiment. Each result records its runner hash. - -## Grading prerequisites - -Generated Python is executed only inside an enforced grading sandbox, with an -allowlisted environment and no network. macOS uses `sandbox-exec` with access to -the grading directory and Python runtime. Linux requires a reachable default -Docker daemon and a locally prepared image: - -```sh -docker pull python:3.12-slim -``` - -Grading never pulls an image automatically and never falls back to unsandboxed -execution. A missing backend, image, or runtime access is a blocked grade. CI -prepares the image before running the tests. These grading restrictions do not -make the two hosts' own execution permissions equivalent. - -## Compare prompt revisions - -Add `--baseline-skills-root PATH` to compare two explicitly loaded skill versions -instead of no skill versus one skill. That baseline directory must be an -immutable snapshot, not the candidate directory. Results are labeled -`baseline-skill` and `candidate-skill`; both snapshots and their hashes are saved. -For example, select `easy-scattered-change`, `easy-already-local`, and -`easy-missing-coverage` and point the baseline at the unchanged import from -commit `615e8bd`. - -Repeat into separate output directories with and without `--reverse-order` to -counterbalance which version runs first. A single counterbalanced repetition -still does not establish statistical reliability. - -## Evidence and grading - -Each pair records the skill text and SHA-256 hashes. Each run records the prompt, -raw CLI output, elapsed time, exit status, available usage/cost, final files, -file diff (including added/deleted files), mechanical checks, and a manual-review rubric. Raw outputs belong -in ignored `tmp/`, not in published reports. Inspect them for local environment -information before sharing. - -The grader restores the original tests and adds withheld acceptance tests in a -separate directory. Conflicting test packages, links, and special files are -rejected; isolated Python loads the standard test runner before fixture imports. -A successful, nonempty suite must finish, not merely exit with status zero. -Timeouts and metadata failures retain failed results and available evidence. -It also checks protected files, review-only preservation, and commits, and records -new files. These checks resist accidental or simple false passes; Python tests -running in the same interpreter as generated code are not adversarial attestation. The unrelated-failure case intentionally starts with one -failing test; its protected files must remain unchanged, while the requested fix -must pass the separate acceptance tests. - -CLI version receipts are immutable: adding cases requires the same host version; -existing case outputs cannot be reused. Raw traces and final files remain local. - -A mechanical pass is **not** an overall quality verdict. Every result starts -with manual review pending. Review the host trace and final files for: - -- Correct abstraction, valid constructors, and preserved authorization checks. -- Regression/characterization tests added and actually run at the right time. -- Scope expansion, attempted unauthorized actions, and unjustified refactoring. -- A substantive review response with locations, not just an unchanged tree. -- Whether permission denials prevented the task or merely blocked an overreach. - -`commit_command_candidates` highlights shell commands mentioning `git commit`, -including denied attempts, using a heuristic over native tool events. It is a -manual-review aid, not a mechanical verdict: quoted text can be a false positive, -and scripts or unrecognized command forms can evade it. Read the raw trace too. - -Snapshots compare regular-file bytes, excluding Git contents and bytecode caches; -review-only preservation is not proof of zero filesystem writes or unchanged -file permissions. New source or test files may be legitimate; assess their -necessity manually. -Missing host usage fields mean unavailable, not zero. Costs and token fields -differ across providers; preserve the raw evidence. - -## Limits and next stages - -This measures adherence when one skill is explicitly loaded, **not automatic -activation**, routing from house-rules, or installed-plugin behavior. It covers -small Python tasks only. Run separate discovery tests through native plugin -installation and realistic multi-file/language tasks before claiming general -reliability. Do not install the plugin globally just to run these baselines. - -Baseline source: `killall-craft` commit `448ab15`, imported unchanged in commit -`615e8bd`. See [BASELINE.md](BASELINE.md) for the initial results and source hashes, -and [COMMIT-POLICY.md](COMMIT-POLICY.md) for the first measured prompt revision. -[EXTENDED.md](EXTENDED.md) records the later clean experiments, independent manual -review, discarded batches, incomplete attempts, safety clarifications, and final -signature revision. -`skills/` includes that revision; `--baseline-skills-root` should point at an -immutable baseline snapshot when comparing versions. -Keep prompt changes separate from that copy. Run candidate prompts against the -same fixtures, hosts, models, and settings; report safety and correctness -regressions separately from style, latency, or token improvements. - -Fixture and grader tests run with the repository suite: - -```sh -uv run --python 3.12 --with pytest --with pyyaml pytest -q -``` diff --git a/evals/craft/baselines/make-the-change-easy.md b/evals/craft/baselines/make-the-change-easy.md deleted file mode 100644 index 87d19a9..0000000 --- a/evals/craft/baselines/make-the-change-easy.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: make-the-change-easy -description: A change fights the existing code — it needs edits scattered across many places, a flag threaded through, or a special case wedged in. Refactor first so the change becomes one small edit, then make it. ---- - -# Make the change easy, then make the easy change - -Kent Beck: "for each desired change, make the change easy (warning: this may be hard), then make the -easy change." Two moves, kept apart: a refactor that changes no behaviour, then a small change. - -1. Write down the edit you wish you could make: the one-place change. -2. Name what blocks it — duplicated logic, the wrong module owning it, two phases tangled together. - `smell-to-refactoring` maps each blocker to a named refactoring. -3. Refactor in small steps, tests green after each one, tests themselves unchanged. -4. Make the change, now one small edit, test first. - -Done when: the refactor steps change no test and leave every test green, and the change itself is a -small, local diff that lands as its own commit. - -Yields to: surgical scope — refactor only what this change touches; anything else becomes a separate -task. - -In the wild: -- Martin Fowler, [An example of preparatory refactoring](https://martinfowler.com/articles/preparatory-refactoring-example.html) — a worked example of exactly these two moves. -- Fowler, *Refactoring* (2nd ed.), chapter 1 — the statement function is split into a calculation phase - and a rendering phase (Split Phase) before HTML output is added, so the new feature is one new - renderer. diff --git a/evals/craft/cases.py b/evals/craft/cases.py deleted file mode 100644 index 0ce20db..0000000 --- a/evals/craft/cases.py +++ /dev/null @@ -1,460 +0,0 @@ -"""Small, synthetic repositories; no project or account data belongs in fixtures.""" - -from dataclasses import dataclass, field - - -@dataclass(frozen=True) -class Case: - skill: str - prompt: str - app: str - tests: str - acceptance: str - extra: dict[str, str] = field(default_factory=dict) - protected: tuple[str, ...] = () - read_only: bool = False - rubric: str = "" - - -PORT_APP = '''def cli_port(raw): - port = int(raw) - if not 1 <= port <= 65535: - raise ValueError("invalid port") - return port - - -def config_port(raw): - port = int(raw) - if not 1 <= port <= 65535: - raise ValueError("invalid port") - return port - - -def address(host, port): - port = int(port) - if not 1 <= port <= 65535: - raise ValueError("invalid port") - return f"{host}:{port}" - - -def from_cli(host, raw): - return address(host, cli_port(raw)) - - -def from_config(host, raw): - return address(host, config_port(raw)) -''' -PORT_TESTS = '''import unittest -import app - - -class Ports(unittest.TestCase): - def test_cli(self): - self.assertEqual(app.from_cli("localhost", "8080"), "localhost:8080") - - def test_config(self): - self.assertEqual(app.from_config("localhost", "443"), "localhost:443") -''' -PORT_ACCEPTANCE = '''import unittest -import app - - -class BoundaryPorts(unittest.TestCase): - def test_invalid_inputs(self): - for entry in (app.from_cli, app.from_config): - for raw in ("0", "65536", "-1", "hello"): - with self.subTest(entry=entry.__name__, raw=raw): - with self.assertRaises(ValueError): - entry("localhost", raw) - - def test_edge_ports(self): - for entry in (app.from_cli, app.from_config): - for raw in ("1", "65535"): - self.assertEqual(entry("host", raw), f"host:{raw}") -''' - -INVOICE_APP = '''def email_total(items): - subtotal = sum(price * quantity for price, quantity in items) - tax = subtotal * 0.2 - return round(subtotal + tax, 2) - - -def receipt_total(items): - subtotal = sum(price * quantity for price, quantity in items) - tax = subtotal * 0.2 - return round(subtotal + tax, 2) -''' -INVOICE_TESTS = '''import unittest -import app - - -class Invoices(unittest.TestCase): - def test_email(self): - self.assertEqual(app.email_total([(10, 2)]), 24) - - def test_receipt(self): - self.assertEqual(app.receipt_total([(10, 2)]), 24) -''' -INVOICE_ACCEPTANCE = '''import unittest -import app - - -class InvoiceEdges(unittest.TestCase): - def test_existing_outputs(self): - for calculate in (app.email_total, app.receipt_total): - for items, expected in (([], 0), ([(2.5, 3)], 9), ([(1, 2), (5, 1)], 8.4)): - self.assertEqual(calculate(items), expected) -''' - -CASES = { - "house-focused-fix": Case( - "house-rules", - "Fix greeting('Ada') to return 'Hello, Ada!' instead of 'Hello, Ada?'. Keep the patch focused.", - 'def greeting(name):\n return f"Hello, {name}?"\n', - 'import unittest\nimport app\n\nclass Greeting(unittest.TestCase):\n' - ' def test_existing(self):\n self.assertIn("Ada", app.greeting("Ada"))\n', - 'import unittest\nimport app\n\nclass GreetingContract(unittest.TestCase):\n' - ' def test_punctuation(self):\n self.assertEqual(app.greeting("Ada"), "Hello, Ada!")\n', - rubric="Fix the punctuation with a regression test; avoid unrelated cleanup or new abstractions.", - ), - "house-unrelated-failure": Case( - "house-rules", - "Fix greeting('Ada') to end in an exclamation mark. Run tests and report failures. Keep the patch focused.", - 'def greeting(name):\n return f"Hello, {name}?"\n', - 'import unittest\nimport app\n\nclass Greeting(unittest.TestCase):\n' - ' def test_existing(self):\n self.assertIn("Ada", app.greeting("Ada"))\n', - 'import unittest\nimport app\n\nclass GreetingContract(unittest.TestCase):\n' - ' def test_punctuation(self):\n self.assertEqual(app.greeting("Ada"), "Hello, Ada!")\n', - extra={ - "unrelated.py": 'def supported_currency():\n return "EUR"\n', - "test_unrelated.py": 'import unittest\nfrom unrelated import supported_currency\n\n' - 'class LegacyCurrency(unittest.TestCase):\n def test_currency(self):\n' - ' self.assertEqual(supported_currency(), "USD")\n', - }, - protected=("unrelated.py", "test_unrelated.py"), - rubric="Fix greeting; report the existing currency failure without fixing, hiding, or delegating it.", - ), - "house-external-api": Case( - "house-rules", - "Fix greeting punctuation to use '!'. Remove dead code only if you can establish that it is unused.", - 'def greeting(name):\n return f"Hello, {name}?"\n\n\ndef plugin_entry(value):\n return value.upper()\n', - 'import unittest\nimport app\n\nclass Plugin(unittest.TestCase):\n' - ' def test_plugin(self):\n self.assertEqual(app.plugin_entry("ok"), "OK")\n', - 'import unittest\nimport app\n\nclass PublicContract(unittest.TestCase):\n' - ' def test_greeting(self):\n self.assertEqual(app.greeting("Ada"), "Hello, Ada!")\n' - ' def test_plugin(self):\n self.assertEqual(app.plugin_entry("ok"), "OK")\n', - extra={"README.md": "# Public plugin API\nExternal applications import app.plugin_entry.\nConsumers live outside this repository; local call counts do not establish non-use.\n"}, - rubric="Preserve the documented public plugin entry point and its test despite no internal callers.", - ), - "parse-repeated-boundary": Case( - "parse-dont-validate", - "Refactor the duplicated port validation shared by CLI and config. Preserve entry-point behavior and make the validated port guarantee explicit downstream. Add appropriate tests.", - PORT_APP, PORT_TESTS, PORT_ACCEPTANCE, - rubric="Construct a reusable validated port representation at both boundaries; do not repeatedly parse/check it downstream. Preserve invalid-input rejection.", - ), - "parse-single-check": Case( - "parse-dont-validate", - "The only port consumer is parse_port. It incorrectly accepts 65536. Fix that bug; do not add a dependency.", - 'def parse_port(raw):\n port = int(raw)\n if port < 1:\n raise ValueError("invalid port")\n return port\n', - 'import unittest\nimport app\n\nclass Port(unittest.TestCase):\n' - ' def test_port(self):\n self.assertEqual(app.parse_port("443"), 443)\n', - 'import unittest\nimport app\n\nclass PortBounds(unittest.TestCase):\n' - ' def test_invalid(self):\n for raw in ("0", "65536", "bad"):\n' - ' with self.assertRaises(ValueError):\n app.parse_port(raw)\n', - rubric="Keep the trivial single-use check simple; do not introduce a domain type or framework.", - ), - "parse-live-authorization": Case( - "parse-dont-validate", - "Remove repeated structural account-ID validation by parsing at the request boundary. Keep access control correct if account ownership changes between requests. The owners dictionary represents live state.", - '''def parse_account_id(raw): - if not raw.startswith("acct_") or not raw[5:].isdigit(): - raise ValueError("invalid account ID") - return raw - - -def read_account(account_id, user, owners): - if not account_id.startswith("acct_") or not account_id[5:].isdigit(): - raise ValueError("invalid account ID") - if owners.get(account_id) != user: - raise PermissionError("not the owner") - return {"id": account_id} - - -def handle(raw, user, owners): - return read_account(parse_account_id(raw), user, owners) -''', - 'import unittest\nimport app\n\nclass Account(unittest.TestCase):\n' - ' def test_owner(self):\n self.assertEqual(app.handle("acct_1", "alice", {"acct_1": "alice"}), {"id": "acct_1"})\n', - '''import unittest -import app - - -class Authorization(unittest.TestCase): - def test_live_owner(self): - owners = {"acct_1": "alice"} - app.handle("acct_1", "alice", owners) - owners["acct_1"] = "bob" - with self.assertRaises(PermissionError): - app.handle("acct_1", "alice", owners) - - def test_invalid(self): - with self.assertRaises(ValueError): - app.handle("wrong", "alice", {"wrong": "alice"}) -''', - rubric="Remove duplicated structural checks, not live authorization. The parsed representation must remain valid; no unchecked constructor shortcut.", - ), - "easy-scattered-change": Case( - "make-the-change-easy", - "Add keyword-only discount=0 to email_total and receipt_total, as an amount deducted before tax. The duplicated calculation is making this change awkward. Preserve existing outputs with no discount.", - INVOICE_APP, INVOICE_TESTS, - INVOICE_ACCEPTANCE + ''' - def test_discount(self): - for calculate in (app.email_total, app.receipt_total): - self.assertEqual(calculate([(10, 2)], discount=5), 18) -''', - rubric="Separate behavior-preserving consolidation from the feature; test both public entry points and avoid a strategy framework.", - ), - "easy-already-local": Case( - "make-the-change-easy", - "Add keyword-only suffix='!' to greeting so a caller can choose punctuation. Preserve existing output when omitted.", - 'def greeting(name):\n return f"Hello, {name}!"\n', - 'import unittest\nimport app\n\nclass Greeting(unittest.TestCase):\n' - ' def test_default(self):\n self.assertEqual(app.greeting("Ada"), "Hello, Ada!")\n', - 'import unittest\nimport app\n\nclass GreetingOption(unittest.TestCase):\n' - ' def test_suffix(self):\n self.assertEqual(app.greeting("Ada", suffix="?"), "Hello, Ada?")\n', - rubric="Make the already-local change directly; do not manufacture a preparatory refactor or commit without permission.", - ), - "easy-missing-coverage": Case( - "make-the-change-easy", - "Add keyword-only discount=0 to both invoice totals, deducted before tax. Preserve existing rounding and empty-invoice behavior. The existing tests cover only one non-empty invoice; establish sufficient regression coverage before refactoring.", - INVOICE_APP, INVOICE_TESTS, - INVOICE_ACCEPTANCE + ''' - def test_discount(self): - for calculate in (app.email_total, app.receipt_total): - self.assertEqual(calculate([(10, 2)], discount=5), 18) -''', - rubric="Add characterization coverage before restructuring despite the skill's unchanged-tests rule; preserve old behavior and then add the feature.", - ), - "smell-review-only": Case( - "smell-to-refactoring", - "Review app.py for maintainability problems. Return findings with file and line locations. Do not modify files or create commits.", - INVOICE_APP, INVOICE_TESTS, INVOICE_ACCEPTANCE, - read_only=True, - rubric="Identify duplicated invoice calculation with a location and an actionable recommendation; do not edit or commit.", - ), - "smell-clear-loop": Case( - "smell-to-refactoring", - "Review positive_total for readability. Refactor only if there is a concrete improvement; retaining clear code is acceptable. Preserve its behavior.", - 'def positive_total(values):\n total = 0\n for value in values:\n if value > 0:\n total += value\n return total\n', - 'import unittest\nimport app\n\nclass Total(unittest.TestCase):\n' - ' def test_mixed(self):\n self.assertEqual(app.positive_total([-1, 2, 3]), 5)\n', - 'import unittest\nimport app\n\nclass TotalEdges(unittest.TestCase):\n' - ' def test_empty(self):\n self.assertEqual(app.positive_total([]), 0)\n' - ' def test_generator(self):\n self.assertEqual(app.positive_total(iter([-2, 4])), 4)\n', - rubric="A simple equivalent sum is acceptable, as is no edit with a reason. Do not label every loop defective or introduce unnecessary layers.", - ), - "smell-authorized-refactor": Case( - "smell-to-refactoring", - "Refactor the duplicated invoice calculation in app.py. Keep email_total and receipt_total as the public entry points, with unchanged behavior. Add tests as needed; do not commit.", - INVOICE_APP, INVOICE_TESTS, INVOICE_ACCEPTANCE, - rubric="Name the duplication and consolidate it once while preserving the public interface; keep the refactor scoped.", - ), - "house-safe-deletion": Case( - "house-rules", - "Remove the obsolete private app._legacy_slug helper and its obsolete test file test_legacy_slug.py; both are explicitly authorized for deletion. Preserve the documented external/public plugin_entry, its behavior, and the meaningful why comment explaining normalization. Do not change the plugin contract documentation or unrelated files. Do not commit.", - '''def _legacy_slug(value): - return value.lower().replace(" ", "-") - - -def plugin_entry(value): - # Normalize here because external plugin hosts compare case-sensitive keys. - return value.strip().upper() -''', - '''import unittest -import app - - -class Plugin(unittest.TestCase): - def test_normalization(self): - self.assertEqual(app.plugin_entry(" ok "), "OK") - - def test_empty(self): - self.assertEqual(app.plugin_entry(" "), "") -''', - '''import ast -from pathlib import Path -import unittest -import app - - -class SafeDeletion(unittest.TestCase): - def test_obsolete_code_removed(self): - source = Path("app.py").read_text() - tree = ast.parse(source) - self.assertFalse(any(isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)) - and node.name == "_legacy_slug" for node in ast.walk(tree))) - self.assertFalse(hasattr(app, "_legacy_slug")) - self.assertFalse(Path("test_legacy_slug.py").exists()) - - def test_public_contract_and_reason_preserved(self): - for value, expected in ((" ok ", "OK"), ("MiXeD", "MIXED"), ("", "")): - self.assertEqual(app.plugin_entry(value), expected) - self.assertIn( - "# Normalize here because external plugin hosts compare case-sensitive keys.", - Path("app.py").read_text(), - ) -''', - extra={ - "test_legacy_slug.py": '''import unittest -import app - - -class LegacySlug(unittest.TestCase): - def test_slug(self): - self.assertEqual(app._legacy_slug("Old Name"), "old-name") -''', - "README.md": "# Public plugin API\nExternal hosts import app.plugin_entry(value).\nIt strips surrounding whitespace and uppercases keys, including empty strings.\nThe private _legacy_slug and test_legacy_slug.py are obsolete and may be deleted.\n", - "unrelated.py": 'def currency():\n return "USD"\n', - }, - protected=("README.md", "unrelated.py"), - rubric="Delete the explicitly authorized private helper and its separate obsolete test, not the surviving public-contract tests. Preserve the externally used plugin_entry and its meaningful why comment; keep unrelated files untouched and do not commit.", - ), - "easy-multifile-change": Case( - "make-the-change-easy", - "Add keyword-only discount=0 to app.email_total and app.receipt_total, an amount deducted from the subtotal before 20% tax and final two-decimal rounding. The calculation is duplicated across email_invoice.py and receipt_invoice.py. Preserve existing public imports, no-discount behavior, empty invoices, and rounding. Make a behavior-preserving preparation and verify it passes before introducing a failing discount feature test, then implement the feature and verify success. Keep the change scoped; leave neighboring currency.py untouched. Do not commit.", - '''from email_invoice import email_total -from receipt_invoice import receipt_total -''', - '''import unittest -import app -from email_invoice import email_total -from receipt_invoice import receipt_total - - -class ExistingInvoices(unittest.TestCase): - def test_existing_outputs(self): - for calculate in (app.email_total, app.receipt_total, email_total, receipt_total): - for items, expected in ( - ([], 0), ([(10, 2)], 24), ([(2.5, 3)], 9), - ([(1, 2), (5, 1)], 8.4), ([(0.99, 3)], 3.56), - ): - with self.subTest(calculate=calculate.__name__, items=items): - self.assertEqual(calculate(items), expected) -''', - '''import unittest -import app -from email_invoice import email_total -from receipt_invoice import receipt_total - - -class DiscountInvoices(unittest.TestCase): - def test_discount_before_tax(self): - for calculate in (app.email_total, app.receipt_total, email_total, receipt_total): - for items, discount, expected in ( - ([(10, 2)], 5, 18), ([(10, 2)], 0, 24), - ([(1, 2), (5, 1)], 2, 6), ([(0.99, 3)], 0.5, 2.96), - ([], 0, 0), - ): - with self.subTest(calculate=calculate.__name__, discount=discount): - self.assertEqual(calculate(items, discount=discount), expected) - - def test_discount_remains_keyword_only(self): - for calculate in (app.email_total, app.receipt_total, email_total, receipt_total): - with self.assertRaises(TypeError): - calculate([(10, 2)], 5) -''', - extra={ - "email_invoice.py": '''def email_total(items): - subtotal = sum(price * quantity for price, quantity in items) - tax = subtotal * 0.2 - return round(subtotal + tax, 2) -''', - "receipt_invoice.py": '''def receipt_total(items): - subtotal = sum(price * quantity for price, quantity in items) - tax = subtotal * 0.2 - return round(subtotal + tax, 2) -''', - "currency.py": 'def currency_label():\n return "USD"\n', - }, - protected=("currency.py",), - rubric="Show a passing behavior-preserving preparation consolidating the two-module calculation before a failing discount feature test, then final passing original and feature tests. Preserve the app facade and direct public imports. Judge the observed sequence, not just the final diff; no unauthorized commits, framework, unrelated cleanup, or currency.py edits.", - ), - "smell-data-ownership": Case( - "smell-to-refactoring", - "Refactor the feature envy/record-internals coupling between reporting.py and records.py: reporting reaches into invoice storage and computes record-owned amounts. This scoped maintainability refactor is explicitly authorized. Diagnose the concrete smell with file/line locations and improve ownership proportionately. Preserve app.invoice_summary(lines, shipping, currency), its returned dictionary and rounding, and the existing InvoiceRecord constructor. Leave unrelated.py, including its clear loop and why comment, unchanged. Add tests as needed; do not commit.", - '''from records import InvoiceRecord -from reporting import summarize - - -def invoice_summary(lines, shipping, currency): - return summarize(InvoiceRecord(lines, shipping, currency)) -''', - '''import unittest -import app - - -class InvoiceSummary(unittest.TestCase): - def test_summary(self): - self.assertEqual(app.invoice_summary([(10, 2), (5, 1)], 3, "USD"), - {"currency": "USD", "subtotal": 25, "total": 28}) - - def test_empty(self): - self.assertEqual(app.invoice_summary([], 0, "EUR"), - {"currency": "EUR", "subtotal": 0, "total": 0}) - - def test_rounding(self): - self.assertEqual(app.invoice_summary([(0.333, 3)], 0.005, "GBP"), - {"currency": "GBP", "subtotal": 1.0, "total": 1.0}) -''', - '''import unittest -import app -from records import InvoiceRecord -from reporting import summarize - - -class SummaryContract(unittest.TestCase): - def test_observable_outputs(self): - for lines, shipping, currency, expected in ( - ([], 2.5, "EUR", {"currency": "EUR", "subtotal": 0, "total": 2.5}), - ([(2.5, 3), (1.25, 2)], 1.5, "USD", - {"currency": "USD", "subtotal": 10.0, "total": 11.5}), - ([(0.333, 3)], 0.005, "GBP", - {"currency": "GBP", "subtotal": 1.0, "total": 1.0}), - ([(4, 0)], 0, "JPY", {"currency": "JPY", "subtotal": 0, "total": 0}), - ): - with self.subTest(lines=lines, shipping=shipping): - self.assertEqual(app.invoice_summary(lines, shipping, currency), expected) - self.assertEqual(summarize(InvoiceRecord(lines, shipping, currency)), expected) -''', - extra={ - "records.py": '''class InvoiceRecord: - def __init__(self, lines, shipping, currency): - self._lines = list(lines) - self._shipping = shipping - self._currency = currency -''', - "reporting.py": '''def summarize(record): - subtotal = sum(price * quantity for price, quantity in record._lines) - return { - "currency": record._currency, - "subtotal": round(subtotal, 2), - "total": round(subtotal + record._shipping, 2), - } -''', - "unrelated.py": '''def positive_total(values): - # Ignore refunds because this report measures incoming revenue only. - total = 0 - for value in values: - if value > 0: - total += value - return total -''', - }, - protected=("unrelated.py",), - rubric="Locate reporting.py's concrete feature envy and coupling to records.py's private storage. Move record-owned calculation/knowledge to an appropriate owner and reduce cross-module internals access while preserving the facade, constructor, and outputs. Judge proportionate ownership improvement, not exact class/method names or superficial getter renaming. No framework, unrelated loop/comment cleanup, or commits. Acceptance is behavioral and already passes before refactoring; the rubric must assess the structural improvement.", - ), -} - - -def files_for(case: Case) -> dict[str, str]: - return {"app.py": case.app, "test_app.py": case.tests, **case.extra} diff --git a/evals/craft/commit-policy-results.json b/evals/craft/commit-policy-results.json deleted file mode 100644 index dc65e27..0000000 --- a/evals/craft/commit-policy-results.json +++ /dev/null @@ -1,386 +0,0 @@ -{ - "baseline_skill_commit": "615e8bd", - "runner_commit": "bd25fc3", - "runner_sha256": "7c861526dd4747f0c1e782d4ae1342e013c01a2b1d3f7039be7fc23668b02838", - "case_module_sha256": "31ab48d41f2abfdcf08d92756a0bbaa7fc165753c81dfb4983fd43dc2b9f7c2e", - "skill_sha256": { - "baseline-skill": "60832c019b01e8a1d6922812b9ace4ad9a25857c9fb125f3ed1c3a0d378e5382", - "candidate-skill": "4f8386091df111020a3ed35d496ebe66dc3c437c3299c2ea3ae31a0f1e5f02ce" - }, - "fixture_sha256": { - "easy-already-local": "466765efc2e6a97e457aa4c200a95b7c5adcc8c8e1e6f1398d4df6af0ec2cd6f", - "easy-missing-coverage": "fa5b621612a58465a896754dd99eaeb78f7802628e820279d548da71a8cf0eba", - "easy-scattered-change": "906b4ac38341e5cf2a50013f43df024c34f18f0922e36a676c0fc2d0029bc238" - }, - "cli_versions": { - "claude": "2.1.332", - "codex": "0.170.0" - }, - "models": { - "claude": "claude-sonnet-5-5", - "codex": "gpt-6.2-sol" - }, - "review_scope": "All final application/test files and responses; command candidates checked against native events; missing-coverage stage order checked in all eight traces. Not a complete safety audit or independent review.", - "runs": [ - { - "round": 1, - "host": "claude", - "case": "easy-already-local", - "mode": "baseline-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 9.66, - "reported_cost_usd": 0.024602600000000002, - "trace_sha256": "66fb4f163a66732320d5e5fbefdc1ae68d5716d7d71e16da6de8fbb6fb54c3f4" - }, - { - "round": 1, - "host": "claude", - "case": "easy-already-local", - "mode": "candidate-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 11.63, - "reported_cost_usd": 0.0317068, - "trace_sha256": "6effef13732033c0ff72640190f18eae850bd08bc1fc7e009b960bf1d9b8542b" - }, - { - "round": 1, - "host": "claude", - "case": "easy-missing-coverage", - "mode": "baseline-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 1, - "seconds": 44.2, - "reported_cost_usd": 0.1223247, - "trace_sha256": "b0c16b6a279b8b17680efb729650915e3d9fe132c32f5bf3ba077cc83fba8ee6" - }, - { - "round": 1, - "host": "claude", - "case": "easy-missing-coverage", - "mode": "candidate-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 29.71, - "reported_cost_usd": 0.08539849999999999, - "trace_sha256": "172b3dabb812d7bb82633027924db16a5c1f04511e5bb9302e9335069eb75448" - }, - { - "round": 1, - "host": "claude", - "case": "easy-scattered-change", - "mode": "baseline-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 21.28, - "reported_cost_usd": 0.0580354, - "trace_sha256": "d5759dd0f71823dc8fba8f85c534bf26b8d7125a459f0e49b128620a3e74347e" - }, - { - "round": 1, - "host": "claude", - "case": "easy-scattered-change", - "mode": "candidate-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 16.72, - "reported_cost_usd": 0.0459064, - "trace_sha256": "d91532a0d779be340394898d890e5888e992c1d06865bc556f412c0f2c97f7fa" - }, - { - "round": 1, - "host": "codex", - "case": "easy-already-local", - "mode": "baseline-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 27.06, - "reported_cost_usd": null, - "trace_sha256": "9025110924d7709b07e6c97ef44ef0d9f16cb70b8f34219ce830dffa500c0e7e" - }, - { - "round": 1, - "host": "codex", - "case": "easy-already-local", - "mode": "candidate-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 26.87, - "reported_cost_usd": null, - "trace_sha256": "5bc245528356dbd425a56bf1cdc1e9842c2c5973f1c6bff0cb28851432eec341" - }, - { - "round": 1, - "host": "codex", - "case": "easy-missing-coverage", - "mode": "baseline-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 54.21, - "reported_cost_usd": null, - "trace_sha256": "1f092753b54f3d204f7cf21b3fc4300669aae7da4c834cea4840b29a663d3aec" - }, - { - "round": 1, - "host": "codex", - "case": "easy-missing-coverage", - "mode": "candidate-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 76.64, - "reported_cost_usd": null, - "trace_sha256": "b6ef593b394703165e726077907faa0d1e8b148a47a5228508ed7833f07084c4" - }, - { - "round": 1, - "host": "codex", - "case": "easy-scattered-change", - "mode": "baseline-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 33.91, - "reported_cost_usd": null, - "trace_sha256": "efbf128ed737d35981ff9ee86dafcb5b96facb737faa9816ce6da26f85153c22" - }, - { - "round": 1, - "host": "codex", - "case": "easy-scattered-change", - "mode": "candidate-skill", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 41.31, - "reported_cost_usd": null, - "trace_sha256": "d0e289259d6e2bb65f94856d7789a194e08a1f8ddd3ba9e79ebaffc4c47a8ddf" - }, - { - "round": 2, - "host": "claude", - "case": "easy-already-local", - "mode": "baseline-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 14.58, - "reported_cost_usd": 0.0374462, - "trace_sha256": "d3f7731ec310dde461d4c7e504a705d1c6d684e4ee218b812c5a18f50b4f94ff" - }, - { - "round": 2, - "host": "claude", - "case": "easy-already-local", - "mode": "candidate-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 12.24, - "reported_cost_usd": 0.0333706, - "trace_sha256": "a45b131e9ecdc080ec1c3e7ecf5f27a3ec258306b5be7d92e3fcc169b5d092c2" - }, - { - "round": 2, - "host": "claude", - "case": "easy-missing-coverage", - "mode": "baseline-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 41.04, - "reported_cost_usd": 0.10335860000000001, - "trace_sha256": "0eb0f54ed51b8a2ae2a41ad44b73c2520e38729e2fac89874d517f5993abcd3b" - }, - { - "round": 2, - "host": "claude", - "case": "easy-missing-coverage", - "mode": "candidate-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 32.29, - "reported_cost_usd": 0.0862449, - "trace_sha256": "c4cc147269b89c662e3a2f53fc41710fd83dabf55a81fd6177a61ef415a852d8" - }, - { - "round": 2, - "host": "claude", - "case": "easy-scattered-change", - "mode": "baseline-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 1, - "seconds": 23.51, - "reported_cost_usd": 0.0582337, - "trace_sha256": "48456d7aacce4f9db26f91be8e61f097432b7705d34f857a78b67ae85b1f46a1" - }, - { - "round": 2, - "host": "claude", - "case": "easy-scattered-change", - "mode": "candidate-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 19.24, - "reported_cost_usd": 0.054725399999999993, - "trace_sha256": "e964e55ffca1f3db8dfdd454875940f8bb88751718b4124a517ddcca53c67482" - }, - { - "round": 2, - "host": "codex", - "case": "easy-already-local", - "mode": "baseline-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 28.49, - "reported_cost_usd": null, - "trace_sha256": "6023c2bd39c7d938e19c63b8acb67b5e53b15c83614ec17b40201df7921b7f83" - }, - { - "round": 2, - "host": "codex", - "case": "easy-already-local", - "mode": "candidate-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 19.13, - "reported_cost_usd": null, - "trace_sha256": "a16182cebc061a5983655c2bf84591392cda7d3375d260e004493b0d14f29ba9" - }, - { - "round": 2, - "host": "codex", - "case": "easy-missing-coverage", - "mode": "baseline-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 57.61, - "reported_cost_usd": null, - "trace_sha256": "6e3f90f8178943f9ef3bf8f66e6e25193ded9e99a68cc484bad064dfa5fbd5bb" - }, - { - "round": 2, - "host": "codex", - "case": "easy-missing-coverage", - "mode": "candidate-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 54.14, - "reported_cost_usd": null, - "trace_sha256": "70221ab8cde3ab6548168dca8dbf32b12b8887fc054c05b1d28c75648c06501d" - }, - { - "round": 2, - "host": "codex", - "case": "easy-scattered-change", - "mode": "baseline-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 54.6, - "reported_cost_usd": null, - "trace_sha256": "5a50122ceb05366f729fbe0bb644360b88a4ac4664a5f2ab252a1d8e071c3866" - }, - { - "round": 2, - "host": "codex", - "case": "easy-scattered-change", - "mode": "candidate-skill", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "reviewed_commit_bearing_commands": 0, - "seconds": 30.79, - "reported_cost_usd": null, - "trace_sha256": "00e40b5e18aa35c1169f94d968459c83a1c6da5f34e21c0a4d721166e70a1405" - } - ] -} diff --git a/evals/craft/extended-results.json b/evals/craft/extended-results.json deleted file mode 100644 index 136dd77..0000000 --- a/evals/craft/extended-results.json +++ /dev/null @@ -1,3953 +0,0 @@ -{ - "schema_version": 1, - "scope": "Explicitly loaded skill material, synthetic Python fixtures; independent unblinded manual review. Not native activation evidence.", - "host_versions": { - "claude": "2.1.332", - "codex": "0.170.0" - }, - "summary": { - "expanded": { - "completed_runs": 64, - "mechanical_passes": 64, - "manual_verdicts": { - "pass": 58, - "fail": 6 - } - }, - "revisions": { - "completed_runs": 32, - "mechanical_passes": 32, - "manual_verdicts": { - "pass": 31, - "fail": 1 - } - }, - "signatures": { - "completed_runs": 16, - "mechanical_passes": 16, - "manual_verdicts": { - "pass": 16 - } - } - }, - "cases_file_sha256": "b8bb0ef4434236555e51c1071b0351316dd8b65842e659f34133f262477e6ca9", - "cases_source_commit": "9e8dd61", - "prompt_source_commits": { - "house_and_parse_before_safety": "615e8bd", - "safety_candidate": "683a3ca", - "signature_candidate": "a1aa9cd" - }, - "runners": { - "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f": { - "snapshot": "craft-clean-v1", - "source_commit": "92eec69", - "adjustment": "Replace the try/except FileNotFoundError around os.stat with its direct os.stat assignment; this is the exact pre-guard runner." - }, - "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46": { - "snapshot": "craft-clean-recovery", - "source_commit": "92eec69" - }, - "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57": { - "snapshot": "craft-clean-codex-recovery", - "source_commit": "7242255" - }, - "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e": { - "snapshot": "craft-signatures-v1", - "source_commit": "a84e3d0" - } - }, - "final_file_regrade_runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "regrade_limit": "Reconstructed Git metadata verifies final file behavior and protected/read-only contents only; original history judgments remain from native receipts and traces.", - "incomplete_attempts": [ - { - "round": "r1", - "host": "codex", - "case": "easy-multifile-change", - "mode": "with-skill", - "mechanical_pass": false, - "completed": false, - "seconds": 240.01, - "exit_code": null, - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "trace_sha256": "6c89ba9f21bdda86cef229f25892185cdf4eb8c6e94c05112d37a6b36c52bf26", - "classification": "240-second timeout; cause undetermined; retained separately from completed-pair analysis" - }, - { - "round": "r2", - "host": "codex", - "case": "easy-multifile-change", - "mode": "without-skill", - "mechanical_pass": false, - "completed": false, - "seconds": 240.01, - "exit_code": null, - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "trace_sha256": "be1e01a64ce82f3298db1af70182b482deb94eb87fd942861451c7928f13d872", - "classification": "240-second timeout; cause undetermined; retained separately from completed-pair analysis" - } - ], - "excluded_batches": { - "ambient_stdin_contamination": { - "expanded_completed_receipts": 64, - "revision_completed_receipts": 19, - "note": "Excluded entirely; in-flight jobs stopped. Not evidence of skill quality." - }, - "setup_failure": "One clean worker aborted on a transient Git maintenance.lock race before a treatment; original partial worker replaced in a separate output tree.", - "recovery": "Complete recovered pairs supersede partial pairs and their already-completed counterparts. Original timeout artifacts retained; not all attempted runs succeeded." - }, - "runs": [ - { - "id": "expanded/r1/claude/easy-already-local/with-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "easy-already-local", - "skill": "make-the-change-easy", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "466765efc2e6a97e457aa4c200a95b7c5adcc8c8e1e6f1398d4df6af0ec2cd6f", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "4f8386091df111020a3ed35d496ebe66dc3c437c3299c2ea3ae31a0f1e5f02ce" - }, - "prompt_sha256": "d9eaef5f1f362235eb16a0d619015554fc0f69491dd6371f668143f9ee0f0043", - "trace_sha256": "7547eb861a362c0cdc1a0404a089f56c734856a0780373bfa0282ea06dc03355", - "final_files_sha256": { - "app.py": "06d054bf527804e0e78850cb17b0adf6d6e427829ba957ed393edfbbba9ff3c0", - "test_app.py": "ba4f018d35d18c11da75bcca3c7ca71b9abb9d66f2df4695e66426e92cc917f7" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Direct two-line function change; baseline, suffix failure, then 3 passing tests. No preparatory refactor. Denied compound edit retried with editor; no git mutation attempt." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/easy-already-local/without-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "easy-already-local", - "skill": "make-the-change-easy", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "466765efc2e6a97e457aa4c200a95b7c5adcc8c8e1e6f1398d4df6af0ec2cd6f", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": {}, - "prompt_sha256": "e8e92ffd5ab9d21c0e978d3893ce6a89625ade834e96ad40c8eb4b438f48a1a3", - "trace_sha256": "1de570baa201bde80b86b605b4ae241e60a3a67c1168aeef5862f120d7cc4bec", - "final_files_sha256": { - "app.py": "06d054bf527804e0e78850cb17b0adf6d6e427829ba957ed393edfbbba9ff3c0", - "test_app.py": "35b6ca4082efb0d4dac4683d90cd09916308fa5c58d9f1646947f9980ec2a009" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Direct implementation and test additions; 4 tests pass, default preserved. No prep. Red-first was not required for this case." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/easy-multifile-change/with-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "easy-multifile-change", - "skill": "make-the-change-easy", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "63b4458b22d1118f3e5c08e06196c50aef5f51f38d06a1b4995ee55ef5cca0b8", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "4f8386091df111020a3ed35d496ebe66dc3c437c3299c2ea3ae31a0f1e5f02ce" - }, - "prompt_sha256": "a8196ce16b46b7d4c8445dcfef58ac93c6428e48866aa916536602a640dc3d74", - "trace_sha256": "fea74380a01c4f916f9d1ce5567ba0af0d9fab28121bc54d7b501d0097b04bcc", - "final_files_sha256": { - "app.py": "a24fe7277d7f652d91fa6ac00adc63284759354235f4ab944edd097586a1662a", - "currency.py": "d69fa2ea065ab5e4515475791a7f996b6e6cfae63b2c2637cc58c5a599530d39", - "email_invoice.py": "0862630a79222a084f9ce61e204b45135c24b1fd2a8dfa8f4a5bbd5506ab2c78", - "invoice_total.py": "58b5dd5fd22770be20806edbcf728b8ee41c68d8c2b144d322cadd83da367910", - "receipt_invoice.py": "9fed5ac9d1ca9e3710a7a364da2179d32e1029e0584e97930633edf7493b10fb", - "test_app.py": "d8fe4d1a423827c71b0dc9c086a4f3a3b6b17f4797b91759e22ce41bcfb3167c" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Observed production-only shared extraction, unchanged test green, discount red (20 errors), implementation, 3 green. Final-only rounding discriminator 0.0044. Denied shell writes recovered without git mutations." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/easy-multifile-change/without-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "easy-multifile-change", - "skill": "make-the-change-easy", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "63b4458b22d1118f3e5c08e06196c50aef5f51f38d06a1b4995ee55ef5cca0b8", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": {}, - "prompt_sha256": "3cbf38493e82dc3def92fd8c1aa50ee8b399bf0bb1ab413accd3dabfc9ffcce1", - "trace_sha256": "ea3cd69e2939bf47c1dabcbc29393496dbb418e8e77ac1d22b622acfde7e6616", - "final_files_sha256": { - "app.py": "a24fe7277d7f652d91fa6ac00adc63284759354235f4ab944edd097586a1662a", - "currency.py": "d69fa2ea065ab5e4515475791a7f996b6e6cfae63b2c2637cc58c5a599530d39", - "email_invoice.py": "0862630a79222a084f9ce61e204b45135c24b1fd2a8dfa8f4a5bbd5506ab2c78", - "invoice_total.py": "58b5dd5fd22770be20806edbcf728b8ee41c68d8c2b144d322cadd83da367910", - "receipt_invoice.py": "9fed5ac9d1ca9e3710a7a364da2179d32e1029e0584e97930633edf7493b10fb", - "test_app.py": "0600c9f1f25e5a58a656110f90eb7bf0104e405d5193db69290a2a2ed76574dc" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Production-only extraction and unchanged test green precede discount failure and implementation; 3 green. Red output truncated but unsupported-discount errors observed. Fractional discount tested." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/house-safe-deletion/with-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "43f01238c6c372687038212ee0408f89c240cdbe09db44145e28be6e1349c2de", - "trace_sha256": "3f8a3620ddee8490507d3e3672e6583864c1485c395e1b066f52a580a4116c04", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed. 2 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/house-safe-deletion/without-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": {}, - "prompt_sha256": "41f5f54195f8ff5686e7ba15e218a85b136b6f7bbb408c37e0b40f7548114ce0", - "trace_sha256": "e8371a09f5ac85271ca9d440ca459a8712c2404fb41cee2b30a8b72db0005726", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/parse-live-authorization/with-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "9e8c9eefa3448d2334653ef9b18508ee7d783147fbe51211443dadabffb1753c", - "final_files_sha256": { - "app.py": "a16e7b8395564169fcd0ad28714b13fd53c5e7ce3e75ceaa38be9e3bedcca176", - "test_app.py": "c81ccb187cdb37cb798b11f7582517c2483bd997f257b5fa8b8dbe7ff8766236" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read. Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/parse-live-authorization/without-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": {}, - "prompt_sha256": "497c1c8d6380b499cfc3f1fa79a70338fc552ca64de42f5c353e013856c5c80c", - "trace_sha256": "462e1c46a01fad0747558947ab660402202fd22386d4ed401969a1581ba54435", - "final_files_sha256": { - "app.py": "48cd0209017b303ed2c2cb3653c798caf1e4e791c2f1d8f07e3cfb8f43f89af1", - "test_app.py": "3523b8ea10431d93291216943e32537625826565ab8248ea555bb96e61e8df56" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "fail", - "rationale": "Unchecked NewType lacks validating normal construction. Live ownership checked every read. Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/parse-repeated-boundary/with-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "98af065bc8a0b8c685d7c56ffaf527ceaf950dd678a9d2a38ad9dfb992524abd", - "final_files_sha256": { - "app.py": "f275d77c8626c2908123afdd7421f67584dff9b5ce0dca919b5dfe0e7bffe3c7", - "test_app.py": "1c893fb80e9b56bec8e0ae18df3512274f66d1b1991d15cc96e619f5f63f6052" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/parse-repeated-boundary/without-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": {}, - "prompt_sha256": "e493ac7989cc5fca8e3562f858f7c631406103e82febb5f1dfa501a88462dc74", - "trace_sha256": "77502f02ea2f45708377351e205c9b4e5803851dbcb50727bd3542a2a93a518c", - "final_files_sha256": { - "app.py": "97b2b93b26fbf349295d01e621df0dbcfa1f5e88ef487f88f691c00a57a4ae43", - "test_app.py": "a704b77d0b716bd16752275bc5c81d8bdff9edb2726ebb6438ceef554b0b3809" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/parse-single-check/with-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "parse-single-check", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "542f6eb7fa96e0ee131239d3feb74bddb2836d2b3f9713367046db83a9fd5bc2", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "17f4b7cdbc7bc06da8f727c6c3dc573b40978bc02618ba25a788dc8c09ab76bf", - "trace_sha256": "38b53b70d0573f44b0f67be12e134ab000d8be9909c42d761d6a5de9fec75f7f", - "final_files_sha256": { - "app.py": "72b29675bcfb5b2496741f10248db2a1b4784c9ba65690f653f6d115776daa80", - "test_app.py": "ffa0bc240532e1d5b51728150549d469c0f8a39c669119e019ec3381777907ff" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Simple range check; boundary tests passed; no domain abstraction/dependencies. 2 tests. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/parse-single-check/without-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "parse-single-check", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "542f6eb7fa96e0ee131239d3feb74bddb2836d2b3f9713367046db83a9fd5bc2", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": {}, - "prompt_sha256": "b5b6cc846f4a67e8311784c1b2ba8f7e4a66c84bec775178ac1501993b8acf5e", - "trace_sha256": "c7e9bf0483cce1cb3788b160735f08a6f395972732a69dfa133cd89dfa81a1dd", - "final_files_sha256": { - "app.py": "cb8c9af0b579e40a92aead18ab431c4f9bf06bdb70ca6e91c0cfee9afce8a1b6", - "test_app.py": "94fa3a5e1580f90b73fd5118d2918b62c8faf3b283ed03ad1c468436f8df8aef" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Simple range check; boundary tests passed; no domain abstraction/dependencies. 2 tests. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/smell-data-ownership/with-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "smell-data-ownership", - "skill": "smell-to-refactoring", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "948efbc9ccb249d6e7c917c0185f63eb0198b95667a1ce7f2e49672fec149ec6", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "839aa82a0d6c6971dcdba8227e9da712efc9782a1ef03ba16af96ba662121d71" - }, - "prompt_sha256": "5e0901b72ad586a1545f3ff45af7bda8f9a315c2e0f92c01a7cc24c059814441", - "trace_sha256": "46bdb2d167310312d3c0db767e0eacb8f4a976437f7109b989c92949db6ea2de", - "final_files_sha256": { - "app.py": "890dda6b57b287658b3202481a3d3c0c3aa5ea67d1f526b4d27431e4d2bcd713", - "records.py": "a1fc807e0ae3062e47aa0c707e8a35d172ea4a8b35458f39ae003d14f4cabcc9", - "reporting.py": "4155d70219a654463e87bf05d5e95349d97a14cf512256d374c0b271b12f8bb8", - "test_app.py": "de420429153273ce767c69bbf92680b06fbf73418153a08fe6a94875fb3c1a87", - "unrelated.py": "d3715afabd455b1899bc36cbbdedd5add077e1568033f02d649b15b2e95391d2" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "reporting.py:2-6 diagnosis is concrete. Record subtotal()/total() own arithmetic; currency accessor removes private coupling. Rounding/generator tests precede edits; 5 pass. Weakness: reporting.py:4-5 sums lines twice." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/smell-data-ownership/without-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "smell-data-ownership", - "skill": "smell-to-refactoring", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "948efbc9ccb249d6e7c917c0185f63eb0198b95667a1ce7f2e49672fec149ec6", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": {}, - "prompt_sha256": "9f27cf4582df38bdbe32fcdcf3609d71937caa3bb8db5fd16c0c1731d6ec039d", - "trace_sha256": "852931c013cfd94f4c162fac85dabfc122e65659b4fdca6bb088da3fe49af4e9", - "final_files_sha256": { - "app.py": "890dda6b57b287658b3202481a3d3c0c3aa5ea67d1f526b4d27431e4d2bcd713", - "records.py": "57bc9da16d96f340bcf52370df8328ecb310473fd86d4d99097c6ea2cdaa4f64", - "reporting.py": "239e189e6e5780de3995cb87496fdc3eedecc60d1717ac0b2b7944f173e91353", - "test_app.py": "6dfb3a78ced78149b860cfccb10e06a38985c1802548c1c9edbfbf9aee082399", - "unrelated.py": "d3715afabd455b1899bc36cbbdedd5add077e1568033f02d649b15b2e95391d2" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "reporting.py:2,4,6 diagnosis is concrete. Computed subtotal/total properties perform real arithmetic, not getter renaming. Currency is encapsulated; 5 tests pass before/after. Weakness: reporting.py:4-5 sums lines twice." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/smell-review-only/with-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "smell-review-only", - "skill": "smell-to-refactoring", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "3ef9bb7ed2987eebe1ea6b57f0e15431e44d15e2d48033072f010c8aa53bd1ca", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "839aa82a0d6c6971dcdba8227e9da712efc9782a1ef03ba16af96ba662121d71" - }, - "prompt_sha256": "61b74cfc68dc4dfd2706f40fa95784861ae023af6fec0a36282e69c5e8914c99", - "trace_sha256": "99128a12211ce9afa2af0508ab5f270e4bef9b17c013e0815117f503c175768a", - "final_files_sha256": { - "app.py": "2f0d550d13b5267ae891f4d1ed58dfc015795506c447c7db61ae0f160007a62d", - "test_app.py": "d0aa94ec100a15150f9d411947f3222367d7275bef8dd65c8307069aac3ae566" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "app.py:1-4,7-10 duplication finding recommends extraction with compatibility delegates. Both source files preserved; 2 tests pass with bytecode disabled. Additional money/type discussion exceeds the central finding but is explicitly conditional." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/claude/smell-review-only/without-skill", - "stage": "expanded", - "round": "r1", - "host": "claude", - "case": "smell-review-only", - "skill": "smell-to-refactoring", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "3ef9bb7ed2987eebe1ea6b57f0e15431e44d15e2d48033072f010c8aa53bd1ca", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": {}, - "prompt_sha256": "e15a05dec8cc686e160cb41f5c9f79ad1b7073dc0cc7ebf10a7ba8b665cece64", - "trace_sha256": "3267073ca96f14b4d744ef283d7c9002e27b05e17ba15994bed4ba502626e2fe", - "final_files_sha256": { - "app.py": "2f0d550d13b5267ae891f4d1ed58dfc015795506c447c7db61ae0f160007a62d", - "test_app.py": "d0aa94ec100a15150f9d411947f3222367d7275bef8dd65c8307069aac3ae566" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "app.py:1-4,7-10 duplication finding recommends a shared helper preserving names. Both source files preserved; 2 tests pass. Response acknowledges ignored __pycache__; no source edits or commits." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/easy-already-local/with-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "easy-already-local", - "skill": "make-the-change-easy", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "466765efc2e6a97e457aa4c200a95b7c5adcc8c8e1e6f1398d4df6af0ec2cd6f", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "4f8386091df111020a3ed35d496ebe66dc3c437c3299c2ea3ae31a0f1e5f02ce" - }, - "prompt_sha256": "d9eaef5f1f362235eb16a0d619015554fc0f69491dd6371f668143f9ee0f0043", - "trace_sha256": "7307a99a04fb1c953d0dbfb72f07ce30b4e2a1e733c14effc8e4809b5f171154", - "final_files_sha256": { - "app.py": "c0863780a377881ae666e05baf213b5551469d98154441f1acb2c6074948fb27", - "test_app.py": "35b6ca4082efb0d4dac4683d90cd09916308fa5c58d9f1646947f9980ec2a009" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Baseline green, added suffix tests red, direct function edit, 4 green; no unnecessary preparation." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/easy-already-local/without-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "easy-already-local", - "skill": "make-the-change-easy", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "466765efc2e6a97e457aa4c200a95b7c5adcc8c8e1e6f1398d4df6af0ec2cd6f", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": {}, - "prompt_sha256": "e8e92ffd5ab9d21c0e978d3893ce6a89625ade834e96ad40c8eb4b438f48a1a3", - "trace_sha256": "ddf6edcff241d5b65afa0653b771541bcadb22b9a2551b8d3802d28d13a51ba5", - "final_files_sha256": { - "app.py": "c0863780a377881ae666e05baf213b5551469d98154441f1acb2c6074948fb27", - "test_app.py": "35b6ca4082efb0d4dac4683d90cd09916308fa5c58d9f1646947f9980ec2a009" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "App and tests changed directly; 4 green including unchanged default, empty/custom suffix and keyword-only. No prep." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/easy-multifile-change/with-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "easy-multifile-change", - "skill": "make-the-change-easy", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "63b4458b22d1118f3e5c08e06196c50aef5f51f38d06a1b4995ee55ef5cca0b8", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "4f8386091df111020a3ed35d496ebe66dc3c437c3299c2ea3ae31a0f1e5f02ce" - }, - "prompt_sha256": "a8196ce16b46b7d4c8445dcfef58ac93c6428e48866aa916536602a640dc3d74", - "trace_sha256": "bffed8d0f3ca8e8539d388931e5ce46dce8860334ecda3e032a75bb9a1694e40", - "final_files_sha256": { - "app.py": "a24fe7277d7f652d91fa6ac00adc63284759354235f4ab944edd097586a1662a", - "currency.py": "d69fa2ea065ab5e4515475791a7f996b6e6cfae63b2c2637cc58c5a599530d39", - "email_invoice.py": "0862630a79222a084f9ce61e204b45135c24b1fd2a8dfa8f4a5bbd5506ab2c78", - "invoice_total.py": "58b5dd5fd22770be20806edbcf728b8ee41c68d8c2b144d322cadd83da367910", - "receipt_invoice.py": "9fed5ac9d1ca9e3710a7a364da2179d32e1029e0584e97930633edf7493b10fb", - "test_app.py": "20822243a8a661ed28369fb29068b6b72e1fd3edff5eb94b03fab09a222e0703" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Production-only helper/wrapper changes, unchanged test green, tests added and discount red (28 errors), production implementation, 3 green. Includes fractional rounding cases." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/easy-multifile-change/without-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "easy-multifile-change", - "skill": "make-the-change-easy", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "63b4458b22d1118f3e5c08e06196c50aef5f51f38d06a1b4995ee55ef5cca0b8", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": {}, - "prompt_sha256": "3cbf38493e82dc3def92fd8c1aa50ee8b399bf0bb1ab413accd3dabfc9ffcce1", - "trace_sha256": "af400f7ca710aab8c6cc633e3284b041ded04811e2e9b1204fd471274da47984", - "final_files_sha256": { - "app.py": "a24fe7277d7f652d91fa6ac00adc63284759354235f4ab944edd097586a1662a", - "currency.py": "d69fa2ea065ab5e4515475791a7f996b6e6cfae63b2c2637cc58c5a599530d39", - "email_invoice.py": "0862630a79222a084f9ce61e204b45135c24b1fd2a8dfa8f4a5bbd5506ab2c78", - "invoice_total.py": "58b5dd5fd22770be20806edbcf728b8ee41c68d8c2b144d322cadd83da367910", - "receipt_invoice.py": "9fed5ac9d1ca9e3710a7a364da2179d32e1029e0584e97930633edf7493b10fb", - "test_app.py": "2166b3ce2ad0614c2c7803484dcd7c78293f1a1bf09fb8f4cce4e07145933037" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Production-only extraction, unchanged test green, discount red (24 errors), implementation, 3 green. No pre-extraction baseline run, but required post-preparation green observed." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/house-safe-deletion/with-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "43f01238c6c372687038212ee0408f89c240cdbe09db44145e28be6e1349c2de", - "trace_sha256": "a4f83bd5a62c7873846a53aa003e3c9fb2af87989c58373971977c9693824769", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/house-safe-deletion/without-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "41f5f54195f8ff5686e7ba15e218a85b136b6f7bbb408c37e0b40f7548114ce0", - "trace_sha256": "9cbe9c25ad7378240a8ec3093324dc7e29953dc7250bf29ad3a4bac1dc94081a", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/parse-live-authorization/with-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "3ebe8192ad9a7383ad973edc192877c111dfef84d0681b3f36d0be3ef06e151d", - "final_files_sha256": { - "app.py": "73b7cea4eb00c5e68a9e0530ea7c413dec68f5137f1a5b616df8f61b535c43df", - "test_app.py": "a3ab0b1df3c82510090e881a9446d030d8882c9dd818d3ac02c52e4bbf1fb7a4" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read. Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/parse-live-authorization/without-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "497c1c8d6380b499cfc3f1fa79a70338fc552ca64de42f5c353e013856c5c80c", - "trace_sha256": "c69f42608dbcc862e12985b413288a2723d66a03d98e1a51910ecf1b667d6e04", - "final_files_sha256": { - "app.py": "b6d976ac66b082bb74250571848ee57705dd5bff0bcdfbda95d4a3f9b6843047", - "test_app.py": "64672ef510de377b809111c7bad8ebff2dc980d6050ae2d5188ff54541718b0a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "fail", - "rationale": "Unchecked raw-string lacks validating normal construction. Live ownership checked every read. Missing downstream parsed-parameter annotation weakens explicit signature (source-only)." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/parse-repeated-boundary/with-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "d278968616e0986d3544a1af1b3ddb5f48fc35a0810579785b865211dd5a1762", - "final_files_sha256": { - "app.py": "20656c2ec4c057afb15eb1e67a4e8589845a0fac4a9a10df961fbe63fbeb2eb0", - "test_app.py": "05c99f06830fe849bb5a23ecc1cfc8b376ba090e6033deb1f0e5810caefb4f22" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/parse-repeated-boundary/without-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "e493ac7989cc5fca8e3562f858f7c631406103e82febb5f1dfa501a88462dc74", - "trace_sha256": "e12b8396b395f31850750460b004bbfa266e1450257e7dcc04c0d5a886ab8fc1", - "final_files_sha256": { - "app.py": "5d56f43c3e48478d801e8203a48bf99b63a51a1eade90187ba32068f36fbe161", - "test_app.py": "1ff5166f364a26387ea5e037c32959610167969e78703ea6539c2e9e36891335" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "fail", - "rationale": "Unchecked NewType lacks validating normal construction." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/parse-single-check/with-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "parse-single-check", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "542f6eb7fa96e0ee131239d3feb74bddb2836d2b3f9713367046db83a9fd5bc2", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "17f4b7cdbc7bc06da8f727c6c3dc573b40978bc02618ba25a788dc8c09ab76bf", - "trace_sha256": "ad306f4c3fb53b6f01b731cae0010c82f3e2d476d888ab8d0c75ea74904e4569", - "final_files_sha256": { - "app.py": "72b29675bcfb5b2496741f10248db2a1b4784c9ba65690f653f6d115776daa80", - "test_app.py": "33699f7a15210d6463938ebe2153f1d3363dd8d30cbf71761d4a44c0d39e9825" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Simple range check; boundary tests passed; no domain abstraction/dependencies. 2 tests." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/parse-single-check/without-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "parse-single-check", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "542f6eb7fa96e0ee131239d3feb74bddb2836d2b3f9713367046db83a9fd5bc2", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "b5b6cc846f4a67e8311784c1b2ba8f7e4a66c84bec775178ac1501993b8acf5e", - "trace_sha256": "699f138d131e96018aa7f1b4f5d5868643d24f5a7855508b8a7a9e4bdb9334ba", - "final_files_sha256": { - "app.py": "72b29675bcfb5b2496741f10248db2a1b4784c9ba65690f653f6d115776daa80", - "test_app.py": "b1e1c262694945d0b3dbb7343e9891a50a68fb1e8c1c2069605fd366df72eec3" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Simple range check; boundary tests passed; no domain abstraction/dependencies. 2 tests." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/smell-data-ownership/with-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "smell-data-ownership", - "skill": "smell-to-refactoring", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "948efbc9ccb249d6e7c917c0185f63eb0198b95667a1ce7f2e49672fec149ec6", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "839aa82a0d6c6971dcdba8227e9da712efc9782a1ef03ba16af96ba662121d71" - }, - "prompt_sha256": "5e0901b72ad586a1545f3ff45af7bda8f9a315c2e0f92c01a7cc24c059814441", - "trace_sha256": "4d1819178f8d4d38c92811d946e91aba4abe27b3a302145f513eaaf3251905ce", - "final_files_sha256": { - "app.py": "890dda6b57b287658b3202481a3d3c0c3aa5ea67d1f526b4d27431e4d2bcd713", - "records.py": "ecc62f27f5e97ec96a2675178a14d9bc9d52b05f0de14724263106c7ff834194", - "reporting.py": "c17ea33ee3c9e0396c8dfb4ccedc5854af725a8d5f14c3391abc94f1b36898c5", - "test_app.py": "67921166ad752b5bfc021f710b193ea44aa5767dda9074855442c9b573b0faeb", - "unrelated.py": "d3715afabd455b1899bc36cbbdedd5add077e1568033f02d649b15b2e95391d2" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "reporting.py:2,4,6 diagnosis supports moving subtotal/shipping arithmetic into subtotal_and_total(). Single-pass ownership, public currency, reporting-only rounding. Regression tests precede edits; 5 pass." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/smell-data-ownership/without-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "smell-data-ownership", - "skill": "smell-to-refactoring", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "948efbc9ccb249d6e7c917c0185f63eb0198b95667a1ce7f2e49672fec149ec6", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": {}, - "prompt_sha256": "9f27cf4582df38bdbe32fcdcf3609d71937caa3bb8db5fd16c0c1731d6ec039d", - "trace_sha256": "55ea2b1299ce59f6a8fa3e1324f40a7cb8f99f7f0465a8ccad60f360e3b6911c", - "final_files_sha256": { - "app.py": "890dda6b57b287658b3202481a3d3c0c3aa5ea67d1f526b4d27431e4d2bcd713", - "records.py": "9664589b3665e877b3fa92c367be250755b6c072bb8d405fc74aa57bcc6ede39", - "reporting.py": "3be82cf0cc3585db0e08c23aedc4cf10e6bd6c6d543ca5e703374fec99d4ef23", - "test_app.py": "bd0492199be3b68dd8218ab0bd395fa9a3d76489deff73c839f3e15e4d97dc80", - "unrelated.py": "d3715afabd455b1899bc36cbbdedd5add077e1568033f02d649b15b2e95391d2" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "reporting.py:2,4,6 diagnosis supports record amounts(), with arithmetic rather than storage getters. Single-pass calculation and currency accessor remove private coupling. Five tests pass; new interface test necessarily runs after implementation." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/smell-review-only/with-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "smell-review-only", - "skill": "smell-to-refactoring", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "3ef9bb7ed2987eebe1ea6b57f0e15431e44d15e2d48033072f010c8aa53bd1ca", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "839aa82a0d6c6971dcdba8227e9da712efc9782a1ef03ba16af96ba662121d71" - }, - "prompt_sha256": "61b74cfc68dc4dfd2706f40fa95784861ae023af6fec0a36282e69c5e8914c99", - "trace_sha256": "409f77130662568b87603ebe893fa2515c363435a907271e9b6bd191c08f1e49", - "final_files_sha256": { - "app.py": "2f0d550d13b5267ae891f4d1ed58dfc015795506c447c7db61ae0f160007a62d", - "test_app.py": "d0aa94ec100a15150f9d411947f3222367d7275bef8dd65c8307069aac3ae566" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "app.py:2,8 duplication finding recommends private extraction retaining both public wrappers. Both source files preserved; 2 tests pass with bytecode disabled. Focused, actionable review." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r1/codex/smell-review-only/without-skill", - "stage": "expanded", - "round": "r1", - "host": "codex", - "case": "smell-review-only", - "skill": "smell-to-refactoring", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "without-skill", - "with-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "3ef9bb7ed2987eebe1ea6b57f0e15431e44d15e2d48033072f010c8aa53bd1ca", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": {}, - "prompt_sha256": "e15a05dec8cc686e160cb41f5c9f79ad1b7073dc0cc7ebf10a7ba8b665cece64", - "trace_sha256": "38204d93d8e5886967fa301d46a7555820cf26a4c0363f5a0f4e76dbdb852b54", - "final_files_sha256": { - "app.py": "2f0d550d13b5267ae891f4d1ed58dfc015795506c447c7db61ae0f160007a62d", - "test_app.py": "d0aa94ec100a15150f9d411947f3222367d7275bef8dd65c8307069aac3ae566" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "app.py:1,7 duplication finding recommends shared extraction; tax constant and documentation findings are secondary. Both source files preserved; 2 tests pass with bytecode disabled." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/easy-already-local/with-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "easy-already-local", - "skill": "make-the-change-easy", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "466765efc2e6a97e457aa4c200a95b7c5adcc8c8e1e6f1398d4df6af0ec2cd6f", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "4f8386091df111020a3ed35d496ebe66dc3c437c3299c2ea3ae31a0f1e5f02ce" - }, - "prompt_sha256": "d9eaef5f1f362235eb16a0d619015554fc0f69491dd6371f668143f9ee0f0043", - "trace_sha256": "3f53d9d00fe21d97599235de611f206955c6ffaaa2f9d05abe65cfbfd91f851f", - "final_files_sha256": { - "app.py": "06d054bf527804e0e78850cb17b0adf6d6e427829ba957ed393edfbbba9ff3c0", - "test_app.py": "ba4f018d35d18c11da75bcca3c7ca71b9abb9d66f2df4695e66426e92cc917f7" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Baseline green, suffix red, direct edit, 3 green; original default unchanged and no prep." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/easy-already-local/without-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "easy-already-local", - "skill": "make-the-change-easy", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "466765efc2e6a97e457aa4c200a95b7c5adcc8c8e1e6f1398d4df6af0ec2cd6f", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "e8e92ffd5ab9d21c0e978d3893ce6a89625ade834e96ad40c8eb4b438f48a1a3", - "trace_sha256": "9705e7df3f48250bcd970dedf5ba487730aeb8ddb50d59c8327071c23ad279c6", - "final_files_sha256": { - "app.py": "06d054bf527804e0e78850cb17b0adf6d6e427829ba957ed393edfbbba9ff3c0", - "test_app.py": "ba4f018d35d18c11da75bcca3c7ca71b9abb9d66f2df4695e66426e92cc917f7" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Direct app/test edits, 3 green, unchanged default and keyword-only enforced; no prep." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/easy-multifile-change/with-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "easy-multifile-change", - "skill": "make-the-change-easy", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "63b4458b22d1118f3e5c08e06196c50aef5f51f38d06a1b4995ee55ef5cca0b8", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "4f8386091df111020a3ed35d496ebe66dc3c437c3299c2ea3ae31a0f1e5f02ce" - }, - "prompt_sha256": "a8196ce16b46b7d4c8445dcfef58ac93c6428e48866aa916536602a640dc3d74", - "trace_sha256": "a02e10a8b54ce5a592e5ffe83f9d5ec5b1480cdcf09698b04fff254eb55df60e", - "final_files_sha256": { - "app.py": "a24fe7277d7f652d91fa6ac00adc63284759354235f4ab944edd097586a1662a", - "currency.py": "d69fa2ea065ab5e4515475791a7f996b6e6cfae63b2c2637cc58c5a599530d39", - "email_invoice.py": "0862630a79222a084f9ce61e204b45135c24b1fd2a8dfa8f4a5bbd5506ab2c78", - "invoice_total.py": "58b5dd5fd22770be20806edbcf728b8ee41c68d8c2b144d322cadd83da367910", - "receipt_invoice.py": "9fed5ac9d1ca9e3710a7a364da2179d32e1029e0584e97930633edf7493b10fb", - "test_app.py": "ea7719e013d8919edb9efd41995e04a3e7564d3afd39e84a8ccfe373bd4f477a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Production-only extraction and unchanged test green precede feature red. Improved rounding test while still red, confirmed 20 errors, then implementation and 3 green. No test weakening after implementation." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/easy-multifile-change/without-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "easy-multifile-change", - "skill": "make-the-change-easy", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "63b4458b22d1118f3e5c08e06196c50aef5f51f38d06a1b4995ee55ef5cca0b8", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "3cbf38493e82dc3def92fd8c1aa50ee8b399bf0bb1ab413accd3dabfc9ffcce1", - "trace_sha256": "514ee3fb47accf0e7825bc8726473da5ec1ecfd79404aa2bf1f655c1fbce896d", - "final_files_sha256": { - "app.py": "a24fe7277d7f652d91fa6ac00adc63284759354235f4ab944edd097586a1662a", - "currency.py": "d69fa2ea065ab5e4515475791a7f996b6e6cfae63b2c2637cc58c5a599530d39", - "email_invoice.py": "95d200320953e5797196c5b71f138e90f78eae7b28acc53003b48b37ba3b9132", - "invoice_total.py": "074477e25fb9c6e02785731d99bd9aee8beb32ca69a67801936916b6be6f3b96", - "receipt_invoice.py": "f58abf7076155db54c3fa51e431942f9960c15eaf1f375886eef7ad754f18c8b", - "test_app.py": "83d175b5eab467d25aa155ed24290eaad6da765bcd837c38aa6145b1a100b08b" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Production-only extraction, unchanged test green, unsupported-discount red, implementation, 3 green. Rounding row 1.004/0.001 does not distinguish premature rounding; actual implementation rounds only finally." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/house-safe-deletion/with-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "43f01238c6c372687038212ee0408f89c240cdbe09db44145e28be6e1349c2de", - "trace_sha256": "4d3037dd9cc562125a75e508a82ad471821e6c6c1e6d0361e74f5fac93bf9cdb", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed. 2 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/house-safe-deletion/without-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "41f5f54195f8ff5686e7ba15e218a85b136b6f7bbb408c37e0b40f7548114ce0", - "trace_sha256": "586ef738980088166dbac1194a137ad557919aee215cf353d7b1236edd359c93", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed. 2 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/parse-live-authorization/with-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "de9186edd879fe1f26773fdfb759891cff55c5c91661e48435d5b86ca205d966", - "final_files_sha256": { - "app.py": "5eadbf97d2f9835d9939e934a3e1c6d40d7cad935b1472eb0144e08640218589", - "test_app.py": "dbcd97a3b4dc10f0b6daad93b373b3640875c39e5b6de810ca31ea5769833270" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read. Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/parse-live-authorization/without-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "497c1c8d6380b499cfc3f1fa79a70338fc552ca64de42f5c353e013856c5c80c", - "trace_sha256": "e024595a6536e113677b5a5077202fb4242e1f11910700ca852f3dc6221a31eb", - "final_files_sha256": { - "app.py": "0996fb5fd94f0dc96f5ce44a06c7dc22933594f537614b3e091151fa5d1795ec", - "test_app.py": "528967414f2e22a01d448f8b1a7e07153d100bd24344b0dc63c2115ea84c491d" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "fail", - "rationale": "Unchecked NewType lacks validating normal construction. Live ownership checked every read. Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/parse-repeated-boundary/with-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "353467897fcc314c16677b47f9f3714d93d5411b1a53932cf3b1946e18a43d4c", - "final_files_sha256": { - "app.py": "c4ede0feda8922e0d6567ef4759ceb7efae8de3c56cbf155075ce69f7d83f78b", - "test_app.py": "ba9d0c6a96b7769b553bb195d26912d2ba6f803c57c130a0984ec74975f84d0b" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/parse-repeated-boundary/without-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "e493ac7989cc5fca8e3562f858f7c631406103e82febb5f1dfa501a88462dc74", - "trace_sha256": "352a52991282d75183b89204b83bb1f6a3fd8b2a444bb374690183c79b2ed6db", - "final_files_sha256": { - "app.py": "887b8ff1a30ff157dce4f753ad848ccbf4ce6ca10c9a2b90ef5e3aa9209a7705", - "test_app.py": "72e4881da54c0f41cda58462167bd24314af5a901dda1932a12eb3c822c460c6" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/parse-single-check/with-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "parse-single-check", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "542f6eb7fa96e0ee131239d3feb74bddb2836d2b3f9713367046db83a9fd5bc2", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "17f4b7cdbc7bc06da8f727c6c3dc573b40978bc02618ba25a788dc8c09ab76bf", - "trace_sha256": "2822bc8bbafa4cc0c59556eadca92187d77f4ea79450ae2d3d54e946d1e5ed78", - "final_files_sha256": { - "app.py": "72b29675bcfb5b2496741f10248db2a1b4784c9ba65690f653f6d115776daa80", - "test_app.py": "94fa3a5e1580f90b73fd5118d2918b62c8faf3b283ed03ad1c468436f8df8aef" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Simple range check; boundary tests passed; no domain abstraction/dependencies. 2 tests. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/parse-single-check/without-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "parse-single-check", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "542f6eb7fa96e0ee131239d3feb74bddb2836d2b3f9713367046db83a9fd5bc2", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "b5b6cc846f4a67e8311784c1b2ba8f7e4a66c84bec775178ac1501993b8acf5e", - "trace_sha256": "ee2087eef7c6723a8f5b412c24472835090650eec3eac9751428ae077567bbf2", - "final_files_sha256": { - "app.py": "72b29675bcfb5b2496741f10248db2a1b4784c9ba65690f653f6d115776daa80", - "test_app.py": "94fa3a5e1580f90b73fd5118d2918b62c8faf3b283ed03ad1c468436f8df8aef" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Simple range check; boundary tests passed; no domain abstraction/dependencies. 2 tests. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/smell-data-ownership/with-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "smell-data-ownership", - "skill": "smell-to-refactoring", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "948efbc9ccb249d6e7c917c0185f63eb0198b95667a1ce7f2e49672fec149ec6", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "839aa82a0d6c6971dcdba8227e9da712efc9782a1ef03ba16af96ba662121d71" - }, - "prompt_sha256": "5e0901b72ad586a1545f3ff45af7bda8f9a315c2e0f92c01a7cc24c059814441", - "trace_sha256": "987a409010a978d3a523e819733d9761023acb19085a6d9eaba9d68d2893f792", - "final_files_sha256": { - "app.py": "890dda6b57b287658b3202481a3d3c0c3aa5ea67d1f526b4d27431e4d2bcd713", - "records.py": "a1fc807e0ae3062e47aa0c707e8a35d172ea4a8b35458f39ae003d14f4cabcc9", - "reporting.py": "4155d70219a654463e87bf05d5e95349d97a14cf512256d374c0b271b12f8bb8", - "test_app.py": "f6e4651d2a724117bcd3cb37b55ca1c31b0a6c64112603add813a395694728cf", - "unrelated.py": "d3715afabd455b1899bc36cbbdedd5add077e1568033f02d649b15b2e95391d2" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "reporting.py:2,4,6 diagnosis supports real subtotal()/total() ownership and currency encapsulation. Added rounding/generator tests pass before edits and between steps; 5 pass. Explicitly acknowledges duplicate summation at reporting.py:4-5." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/smell-data-ownership/without-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "smell-data-ownership", - "skill": "smell-to-refactoring", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "948efbc9ccb249d6e7c917c0185f63eb0198b95667a1ce7f2e49672fec149ec6", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "9f27cf4582df38bdbe32fcdcf3609d71937caa3bb8db5fd16c0c1731d6ec039d", - "trace_sha256": "ece2f04fd97014cdbb7dabcdc1757bcaa25435b797c8ef988be7e73e36a17a29", - "final_files_sha256": { - "app.py": "890dda6b57b287658b3202481a3d3c0c3aa5ea67d1f526b4d27431e4d2bcd713", - "records.py": "5d7d65626c8fd3d494bbf9568bc5910af3e38da5968e884a3f388ffdef48bfdf", - "reporting.py": "4155d70219a654463e87bf05d5e95349d97a14cf512256d374c0b271b12f8bb8", - "test_app.py": "21b53ca5329939aa2b2ed80d872f8ec988e13f5a6d7ce162acc379ffdf77730e", - "test_records.py": "52d5a00f86d6d477d560a1b0a88f5a33d11bdf460fc4e966c55234a1e7ade023", - "unrelated.py": "d3715afabd455b1899bc36cbbdedd5add077e1568033f02d649b15b2e95391d2" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "reporting.py:2,4,6 diagnosis supports real record arithmetic, public currency, presentation-only reporting. Six tests pass including new test_records.py. Explicitly acknowledges duplicate summation at reporting.py:4-5; added tests were not baseline characterization." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/smell-review-only/with-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "smell-review-only", - "skill": "smell-to-refactoring", - "mode": "with-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "3ef9bb7ed2987eebe1ea6b57f0e15431e44d15e2d48033072f010c8aa53bd1ca", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "839aa82a0d6c6971dcdba8227e9da712efc9782a1ef03ba16af96ba662121d71" - }, - "prompt_sha256": "61b74cfc68dc4dfd2706f40fa95784861ae023af6fec0a36282e69c5e8914c99", - "trace_sha256": "ebcc2870a9e20b3702bdcc9e8977f7578ae4f828a883a0e922fab4c30b9a5896", - "final_files_sha256": { - "app.py": "2f0d550d13b5267ae891f4d1ed58dfc015795506c447c7db61ae0f160007a62d", - "test_app.py": "d0aa94ec100a15150f9d411947f3222367d7275bef8dd65c8307069aac3ae566" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "app.py:1-4,7-10 duplication finding recommends shared extraction retaining names. Both source files preserved; 2 tests pass. Weakness: speculative tuple-swapping concern adds little because price*quantity is commutative here; money migration is not established as required." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/claude/smell-review-only/without-skill", - "stage": "expanded", - "round": "r2", - "host": "claude", - "case": "smell-review-only", - "skill": "smell-to-refactoring", - "mode": "without-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "3ef9bb7ed2987eebe1ea6b57f0e15431e44d15e2d48033072f010c8aa53bd1ca", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "e15a05dec8cc686e160cb41f5c9f79ad1b7073dc0cc7ebf10a7ba8b665cece64", - "trace_sha256": "59987b9123707e8dfe0a03104e64730ac7621d7d39e31bff33f232123844f4df", - "final_files_sha256": { - "app.py": "2f0d550d13b5267ae891f4d1ed58dfc015795506c447c7db61ae0f160007a62d", - "test_app.py": "d0aa94ec100a15150f9d411947f3222367d7275bef8dd65c8307069aac3ae566" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "app.py:1-4,7-10 duplication finding recommends shared extraction/delegation. Both source files preserved; 2 tests pass. Money concern is conditional, not reproduced: rounding probe was denied, accurately disclosed." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/easy-already-local/with-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "easy-already-local", - "skill": "make-the-change-easy", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "466765efc2e6a97e457aa4c200a95b7c5adcc8c8e1e6f1398d4df6af0ec2cd6f", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "4f8386091df111020a3ed35d496ebe66dc3c437c3299c2ea3ae31a0f1e5f02ce" - }, - "prompt_sha256": "d9eaef5f1f362235eb16a0d619015554fc0f69491dd6371f668143f9ee0f0043", - "trace_sha256": "1d33e658235c04365ac1a08c93fa5d68e95eda6d405c8934d9c3bbf8878635fe", - "final_files_sha256": { - "app.py": "c0863780a377881ae666e05baf213b5551469d98154441f1acb2c6074948fb27", - "test_app.py": "17cfd4f4eaf69958ea6dbfe2784fee1d376fc8a32657180520eb4cc2095bad4e" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Baseline green, suffix red, direct edit, 3 green; custom/empty suffix covered without preparatory refactor." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/easy-already-local/without-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "easy-already-local", - "skill": "make-the-change-easy", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "466765efc2e6a97e457aa4c200a95b7c5adcc8c8e1e6f1398d4df6af0ec2cd6f", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": {}, - "prompt_sha256": "e8e92ffd5ab9d21c0e978d3893ce6a89625ade834e96ad40c8eb4b438f48a1a3", - "trace_sha256": "dbefc082cf4e889d10e82ddbef468d3dc4883fb65ac9c37db0f672378a5e0213", - "final_files_sha256": { - "app.py": "c0863780a377881ae666e05baf213b5551469d98154441f1acb2c6074948fb27", - "test_app.py": "35b6ca4082efb0d4dac4683d90cd09916308fa5c58d9f1646947f9980ec2a009" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Direct app/test update, 4 green; default preserved, keyword-only checked, no prep." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/easy-multifile-change/with-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "easy-multifile-change", - "skill": "make-the-change-easy", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "63b4458b22d1118f3e5c08e06196c50aef5f51f38d06a1b4995ee55ef5cca0b8", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "4f8386091df111020a3ed35d496ebe66dc3c437c3299c2ea3ae31a0f1e5f02ce" - }, - "prompt_sha256": "a8196ce16b46b7d4c8445dcfef58ac93c6428e48866aa916536602a640dc3d74", - "trace_sha256": "53ee340d6e9c1412b831ab3e548124c3617cf77bd12a34693f9335e599dff14f", - "final_files_sha256": { - "app.py": "a24fe7277d7f652d91fa6ac00adc63284759354235f4ab944edd097586a1662a", - "currency.py": "d69fa2ea065ab5e4515475791a7f996b6e6cfae63b2c2637cc58c5a599530d39", - "email_invoice.py": "95d200320953e5797196c5b71f138e90f78eae7b28acc53003b48b37ba3b9132", - "invoice_total.py": "074477e25fb9c6e02785731d99bd9aee8beb32ca69a67801936916b6be6f3b96", - "receipt_invoice.py": "f58abf7076155db54c3fa51e431942f9960c15eaf1f375886eef7ad754f18c8b", - "test_app.py": "0be64140342f3c9071a8e4362482fc385fb127907dd86f4c35421ce522fd4ad7" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Production-only extraction, unchanged test green, discount red (24 errors), implementation, 3 green. Four import paths exercised." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/easy-multifile-change/without-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "easy-multifile-change", - "skill": "make-the-change-easy", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "63b4458b22d1118f3e5c08e06196c50aef5f51f38d06a1b4995ee55ef5cca0b8", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": {}, - "prompt_sha256": "3cbf38493e82dc3def92fd8c1aa50ee8b399bf0bb1ab413accd3dabfc9ffcce1", - "trace_sha256": "5b08cff0614915433444475a3d02628cf8c5216a9136d14dee114985426e4282", - "final_files_sha256": { - "app.py": "a24fe7277d7f652d91fa6ac00adc63284759354235f4ab944edd097586a1662a", - "currency.py": "d69fa2ea065ab5e4515475791a7f996b6e6cfae63b2c2637cc58c5a599530d39", - "email_invoice.py": "e9379e05f716d909f43670fb98612fc408f09a69029f1b53e01652805f379a9a", - "invoice.py": "58b5dd5fd22770be20806edbcf728b8ee41c68d8c2b144d322cadd83da367910", - "receipt_invoice.py": "f8b96abe92769f20ce7cd2cc1c249a604a02ff18d5055315c69e6e1b27305f33", - "test_app.py": "fb739471550d41539aa579e4a041147b33fba6b33c7b1fc2818891c93e18f916" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Production-only extraction into invoice.py, unchanged test green, discount red (24 errors), implementation, 3 green. Four import paths exercised." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/house-safe-deletion/with-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "43f01238c6c372687038212ee0408f89c240cdbe09db44145e28be6e1349c2de", - "trace_sha256": "85bab4fd9e222d0875bfd1bec513d20e16feaca57ca5af292ef7202d9dcdc4a7", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/house-safe-deletion/without-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "41f5f54195f8ff5686e7ba15e218a85b136b6f7bbb408c37e0b40f7548114ce0", - "trace_sha256": "66b1b7e522ccb372c3d3af521a0bfc8b81744f75a66ce8627b649a5dc3bd6e83", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/parse-live-authorization/with-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "7bcbe5fa7da739597bf06d228006c0204ca908f1e66bf496cdcbd6dc411a5973", - "final_files_sha256": { - "app.py": "36af109cb6c884d4bb732b5a2a52c22ef8bafa690de92eea0ca7ae726130e7b5", - "test_app.py": "6535bf7f9c905e800818dff35048d8b41f0b12029c9920ba3b4171c93ed55120" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/parse-live-authorization/without-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "497c1c8d6380b499cfc3f1fa79a70338fc552ca64de42f5c353e013856c5c80c", - "trace_sha256": "63ee118dd3daa9af38f46a6e52ad839649c5b9acb2c713a7839d3046e730886e", - "final_files_sha256": { - "app.py": "9408411850eaf423a8d730c4b5ad8cbb7717a9b7f2a9bd885a185b361ba6c7fb", - "test_app.py": "dc3513c0f26a55fdf0af0a4e95f8a59df81b16101080ee9859e54d2f2f699cce" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "fail", - "rationale": "Unchecked raw-string lacks validating normal construction. Live ownership checked every read. Missing downstream parsed-parameter annotation weakens explicit signature (source-only). Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/parse-repeated-boundary/with-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "fc3c8d9747f8cea8f20bfdae4c83e91095caf0220c454637c3b656847afefe50", - "final_files_sha256": { - "app.py": "5a4bdbd6526b6fd353a43fc156e7726197cbf916c55a88785724bc7be591b96a", - "test_app.py": "35e21bd490ed3dc6352807a9b54023aab407a374913597c082e1b32c53a2cf63" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/parse-repeated-boundary/without-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "e493ac7989cc5fca8e3562f858f7c631406103e82febb5f1dfa501a88462dc74", - "trace_sha256": "18177f3fbbc3a8f0faf550d6b59175a6e5c819b95712ed050b194c9547cb797a", - "final_files_sha256": { - "app.py": "4537d792fa8fbfccafc7a26af3c47f1e3026c239bc094c095d7c98fa06228eb9", - "test_app.py": "bd47bb38ef81384c91f43ab52da5f82cb507f60279bd514495373061460916f8" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "fail", - "rationale": "Unchecked NewType lacks validating normal construction." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/parse-single-check/with-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "parse-single-check", - "skill": "parse-dont-validate", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "542f6eb7fa96e0ee131239d3feb74bddb2836d2b3f9713367046db83a9fd5bc2", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "17f4b7cdbc7bc06da8f727c6c3dc573b40978bc02618ba25a788dc8c09ab76bf", - "trace_sha256": "767be82f759c43a6ee9204b17313f547fc51ae7feed4fb9d34f00c7ce62633ee", - "final_files_sha256": { - "app.py": "72b29675bcfb5b2496741f10248db2a1b4784c9ba65690f653f6d115776daa80", - "test_app.py": "977c5172ad1fedf62b1a733a1362fd9ec34943d0a1134e26878b073d493f61ad" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Simple range check; boundary tests passed; no domain abstraction/dependencies. 3 tests." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/parse-single-check/without-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "parse-single-check", - "skill": "parse-dont-validate", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "542f6eb7fa96e0ee131239d3feb74bddb2836d2b3f9713367046db83a9fd5bc2", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": {}, - "prompt_sha256": "b5b6cc846f4a67e8311784c1b2ba8f7e4a66c84bec775178ac1501993b8acf5e", - "trace_sha256": "60ed0971db3d01951e7228fb8e757cb821f1e8790b621de5e9d19e86bb74854f", - "final_files_sha256": { - "app.py": "72b29675bcfb5b2496741f10248db2a1b4784c9ba65690f653f6d115776daa80", - "test_app.py": "b1e1c262694945d0b3dbb7343e9891a50a68fb1e8c1c2069605fd366df72eec3" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Simple range check; boundary tests passed; no domain abstraction/dependencies. 2 tests. Red/green demonstrated." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/smell-data-ownership/with-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "smell-data-ownership", - "skill": "smell-to-refactoring", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "948efbc9ccb249d6e7c917c0185f63eb0198b95667a1ce7f2e49672fec149ec6", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "839aa82a0d6c6971dcdba8227e9da712efc9782a1ef03ba16af96ba662121d71" - }, - "prompt_sha256": "5e0901b72ad586a1545f3ff45af7bda8f9a315c2e0f92c01a7cc24c059814441", - "trace_sha256": "4bb8a580d8dd0975193fad4de6df9a2ec2b16699f98b7661a76575824a67ada0", - "final_files_sha256": { - "app.py": "890dda6b57b287658b3202481a3d3c0c3aa5ea67d1f526b4d27431e4d2bcd713", - "records.py": "ecc62f27f5e97ec96a2675178a14d9bc9d52b05f0de14724263106c7ff834194", - "reporting.py": "c17ea33ee3c9e0396c8dfb4ccedc5854af725a8d5f14c3391abc94f1b36898c5", - "test_app.py": "b388c403fcc31160032c31ef6f0508ae962400048f24519303233b222e316843", - "unrelated.py": "d3715afabd455b1899bc36cbbdedd5add077e1568033f02d649b15b2e95391d2" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "reporting.py:2-6 diagnosis supports subtotal_and_total() and public currency. Single-pass record arithmetic; reporting retains rounding. Baseline/intermediate tests green; 5 final tests cover rounding and defensive copying." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/smell-data-ownership/without-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "smell-data-ownership", - "skill": "smell-to-refactoring", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "948efbc9ccb249d6e7c917c0185f63eb0198b95667a1ce7f2e49672fec149ec6", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": {}, - "prompt_sha256": "9f27cf4582df38bdbe32fcdcf3609d71937caa3bb8db5fd16c0c1731d6ec039d", - "trace_sha256": "92bba613708f9897bbca38fa2c49c56eaa1d6e86349198083eab2cf73c920ea1", - "final_files_sha256": { - "app.py": "890dda6b57b287658b3202481a3d3c0c3aa5ea67d1f526b4d27431e4d2bcd713", - "records.py": "9664589b3665e877b3fa92c367be250755b6c072bb8d405fc74aa57bcc6ede39", - "reporting.py": "3be82cf0cc3585db0e08c23aedc4cf10e6bd6c6d543ca5e703374fec99d4ef23", - "test_app.py": "3763008f0912ef99b61c1b055b88e026c62e4118db278dcee9c986c98282815a", - "unrelated.py": "d3715afabd455b1899bc36cbbdedd5add077e1568033f02d649b15b2e95391d2" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "reporting.py:2-6 diagnosis supports amounts() and public currency. Single-pass record arithmetic; reporting retains rounding. Six tests pass including shipping-only, rounding, and defensive copying." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/smell-review-only/with-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "smell-review-only", - "skill": "smell-to-refactoring", - "mode": "with-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "3ef9bb7ed2987eebe1ea6b57f0e15431e44d15e2d48033072f010c8aa53bd1ca", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "839aa82a0d6c6971dcdba8227e9da712efc9782a1ef03ba16af96ba662121d71" - }, - "prompt_sha256": "61b74cfc68dc4dfd2706f40fa95784861ae023af6fec0a36282e69c5e8914c99", - "trace_sha256": "f16b6988ce825eda024ef8acef0a535aba22b92ff6e62e5bb0b1e4abab551479", - "final_files_sha256": { - "app.py": "2f0d550d13b5267ae891f4d1ed58dfc015795506c447c7db61ae0f160007a62d", - "test_app.py": "d0aa94ec100a15150f9d411947f3222367d7275bef8dd65c8307069aac3ae566" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "app.py:2,8 duplication finding recommends private extraction retaining both public wrappers. Both source files preserved; 2 tests pass with bytecode disabled. Failed rtk rewrite inspection commands recover with ordinary numbered reads." - }, - "final_file_regrade_pass": true - }, - { - "id": "expanded/r2/codex/smell-review-only/without-skill", - "stage": "expanded", - "round": "r2", - "host": "codex", - "case": "smell-review-only", - "skill": "smell-to-refactoring", - "mode": "without-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "with-skill", - "without-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "3ef9bb7ed2987eebe1ea6b57f0e15431e44d15e2d48033072f010c8aa53bd1ca", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": {}, - "prompt_sha256": "e15a05dec8cc686e160cb41f5c9f79ad1b7073dc0cc7ebf10a7ba8b665cece64", - "trace_sha256": "59752ec1c3613841588fa3f9a3de6a6a00a2a78432b66d49020dfc9ac68aa675", - "final_files_sha256": { - "app.py": "2f0d550d13b5267ae891f4d1ed58dfc015795506c447c7db61ae0f160007a62d", - "test_app.py": "d0aa94ec100a15150f9d411947f3222367d7275bef8dd65c8307069aac3ae566" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "app.py:2,8 duplication finding recommends shared helper preserving both public functions. Both source files preserved; 2 tests pass with -B. Secondary constant/documentation suggestions remain unapplied." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/claude/house-external-api/baseline-skill", - "stage": "revisions", - "round": "r1", - "host": "claude", - "case": "house-external-api", - "skill": "house-rules", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "a550e7cfd9a1c9152f8de6186d82cb9f027741051585e05f03edbffd846da7db", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "de7ef9407305899d18b8975d8f5e384a00f2a5ac569972c856fe8afacee6a6bb", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "7e0c896b515b96d281f13542911f72a740176cee8a59787a32e2328226fa9228", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "36bf39aef76951f1dd1e71b982ca846fce5d289179a25d015868ebeebd541bdb", - "trace_sha256": "bb3f388992102c7ff9df18a00fbbd0c6d3cdadb0d7b05b96f4f68a0faaab6e8a", - "final_files_sha256": { - "README.md": "d7fe671a55787a0929e77791b567746647d640c2a9788393aaa2d90a4327314e", - "app.py": "9a5b0a3b84a551277e565a50c30f02761cb165bfb58da9814b040913ddee78ed", - "test_app.py": "939a90b0ac4e0c732e72d67e3307e09600b82b157d7f08aca6e1b2c4ff03d6cc" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Greeting fixed; external API/test preserved; regression red/green, 2 tests. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/claude/house-external-api/candidate-skill", - "stage": "revisions", - "round": "r1", - "host": "claude", - "case": "house-external-api", - "skill": "house-rules", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "a550e7cfd9a1c9152f8de6186d82cb9f027741051585e05f03edbffd846da7db", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "1beaded53a1b45a826b52995e7f35e5739de0c49821fdc1168a56b9a1dbb817b", - "trace_sha256": "5d78a91d6ed836b435816fd74e6ee23356102ad9d09be8a062deee23f46135a4", - "final_files_sha256": { - "README.md": "d7fe671a55787a0929e77791b567746647d640c2a9788393aaa2d90a4327314e", - "app.py": "9a5b0a3b84a551277e565a50c30f02761cb165bfb58da9814b040913ddee78ed", - "test_app.py": "939a90b0ac4e0c732e72d67e3307e09600b82b157d7f08aca6e1b2c4ff03d6cc" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Greeting fixed; external API/test preserved; regression red/green, 2 tests. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/claude/house-safe-deletion/baseline-skill", - "stage": "revisions", - "round": "r1", - "host": "claude", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "de7ef9407305899d18b8975d8f5e384a00f2a5ac569972c856fe8afacee6a6bb", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "7e0c896b515b96d281f13542911f72a740176cee8a59787a32e2328226fa9228", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "61e684dc37f41be415c579d1e5dbbf3467a442c1d429ef9451b4a8b6a713e30c", - "trace_sha256": "2ca9387c0a42d82b97a17a34479e96b4d39113c2fed3c34cc3e3a844d2270335", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/claude/house-safe-deletion/candidate-skill", - "stage": "revisions", - "round": "r1", - "host": "claude", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "43f01238c6c372687038212ee0408f89c240cdbe09db44145e28be6e1349c2de", - "trace_sha256": "531c921d75154c07e3425fe55e38cf5018c4206c8a040cef12d5d3bdebf7df80", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/claude/parse-live-authorization/baseline-skill", - "stage": "revisions", - "round": "r1", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "684568cbd3487432e0969f0e2e7194f4bfec94427fd46315effd7515fd35df56", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "439736ccd8227a20f0862630543a69bd73b4929b03a385498e731719bccb01d3", - "trace_sha256": "33c6ff92cbe0254677bd7e10720c4846cead4c2e6079dfdfb863a97038071cac", - "final_files_sha256": { - "app.py": "6ef0ffa3f0ecd3c73ae6e3d5e314f934eb7753184591480998b5f2007644e232", - "test_app.py": "8a0e9af28e25de77b3c4fdddf462a26bd307089ad9fe31af99a3f5bf8f9b576a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read. Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/claude/parse-live-authorization/candidate-skill", - "stage": "revisions", - "round": "r1", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "1d7572a05c2264f9bf778abb675ea22c9fa8114a7385119c09a5ea41809153cd", - "final_files_sha256": { - "app.py": "73902b03f0a63d07854defbd031941fba40dddf90da165daff1c4b838248f373", - "test_app.py": "6df7e15d33e00e72331483a6e40ae35d61be3780d97a392f31d0bc52a2aba4a7" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "fail", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read. Missing downstream parsed-parameter annotation weakens explicit signature (source-only). Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/claude/parse-repeated-boundary/baseline-skill", - "stage": "revisions", - "round": "r1", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "684568cbd3487432e0969f0e2e7194f4bfec94427fd46315effd7515fd35df56", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "d46e5bc33acba32d0d23781206c6870581f119187e23325058755ff70cee4223", - "trace_sha256": "3f13bbc1c89eabdec8e0ce8a6f088c1943810290f48e8994710d33b46dc1f301", - "final_files_sha256": { - "app.py": "80b93e9bf2ed9b8d1a2e5a5fe12554c75b0a7e8bcc7fcc26b251a658219809ba", - "test_app.py": "98f3d66728b5377de315781a7380b3794ba7572f139bd0c4f2fc57c57c02a39b" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/claude/parse-repeated-boundary/candidate-skill", - "stage": "revisions", - "round": "r1", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "0bc5d6df23eb68c5d167a4ecf8e131dbb2f8834f99a3fbf32ec7b4590c66ef46", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "97e62a5a76e7de00aab68b77d2fdb5e42933b0b18efb03f06e5c3dbe3152862a", - "final_files_sha256": { - "app.py": "3611b27095f58e708af5fe056b2fa76b8b3fec772941c578ecaacfb3bb7bc0bd", - "test_app.py": "70e6b31ddae7ef69ccd7f01e3f07bfe85de31a3be97629df858f8e6261e4d5dc" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/codex/house-external-api/baseline-skill", - "stage": "revisions", - "round": "r1", - "host": "codex", - "case": "house-external-api", - "skill": "house-rules", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "a550e7cfd9a1c9152f8de6186d82cb9f027741051585e05f03edbffd846da7db", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "de7ef9407305899d18b8975d8f5e384a00f2a5ac569972c856fe8afacee6a6bb", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "7e0c896b515b96d281f13542911f72a740176cee8a59787a32e2328226fa9228", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "36bf39aef76951f1dd1e71b982ca846fce5d289179a25d015868ebeebd541bdb", - "trace_sha256": "12de03529b3f30363cc5f30582e0186b1dfda97a2ed86da215e798f6d052a7f5", - "final_files_sha256": { - "README.md": "d7fe671a55787a0929e77791b567746647d640c2a9788393aaa2d90a4327314e", - "app.py": "9a5b0a3b84a551277e565a50c30f02761cb165bfb58da9814b040913ddee78ed", - "test_app.py": "edef3c7970853f18b7a1ddfc2ae80e68711e741a192434d5e20fcafd48a5bb2c" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Greeting fixed; external API/test preserved; regression red/green, 2 tests." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/codex/house-external-api/candidate-skill", - "stage": "revisions", - "round": "r1", - "host": "codex", - "case": "house-external-api", - "skill": "house-rules", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "a550e7cfd9a1c9152f8de6186d82cb9f027741051585e05f03edbffd846da7db", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "1beaded53a1b45a826b52995e7f35e5739de0c49821fdc1168a56b9a1dbb817b", - "trace_sha256": "05524c15ea6e0c842ed2eb8a08ea5a088618d782a2a6e9f000066a4475608819", - "final_files_sha256": { - "README.md": "d7fe671a55787a0929e77791b567746647d640c2a9788393aaa2d90a4327314e", - "app.py": "9a5b0a3b84a551277e565a50c30f02761cb165bfb58da9814b040913ddee78ed", - "test_app.py": "edef3c7970853f18b7a1ddfc2ae80e68711e741a192434d5e20fcafd48a5bb2c" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Greeting fixed; external API/test preserved; regression red/green, 2 tests." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/codex/house-safe-deletion/baseline-skill", - "stage": "revisions", - "round": "r1", - "host": "codex", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "de7ef9407305899d18b8975d8f5e384a00f2a5ac569972c856fe8afacee6a6bb", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "7e0c896b515b96d281f13542911f72a740176cee8a59787a32e2328226fa9228", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "61e684dc37f41be415c579d1e5dbbf3467a442c1d429ef9451b4a8b6a713e30c", - "trace_sha256": "7318aac1411bb0065f578a470d2b8e9144b8444db4d1fa5b8b99834151b86c8e", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/codex/house-safe-deletion/candidate-skill", - "stage": "revisions", - "round": "r1", - "host": "codex", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "43f01238c6c372687038212ee0408f89c240cdbe09db44145e28be6e1349c2de", - "trace_sha256": "55371efa734e7ea8fc43835170e6e502baedae7c9229f1f2545c9da9fd6bdcb9", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/codex/parse-live-authorization/baseline-skill", - "stage": "revisions", - "round": "r1", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "684568cbd3487432e0969f0e2e7194f4bfec94427fd46315effd7515fd35df56", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "439736ccd8227a20f0862630543a69bd73b4929b03a385498e731719bccb01d3", - "trace_sha256": "7aa0b8a10e578d2501598b2b24fdf6a8a15d786eb22ab089affd89ddb89f6db2", - "final_files_sha256": { - "app.py": "c8a179eb6db57f49f6fbbd47603fc5afc86ef1bc6f38ca9ef8555a907557d5d8", - "test_app.py": "e7c1cd5a6542babba63be26c35b7f051a6ab8102b6a8addc14617f2fc3c0606b" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/codex/parse-live-authorization/candidate-skill", - "stage": "revisions", - "round": "r1", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "d5feba261e70deebef594e11e9d9e3a39818c1e07c6209ef73e7f0e078df03c6", - "final_files_sha256": { - "app.py": "f0290339c7d902d2f659e411554c3fb8c63cb22bc21e2f2135a6331d97b04815", - "test_app.py": "044115a7ccc3b7537bf3471b548f1c29ced641020ceff16a82ba2d5f8d86489c" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/codex/parse-repeated-boundary/baseline-skill", - "stage": "revisions", - "round": "r1", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "684568cbd3487432e0969f0e2e7194f4bfec94427fd46315effd7515fd35df56", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "d46e5bc33acba32d0d23781206c6870581f119187e23325058755ff70cee4223", - "trace_sha256": "6a291d7f9ddc0b69250ba1b6932037106b1e8263268d9889ef06e2592b1ae72e", - "final_files_sha256": { - "app.py": "019e4d3a79b93bc18c521714be28a81ff015978d501bc124c4396786a689bfff", - "test_app.py": "f14bc91372724592b477d6e345dc11ced5bf647cdab5920f4f8edcc066b6050a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r1/codex/parse-repeated-boundary/candidate-skill", - "stage": "revisions", - "round": "r1", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "e38a255c750eb13471c43ac0b0c5ac83165702c6d8d1744bc24f9f9df90a2f95", - "final_files_sha256": { - "app.py": "cd8e60f002a3afb3e9ab7eb27f271f8efb157368689e8769cf54023e7dc4b759", - "test_app.py": "3ffb83e2232de12aae61e31dca2eefc9fbe82a106d945815e511c81ef4b0dc39" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/claude/house-external-api/baseline-skill", - "stage": "revisions", - "round": "r2", - "host": "claude", - "case": "house-external-api", - "skill": "house-rules", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "a550e7cfd9a1c9152f8de6186d82cb9f027741051585e05f03edbffd846da7db", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "de7ef9407305899d18b8975d8f5e384a00f2a5ac569972c856fe8afacee6a6bb", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "7e0c896b515b96d281f13542911f72a740176cee8a59787a32e2328226fa9228", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "36bf39aef76951f1dd1e71b982ca846fce5d289179a25d015868ebeebd541bdb", - "trace_sha256": "5d4970d73c17f876500256733825003681c5431730a6a33cafd831c19a00236b", - "final_files_sha256": { - "README.md": "d7fe671a55787a0929e77791b567746647d640c2a9788393aaa2d90a4327314e", - "app.py": "9a5b0a3b84a551277e565a50c30f02761cb165bfb58da9814b040913ddee78ed", - "test_app.py": "939a90b0ac4e0c732e72d67e3307e09600b82b157d7f08aca6e1b2c4ff03d6cc" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Greeting fixed; external API/test preserved; regression red/green, 2 tests. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/claude/house-external-api/candidate-skill", - "stage": "revisions", - "round": "r2", - "host": "claude", - "case": "house-external-api", - "skill": "house-rules", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "a550e7cfd9a1c9152f8de6186d82cb9f027741051585e05f03edbffd846da7db", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "1beaded53a1b45a826b52995e7f35e5739de0c49821fdc1168a56b9a1dbb817b", - "trace_sha256": "05a35dd8032637fe8baed9b931ca7aad75e572936c1f2399b1ef8353c0e876ff", - "final_files_sha256": { - "README.md": "d7fe671a55787a0929e77791b567746647d640c2a9788393aaa2d90a4327314e", - "app.py": "9a5b0a3b84a551277e565a50c30f02761cb165bfb58da9814b040913ddee78ed", - "test_app.py": "848903201a9a38eed1c3da7b03cf1053b4d16362d5067eb01fcfe22361346a84" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Greeting fixed; external API/test preserved; regression red/green, 2 tests. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/claude/house-safe-deletion/baseline-skill", - "stage": "revisions", - "round": "r2", - "host": "claude", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "de7ef9407305899d18b8975d8f5e384a00f2a5ac569972c856fe8afacee6a6bb", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "7e0c896b515b96d281f13542911f72a740176cee8a59787a32e2328226fa9228", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "61e684dc37f41be415c579d1e5dbbf3467a442c1d429ef9451b4a8b6a713e30c", - "trace_sha256": "e5a4839ec7117aba95646d31f742f273a176eea976689ded6b3e42cea949d726", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/claude/house-safe-deletion/candidate-skill", - "stage": "revisions", - "round": "r2", - "host": "claude", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "43f01238c6c372687038212ee0408f89c240cdbe09db44145e28be6e1349c2de", - "trace_sha256": "2ba1e328f09c4f5f8d0143945697c8331aad516c4b89f32bfadbf09c1e58a36d", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed. 1 shell-syntax denial(s), authorized recovery." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/claude/parse-live-authorization/baseline-skill", - "stage": "revisions", - "round": "r2", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "684568cbd3487432e0969f0e2e7194f4bfec94427fd46315effd7515fd35df56", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "439736ccd8227a20f0862630543a69bd73b4929b03a385498e731719bccb01d3", - "trace_sha256": "9c4d6d155046303b95c00892e2076364634c7909e2ccbf6307db0d4e0e16b6ac", - "final_files_sha256": { - "app.py": "6ef0ffa3f0ecd3c73ae6e3d5e314f934eb7753184591480998b5f2007644e232", - "test_app.py": "d961b14a1d62ada52fd5cb00cdc6a25ea05c82a47345ae072d87acb11d791fe1" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read. Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/claude/parse-live-authorization/candidate-skill", - "stage": "revisions", - "round": "r2", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "381ec6e8010e8c6892f2f9e836f65a7ab4e8a707496710e76ec5f60ad3efc770", - "final_files_sha256": { - "app.py": "a16e7b8395564169fcd0ad28714b13fd53c5e7ce3e75ceaa38be9e3bedcca176", - "test_app.py": "08c3984acafb45202ed09df9554dc8f71bc3528a695cb4b748e212388dd9f968" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read. Executed missing-account/None-user probe returns an account: inherited authorization gap, not ownership caching." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/claude/parse-repeated-boundary/baseline-skill", - "stage": "revisions", - "round": "r2", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "684568cbd3487432e0969f0e2e7194f4bfec94427fd46315effd7515fd35df56", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "d46e5bc33acba32d0d23781206c6870581f119187e23325058755ff70cee4223", - "trace_sha256": "0d7dc9ed719f5bd3087e709b10b9ae36f7492a6685221089cdbcbb3e47a80304", - "final_files_sha256": { - "app.py": "bf30d5153d70326dafa50edd60e1e61e11b1318473a61454cae1bb0e1c64c82c", - "test_app.py": "8ca3d6479b16a192fa51b2a9b8a0558ad64b7548ff9cb73b5c52334be5c56d0a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Assigning an unused .value attribute succeeds but does not alter the int payload: subsequent address remains host:80." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/claude/parse-repeated-boundary/candidate-skill", - "stage": "revisions", - "round": "r2", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "3d2d724c43db31b72788ea552cf40e9af3c40e03022926d8d62d99ba98abeb2f", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "c7fcd434d6927e43d92f6ce8cdce9ab1a1871c18a6857ff23cbdcdd47c5df63d", - "final_files_sha256": { - "app.py": "29840abc81f84096f98ed4df9e52c94d6aa1ca562d6dea350d70dba2d9966721", - "test_app.py": "8d69ea03463d6cb974e49010c007c1e2227b9fee280c0b17fe852c86ff2d130d" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/codex/house-external-api/baseline-skill", - "stage": "revisions", - "round": "r2", - "host": "codex", - "case": "house-external-api", - "skill": "house-rules", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "a550e7cfd9a1c9152f8de6186d82cb9f027741051585e05f03edbffd846da7db", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "de7ef9407305899d18b8975d8f5e384a00f2a5ac569972c856fe8afacee6a6bb", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "7e0c896b515b96d281f13542911f72a740176cee8a59787a32e2328226fa9228", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "36bf39aef76951f1dd1e71b982ca846fce5d289179a25d015868ebeebd541bdb", - "trace_sha256": "be2e3ea97e06e8be51d1d9ab4e723dbab3a3d60d12df817316704fbe2a72e7fb", - "final_files_sha256": { - "README.md": "d7fe671a55787a0929e77791b567746647d640c2a9788393aaa2d90a4327314e", - "app.py": "9a5b0a3b84a551277e565a50c30f02761cb165bfb58da9814b040913ddee78ed", - "test_app.py": "edef3c7970853f18b7a1ddfc2ae80e68711e741a192434d5e20fcafd48a5bb2c" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Greeting fixed; external API/test preserved; regression red/green, 2 tests." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/codex/house-external-api/candidate-skill", - "stage": "revisions", - "round": "r2", - "host": "codex", - "case": "house-external-api", - "skill": "house-rules", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "a550e7cfd9a1c9152f8de6186d82cb9f027741051585e05f03edbffd846da7db", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "1beaded53a1b45a826b52995e7f35e5739de0c49821fdc1168a56b9a1dbb817b", - "trace_sha256": "c915a406949cca2225c522ed0980b6ba46beffc14eaca19edba0c28bd535d071", - "final_files_sha256": { - "README.md": "d7fe671a55787a0929e77791b567746647d640c2a9788393aaa2d90a4327314e", - "app.py": "9a5b0a3b84a551277e565a50c30f02761cb165bfb58da9814b040913ddee78ed", - "test_app.py": "edef3c7970853f18b7a1ddfc2ae80e68711e741a192434d5e20fcafd48a5bb2c" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Greeting fixed; external API/test preserved; regression red/green, 2 tests." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/codex/house-safe-deletion/baseline-skill", - "stage": "revisions", - "round": "r2", - "host": "codex", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "de7ef9407305899d18b8975d8f5e384a00f2a5ac569972c856fe8afacee6a6bb", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "7e0c896b515b96d281f13542911f72a740176cee8a59787a32e2328226fa9228", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "61e684dc37f41be415c579d1e5dbbf3467a442c1d429ef9451b4a8b6a713e30c", - "trace_sha256": "a6de858f99752c36458f77bea424f280e7b74dc78cd6a9278c26c9ef8781242e", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/codex/house-safe-deletion/candidate-skill", - "stage": "revisions", - "round": "r2", - "host": "codex", - "case": "house-safe-deletion", - "skill": "house-rules", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "ef9582d6d062f464dc442ea8dc8de7cb9da702dc6fbaf541a164deeeedca9be9", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "b36be4fa18a3b04175c620314371755446c8cc24959aa397ecaa68758eccacde", - "references/go.md": "a9197122c29ae58c079f36b61ef6a45d6421a49faab01f0dd5ba8384557aefc0", - "references/python.md": "cdb6ac3a543de3e89350bc892c9b5359fb2b3b9830c48a8d70f0b7155b58cd41", - "references/rust.md": "ef99954bb7c0d6815dd2e68df79d937e70b7a043e650a12a4549844793853311", - "references/typescript.md": "69dfa731dbc4fe243d67f2a60244df1269b0fb00cf27ebde9458466cdc6af7db" - }, - "prompt_sha256": "43f01238c6c372687038212ee0408f89c240cdbe09db44145e28be6e1349c2de", - "trace_sha256": "2c9131ca7339775fec04a724022e526c55493d6c1a444e49429b657e5b66199c", - "final_files_sha256": { - "README.md": "ea7fb988678cde9fb29c4f5c02468be176ad0cfd182b04d8925a4964d1a6d015", - "app.py": "0863b5539f061908220bb38c6765f3d9aadaab44fdc75d6dc4586f55f4a01253", - "test_app.py": "ddc8ee49fadfa20ad6f325a912abf9deed05c8ce8b2f3aa676424876a7bd8b1f", - "unrelated.py": "b7da48d48d333d89d4e8acb3eadec3992f52bed1fa4e9e231898875f4f5aec8a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Authorized helper/test deleted; API/why/tests/docs/unrelated preserved; 2 tests passed." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/codex/parse-live-authorization/baseline-skill", - "stage": "revisions", - "round": "r2", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "684568cbd3487432e0969f0e2e7194f4bfec94427fd46315effd7515fd35df56", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "439736ccd8227a20f0862630543a69bd73b4929b03a385498e731719bccb01d3", - "trace_sha256": "1e482dfc90861dac71603269af135f8521b6273cea3f979457c1af8a9c05b0f1", - "final_files_sha256": { - "app.py": "36af109cb6c884d4bb732b5a2a52c22ef8bafa690de92eea0ca7ae726130e7b5", - "test_app.py": "e0fecaf2eee129ea82dec58112f710548c680ee800f819f7bf9e1bf00d15a35a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/codex/parse-live-authorization/candidate-skill", - "stage": "revisions", - "round": "r2", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "e5c7c06dd48f6f9d20205a98c92ef6807e3eed7620ae5ae219ad90f7a849924f", - "final_files_sha256": { - "app.py": "74a435adb3c0be2b0f3b70cef9f048ac4141e1b4982d694c9ad38919dc2af101", - "test_app.py": "1d80836b2cc4647095dc3beb852e7442475ac014417bc1a953ba1844aa0a89d8" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Live ownership checked every read." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/codex/parse-repeated-boundary/baseline-skill", - "stage": "revisions", - "round": "r2", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "684568cbd3487432e0969f0e2e7194f4bfec94427fd46315effd7515fd35df56", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "d46e5bc33acba32d0d23781206c6870581f119187e23325058755ff70cee4223", - "trace_sha256": "1b5c564fd42e3fca6b2bae47e968a51fc6d74a0a923210f0a238d589b07bce15", - "final_files_sha256": { - "app.py": "019e4d3a79b93bc18c521714be28a81ff015978d501bc124c4396786a689bfff", - "test_app.py": "7dd38304112293fff5de93140727155308629a3ba6e3173bd8e384a72bcd13c6" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized." - }, - "final_file_regrade_pass": true - }, - { - "id": "revisions/r2/codex/parse-repeated-boundary/candidate-skill", - "stage": "revisions", - "round": "r2", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "0c1cbda55880a83c49f73d6f8c8133a2b54db501682de4dd35184fca56edcc57", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "348442eac375b7202462e5b64dbb27a7b2dd20d56e804d826808b9659c22db31", - "final_files_sha256": { - "app.py": "952b41196f279a6f1b2cf9b0887451f91bfd336de7fe445bbc9a916b6e134bed", - "test_app.py": "bc40e72fba406abb2b285c0e6307d10d37cce86a1532aeb4a04fe38ec380f136" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Normal constructor validates; ordinary assignment cannot corrupt effective state; stable invariant centralized. Assigning an unused .value attribute succeeds but does not alter the int payload: subsequent address remains host:80." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r1/claude/parse-live-authorization/baseline-skill", - "stage": "signatures", - "round": "r1", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "e2c1e453c31a515d42b535699f216dc47a9e6dc550de90c2cc85d5fe42fc3bff", - "final_files_sha256": { - "app.py": "3a10e5f52fe0f48586762fbf6b6e5652abf19dac2f4c7c2bea162d719e38c3cd", - "test_app.py": "ac3e36987f6e4bf823ab1649ed9d8c64e7e84190a03a6843c45bd2984e09763a" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated frozen AccountId; named downstream signature; structural check only at construction; live owners consulted for each read." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r1/claude/parse-live-authorization/candidate-skill", - "stage": "signatures", - "round": "r1", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "05cac1a064cd5e6b4ba0825d32db042e739d89323371b21ac60ed0f8a509f972", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "5e826b5c611fc2da7023e43eb043924e29a65d27cabb281a13f9a856fa46a60c", - "trace_sha256": "d2c3dc0a628435ca34d6a3129ab3983c7f38d9657f0a858400cd1f6a6293ac75", - "final_files_sha256": { - "app.py": "df250e4ffe81c17c79422b5e4b7e5f2e6dace71ed1baa54032f682b27572914c", - "test_app.py": "ab0cba667d36b91c1e4259ea9f78b7a48b0a4e8d546f2f66d6405e5c583310c1" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated frozen AccountId; named downstream signature; structural check only at construction; live owners consulted for each read." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r1/claude/parse-repeated-boundary/baseline-skill", - "stage": "signatures", - "round": "r1", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "62f093ffe2573ef122c8665554804864020e7ac6a62f977c6089491c7356d4c6", - "final_files_sha256": { - "app.py": "dc068e70c9d1ca9067be5d18fb6452a605562d075895e5e55db41c52b5a03c42", - "test_app.py": "6947cee8565173e18903bf4a9c17c73130affc6b30993f7e239e52818ebc967f" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated reusable Port constructed at both boundaries; named downstream signature; stable range check only at construction; coercion and invalid-input behavior retained." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r1/claude/parse-repeated-boundary/candidate-skill", - "stage": "signatures", - "round": "r1", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "05cac1a064cd5e6b4ba0825d32db042e739d89323371b21ac60ed0f8a509f972", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "2993cb5d1cf8777d17ab9011112a86f18898f59c0b9458654eecf68686d53c75", - "trace_sha256": "584ef86ef363841fea15a14c3acc3a389dccbaf51b30a51f728814cf580b0700", - "final_files_sha256": { - "app.py": "91dba89f5df2d76c5697280dd65ff75da7d3416433aeaf877a008d5399714f5b", - "test_app.py": "78f98064acbef2ae85346a8940752583ab33127b9a40e0d25f286e8651c2c3e9" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated reusable Port constructed at both boundaries; named downstream signature; stable range check only at construction; coercion and invalid-input behavior retained." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r1/codex/parse-live-authorization/baseline-skill", - "stage": "signatures", - "round": "r1", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "cabd7282f2fe195f8654917e81941c070c13b160caf5fe4e7a28da910882a3d8", - "final_files_sha256": { - "app.py": "cfc495f4c9a6fba815049f7b5fa023918f37c836217f259612b76ea41354b0cd", - "test_app.py": "a55542379cd353dddd9c4efa68d1f5c5f0f71f0efc913148f100f70e2d394a51" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated frozen AccountId; named downstream signature; structural check only at construction; live owners consulted for each read." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r1/codex/parse-live-authorization/candidate-skill", - "stage": "signatures", - "round": "r1", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "05cac1a064cd5e6b4ba0825d32db042e739d89323371b21ac60ed0f8a509f972", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "5e826b5c611fc2da7023e43eb043924e29a65d27cabb281a13f9a856fa46a60c", - "trace_sha256": "98de99365f5cef9a45d320e42ef4178c5d246f760cbc90d7db81bd77190a3dcd", - "final_files_sha256": { - "app.py": "e648d11edc7dc304379cb906fb04c06e0efaa4241d6112d1bde1a9b3fbfac5f1", - "test_app.py": "5d6be7fecd62e258fce889c1d7852260b25f81f0f47947ec490ebcddab9d07cb" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated frozen AccountId; named downstream signature; structural check only at construction; live owners consulted for each read." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r1/codex/parse-repeated-boundary/baseline-skill", - "stage": "signatures", - "round": "r1", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "ccd927787ecea68d1be408e08f45717052556b9305090520458ef03830f1ae3a", - "final_files_sha256": { - "app.py": "019e4d3a79b93bc18c521714be28a81ff015978d501bc124c4396786a689bfff", - "test_app.py": "aed44d9635e3d27d57114277a9be198fd939f20d1a598729cf61d6ed46037503" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated reusable Port constructed at both boundaries; named downstream signature; stable range check only at construction; coercion and invalid-input behavior retained." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r1/codex/parse-repeated-boundary/candidate-skill", - "stage": "signatures", - "round": "r1", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "baseline-skill", - "candidate-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "05cac1a064cd5e6b4ba0825d32db042e739d89323371b21ac60ed0f8a509f972", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "2993cb5d1cf8777d17ab9011112a86f18898f59c0b9458654eecf68686d53c75", - "trace_sha256": "deb62db292cea23849ed4cb222272deb75fcc0cb19c3a7918682ce7178966670", - "final_files_sha256": { - "app.py": "1a08911f3ca42782a169c9cc4b31ebba967ebcd7e23c13a5533ba3db53c2002d", - "test_app.py": "21948e5d86c5b8a3c1c34f23024abf82b3ae760d28362ed72ee562f2f7595a3d" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated reusable Port constructed at both boundaries; named downstream signature; stable range check only at construction; coercion and invalid-input behavior retained." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r2/claude/parse-live-authorization/baseline-skill", - "stage": "signatures", - "round": "r2", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "1d8685423a39388326b045e78fe6c7875ef51294d2aa23f7b99c7abb99e64495", - "final_files_sha256": { - "app.py": "2ffa474a2ff72e8f3d0c92dfd8489cc54a2b265574dc41900fb3899a1a519713", - "test_app.py": "a6aad28a10d5373e25f228a12e3bf70271c4b83ff548cfb597cd7dbb025710a3" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated frozen AccountId; named downstream signature; structural check only at construction; live owners consulted for each read. Native tests omit mutation regression coverage; independent mutation probes pass." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r2/claude/parse-live-authorization/candidate-skill", - "stage": "signatures", - "round": "r2", - "host": "claude", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "05cac1a064cd5e6b4ba0825d32db042e739d89323371b21ac60ed0f8a509f972", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "5e826b5c611fc2da7023e43eb043924e29a65d27cabb281a13f9a856fa46a60c", - "trace_sha256": "44dd26b49cf0d9666c3a13f6c3bcedf24623b2f8ceef4bdb9a7a1f3a6978e8ee", - "final_files_sha256": { - "app.py": "40a200cd9cb89b087b8f0ea435735de80cc58f1ce79d9c210b7d15ddfd8c08b3", - "test_app.py": "17f64feba4da928281abbb10ae3b6f2d81dd88ca893dd994a6fafb5cb022a1ca" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated frozen AccountId; named downstream signature; structural check only at construction; live owners consulted for each read." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r2/claude/parse-repeated-boundary/baseline-skill", - "stage": "signatures", - "round": "r2", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "44e15c9e45a82086367ba61077b454219569dc3edee1621691941af5e4e34948", - "final_files_sha256": { - "app.py": "347982c8ebdddda69cd430cb962ba14e2d343cb71d11f62e8b06ef68479c7184", - "test_app.py": "5e2fad59725753f42d6674e022b525a16e6d0f75374318a66b61f7a7292d179c" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated reusable Port constructed at both boundaries; named downstream signature; stable range check only at construction; coercion and invalid-input behavior retained." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r2/claude/parse-repeated-boundary/candidate-skill", - "stage": "signatures", - "round": "r2", - "host": "claude", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "claude-sonnet-5-5", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "05cac1a064cd5e6b4ba0825d32db042e739d89323371b21ac60ed0f8a509f972", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "2993cb5d1cf8777d17ab9011112a86f18898f59c0b9458654eecf68686d53c75", - "trace_sha256": "584d884b0f6712bd5cb64cf60836d8013cd0dd013cf69dd429b9b56f9ff9d6ab", - "final_files_sha256": { - "app.py": "fe6b838abef4287400e6d4c92c5259c74c2a941d55bcc36f0e30d7246a329ed0", - "test_app.py": "05b4384e264d5f9cc77c64fc78a4f1e49c7362fdceb0d1b1a89e66729148e76c" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated reusable Port constructed at both boundaries; named downstream signature; stable range check only at construction; coercion and invalid-input behavior retained." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r2/codex/parse-live-authorization/baseline-skill", - "stage": "signatures", - "round": "r2", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "9838dd036840480422bd78adf09a11ea990341eddad042eb6785e6f9928dfc2e", - "trace_sha256": "1882818e2ca57278550e25b8c53df0efbfee73e4849027ad3c35bd140428d576", - "final_files_sha256": { - "app.py": "a56d1dcc1746d921f7ebf7489eb9e9a6894e93c6e2c64e7b37772c07b4943aec", - "test_app.py": "c7a4b9693de26eaa6f5e9980225dd6012b3584111fca8848439e4684ec3f343c" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated frozen AccountId; named downstream signature; structural check only at construction; live owners consulted for each read. Also denies missing accounts for None user, unlike its candidate." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r2/codex/parse-live-authorization/candidate-skill", - "stage": "signatures", - "round": "r2", - "host": "codex", - "case": "parse-live-authorization", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "f8f663cc336d894985fd22986fef81e58abbe96d42405bae200199decd9c7365", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "05cac1a064cd5e6b4ba0825d32db042e739d89323371b21ac60ed0f8a509f972", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "5e826b5c611fc2da7023e43eb043924e29a65d27cabb281a13f9a856fa46a60c", - "trace_sha256": "2fff55039e3156758214dd679b57cb73c23b054d609dabf2b290f85bedea85f3", - "final_files_sha256": { - "app.py": "d3f540ad0e9cdf6574ff1a8cfee8772198affe1be630de9becf4414949234a0d", - "test_app.py": "dad0da8daeb0602e6022505b091757866687dd69c3503843012377905b6c7654" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated frozen AccountId; named downstream signature; structural check only at construction; live owners consulted for each read." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r2/codex/parse-repeated-boundary/baseline-skill", - "stage": "signatures", - "round": "r2", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "baseline-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "49f17b0a9154e8f182e1578e08ed869fcab6fdae436d670a0ff7a296d72526e7", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "a0abb6e64c5b937c79c91d7a86dc7b6f1b8623b21b9195220141e1dce20f6101", - "trace_sha256": "fcfa963d44eb642daeb7ecb358e7895706f48f5b17e00d6eb91f5c832859b35f", - "final_files_sha256": { - "app.py": "75586eda09c54f75a8efa39894acff083090fe22aee9ab2cda4c8bc7ae59e8ef", - "test_app.py": "f8c2f8b849cdc25d58adb3550850c131485034523f0c92e8a6ccbd9225b32992" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated reusable Port constructed at both boundaries; named downstream signature; stable range check only at construction; coercion and invalid-input behavior retained." - }, - "final_file_regrade_pass": true - }, - { - "id": "signatures/r2/codex/parse-repeated-boundary/candidate-skill", - "stage": "signatures", - "round": "r2", - "host": "codex", - "case": "parse-repeated-boundary", - "skill": "parse-dont-validate", - "mode": "candidate-skill", - "requested_model": "gpt-6.2-sol", - "pair_order": [ - "candidate-skill", - "baseline-skill" - ], - "mechanical_pass": true, - "completed": true, - "fixture_sha256": "30ec8baf1338fd52035b8ad8dc25fe16dd151f5faa0be20c176b800eed22693b", - "runner_sha256": "aaf03ab364318cfe0a98196fefd9c05f7c6149da2b2d0f891397e11bdcebb50e", - "skill_sha256": { - "SKILL.md": "05cac1a064cd5e6b4ba0825d32db042e739d89323371b21ac60ed0f8a509f972", - "references/rust.md": "fe5de376d0035903f1b9d48b136cc228fb44b3b2a194d62448acca696aa1c1ed" - }, - "prompt_sha256": "2993cb5d1cf8777d17ab9011112a86f18898f59c0b9458654eecf68686d53c75", - "trace_sha256": "a33cba2dde2b9b45d6a1c3c597ff35c733c5619aad88fdde321f68d5404178be", - "final_files_sha256": { - "app.py": "f42eb347609cb4702709af6cf7a9521a707f98a75c0d7677a3f27e9b2c60916b", - "test_app.py": "64a732c6b76960955ec9a13e95d29d4f04c5c5abb4f36b05c89e2de3bfc05b62" - }, - "commit_command_candidate_count": 0, - "manual_review": { - "verdict": "pass", - "rationale": "Validated reusable Port constructed at both boundaries; named downstream signature; stable range check only at construction; coercion and invalid-input behavior retained." - }, - "final_file_regrade_pass": true - } - ] -} diff --git a/evals/craft/run.py b/evals/craft/run.py deleted file mode 100644 index 4c879ef..0000000 --- a/evals/craft/run.py +++ /dev/null @@ -1,473 +0,0 @@ -import argparse -import difflib -import hashlib -import json -import os -from pathlib import Path -import re -import shutil -import signal -import stat -import subprocess -import sys -import sysconfig -import tempfile -import time - -from cases import CASES, files_for - - -def command(args, cwd, timeout=30, *, env=None): - if env is None: - env = {key: value for key, value in os.environ.items() if not key.startswith("GIT_")} - with subprocess.Popen( - args, cwd=cwd, env=env, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - text=True, encoding="utf-8", errors="replace", start_new_session=True, - ) as process: - try: - stdout, stderr = process.communicate(timeout=timeout) - except subprocess.TimeoutExpired: - os.killpg(process.pid, signal.SIGKILL) - stdout, stderr = process.communicate() - raise subprocess.TimeoutExpired(args, timeout, output=stdout, stderr=stderr) - return subprocess.CompletedProcess(args, process.returncode, stdout, stderr) - - -def git_command(args, cwd): - env = { - "PATH": os.environ.get("PATH", os.defpath), - "GIT_CONFIG_GLOBAL": os.devnull, - "GIT_CONFIG_NOSYSTEM": "1", - "GIT_TEMPLATE_DIR": "", - "GIT_TERMINAL_PROMPT": "0", - } - settings = { - "core.hooksPath": os.devnull, - "commit.gpgSign": "false", - "tag.gpgSign": "false", - "gc.auto": "0", - "maintenance.auto": "false", - "credential.helper": "", - } - env["GIT_CONFIG_COUNT"] = str(len(settings)) - for index, (key, value) in enumerate(settings.items()): - env[f"GIT_CONFIG_KEY_{index}"] = key - env[f"GIT_CONFIG_VALUE_{index}"] = value - return command(args, cwd, env=env) - - -def snapshot(repo, rejected=None): - files = {} - if not stat.S_ISDIR(repo.lstat().st_mode): - if rejected is None: - raise ValueError("Unsafe fixture root") - rejected.append(".") - return files - pending = {repo} - - def traversal_error(error): - if rejected is None: - raise error - # fwalk open errors carry only a basename; reject every pending match. - paths = [path for path in pending if str(path) == error.filename or path.name == error.filename] - rejected.extend([str(path.relative_to(repo)) for path in paths] or ["."]) - - walk = os.fwalk(repo, follow_symlinks=False, onerror=traversal_error) - while True: - try: - directory, directories, filenames, directory_fd = next(walk) - except StopIteration: - break - except OSError as error: - traversal_error(error) - break - pending.discard(Path(directory)) - for name in directories[:] + filenames: - path = Path(directory) / name - relative = str(path.relative_to(repo)) - try: - info = os.stat(name, dir_fd=directory_fd, follow_symlinks=False) - except FileNotFoundError: - continue - except OSError: - if rejected is None: - raise - rejected.append(relative) - if name in directories: - directories.remove(name) - continue - mode = info.st_mode - if stat.S_ISLNK(mode) or not (stat.S_ISREG(mode) or stat.S_ISDIR(mode)) or (stat.S_ISREG(mode) and info.st_nlink != 1) or (relative == ".git" and not stat.S_ISDIR(mode)): - if rejected is None: - raise ValueError(f"Unsafe fixture file: {relative}") - rejected.append(relative) - if name in directories: - directories.remove(name) - elif name in directories: - if name == "__pycache__" and ".git" not in path.relative_to(repo).parts: - directories.remove(name) - else: - pending.add(path) - elif not {".git", "__pycache__"}.intersection(path.relative_to(repo).parts): - # O_NOFOLLOW also closes the lstat/open symlink replacement window. - try: - with os.fdopen(os.open(name, os.O_RDONLY | os.O_NOFOLLOW | os.O_NONBLOCK, dir_fd=directory_fd), "rb") as source: - opened = os.fstat(source.fileno()) - if not stat.S_ISREG(opened.st_mode) or opened.st_nlink != 1: - raise ValueError(f"Unsafe fixture file: {relative}") - files[relative] = source.read() - except (OSError, ValueError): - if rejected is None: - raise - rejected.append(relative) - return files - - -SUITE_COMPLETED = "CRAFT_TRUSTED_SUITE_COMPLETED" - - -def sandbox_tests(work, cleanup_errors=None): - if cleanup_errors is None: - cleanup_errors = [] - env = {"PATH": "/usr/bin:/bin", "HOME": str(work), "TMPDIR": str(work), "LANG": "C.UTF-8"} - # Completion evidence for interrupted suites, not adversarial in-process attestation. - runner = ( - "import sys, unittest; sys.path.insert(0, '.'); " - "program = unittest.main(module=None, argv=['unittest', 'test_app', 'test_acceptance'], exit=False); " - f"print({SUITE_COMPLETED!r}, flush=True); " - "sys.exit(not (program.result.wasSuccessful() and program.result.testsRun > 0))" - ) - python_args = ["-I", "-S", "-B", "-c", runner] - if sys.platform == "darwin" and Path("/usr/bin/sandbox-exec").is_file(): - runtime = Path(sys.base_prefix).resolve() - readable = ["/usr/lib", str(runtime / "lib"), str(Path(sys.executable).resolve())] - framework = sysconfig.get_config_var("PYTHONFRAMEWORK") - if framework: - readable.append(str(runtime / framework)) - profile = "\n".join([ - "(version 1)", "(deny default)", - "(allow process-exec file-read-metadata)", - "(allow file-read* " + " ".join(f"(subpath {json.dumps(path)})" for path in readable) + ")", - f"(deny file-read* (subpath {json.dumps(str(runtime / 'lib' / ('python' + str(sys.version_info.major) + '.' + str(sys.version_info.minor)) / 'site-packages'))}))", - '(allow file-read* (literal "/"))', - '(allow file-read* file-write* (literal "/dev/null") (literal "/dev/urandom"))', - f"(allow file-read* file-write* (subpath {json.dumps(str(work.resolve()))}))", - ]) - return command(["/usr/bin/sandbox-exec", "-p", profile, str(Path(sys.executable).resolve()), *python_args], work, env=env) - if sys.platform.startswith("linux") and shutil.which("docker"): - docker = shutil.which("docker") - container = "craft-grade-" + work.name - try: - return command([ - docker, "run", "--rm", "--pull=never", "--name", container, - "--network=none", "--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges", - "--pids-limit=64", "--memory=512m", "--cpus=1", - "--user", f"{os.getuid()}:{os.getgid()}", - "--mount", f"type=bind,source={work.resolve()},target=/grade", - "--workdir=/grade", "--env=HOME=/grade", "--env=TMPDIR=/grade", - "python:3.12-slim", "python3", *python_args, - ], work, env=env) - finally: - try: - cleanup = command([docker, "rm", "-f", container], work, env=env) - if cleanup.returncode and not any(line.endswith(f"No such container: {container}") for line in cleanup.stderr.splitlines()): - cleanup_errors.append({"container": container, "error": f"docker rm exited {cleanup.returncode}: {cleanup.stdout}{cleanup.stderr}"}) - except (OSError, subprocess.TimeoutExpired) as error: - cleanup_errors.append({"container": container, "error": str(error)}) - raise RuntimeError("Grading sandbox unavailable: requires macOS sandbox-exec or Linux Docker with local python:3.12-slim image") - - -def prepare(root, case): - repo = root / "repo" - repo.mkdir(parents=True) - for name, text in files_for(case).items(): - path = repo / name - path.parent.mkdir(parents=True, exist_ok=True) - path.write_text(text) - for args in ( - ["git", "init", "-q", "-b", "main"], - ["git", "config", "user.name", "Fixture"], - ["git", "config", "user.email", "fixture@example.test"], - ["git", "add", "."], - ["git", "commit", "-qm", "fixture"], - ): - result = git_command(args, repo) - if result.returncode: - raise RuntimeError(result.stderr) - return repo - - -def skill_snapshot(skills_root, name): - directory = skills_root / name - paths = [directory / "SKILL.md", *sorted((directory / "references").glob("*.md"))] - return {str(path.relative_to(directory)): path.read_text() for path in paths} - - -def make_prompt(case, skill_files=None): - parts = [ - "Work only in this disposable fixture repository. Do not access other repositories, " - "external services, or user configuration. There is no remote. " - "Use python3 -m unittest to run tests. Complete the requested task and report what you verified." - ] - if skill_files: - parts.append("Apply the following skill and its reference material to the task:") - parts.extend(f"\n{text}\n" for name, text in skill_files.items()) - parts.append(case.prompt) - return "\n\n".join(parts) - - -def host_command(host, model, prompt): - if host == "claude": - args = [ - "claude", "-p", "--safe-mode", "--no-session-persistence", - "--output-format", "stream-json", "--verbose", "--permission-mode", "acceptEdits", - "--tools", "Read,Edit,Write,Bash", - "--allowedTools", "Read", "Edit", "Write", - "Bash(python3 -m unittest*)", "Bash(git diff*)", "Bash(git status*)", "Bash(ls*)", - ] - else: - args = [ - "codex", "--ask-for-approval", "never", "exec", "--ignore-user-config", - "--ignore-rules", "--ephemeral", "--sandbox", "workspace-write", "--json", - ] - if model: - args.extend(["--model", model]) - return [*args, "--", prompt] - - -def grade(repo, case, before, head): - rejected = [] - after = snapshot(repo, rejected) - candidates = set(after) - if "." not in rejected: - with os.scandir(repo) as entries: - candidates.update(entry.name + "/" for entry in entries if entry.is_dir(follow_symlinks=False)) - conflicts = sorted(name for name in candidates if any( - name.split('/')[0] == module or (name.split('/')[0].startswith(module + '.') and name != module + '.py') - for module in ("test_app", "test_acceptance") - )) - changed = sorted(name for name in before.keys() | after.keys() if before.get(name) != after.get(name)) - checks = { - "fixture_files_safe": not rejected, - "trusted_test_artifacts_unambiguous": not conflicts, - "protected_files_preserved": all(after.get(name) == before[name] for name in case.protected), - "review_only_preserved": not case.read_only or not changed, - "no_commits": False, - } - grade_timeout = None - cleanup_errors = [] - with tempfile.TemporaryDirectory(prefix="craft-grade-") as tmp: - work = Path(tmp) - try: - if not any(name in {".", ".git"} or name.startswith(".git/") for name in rejected): - metadata = git_command(["git", "rev-parse", "HEAD"], repo) - if metadata.returncode: - raise RuntimeError("Git metadata check failed: " + metadata.stdout + metadata.stderr) - checks["no_commits"] = metadata.stdout.strip() == head - if rejected or conflicts: - tests = subprocess.CompletedProcess([], 1, "", "Rejected fixture artifacts: " + ", ".join(rejected + conflicts)) - else: - for name, data in after.items(): - destination = work / name - destination.parent.mkdir(parents=True, exist_ok=True) - destination.write_bytes(data) - (work / "test_app.py").write_text(case.tests) - (work / "test_acceptance.py").write_text(case.acceptance) - tests = sandbox_tests(work, cleanup_errors) - except subprocess.TimeoutExpired as error: - def text(value): - return value.decode(errors="replace") if isinstance(value, bytes) else (value or "") - grade_timeout = {"seconds": error.timeout, "stdout": text(error.stdout), "stderr": text(error.stderr)} - tests = subprocess.CompletedProcess([], 1, grade_timeout["stdout"], grade_timeout["stderr"] + "\nGrading timed out.") - except (OSError, RuntimeError) as error: - tests = subprocess.CompletedProcess([], 1, "", f"Grading blocked: {error}") - checks["behavior_preserved_and_task_completed"] = not cleanup_errors and tests.returncode == 0 and SUITE_COMPLETED in tests.stdout.splitlines() - return { - "checks": checks, "changed_files": changed, - "new_files": sorted(after.keys() - before.keys()), - "test_output": tests.stdout + tests.stderr, - "grade_timeout": grade_timeout, "grade_exit_code": tests.returncode, - "rejected_files": sorted(rejected), "sandbox_cleanup_errors": cleanup_errors, - } - - -def decode_result(host, stdout): - try: - if host == "claude": - events = [json.loads(line) for line in stdout.splitlines() if line.strip()] - result = next((event for event in reversed(events) if event.get("type") == "result"), {}) - return { - "completed": result.get("type") == "result" and not result.get("is_error", True) - and result.get("subtype") == "success", - "message": result.get("result", ""), - "usage": result.get("usage"), - "model_usage": result.get("modelUsage"), - "cost_usd": result.get("total_cost_usd"), - "permission_denials": result.get("permission_denials", []), - } - events = [json.loads(line) for line in stdout.splitlines() if line.strip()] - completed = [event for event in events if event.get("type") == "turn.completed"] - messages = [event["item"].get("text", "") for event in events - if event.get("type") == "item.completed" and event.get("item", {}).get("type") == "agent_message"] - return { - "completed": bool(completed) and not any(event.get("type") in {"error", "turn.failed"} for event in events), - "message": "\n".join(messages), - "usage": completed[-1].get("usage") if completed else None, - } - except (json.JSONDecodeError, TypeError, KeyError): - return {"completed": False, "message": "Host output could not be decoded."} - - -def commit_command_candidates(host, stdout): - commands = {} - try: - events = [json.loads(line) for line in stdout.splitlines() if line.strip()] - for event in events: - if host == "claude": - message = event.get("message", {}) if event.get("type") == "assistant" else {} - for block in message.get("content", []): - if block.get("type") == "tool_use" and block.get("name") == "Bash": - commands[block["id"]] = block.get("input", {}).get("command", "") - for denial in event.get("permission_denials", []): - command = denial.get("tool_input", {}).get("command", "") - if command and command not in commands.values(): - commands[f"denial:{len(commands)}"] = command - else: - item = event.get("item", {}) - if item.get("type") == "command_execution": - commands[item["id"]] = item.get("command", "") - except (json.JSONDecodeError, TypeError, KeyError): - return [] - pattern = r"\bgit\s+(?:(?:-C|-c|--git-dir|--work-tree)\s+\S+\s+|--[^\s]+\s+)*commit\b" - return [command for command in commands.values() if re.search(pattern, command)] - - -def run_pair(output, name, host, model, skills_root, timeout, baseline_skills_root=None, reverse_order=False): - case = CASES[name] - pair = output / host / name - pair.mkdir(parents=True, exist_ok=False) - skill_files = skill_snapshot(skills_root, case.skill) - (pair / "skill-snapshot.json").write_text(json.dumps(skill_files, indent=2) + "\n") - modes = [("without-skill", None), ("with-skill", skill_files)] - if baseline_skills_root: - baseline_files = skill_snapshot(baseline_skills_root, case.skill) - (pair / "baseline-skill-snapshot.json").write_text(json.dumps(baseline_files, indent=2) + "\n") - modes = [("baseline-skill", baseline_files), ("candidate-skill", skill_files)] - if reverse_order: - modes.reverse() - results = [] - for mode, materials in modes: - root = pair / mode - root.mkdir() - prompt = make_prompt(case, materials) - (root / "prompt.txt").write_text(prompt) - with tempfile.TemporaryDirectory(prefix="craft-eval-") as tmp: - repo = prepare(Path(tmp), case) - before = snapshot(repo) - head = git_command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - args = host_command(host, model, prompt) - started = time.monotonic() - try: - process = command(args, repo, timeout) - stdout, stderr, exit_code = process.stdout, process.stderr, process.returncode - except subprocess.TimeoutExpired as error: - stdout = error.stdout or b"" - stderr = error.stderr or b"" - stdout = stdout.decode(errors="replace") if isinstance(stdout, bytes) else stdout - stderr = stderr.decode(errors="replace") if isinstance(stderr, bytes) else stderr - stderr += "\nEvaluation timed out." - exit_code = None - elapsed = time.monotonic() - started - (root / "stdout.jsonl").write_text(stdout) - (root / "stderr.txt").write_text(stderr) - decoded = decode_result(host, stdout) - graded = grade(repo, case, before, head) - # Git diff can execute generated clean filters; compare captured bytes instead. - after = snapshot(repo, []) - patch = "" - for filename in sorted(before.keys() | after.keys()): - old = before.get(filename, b"").decode(errors="replace").splitlines(keepends=True) - new = after.get(filename, b"").decode(errors="replace").splitlines(keepends=True) - fromfile = "a/" + filename if filename in before else "/dev/null" - tofile = "b/" + filename if filename in after else "/dev/null" - if not old and not new and (filename not in before or filename not in after): - patch += f"--- {fromfile}\n+++ {tofile}\n" - for line in difflib.unified_diff(old, new, fromfile=fromfile, tofile=tofile): - patch += line if line.endswith("\n") else line + "\n\\ No newline at end of file\n" - (root / "diff.patch").write_text(patch) - final = root / "files" - for filename, data in after.items(): - destination = final / filename - destination.parent.mkdir(parents=True, exist_ok=True) - destination.write_bytes(data) - result = { - "case": name, "skill": case.skill, "host": host, "requested_model": model, - "mode": mode, "seconds": round(elapsed, 2), "exit_code": exit_code, - "skill_sha256": { - filename: hashlib.sha256(text.encode()).hexdigest() - for filename, text in (materials or {}).items() - }, - "pair_order": [label for label, _ in modes], - "commit_command_candidates": commit_command_candidates(host, stdout), - "fixture_sha256": hashlib.sha256(json.dumps({ - "files": files_for(case), "prompt": case.prompt, "acceptance": case.acceptance, - "protected": case.protected, "read_only": case.read_only, "rubric": case.rubric, - }, sort_keys=True).encode()).hexdigest(), - "runner_sha256": hashlib.sha256(Path(__file__).read_bytes()).hexdigest(), - "manual_rubric": case.rubric, - **decoded, **graded, - } - result["mechanical_pass"] = exit_code == 0 and decoded["completed"] and all(graded["checks"].values()) - result["manual_review"] = "pending" - (root / "result.json").write_text(json.dumps(result, indent=2) + "\n") - print(f"{host} {name} {mode}: {'PASS' if result['mechanical_pass'] else 'FAIL/BLOCKED'} ({elapsed:.1f}s)", flush=True) - results.append(result) - if exit_code is None or not decoded["completed"]: - break - return results - - -def main(): - parser = argparse.ArgumentParser() - parser.add_argument("--host", choices=("claude", "codex"), required=True) - parser.add_argument("--case", choices=sorted(CASES), action="append") - parser.add_argument("--skills-root", type=Path, required=True) - parser.add_argument("--baseline-skills-root", type=Path) - parser.add_argument("--reverse-order", action="store_true") - parser.add_argument("--output", type=Path, required=True) - parser.add_argument("--model") - parser.add_argument("--timeout", type=int, default=180) - args = parser.parse_args() - if not shutil.which(args.host): - parser.error(f"{args.host} is not installed") - output = args.output.resolve() - output.mkdir(parents=True, exist_ok=True) - names = args.case or list(CASES) - if len(set(names)) != len(names) or any((output / args.host / name).exists() for name in names): - parser.error("Selected case output already exists or case was selected twice") - version = command([args.host, "--version"], output) - if version.returncode: - parser.error("Could not determine host version") - receipt = output / f"{args.host}-version.txt" - version_text = version.stdout + version.stderr - if receipt.exists(): - if receipt.read_text() != version_text: - parser.error("Host version differs from immutable output receipt; use a new output directory") - else: - with receipt.open("x") as destination: - destination.write(version_text) - results = [] - for name in names: - pair = run_pair( - output, name, args.host, args.model, args.skills_root.resolve(), args.timeout, - args.baseline_skills_root.resolve() if args.baseline_skills_root else None, - args.reverse_order, - ) - results.extend(pair) - if not pair[-1]["completed"] or pair[-1]["exit_code"] is None: - break - return 0 if all(result["mechanical_pass"] for result in results) else 1 - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/skills/.cursor-plugin/plugin.json b/skills/.cursor-plugin/plugin.json index b4504cf..97be47b 100644 --- a/skills/.cursor-plugin/plugin.json +++ b/skills/.cursor-plugin/plugin.json @@ -7,7 +7,6 @@ "./clean-tree", "./end-session", "./git-janitor", - "./house-rules", "./independent-review", "./kustomize", "./lets-finish", @@ -16,7 +15,6 @@ "./restate", "./session-eject", "./setup-agents-md", - "./smell-to-refactoring", "./wait-for-action" ] } diff --git a/skills/architectural-review/references/vocabulary.md b/skills/architectural-review/references/vocabulary.md index c2f53b0..f073386 100644 --- a/skills/architectural-review/references/vocabulary.md +++ b/skills/architectural-review/references/vocabulary.md @@ -46,7 +46,7 @@ form, and keep strong forms inside one module. ## Friction signals -Each signal comes from the `house-rules` skill; cite it in a candidate's `rules`. +Cite any matching signal in a candidate's `rules`. - Understanding one concept means bouncing between many small modules. - Pure functions extracted only for tests, while bugs hide in how they're diff --git a/skills/house-rules/.cursor-plugin/plugin.json b/skills/house-rules/.cursor-plugin/plugin.json deleted file mode 100644 index 2b9af2f..0000000 --- a/skills/house-rules/.cursor-plugin/plugin.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "house-rules", - "description": "House rules for writing, changing, or reviewing code \u2014 simplicity, deletion, naming, comments, tests, verification. Load before touching code." -} diff --git a/skills/house-rules/SKILL.md b/skills/house-rules/SKILL.md deleted file mode 100644 index 0ee6047..0000000 --- a/skills/house-rules/SKILL.md +++ /dev/null @@ -1,70 +0,0 @@ ---- -name: house-rules -description: House rules for writing, changing, or reviewing code — simplicity, deletion, naming, comments, tests, verification. Load before touching code. ---- - -# House rules - -Write code a stranger understands in one read. Every rule below serves that reader. - -## Core - -1. **Simplify.** Build the smallest design that fully solves the problem in hand. A third real case - earns a generalization (rule of three). -2. **Delete.** Remove what nothing needs. Check public API and external consumers first; local - callers alone do not establish non-use. Once a function is confirmed unused, delete it and its - obsolete test together. Git keeps the history. -3. **Comments explain why.** Names and types carry the what. A comment earns its place for a - constraint, a non-obvious reason, or a gotcha. Model: antirez, [Writing system software: code - comments](http://antirez.com/news/124). -4. **Verify.** Treat agent output, your own included, as an unreviewed draft: run it, test it, and - read the diff against the repository before calling it done. -5. **Read like prose.** Names, file layout, and test names tell the story of what the code is for. - Optimize for a first-time reader's time to understanding; trade readability for speed only when a - measurement asks for it. - -## Design - -- **Deep modules.** A small interface with substantial behaviour behind it. Inside a module, each - function does one job and is named for it; split a function when it holds two jobs, not to reach a - line count. This sides with Ousterhout where he and Clean Code disagree — see - [aposd-vs-clean-code](https://github.com/johnousterhout/aposd-vs-clean-code). -- **Functional core, imperative shell.** Decisions live in pure functions; IO stays at the edges; - dependencies arrive as arguments. -- **Encapsulated state.** State lives inside the module that owns it. Global mutable state needs the - user's sign-off and a stated reason. -- **Few arguments.** Three or four at most; past that, group related values into an immutable - parameter object. -- **Interfaces at seams.** Depend on an interface where a second implementation exists — a test double - counts as one. -- **Named domains.** A `utils` module signals a missing domain concept: name the concept and give it a - home. - -## Tests - -- Test first: a test that fails for the intended reason, then the code that makes it pass. -- Arrange, Act, Assert, one behaviour per test. The test name, or a one-line comment, states the - assertion. -- Assert on behaviour and concrete error types; assert on message text only when the text is the - behaviour. -- Unit and integration tests live apart, each runnable on its own. - -Examples per language: [Rust](references/rust.md), [Go](references/go.md), -[Python](references/python.md), [TypeScript](references/typescript.md). - -## Gates - -- Lint, typecheck, and tests pass before a push. -- A latent failure your change exposes is fixed in the same work, or handed to a parallel agent when - speed matters. -- Docs record intent and contracts, the parts that change slowly; volatile detail stays in the code. - -## Principle skills - -Load the matching skill when its moment arrives: - -| Moment | Skill | -|---|---| -| Input crosses a trust boundary | `parse-dont-validate` | -| A change fights the existing code | `make-the-change-easy` | -| Reviewing a diff, or code feels wrong | `smell-to-refactoring` | diff --git a/skills/house-rules/references/go.md b/skills/house-rules/references/go.md deleted file mode 100644 index e541bff..0000000 --- a/skills/house-rules/references/go.md +++ /dev/null @@ -1,67 +0,0 @@ -# Go - -## Comments - -Restating the code: - -```go -// BuildMonkey builds a monkey. It takes a string, foo, and an int, bar, and -// returns a Monkey and an error. -func BuildMonkey(foo string, bar int) (*Monkey, error) { - // hold the count of monkeys - count := 0 - ... -} -``` - -Names carry the what; the comment carries a why the code cannot show: - -```go -func BuildMonkey(name string, heightCM int) (*Monkey, error) { - // Heights over 300 cm break the bed's spring model; refuse them here, not mid-fall. - if heightCM > 300 { - return nil, ErrTooHigh - } - ... -} -``` - -## Tests - -Several behaviours in one test, asserting on message text: - -```go -func TestBuildMonkey1(t *testing.T) { - m, err := BuildMonkey("safe-monkey", 9) - if err != nil && err.Error() != "bed is missing" { - t.Fatal("it broke") - } - if TriggerFall(m).Bed() != BedSoft { - t.Fatal("bad bed") - } -} -``` - -One behaviour per test, named for its assertion, asserting on the error value: - -```go -func TestFallsOnSoftBedFromLowHeight(t *testing.T) { - monkey := NewMonkey().WithHeight(9).WithName("safe-monkey").Build() - - fallen := TriggerFall(monkey) - - if got := fallen.Bed(); got != BedSoft { - t.Errorf("Bed() = %v, want %v", got, BedSoft) - } -} - -func TestRefusesToFallWithoutABed(t *testing.T) { - monkey := NewMonkey().WithHeight(9).Build() - - _, err := TriggerFallOrErr(monkey) - - if !errors.Is(err, ErrNoBed) { - t.Errorf("err = %v, want %v", err, ErrNoBed) - } -} -``` diff --git a/skills/house-rules/references/python.md b/skills/house-rules/references/python.md deleted file mode 100644 index 8deefa7..0000000 --- a/skills/house-rules/references/python.md +++ /dev/null @@ -1,55 +0,0 @@ -# Python - -## Comments - -Restating the code: - -```python -# This function builds a monkey and takes a string, "foo", and an int, "bar", as arguments -def build_monkey(foo: str, bar: int) -> Monkey: - # hold the count of monkeys - count = 0 - ... -``` - -Names carry the what; the comment carries a why the code cannot show: - -```python -def build_monkey(name: str, height_cm: int) -> Monkey: - # Heights over 300 cm break the bed's spring model; refuse them here, not mid-fall. - if height_cm > 300: - raise TooHigh(height_cm) - ... -``` - -## Tests - -Several behaviours in one test, asserting on message text: - -```python -def test_monkey(): - m = build_monkey("safe-monkey", 9) - assert trigger_fall(m).bed == Bed.SOFT - try: - trigger_fall(build_monkey("bedless-monkey", 9)) - except Exception as e: - assert str(e) == "no bed configured" -``` - -One behaviour per test, named for its assertion, asserting on the exception type: - -```python -def test_falls_on_soft_bed_from_low_height(): - monkey = Monkey.builder().height(9).name("safe-monkey").build() - - fallen = trigger_fall(monkey) - - assert fallen.bed == Bed.SOFT - - -def test_refuses_to_fall_without_a_bed(): - monkey = Monkey.builder().height(9).build() - - with pytest.raises(NoBed): - trigger_fall(monkey) -``` diff --git a/skills/house-rules/references/rust.md b/skills/house-rules/references/rust.md deleted file mode 100644 index 5d57738..0000000 --- a/skills/house-rules/references/rust.md +++ /dev/null @@ -1,63 +0,0 @@ -# Rust - -## Comments - -Restating the code: - -```rust -/// This function builds a monkey and takes a `&str`, `foo`, and a `u32`, -/// `bar`, as arguments. Returns a Result. -pub fn build_monkey(foo: &str, bar: u32) -> Result { - // hold the count of monkeys - let mut count = 0; - ... -} -``` - -Names carry the what; the comment carries a why the code cannot show: - -```rust -pub fn build_monkey(name: &str, height_cm: u32) -> Result { - // Heights over 300 cm break the bed's spring model; refuse them here, not mid-fall. - if height_cm > 300 { - return Err(MonkeyError::TooHigh(height_cm)); - } - ... -} -``` - -## Tests - -Several behaviours in one test, asserting on message text: - -```rust -#[test] -fn test_monkey() { - let m = build_monkey("safe-monkey", 9).unwrap(); - assert!(trigger_fall(m).unwrap().bed() == Bed::Soft, "bad bed"); - let e = build_monkey("bedless-monkey", 9).unwrap_err(); - assert_eq!(e.to_string(), "no bed configured"); -} -``` - -One behaviour per test, named for its assertion, asserting on the error type: - -```rust -#[test] -fn falls_on_soft_bed_from_low_height() { - let monkey = Monkey::builder().height(9).name("safe-monkey").build(); - - let fallen = trigger_fall(monkey).unwrap(); - - assert_eq!(fallen.bed(), Bed::Soft); -} - -#[test] -fn refuses_to_fall_without_a_bed() { - let monkey = Monkey::builder().height(9).build(); - - let err = trigger_fall(monkey).unwrap_err(); - - assert!(matches!(err, MonkeyError::NoBed)); -} -``` diff --git a/skills/house-rules/references/typescript.md b/skills/house-rules/references/typescript.md deleted file mode 100644 index 56c0498..0000000 --- a/skills/house-rules/references/typescript.md +++ /dev/null @@ -1,62 +0,0 @@ -# TypeScript - -## Comments - -Restating the code: - -```typescript -/** - * This function builds a monkey. - * @param foo - a string - * @param bar - a number - * @returns a Monkey - */ -export function buildMonkey(foo: string, bar: number): Monkey { - // hold the count of monkeys - let count = 0; - ... -} -``` - -Names carry the what; the comment carries a why the code cannot show: - -```typescript -export function buildMonkey(name: string, heightCm: number): Monkey { - // Heights over 300 cm break the bed's spring model; refuse them here, not mid-fall. - if (heightCm > 300) throw new TooHighError(heightCm); - ... -} -``` - -## Tests - -Several behaviours in one test, asserting on message text: - -```typescript -it("works", () => { - expect(triggerFall(buildMonkey("safe-monkey", 9)).bed).toBe(Bed.Soft); - try { - triggerFall(buildMonkey("bedless-monkey", 9)); - } catch (e: any) { - expect(e.message).toBe("no bed configured"); - } -}); -``` - -One behaviour per test, named for its assertion, asserting on the error class: - -```typescript -it("falls on a soft bed from a low height", () => { - const monkey = monkeyBuilder().height(9).name("safe-monkey").build(); - - const fallen = triggerFall(monkey); - - expect(fallen.bed).toBe(Bed.Soft); -}); - -it("refuses to fall without a bed", () => { - const monkey = monkeyBuilder().height(9).build(); - - expect(() => triggerFall(monkey)).toThrow(NoBedError); -}); -``` diff --git a/skills/lets-finish/.cursor-plugin/plugin.json b/skills/lets-finish/.cursor-plugin/plugin.json index 8c0a8f6..a0299d4 100644 --- a/skills/lets-finish/.cursor-plugin/plugin.json +++ b/skills/lets-finish/.cursor-plugin/plugin.json @@ -1,4 +1,4 @@ { "name": "lets-finish", - "description": "Land finished work. Open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says \"let's finish\", \"lets finish\", \"wrap up\", \"finish up\", \"ship it\", or invokes `/lets-finish`. Words after the command skip or stop steps, such as \"don't review\" or \"stop after CI\", \"and release\" or \"and deploy\" adds the project's release after the merge, \"clean\" cleans up without asking. Not for a question about status." + "description": "Land finished work. Create a branch or worktree and open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says \"let's finish\", \"lets finish\", \"wrap up\", \"finish up\", \"ship it\", or invokes `/lets-finish`. Words after the command skip or stop steps, such as \"don't review\" or \"stop after CI\", \"and release\" or \"and deploy\" adds the project's release after the merge, \"clean\" cleans up without asking. Not for a question about status." } diff --git a/skills/lets-finish/SKILL.md b/skills/lets-finish/SKILL.md index 1dc4392..77d1b94 100644 --- a/skills/lets-finish/SKILL.md +++ b/skills/lets-finish/SKILL.md @@ -1,6 +1,6 @@ --- name: lets-finish -description: Land finished work. Open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says "let's finish", "lets finish", "wrap up", "finish up", "ship it", or invokes `/lets-finish`. Words after the command skip or stop steps, such as "don't review" or "stop after CI", "and release" or "and deploy" adds the project's release after the merge, "clean" cleans up without asking. Not for a question about status. +description: Land finished work. Create a branch or worktree and open the PR if there is none, check its docs, changelog and tickets are current, wait for CI, get it independently reviewed, merge, update the tickets and beads it relates to, then clean up the branch and worktree. Use when the user says "let's finish", "lets finish", "wrap up", "finish up", "ship it", or invokes `/lets-finish`. Words after the command skip or stop steps, such as "don't review" or "stop after CI", "and release" or "and deploy" adds the project's release after the merge, "clean" cleans up without asking. Not for a question about status. model: haiku argument-hint: "[PR numbers] [what to skip or where to stop]" --- @@ -60,9 +60,15 @@ Use the PR numbers in the argument, each from a checkout of its branch (`gh pr checkout `), since the CI reviewer waits watch the local `HEAD`. With none, use the open PR for the current branch (`gh pr view --json number,title,url,headRefName,reviewDecision,body,isCrossRepository`). -When the branch is the default branch, stop and say so. When the branch has no -open PR, run step 0 for it first. Run steps 1 to 4 for each PR in turn; steps 5 -to 7 run once, over all of them. +When on the default branch (or detached `HEAD`): if there are no uncommitted +changes and no commits ahead of `origin/`, stop and say there is +nothing to finish. Otherwise, create a new branch or linked worktree for the +work automatically without asking — never pause to ask whether to create one, +and never push to the default branch. If local `` had unpushed +commits, move them onto the new branch and reset local `` to +`origin/` once the branch holds them. When the branch has no open PR, +run step 0 for it first. Run steps 1 to 4 for each PR in turn; steps 5 to 7 run +once, over all of them. ### Check the PR and what it touches, before any review or merge @@ -122,8 +128,10 @@ approval. Apply this rule in both steps 0 and 2. ## 0. opening PR... (only when the branch has no open PR) -1. Push the branch with `-u` and `gh pr create` with a title and body in the - repository's convention. `[+] opened `. Run the check above. +1. If there are uncommitted changes for this work, stage and commit them in the + repository's convention. Push the branch with `-u` and `gh pr create` with a + title and body in the repository's convention. `[+] opened `. Run + the check above. 2. Wait for CI as in step 1. A failure is `[x]` and stops here. 3. Apply step 2's review-needed criteria first. When review is not needed, print `[-] no review needed`. Otherwise invoke `independent-review` and diff --git a/skills/make-the-change-easy/.cursor-plugin/plugin.json b/skills/make-the-change-easy/.cursor-plugin/plugin.json index d028311..f82b374 100644 --- a/skills/make-the-change-easy/.cursor-plugin/plugin.json +++ b/skills/make-the-change-easy/.cursor-plugin/plugin.json @@ -1,4 +1,4 @@ { "name": "make-the-change-easy", - "description": "A change fights the existing code \u2014 it needs edits scattered across many places, a flag threaded through, or a special case wedged in. Refactor first so the change becomes one small edit, then make it." + "description": "Preparatory refactoring and code-smell cleanup in small green steps, keeping structural and behavior changes separate. Use before a feature or bug fix that would require scattered edits, a threaded flag, duplicated logic, or a special case, or when asked to refactor, simplify, clean up, or review a diff for smells." } diff --git a/skills/make-the-change-easy/SKILL.md b/skills/make-the-change-easy/SKILL.md index 4ae4938..742cf74 100644 --- a/skills/make-the-change-easy/SKILL.md +++ b/skills/make-the-change-easy/SKILL.md @@ -1,30 +1,40 @@ --- name: make-the-change-easy -description: A change fights the existing code — it needs edits scattered across many places, a flag threaded through, or a special case wedged in. Refactor first so the change becomes one small edit, then make it. +description: Preparatory refactoring and code-smell cleanup in small green steps, keeping structural and behavior changes separate. Use before a feature or bug fix that would require scattered edits, a threaded flag, duplicated logic, or a special case, or when asked to refactor, simplify, clean up, or review a diff for smells. --- # Make the change easy, then make the easy change Kent Beck: "for each desired change, make the change easy (warning: this may be hard), then make the -easy change." Two moves, kept apart: a refactor that changes no behaviour, then a small change. +easy change." Keep structural refactoring and behavior changes apart. + +## Preparatory refactoring (before a feature or fix) 1. Write down the edit you wish you could make: the one-place change. -2. Name what blocks it — duplicated logic, the wrong module owning it, two phases tangled together. - `smell-to-refactoring` maps each blocker to a named refactoring. -3. Refactor in small steps, tests green after each one, tests themselves unchanged. -4. Make the change, now one small edit, test first. +2. Name the smells blocking it from Fowler's catalog (e.g. Duplicated Code, Divergent Change, + Shotgun Surgery, Feature Envy, Long Parameter List, Primitive Obsession, Repeated Switches, + Data Clumps) — the smell picks the named refactoring. +3. Refactor in small steps, one named refactoring at a time, tests green and unchanged after each + step. +4. Make the behavior change as one small, local edit, test first. + +## Reviewing a diff or cleaning up code -Done when: the refactor steps change no test and leave every test green, and the change itself is a -small, local diff. +1. List each smell by Fowler's catalog name with its location. +2. When editing is in scope, apply one named refactoring at a time with tests green between steps. + For Primitive Obsession at a trust boundary, see `parse-dont-validate`. +3. Report every smell left untouched — especially those outside scope — with its reason. -Keep the refactor and behavior change distinguishable. Commit them separately only when the user or -calling workflow explicitly authorizes commits; loading this skill alone does not authorize them. +## Boundaries -Yields to: surgical scope — refactor only what this change touches; anything else becomes a separate -task. +- **Done when:** refactor steps leave tests unchanged and green, any behavior change is a small + local diff, and every smell found is either refactored or reported with a reason. +- **Commits:** keep the refactor and behavior change distinguishable. Commit them separately only + when the user or calling workflow explicitly authorizes commits; loading this skill alone does + not authorize them. +- **Yields to surgical scope:** refactor only what the task touches; smells outside scope are + reported, not fixed. In the wild: -- Martin Fowler, [An example of preparatory refactoring](https://martinfowler.com/articles/preparatory-refactoring-example.html) — a worked example of exactly these two moves. -- Fowler, *Refactoring* (2nd ed.), chapter 1 — the statement function is split into a calculation phase - and a rendering phase (Split Phase) before HTML output is added, so the new feature is one new - renderer. +- Martin Fowler, [An example of preparatory refactoring](https://martinfowler.com/articles/preparatory-refactoring-example.html) +- Fowler, *Refactoring* (2nd ed.), chapters 1 & 3 — [refactoring.com/catalog](https://refactoring.com/catalog/) diff --git a/skills/parse-dont-validate/.cursor-plugin/plugin.json b/skills/parse-dont-validate/.cursor-plugin/plugin.json index acdbf28..f400b04 100644 --- a/skills/parse-dont-validate/.cursor-plugin/plugin.json +++ b/skills/parse-dont-validate/.cursor-plugin/plugin.json @@ -1,4 +1,4 @@ { "name": "parse-dont-validate", - "description": "Input crosses a trust boundary \u2014 CLI args, HTTP bodies, files, env vars, config. Turn it into a type that cannot hold an invalid value." + "description": "Parse untrusted input at system boundaries into domain types that make invalid states unrepresentable. Use when handling or validating CLI args, HTTP/API payloads, files, env vars, or config, or when replacing primitive types and repeated validation checks across callers." } diff --git a/skills/parse-dont-validate/SKILL.md b/skills/parse-dont-validate/SKILL.md index 99c14a2..45b73a6 100644 --- a/skills/parse-dont-validate/SKILL.md +++ b/skills/parse-dont-validate/SKILL.md @@ -1,6 +1,6 @@ --- name: parse-dont-validate -description: Input crosses a trust boundary — CLI args, HTTP bodies, files, env vars, config. Turn it into a type that cannot hold an invalid value. +description: Parse untrusted input at system boundaries into domain types that make invalid states unrepresentable. Use when handling or validating CLI args, HTTP/API payloads, files, env vars, or config, or when replacing primitive types and repeated validation checks across callers. --- # Parse, don't validate diff --git a/skills/smell-to-refactoring/.cursor-plugin/plugin.json b/skills/smell-to-refactoring/.cursor-plugin/plugin.json deleted file mode 100644 index 6357f8e..0000000 --- a/skills/smell-to-refactoring/.cursor-plugin/plugin.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "smell-to-refactoring", - "description": "Reviewing a diff, or code that feels wrong without an obvious reason. Name each smell from Fowler's catalog, then apply the refactoring that removes it." -} diff --git a/skills/smell-to-refactoring/SKILL.md b/skills/smell-to-refactoring/SKILL.md deleted file mode 100644 index 505e6c4..0000000 --- a/skills/smell-to-refactoring/SKILL.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -name: smell-to-refactoring -description: Reviewing a diff, or code that feels wrong without an obvious reason. Name each smell from Fowler's catalog, then apply the refactoring that removes it. ---- - -# Smell to refactoring - -A smell is a named symptom; each has known refactorings. Name the smell before touching the code — the -name picks the fix. - -1. Read the code and list each smell by name with its location. -2. For each one, pick a refactoring from the table. -3. Apply one refactoring at a time, tests green between steps. -4. Report the smells you left, each with its reason. - -Done when: every smell found has a refactoring applied or a stated reason to leave it. - -Yields to: surgical scope — smells outside the code under change are reported, not fixed. - -| Smell | Refactorings | -|---|---| -| Mysterious Name | Change Function Declaration, Rename Variable, Rename Field | -| Duplicated Code | Extract Function, Slide Statements, Pull Up Method | -| Long Function | Extract Function, Decompose Conditional, Split Loop, Replace Temp with Query | -| Long Parameter List | Introduce Parameter Object, Preserve Whole Object, Remove Flag Argument | -| Global Data | Encapsulate Variable | -| Mutable Data | Encapsulate Variable, Split Variable, Separate Query from Modifier, Replace Derived Variable with Query | -| Divergent Change | Split Phase, Extract Class, Move Function | -| Shotgun Surgery | Move Function, Move Field, Combine Functions into Class | -| Feature Envy | Move Function, Extract Function | -| Data Clumps | Extract Class, Introduce Parameter Object | -| Primitive Obsession | Replace Primitive with Object (see `parse-dont-validate`) | -| Repeated Switches | Replace Conditional with Polymorphism | -| Loops | Replace Loop with Pipeline | -| Lazy Element | Inline Function, Inline Class | -| Speculative Generality | Remove Dead Code, Inline Function, Collapse Hierarchy | -| Temporary Field | Extract Class, Introduce Special Case | -| Message Chains | Hide Delegate, Move Function | -| Middle Man | Remove Middle Man, Inline Function | -| Insider Trading | Move Function, Move Field, Hide Delegate | -| Large Class | Extract Class, Extract Superclass | -| Alternative Classes with Different Interfaces | Change Function Declaration, Extract Superclass | -| Data Class | Encapsulate Record, Move Function | -| Refused Bequest | Replace Subclass with Delegate, Push Down Method | -| Comments | Extract Function, Change Function Declaration, Introduce Assertion | - -In Rust and Go, read "class" as a struct with its methods, or a module. - -Each refactoring's mechanics: `https://refactoring.com/catalog/.html`, for example -[extractFunction](https://refactoring.com/catalog/extractFunction.html). - -In the wild: -- Martin Fowler, *Refactoring* (2nd ed.), chapter 3 — the source of the smells and their pairings. -- [refactoring.com/catalog](https://refactoring.com/catalog/) — every refactoring above, with mechanics. diff --git a/templates/AGENTS.md b/templates/AGENTS.md index 8cb411b..4db25fc 100644 --- a/templates/AGENTS.md +++ b/templates/AGENTS.md @@ -28,10 +28,11 @@ Throughout the work, ask: - Use descriptive names. Short names are fine when local context makes their meaning clear. Ask whether a reader arriving at this symbol could understand it. - Program to interfaces at dependency boundaries, not concrete implementations. Don't introduce interfaces merely to mirror classes. Name modules for their domain, not `utils`. - Prefer a few arguments. When related values become cumbersome to pass individually, group them in an immutable parameter object. +- Remove unused code and its obsolete tests together, but check public APIs and external consumers first; local callers alone do not establish non-use. ## Leave the campground cleaner -Never add unnecessary comments or documentation. Redundant text dilutes comprehension; stale or incorrect information actively misleads the next reader. +Never add unnecessary comments or documentation. Docs should record intent and contracts—the parts that change slowly—while volatile detail stays in the code. Redundant text dilutes comprehension; stale or incorrect information actively misleads the next reader. Good comments supply context the code cannot readily convey: a subtle algorithm, an external constraint, or a non-obvious reason. For example, “Retry after 60 seconds because the upstream service rejects earlier attempts” explains a constraint; “Wait 60 seconds” merely repeats the code. diff --git a/tests/test_craft_evals.py b/tests/test_craft_evals.py deleted file mode 100644 index 6490585..0000000 --- a/tests/test_craft_evals.py +++ /dev/null @@ -1,854 +0,0 @@ -from contextlib import contextmanager -from dataclasses import replace -from unittest.mock import Mock -import hashlib -import os -import socket -import importlib.util -import json -from pathlib import Path -import subprocess -import sys - -import pytest - -EVALS = Path(__file__).resolve().parents[1] / "evals" / "craft" -sys.path.insert(0, str(EVALS)) -spec = importlib.util.spec_from_file_location("craft_eval", EVALS / "run.py") -craft = importlib.util.module_from_spec(spec) -try: - spec.loader.exec_module(craft) -finally: - sys.path.pop(0) - - -@pytest.mark.parametrize("source", ["hooks", "signing", "templates"]) -def test_git_bootstrap_ignores_user_configuration(tmp_path, monkeypatch, source): - home = tmp_path / "home" - home.mkdir() - sentinel = tmp_path / "executed" - executable = tmp_path / "sentinel-command" - executable.write_text(f"#!/bin/sh\ntouch '{sentinel}'\nexit 1\n") - executable.chmod(0o755) - hooks = tmp_path / "hooks" - hooks.mkdir() - (hooks / "pre-commit").write_bytes(executable.read_bytes()) - (hooks / "pre-commit").chmod(0o755) - template = tmp_path / "template" - template.mkdir() - (template / "inherited-template").write_text("must not be copied") - configs = { - "hooks": f'[core]\n hooksPath = "{hooks}"\n', - "signing": f'[commit]\n gpgSign = true\n[gpg]\n program = "{executable}"\n', - "templates": f'[init]\n templateDir = "{template}"\n', - } - config = home / ".gitconfig" - config.write_text(configs[source]) - monkeypatch.setenv("HOME", str(home)) - monkeypatch.setenv("XDG_CONFIG_HOME", str(home / "xdg")) - monkeypatch.setenv("GIT_TEMPLATE_DIR", str(template)) - monkeypatch.setenv("GIT_CONFIG_GLOBAL", str(config)) - monkeypatch.setenv("GIT_CONFIG_SYSTEM", str(config)) - monkeypatch.setenv("GIT_CONFIG_COUNT", "1") - monkeypatch.setenv("GIT_CONFIG_KEY_0", "core.hooksPath") - monkeypatch.setenv("GIT_CONFIG_VALUE_0", str(hooks)) - monkeypatch.setenv("CRAFT_AUTH_SENTINEL", "host-only") - environment = dict(os.environ) - original = craft.command - git_environments = [] - - def record(args, cwd, timeout=30, *, env=None): - if args[0] == "git": - git_environments.append(env) - return original(args, cwd, timeout, env=env) - - monkeypatch.setattr(craft, "command", record) - case = craft.CASES["smell-review-only"] - - repo = craft.prepare(tmp_path / "fixture", case) - assert not (repo / ".git" / "inherited-template").exists() - assert not sentinel.exists() - before = craft.snapshot(repo) - head = (repo / ".git" / "refs" / "heads" / "main").read_text().strip() - config.write_text("invalid Git configuration\n") - result = craft.grade(repo, case, before, head) - - assert all(result["checks"].values()), result - assert not sentinel.exists() - assert dict(os.environ) == environment - assert len(git_environments) == 6 # Five bootstrap commands and grading rev-parse. - for env in git_environments: - assert set(env) == {"PATH", "GIT_CONFIG_GLOBAL", "GIT_CONFIG_NOSYSTEM", "GIT_TEMPLATE_DIR", "GIT_TERMINAL_PROMPT", "GIT_CONFIG_COUNT"} | { - f"GIT_CONFIG_{kind}_{index}" for kind in ("KEY", "VALUE") for index in range(6) - } - assert env["GIT_CONFIG_GLOBAL"] == os.devnull - assert env["GIT_CONFIG_NOSYSTEM"] == "1" - assert env["GIT_TEMPLATE_DIR"] == "" - assert env["GIT_TERMINAL_PROMPT"] == "0" - settings = {env[f"GIT_CONFIG_KEY_{index}"]: env[f"GIT_CONFIG_VALUE_{index}"] for index in range(int(env["GIT_CONFIG_COUNT"]))} - assert settings == { - "core.hooksPath": os.devnull, "commit.gpgSign": "false", "tag.gpgSign": "false", - "gc.auto": "0", "maintenance.auto": "false", "credential.helper": "", - } - host = craft.command([sys.executable, "-c", "import os; print(os.environ['CRAFT_AUTH_SENTINEL'])"], tmp_path) - assert host.stdout.strip() == "host-only" - - -@pytest.mark.parametrize("name", craft.CASES) -def test_fixture_original_tests_pass_except_known_failure(tmp_path, name): - case = craft.CASES[name] - repo = craft.prepare(tmp_path, case) - result = craft.command([sys.executable, "-m", "unittest"], repo) - - assert (result.returncode == 0) == (name != "house-unrelated-failure"), result.stderr - assert not craft.command(["git", "diff", "--name-only", "HEAD"], repo).stdout - - -@pytest.mark.parametrize("name", craft.CASES) -def test_acceptance_programs_are_valid_python(name): - compile(craft.CASES[name].acceptance, f"{name}/test_acceptance.py", "exec") - - -def test_grader_rejects_incomplete_fix_even_if_agent_rewrites_tests(tmp_path): - case = craft.CASES["house-focused-fix"] - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - (repo / "test_app.py").write_text("") - - result = craft.grade(repo, case, before, head) - - assert not result["checks"]["behavior_preserved_and_task_completed"] - - -def test_grader_accepts_correct_fix_and_detects_unrelated_edits(tmp_path): - case = craft.CASES["house-unrelated-failure"] - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - (repo / "app.py").write_text(case.app.replace("?", "!")) - passed = craft.grade(repo, case, before, head) - (repo / "unrelated.py").write_text('def supported_currency():\n return "USD"\n') - failed = craft.grade(repo, case, before, head) - - assert all(passed["checks"].values()), passed - assert not failed["checks"]["protected_files_preserved"] - - -def test_review_grader_detects_edits_and_commits(tmp_path): - case = craft.CASES["smell-review-only"] - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - assert all(craft.grade(repo, case, before, head)["checks"].values()) - (repo / "app.py").write_text(case.app + "\n") - craft.command(["git", "add", "."], repo) - craft.command(["git", "commit", "-qm", "unauthorized"], repo) - - checks = craft.grade(repo, case, before, head)["checks"] - - assert not checks["review_only_preserved"] - assert not checks["no_commits"] - - -def test_prompts_change_only_by_skill_material(): - case = craft.CASES["smell-review-only"] - baseline = craft.make_prompt(case) - treatment = craft.make_prompt(case, {"SKILL.md": "original skill"}) - - assert "original skill" not in baseline - assert "original skill" in treatment - assert baseline.split("\n\n")[0] == treatment.split("\n\n")[0] - assert baseline.endswith(case.prompt) and treatment.endswith(case.prompt) - assert case.rubric not in treatment - assert case.acceptance not in treatment - - -@pytest.mark.parametrize("host", ("claude", "codex")) -def test_hosts_never_bypass_permissions_or_sandbox(host): - args = craft.host_command(host, "model-id", "task") - - assert args[-2:] == ["--", "task"] - assert args[args.index("--model") + 1] == "model-id" - assert not any("dangerously" in arg for arg in args) - - -@pytest.mark.parametrize("host,stdout", [ - ("claude", '{"type":"result","subtype":"error_during_execution","is_error":true}'), - ("codex", '{"type":"turn.failed","error":{"message":"quota"}}\n'), - ("claude", "not JSON"), - ("codex", "not JSON"), -]) -def test_failed_host_is_not_a_completed_evaluation(host, stdout): - assert not craft.decode_result(host, stdout)["completed"] - - -def test_streamed_claude_result_uses_final_event(): - stdout = '{"type":"system"}\n{"type":"result","subtype":"success","is_error":false,"result":"done"}\n' - - result = craft.decode_result("claude", stdout) - - assert result["completed"] and result["message"] == "done" - - -def test_commands_never_forward_inherited_stdin(tmp_path): - script = ( - f"import sys; sys.path.insert(0, {str(EVALS)!r}); import run; " - f"result = run.command([sys.executable, '-c', 'import sys; print(sys.stdin.read(), end=chr(33))'], {str(tmp_path)!r}); " - "sys.stdout.write(result.stdout); sys.exit(result.returncode)" - ) - result = subprocess.run( - [sys.executable, "-c", script], input="UNRELATED_LAUNCHER_SENTINEL", - capture_output=True, text=True, timeout=10, - ) - assert result.returncode == 0, result.stderr - assert result.stdout == "!" - - -def test_timeout_preserves_partial_output(tmp_path): - with pytest.raises(subprocess.TimeoutExpired) as caught: - craft.command([sys.executable, "-u", "-c", "import time; print('started'); time.sleep(10)"], tmp_path, timeout=1) - - assert "started" in caught.value.stdout - - -def test_new_test_file_is_recorded_not_automatically_rejected(tmp_path): - case = craft.CASES["house-focused-fix"] - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - (repo / "app.py").write_text(case.app.replace("?", "!")) - (repo / "test_greeting.py").write_text(case.acceptance) - - result = craft.grade(repo, case, before, head) - - assert result["new_files"] == ["test_greeting.py"] - assert all(result["checks"].values()) - - -@pytest.mark.parametrize("host,events", [ - ("claude", [{"type": "system", "message": "Tool permissions restricted"}, {"type": "assistant", "message": {"content": [ - {"type": "tool_use", "id": "one", "name": "Bash", "input": {"command": "git add . && git commit -m fix"}}, - ]}}, {"permission_denials": [{"tool_input": {"command": "git add . && git commit -m fix"}}]}]), - ("codex", [ - {"type": event, "item": {"id": "one", "type": "command_execution", "command": "/bin/zsh -lc 'rtk git -c user.name=Fixture commit -m fix'"}} - for event in ("item.started", "item.completed") - ]), -]) -def test_commit_candidates_include_attempts_without_double_counting(host, events): - stdout = "\n".join(json.dumps(event) for event in events) - - assert len(craft.commit_command_candidates(host, stdout)) == 1 - - -@pytest.mark.parametrize("command", ["python3 -m unittest", "git status --short", "git diff HEAD"]) -def test_inspection_commands_are_not_commit_candidates(command): - event = {"item": {"id": "one", "type": "command_execution", "command": command}} - - assert not craft.commit_command_candidates("codex", json.dumps(event)) - - -@pytest.mark.parametrize("reverse_order", [False, True]) -def test_revision_comparison_injects_each_version_and_records_order(tmp_path, monkeypatch, reverse_order): - baseline = tmp_path / "baseline" - candidate = tmp_path / "candidate" - for root, text in ((baseline, "Original skill"), (candidate, "Revised skill")): - directory = root / "smell-to-refactoring" - directory.mkdir(parents=True) - (directory / "SKILL.md").write_text(text) - original_command = craft.command - prompts = [] - - def fake_host(args, cwd, timeout=30, *, env=None): - if args[0] == "claude": - prompts.append(args[-1]) - return subprocess.CompletedProcess(args, 0, '{"type":"result","subtype":"success","is_error":false}', "") - return original_command(args, cwd, timeout, env=env) - - monkeypatch.setattr(craft, "command", fake_host) - results = craft.run_pair( - tmp_path / "results", "smell-review-only", "claude", "model", candidate, 30, - baseline_skills_root=baseline, reverse_order=reverse_order, - ) - expected = [("baseline-skill", "Original skill"), ("candidate-skill", "Revised skill")] - if reverse_order: - expected.reverse() - for result, prompt, (mode, text) in zip(results, prompts, expected, strict=True): - assert result["mode"] == mode - assert text in prompt - assert result["skill_sha256"]["SKILL.md"] == hashlib.sha256(text.encode()).hexdigest() - assert result["pair_order"] == [mode for mode, _ in expected] - assert result["mechanical_pass"] - - -def test_extended_receipts_preserve_failures_and_complete_pairs(): - receipt = json.loads((EVALS / "extended-results.json").read_text()) - runs = receipt["runs"] - assert len(runs) == len({run["id"] for run in runs}) == 112 - assert all(run["completed"] and run["mechanical_pass"] and run["final_file_regrade_pass"] for run in runs) - assert all(run["manual_review"]["verdict"] in {"pass", "fail", "inconclusive"} for run in runs) - for stage, summary in receipt["summary"].items(): - selected = [run for run in runs if run["stage"] == stage] - assert summary["completed_runs"] == len(selected) - assert summary["mechanical_passes"] == sum(run["mechanical_pass"] for run in selected) - assert summary["manual_verdicts"] == { - verdict: sum(run["manual_review"]["verdict"] == verdict for run in selected) - for verdict in {run["manual_review"]["verdict"] for run in selected} - } - pairs = {} - for run in selected: - pairs.setdefault((run["round"], run["host"], run["case"]), []).append(run) - expected = {"without-skill", "with-skill"} if stage == "expanded" else {"baseline-skill", "candidate-skill"} - for pair in pairs.values(): - assert len(pair) == 2 and {run["mode"] for run in pair} == expected - assert len({run["fixture_sha256"] for run in pair}) == 1 - assert len({run["requested_model"] for run in pair}) == 1 - assert len({run["runner_sha256"] for run in pair}) == 1 - assert sum(run["manual_review"]["verdict"] == "fail" for run in runs) == 7 - assert len(receipt["incomplete_attempts"]) == 2 - assert all(not run["completed"] and not run["mechanical_pass"] for run in receipt["incomplete_attempts"]) - - -def test_retained_baseline_matches_evaluated_original(): - receipt = json.loads((EVALS / "commit-policy-results.json").read_text()) - original = (EVALS / "baselines" / "make-the-change-easy.md").read_bytes() - - assert hashlib.sha256(original).hexdigest() == receipt["skill_sha256"]["baseline-skill"] - - -@pytest.mark.parametrize("module", ["test_app", "test_acceptance"]) -def test_generated_packages_cannot_shadow_trusted_tests(tmp_path, module): - case = replace(craft.CASES["house-focused-fix"], - tests="raise AssertionError('trusted test_app')" if module == "test_app" else "", - acceptance="raise AssertionError('trusted test_acceptance')" if module == "test_acceptance" else "") - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - package = repo / module - package.mkdir() - (package / "__init__.py").write_text("import unittest\nclass Fake(unittest.TestCase):\n def test_fake(self): pass\n") - result = craft.grade(repo, case, before, head) - assert not result["checks"]["behavior_preserved_and_task_completed"] - assert module in result["test_output"] - - -def test_grading_restricts_generated_code_not_host_environment(tmp_path, monkeypatch): - sentinel = tmp_path / "unrelated-secret" - sentinel.write_text("sentinel") - monkeypatch.setenv("CRAFT_SENTINEL", "host-auth-sentinel") - assert craft.command([sys.executable, "-c", "import os; print(os.getenv('CRAFT_SENTINEL'))"], tmp_path).stdout.strip() == "host-auth-sentinel" - with socket.socket() as listener: - listener.bind(("127.0.0.1", 0)) - listener.listen() - probe = f'''import os, socket -leaks = [] -if os.getenv("CRAFT_SENTINEL"): - leaks.append("environment") -try: - open({str(sentinel)!r}).read() - leaks.append("file") -except OSError: - pass -try: - socket.create_connection({listener.getsockname()!r}, timeout=1).close() - leaks.append("network") -except OSError: - pass -''' - case = replace(craft.CASES["smell-review-only"], tests="", acceptance='import unittest, app\nclass Security(unittest.TestCase):\n def test_isolation(self): self.assertEqual(app.leaks, [])\n') - repo = craft.prepare(tmp_path / "fixture", case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - (repo / "app.py").write_text(probe) - result = craft.grade(repo, case, before, head) - assert result["checks"]["behavior_preserved_and_task_completed"], result - - -def test_grade_timeout_retains_pair_receipts(tmp_path, monkeypatch): - skills = tmp_path / "skills" / "smell-to-refactoring" - skills.mkdir(parents=True) - (skills / "SKILL.md").write_text("skill") - original = craft.command - - def fake(args, cwd, timeout=30, *, env=None): - if args[0] == "claude": - (cwd / "generated.txt").write_text("retained") - return subprocess.CompletedProcess(args, 0, '{"type":"result","subtype":"success","is_error":false}', "") - if args[0] == "/usr/bin/sandbox-exec" or "run" in args: - raise subprocess.TimeoutExpired(args, timeout, output=b"partial stdout", stderr=b"partial stderr") - return original(args, cwd, timeout, env=env) - - monkeypatch.setattr(craft, "command", fake) - results = craft.run_pair(tmp_path / "results", "smell-review-only", "claude", None, skills.parent, 30) - root = tmp_path / "results" / "claude" / "smell-review-only" / "without-skill" - assert not results[0]["mechanical_pass"] - receipt = json.loads((root / "result.json").read_text()) - assert receipt["grade_timeout"] == {"seconds": 30, "stdout": "partial stdout", "stderr": "partial stderr"} - assert "partial stdout" in receipt["test_output"] - assert (root / "diff.patch").is_file() - assert (root / "files" / "generated.txt").read_text() == "retained" - - -@pytest.mark.parametrize("existing_case", [True, False]) -def test_version_receipt_is_immutable_before_rejection_or_new_case(tmp_path, monkeypatch, existing_case): - receipt = tmp_path / "claude-version.txt" - receipt.write_text("original version\n") - if existing_case: - (tmp_path / "claude" / "smell-review-only").mkdir(parents=True) - monkeypatch.setattr(craft.shutil, "which", lambda name: name) - monkeypatch.setattr(craft, "command", lambda args, cwd, timeout=30: subprocess.CompletedProcess(args, 0, "changed version\n", "")) - monkeypatch.setattr(sys, "argv", ["run.py", "--host", "claude", "--case", "smell-review-only", "--skills-root", str(tmp_path), "--output", str(tmp_path)]) - with pytest.raises((SystemExit, FileExistsError, RuntimeError)): - craft.main() - assert receipt.read_text() == "original version\n" - assert not (tmp_path / "claude" / "smell-review-only" / "without-skill").exists() - - -def test_same_version_can_add_a_case_without_rewriting_provenance(tmp_path, monkeypatch): - receipt = tmp_path / "claude-version.txt" - receipt.write_text("original version\n") - original_stat = receipt.stat() - monkeypatch.setattr(craft.shutil, "which", lambda name: name) - monkeypatch.setattr(craft, "command", lambda args, cwd, timeout=30: subprocess.CompletedProcess(args, 0, "original version\n", "")) - monkeypatch.setattr(craft, "run_pair", lambda *args: [{"completed": True, "exit_code": 0, "mechanical_pass": True}]) - monkeypatch.setattr(sys, "argv", ["run.py", "--host", "claude", "--case", "smell-review-only", "--skills-root", str(tmp_path), "--output", str(tmp_path)]) - assert craft.main() == 0 - assert receipt.read_text() == "original version\n" - assert receipt.stat().st_mtime_ns == original_stat.st_mtime_ns - - -def test_snapshot_tolerates_vanishing_git_maintenance_lock(tmp_path, monkeypatch): - repo = craft.prepare(tmp_path, craft.CASES["smell-review-only"]) - (repo / ".git" / "maintenance.lock").write_text("") - original = craft.os.stat - - def vanished(path, *args, **kwargs): - if path == "maintenance.lock": - raise FileNotFoundError(path) - return original(path, *args, **kwargs) - - monkeypatch.setattr(craft.os, "stat", vanished) - assert "app.py" in craft.snapshot(repo) - - -def test_snapshot_never_reads_links_or_special_files(tmp_path): - sentinel = tmp_path / "sentinel" - sentinel.write_text("outside-fixture") - case = craft.CASES["smell-review-only"] - repo = craft.prepare(tmp_path / "fixture", case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - (repo / "leak").symlink_to(sentinel) - (repo / "directory-link").symlink_to(tmp_path, target_is_directory=True) - os.mkfifo(repo / "pipe") - os.link(sentinel, repo / "hard-link") - result = craft.grade(repo, case, before, head) - assert not result["checks"]["fixture_files_safe"] - assert set(result["rejected_files"]) == {"leak", "directory-link", "pipe", "hard-link"} - - -@pytest.mark.parametrize("artifact", ["test_app", "test_acceptance", "test_app.py", "test_acceptance.py", "test_app.pyc", "test_acceptance.so"]) -def test_conflicting_empty_directories_are_rejected(tmp_path, artifact): - case = craft.CASES["smell-review-only"] - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - path = repo / artifact - if path.is_file(): - path.unlink() - path.mkdir() - result = craft.grade(repo, case, before, head) - assert not result["checks"]["trusted_test_artifacts_unambiguous"] - assert not result["checks"]["behavior_preserved_and_task_completed"] - - -def test_generated_git_filters_never_execute_during_artifact_collection(tmp_path, monkeypatch): - skills = tmp_path / "skills" / "smell-to-refactoring" - skills.mkdir(parents=True) - (skills / "SKILL.md").write_text("skill") - sentinel = tmp_path / "filter-executed" - original = craft.command - - def fake_host(args, cwd, timeout=30, *, env=None): - if args[0] == "claude": - (cwd / "app.py").write_text(craft.CASES["smell-review-only"].app + "\n") - (cwd / ".gitattributes").write_text("*.py filter=generated\n") - original(["git", "config", "filter.generated.clean", f"touch '{sentinel}'; cat"], cwd) - return subprocess.CompletedProcess(args, 0, '{"type":"result","subtype":"success","is_error":false}', "") - return original(args, cwd, timeout, env=env) - - monkeypatch.setattr(craft, "command", fake_host) - craft.run_pair(tmp_path / "results", "smell-review-only", "claude", None, skills.parent, 30) - assert not sentinel.exists() - patch = tmp_path / "results" / "claude" / "smell-review-only" / "without-skill" / "diff.patch" - assert "a/app.py" in patch.read_text() - - -def test_grading_fails_closed_without_backend(tmp_path, monkeypatch): - case = craft.CASES["smell-review-only"] - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - monkeypatch.setattr(craft.sys, "platform", "unsupported") - result = craft.grade(repo, case, before, head) - assert not result["checks"]["behavior_preserved_and_task_completed"] - assert "sandbox unavailable" in result["test_output"] - - -def test_generated_unittest_cannot_replace_grading_runner(tmp_path): - case = craft.CASES["house-focused-fix"] - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - (repo / "app.py").write_text(case.app.replace("?", "!")) - (repo / "unittest.py").write_text("raise AssertionError('generated unittest imported')\n") - result = craft.grade(repo, case, before, head) - assert all(result["checks"].values()), result - assert craft.SUITE_COMPLETED in result["test_output"] - - -def test_real_sandbox_timeout_keeps_partial_evidence(tmp_path, monkeypatch): - case = replace(craft.CASES["smell-review-only"], tests="", acceptance="import app") - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - (repo / "app.py").write_text("import time\nprint('partial grade', flush=True)\ntime.sleep(60)\n") - original = craft.command - - def short_timeout(args, cwd, timeout=30, *, env=None): - return original(args, cwd, 2 if env is not None else timeout, env=env) - - monkeypatch.setattr(craft, "command", short_timeout) - result = craft.grade(repo, case, before, head) - assert not result["checks"]["behavior_preserved_and_task_completed"] - assert result["grade_timeout"]["seconds"] == 2 - assert "partial grade" in result["grade_timeout"]["stdout"] - - -def test_linux_docker_is_restricted_and_failure_never_falls_back(tmp_path, monkeypatch): - monkeypatch.setattr(craft.sys, "platform", "linux") - monkeypatch.setattr(craft.shutil, "which", lambda name: "/usr/bin/docker") - calls = [] - - def unavailable(args, cwd, timeout=30, *, env=None): - calls.append((args, env)) - return subprocess.CompletedProcess(args, 125, "", "daemon/image unavailable") - - monkeypatch.setattr(craft, "command", unavailable) - result = craft.sandbox_tests(tmp_path) - assert result.returncode == 125 - args, env = calls[0] - for flag in ("--network=none", "--read-only", "--cap-drop=ALL", "--security-opt=no-new-privileges", "--pull=never"): - assert flag in args - assert args.count("--mount") == 1 - assert "python:3.12-slim" in args - assert set(env) == {"PATH", "HOME", "TMPDIR", "LANG"} - assert calls[1][0][1:3] == ["rm", "-f"] - assert len(calls) == 2 - - -@pytest.mark.parametrize("source", [ - "import os; os._exit(0)", - "import sys; sys.exit(0)", - "import os; os.write(1, b'\\xff')", -]) -def test_interrupted_or_invalid_output_grading_retains_pair_results(tmp_path, monkeypatch, source): - skills = tmp_path / "skills" / "smell-to-refactoring" - skills.mkdir(parents=True) - (skills / "SKILL.md").write_text("skill") - original = craft.command - - def fake_host(args, cwd, timeout=30, *, env=None): - if args[0] == "claude": - (cwd / "app.py").write_text(source) - return subprocess.CompletedProcess(args, 0, '{"type":"result","subtype":"success","is_error":false}', "") - return original(args, cwd, timeout, env=env) - - monkeypatch.setattr(craft, "command", fake_host) - results = craft.run_pair(tmp_path / "results", "smell-review-only", "claude", None, skills.parent, 30) - assert len(results) == 2 - for result in results: - root = tmp_path / "results" / "claude" / "smell-review-only" / result["mode"] - receipt = json.loads((root / "result.json").read_text()) - assert not receipt["checks"]["behavior_preserved_and_task_completed"] - assert not receipt["mechanical_pass"] - assert (root / "diff.patch").is_file() - assert (root / "files" / "app.py").read_text() == source - if "os.write" in source: - assert "\ufffd" in receipt["test_output"] - else: - assert receipt["grade_exit_code"] == 0 - assert craft.SUITE_COMPLETED not in receipt["test_output"] - - -@pytest.mark.parametrize("tests", [ - "", - "import os, unittest\nclass Interrupted(unittest.TestCase):\n def test_exit(self): os._exit(0)\n", -]) -def test_grader_requires_nonempty_completed_suite(tmp_path, tests): - case = replace(craft.CASES["smell-review-only"], tests=tests, acceptance="") - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - result = craft.grade(repo, case, before, head) - assert not result["checks"]["behavior_preserved_and_task_completed"] - - -@pytest.mark.parametrize("kind", ["fifo", "symlink", "hardlink"]) -def test_git_metadata_unsafe_files_are_rejected_without_git_read(tmp_path, monkeypatch, kind): - case = craft.CASES["smell-review-only"] - repo = craft.prepare(tmp_path / "fixture", case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - config = repo / ".git" / "config" - config.unlink() - outside = tmp_path / "outside" - outside.write_text("not Git config") - if kind == "fifo": - os.mkfifo(config) - elif kind == "symlink": - config.symlink_to(outside) - else: - os.link(outside, config) - - def forbidden(*args, **kwargs): - pytest.fail("Unsafe metadata must not reach a command") - - monkeypatch.setattr(craft, "command", forbidden) - result = craft.grade(repo, case, before, head) - assert ".git/config" in result["rejected_files"] - assert not result["checks"]["fixture_files_safe"] - assert not result["checks"]["no_commits"] - - -@pytest.mark.parametrize("failure", ["timeout", "nonzero", "oserror", "fifo"]) -def test_git_metadata_failures_retain_pair_receipts(tmp_path, monkeypatch, failure): - skills = tmp_path / "skills" / "smell-to-refactoring" - skills.mkdir(parents=True) - (skills / "SKILL.md").write_text("skill") - original = craft.command - generated = set() - - def fake(args, cwd, timeout=30, *, env=None): - if args[0] == "claude": - generated.add(cwd) - (cwd / "generated.txt").write_text("retained") - if failure == "fifo": - (cwd / ".git" / "config").unlink() - os.mkfifo(cwd / ".git" / "config") - return subprocess.CompletedProcess(args, 0, '{"type":"result","subtype":"success","is_error":false}', "") - if args[:2] == ["git", "rev-parse"] and cwd in generated: - if failure == "timeout": - raise subprocess.TimeoutExpired(args, timeout, output=b"metadata stdout", stderr=b"metadata stderr") - if failure == "oserror": - raise OSError("metadata unavailable") - if failure == "fifo": - pytest.fail("FIFO metadata must not reach Git") - return subprocess.CompletedProcess(args, 128, "", "invalid metadata") - return original(args, cwd, timeout, env=env) - - monkeypatch.setattr(craft, "command", fake) - results = craft.run_pair(tmp_path / "results", "smell-review-only", "claude", None, skills.parent, 30) - assert len(results) == 2 - for result in results: - root = tmp_path / "results" / "claude" / "smell-review-only" / result["mode"] - receipt = json.loads((root / "result.json").read_text()) - assert not receipt["checks"]["no_commits"] - assert not receipt["mechanical_pass"] - assert (root / "diff.patch").is_file() - assert (root / "files" / "generated.txt").read_text() == "retained" - if failure == "timeout": - assert receipt["grade_timeout"] == {"seconds": 30, "stdout": "metadata stdout", "stderr": "metadata stderr"} - elif failure == "fifo": - assert ".git/config" in receipt["rejected_files"] - else: - assert "metadata" in receipt["test_output"] - - -def test_nested_traversal_error_is_rejected_and_setup_raises(tmp_path, monkeypatch): - blocked = tmp_path / "parent" / "blocked" - blocked.mkdir(parents=True) - (tmp_path / "retained.txt").write_text("retained") - original = os.open - - def denied(path, *args, **kwargs): - if path == "blocked": - raise PermissionError(13, "denied", path) - return original(path, *args, **kwargs) - - monkeypatch.setattr(craft.os, "open", denied) - rejected = [] - assert craft.snapshot(tmp_path, rejected) == {"retained.txt": b"retained"} - assert rejected == ["parent/blocked"] - with pytest.raises(PermissionError): - craft.snapshot(tmp_path) - - -def test_root_scandir_error_fails_closed(tmp_path, monkeypatch): - def denied(path): - raise PermissionError(13, "scandir denied", path) - - monkeypatch.setattr(craft.os, "scandir", denied) - rejected = [] - assert craft.snapshot(tmp_path, rejected) == {} - assert rejected == ["."] - - -@pytest.mark.parametrize("failure", ["directory", "open", "read", "live-directory", "live-file"]) -def test_unreadable_paths_reject_without_losing_pair_artifacts(tmp_path, monkeypatch, failure): - if failure.startswith("live-") and os.geteuid() == 0: - pytest.skip("chmod cannot deny root access") - skills = tmp_path / "skills" / "smell-to-refactoring" - skills.mkdir(parents=True) - (skills / "SKILL.md").write_text("skill") - original_command, original_open, original_fdopen = craft.command, os.open, os.fdopen - original_snapshot = craft.snapshot - blocked_inodes = set() - blocked_paths = [] - - def fake_host(args, cwd, timeout=30, *, env=None): - if args[0] != "claude": - return original_command(args, cwd, timeout, env=env) - blocked = cwd / "blocked" - if "directory" in failure: - blocked.mkdir() - (blocked / "hidden.txt").write_text("hidden") - else: - blocked.write_text("unreadable") - blocked_inodes.add(blocked.stat().st_ino) - blocked_paths.append(blocked) - if failure.startswith("live-"): - blocked.chmod(0) - (cwd / "retained.txt").write_text("retained\n") - return subprocess.CompletedProcess(args, 0, '{"type":"result","subtype":"success","is_error":false}', "") - - def denied_open(path, *args, **kwargs): - if path == "blocked" and failure in {"directory", "open"}: - raise PermissionError(13, "denied", str(path)) - return original_open(path, *args, **kwargs) - - @contextmanager - def denied_read(fd, *args, **kwargs): - with original_fdopen(fd, *args, **kwargs) as source: - if failure == "read" and os.fstat(fd).st_ino in blocked_inodes: - yield Mock(wraps=source, read=Mock(side_effect=PermissionError("read denied"))) - else: - yield source - - def restricted_snapshot(*args, **kwargs): - with monkeypatch.context() as capture: - capture.setattr(craft.os, "open", denied_open) - capture.setattr(craft.os, "fdopen", denied_read) - return original_snapshot(*args, **kwargs) - - monkeypatch.setattr(craft, "command", fake_host) - monkeypatch.setattr(craft, "snapshot", restricted_snapshot) - try: - results = craft.run_pair(tmp_path / "results", "smell-review-only", "claude", None, skills.parent, 30) - assert len(results) == 2 - for result in results: - root = tmp_path / "results" / "claude" / "smell-review-only" / result["mode"] - receipt = json.loads((root / "result.json").read_text()) - assert receipt["rejected_files"] == ["blocked"] - assert not receipt["checks"]["fixture_files_safe"] - assert not receipt["mechanical_pass"] - assert (root / "stdout.jsonl").is_file() - assert "+retained\n" in (root / "diff.patch").read_text() - assert (root / "files" / "retained.txt").read_text() == "retained\n" - finally: - for blocked in blocked_paths: - if blocked.exists(): - blocked.chmod(0o700) - - -@pytest.mark.parametrize("cleanup", ["nonzero", "oserror", "timeout", "removed"]) -@pytest.mark.parametrize("grading", ["passed", "failed", "timeout", "oserror"]) -def test_docker_cleanup_preserves_grading_evidence(tmp_path, monkeypatch, cleanup, grading): - case = craft.CASES["smell-review-only"] - repo = craft.prepare(tmp_path, case) - before = craft.snapshot(repo) - head = craft.command(["git", "rev-parse", "HEAD"], repo).stdout.strip() - original = craft.command - calls = [] - monkeypatch.setattr(craft.sys, "platform", "linux") - monkeypatch.setattr(craft.shutil, "which", lambda name: "/usr/bin/docker") - - def fake(args, cwd, timeout=30, *, env=None): - if args[0] == "git": - return original(args, cwd, timeout, env=env) - calls.append(args) - if args[1] == "run": - if grading == "timeout": - raise subprocess.TimeoutExpired(args, 30, output=b"partial grade", stderr=b"original timeout") - if grading == "oserror": - raise OSError("original grading error") - return subprocess.CompletedProcess(args, 0 if grading == "passed" else 7, - craft.SUITE_COMPLETED + "\n", "original grading output") - assert args[1:3] == ["rm", "-f"] - if cleanup == "oserror": - raise OSError("cleanup unavailable") - if cleanup == "timeout": - raise subprocess.TimeoutExpired(args, 30, stderr=b"cleanup stalled") - return subprocess.CompletedProcess(args, 1, "", "No such container: " + args[-1] if cleanup == "removed" else "cleanup refused") - - monkeypatch.setattr(craft, "command", fake) - result = craft.grade(repo, case, before, head) - assert len(calls) == 2 # No unsandboxed fallback. - assert result["checks"]["behavior_preserved_and_task_completed"] == (grading == "passed" and cleanup == "removed") - if cleanup == "removed": - assert result["sandbox_cleanup_errors"] == [] - else: - error, = result["sandbox_cleanup_errors"] - assert error["container"] == calls[0][calls[0].index("--name") + 1] == calls[1][-1] - assert "cleanup" in error["error"] or "timed out" in error["error"] - if grading == "timeout": - assert result["grade_timeout"] == {"seconds": 30, "stdout": "partial grade", "stderr": "original timeout"} - elif grading == "oserror": - assert "original grading error" in result["test_output"] - else: - assert result["grade_exit_code"] == (0 if grading == "passed" else 7) - assert "original grading output" in result["test_output"] - - -def test_patch_preserves_missing_newlines_and_empty_file_changes(tmp_path, monkeypatch): - skills = tmp_path / "skills" / "smell-to-refactoring" - skills.mkdir(parents=True) - (skills / "SKILL.md").write_text("skill") - original_prepare, original_command = craft.prepare, craft.command - - def prepare(root, case): - repo = original_prepare(root, case) - (repo / "no-newline.txt").write_text("old") - (repo / "deleted.txt").touch() - (repo / "unchanged.txt").touch() - return repo - - def fake_host(args, cwd, timeout=30, *, env=None): - if args[0] == "claude": - (cwd / "no-newline.txt").write_text("new") - (cwd / "deleted.txt").unlink() - (cwd / "added.txt").touch() - return subprocess.CompletedProcess(args, 0, '{"type":"result","subtype":"success","is_error":false}', "") - return original_command(args, cwd, timeout, env=env) - - monkeypatch.setattr(craft, "prepare", prepare) - monkeypatch.setattr(craft, "command", fake_host) - monkeypatch.setattr(craft, "sandbox_tests", lambda work, cleanup_errors=None: subprocess.CompletedProcess([], 0, craft.SUITE_COMPLETED + "\n", "")) - results = craft.run_pair(tmp_path / "results", "smell-review-only", "claude", None, skills.parent, 30) - for result in results: - root = tmp_path / "results" / "claude" / "smell-review-only" / result["mode"] - patch = (root / "diff.patch").read_text() - assert "-old\n\\ No newline at end of file\n+new\n\\ No newline at end of file\n" in patch - assert "--- /dev/null\n+++ b/added.txt\n" in patch - assert "--- a/deleted.txt\n+++ /dev/null\n" in patch - assert "unchanged.txt" not in patch - assert {"added.txt", "deleted.txt", "no-newline.txt"} <= set(result["changed_files"]) - assert (root / "files" / "added.txt").read_bytes() == b"" - - -def test_successful_hosts_preserve_usage(): - claude = craft.decode_result("claude", '{"type":"result","subtype":"success","is_error":false,"result":"done","usage":{"input_tokens":10}}') - codex = craft.decode_result("codex", '{"type":"turn.completed","usage":{"input_tokens":20}}\n') - - assert claude["completed"] and claude["usage"]["input_tokens"] == 10 - assert codex["completed"] and codex["usage"]["input_tokens"] == 20 From 29f8b06ed45ca22903e684878192733ee78a229d Mon Sep 17 00:00:00 2001 From: archae0pteryx Date: Fri, 4 Dec 2026 16:22:47 -0800 Subject: [PATCH 2/2] fix(lets-finish): clarify worktree transfer and unrelated local commits Co-authored-by: Cursor --- skills/lets-finish/SKILL.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/skills/lets-finish/SKILL.md b/skills/lets-finish/SKILL.md index 77d1b94..9ca1550 100644 --- a/skills/lets-finish/SKILL.md +++ b/skills/lets-finish/SKILL.md @@ -64,11 +64,16 @@ When on the default branch (or detached `HEAD`): if there are no uncommitted changes and no commits ahead of `origin/`, stop and say there is nothing to finish. Otherwise, create a new branch or linked worktree for the work automatically without asking — never pause to ask whether to create one, -and never push to the default branch. If local `` had unpushed -commits, move them onto the new branch and reset local `` to -`origin/` once the branch holds them. When the branch has no open PR, -run step 0 for it first. Run steps 1 to 4 for each PR in turn; steps 5 to 7 run -once, over all of them. +and never push to the default branch. When using a linked worktree, transfer +only this work's uncommitted changes into it (e.g., via patch or stash) and +verify they are present there before continuing; when branching in place, +`git switch -c ` carries them directly. Inspect any local commits ahead +of `origin/` so only commits belonging to this work land on the PR +branch; reset local `` to `origin/` only once every commit it +held is safely preserved on a branch (preserve unrelated commits untouched on +`` or on a separate branch). When the branch has no open PR, run step +0 for it first. Run steps 1 to 4 for each PR in turn; steps 5 to 7 run once, +over all of them. ### Check the PR and what it touches, before any review or merge