audit-stage
/audit-stage
Audits an implementation stage against closed acceptance criteria and the principal TAREAS.md using reproducible evidence. Use when implementation is said to be complete, the user asks to close a stage, or requests an audit. Do not implement repairs or rewrite CONCILIACION.md to fit code.
- Author
- jeandybryan ↗
- Repository
- yerro-sprints ↗
- Licence
- MIT
- Last repository change
- 11.11.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Audits an implementation stage against closed acceptance criteria and the principal TAREAS.md using reproducible evidence. Use when implementation is said to be complete, the user asks to close a stage, or requests an audit. Do not implement repairs or rewrite CONCILIACION.md to fit code.
Original author description
Audits an implementation stage against closed acceptance criteria and the principal TAREAS.md using reproducible evidence. Use when implementation is said to be complete, the user asks to close a stage, or requests an audit. Do not implement repairs or rewrite CONCILIACION.md to fit code.
How it works
- Entry gate
- Audit procedure
- Verdict
- After compaction
SKILL.md preview
--- name: audit-stage description: >- Audits an implementation stage against closed acceptance criteria and the principal TAREAS.md using reproducible evidence. Use when implementation is said to be complete, the user asks to close a stage, or requests an audit. Do not implement repairs or rewrite CONCILIACION.md to fit code. --- # Audit stage Read [feature-stages](../feature-stages/SKILL.md) and [stage-contract.md](../feature-stages/references/stage-contract.md). Read the audit references and template only as needed. Write `AUDIT.md`, an approved delta and the index closure. Do not change code, the baseline or acceptance criteria. Need closed `CONCILIACION.md` and principal `TAREAS.md`. Audit the same acceptance baseline again after every delta. Detailed rules: - [Audit procedure](references/audit-procedure.md) - [Scoring and evidence](references/scoring-and-evidence.md) - [Deltas and closure](references/deltas-and-closure.md) ## Entry gate Confirm the state before editing: ```bash python3 <skills-root>/feature-stages/scripts/next_step.py <feature-root> --stage <NN-slug> ``` A normal close audit requires `verificando`, stage `auditando`, and the active principal list or delta marked `implementada`. `necesita-decision` blocks. An explicit user request may produce an intermediate audit for an implementing or blocked stage, but cannot close it. Plan the reading with `python3 <skills-root>/feature-stages/scripts/preflight.py <feature-root> --fase audit-stage` before opening files; everything it omits is listed with its reason. ## Audit procedure 1. Read spec, closed conciliation, principal tasks, deltas, previous audits and the feature index. 2. Capture a fresh snapshot, record `**Riesgo auditado:**`, and run the structural validator: ```bash python3 <skills-root>/feature-stages/scripts/snapshot.py <repo> --exclude <feature-root> --exclude .yerro/approvals.yml python3 <skills-root>/feature-stages/scripts/validate_stage.py <stage> python3 <skills-root>/feature-stages/scripts/approvals.py <repo> --stage <NN-slug> ``` `snapshot.py` adds the stage's panel index (`docs/…/README.md`) to `exclude=` on its own (B-49): its status row is written when closing, and counting it would force a new pass for one cell. Paste the output as-is; do not strip that exclusion. The approval lives in `.yerro/approvals.yml`, a versioned file the person edits. Never write it: a signature the agent can type is not a signature. Without an entry covering this stage and snapshot, the stage does not close. When the stage stops for the signature, give the person the command, not a draft: `approvals.py <repo> --suggest <stage>` prints the block with the current `tree=` and the exact keys, and they paste it with their name. The risk level also sets the evidence floor: above `bajo` the ledger needs a demonstrated limit or negative case, and at `alto` a `mutante:` per critical CA whose result you **saw**. Write what you observed: `→ verde` means the mutant survived and the test does not cover that behaviour, and `→ rojo esperado` is a prediction, not evidence. Neither closes the stage. 3. Expand every CA into atomic assertions and verify `S-NN → CA-NN → T-NN → implementation → test → E-NN`. 4. Re-run every declared `Test:` and `Verificar:` method independently. Add negative, boundary or fault-injection checks proportional to risk. Record each result with `evidence.py run -- <command>` so the ledger carries the exit code and the output signature. Pass the command as a single shell line (`evidence.py run -- 'cd console && npm test'`, `--test-name-pattern "panel chat"`); the row is re-executed as written. Then run `evidence.py verify <stage>/AUDIT.md` before the verdict: it re-executes the last pass only — earlier passes are history and their system procedures are not repeated — and a signature that does not reproduce is invented evidence, not evidence. 5. Write one immutable audit pass with fresh reproducible evidence. Append; do not erase failed or superseded passes. 6. Run the validator again before writing `**Veredicto:** coincide` and `**Veredicto (calidad):** aceptable`. 7. With the `coincide` verdict written, run the close cross: ```bash python3 <skills-root>/feature-stages/scripts/validate_stage.py <stage> --repo <repo> ``` It checks the recorded snapshot against the current tree, the human approval covering stage and snapshot, and the diff against the declared scope. Without `--repo` the validator judges shape only: a `coincide` that did not pass this command does not close. Do not implement or repair findings in the same audit pass. When a finding changes product intent, scope or an acceptance criterion —a line of `CONCILIACION.md` would have to change— it reopens conciliation and updates the principal list; it is not a delta. When the finding only closes a gap against the unchanged baseline, it becomes the next delta while the frozen budget lasts. When the scope moved **after** the tree a previous pass audited —another stage changed a file this one claimed— record the reopening in a new pass with `**Reapertura:** <motivo>` and `**Veredicto:** no coincide`: the earlier `coincide` belonged to another tree. That pass has no quality verdict, opens no delta and does not spend budget; the next step is `conciliate-stage`. ## Verdict Two verdicts, and both must be positive to close (B-38). - `**Veredicto:**` is specification conformance. `coincide` only when every principal CA is `cumple`, task methods and global checks have evidence, traceability is complete and no blocking deviation remains. - `**Veredicto (calidad):**` answers only four questions about the change: duplication introduced by it (not the pre-existing kind), abstractions nothing asks for (YAGNI), missing error handling on the new path, and tests that exercise mocks instead of code. `aceptable` is the only verdict that closes, and a finding names which of the four it is. `con hallazgos` is corrected with a delta inside the frozen budget and re-audited; `bloqueante` does not fit in a delta and reopens conciliation. - Every `**Sujeto a revisión R-NN:**` in `TAREAS.md` is resolved in `### Rulings revisados` under the same ID: either `aceptado` or `hallazgo`. Read the artifacts and the diff, never the implementation conversation (B-32); "I decided it because…" is not an argument. An unresolved mark blocks the close, and a ruling that does not explain its decision is itself a finding. - Any `parcial`, `no cumple` or `no verificado` means `no coincide`. - A gap against the unchanged baseline may produce the next delta only within the frozen budget. After implementation, audit against `TAREAS.md` again with a fresh snapshot. The audit never lowers risk, reuses an obsolete snapshot or changes the conciliated baseline to make code pass. ## After compaction Context does not survive compaction. Re-read the state from `README.md`, `TAREAS.md` and `git log`; do not remember it. Run `next_step.py <feature-root> --reconcile` before acting: it prints the pending tasks and the commits that touch the stage, so you do not re-execute work that is already done.
Files in this package (4)
- SKILL.md 7 KB
- references/audit-procedure.md 2 KB
- references/deltas-and-closure.md 2 KB
- references/scoring-and-evidence.md 1 KB
Versions
The database has no other skills named audit-stage.
Database snapshot: 13.11.2026 · package version db9001cdda5c (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100implement-stage
Implements an approved implementation stage from its principal TAREAS.md or a TAREAS-delta-NN.md, verify the requested work, and leave evidence ready for a separate audit. Use when the user asks to implement or execute an approved stage or delta. Do not change the baseline, close or audit the stage. - 100generate-stage-tasks
Generates TAREAS.md (principal task list) after an implementation stage conciliation is cerrada, traced to CONCILIACION.md and the spec. Use when the user asks for the task file, listado principal, or says conciliation is done. Do not invent tasks outside Entra, implement code or audit. - 100verification-methodology
Verify work against explicit criteria using direct, source-faithful evidence, reproducible checks, and clear verdicts. Use before declaring an artifact, implementation, or claim complete; do not use for exploratory research without pass/fail criteria. - 100verify-acceptance-criteria
Use when asked to "verify acceptance criteria", "check criteria", or "verify the implementation against the plan" during active feature development. Do NOT trigger for issue management (close issue, comment), worktree cleanup, or post-merge/post-PR operations. - 100full-product-evaluation
Use when a complete product needs production-like acceptance evidence against documented acceptance criteria. Not for single-component evaluation or evaluation without documented criteria. - 84plan
Use when operating as the Fabrik Plan stage agent. This skill guides the design of an implementation approach, producing a concrete plan with task checklist that the Implement stage will follow.