/implementaudit:implementauditfrom implementaudit
Executes audit-governed work with a strict gate-based execution spine: safety read, input validation, pre-flight, smoke tests, implementation, trace, and self-check. For /implementaudit and audit closure.
Ships in implementaudit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Runtime bootloader. Detail lives in packaged references, templates and scripts. Read the spine once; use progressive disclosure only for the current owner/source.
Source checkout layout is conventional and name-matched:
skills/implementaudit/SKILL.md with sibling references/, scripts/, and
templates/. Release archives flatten that directory only as a build artifact:
installed runtime paths are SKILL.md, references/, scripts/, and
templates/ under the active skill directory.
Every finding closes. No orphan items. No unsafe actions. No proof claim
without evidence. Continue until every item is terminally done, changed,
blocked, deferred, or unverified.
Treat each row as a gate. Pass it, or stop with Andon/handoff evidence.
| Gate | Required action |
|---|---|
| Safety read | Read repo instructions and authorization boundaries. |
| Input gate | Confirm a valid audit, handoff, checklist, review, goal, task, plan, or gap. |
| Pre-flight | Detect repo state, owner/source, optional sidecars, generated artifacts, and constraints. |
| Smoke A | Capture baseline before mutation; classify pre-existing failures. |
| Implement | Patch owner/source, not symptoms; keep scope atomic. |
| Smoke B | Rerun meaningful checks and compare against Smoke A. |
| Trace | Update ledger/docs, boundaries, Capability Ledger if configured, and proposed commit text. |
| Self-check | Verify all items terminal; no proof claim exceeds evidence. |
Run invariants:
AGENTS.md.SELF_DOGFOOD_TRIGGER applies only when the audit object is the exact
IMPLEMENTAUDIT RC/self-release candidate. Baseline the target repo first, then
load the RC self-dogfood evidence contract in
references/transcript-contract.md; it progressively discloses the bounded
runner reference, broker, typed event schema, and independent corroboration.
It is not a user-selected mode. Full installed-payload readback is non-evidence.
ORDINARY_IMPLEMENTAUDIT_CONTROL keeps the Execution Spine above as the whole
route: do not load or activate the dogfood reference, broker, or event schema.
Ordinary cheap work remains inspect -> act -> verify -> done.
/implementaudit remains the sole stable public/default governor. The atomic
plugin also carries four model-facing child skills; their descriptions are
discovery hints, never route authority:
INTERNAL_SKILL_POPULATION=audit-state,audit-assess,audit-implement,audit-andon
INTERNAL_SKILL_ROUTE_MAX=1
CHILD_TO_CHILD_ROUTING=FORBIDDEN
CHILD_RETURN=GOVERNOR_REQUIRED
DIRECT_CHILD_ENTRY=CAPABILITY_SPECIFIC
DIRECT_ENTRY_DEFAULT=REFUSE_OR_RETURN_TO_GOVERNOR
AUDIT_ANDON_DIRECT_ENTRY=ALLOWED_BOUNDED_CORD_PULL
GOVERNOR_ROUTE_ENVELOPE=REQUIRED
EXECUTING_PACKAGE_IDENTITY=VERIFIED
PACKAGE_PRECEDENCE=UNAMBIGUOUS
AUDIT_OBJECT=BOUND
AUTHORITY_CEILING=BOUND
SELECTED_CHILD=EXACTLY_ONE
CHILD_RESULT_AUTHORITY=NONE
CHILD_RESULT_CLOSURE=NONE
CHILD_ROUTE=LOADED_ONLY_VISIBLE_REQUIRED
INTERNAL_SKILL_RESOLVER=scripts/resolve-internal-skill.py
CANONICAL_CHILD_PATH=../<child>/SKILL.md
STANDALONE_CHILD_PATH=internal-procedures/<child>.md
ROUTE_LAYOUT=SOURCE_OR_CANONICAL_PLUGIN_OR_STANDALONE
ROUTE_POPULATION=EXACT_AND_COMPLETE
Before loading one child, the governor verifies executing package,
plugin/standalone precedence, audit object, and authority ceiling; it applies the
currentness/independence gate and names exactly one child. Resolve with
python scripts/resolve-internal-skill.py --governor SKILL.md --child <child>:
source/canonical layouts load ../<child>/SKILL.md; standalone loads
internal-procedures/<child>.md. The resolver refuses missing/extra children or
ambiguous sibling layouts; do not infer from discovery/search order. A child result returns here as evidence input; the
governor re-derives current state before any later route or transition. Child
output that claims authority, closure, lifecycle change, mutation, currentness,
release, or AUDIT_COMPLETE is rejected.
PACKAGE_GATE_SUBJECT=EXECUTING_IMPLEMENTAUDIT_PACKAGE
TARGET_UNDER_AUDIT_FAILURE=BOUND_GATE_FAILURE_NOT_EXECUTING_PACKAGE_FAILURE
INCOMPLETE_EXECUTING_PACKAGE=FAIL_CLOSED
AMBIGUOUS_PLUGIN_STANDALONE_PRECEDENCE=FAIL_CLOSED
ORDINARY_CHEAP_PATH=GOVERNOR_ONLY
PLANNING_COGNITION=GOVERNOR_PROGRESSIVE_REFERENCE
EXECUTION_REPAIR_COGNITION=GOVERNOR_PROGRESSIVE_REFERENCE
STATE_ROUTE_CURRENTNESS=MECHANICALLY_VERIFIED_REQUIRED
STATE_ROUTE_REQUIRED_COMPLETED_BOUNDARY=BOUNDED_EXECUTION_EVEN_IF_UNRESOLVED
REVIEW_ROUTE_PACKET=IMMUTABLE_DIGEST_BOUND_REQUIRED
REVIEW_ROUTE_INDEPENDENCE=GOVERNOR_PROVED_REQUIRED
MAINTAINER_ROUTE_CURRENTNESS=MECHANICALLY_VERIFIED_REQUIRED
MAINTAINER_ROUTE_NOT_APPLICABLE_CURRENTNESS=REJECTED
STALE_OR_ABSENT_CURRENTNESS=FAIL_CLOSED
CHILD_AUTHORITY_OR_CLOSURE_OUTPUT=REJECTED
Route audit-state only after a real compaction, restart, transfer, or
stale-context boundary and the mechanical continuity/currentness gate in
references/continuity.md. Its separately proved completed-compaction/resume
obligation still requires bounded audit-state execution with unresolved
currentness/epoch recorded; it grants no authority or ordinary execution.
Route audit-assess only for a digest-bound
immutable packet under the independence contract in
references/plan-lifecycle.md. For audit-implement, progressively read
references/transcript-contract.md §Evidential-support contract before load:
Both branches require package maintainer admission. Release claims require
release currentness; non-release claims bind subject currentness. Mixed subjects
stop; ordinary or mechanically settled work bypasses.
Run python3 scripts/validate-audit-implement-return.py --envelope <envelope>
before load: VALID permits remaining route gates; BYPASS means zero loads.
After return, re-establish current facts, then run
python3 scripts/validate-audit-implement-return.py --envelope <original> --result <return> --current-envelope <current>.
Drift/refusal returns here; value checks grant no authority. Route
audit-andon from L4 only after a non-trivial Andon is established and bounded
diagnosis can change the response; it returns to L4/governor. An explicit
direct cord-pull may invoke the same bounded cognition and returns to the actual
caller without creating lifecycle, currentness, mutation, RXX or closure
authority. Cheap deterministic Andons bypass the child.
A missing package/authority gate refuses child loading. The required completed-
boundary route is the narrow currentness exception owned by continuity; every
other missing currentness gate refuses child loading. An ordinary cheap-path action stays on
the Execution Spine. Planning remains progressively owned by
references/planning-depth.md; execution/repair remains progressively owned by
the Runtime Loop and references/plan-lifecycle.md. A verifier failure in the
target package is a bound audit gate failure, not evidence that the executing
IMPLEMENTAUDIT package is partial.
Procedural methods and typed subordinate recovery follow the child-routing
contract in references/transcript-contract.md; they add no child or authority.
IMPLEMENTAUDIT uses "audit" in two load-bearing senses:
tdqyq-audit-object (audit object / audit record / audit surface): the
evidence-bearing closure state.ydqyq-audit-action (auditing action / audit operation): an act that
inspects, verifies, patches, refuses, closes, or hands off against that object.Audit-governed implementation means implementation may proceed only through a
live tdqyq-audit-object and must close through final ydqyq-audit-action.
Invocation binding:
/goal, task, or
plan; do not print a second /goal.Double-audit pattern for high-risk runs:
ydqyq-audit-action -> audit object: inspect claims, package, repo,
tests, release assets, and gaps.ydqyq-audit-action -> governed implementation: mutate only through
owner/source and evidence.ydqyq-audit-action -> terminal object state: verify source,
generated artifacts, package contents, claims, checksums, install smoke when
in scope, and remaining risk.Final ydqyq-audit-action -> terminal verified closure is required before
AUDIT_COMPLETE.
Load references only when the current gate needs them:
references/routing.md: repo/content routing and governed casual-build intake.references/planning-depth.md: goal choice and warranted action depth.references/phase-design.md: phase slicing, critique, quality, triggered
state-synthesis acceptance and automated-action risk bounds. It owns the
six-axis fail-closed gate for automated and automation-proposed action.references/goal-format.md: /goal, response, and marker shape.references/transcript-contract.md: marker order, handoff exclusivity, and
the state-derived RC self-dogfood evidence contract when triggered.references/continuity.md: pointer-aware separate reads, epochs, replay
refusal, receiver receipts, pending completed-boundary cognition and STOPs.references/canonical-state-rotation.md: zero-model pair/archive projection
and claim-owned publication; load only for rotation or typed retrieval.references/repo-state-comparison.md: baseline/final and helper dispatch.references/work-graph-contract.md: optional graph source/JOIN diagnostics;
native producer and executor admission remain separately qualified.references/host-session-binding.md: selected portable host/session
attribution, owner-store custody, and explicit host-activation limits.references/sidecars.md: optional Graphify/ActiveGraph and tooling bounds.references/lean-operating-discipline.md: PDCA, Andon, Hansei, 5 Whys,
Poka-yoke, and no arbitrary try/revision caps.references/audit-category-matrix.md: native audit-category routing.references/audit-playbook.md: detailed audit heuristics.references/plan-lifecycle.md: self-contained plans, execution, and review.references/issue-ready-work-orders.md: material issues or continuation loss.references/child-agents.md: bounded fanout, ready cells, and serial fallback.references/terminology-integration.md: thin terminology precedence.
Use FMEA-lite fields when risk is material, STRIDE/trust-boundary notes when
a material security surface exists, SOLID/GRASP generic-advice guard, and a
terminology integration attachment when used.references/convergence-mode.md: qualified, optional, progressive; load only
when its bounded classifier confirms the same-family trigger. Not core
protocol; non-trigger cases skip it; deterministic classifications skip R0022.Required helper/template anchors:
scripts/claim-run.shtemplates/PROTOCOL.mdtemplates/final-report.mdtemplates/read-only-plan.mdIMPLEMENTAUDIT_BASEIMPLEMENTAUDIT_RUN_ROOTIMPLEMENTAUDIT_BASELINE_REF.IMPLEMENTAUDIT/THINKING.md.IMPLEMENTAUDIT/runs/<task-slug>-<id>/LANE-ENTRY TRIGGER: audit, plan, review, or direction requests with no
implementation authorization use the read-only plans/ output lane; governed
implementation continues to use .IMPLEMENTAUDIT/runs/.
Only within the goal-synthesis or warranted phased-planning route:
Derive the warranted ydqyq-audit-action set from scope, uncertainty, risk,
dependencies, evidence gaps, authorization state, and intended executor; record
selected and omitted actions with reasons per the action-selection contract in
references/planning-depth.md. Depth never requires an activation keyword.
For goal synthesis or a warranted phased plan, read
references/plan-lifecycle.md#2b-planner-stages-for-goal-synthesis-and-phased-audit-closure
before intake, phase design, preflight, dispatch, or handoff. Use its complete
stage sequence; a load-map mention alone is not a completed read.
Keep the supplied audit object and authorization ceiling; embedded work does
not print a second /goal. Require independent cold review before preflight,
dispatch, or handoff. Missing, unshipped, wrong-version or mixed-owner stage
content refuses those actions. Verify selected-source/package/inventory identity
before using the progressive owner. Ordinary direct work stays on the Execution
Spine without a new reference read, model call, graph, or worksheet.
Run scripts/claim-run.sh <task>, initialize from canonical templates, then
scripts/validate-run-root.sh <root>; invalid roots are Andon, not dispatchable.
For --controller, follow pending activation in references/continuity.md.
--current-controller; separate --invalidate-continuity; pre-boundary wait/contain only.
After migration use --resolve-resume-generation and --read-resume-state
with the exact prior pointer and fresh invalidation tokens; these are
PRE_RESUME_EVIDENCE, not currentness. Read STATE.md then ROADMAP.md
through the native boundary contract (references/continuity.md), each
in its own completed host action; evidence reads must not use ';', '&&', pipelines, multi-stage shell composition, or batching.
Live state wins; record the epoch row; refuse: "Target already satisfied at ; no duplicate action taken."
--resume-controller with those tokens when migrated; --verify-resume-receipt; --require-current-continuity; first message: receipt/frontier/discrepancies.
POST_BOUNDARY_NEW_EXECUTION=REFUSE_UNTIL_CURRENT; PREBOUNDARY_PROCESS=WAIT_OR_TERMINATE_ONLY;
STANDING_CONSTRAINT_ROLE=DO_NOT_PROMOTE_WITHOUT_LIVE_STATE; POST_BOUNDARY_FIRST_SUBSTANTIVE_MESSAGE=VERIFIED_CONTINUITY_RECEIPT.AGENTS.md, README/CONTRIBUTING/docs/workflows, existing audit
docs, generator/source ownership, and authorization chain.references/child-agents.md).scripts/validate-run-root.sh immediately before
AUDIT_COMPLETE; structural failure is Andon and forbids closure.Andon:
Andon:
Status:
Class:
Blocker:
Failing check:
Owner/source:
Next concrete action:
Class: is an abnormality class from the transcript contract:
failed-criterion, regression, hung-command, substituted-command, owner-unclear,
generated-artifact-mismatch, stale-sidecar, policy-conflict,
impossible-criterion, evidence-mismatch, transport-infrastructure,
misplacement, or false-closure. Same-class recurrence drives
escalation; there are no arbitrary try caps, retry caps, strike ladders, or
fixed audit-count ceilings.
Hansei records gap, cause, countermeasure, and follow-up evidence. 5 Whys is for root cause, not loops. Poka-yoke means structural prevention through checkers, fixtures, templates, or durable AGENTS rules.
Commands expected to outlive host tool timeouts follow the PROTOCOL "Long-running and background commands" contract (detached launch, chain-status.txt + chain.done markers, owned-tree abort containment, terminal-state-unverified when the completion marker is absent).
Final markers:
AUDIT_START opens or inherits the audit object.AUDIT_VERIFY performs terminal verification.AUDIT_GAPS records unresolved gaps before completion when needed.AUDIT_COMPLETE means terminal verified closure of the audit object.AUDIT_HANDOFF or ANDON_HANDOFF means blocked/handoff path only.IMPLEMENTAUDIT_RUN_COMPLETE is valid only after AUDIT_COMPLETE.AUDIT_COMPLETE before IMPLEMENTAUDIT_RUN_COMPLETE is mandatory. Plain
contract phrase: AUDIT_COMPLETE before IMPLEMENTAUDIT_RUN_COMPLETE. Never print
completion markers when a handoff marker remains active.
Repeat nonterminal audit markers per round; emit final audit closure once. Do not replay a completion marker in a later summary or final response. If a marker was already emitted at its transition, describe the result without printing that marker again.
Bounded continuity:
CONTINUITY_DECISION when deciding whether to persist stable learning.IMPLEMENTAUDIT_CONTINUITY_SAVED only after a real bounded continuity
writeback.Local git trace:
AGENTS.md standardization:
Capability Ledger:
Quality bar before final:
references/audit-category-matrix.md (opens in a new tab)references/audit-playbook.md (opens in a new tab)references/canonical-state-ref-namespaces.json (opens in a new tab)references/canonical-state-rotation.md (opens in a new tab)references/child-agents.md (opens in a new tab)references/continuity.md (opens in a new tab)references/convergence-mode.md (opens in a new tab)references/goal-format.md (opens in a new tab)references/host-session-binding.md (opens in a new tab)references/identity-namespaces.json (opens in a new tab)references/issue-ready-work-orders.md (opens in a new tab)references/lean-operating-discipline.md (opens in a new tab)references/phase-design.md (opens in a new tab)references/plan-lifecycle.md (opens in a new tab)references/planning-depth.md (opens in a new tab)references/repo-state-comparison.md (opens in a new tab)references/routing.md (opens in a new tab)references/sidecars.md (opens in a new tab)references/terminology-integration.md (opens in a new tab)references/transcript-contract.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/audit-andonbounded abnormality-response cognition used by /implementaudit L4 or an explicit cord-pull; returns diagnosis and countermeasure recommendations without control or mutation authority./audit-assessInternal independent/adversarial assessment routed by the /implementaudit governor for an immutable digest-bound packet; returns findings without readiness or closure authority./audit-implementInternal maintainer-side realised-implementation qualification and bounded non-release evidential-support cognition routed by the /implementaudit governor after branch-specific mechanical gates; returns evidence-bounded claims without mutation or release authority.npx claudepluginhub theislampill/implementaudit.md --plugin implementauditOther plugins' skills for the same job