一键导入
verification-before-completion
Use when about to claim work is complete, fixed, passing, verified, release-ready, or ready to commit, merge, publish, or hand off.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when about to claim work is complete, fixed, passing, verified, release-ready, or ready to commit, merge, publish, or hand off.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when defining new features, product behavior, UI/component design, architecture choices, contract changes, or ambiguous medium/high-complexity work before implementation, or when the user asks to grill or pressure-test a plan or design.
Use when executing implementation plans with independent tasks in the current session
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Use when the user explicitly requests strict or test-first TDD, or when the current conversation already contains an explicit `TDD Route: strict` decision from another Aegis workflow.
Use when starting a turn or checking Aegis skill routing.
Use when you have a spec or requirements for a multi-step task, before touching code
| name | verification-before-completion |
| description | Use when about to claim work is complete, fixed, passing, verified, release-ready, or ready to commit, merge, publish, or hand off. |
→ About to claim "done", "passing", "fixed", "complete", "verified", "release-ready", or "ready to hand off"? → Verify first, then claim only what the evidence supports.
Aegis Impact and Safety Receipt.Done means: fresh verification evidence exists, covered and uncovered scope are explicit, residual risk is stated, confidence is graded, and any triggered baseline / complexity / retirement / ADR boundary has been folded into the single closeout surface or expanded because the risk requires it.
Prevent unsupported completion claims while keeping ordinary completion output
compact. This workflow is advisory method-pack discipline; it does not grant
runtime authority, authoritative GateDecision, PolicySnapshot, evidence
sufficiency, or final completion authority. It is advisory, not completion authority.
Stop and verify before any success wording if you are:
Every completion claim needs these semantic slots. They may appear as localized headings, natural prose, or a compact card, but they must remain explicit and auditable:
Required evidence slots:
- Evidence action / check performed:
- Result / exit status:
- Covered scope:
- Uncovered scope:
- Residual risk:
- Confidence grade: A | B | C
Confidence grades:
A: direct target evidence plus relevant regression evidence, no meaningful
unknownsB: direct target evidence with bounded residual riskC: partial evidence only; do not claim full completionVerified evidence is not authority. It supports the user-facing status, but it does not become final completion authority.
Every completion claim should name the evidence action, result, covered scope, uncovered scope, residual risk, and confidence. Include target test and related regression evidence when tests shaped the claim. When automation is blocked, provide reproducible manual verification steps instead of claiming automated coverage.
Use one completion surface. Do not output parallel final reports.
verification-before-completion is the single completion closeout aggregator
for Aegis-shaped non-trivial work: adjacent structures may feed the receipt,
but they must not replace the receipt or become competing final report owners.
Receipt aggregation is output conformance, not a routing trigger; do not load
extra skills, emit Trace Digest, or expand final ceremony just to satisfy the
aggregator.
For this owner workflow, Aegis Visibility ties the final claim to the decision boundary, fresh evidence, baseline / complexity / retirement safety, and residual risk kept visible. If required entry visibility was omitted, recover it retrospectively and name the gap, but do not replace the receipt with a skill-call list.
Use for tiny, low-risk work where Aegis only held one narrow boundary steady. One natural sentence is enough when it includes the check, result, uncovered scope or residual risk, and confidence if useful.
For non-trivial Aegis-shaped work, use the compact receipt by default. Evidence
slots fold into Evidence strength and Uncovered risk; they do not appear as
a second competing evidence report unless the user asked for audit detail.
Aegis Impact and Safety Receipt:
- Key judgment:
- Avoided misfix:
- Boundary held:
- Baseline alignment:
- Complexity control:
- Evidence strength:
- Uncovered risk:
- Next most valuable verification:
- Aegis path:
Field rules:
Key judgment: the owner, root-cause layer, requirement boundary, or
completion boundary that shaped the answer.Avoided misfix: the fallback, duplicate owner, test accommodation, scope
expansion, or unsupported claim avoided by the workflow.Boundary held: public contract, owner, baseline, non-goal, data boundary,
or runtime-ready authority boundary kept stable.Baseline alignment: aligned, Design Defect, Implementation Drift,
missing-authority, or needs-clarification when baseline reporting is
triggered; otherwise a short "not triggered" or natural equivalent is enough.Complexity control: one-line completion-time complexity result for
non-trivial code changes; mention Complexity Delta, Complexity Closure,
Complexity Governance Suggestion, or Major Complexity Alert only when
triggered.Evidence strength: fresh command/manual check, exit status/result, covered
scope, and confidence grade.Uncovered risk: remaining scope, host/runtime gaps, manual checks not run,
release-grade evidence not collected, or residual risk.Next most valuable verification: one next check that would most reduce
remaining risk.Aegis path: optional compact skill path. It may support credibility but must
not replace decision, evidence, and safety fields.Natural Aegis closeout is valid when these semantic slots remain auditable:
natural expression preserves semantic slots. Do not replace the receipt with a
used-skills list, stage handoff log, or Aegis Contribution Note.
Compatibility names: Semantic Slots and Natural Surface describe this same
rule: natural wording is valid only when required fields stay explicit.
Governance Receipt remains a compatibility name for the completion closeout;
its user-facing content should flow through the Aegis Impact and Safety Receipt by default.
Start with the receipt, then add only the triggered detail. Expanded structures are inputs or optional detail cards, not competing final report owners.
Use expanded detail only when the trigger applies:
Readiness Summary: release, merge, handoff, or "ready?" requests. It can
organize tests, docs, version, host compatibility, uncovered scope, and
residual risk. It does not authorize commit, tag, publish, merge, or release.Trace Digest: explicit audit / debug / release / long-task review request.
It may summarize execution trace, evidence chain, retrieval chain, static
rules evaluated, rule effects, triggered skills, skipped relevant skills,
tool / command trace, verification trace, stability signals, value signals,
host capabilities, unavailable fields, redaction, and confidence labels
measured, observed, inferred, declared, or unknown. It must not
expose raw chain-of-thought.
Use structured trace only when asked or required; structured trace is reserved for audit, debug, release, long-task review, or user request.Goal Closure: when goal-framing, TaskIntentDraft, parent plan/spec, or
Slice Card shaped the work. Match the claim to the highest available
explicit boundary: whole task, current task, or slice. If only slice evidence
exists, do not claim whole-task done. Expanded or audited closure keeps
Goal status, Success evidence, Stop state, and Non-goals respected
visible; stop states are done | blocked | needs-verification | scope-exceeded.Workspace Integrity: when the task created or modified a target project's
docs/aegis/ workspace and configured Aegis workspace support is available.
Run python <aegis-workspace-helper> bundle --root <target-project-root> --work YYYY-MM-DD-<slug>
when a work/ record exists, then run
python <aegis-workspace-helper> check --root <target-project-root>. Report
that these validate structure only, not evidence sufficiency.Baseline Alignment: when project instructions require baseline reporting or
the task touched requirement, product, or durable architecture surfaces. Use
docs/current/AEGIS_PROCESS_BASELINE.md §3.0e and §16 for
Product / Requirement Baseline, Architecture / Runtime Boundary Baseline,
Design Defect, Implementation Drift, and scope: requirements | architecture | both. Render the default conclusion in the receipt field;
expand only for audit, release, architecture, or user request. Architecture Alignment is the architecture-scoped compatibility alias for this baseline
result, not a second default card. Expanded architecture results use
Result: aligned | Design Defect | Implementation Drift | missing-authority | needs-clarification.ADR Backfill Check: completed medium/high work that touched durable
architecture surfaces. Use docs/current/AEGIS_ADR_AUTO_BACKFILL.md for
trigger criteria. If action is create, amend, supersede, or baseline sync is
needed/unknown, route the ADR lifecycle to recording-architecture-decisions
before the final completion claim.Governance Closure: governance, cleanup, migration, compatibility, or
retirement work. Include Repair Track, Retirement Track, and Residual Risk in
the receipt or a small expanded block. Do not skip this structure just because the implementation was small.Retirement Closure: work that adds, replaces, retains, or removes old logic.
Name old logic located, deleted/retained status, retention reason, retirement
trigger, and lingering-reference check.Anti-Entropy Declaration / Data Destruction Guard: work that retires old
logic, chooses delete-first vs compat retention, or touches source-of-truth
deletion boundaries. Use anti-entropy-governance for the decision surface.
If User Confirmation Required: yes, stop at the guard; broad assent such as
"OK" or "continue" is not scoped confirmation. Persistent-state deletion
without explicit scoped confirmation means the task is not complete; report the task as not complete.Judge the claim against the highest available explicit boundary:
TaskIntentDraft goal / success evidence / non-goals for current-task
completionSlice Card goal / verification / stop for slice completionA completed task or slice means the authorized execution / verification boundary
reached its stop condition. It does not mean the underlying requirement is
accepted. Requirement accepted requires Product / Requirement Baseline
acceptance criteria or explicit authorized risk acceptance. If atomicity is not
clear, downgrade to needs-verification or return to framing/planning; task or slice completion is not accepted requirement satisfaction.
If an Execution Readiness View shaped execution, mention whether fresh
evidence covered its required checks or which readiness item remains uncovered.
Do not treat the view itself as verification evidence.
For non-trivial code changes, inspect the actual diff before claiming
completion. Use using-aegis/references/complexity-governance.md and
docs/current/AEGIS_COMPLEXITY_GOVERNANCE_BASELINE.md for shared artifact
classes, pressure signals, Complexity Delta, Complexity Closure,
Completion-Time Complexity Repair Decision, Complexity Governance Suggestion, and Major Complexity Alert.
Default rendering is one Complexity control line in the receipt. Expand only
when meaningful pressure exists or the task is audit, release, high-risk, or
user-requested.
Rules:
tests-only exceptionRetirement Closure, or a scheduled retirement triggerComplexity Closure: exceeded-unresolved blocks a complete claimLocalize section labels, field labels, and explanatory prose to the user's language. Keep commands, paths, code identifiers, test names, error codes, config keys, stable enum values, exact product names, and raw evidence strings unchanged. Do not default to bilingual labels or mixed-language explanations. Localize section labels and prose to the user's language.
When external tool output, logs, search results, screenshots, OCR, or other large payloads shaped the judgment, state the evidence boundary when relevant: summary/index used, raw excerpt read back if needed, large payloads not loaded, and next evidence that would reduce uncertainty. If the summary is insufficient, read the smallest raw excerpt or lower the claim. Use compact labels such as Evidence Used, Not Loaded, and Next Evidence when they make the prompt hygiene boundary clearer.