@osovv/vv-opencode 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +6 -3
  3. package/dist/lib/managed-skills.d.ts +1 -1
  4. package/dist/lib/managed-skills.js +5 -2
  5. package/dist/lib/managed-skills.js.map +1 -1
  6. package/package.json +1 -1
  7. package/schemas/vvoc/v3.json +1 -1
  8. package/templates/skills/vv-execute/references/tool-contracts.md +1 -1
  9. package/templates/skills/vv-plan/SKILL.md +2 -0
  10. package/templates/skills/vv-plan/references/plan-template.xml +5 -0
  11. package/templates/skills/vv-review/SKILL.md +1 -1
  12. package/templates/skills/vv-spec/SKILL.md +3 -0
  13. package/templates/skills/vv-spec/references/spec-template.xml +6 -0
  14. package/templates/skills/{vv-design-principles → vv-ui-design-principles}/SKILL.md +2 -2
  15. package/templates/skills/vv-verification/SKILL.md +78 -0
  16. package/templates/skills/vv-verification/references/create-your-verification-stack.md +185 -0
  17. package/templates/skills/vv-verification/references/evidence.md +101 -0
  18. package/templates/skills/vv-verification/references/formal.md +86 -0
  19. package/templates/skills/vv-verification/references/maintenance.md +88 -0
  20. package/templates/skills/vv-verification/references/oracles.md +102 -0
  21. package/templates/skills/vv-verification/references/strategy.md +116 -0
  22. package/templates/skills/vv-write-for-agents/SKILL.md +45 -0
  23. package/templates/skills/vv-write-for-agents/references/compilation.md +66 -0
  24. package/templates/skills/vv-write-for-agents/references/session.md +44 -0
  25. package/templates/skills/vv-write-for-agents/references/structure.md +35 -0
  26. package/templates/skills/vv-write-for-agents/references/validation.md +42 -0
  27. package/templates/skills/vv-write-for-humans/SKILL.md +58 -0
  28. package/templates/skills/vv-write-for-humans/references/fidelity.md +41 -0
  29. package/templates/skills/vv-write-for-humans/references/genres.md +38 -0
  30. package/templates/skills/vv-write-for-humans/references/patterns.md +39 -0
  31. /package/templates/skills/{vv-design-principles → vv-ui-design-principles}/references/design-md.md +0 -0
  32. /package/templates/skills/{vv-design-principles → vv-ui-design-principles}/references/quality-floor.md +0 -0
  33. /package/templates/skills/{vv-design-principles → vv-ui-design-principles}/references/slop-tells.md +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## <small>2.7.1 (2026-11-24)</small>
2
+
3
+ ### Summary
4
+
5
+ Version 2.7.1 expands the bundled managed skills that guide day-to-day work. A new vv-verification skill adds one language-agnostic decision workflow with six on-demand references covering strategy, oracles, evidence, formal methods, maintenance, and bootstrapping a project verification stack, while vv-spec and vv-plan now ask for verification intent inside their existing fields so plans name the property and oracle behind each criterion. Two new writing skills, vv-write-for-humans for reader-facing prose and vv-write-for-agents for agent-executed instructions, are hardened with clearer trigger wording and tighter content, banned-token, and volume gates so they install predictably. The design-guidance skill is renamed from vv-design-principles to vv-ui-design-principles, so anyone invoking the old name should switch to the new one. Install and sync test expectations are now derived from the skill registry, keeping counts accurate as skills are added, and the guidance docs gained a rule against piping gate commands without pipefail plus a pinned reviewer prompt shape.
6
+
7
+ * refactor(skills): rename vv-design-principles to vv-ui-design-principles ([1d5c5e2](https://github.com/osovv/vv-opencode/commit/1d5c5e2))
8
+ * docs: steering and review-template follow-ups from session reflection ([0098498](https://github.com/osovv/vv-opencode/commit/0098498))
9
+ * docs(grace): add approved C-WRITE-FOR-AGENTS-SKILL spec bundle ([9ade2d0](https://github.com/osovv/vv-opencode/commit/9ade2d0))
10
+ * docs(grace): add approved C-WRITE-FOR-HUMANS-SKILL spec bundle ([bf3729a](https://github.com/osovv/vv-opencode/commit/bf3729a))
11
+ * docs(grace): document vv-verification and archive C-VV-VERIFICATION-SKILL ([41eb1fd](https://github.com/osovv/vv-opencode/commit/41eb1fd))
12
+ * feat(skills): add vv-verification and require verification intent ([088339d](https://github.com/osovv/vv-opencode/commit/088339d))
13
+ * feat(skills): add vv-write-for-humans and vv-write-for-agents writing skills ([b979d56](https://github.com/osovv/vv-opencode/commit/b979d56))
14
+ * test(opencode): derive managed-skill install/sync counts from the registry ([8c0d650](https://github.com/osovv/vv-opencode/commit/8c0d650))
15
+ * fix(skills): harden writing-skill gates and align routing/ask-trigger wording ([984ca1c](https://github.com/osovv/vv-opencode/commit/984ca1c)), closes [#57](https://github.com/osovv/vv-opencode/issues/57)
16
+ * chore: apply and archive C-WRITE-FOR-HUMANS-SKILL and C-WRITE-FOR-AGENTS-SKILL ([160e54b](https://github.com/osovv/vv-opencode/commit/160e54b))
17
+
1
18
  ## 2.7.0 (2026-11-24)
2
19
 
3
20
  ### Summary
package/README.md CHANGED
@@ -206,7 +206,7 @@ The complete controller prompt has seven sections: `task_and_scope`, `project_co
206
206
 
207
207
  ### Managed skills
208
208
 
209
- Two families: `vv-*` skills guide the work protocol and design guidance, while `vvoc-*` skills operate and observe the vvoc/OpenCode tooling itself.
209
+ Two families: `vv-*` skills guide the work protocol and its craft companions — design and writing guidance — while `vvoc-*` skills operate and observe the vvoc/OpenCode tooling itself.
210
210
 
211
211
  | Skill | When to use it | What it gives you |
212
212
  |---|---|---|
@@ -214,9 +214,12 @@ Two families: `vv-*` skills guide the work protocol and design guidance, while `
214
214
  | `vv-plan` | A spec is approved and ready to implement | A task-level implementation plan with file targets, contracts, dependencies, and acceptance criteria |
215
215
  | `vv-execute` | A plan is approved and you want it applied step by step | Ordered execution with verification, an explicit inline-or-classic mode choice, and applied spec/plan archival |
216
216
  | `vv-review` | You want findings, not fixes | A review-only workflow that reports spec/code issues and stops before implementation |
217
+ | `vv-verification` | You need to prove a change works, choose tests or oracles, or apply evidence-based or formal verification | One language-agnostic decision workflow plus six on-demand references: strategy, oracles, evidence, formal methods, maintenance, and a project bootstrap that generates `VERIFICATION.md`, a thin verification CLI, and the project-local `verify` and `maintain-verification` skills. Additive: it supplies the verification vocabulary without changing workflow gates |
217
218
  | `vv-reflect` | A long development, debugging, ops, or investigation session exposed environment friction or produced reusable knowledge | Dispatches the read-only `vv-reflector` subagent over the session and its subagent tree — or the streaming `--archive` aggregate when the question spans sessions/projects — then applies environment improvements (documents, steering, guardrails, skills, tooling) or lessons/runbooks only after per-entry approval |
218
219
  | `vv-handoff` | You are ending a session and want the visible context preserved | A redacted XML note at `.vvoc/handoff/YYYY-MM-DD-<session-slug>/handoff.xml`, written from already-visible context only |
219
- | `vv-design-principles` | You are building, redesigning, or reviewing web or app UI and want craft, not generic output | A token-plan-first process, a measurable quality floor, a subtractive AI-slop audit, and a project `DESIGN.md` design-system anchor — with catalogs loaded on demand from three references. Additive: it coexists with any personal design skill |
220
+ | `vv-ui-design-principles` | You are building, redesigning, or reviewing web or app UI and want craft, not generic output | A token-plan-first process, a measurable quality floor, a subtractive AI-slop audit, and a project `DESIGN.md` design-system anchor — with catalogs loaded on demand from three references. Additive: it coexists with any personal design skill |
221
+ | `vv-write-for-humans` | You are writing or editing prose a person will read — README/docs, PR descriptions, design notes, commit messages, reports, error messages — or a draft reads vague, inflated, or hedged beyond the evidence | A fidelity-first editorial contract: meaning invariants and protected content, four edit modes with copyedit as the default, genre sufficiency criteria, reader-behavior deletion/addition tests, and bilingual EN/RU pattern catalogs. Good text may be left unchanged |
222
+ | `vv-write-for-agents` | You are writing or revising text an agent executes — delegation prompts, AGENTS.md, skill bodies, spec and plan prose, runtime prompts | Compilation of raw intent into minimal sufficient task specifications, structure and addressability, session update semantics, pointer craft, and a lint-and-eval validation reference, bounded in volume and free of internal jargon |
220
223
  | `vvoc-usage-analytics` | You ask about token usage, cache hit rate, costs, or caching regressions | Read-only analysis across `vvoc analytics`, the analytics JSONL, and historical `opencode.db` data |
221
224
 
222
225
  Skills are discovered by OpenCode through the native `skills` string array in `opencode.json(c)` — `vvoc install`/`sync` write the path reference and maintain the OpenCode skills-directory symlink. OpenCode supplies the available descriptions and loading instructions; the full skill is loaded when selected or explicitly invoked. The controller prompt does not repeat that catalog or its loading protocol.
@@ -363,7 +366,7 @@ An explicit `--channel latest|rc` argument may only confirm the derived channel;
363
366
 
364
367
  ### Stability and compatibility
365
368
 
366
- Since 1.0, vv-opencode treats the daily-driver surface as stable. The compatibility surfaces are: `vvoc install` / `vvoc sync` / `vvoc launch`, the supported host window (`>=2.0.18 <3.0.0`), the managed skill names (`vv-spec`, `vv-plan`, `vv-execute`, `vv-review`, `vv-reflect`, `vv-handoff`; `vv-design-principles` and `vvoc-usage-analytics` are additive), the published package exports, canonical vvoc schema v3, and the date-prefixed `.vvoc/specs/YYYY-MM-DD-<slug>/` artifact layout. Breaking workflow or config changes are documented in release notes. The project still prefers conservative, explicit changes over hidden migration magic: user-owned config is never silently clobbered, and invalid current config fails loudly.
369
+ Since 1.0, vv-opencode treats the daily-driver surface as stable. The compatibility surfaces are: `vvoc install` / `vvoc sync` / `vvoc launch`, the supported host window (`>=2.0.18 <3.0.0`), the managed skill names (`vv-spec`, `vv-plan`, `vv-execute`, `vv-review`, `vv-reflect`, `vv-handoff`; `vv-write-for-humans`, `vv-write-for-agents`, `vv-ui-design-principles`, `vv-verification`, and `vvoc-usage-analytics` are additive), the published package exports, canonical vvoc schema v3, and the date-prefixed `.vvoc/specs/YYYY-MM-DD-<slug>/` artifact layout. Breaking workflow or config changes are documented in release notes. The project still prefers conservative, explicit changes over hidden migration magic: user-owned config is never silently clobbered, and invalid current config fails loudly.
367
370
 
368
371
  ### Deterministic local launch
369
372
 
@@ -1,4 +1,4 @@
1
- export declare const MANAGED_SKILL_NAMES: readonly ["vv-spec", "vv-plan", "vv-review", "vv-execute", "vv-reflect", "vv-handoff", "vv-design-principles", "vvoc-usage-analytics"];
1
+ export declare const MANAGED_SKILL_NAMES: readonly ["vv-spec", "vv-plan", "vv-review", "vv-execute", "vv-verification", "vv-reflect", "vv-handoff", "vv-write-for-humans", "vv-write-for-agents", "vv-ui-design-principles", "vvoc-usage-analytics"];
2
2
  export type ManagedSkillName = (typeof MANAGED_SKILL_NAMES)[number];
3
3
  export declare function getManagedSkillFilePath(skillsDirPath: string, name: ManagedSkillName): string;
4
4
  export declare function loadManagedSkillTemplate(name: ManagedSkillName): Promise<string>;
@@ -20,7 +20,7 @@
20
20
  // END_MODULE_MAP
21
21
  //
22
22
  // START_CHANGE_SUMMARY
23
- // LAST_CHANGE: [C-VV-DESIGN-PRINCIPLES-SKILL T-002 - Register vv-design-principles with its slop-tells, quality-floor, and design-md references as the bundled design guidance skill.]
23
+ // LAST_CHANGE: [DIRECT-FIX - Rename the bundled design guidance skill to vv-ui-design-principles so its UI scope is explicit next to GRACE change-design artifacts.]
24
24
  // END_CHANGE_SUMMARY
25
25
  import { readdir, readFile } from "node:fs/promises";
26
26
  import { join } from "node:path";
@@ -30,9 +30,12 @@ export const MANAGED_SKILL_NAMES = [
30
30
  "vv-plan",
31
31
  "vv-review",
32
32
  "vv-execute",
33
+ "vv-verification",
33
34
  "vv-reflect",
34
35
  "vv-handoff",
35
- "vv-design-principles",
36
+ "vv-write-for-humans",
37
+ "vv-write-for-agents",
38
+ "vv-ui-design-principles",
36
39
  "vvoc-usage-analytics",
37
40
  ];
38
41
  export function getManagedSkillFilePath(skillsDirPath, name) {
@@ -1 +1 @@
1
- {"version":3,"file":"managed-skills.js","sourceRoot":"","sources":["../../src/lib/managed-skills.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,iBAAiB;AACjB,wBAAwB;AACxB,qHAAqH;AACrH,iJAAiJ;AACjJ,4EAA4E;AAC5E,gCAAgC;AAChC,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,iIAAiI;AACjI,0DAA0D;AAC1D,2FAA2F;AAC3F,qFAAqF;AACrF,oFAAoF;AACpF,qFAAqF;AACrF,kHAAkH;AAClH,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,yLAAyL;AACzL,qBAAqB;AAErB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,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.7.1",
4
4
  "description": "An opinionated agentic development layer for OpenCode — spec-first when it matters, review-driven execution, portable model roles, safer tools, and long-run safety.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/@osovv/vv-opencode@2.7.0/schemas/vvoc/v3.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/@osovv/vv-opencode@2.7.1/schemas/vvoc/v3.json",
4
4
  "title": "vvoc config",
5
5
  "description": "Canonical vvoc configuration document.",
6
6
  "type": "object",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Generated from the pure tool catalog. Do not edit by hand; run `bun run contracts:generate`.
4
4
 
5
- - Package: `@osovv/vv-opencode@2.7.0`
5
+ - Package: `@osovv/vv-opencode@2.7.1`
6
6
  - Tool contract revision: `1`
7
7
  - Reference path: `templates/skills/vv-execute/references/tool-contracts.md`
8
8
  - Current model-facing size: descriptions 9082 bytes, published input schemas 22572 bytes
@@ -68,6 +68,7 @@ You are the vv-plan skill. Your job is to take an approved spec and write an imp
68
68
  <rule>Criteria cover: success paths, failure paths, edge cases, boundary conditions, concurrency when relevant.</rule>
69
69
  <rule>Derive acceptance criteria and verification commands from the spec contract and the directly affected consumers, not from a preferred implementation. Criteria cover the material properties that must be preserved and the interactions with the consumers the change touches.</rule>
70
70
  <rule>Choose verification at the level where the risk arises: name the targeted command or scenario that exercises the changed behavior, and do not present a general check that cannot reach the changed path as evidence for a material criterion.</rule>
71
+ <rule>Every criterion names the property it protects and the oracle that decides it. Every verification command must exercise the changed behavior and produce inspectable evidence; a check that cannot fail for the claimed reason is not evidence. Use the vv-verification references for oracle and evidence vocabulary rather than inventing a second taxonomy.</rule>
71
72
  <rule>Use plain English assertions: "Returns X when Y", "Throws Z if W", "Handles N concurrent calls without data loss".</rule>
72
73
  <rule>Each criterion is a separate child tag: &lt;criterion&gt;...&lt;/criterion&gt;. Line breaks between them for readability. No numbered tags.</rule>
73
74
  </acceptance_criteria_format>
@@ -160,6 +161,7 @@ export type CacheStoreOptions = {
160
161
  <check>Spec coverage: For each requirement in the spec, identify the task that implements it. List any gaps as issues to fix.</check>
161
162
  <check>Contract completeness: Does every task's contract show all public signatures and types? Are edge cases covered by acceptance criteria?</check>
162
163
  <check>Acceptance criteria quality: Is every criterion testable? Could a reviewer or implementer write a failing test for it? Are the material properties that must be preserved and the directly affected consumers covered by criteria whose verification actually reaches them?</check>
164
+ <check>Verification intent: does every criterion name its property and oracle? Does every verification command produce inspectable evidence at the level the risk arises?</check>
163
165
  <check>Type consistency: Do types, signatures, and property names match across tasks? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7 is a bug.</check>
164
166
  <rule>Fix issues inline as you find them. No second review pass needed — just fix and continue.</rule>
165
167
  <check>Format compliance: Are there zero XML attributes? Is every snippet in CDATA? Is every task a &lt;TASK-T-NNN&gt; element with identity in the element name and no child id element?</check>
@@ -46,6 +46,11 @@
46
46
  <snippet><![CDATA[
47
47
  // code here
48
48
  ]]></snippet>
49
+ <!--
50
+ Each acceptance criterion names the property and the oracle.
51
+ Each verification command exercises the changed behavior and produces
52
+ inspectable evidence. Use the vv-verification references for vocabulary.
53
+ -->
49
54
  <acceptance>
50
55
  <criterion></criterion>
51
56
  </acceptance>
@@ -15,7 +15,7 @@ You are the vv-review skill. Your job is to route review requests to the appropr
15
15
  - Code review (vv-code-reviewer): when checking for bugs, regressions, maintainability, or security
16
16
  - Both: when the request calls for comprehensive review</rule>
17
17
  <step>Open one review-only work item with work_item_open before dispatching tracked reviewer sub-agents. Use `mode: "review_only"` and set `requiredReviewers` to `['spec']`, `['code']`, or `['spec', 'code']` based on the selected reviewers. A standalone review-only item takes only `key`, `title`, `mode`, and `requiredReviewers`; do not pass generic task fields.</step>
18
- <step>Put the work item's returned `header` as the first meaningful line of each reviewer sub-agent prompt, exactly `VVOC_WORK_ITEM_ID: wi-<n>`: colon after the id, nothing else on that line (no `=`, no trailing prose). Reviewer results report `PASS`, `FAIL`, or `NEEDS_CONTEXT` and carry no route. If the launch gate rejects the reviewer, read the rejection: `REVIEW_ROUND_NOT_ACTIVE` means no active round exists, and `REVIEWER_ALREADY_IN_FLIGHT` means that reviewer is already running; wait for the report instead of relaunching.</step>
18
+ <step>Put the work item's returned `header` as the first meaningful line of each reviewer sub-agent prompt, exactly `VVOC_WORK_ITEM_ID: wi-<n>`: colon after the id, nothing else on that line (no `=`, no trailing prose). Use the literal shape — the header line, a blank line, then the assignment prose — because no instruction preamble may precede the header: the launch gate rejects prose before it with `MALFORMED_WORK_ITEM_HEADER`. Reviewer results report `PASS`, `FAIL`, or `NEEDS_CONTEXT` and carry no route. If the launch gate rejects the reviewer, read the rejection: `REVIEW_ROUND_NOT_ACTIVE` means no active round exists, and `REVIEWER_ALREADY_IN_FLIGHT` means that reviewer is already running; wait for the report instead of relaunching.</step>
19
19
  <step>Collect findings from each required reviewer. In review_only mode, reviewer FAIL is a completed finding result; it does not route to vv-implementer and must not prevent other required reviewers from completing.</step>
20
20
  <step>Findings are the FINAL output. Do NOT proceed to fixes without explicit user confirmation.</step>
21
21
  <step>When the request is a re-review after a fix, scope the reviewer packets to a scoped re-review: verify the prior findings against the fix and the fix's material effects — including directly affected consumers where necessary — rather than re-reviewing an entire unchanged change from scratch. Cosmetic preferences and unrelated optional improvements do not renew the correction loop.</step>
@@ -24,6 +24,7 @@ UX cues (roadmap, progress markers, depth estimates, checkpoints) are TRANSPAREN
24
24
  <principle>Resolve dependencies in order. Start with the highest-impact decision (purpose, scope, data model) and work outward (API shape, error handling, testing). A decision about the data model must be settled before deciding the API surface.</principle>
25
25
  <principle>Understand the full landscape: purpose, constraints, success criteria, non-goals, edge cases, existing code patterns.</principle>
26
26
  <principle>While walking components and data flow, capture the material properties that must be preserved — existing behavior, contracts, and consumers the change must not break — so testing and error handling can demand their verification instead of covering only the new happy path.</principle>
27
+ <principle>Capture verification intent while designing: for each material claim, decide the oracle, the evidence artifact, and the residual risk. Put this into testing.strategy and testing.coverage, and use the vv-verification references for oracle and evidence vocabulary rather than inventing a second taxonomy.</principle>
27
28
  <principle>When the decision tree reaches a fork (2-3 viable approaches), present all options with trade-offs. Lead with your recommendation and explain why. The user picks one — that closes the fork and the tree continues from that branch.</principle>
28
29
  <principle>When presenting design sections, do it one section at a time. After each section: "Does this look right?" If yes, move to the next. If no, resolve concerns before continuing.</principle>
29
30
  <principle>Cover every section of the spec template: goal, architecture, tech_stack, components, data_flow, error_handling, testing, non_goals. The roadmap shown at the start IS the coverage checklist. A section is "closed" only when its template element is fully decidable.</principle>
@@ -51,6 +52,7 @@ UX cues (roadmap, progress markers, depth estimates, checkpoints) are TRANSPAREN
51
52
  <rule>A component's identity is its element name in the COMPONENT-UPPER-SLUG pattern: &lt;COMPONENT-CACHE-STORE&gt;…&lt;/COMPONENT-CACHE-STORE&gt;. The identity repeats on both boundaries so components stay addressable. Slug rules: uppercase alphanumeric and hyphens only, no leading or trailing hyphen, unique within the document. Derive the slug from the component's display name. The child &lt;name&gt; element holds the human-readable display name. Do NOT add a child id element — the element name is the single authoritative identity.</rule>
52
53
  <rule>Component references use bare slugs: each &lt;depends_on&gt; element contains exactly one component slug declared elsewhere in the same components section. Never reference a component by prose name.</rule>
53
54
  <rule>The top-level &lt;status&gt; element is the document lifecycle status and MUST be one of: draft, approved, applied.</rule>
55
+ <rule>testing.strategy must name each material claim, its oracle, the evidence artifact, and the residual risk. testing.coverage must state what is deliberately not covered and why. Use the existing testing fields; do not add a new XML element for verification intent. The vv-verification references supply the oracle and evidence vocabulary.</rule>
54
56
  <rule>When first saving the spec, set &lt;status&gt;draft&lt;/status&gt;. Only change it to approved after the user explicitly approves the final spec. Never set applied yourself; applied is reserved for vv-execute after the approved plan has been fully executed.</rule>
55
57
  <location>Canonical layout — all artifacts for one feature live in a single spec package directory:</location>
56
58
  <layout>
@@ -84,6 +86,7 @@ UX cues (roadmap, progress markers, depth estimates, checkpoints) are TRANSPAREN
84
86
  <check>Internal consistency: Do any sections contradict each other? Does the architecture match the component descriptions?</check>
85
87
  <check>Scope check: Is this focused enough for a single implementation plan, or does it need decomposition into sub-projects?</check>
86
88
  <check>Ambiguity check: Could any requirement be interpreted two different ways? Resolve repository-answerable engineering ambiguity from the established code and contracts; a genuine business-semantics fork goes to the user as an explicit question — never silently pick a business interpretation.</check>
89
+ <check>Verification intent: does testing.strategy name each material claim, its oracle, the evidence artifact, and the residual risk? Does testing.coverage state what is deliberately not covered and why?</check>
87
90
  <rule>Fix issues inline. No need to re-review — just fix and move on.</rule>
88
91
  </self_review>
89
92
 
@@ -21,6 +21,12 @@
21
21
  <data_flow></data_flow>
22
22
  <error_handling></error_handling>
23
23
  <testing>
24
+ <!--
25
+ testing.strategy must name each material claim, its oracle, the evidence artifact,
26
+ and the residual risk. testing.coverage must state what is deliberately not covered
27
+ and why. Use the vv-verification references for oracle and evidence vocabulary;
28
+ do not add a new element for verification intent.
29
+ -->
24
30
  <strategy></strategy>
25
31
  <coverage></coverage>
26
32
  </testing>
@@ -1,11 +1,11 @@
1
1
  ---
2
- name: vv-design-principles
2
+ name: vv-ui-design-principles
3
3
  description: Use when UI work needs verifiable design quality — auditing an existing page, component, or design system for AI-slop tells and accessibility-floor violations, or building new UI with a token plan, a measurable quality floor, and a project DESIGN.md design-system anchor. Complements aesthetic-direction skills: this skill supplies the subtractive AI-slop audit, hard numbers, and DESIGN.md checks.
4
4
  ---
5
5
 
6
6
  <skill>
7
7
  <identity>
8
- You are the vv-design-principles skill. You bring a design process to UI work: plan tokens before code, build against a measurable quality floor, then audit your own output by removing machine-recognizable tells. You are guidance, not a linter — every rule here is a reason to look closer, weighed against the brief.
8
+ You are the vv-ui-design-principles skill. You bring a design process to UI work: plan tokens before code, build against a measurable quality floor, then audit your own output by removing machine-recognizable tells. You are guidance, not a linter — every rule here is a reason to look closer, weighed against the brief.
9
9
  </identity>
10
10
 
11
11
  <principle>
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: vv-verification
3
+ description: Use when you need to prove a change works — choose test levels and oracles, design reproduction and target tests, gather evidence, apply evidence-based testing or formal verification, and keep the verification stack maintainable
4
+ ---
5
+
6
+ <skill>
7
+ <identity>
8
+ You are the vv-verification skill. Your job is to turn a correctness claim into sufficient evidence, not to maximize the number of tests. You decide what must be proven, which oracle can prove it, which test level reaches the risk, what artifact records the result, and what remains unproven. You work in any language and any stack; the repository's own commands are the source of truth.
9
+ </identity>
10
+
11
+ <language>
12
+ <rule>Write skill artifacts, plans, evidence ledgers, and reports in English by default. Use the user's language only for dialogue.</rule>
13
+ <reasoning>English artifacts are token-efficient, portable across teams, and stable for grep and review; dialogue stays natural for the user.</reasoning>
14
+ </language>
15
+
16
+ <when-to-use>
17
+ Use this skill when a change needs a correctness claim, when a bug needs reproduction, when a test suite is slow, weak, or full of stale cases, when a state or concurrency flow needs stronger proof, or when a repository has no explicit verification map. Do not use it to design a full AI eval program; use an eval only as one oracle.
18
+ </when-to-use>
19
+
20
+ <workflow>
21
+ <step name="state-the-claim">Write one sentence: what must be true after the change? Name the property, the boundary, and the failure mode. Distinguish a new behavior, a preserved behavior, a regression, and an absence claim. If the property depends on business semantics, ask; do not test an implementation-shaped guess.</step>
22
+ <step name="classify-the-risk">Classify the blast radius: pure logic, module contract, integration, persisted data, money, permissions, security, concurrency, migration, user-facing flow, or operational behavior. The risk decides the oracle and the level, not the size of the diff.</step>
23
+ <step name="choose-the-oracle">Load references/oracles.md. Pick the cheapest oracle that can actually distinguish correct from incorrect for this claim. Prefer an oracle that carries information the implementation did not produce: a human-authored expectation, an external fixture, a property, an invariant, a model, a real environment, or a runtime observation.</step>
24
+ <step name="choose-the-level">Load references/strategy.md. Choose the level where the risk arises: unit for pure logic, contract for a module boundary, integration for real collaboration, browser or end-to-end for a user path, smoke for deployment and environment, property or model for a quantified claim. Do not present a green general check as evidence for a risk it cannot reach.</step>
25
+ <step name="reproduce-before-fixing">For a defect, write a failing reproduction or target test first. Confirm that it fails for the reported reason, then fix, then confirm that it passes for the right reason. Do not edit the reproduction to make the fix pass.</step>
26
+ <step name="consider-formal-methods">For state machines, concurrency, protocols, permissions, money, or distributed flows, load references/formal.md. Model the flow, state the invariant, run a model checker or proof, map any counterexample back to code, and add a deterministic regression test. If the tooling is unavailable or the cost exceeds the risk, record the residual risk instead of claiming proof.</step>
27
+ <step name="design-the-evidence">Load references/evidence.md. For every material claim fill the evidence ledger: claim, property, oracle, exact command, artifact, observed result, residual risk, and owner. The artifact must be reproducible from the command, not reconstructed from prose.</step>
28
+ <step name="execute-and-capture">Run the command in the real environment. Capture exact output, exit code, screenshots, traces, logs, counterexamples, or proof output. Keep the artifact with the change. If the run is flaky, record the flakiness rather than averaging it away.</step>
29
+ <step name="verify-independently-when-material">Self-verification is the author's feedback loop. Independent verification runs in a fresh context and does not inherit the implementation's assumptions. Use it for high-risk, cross-module, security, data, or release claims; do not confuse a review of intent with a verification of behavior.</step>
30
+ <step name="record-residual-risk">State what the evidence does not prove, which consumers were not exercised, which environments were not reproduced, and what would change the conclusion. No artifact means no completion claim; partial evidence means a named residual risk.</step>
31
+ <step name="maintain-the-stack">Load references/maintenance.md. Delete or update stale tests, quarantine flaky tests, and use mutation or kill-matrix audits only where their cost is justified. Coverage is a weak signal; a test that cannot fail for the claimed reason is maintenance debt.</step>
32
+ <step name="bootstrap-when-missing">If the repository has no explicit verification map, load references/create-your-verification-stack.md. Discover the project's own commands and generate the full stack: a project-local VERIFICATION.md mapping claims to oracles, commands, evidence, gaps, and owners; a thin verification CLI in the repository's own runner; and two project-local skills — verify and maintain-verification — at the repository's skill convention (default .agents/skills/), registered only with the user's explicit approval. Never impose a framework the repository does not use.</step>
33
+ </workflow>
34
+
35
+ <rules>
36
+ <rule>A green test is not proof. It proves that the test ran and passed, not that the specification is satisfied.</rule>
37
+ <rule>The oracle must carry external information. A test generated from the same context as the code tends to mirror the code.</rule>
38
+ <rule>Separate the oracle from the implementer. When the implementer can see the exact tests, it can optimize for the tests instead of the specification.</rule>
39
+ <rule>Tests never outrank the current specification. If a test contradicts the specification, surface the conflict before deciding which side is wrong.</rule>
40
+ <rule>Stale tests are dangerous. They silently override current intent and are rarely reviewed. Prefer deleting or updating a stale test over preserving a false contract.</rule>
41
+ <rule>Prefer deterministic checks over inferential ones. Use lint, types, contracts, properties, and reproducible commands before LLM judges or manual review.</rule>
42
+ <rule>Evidence over prose. A completion claim names the command, the artifact, and the observed result.</rule>
43
+ <rule>Formal methods are not a silver bullet. They can miss the formalization gap, tool bugs, and model drift.</rule>
44
+ <rule>Keep tests worth their maintenance cost. A test that cannot fail for the claimed reason, or that duplicates another test, is a candidate for deletion.</rule>
45
+ <rule>Stay language-agnostic. Use the repository's existing runner, fixtures, and CI. Do not introduce a framework or a script just because this skill mentions one.</rule>
46
+ </rules>
47
+
48
+ <evidence_ledger>
49
+ Use this shape in the change description, plan, review, or project VERIFICATION.md:
50
+
51
+ | Claim | Property | Oracle | Command | Artifact | Result | Residual risk | Owner |
52
+ |---|---|---|---|---|---|---|---|
53
+ | Checkout rejects an expired card | No charge is created for an expired card | Contract test plus recorded provider request | `bun test test/checkout/expired-card.test.ts` | Test output and recorded request body | Pass; no charge request observed | Provider sandbox differs from production | Payments team |
54
+
55
+ A ledger row is complete only when the command is reproducible and the artifact can be inspected without asking the author.
56
+ </evidence_ledger>
57
+
58
+ <hard-stops>
59
+ <stop>The claimed property is ambiguous or depends on business semantics. Ask for the property; do not invent a test-shaped interpretation.</stop>
60
+ <stop>A test contradicts the current specification. Surface the conflict and the stale-test risk before changing either side.</stop>
61
+ <stop>The available evidence cannot reach the changed behavior. Report the verification gap; do not claim completion.</stop>
62
+ <stop>Formal tooling is unavailable or its cost exceeds the risk. Fall back to the cheapest discriminating oracle and record the residual risk.</stop>
63
+ <stop>The target is an AI pipeline and the request is a full eval design. Use an eval run as one oracle only; route the eval program to a separate workflow.</stop>
64
+ </hard-stops>
65
+
66
+ <references>
67
+ <reference file="references/strategy.md">Risk classification, test levels, cost and confidence, CI split, and coverage limits.</reference>
68
+ <reference file="references/oracles.md">The oracle problem, oracle catalog, selection matrix, fixtures, and anti-patterns.</reference>
69
+ <reference file="references/evidence.md">Standards traceability, specification to invariant to proof to log check, evidence ledger, independent verification, and confidence tiers.</reference>
70
+ <reference file="references/formal.md">Statecharts, TLA+, Lean, property-based tests, counterexample mapping, tooling, and limits.</reference>
71
+ <reference file="references/maintenance.md">Stale tests, mutation and kill-matrix audits, flaky tests, coverage versus value, and incident-to-regression practice.</reference>
72
+ <reference file="references/create-your-verification-stack.md">A language-agnostic bootstrap that discovers a repository's verification surface and generates the stack: VERIFICATION.md, a thin verification CLI, and the project-local verify and maintain-verification skills.</reference>
73
+ </references>
74
+
75
+ <task>
76
+ Your current task is the ongoing user request. State the claim, classify the risk, choose the oracle and level, reproduce defects before fixing, consider formal methods for stateful or concurrent flows, design and execute the evidence, verify independently when the risk is material, record residual risk, and maintain the verification stack. Load only the references the current claim needs. Never claim completion without an inspectable artifact.
77
+ </task>
78
+ </skill>
@@ -0,0 +1,185 @@
1
+ # Create Your Verification Stack
2
+
3
+ Most repositories have tests but no explicit map from claims to evidence. This reference builds that map from the repository's own tooling, then turns it into invocable behavior: a verification CLI and two project-local skills. It is language-agnostic by design: discover what the project already uses, then record and wrap it.
4
+
5
+ What the stack consists of:
6
+
7
+ - `VERIFICATION.md` — the data: claim → oracle → command → evidence → gap → owner.
8
+ - A verification CLI — thin commands in the repository's own runner.
9
+ - A `verify` skill — routes "verify this change" to those commands.
10
+ - A `maintain-verification` skill — keeps the map, the CLI, and the skills truthful over time.
11
+
12
+ Only this bootstrap procedure ships with the tooling. The CLI and the two skills are generated in the target project and belong to it.
13
+
14
+ ## When to use
15
+
16
+ Use this reference when:
17
+
18
+ - The repository has no documented verification map.
19
+ - A new contributor or agent cannot tell which command proves which behavior.
20
+ - The suite is large, slow, or unclear, and nobody knows which tests are load-bearing.
21
+ - A change needs a verification plan for a language or stack the host skill has not seen.
22
+
23
+ Do not use it to impose a test framework. Use it to make the existing surface legible and runnable.
24
+
25
+ ## Discover the repository
26
+
27
+ Read the repository before writing anything. Record what exists, not what you wish existed.
28
+
29
+ - **Languages and runtimes:** the languages, versions, and runtime managers actually declared by the project.
30
+ - **Package manager and task runner:** the lockfile, workspace layout, and the commands the project already uses.
31
+ - **Test runners:** unit, contract, integration, end-to-end, browser, property-based, model-checking, and eval tools. Note the exact command and the config file.
32
+ - **CI:** which jobs run on a change, which run nightly, which run on release, and which are required to merge.
33
+ - **Environments:** local, container, staging, production, sandboxes, and the credentials or fixtures needed to run each.
34
+ - **Observability:** logs, metrics, traces, screenshots, videos, and where they are stored.
35
+ - **Deployment:** build, migration, rollout, rollback, and smoke procedure.
36
+ - **Existing tests:** the directories, naming conventions, fixtures, and the tests that are known to be flaky or stale.
37
+ - **Skill loading convention:** how this repository loads agent skills — an explicit skills array in the agent config, an `.agents/skills` directory, or another tool-specific location. The generated skills must live where this repository expects them.
38
+ - **Known gaps:** what the project cannot verify today and why.
39
+
40
+ Ask the user only for information the repository cannot answer, such as a business property or an environment you cannot inspect.
41
+
42
+ ## Write VERIFICATION.md
43
+
44
+ Create `VERIFICATION.md` at the repository root unless the project already has a documented verification location. Keep it short enough to read and specific enough to run.
45
+
46
+ ```markdown
47
+ # Verification
48
+
49
+ ## Commands
50
+
51
+ | Purpose | Command | Runtime | Required to merge |
52
+ |---|---|---|---|
53
+ | Unit and contract tests | `<the CLI command>` | `<seconds>` | yes |
54
+ | Integration tests | `<the CLI command>` | `<seconds>` | yes |
55
+ | Browser or end-to-end | `<the CLI command>` | `<seconds>` | nightly |
56
+ | Smoke against staging | `<the CLI command>` | `<seconds>` | release |
57
+ | Lint and types | `<the CLI command>` | `<seconds>` | yes |
58
+
59
+ ## Claim map
60
+
61
+ | Claim | Oracle | Command | Evidence | Residual gap | Owner |
62
+ |---|---|---|---|---|---|
63
+ | A user can complete the checkout flow | Browser test plus screenshot | `<command>` | Screenshot and trace | Payment sandbox differs from production | Payments |
64
+ | An expired card creates no charge | Contract test plus recorded provider request | `<command>` | Test output and request body | Provider sandbox only | Payments |
65
+ | A migration preserves existing rows | Migration test plus rehearsal on a copy | `<command>` | Row counts and checksum | Production data volume not reproduced | Data |
66
+
67
+ ## Environments and fixtures
68
+
69
+ - Local:
70
+ - CI:
71
+ - Staging:
72
+ - Sandbox providers:
73
+ - Secrets or variables:
74
+
75
+ ## Known gaps
76
+
77
+ - `<gap>` — why it exists, what would close it, and who owns it.
78
+
79
+ ## Maintenance
80
+
81
+ - Stale-test review: `<cadence or trigger>`
82
+ - Flaky-test quarantine: `<location>`
83
+ - Mutation or kill-matrix audit: `<scope and cadence>`
84
+ - Incident-to-regression rule: `<where the test is added>`
85
+
86
+ Last reviewed: `<date>`
87
+ ```
88
+
89
+ Adapt the sections; do not invent commands. If a command does not exist, write `missing` and record the gap.
90
+
91
+ ## Create the verification CLI
92
+
93
+ Prefer thin CLI entry points over long prose. A command that produces evidence is testable, reusable, and cheaper for an agent than a wall of instructions.
94
+
95
+ - Use the repository's own runner: package scripts, a Makefile or justfile, a scripts directory, or the language's standard task runner.
96
+ - Expose one command per level you actually use — for example unit, contract, integration, e2e, smoke — or a single command with a level argument.
97
+ - Each command must exit nonzero on failure and print where the evidence artifact landed (report path, screenshot directory, trace) when one exists.
98
+ - Do not add a new framework or dependency to satisfy this; wrap what already runs.
99
+ - Record the commands in `VERIFICATION.md`. The generated skills call these commands and never inline long shell chains.
100
+
101
+ ## Generate the project skills
102
+
103
+ Create two project-local skills beside the verification map. Default location is `.agents/skills/` (a cross-tool convention); if the repository already loads skills from another path, use that path instead. The default maintenance name is `maintain-verification`; rename it if the project has a stronger convention.
104
+
105
+ Before writing, check whether a skill with the default name already exists at the target location. If it does, read it first and integrate with it or rename the generated skill instead of overwriting user-owned content.
106
+
107
+ ### verify
108
+
109
+ `.agents/skills/verify/SKILL.md` routes "verify this change" to the project's commands. Keep it thin: data lives in `VERIFICATION.md`, method in the host's verification skill.
110
+
111
+ ```markdown
112
+ ---
113
+ name: verify
114
+ description: Use when a change in this repository needs proof — run the right verification level, capture the evidence, and report residual risk
115
+ ---
116
+
117
+ 1. Read VERIFICATION.md for the claim map and the CLI commands.
118
+ 2. Classify the change's risk and pick the level that reaches it.
119
+ 3. Run the matching CLI command; keep the exit code and the artifact path.
120
+ 4. Record an evidence ledger row: claim, property, oracle, command, artifact, result, residual risk.
121
+ 5. For oracle choice, evidence design, or formal methods, follow the host's verification skill if available.
122
+ 6. Never weaken a check to make it pass. If the map is wrong, say so and propose an update.
123
+ ```
124
+
125
+ ### maintain-verification
126
+
127
+ `.agents/skills/maintain-verification/SKILL.md` keeps the stack truthful. Run it after an incident, after a spec or plan change, after a runner, CI, or dependency change, when a test goes flaky, on a release cadence, or whenever `VERIFICATION.md` and reality drift.
128
+
129
+ ```markdown
130
+ ---
131
+ name: maintain-verification
132
+ description: Use to keep this repository's verification stack current — reconcile the claim map, CLI commands, and skills after incidents, spec changes, or tooling changes
133
+ ---
134
+
135
+ 1. Diff the claim map against the current tests: claims without evidence, evidence without claims.
136
+ 2. Add a regression entry for every incident since the last pass; keep it in the permanent set.
137
+ 3. Prune stale, duplicate, and non-discriminating entries; quarantine flaky tests with an owner.
138
+ 4. Re-check the CLI commands against the current runners; keep exit codes and artifact paths meaningful.
139
+ 5. Update VERIFICATION.md, the CLI, and both skills together — they must not diverge.
140
+ 6. Refresh Last reviewed and record remaining gaps with owners.
141
+ ```
142
+
143
+ Both generated skills stay thin. A generated skill that duplicates the map will drift; a generated skill that inlines commands will rot when the runner changes.
144
+
145
+ ## Register the skills
146
+
147
+ - Discover how the repository loads skills. If a config file lists skill paths explicitly, propose adding the two new paths and show the exact snippet; apply it only after the user approves. Never edit user-owned configuration silently.
148
+ - If the repository's convention is directory auto-discovery, no config change is needed — create the files and report where they are.
149
+ - Tell the user how to invoke the skills afterwards, including a host restart if the host caches the skill list.
150
+
151
+ ## The smallest useful stack
152
+
153
+ Start with the smallest set that covers the real risks:
154
+
155
+ 1. One deterministic CLI command that runs the unit and contract tests.
156
+ 2. One integration command for the collaborators you own.
157
+ 3. One browser or end-to-end path for the critical user journey.
158
+ 4. One smoke command for the target environment.
159
+ 5. One lint and type command.
160
+ 6. One regression entry per known incident.
161
+ 7. `VERIFICATION.md`, the `verify` skill, and the `maintain-verification` skill that keep them usable.
162
+
163
+ Add a property or model check when a quantified or stateful claim appears. Add an eval when the target is probabilistic. Do not add a layer just because a pyramid diagram has it.
164
+
165
+ ## Never impose a framework
166
+
167
+ - Use the project's existing runner, fixtures, and conventions.
168
+ - Do not add a dependency to satisfy this reference.
169
+ - Do not rewrite a working suite into a preferred style.
170
+ - Do not introduce a browser, a database, or a container the project does not already use.
171
+ - The generated CLI and the generated skills follow the same rule: they wrap what exists, they do not replace it.
172
+ - If the project has no runner, propose the smallest one that fits the stack and ask before adding it.
173
+
174
+ The skill travels across stacks; the repository's own commands are the source of truth.
175
+
176
+ ## Keep it current
177
+
178
+ A verification map that nobody updates is worse than no map: it gives false confidence. The generated `maintain-verification` skill exists to prevent that.
179
+
180
+ - Run the maintain pass after every incident and before every release.
181
+ - Update the claim map when a requirement, interface, or environment changes.
182
+ - Remove claims that no longer matter; do not let the map become a museum.
183
+ - Re-run the CLI commands after a tool or runtime upgrade.
184
+ - Record the evidence location, not just "tests pass".
185
+ - Treat the map, the CLI, and the two skills as code: reviewed, owned, and versioned with the repository.
@@ -0,0 +1,101 @@
1
+ # Evidence-Based Testing
2
+
3
+ Evidence-based testing starts from the practice used for life-critical systems: code must demonstrate that a stated requirement is satisfied, not merely pass a green test. The practical question is not "do the tests pass?" but "what evidence proves this claim, and where is it recorded?"
4
+
5
+ ## High-assurance traceability
6
+
7
+ Life-critical practice converges on the same shape:
8
+
9
+ - Requirements are explicit and traceable.
10
+ - Tests are derived from requirements and from identified failure modes, not only from the implementation.
11
+ - Independence and coverage are part of the evidence, not an afterthought.
12
+ - An auditor looks for a trace from requirement to design to code to test result, not for a green status.
13
+
14
+ The common shape is:
15
+
16
+ ```text
17
+ requirement -> design -> code -> evidence -> test result
18
+ ```
19
+
20
+ Every material requirement should be traceable to the code that implements it and to the evidence that demonstrates it. The trace is the audit object; the green status is not.
21
+
22
+ ## Specification to invariant to proof to log check
23
+
24
+ A compact engineering variant that works with agents:
25
+
26
+ 1. The architect reads the requirement, classifies it, and formulates an **invariant**: a statement that must hold if the requirement is satisfied.
27
+ 2. The coding agent receives the **burden of proof**: it must make the implementation produce evidence that the invariant holds.
28
+ 3. A test exercises the implementation to populate its logs or trace with that evidence.
29
+ 4. The test checks the **evidence** in the log, not only the business return value.
30
+ 5. The verification code merges with the implementation; the invariant and proof can often be very small.
31
+
32
+ This is stronger than an example test because the oracle is the invariant, and the evidence is produced by the implementation rather than copied from it. It also gives the agent a concrete obligation: prove this claim, not "make the tests green".
33
+
34
+ A generic shape:
35
+
36
+ ```text
37
+ invariant I(requirement)
38
+ implementation produces evidence E when I holds
39
+ test asserts E is present and well-formed
40
+ test also asserts the observable behavior
41
+ ```
42
+
43
+ The evidence must be specific enough that a wrong implementation cannot produce it accidentally. A log line that says "ok" without the relevant values is not evidence.
44
+
45
+ ## Evidence ledger
46
+
47
+ Use a ledger for every material claim. It can live in the change description, the plan, the review, or a project `VERIFICATION.md`.
48
+
49
+ | Field | Meaning |
50
+ |---|---|
51
+ | Claim | The one-sentence statement under test |
52
+ | Property | The invariant or behavior that must hold |
53
+ | Oracle | The independent source of truth |
54
+ | Command | The exact reproducible command |
55
+ | Artifact | The output, screenshot, trace, log, proof, or counterexample |
56
+ | Result | Observed pass, fail, or inconclusive, with the relevant values |
57
+ | Residual risk | What the evidence does not prove |
58
+ | Owner | Who can reproduce or update it |
59
+
60
+ A row is complete only when another person can run the command and inspect the artifact without asking the author. "Tests pass" is not a row.
61
+
62
+ ## Self-verification versus independent verification
63
+
64
+ Self-verification is the author's feedback loop: run the tests, build, screenshots, and traces while implementing. It is necessary and cheap.
65
+
66
+ Independent verification runs in a fresh context and does not inherit the assumptions that produced the code. It is appropriate for high-risk, cross-module, security, data, or release claims. A common long-running-agent practice distinguishes the two and runs the verifier in a fresh context so the verdict is not colored by the implementation's assumptions. Code review is not verification: review checks intent, risk, and specification fit; verification checks behavior.
67
+
68
+ ## Acceptance and review language
69
+
70
+ Separate these statements:
71
+
72
+ - "No defect was discovered in the reviewed scope."
73
+ - "The material claims are supported by evidence that exercises the changed behavior."
74
+ - "The change is proven correct."
75
+
76
+ Only the second is a reasonable completion claim for ordinary work. The third is reserved for a proof or an exhaustive verification, and even then only within the model or the stated assumptions.
77
+
78
+ A reviewer finding should name the property, its relevance, the evidence limitation, and the smallest useful check. A material verification gap is a finding, not a stylistic preference.
79
+
80
+ ## Confidence tiers
81
+
82
+ Use explicit tiers when a claim is contested or when sources disagree:
83
+
84
+ 1. **Executed observation in this repository:** a command you ran, an artifact you inspected, a test that failed before and passed after.
85
+ 2. **Authoritative contract:** the current specification, schema, public interface, or standard that governs the behavior.
86
+ 3. **Reproducible primary source:** a paper, official documentation, or a reproducible external experiment.
87
+ 4. **Practitioner report or secondary retelling:** a blog, talk, thread, or a summary of a paper. Useful for direction; not proof.
88
+ 5. **Model self-report or prose:** the agent's description of what it did. Never sufficient for a correctness claim.
89
+
90
+ Treat a `medium` or `low` confidence claim as a hypothesis to test, not as a settled fact. This includes claims about TDD, formal methods, and agent behavior.
91
+
92
+ ## What this does not prove
93
+
94
+ - A green test does not prove the absence of defects.
95
+ - A proof does not prove that the formalization matches the intended requirement.
96
+ - A model check does not prove that the model matches the code.
97
+ - A screenshot does not prove that every branch is correct.
98
+ - An eval does not prove that the product is correct outside the eval distribution.
99
+ - A reviewer's approval does not prove that the evidence is sufficient.
100
+
101
+ State the residual risk explicitly. A named gap is honest; an unnamed gap is a false completion claim.