lukasrepublic/agentic-foundry/authorize
Claude Code and agent skill by lukasrepublic/agentic-foundry
- community
Checking that the SKILL.md file is still in the repository.
The Foundry front-authorization gate (/foundry:authorize). Display an atom's acceptance-contract checkpoints to the operator, get explicit confirmation, then freeze the operator-signed authorization (spec_sha256 + contract_sha256) onto acceptance-contract.yaml. The load-bearing v1 safety action — an un-authorized spec can never reach main. Trigger when the operator says "authorize <spec>", "/foundry:authorize", or after a contract is drafted at Specify-exit and before any implementation dispatch.
Install
npx vskill@latest install lukasrepublic/agentic-foundry/authorizeSKILL.md
The same SKILL.md was published earlier as lukasrepublic/agentic-foundry/authorize.
/foundry:authorize
The operator-facing half of the front-authorization gate. The mechanical write is performed by ${CLAUDE_PLUGIN_ROOT}/scripts/foundry-authorize.py (validated, logged, byte-canonical). This skill is the operator-confirmation wrapper — it never re-implements the freeze logic.
When to trigger
- Operator: "authorize
<spec>", "/foundry:authorize<spec-or-contract>", "freeze the contract for<atom>". - After an
acceptance-contract.yamlis drafted (Specify-exit, a distinct authoring phase) and BEFORE any implementation dispatch. - After a merge-time spec defect forces a re-authorization (RE-AUTH-AFTER-IMPL — pass
--reauth-after-impl).
Procedure
- Locate the pair. Resolve the atom's spec path and its sibling
acceptance-contract.yaml (specs/features/<…>/acceptance-contract.yaml). If no contract exists, the atom is DRAFT — it must be authored first (a distinct contract-authoring phase; in dispatch mode by a separate qa-engineer worker).
- Review (recommended, not a precondition). Confirm the spec has ideally cleared a review —
by default /foundry:spec-review (skills/spec-review/SKILL.md), or the dormant-invocable deep adversarial-spec-audit engine (skills/audit/SKILL.md) for an exceptional deep audit. /foundry:audit is operator-invoked only — never a step this skill or foundry-authorize.py requires. find_audit's lookup against .foundry/audit-ledger.jsonl is informational only (feat-foundry-authorization-authorize-drops-audit-precondition): a spec with no row, or a row with a non-passing verdict, freezes exactly the same as one with a clean row — foundry- authorize.py prints what it found (or nothing) and proceeds either way. The freeze floors (1-4) plus the operator's explicit confirmation at step 4 are what authorize the spec; a recorded audit is corroborating evidence, not a gate. --skip-audit-reason "<reason>" is a DEPRECATED no-op kept for one release (still accepted, still logged as an informational authorize-audit-flag-deprecated record) — do not present it to the operator as a required step.
- Dry-run + DISPLAY. Run the CLI WITHOUT
--yes:
``bash python3 "${CLAUDE_PLUGIN_ROOT}/scripts/foundry-authorize.py" \ --spec <spec> --contract <contract> --operator <op_id> --mode regular|lean `` This validates the contract against the freeze floors (1-4, bijection via the spec) and prints the exact checkpoints — the live-seam PASS criteria — the operator is being asked to sign. If validation FAILS, stop and report; the contract must be fixed (re-specified), not the gate relaxed.
- Operator confirmation (the independent authority). Present the displayed
scope + checkpoints to the operator verbatim and get an explicit yes. This human confirm IS the front-funnel authority and, in the lean loop, the independence substitute for a separate authoring context. Do NOT self-confirm.
- Freeze (--yes). On confirmation, re-run with
--yes(add
--reauth-after-impl if an impl branch/PR already exists). The CLI writes a record-before-action entry to the security-audit trail, freezes the authorized: block below the sentinel, and writes a completion entry. merge_autonomy_mode is set here and travels hash-covered with the contract.
- Report the resulting state (AUTHORIZED),
auth_seq, and the two hashes. The
atom may now be dispatched/implemented; its merge is admitted by the native merge floor (docs/merge-floor.md — branch protection / required CI checks, plus hooks/foundry-git-discipline.sh within sessions) against this frozen record.
Inputs
<spec>— the authorized atomic spec (its normative region is hashed intospec_sha256).<acceptance-contract.yaml>— the drafted contract (must pass freeze floors 1-4).<op_id>— the operator id; resolved against.claude/foundry-operators.json(or$FOUNDRY_OPERATOR). Fail-closed if unregistered.--mode regular|lean— the implementation-merge autonomy mode for this atom.
Outputs
- An
acceptance-contract.yamlwith a frozenauthorized:block (operator-signedspec_sha256+contract_sha256,auth_seq,merge_autonomy_mode). - Security-audit trail entries (
authorize-intent+authorize-complete) in.foundry/security-audit.jsonl.
See also
skills/amend/SKILL.md— for a change to an ALREADY-AUTHORIZED spec/contract during
implementation (the normal, living-document path), prefer /foundry:amend first: it re-freezes a non-widening change with no operator step, and only routes back here when the change widens a boundary or the contract is security-flagged.
Anti-patterns
- Self-confirming. The operator's explicit yes at step 4 is the authority; an agent must never supply
--yeswithout it. Front-authorization is UNCONDITIONAL — there is NO skip phrase (unlike the deep spec audit). - Relaxing the contract to pass the gate. A failing freeze-floor means the contract is under-specified — re-specify it (re-author checkpoints), never weaken the floors.
- Re-implementing the freeze. Always invoke
foundry-authorize.py; never hand-write theauthorized:block (byte-canonical hashing + newline canonicalization + monotonicauth_seqare easy to get subtly wrong). - Authorizing a DRAFT the operator has not reviewed. No audit-ledger row is required (see step 2 above), but the operator's explicit confirmation at step 4 is — never substitute a ledger row, and never claim
/foundry:auditor the ledger stand in for that confirmation. - On a harness denial (e.g. the classifier blocks
--yes), seedocs/harness-denial-fallback.mdand STOP: hand the operator the exact denied invocation; never retry it or route around the classifier.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/authorize/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lukasrepublic/agentic-foundry/authorize)