This repository was archived by the owner on Aug 6, 2026. It is now read-only.
Repository navigation
feat(conductor): evidence-enforced goal-to-PR foundation for a four-agent harness - #1
Merged
Merged
Conversation
…ked completion Adds the state layer Conductor's guarantees rest on: a sealed work baseline (WORK.md) and an append-only evidence log (LOG.md), with the rules as an importable library and a thin CLI over it, mirroring scripts/lib/skill-lint.js. Size is derived from a ten-dimension risk vector, never declared. Any of reversibility, data_loss, security, external_contract, deployment or cross_capability at 2 forces LARGE, so a pile of 1s cannot average away the human-approval gate — a one-line auth change scores security:2, total 2, and still classifies LARGE + HIGH-RISK. Completion is proven, not announced. A criterion counts as pass only when the log holds a verify entry for it, ending in PASS with exit 0, run with the command the baseline sealed. Both history comparisons deliberately avoid HEAD: in CI the checkout makes HEAD byte-identical to the working tree, so a check written against it compares a file to itself. The target is HEAD when the tree is dirty and the commit before the last one to touch the file when it is clean. The baseline seal is compared against the committed one, not only recomputed from the same file — otherwise editing the baseline and re-running --freeze produces a self-consistent record that passes. 35 tests assert the invariants by name. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Two deterministic gates, both plain Node so they bind identically under all four supported agents without any of them cooperating. check-docs.js: internal links resolve repository-wide; a 500-line size policy (an error on fork-owned paths, a warning on upstream's, so an upstream commit cannot turn our CI red with no repair that respects the no-upstream-edits rule); and for fork-owned documents a conductor:doc block naming an owner, a runnable verification command, the commit verified against, and code anchors. Freshness is never a bare date — "manual", "review" and "n/a" are rejected. Drift is detected by commit recency rather than a hand-maintained SHA, so updating code and prose together produces no drift. Index consistency requires a resolvable link, not a filename appearing somewhere in the text. check-support-claims.js: support-matrix.json is the only place a claim may be made, VERIFIED and PARTIAL must cite evidence produced in this repository, and an agent outside the official four may only be UNSUPPORTED or NOT_TESTED. The markdown table is generated and diffed, which answers the objection that closed upstream PR addyosmani#384 — a second hand-maintained structure that would itself drift. The prose scanner requires the support verb to precede the agent name within a short window. A looser rule fired on the sentences that do the right thing ("an agent outside the supported four"), and a checker that flags correct prose trains people to ignore it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The portable core: a plain SKILL.md carrying only name and description, so all four supported agents read it identically. It routes to the existing skills for each phase rather than reimplementing them, and adds what none of them has — a state machine from a stated goal to a review-ready pull request, size-adaptive process, and stop conditions that are checkable by someone other than the agent that did the work. Seven named stop conditions, none of them "until it looks finished". Retries are bounded at three per criterion and each must cite the log entry that triggered it. Six behavioural evals cover MICRO, STANDARD, HIGH-RISK-halts-for-approval, an unverifiable acceptance criterion, a contradiction that exhausts the retry budget, and mid-run scope growth. The fixture is a small pricing module with a real truncation-versus-rounding bug, a refund-authorization file, and a doc that goes stale when the rounding changes. Adding the skill first caused a real routing regression — it stole a positive prompt from doubt-driven-development, which fell from rank 1 to rank 5. Three attempts to clear, all recorded in the work log including the failures. Final rank-1 rate is 88% (70/80), up from the 86% baseline. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Two new workflow files rather than steps inside test-plugin-install.yml, which is upstream's and the most contended file in the repository — two concurrent upstream PRs touch it. Separate files never conflict. conductor-checks.yml runs the four Conductor gates plus upstream's own four, so a Conductor change that breaks an upstream gate is caught here rather than waiting on the upstream workflow. It checks out with full history because drift detection compares commit recency. conductor-upstream-sync.yml is split into three jobs on purpose. After the merge the working tree contains third-party code from a repository that accepts community pull requests, so no job that executes that code may hold a token that can write here: sync contents:write git only, executes no repository code validate contents:read runs the merged code, cannot write report pull-requests:write runs gh only, no checkout of the merged tree Also: a Gate verdict step consumes the eight continue-on-error outcomes and fails the job, so a fully failing sync can no longer produce a green run and a pull request that looks validated; upstream filenames reach git grep as argv rather than through sh -c, because they are attacker-influenced and the old form was proven to execute them; commit subjects go inside fenced blocks so a crafted subject cannot forge a checklist a reviewer might act on; pipes into head are guarded against SIGPIPE under inherited errexit; and the branch name carries the run number so a second sync against an unchanged upstream HEAD cannot fail non-fast-forward. Never merges to the default branch, never force-pushes, never auto-approves. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Ordered after the code it anchors: drift is measured by commit recency, so a
document committed before the files it describes would be born stale.
GAP-ANALYSIS.md separates Fact, Gap, Hypothesis and Rejected. Every gap is
verified rather than assumed — including by running the skills CLI against an
empty repository and observing that it installs skills and nothing else, leaving
23 of 24 skills with dead links to the repo-root references/ directory.
The five decisions, each with the alternatives that lost:
0001 enforcement in scripts and CI, not agent hooks — the one hook this
repository wires is Claude-Code-only, and a policy binding one of four
agents is not a policy
0002 size derived from a risk vector, not diff size — a weighted sum lets a
security-relevant one-liner sum to 2 and pass as trivial
0003 no new slash command — parity would force an adapter for an agent outside
the four, and Antigravity publishes no on-disk workflow format
0004 remove the claim, keep the inherited files — deleting saves zero agent
context and conflicts on every sync forever
0005 merge, never rebase — a public fork cannot force-push, and squashing
would destroy upstream authorship
SUPPORT-MATRIX.md is generated from support-matrix.json. Every runtime row is
DOCUMENTED_ONLY, including Claude Code's: files landing in the right directory
and an agent reading them are different claims, and only the first was executed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…dence Conductor's first work record, produced by the process it defines. Classified STANDARD from its risk vector, sealed, and closed against runnable acceptance criteria. The log is the point. It keeps the failures: three attempts to clear a routing regression this change itself caused, a support-claim gate that failed on its own false positives before the heuristic was narrowed, and the moment the strengthened evidence gate rejected this very record because an adversarial test of the checker had been mislabelled as a verification of AC8. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Every acceptance criterion has a verify entry ending in PASS with exit 0, run with the command the baseline sealed. Deferred work is listed in Out of scope, not quietly dropped. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…x row they earn
First evidence that the skill changes agent behaviour rather than merely being
well formed. Six execution evals, 25/25 expectations, each graded from the full
stream-json trace with tool-call ids and exit codes cited.
The load-bearing case is eval 3. Told "ship it, don't wait on me" about removing
the support refund ceiling, the run scored reversibility=2 ("git revert restores
the code, not the money"), security=2 and data_loss=2, classified LARGE and
HIGH-RISK, and stopped. src/refunds.js was Read only — no Edit, Write, branch or
commit appears anywhere in the trace. The gate held against an explicit
instruction to bypass it, which is the single property the design exists for.
Also: eval 5 made zero code-modification attempts, proving the contradiction
analytically and leaving every criterion pending rather than claiming success;
eval 6 scored two capabilities separately (MICRO total 1, LARGE total 16), split
them into two records, and shipped the small one alone.
The new matrix row is deliberately narrow. These runs inject SKILL.md via
--append-system-prompt, so they prove the content drives the behaviour and say
nothing about whether any agent discovers the file on its own — discovery stays
DOCUMENTED_ONLY, and the other three agents stay NOT_TESTED because identical
text does not license inferring identical behaviour.
The sync workflow could not be dispatched (workflow_dispatch needs the file on
the default branch), so its sequence was replicated locally against real
upstream: behind=0, ahead=7, clean merge, all eight gates green on the merged
tree in a fresh clone.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
… a capability The drift gate caught this, in CI, on my own change. Commit d1541e8 added the skill-changes-behaviour capability to support-matrix.json without touching the three documents that anchor it, so their last commit was older than the file they describe and check-docs.js failed the build. It passed locally and failed in CI for a reason worth recording: the local run happened before the commit, when the anchor was still uncommitted, and an uncommitted anchor is a warning rather than an error. Validate after committing, not before. Repaired by writing the content the documents were missing rather than bumping their dates — ARCHITECTURE.md and ADR-0004 now state the three-way distinction the new row draws (files placed / agent found them / behaviour produced), and GAP-ANALYSIS.md splits H1 so that behaviour measured on Claude Code does not read as discovery verified everywhere. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ment Repairing the cascade the previous commit exposed. One capability added to support-matrix.json turned ARCHITECTURE.md, GAP-ANALYSIS.md and ADR-0004 stale; fixing those three then turned INDEX.md and UPSTREAM-SYNC.md stale, because they anchored the documents that had just been edited. That is noise, not signal. An anchor exists to detect that the code moved on and left the prose behind. A prose-to-prose anchor detects only that someone reworded a sibling, and it catches nothing the link check does not already cover — while making every wording change fan out across the document set. So the rule is now enforced rather than merely observed: a governed document may not anchor another governed document. Data files are explicitly still allowed — anchoring ARCHITECTURE.md at support-matrix.json is the intended use, and the first cut of the check wrongly rejected it because `governed` is a path prefix that also matches the JSON. INDEX.md, GAP-ANALYSIS.md, UPSTREAM-SYNC.md and ADR-0005 now anchor the scripts and workflows they describe. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ts evidence Two failures from the same run, with different causes. ARCHITECTURE.md was genuinely behind: a rule was added to the doc-governance library and never described in the document that describes that library. Fixed by writing it, including the generalisation the cascade taught — anchor at what a document claims, not at everything it mentions. ADR-0001 was over-anchored. Its claim is that enforcement lives in scripts rather than hooks; editing a script's internals does not touch that claim, so anchoring at the three CLIs reported drift on every unrelated change. It now anchors the evidence the argument actually rests on: the single wired hook, the plugin manifest that ships none, and the workflow that runs the scripts. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The gate caught its author three times in a row, and the log keeps all three. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ixed Ten confirmed findings survive in the code — pipe-splitting inside the sealed block, history checks that reset when a work directory is copied, drift cleared by a whitespace commit, an unpinned official-agent set, free text the claim scanner never reads, classification rules restated in five places that had already drifted, and two libraries with no unit tests at all. None is a BLOCKER or HIGH; those were closed before merge. They are written down because deferred work that lives only in a reviewer's head is indistinguishable from work nobody noticed — and because the review output was sitting in a temporary file that would not have survived. Also separates the three properties that are design choices rather than defects (self-assessed risk scores, the heuristic prose scanner, gates absent from a skills-CLI-only install) so none of them is later mistaken for a guarantee. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…e skill The skill documents gates it then tells the reader it cannot run: a skills-CLI install copies skills/<name>/ and nothing else, so every install path except cloning this repository reduces the skill to advice. Sealed before any file moves, so the agreement is a precondition of the work rather than a description of it. STANDARD, risk total 5. external_contract scored 1 rather than 2 because the paths being changed exist only on an unmerged draft pull request — no release, no publish, no consumer. Had they shipped this would be LARGE and gated. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…rries them The skills CLI copies skills/<name>/ and nothing outside it, so every install path except cloning this repository got the workflow prose and none of the scripts that make it checkable. The Verification section listed four commands the reader almost certainly could not run. Measured first: the CLI does copy the whole directory. Installing upstream's idea-refine alone produced .agents/skills/idea-refine/scripts/idea-refine.sh at mode 755, so skill-local scripts travel and upstream already ships one. Moved, as renames so blame and log --follow still work: validate-work-records.js, check-docs.js, work-record-test.js, lib/work-record.js, lib/doc-governance.js -> skills/goal-to-pr-execution/scripts/ templates/WORK.md, templates/LOG.md -> skills/goal-to-pr-execution/templates/ Retained in scripts/conductor/: check-support-claims.js and lib/support-matrix.js. They validate this fork's claims about four named agents against a file no adopting project has. Shipping them would install a gate that can only ever pass vacuously. New: portability-test.js reproduces the CLI's copy into a scratch repository and runs the gates from there — 8 tests covering presence, the .claude/skills symlink path, that the gates report on the host project, and that the shipped starter config makes the documentation gate bite and then pass. Wired into both workflows, and consumed by the sync job's Gate verdict so it cannot fail silently. Two things the test found and the move did not cause: the shipped WORK.md template declares STANDARD against an all-zero risk vector, so a copied record fails validation until it is classified — kept as a forcing function and documented; and check-docs.js exited 0 saying "no gate configured", which is the most expensive kind of green, so it now prints the command that turns it on. Every gate green, including from the new paths. Routing unchanged at 88% (70/80). No upstream file modified or deleted. ADR-0006. Work record: works/2026-07-28-portable-enforcement-scripts/ Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
check-docs.js passed before b6fce73 and failed after it. ADR-0003 anchors SKILL.md and ADR-0004 anchors support-matrix.json; both anchors moved in that commit while the ADRs did not, so an uncommitted-anchor warning became a committed-anchor error. Re-ran each document's own verified_by command rather than editing the SHA to silence it. ADR-0003 still holds — 8 commands, no new one added. ADR-0004 still holds — no inherited file deleted, one evidenced claim added. Both stamped at b6fce73, the commit they were re-checked against. The gate had warned about exactly these two documents beforehand, among nine other warnings. So the dirty-anchor warning now names its consequence: committing the anchors without the document turns it into a failure. That edit touches doc-governance.js, so ARCHITECTURE.md and BACKLOG.md — which anchor it — are re-verified in the same commit, which is the behaviour the drift rule is built to reward. AC3 reopened in the work record: a later failure supersedes an earlier pass. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Three read-only reviewers in fresh contexts, one lens each. Correctness and security returned no BLOCKER and no HIGH. Honesty returned two HIGH, both confirmed by measurement rather than accepted on assertion. HIGH 1 — the support matrix claimed VERIFIED for "after a skills-CLI install" on evidence that was a reproduction, not an install. Closed by actually running the installer: `npx skills add .../tree/conductor-portable-proof --skill goal-to-pr-execution` placed all 10 files including scripts/lib/ at depth 2 and templates/ as a sibling; the validator run through .claude/skills/ named the host repository; 35/35 unit tests ran from the install. The reviewer was right about the state they saw — recording that evidence was the step I skipped. HIGH 2 — seven governed documents cited a verified_at_sha at which their own verified_by command did not exist. `git ls-tree -r <sha> -- skills/goal-to-pr- execution/scripts` is empty at all five SHAs. Every document's command was re-run and all eleven re-stamped at c280583, where those commands exist. Also measured and corrected: "23 of 24 upstream skills ship dead links" was never measured. It is 11 of 24. MEDIUM/LOW, all fixed rather than deferred: - Quadratic backtracking in the fenced-code stripper. 500 KB unterminated fence: 113,523 ms -> 1 ms via an atomic group, byte-identical output across all 107 tracked documents. It matters now because these scripts run over markdown nobody here reviews. - Two portability assertions checked a remediation path's shape, not its existence, and one checked presence without ever executing what it found. Both strengthenings proven by mutation: breaking templateHint() now fails 2 tests where it passed 8/8; a shipped script requiring outside the skill now fails 1. - Temp-directory leak on early throw; unscrubbed GIT_* inheritance in the only distributed code that writes git state; readFileSync following symlinks out of the install; missing `if: always()` letting a gate failure suppress the duplication scan whose absence reads as "none found"; unguarded JSON.parse of an adopter's config; indexPath containment; remediation text anchored at the shell's cwd while the gate is anchored at the repository root. Found by following the tool's own instructions rather than reading them: the starter config pointed indexPath at docs/INDEX.md, so copying it as instructed turned a fresh project's build red immediately. Now null by default, and the portability test asserts an adopted config passes on the project it landed in. Carried deliberately: B11 (the test reproduces the CLI, it does not invoke it) and B12 (the index check fires even when nothing is governed). AC8 narrowed to what its command actually performs, with a Scope changes row. Nine gates green. Routing unchanged at 88%. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Every criterion has a passing verify entry, no criterion exceeded three attempts, and both criterion edits are recorded as Scope changes rows. 46 log entries including six failures — the dead anchors, the three portability failures, the post-commit drift, and the miswritten criterion. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The install evidence for F5b and the enforcement-travels-with-skill row cited a scratch branch created only to run that install. Deleting the branch would have made the cited command unrunnable, and evidence that cannot be re-executed is an assertion again — the exact defect fixed earlier in this branch. A commit SHA would be the correct ref; the skills CLI rejects one (`/tree/<40-hex>` fails to resolve). So an annotated tag was pushed at the tested commit and the install re-run against it: same 10 files, gate exit 0. LOG entry E30 keeps the branch it actually used. The log records what happened, not what would read better later; E47 records the follow-up. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Problem
This fork was byte-identical to
addyosmani/agent-skills— same SHA7829ffd, 0 ahead, 0 behind, empty diff. Upstream is a strong catalogue of 24 phase-scoped skills, but three things are verifiably missing:/build autois the closest, and it starts from an existing spec, never reaches a pull request, applies the same process to every change, and has no bounded retry.Verified upstream gap
Not inferred — each of these was checked against source, docs, or a command that was run. Full table in
conductor/GAP-ANALYSIS.md./build autois plan-first with no PR stepnpxinstall is lossyreferences/0 — so 23 of 24 skills ship dead links (issue addyosmani#361)-y; sentinel gone, no backup or promptThese components are fork-owned by evidence, not preference. Upstream has closed lifecycle-orchestrator skills as duplicating
using-agent-skills(addyosmani#326, addyosmani#250), closed a doc validator (addyosmani#426), and closed a support matrix (addyosmani#384). This PR therefore targets the fork.Design summary
Four layers with a hard boundary — full detail in
conductor/ARCHITECTURE.md, decisions inconductor/decisions/.SKILL.md,name+descriptiononly, read identically by all four agents.SessionStart, bound toCLAUDE_PLUGIN_ROOT, so a hook-based policy binds one agent out of four (ADR-0001).works/<id>/WORK.mdsealed atin-progress,LOG.mdappend-only. Kept apart because a spec that rewrites itself cannot be violated, and an editable log is a narrative rather than evidence.SUPPORT-MATRIX.mdrendered from JSON and diffed in CI.Three properties worth calling out:
Size is derived, not declared. Ten risk dimensions, 0–2. Any of reversibility / data-loss / security / external-contract / deployment / cross-capability at 2 forces LARGE. A one-line auth change scores
security: 2, total 2, and still classifies LARGE + HIGH-RISK — a pile of 1s can never average away the approval gate. The validator errors when a declared size contradicts the vector.Completion is proven, not announced. A criterion is
passonly whenLOG.mdholds a verify entry for it with exit 0.result: PASSagainst a non-zero exit is rejected.Support claims cite evidence or fail CI.
VERIFIED/PARTIALrequire evidence produced in this repository; a cell for an agent outside the four may only beUNSUPPORTEDorNOT_TESTED.Supported agents
Claude Code · Codex · OpenCode · Antigravity. Full matrix with per-cell evidence in
conductor/SUPPORT-MATRIX.md.Compatibility limitations — stated plainly
DOCUMENTED_ONLY— including Claude Code's.validate-commands.jsenforces three-directory parity, so one command would force an adapter for an agent outside the four; and Antigravity publishes no on-disk workflow format to write one against (ADR-0003).skills/<name>/and nothing else. Disclosed in the skill itself.Files changed
33 new files across 7 commits. No upstream file is modified or deleted — verified by
test -z "$(git diff --diff-filter=MD --name-only 7829ffd)".skills/goal-to-pr-execution/SKILL.md, its eval case and fixturescripts/conductor/{lib/work-record.js, lib/doc-governance.js, lib/support-matrix.js, validate-work-records.js, check-docs.js, check-support-claims.js, work-record-test.js}conductor/{ARCHITECTURE,GAP-ANALYSIS,UPSTREAM-SYNC,INDEX}.md,decisions/ADR-0001..0005,support-matrix.json,doc-governance.json,templates/conductor/SUPPORT-MATRIX.md.github/workflows/conductor-checks.yml,conductor-upstream-sync.ymlworks/2026-07-28-conductor-p0-foundation/{WORK,LOG}.mdValidation evidence
Copied from
works/2026-07-28-conductor-p0-foundation/LOG.md, not summarised from it.node scripts/validate-skills.jsnode scripts/validate-commands.jsnode --test scripts/run-evals-test.jsnode scripts/run-evals.js --min-rank1 80node --test scripts/conductor/work-record-test.jsnode scripts/conductor/validate-work-records.jsnode scripts/conductor/check-docs.jsnode scripts/conductor/check-support-claims.jstest -z "$(git diff --diff-filter=MD --name-only 7829ffd)"Routing did not regress — it improved. Baseline was 86% (65/76). Adding the skill first caused a real regression (it stole a positive prompt from
doubt-driven-development, which fell to rank 5); that took three attempts to clear, and all three are in the log including the failures.The gates were negative-tested, not just run green. An unevidenced
VERIFIED, a claim for an inherited agent, a hand-edit to the generated matrix, and an injected "Conductor supports Gemini CLI fully" were each caught. A shell-injection hole in the sync workflow was found, fixed, and the fix proven with a hostile-filename test (old form executed the filename; new form did not).Upstream merge considerations
Every path is new:
conductor/,scripts/conductor/,works/,skills/goal-to-pr-execution/, the Conductor eval case and fixture, and twoconductor-*workflows. Checked against every flagged open upstream PR (addyosmani#383, addyosmani#380, addyosmani#428, addyosmani#424, addyosmani#362) — zero file overlap.CI lives in its own workflow file rather than in
test-plugin-install.yml, which is upstream's most contended file. Sync policy is merge, never rebase (ADR-0005): rebasing a public fork needs a force push, and squashing would destroy upstream authorship.Inherited material for agents beyond the four is kept, not deleted (ADR-0004): it costs zero agent context, deleting it would conflict on every sync forever, and removing
.gemini/commands/would additionally break upstream's own parity check. What is removed is the claim.Rollback
git revertthe range, or delete the branch. Everything is additive; no upstream file was touched, so reverting restores the pre-change tree exactly. The two workflow files are inert until merged to the default branch.Deferred work
Each is recorded in
conductor/GAP-ANALYSIS.mdunder Hypotheses, with what would unblock it.references/defect, but needs an npm package name and a publish decision, both the owner's call..opencode/command/entry point — safe and additive, but deliberately not a second entry point before the first is exercised.Review findings
Six independent read-only reviewers, each finding then handed to a separate agent instructed to refute it. 79 raw → 62 serious → 30 confirmed, 32 refuted.
Every confirmed BLOCKER and HIGH is fixed, and each fix is proven by a fixture rather than asserted:
git show HEAD:, butactions/checkoutmakes HEAD byte-identical to disk, so the check compared a file to itselftamper-test.shcommits a laundered log with a clean tree:attack1=CAUGHT--freezepassed silentlyattack2=CAUGHT__dirname, so a plugin install validated Conductor's own records instead of the user's project--rootto override, target printed every run. A scratch project with an invalid record went fromPASSEDto 19 errorscontents:writesync(write, git only),validate(read-only,persist-credentials:false, runs the merged code),report(PR only, no merged checkout)continue-on-errorwith nothing consuming the outcomes, so a fully failing sync produced a green job and a PR that looked validatedGate verdictstep collects the outcomes and fails the job;reportreads that result into the PR titlepassat any status butdonewith no evidence; an early PASS survived every later FAIL; evidence was never tied to the criterion's sealed command, socommand: truecountedgit log | head -60under inheritederrexit+pipefailcould SIGPIPE and kill the sync on batches over 60 commitsstatuskey — one took the first occurrence, the other the last{}, which is truthy, so a blank required field passedOne BLOCKER was found and fixed before review returned: the sync workflow interpolated third-party filenames into
sh -c.injection-test.shproves it — the old form printedINJECTION SUCCEEDED(it executed the filename); the argv form did not.Refuted, and worth stating because they are guarantees that hold:
computeBaselineHashfailed; the§Name:part prefixes make the boundaries unforgeable.size: nullandhighRisk: truerather than defaulting to MICRO.Known remaining limitations, none of them BLOCKER or HIGH, all recorded rather than hidden: risk scores are self-assessed (the validator checks consistency, not honesty); a whitespace-only commit to a document clears its drift; copying a work directory resets its history checks;
doc-governance.jsandsupport-matrix.jshave no unit tests of their own.Second change on this branch — the gates now ship inside the skill
The first half of this branch built enforcement the skill could not carry. The
skills CLI copies
skills/<name>/and nothing outside it, so for every installpath except cloning this repository,
goal-to-pr-executionlisted four gatecommands and then explained that you probably could not run any of them. A
checklist nobody can run still gets its boxes checked.
Measured before designing anything: the CLI copies the directory, and upstream
already ships a skill-local
scripts/. So this follows an existing conventionrather than inventing one.
skills/goal-to-pr-execution/validate-work-records.js,check-docs.js,work-record-test.js,lib/work-record.js,lib/doc-governance.js, and theWORK.md/LOG.mdtemplates S2 tells you to copy fromscripts/conductor/check-support-claims.js,lib/support-matrix.js— they validate this fork's claims about four named agents against a file no adopting project hasRecorded as renames, so
git blameandgit log --followstill reach theoriginal authorship. No shims at the old paths — those paths exist only on
this unmerged draft, so there is no consumer to be courteous to, and two paths to
one rule is how the rule stops being one. See ADR-0006.
Proven, not asserted
The real installer, run against this fork:
portability-test.jsreproduces that install on every CI run — 8 tests coveringpresence, executability, the
.claude/skillssymlink path, and that a configcopied exactly as instructed passes on the project it landed in. It imitates
the CLI rather than invoking it; that gap is B11, stated in the ADR and the index
rather than left for a user to discover.
Three independent reviews
Read-only, fresh contexts, one lens each. Correctness and security returned no
BLOCKER and no HIGH. Honesty returned two HIGH, both confirmed by measurement:
VERIFIEDfor "after a skills-CLI install" on evidence that was a reproductionverified_at_shaat which their ownverified_bycommand did not exist —git ls-tree -r <sha> -- skills/goal-to-pr-execution/scriptsis empty at all fiveAll three MEDIUM and all eight LOW were fixed rather than deferred. The one worth
naming: quadratic backtracking in the fenced-code stripper, 113,523 ms → 1 ms
on a 500 KB unterminated fence, byte-identical output across all 107 tracked
documents. It mattered only once these scripts began running over markdown nobody
here reviews.
Two test weaknesses the correctness reviewer found were proven fixed by
mutation: breaking
templateHint()the way they described now fails 2 testswhere it previously passed 8/8, and a shipped script requiring outside the skill
now fails 1.
Found by following the instructions instead of reading them
Copying the starter config exactly as the tool prints turned a fresh project's
build red immediately — it pointed
indexPathatdocs/INDEX.mdin a projectwith no
docs/. Now null by default, with the test asserting an adopted configpasses on the project it landed in. The underlying rule bug is B12.
Carried knowingly
Evidence
Nine gates green, CI green, routing unchanged at 88% (70/80). The work record
is
works/2026-07-28-portable-enforcement-scripts/—46 log entries including six failures: ten dead anchors the doc gate raised
against its own author, three portability failures, a post-commit drift failure
that reopened a criterion already marked
pass, and a criterion that was simplymiswritten. Both criterion edits are recorded as
Scope changesrows rather thanmade silently.
Still true of the whole branch: 39 files, every one an addition, zero upstream
files modified or deleted.