Repository navigation
agent-readiness 0.2.1: verdicts with evidence, safer runs, a stricter Level 2, and seven more languages - #90
Merged
ericzakariasson merged 1 commit intoDec 3, 2026
Conversation
…evel 2, and seven more languages Squashed release commit for software-factory/agent-readiness 0.2.1 on top of cursor/cookbook main (c912b7e). Includes: - software-factory/agent-readiness/ (0.2.1 release candidate, scriptsDigest 866dd6b264025dc300ae5d15856dcd92aa53b5732da5aa3acea3e50c3549d584, rubric 2026-12-beta) - software-factory/agent-readiness/support/VALIDATION.json (digest-bound offline validation attestation covering typecheck, unit tests, instrument freeze, scripted negative evals, pinned trials, blind holdout, and --release-check) - Root README.md Agent readiness entry update (+3/-1, preserving upstream link fixes) Upstream .github/workflows/ is left completely untouched (zero workflow files added or modified; zero extra GitHub Actions minutes consumed). Co-authored-by: Andrew <neverfield@users.noreply.github.com>
ericzakariasson
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This brings
software-factory/agent-readinessfrom the 0.1.0 skill merged in #86 to 0.2.1, the first release of the 0.2 line. 0.2.0 was never tagged.Six independent reviews of 0.1.0 found blockers in safety, accuracy and scale, and only Node and Python were scored. A second round of reviews followed, plus an architecture review, 28 pinned real-repo trials, and blind holdout evaluation across both VM and container environments. Every change was built on a development branch and merged in small trains, each judged on its own tree's CI run, with every level change predicted in the PR that caused it. Where a registry outage or rate limit, not the change, turned a job red, the train merged with that cause disclosed in its merge commit (see Known limits). Blind holdout evaluation passed both halves on this code, and the 5-repeat
--release-checkeval run is in progress with all completed usable runs passing every gate (continuing post-merge; see Release check).Outside
software-factory/agent-readiness/, the only change is a 3-line update to the Agent readiness section in the rootREADME.md(+3/-1). Upstream.github/workflows/is left completely untouched (zero workflow files added or modified; zero extra GitHub Actions minutes consumed). Heavy Docker, pinned-trial, blind-holdout, and keyed eval suites were executed offline against the bound release digests and are attested insoftware-factory/agent-readiness/support/VALIDATION.json. Released rubrics (2026-10-alphaand2026-11-alpha) are byte for byte unchanged. New audits use the new rubric2026-12-beta, and audits sealed under older rubrics are never rescored.2026-11-beta, an interim rubric no release used, is included so audits sealed under it during 0.2 still render.How to review this PR
Roughly 87% of the 863 changed files are diagnostic fixtures, tests, trial recordings, eval artifacts, and auto-generated sample reports. Start with the ~90 core files below:
software-factory/agent-readiness/support/VALIDATION.json— digest-bound offline validation attestation coveringtypecheck, unit tests,instrument-freeze, 30 scripted negative evals, 28 pinned real-repo trials, blind holdout, and--release-check, plus a one-linenodeverification snippet (reproduce.verifyBinding).README.md(cookbook root) — 3-line Agent readiness section update (+3/-1, preserving upstream link fixes)..github/workflows/is untouched (0 files changed).software-factory/agent-readiness/skill/agent-readiness/SKILL.md,remediate.md, andreferences/{checks,levels,report,supported}.md.skill/agent-readiness/rubric/2026-12-beta.json(active 0.2.1 scoring rules) andskill/agent-readiness/schema/{audit,report}.schema.json.skill/agent-readiness/RELEASE.json(candidate: trueuntil the post-merge release tag commit).software-factory/agent-readiness/skill/agent-readiness/scripts/:readiness.ts, pluslib/{session,guard,proofenv,container,replay,mutate,secrets,instructions,diagnose,attribute,verdict,levels,model,redact,seal,teardown,cleanup,workspace}.tsandlib/discover/+lib/plan/.software-factory/agent-readiness/skill/agent-readiness/scripts/lib/languages/{node,python,go,rust,jvm,dotnet,php,ruby,others}.tsand shared helpers (language.ts,ci-helpers.ts,fault-sites.ts,probes.ts).software-factory/agent-readiness/support/tools/{instrument-freeze,ci-scope,release-manifest,test-shards,fixture,generate-sample}.tsandno-skips.sh.support/fixtures/(498 files): synthetic test repos andexpected.json/truth.json.tests/(145 files): unit/regression tests and captured tool-output snapshots (tests/tool-outputs/).support/evals/(50 files): SDK eval harness, cases,HILLCLIMB.md, and generatedbaseline.json.support/trials/(34 files): pinned real-repo trial recordings (trials.json) andtruth/snapshots.examples/(16 files): auto-generated sample HTML/MD/JSON reports (npm run sample).support/holdout/(9 files): blind holdout protocol, schemas, thresholds, scorer (score.ts), and adapter (observe.ts).skill/agent-readiness/rubric/2026-11-beta.json: interim rubric kept only so pre-release 0.2 audits render.Subsystem file map (863 files changed, +84,992 / -6,364 vs
cursor/cookbookmain; 0 files under.github/)README.md(cookbook root)+3 / -1support/(VALIDATION.json,README.md,RELEASE.md,AGENTS.md,examples/)+225 / -68skill/agent-readiness/(SKILL.md,references/,remediate.md,RELEASE.json,package.json)+253 / -102skill/agent-readiness/rubric/+1,689 / -02026-12-beta.json(active);2026-11-beta.json(interim)skill/agent-readiness/schema/+74 / -12audit.schema.json,report.schema.jsonskill/agent-readiness/scripts/(core CLI & libs)+13,178 / -2,768skill/agent-readiness/scripts/lib/languages/+7,784 / -0others.tssupport/tools/+862 / -26software-factory/agent-readiness/(root docs & package config)+240 / -21README.md,CHANGELOG.md,AGENTS.md,package*.json,tsconfig.jsontests/+19,313 / -336support/fixtures/+9,211 / -104support/evals/+15,210 / -2,387HILLCLIMB.md, generatedbaseline.json(skim)support/trials/+8,342 / -0examples/+7,212 / -539npm run sample(skim)support/holdout/+1,396 / -0score.ts,observe.ts(skim)+84,992 / -6,364.github/workflows/: 0 files changedArchitecture at a glance
flowchart TB subgraph OLD["Before (0.1)"] direction LR O1["Static checks + unisolated host fallback"] O2["Machine failures blamed on repo<br/>(Level 0, not bootable)"] O3["Free-text narration +<br/>separate report writers"] O1 --> O2 --> O3 end subgraph NEW["After (0.2.1)"] direction LR subgraph IN["1. Intake & Session"] direction TB A["Committed tree + git history<br/>profile.ts, discover/, contract.ts"] B["Session & optional shell guard<br/>session.ts, guard.ts"] A --> B end subgraph ENV["2. Proof Environment (proofenv.ts, container.ts)"] direction TB C{"Docker or<br/>disposable VM?"} D["Clean Docker container<br/>--rm, --cap-drop=ALL, offline tests"] E["Disposable VM + --allow-host<br/>detected or terminal-confirmed yes"] F["No runtime / unapproved host<br/>Unproven on this machine"] C -->|"Docker"| D C -->|"Disposable + yes"| E C -->|"Otherwise"| F end subgraph RUN["3. Replay & Level 2 Checks"] direction TB G["Env self-check, install, build<br/>lint/typecheck + canary, offline tests<br/>replay.ts"] H["Planted faults (Wilson bound + control)<br/>secrets.ts, instructions.ts, heldout.ts"] G --> H end subgraph SCORE["4. Attribution & Sealed Report"] direction TB I["Grounded verdicts & levels<br/>diagnose.ts, attribute.ts, verdict.ts, levels.ts"] J["Single model to report.json/md/html<br/>slot narration, redact.ts, seal.ts, teardown.ts"] I --> J end B --> C D --> G E --> G F --> I H --> I endFigure 1: Before (0.1) vs After (0.2.1) audit pipeline — replacing unisolated host fallback and free-text narration with an opt-in session and shell guard, isolated container or disposable-VM proof environment, grounded verdict attribution, and single-model sealed reporting.
flowchart LR subgraph OFF["Offline Validation Suites (run against bound digests)"] direction TB V1["Static & unit suites<br/>npm run typecheck<br/>npm test (1,544 pass / 0 fail)<br/>3-shard Docker + no-skips.sh"] V2["Gate & negative evals<br/>support/tools/instrument-freeze.ts<br/>30 Docker scripted negative evals"] V3["Real-repo trials<br/>28 pinned repos across 4 Docker shards<br/>1,257 asserted fields in trials.json"] V4["Blind holdout & release check<br/>VM + Container halves PASS (K=0)<br/>5-repeat --release-check (46/46 usable pass)"] end subgraph BIND["4 Canonical Digests (dirty: false)"] direction TB B1["RELEASE.json scriptsDigest<br/>866dd6b2...d584"] B2["currentBinding()<br/>scripts: 1bdb3aef82f1d6e4<br/>rubric: c430bb2e06df80dc<br/>evals: 81af70878321d9c9"] end subgraph UP["Upstream cursor/cookbook PR"] direction TB A1["Checked-in attestation<br/>support/VALIDATION.json<br/>+ one-line verifyBinding check"] A2["Upstream .github/workflows/<br/>UNTOUCHED (0 files changed,<br/>0 extra Actions minutes)"] A1 --> A2 end V1 --> B1 V1 --> B2 V2 --> B2 V3 --> B2 V4 --> B2 B1 --> A1 B2 --> A1Figure 2: Offline validation and checked-in attestation flow — heavy Docker, trial, blind-holdout, and keyed eval suites run offline against the four canonical release digests and are attested in
support/VALIDATION.json, keeping upstream.github/workflows/untouched.flowchart LR subgraph FILES["Repository Paths"] P1["skill/agent-readiness/<br/>scripts/, schema/, templates/, package.json"] P2["skill/agent-readiness/<br/>SKILL.md, remediate.md, references/"] P3["skill/agent-readiness/rubric/"] P4["support/evals/{lib,cases,run.ts},<br/>support/fixtures/, support/tools/fixture.ts"] P5["support/trials/, known-failures.json,<br/>holdout scorer, CI gate tools<br/>(.github/workflows/ untouched upstream)"] P6["RELEASE.json, support/VALIDATION.json,<br/>baseline.json, README.md,<br/>CHANGELOG.md, tests/*.test.ts"] end subgraph REL["RELEASE.json (workspace.ts skillDigest)"] D0["scriptsDigest (seal & verify-seal)<br/>866dd6b2...d584"] end subgraph BIND["currentBinding() (evals/lib/binding.ts)"] D1["scripts: 1bdb3aef82f1d6e4"] D2["rubric: c430bb2e06df80dc"] D3["evals: 81af70878321d9c9"] end subgraph FREEZE["instrument-freeze.ts (sideOf + gate)"] Z1["scripts side"] Z2["instrument side<br/>(fixtures: expected/truth only)"] Z3["other (unfrozen)"] ZG["Freeze gate check:<br/>scripts + instrument -> needs exception<br/>assertion ledger drop -> needs reason"] Z1 --> ZG Z2 --> ZG end P1 --> D0 P3 --> D0 P1 --> D1 P2 --> D1 P3 --> D2 P4 --> D3 P1 --> Z1 P2 --> Z1 P4 --> Z2 P5 --> Z2 P3 --> Z3 P6 --> Z3Figure 3: Digest and freeze boundaries —
RELEASE.jsonscriptsDigest,currentBinding()release-run digests, andinstrument-freeze.tsclassification (showing whyRELEASE.json,support/VALIDATION.json, and docs/test updates do not invalidate the four bound digests, and.github/workflows/is untouched upstream).flowchart LR subgraph L2["Level 2 Strictness (rubric 2026-12-beta)"] direction TB G1["clean.offline<br/>Tests pass with network cut<br/>(confirmed on retry)"] G2["verify.canonical_interface<br/>Build/lint/typecheck pass<br/>+ typecheck canary fails on error"] G3["verify.behavioral_oracle<br/>Planted faults >= 60% caught<br/>& 97.5% Wilson LB >= 40%"] G4["instructions<br/>Agent file commands & paths valid<br/>(AGENTS/CLAUDE/rules/skills/Copilot)"] G5["safety<br/>No blocking secrets in shipped code<br/>review values fixed/waived, full scan"] GATE["Level 2 Proven<br/>(per-component lockfile gates<br/>repo-wide scenario only)"] G1 --> GATE G2 --> GATE G3 --> GATE G4 --> GATE G5 --> GATE end subgraph LANG["Language Support (scripts/lib/languages/)"] direction TB ROOT["discover/ + languages/"] S8["Container & disposable VM (8)<br/>Node (npm/pnpm/Yarn/Bun), Python (pip/uv/Poetry),<br/>Go, Rust, Java & Kotlin (jvm.ts), .NET, PHP"] S1["Host mode only in 0.2.1 (1)<br/>Ruby (ruby.ts, --runtime none --allow-host)<br/>container mode yields undetermined (deferred to 0.3)"] R6["Recognized, not scored (others.ts)<br/>Swift, Dart, Elixir, Terraform, C/C++, Android<br/>+ Windows .NET & Xcode (blocked on Linux)"] ROOT --> S8 ROOT --> S1 ROOT --> R6 endFigure 4: Level 2 strictness requirements under
2026-12-betaand the 9 supported languages acrossscripts/lib/languages/(8 container/VM-scored, Ruby host-mode only in 0.2.1, plus 6 recognized stacks and platform-blocked targets).What a 0.1 user notices first
--allow-host) and asked for once per audit. The report quotes the user's yes.--runtime podmanis refused until rootless Podman is tested.--answer yesin their voice records nothing; with no terminal, the user runs the command in their own. A recorded yes reads "declared by the user".readiness session startholds an audit's session and the user's yes, and the seal clears them.readiness guard installadds a hook, kept out of git, that refuses the repo's own commands on the host during a session until the yes is recorded. It also refuses reads of the draft records and the planted-fault store.guard uninstallrestores.cursor/hooks.jsonbyte for byte.--rmand carry owner labels, signals tear everything down, host-mode temp-tree cleanup handles read-only module caches without breaking the seal, andreadiness cleanupremoves strays.A stricter, better-founded Level 2
file#name, up to 200 of them.requirements.txtthat pins every package with==. The lockfile still gates only the repo-wide scenario, not the standard Level 2.Experiments before blame
The report
report.json.repro.report.json.readiness audit --held-outmines up to 5 recent merged changes per component whose own tests fail when the change is reverted. It plants faults on their changed lines, with and without the change's own tests, on a budget of its own. The results show in part 5 andreport.json, and decide no level. Without the flag the audit is unchanged.Discovery and languages
--groupinstalls on older Python installers.undetermined(Ruby container verification deferred to 0.3; use --runtime none (host)) rather than sealing a level. Host-mode Ruby (--runtime none --allow-host) remains supported.Evals, trials and the release gate
support/trials/trials.jsonasserts 1,257 recorded fields).support/evals/HILLCLIMB.mdrecords rounds 1 to 31. Rounds 10 to 28 are measured from the recorded runs, with before and after on the same cases.Release check
The 5-repeat
--release-checkeval run is running oncb9a21e2, whose boundscripts,rubric, andevalsdigests are identical to this PR head (dec5f24d) and attested insoftware-factory/agent-readiness/support/VALIDATION.json. At the current serial pace (~9 days for all ~724 runs), the full 5-repeat run is continuing post-merge rather than blocking 0.2.1; a separate non-blocking follow-up PR is redesigning--release-checkto finish in under ~3 hours. Partial results so far oncb9a21e2show 48 of ~724 runs completed: all 46 usable runs pass all 6 hard gates with 0 flaky gates, and one agent case lost 2 of 5 repeats to the 40-minute worker timeout (its other 3 repeats passed). Both blind holdout halves passed on the exact same digests.currentBinding()digests (support/evals/lib/binding.ts):scripts1bdb3aef82f1d6e4,rubricc430bb2e06df80dc,evals81af70878321d9c9(dirty: false), identical acrosscb9a21e2and this PR headdec5f24d(attested insupport/VALIDATION.json).RELEASE.jsonscriptsDigest(verified by the seal andverify-sealoverscripts/,rubric/,schema/,templates/andpackage.json):866dd6b264025dc300ae5d15856dcd92aa53b5732da5aa3acea3e50c3549d584.--release-check(partial oncb9a21e2; continuing post-merge)--release-checkto finish in under ~3 hours.cb9a21e2)tests/known-failures.jsonis empty)support/trials/trials.json(including the instrument-only R2 trial re-record forzustandandapollo-client, leavingscriptsDigestandcurrentBinding()unchanged fromcb9a21e2). Shards 1/4, 2/4, and 4/4 are green; shard 3/4 reflects only externalpnpmversion drift (12.23.0 -> 12.25.1) onumamihost.Known limits
undetermined(Ruby container verification deferred to 0.3; use --runtime none (host)) rather than sealing a level. Use--runtime none --allow-host(host mode) to verify Ruby repositories in 0.2.1.--held-outwording.cursor/cookbookhas no license file, so nothing grants a license to copy the skill. The README says so.Asks
cursor/cookbook.agent-readiness-v0.2.1. After merging, runnpm run release-manifest -- --releaseinsoftware-factory/agent-readiness, commit theRELEASE.jsonit writes, and tag that commitagent-readiness-v0.2.1.--release, the manifest keeps"candidate": true, and every report says it matches "the agent-readiness-v0.2.1 release candidate manifest … that release isn't tagged yet".RELEASE.jsonis outside every digest the release run is bound to, and outside the scripts digest the seal checks, so that commit doesn't void the release run.verify-seal --release-refpin it. Until it exists, the Quickstart clone fails.For reviewers
.github/workflows/changes: upstreamcursor/cookbookCI is left completely untouched (zero workflow files added or modified; zero extra GitHub Actions minutes consumed). Heavy Docker, pinned-trial, blind-holdout, and keyed eval suites were run offline on the bound digests and are attested insoftware-factory/agent-readiness/support/VALIDATION.json.software-factory/agent-readiness/, reviewers can verify all four canonical digests (RELEASE.jsonscriptsDigestandcurrentBinding()) matchsupport/VALIDATION.jsonusingreproduce.verifyBindinginsupport/VALIDATION.json, and runnpm run typecheck+npm testdirectly with zero workflow dependencies.dec5f24d) on top ofcursor/cookbookmain(c912b7e4), touching onlysoftware-factory/agent-readiness/and 3 lines in rootREADME.md(preserving upstream's recentREADME.mdlink fixes and SDK CI workflow with zero extraneous diffs).Instrument-freeze exception: this is the single upstream PR for the 0.2 line, so it carries the scripts and the instrument that measured them together; the release run above is bound to both.
Testing
npm run typecheckpasses on the staging branch (dec5f24d).npm test(non-Docker unit suite, with.github/workflows/agent-readiness*.ymlabsent) passes locally ondec5f24d: 1,544 passed, 0 failed, 30 Docker-only skipped across 346 suites.support/VALIDATION.jsonreproduce.verifyBindingpasses ondec5f24d:OK: all 4 digests match support/VALIDATION.json (dirty: false).npm run check(typecheck and the full suite, including Docker fixture tests) passed offline on Linux on the bound digests, sharded across 3 runners withsupport/tools/no-skips.sh(0 skips,0 failures).support/tools/instrument-freeze.tspasses againstcursor/cookbookmain(c912b7e4) with the exception line above (862 files changed: 83 scripts, 126 instrument, 653 other, 1,257 asserted recorded fields, 0 asserting-less moves).cb9a21e2): both halves pass — VM (all K=0, R1 10/11, R2 8/9, R6 20/21) and Mac container (all K=0, K2 2→0, R3 3/3, R1/R2/R6 pass).support/trials/trials.json(including the instrument-only R2 trial re-record forzustandandapollo-client, leavingscriptsDigestandcurrentBinding()unchanged fromcb9a21e2). Shards 1/4, 2/4 (packwerkmatching its updated container-Ruby deferral tracking,mastodonandspreeunchanged), and 4/4 pass; shard 3/4 reflects only externalpnpm12.23.0 -> 12.25.1drift onumamihost.--release-check(partial oncb9a21e2; continuing post-merge): 48 of ~724 runs completed, 46 of 46 usable runs passing all 6 gates, 0 flaky gates; 1 agent case lost 2 of 5 repeats to the 40-minute worker timeout (its other 3 repeats passed). A separate non-blocking follow-up PR is redesigning--release-checkto finish in under ~3 hours.