/autonomy:setup <check|apply> [--org-policy-home <locator>|none] [--budget-posture free|paid-opt-in]from autonomy
Checks or configures a repository's autonomy binding under .claude/autonomy/, including org role homes, budget posture, and pipeline slots.
Ships in autonomy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Discovery phase of autonomy adoption. Maps the roles in
${CLAUDE_PLUGIN_ROOT}/reference/role-topology.md to this org's real instances
and records the result as the schema-versioned binding the resolution ladder in
${CLAUDE_PLUGIN_ROOT}/reference/binding-seam.md reads at the repo-local layer. Never assumes
any org, repo, tracker, or fleet shape. Discovery reads what exists, the interview fills what
it cannot infer, and every landed change is reviewable per
${CLAUDE_PLUGIN_ROOT}/reference/wiring-vs-advisor.md.
check (read-only): resolve the effective binding across all rungs of the binding-seam
resolution ladder. User-global (~/.claude/autonomy/) → project (.claude/autonomy/) →
personal override (.claude/autonomy/**/*.local.*), additive, plus the org rung when the merged
layers carry an org_policy_home pointer: fetch the org binding via the host CLI with the
consumer's own auth and fold it in at its ladder position. Report what is bound, what is
missing, and which layer or rung contributes each value; an unreachable org-policy home is
warned as not-considered, never silently omitted. Also report whether node resolves on PATH
(command -v node through the Bash tool, so the probe works without the hook launcher): every
hook row runs through node hooks/exec-bash.mjs, so without it the hooks do not launch and
are not enforced. Report each pipeline slot from the record that owns it. No writes.apply (idempotent): run discovery, then write or update the project binding. Re-running
reads the existing binding and proposes deltas; it never overwrites blind and never touches
unrelated user content. All project paths anchor at the project root. Resolve
${CLAUDE_PROJECT_DIR} (fall back to the repository toplevel) before writing; invoking the
skill from a subdirectory must never create a nested .claude/autonomy/.| Argument | Values | Headless default |
|---|---|---|
| action | check | apply | (required) |
--org-policy-home | repository locator, optionally #<path> to the binding document | none | none |
--budget-posture | free | paid-opt-in | free |
A locator without #<path> triggers document discovery at bind time (the binding instance
document is found by its schema-versioned shape per the org repo's own layout) and the
resolved path is persisted alongside the pointer so later fetches are deterministic.
Slices marked argument-selected below (guardrail, routine) run only when the free-text remainder
of the invocation names them, for example apply followed by "wire the guardrail slice"; none of
the enumerated flags selects a slice.
apply with every argument supplied runs non-interactively, no prompts, so automation and
headless use work. With arguments missing, discovery infers first and interviews only the
gaps (convention ladder: config present → use it; absent → infer and persist; cannot infer →
ask and offer to persist; otherwise → safe free-tier default).
free unless the user explicitly opts into paid-opt-in; anything
paid is advisory + explicit opt-in with cost surfaced first (wiring-vs-advisor).context/pipeline-slots.md when apply reaches this step or
check reports slots: it owns the slot-to-owner table, the option classes, and the live
price-research step.apply writes .claude/autonomy/binding.json with these serialized keys:
schema_version (string, from "1.0");roles, an object keyed by the kebab-case role names of the role-topology contract
(capability-distribution-home, ci-orchestration-home, settings-as-code-home,
org-policy-home, runner-execution-home); a value may be null (unborn role, or no org
instance, never invented);org_policy_home, the pointer (or null), with its resolved document path when
discovered;budget_posture. free | paid-opt-in;substrate, an object with kebab-case surface keys (local-machine, ci-runners,
self-run-infrastructure), boolean values.The same file name is the shape at every layer: the user-global layer is
~/.claude/autonomy/binding.json, the project layer .claude/autonomy/binding.json, and
each layer's personal override binding.local.json beside it. The project file is tracked
(team-shared); recommend the recursive consumer .gitignore line: .claude/**/*.local.*.
Layers resolve per the binding-seam ladder, additively: user-global → org binding (when
pointed) → project → personal override. Capability slices (like telemetry below) add their
sections additively under their slice name: a binding without a slice's section is valid
(absent-section tolerance) and no schema major bump is needed for an additive section.
Wires the emitting state of
${CLAUDE_PLUGIN_ROOT}/reference/telemetry.md
for all three execution contexts, discovery-first. Everything lands as reviewable changes;
paid sinks are advisory + explicit opt-in with cost surfaced first.
OTEL_*
endpoints in settings/env blocks, collector configs, known backend config files). Found →
wire emission toward it: agent-session env block (settings env) and a CI emission snippet
pointing at the org's endpoint. Paid/hosted stack → advisory with cost surfaced before any
opt-in.templates/ci-otlp-artifact.md when apply reaches this
step for the snippet, uploading the artifact directory per run;OTEL_RESOURCE_ATTRIBUTES carrying autonomy.work_item.url=<canonical item URL>. The
slice treats spans as optional and never depends on beta span shapes. It joins on
autonomy.work_item.url, never on inbound trace context; relying on native inbound-context
joining is the telemetry contract's recorded migration trigger. Read
context/agent-session-telemetry.md when a binding
asks about trace context, spans or the join, needs evidence that a guardrail fired, or asks
what memory activity is observable: it holds the pointer records for these wiring decisions,
the permission-decision event, and the memory gap.telemetry section of the schema-versioned binding.scripts/check-emission-conformance.mjs against
produced OTLP JSON-lines to verify the pinned schemaUrl and the join attribute before
declaring the emitting state reached.Wires the capture-enabled state of
${CLAUDE_PLUGIN_ROOT}/reference/return-accounting.md,
discovery-first: detect the tracker class and close-flow surface, wire the close- and
reply-triggered attestation handlers via the close-triggered snippet in
templates/return-capture.md where machine-editable (the
marker-keyed comment floor, or provenance-verifiable native fields), advise where GUI-only or
entitlement-gated, and record the
capture section of the repo-local autonomy binding. Read
context/capture-slice.md when apply reaches the capture slice: it
owns the autonomous-class capture gate, the record-integrity rule, the attestation-routing rule,
and every serialized capture key. Agents prompt and aggregate; they never estimate the two
human-attested return fields.
Wires the signal-adapter and dispatch state of
${CLAUDE_PLUGIN_ROOT}/reference/trigger-dispatch.md,
discovery-first: discover the four signal-surface classes and their transports, wire the DIY floor
(event kick + scheduled drain) as reviewable changes through the one queue-drain entrypoint, advise
plan-gated integrations, and record the triggers section (the surfaces map + drain cadence) of
the repo-local autonomy binding. Vendor event names and invocation flags live in this slice's
templates/trigger-adapters.md (adapter shapes) and
templates/ack-reply.md (acknowledgment shape), never the contract.
Read context/trigger-dispatch-slice.md when apply
reaches the trigger/dispatch slice: it owns the per-surface adapter obligations, the
execution-surface attestation caveat, the admission fail-closed rule, every serialized triggers
key, and the scripts/check-signal-envelope.mjs conformance
step.
How guardrail policy resolves across the two governance surfaces the guardrail contract splits policy into. This section owns resolution; the guardrail slice below (detect → bind → live-validate → fail-closed) is the action that produces the security binding this order resolves.
Two-surface split. Security-sensitive guardrail axes. Isolation bindings with their
runtime markers, merge policy, verification blocking knobs, per-class verification
topology, promotion state, escalation
routes, admission rules and caps. Bind only in the security binding document in the
settings-as-code home, outside the blast radius of the agents it governs. Its schema is
contract-owned and ships at
schemas/guardrails-security-binding.schema.json;
scripts/check-security-binding.mjs validates a
document (schema shape + the semantic rules the schema cannot express) and, with
--evidence, resolves each promotion cell's effective state against a promotion-evidence
source, the bound state is a ceiling contrary evidence lowers without writing the
binding. Read the
admission-policy leaf directly
when binding admission rules and caps: it owns the decision table, the wildcard precedence rule,
and the override_justification floor those caps enforce. Non-security axes remap in the
additive guardrails section of the repo-local binding: class→label strings (which local label
means which work class; read the
work-classes leaf directly when
resolving what a label maps to; it owns the risk-property bundles and promotion discipline behind
each class) and cost-tier→model names. Vocabulary remaps only, never policy content.
A third home that is not a governance surface. Two axes of the
verification-topology leaf
bind in this plugin's userConfig rather than either governance surface: the verification lens
pool, and whether the advisory visual narration lane runs. Neither counts anything, the pool
contributes to no floor, and the narration lane has no security-binding cell at all, so neither can
weaken a floor, which is what lets them sit on an operator surface. The placement holds only while
no settings file a watched repository commits can set this plugin's options, so a repo cannot dial
its own verification. The slice proposes neither as a binding field.
Layered resolution order. Org-policy-home defaults → settings-as-code per-repo security binding → repo-local non-security remaps. Later layers refine earlier ones for non-security axes only; no repo-local (agent-writable) value ever supplies or overrides a security axis.
Security-binding locator registry. When settings-as-code is a separate repository, the org-policy home carries the repo→security-binding-document registry the dispatch seam resolves each repository's security binding through. One registry, resolvable per repo, on the org governance surface.
Agent-unwritable bootstrap for security resolution. The repo-local org_policy_home
pointer is tolerable for non-security defaults only, a repo-writable pointer would let
an agent redirect the whole chain to a forged policy repository carrying a forged
registry, binding, and matching runtime markers. For security resolution the seam pins
the org-policy-home identity from an agent-unwritable bootstrap: org-level platform
configuration outside repo blast radius (an org-level setting or variable repo agents
cannot write) or the executor's trusted deployment config. Any security resolution that
would depend on a repo-writable pointer, or an unresolvable locator, fail-closes
autonomous dispatch, naming the compliant path (pin the home in org-level configuration
or the executor's deployment config).
Fail-closed. An absent or invalid security binding blocks autonomous dispatch. Every signal enqueues human-gated. Documented defaults exist only for non-security axes; no security axis ever resolves from a documented default or a repo-local surface.
Wires the enforced state of the guardrail contract
(open it, then the guardrails/<leaf>.md it routes to, for whatever axis is in question): detect,
bind, live-validate, fail-closed, always detect-diff-reconciling against the org's existing
guardrail surfaces. The resolution section above owns how bound
policy resolves; this slice is the action that produces the security binding it resolves. Read
context/guardrail-slice.md when apply reaches the guardrail
slice: it owns the per-layer wiring, the isolation-ladder probe (recipe in
templates/isolation-probe.md), the security-binding schema and
its validator, and the paid-SKU opt-in surface. It reads
context/windows-surfaces.md when a surface's host is Windows, and
context/container-surfaces.md on a local surface. The
slice is argument-selected, so a run that does not select it never needs the file.
Wires the standing-routine state of the
routine catalog (read it to pick a routine; each
recipe is a leaf under routines/): a routine is a scheduled
temporal-class signal adapter behind the governed queue, never a private execution or merge path.
Like the guardrail slice it prepares the security surface and never writes it.
Read context/routine-slice.md when apply reaches the routine slice:
it owns the discovery-first reconciliation against the org's existing schedulers and bots, the
templates/routine-definitions.md template, the CI-cron
handler shape, and the signal-envelope verification. The slice is argument-selected, so a run
that does not select it never needs the file.
Extends this skill per its own extension model for
routine prerequisite resolution.
Read
context/prerequisite-resolution-slice.md when
apply reaches the prerequisite-resolution slice: it owns the binding-section JSON shape and
the wrapper scripts' non-interactive flags.
Liveness. The slice check is an engine health-check surface: it invokes
scripts/resolve-prerequisites.mjs end-to-end and
fails loud on internal failure, never a verdict-shaped fallback.
check. For each scheduling surface already recorded under triggers / routines
(this slice declares no surfaces map of its own), report per-identity verdicts with
provenance via
scripts/check-prerequisite-resolution.mjs.
A bare repo yields unsupported / unknown for every identity, never an error.apply. Detect-diff-reconcile against existing prerequisite_resolution
declarations; a declaration contradicting a ran-negative probe is a finding (identity
stays negative while the finding is open). The prose-context pass
reads CLAUDE.md / AGENTS.md (whether a session loads AGENTS.md is a Claude Code
rule, recorded in the slice context's "Instruction-file loading" section) / README to
propose declarations into non-security keys only; the human ratifies; the slice
writes the additive section (surface_refs + declarations, no surfaces map).
Narrowing-only enablement: enable in routines.enabled only when the verdict clears;
negative/unknown routes to the advisory path. Org-rung entitlements are interviewed,
never auto-written. Non-interactive contexts skip ask-and-persist and report assumptions.
Security-binding changes are prepared, never written.
Wrapper:
scripts/apply-prerequisite-resolution.mjs.The runner design pack is bindable-when-born:
until a build trigger fires and the runner-execution home is born, setup records nothing
runner-specific. No probe, no wiring, no binding section for the unborn home. The runner
pipeline slot is a different thing, the surface agent jobs run on today, and records only into
substrate. The single
exception is escalation notification routes, which already home on the security surface: the
severity axis (notice/attention/urgent) and the personal-push tier are prepared as route
options through the security binding's escalation_severity, escalation_severity_routes, and
escalation_ack keys, a reviewable change on the settings-as-code home like every other
security axis, never repo-local. The route set, its two-step severity resolution, and the
per-class default severities are specified by the
runner escalation leaf; this note points
there rather than restating them. The full lifecycle state model and each transition's telemetry
are specified by the
runner lifecycle leaf; read it directly
when tracing how a leased item moves through its states, since this note does not restate the
state machine. The ownership-seam map assigning each part of the runner to its owning home is
specified by the runner topology leaf; read
it directly when placing a runner obligation on its home, since this note does not re-derive the
split.
apply: /autonomy:setup check.Run-time failure modes, the two-binding split (repo-local autonomy binding vs the separate
security binding), detector-fired temporal signals that carry no routine identity, and a
scheduling surface recorded in two surfaces maps resolving as ambiguous, are catalogued in
context/gotchas.md.
pluginConfigs, per the uniform setup
contract (docs/plugin-philosophy.md "Setup is explicit and repeatable" in the marketplace
repository). Nor platform settings.context/agent-session-telemetry.md (opens in a new tab)context/capture-slice.md (opens in a new tab)context/container-surfaces.md (opens in a new tab)context/gotchas.md (opens in a new tab)context/guardrail-slice.md (opens in a new tab)context/pipeline-slots.md (opens in a new tab)context/prerequisite-resolution-slice.md (opens in a new tab)context/routine-slice.md (opens in a new tab)context/trigger-dispatch-slice.md (opens in a new tab)context/windows-surfaces.md (opens in a new tab)evals/evals.json (opens in a new tab)evals/fixtures/otlp-demo/pipeline.jsonl (opens in a new tab)evals/fixtures/otlp-demo/session-metrics.jsonl (opens in a new tab)evals/fixtures/otlp-demo/session-spans.jsonl (opens in a new tab)evals/fixtures/otlp-demo/trigger.jsonl (opens in a new tab)evals/fixtures/security-binding/admission-c3-autonomous-no-justification-valid.json (opens in a new tab)evals/fixtures/security-binding/admission-c4-autonomous-no-justification-valid.json (opens in a new tab)evals/fixtures/security-binding/admission-c5-autonomous-no-justification.json (opens in a new tab)evals/fixtures/security-binding/admission-channel-feed-autonomous-no-justification.json (opens in a new tab)evals/fixtures/security-binding/admission-channel-feed-classified-wildcard-surface-no-justification.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub melodic-software/claude-code-plugins --plugin autonomyOther plugins' skills for the same job