garrison-codex-checkpoint
Targeted cross-model security checkpoint - a small number of high-effort OpenAI Codex passes through the codex-runtime delegate bridge (D14; never a direct CLI call, the runtime fitting owns serialization) over the security-critical surfaces of the whole repo (authz/tenant/injection/secrets by default, auth middleware and session handling where present, plus any surface the run brief names), each scoped to a narrow invariant rubric rather than an open-ended review. Real findings loop the affected scope back to garrison-implement as an ad-hoc fix. This is the run-level whole-repo cross-model gate, not the per-slice pass (that is the opt-in garrison-security-review phase) and not a general-purpose code review (Codex here only hunts the named invariants). Invoked by the Garrison run engine as its cross-model security checkpoint step, or standalone only when the user explicitly asks for it. Do NOT auto-invoke this skill from task inference - Garrison decides when its phase skills run.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- garrison-codex-checkpoint
- description
- Targeted cross-model security checkpoint - a small number of high-effort OpenAI Codex passes through the codex-runtime delegate bridge (D14; never a direct CLI call, the runtime fitting owns serialization) over the security-critical surfaces of the whole repo (authz/tenant/injection/secrets by default, auth middleware and session handling where present, plus any surface the run brief names), each scoped to a narrow invariant rubric rather than an open-ended review. Real findings loop the affected scope back to garrison-implement as an ad-hoc fix. This is the run-level whole-repo cross-model gate, not the per-slice pass (that is the opt-in garrison-security-review phase) and not a general-purpose code review (Codex here only hunts the named invariants). Invoked by the Garrison run engine as its cross-model security checkpoint step, or standalone only when the user explicitly asks for it. Do NOT auto-invoke this skill from task inference - Garrison decides when its phase skills run.
02 资源文件 2
- 资产文件assets/codex-checkpoint.schema.json1.6 KB
- 参考文档references/codex-checkpoint.md898 B
03 SKILL.md 正文
garrison-codex-checkpoint
Policy-read preamble (soft - D5/D12)
At the start of every invocation, look for the compiled Orchestrator policy at
~/.garrison/orchestrator/policy.json (or $GARRISON_POLICY_PATH).
- Policy present (a Garrison run): it is the single authority. This skill
carries NO model/effort pins - its execution parameters come from the policy
matrix cell for its phase (
matrix[<phase>][<tier>]), and its gate duties from the bindable phase-skill contract (the Orchestrator fitting's PHASE_SKILL_CONTRACT.md): do the phase's work in the run context handed to you (runDir, card, phase), write the phase's gate-status entry under the runDir, and print the phase'sGATE <phase>: <verdict>line before choosing the next list. - Policy absent (standalone, any repo): proceed with the caller-supplied context and sensible defaults - NEVER stop. Report to the caller rather than writing gate-status/run artifacts, and skip any board/run-engine steps.
What this does
ONE run-level cross-model pass, executed as a few narrowly-scoped Codex delegations over the security-critical surfaces. The always-applicable default is whole-repo security (authz/tenant/injection/secrets); auth middleware + session handling is a default wherever the repo has it. Any project-specific surface is a brief-supplied optional scope, not a default every repo has - for example a shared contract package between services, or an anonymisation/egress pipeline (these are illustrative, added only when the run brief or the project's security profile names such a surface). Each scope is a "find violations of these invariants" rubric, never an open-ended review.
Mechanics (D14 — the delegate bridge is the ONLY path)
-
Resolve the target from the policy:
matrix["codex-checkpoint"][<tier>]gives{runtime: "codex", model, effort}. If the resolved runtime is notcodex, run the checkpoint on the resolved target instead (the policy is the authority). -
Locate the codex-runtime bridge: the composition's
apm_modules/_local/codex-runtime/scripts/bridge.mjs(fallback: the repo seedfittings/seed/codex-runtime/scripts/bridge.mjs). If the bridge is absent or--probefails, that is a BLOCKER with a named cause ("codex-runtime bridge not connected") — record the checkpointdegraded (codex-unavailable), notify, and continue. NEVER fall back to a directcodexCLI invocation. -
For each scope, build a task spec and pipe it via STDIN (never argv):
printf '%s' "$TASK_SPEC_JSON" | node <bridge>/scripts/bridge.mjs delegateTask spec shape:
{"task": "<the scope rubric + the invariants + the file list>", "paths": [...], "model": "<policy model>", "constraints": {"readOnly": true}, "expectedSchema": "checkpoint"}(see assets/codex-checkpoint.schema.json). The bridge serializes calls RUN-WIDE itself (the fitting owns the OAuth constraint) — do not add caller-side serialization and do not parallelize scopes. -
Parse the returned
{summary, artifacts}; triage findings exactly as before: a real, agreed violation is fixed and the affected scope re-checked (ceiling: 2 rechecks per scope); rebut non-material findings with one line. -
Record
codexCheckpoint: {status, scopes, at}in the run'sevidence-index.jsonglobalGate and printGATE codex-checkpoint: <clean|issues-fixed|issues-open|degraded|skipped> — <summary>.
Honesty
A quota/auth/availability failure records degraded (codex-unavailable) and
the run continues — never blocked on a dead meter, never a faked verdict. An
operator --no-codex records skipped (operator-disabled).
04 同仓库更多 Skills
pinned-helper
An owned skill the human has pinned so the Improver must not touch it.
legacy-helper
A rarely used helper kept around from an earlier workflow.
human-notes
A human-authored skill not deployed by APM (loose, not in the lock).
garrison-helper
Helps compose and station Garrison Fittings into Faculty role slots.
walkthrough
Record a short, narrated, captioned video walkthrough that proves a finished coding task and shows how it behaves, then self-verify the video via vision on extracted frames and publish it as one scrubbable Tailscale link. Use after completing a change/fix/feature on a web project (Next.js/React etc.) when the user wants visual proof of work, a demo of a user flow, or to avoid manually retesting and watching a long raw screen recording. Triggers on requests like "record a walkthrough", "show me it working", "make a demo video of this", "prove the feature", or finishing a UI/route/form/API change worth demonstrating. Not for walking through a full from-scratch project build.
Trello
Manage tasks via Trello REST API.