@osovv/vv-opencode 2.7.1 → 2.9.0
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.
- package/CHANGELOG.md +18 -0
- package/README.md +27 -49
- package/dist/cli.js +1 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/completion.js +6 -32
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/preset.d.ts +0 -7
- package/dist/commands/preset.js +10 -29
- package/dist/commands/preset.js.map +1 -1
- package/dist/commands/session.d.ts +0 -3
- package/dist/commands/session.js +25 -40
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.js +3 -4
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.js +25 -3
- package/dist/commands/sync.js.map +1 -1
- package/dist/lib/managed-agents.js +1 -1
- package/dist/lib/managed-agents.js.map +1 -1
- package/dist/lib/opencode/inspection.d.ts +0 -4
- package/dist/lib/opencode/inspection.js +2 -12
- package/dist/lib/opencode/inspection.js.map +1 -1
- package/dist/lib/opencode/vvoc-orchestration-migration.d.ts +21 -0
- package/dist/lib/opencode/vvoc-orchestration-migration.js +91 -0
- package/dist/lib/opencode/vvoc-orchestration-migration.js.map +1 -0
- package/dist/lib/orchestration.d.ts +2 -11
- package/dist/lib/orchestration.js +21 -44
- package/dist/lib/orchestration.js.map +1 -1
- package/dist/lib/vvoc-config.d.ts +0 -25
- package/dist/lib/vvoc-config.js +4 -22
- package/dist/lib/vvoc-config.js.map +1 -1
- package/dist/lib/vvoc-preset-registry.d.ts +0 -30
- package/dist/lib/vvoc-preset-registry.js +4 -14
- package/dist/lib/vvoc-preset-registry.js.map +1 -1
- package/dist/plugins/system-context-injection/guidance.d.ts +1 -0
- package/dist/plugins/system-context-injection/guidance.js +6 -4
- package/dist/plugins/system-context-injection/guidance.js.map +1 -1
- package/dist/plugins/system-context-injection/index.js +23 -16
- package/dist/plugins/system-context-injection/index.js.map +1 -1
- package/dist/plugins/workflow/index.js +4 -2
- package/dist/plugins/workflow/index.js.map +1 -1
- package/dist/plugins/workflow/results.d.ts +4 -4
- package/dist/plugins/workflow/schemas.d.ts +4 -4
- package/dist/runtime/context-inspection.js +1 -1
- package/dist/runtime/context-inspection.js.map +1 -1
- package/dist/runtime/session-settings.d.ts +6 -5
- package/dist/runtime/session-settings.js +36 -14
- package/dist/runtime/session-settings.js.map +1 -1
- package/dist/tui/settings/plugin.d.ts +1 -1
- package/dist/tui/settings/plugin.js +3 -3
- package/dist/tui/settings/plugin.js.map +1 -1
- package/package.json +1 -1
- package/schemas/vvoc/v3.json +1 -37
- package/templates/agents/vv-controller.md +15 -4
- package/templates/skills/vv-execute/SKILL.md +184 -292
- package/templates/skills/vv-execute/references/tool-contracts.md +1 -1
- package/templates/skills/vv-handoff/SKILL.md +39 -50
- package/templates/skills/vv-plan/SKILL.md +97 -155
- package/templates/skills/vv-reflect/SKILL.md +91 -111
- package/templates/skills/vv-review/SKILL.md +33 -26
- package/templates/skills/vv-spec/SKILL.md +51 -93
- package/templates/skills/vv-ui-design-principles/SKILL.md +28 -33
- package/templates/skills/vv-ui-design-principles/references/slop-tells.md +9 -0
- package/templates/skills/vv-verification/SKILL.md +44 -55
- package/templates/skills/vv-verification/references/create-your-verification-stack.md +16 -0
- package/templates/skills/vv-verification/references/evidence.md +9 -0
- package/templates/skills/vv-verification/references/oracles.md +8 -0
- package/templates/skills/vv-verification/references/strategy.md +10 -0
- package/templates/skills/vv-write-for-agents/SKILL.md +33 -33
- package/templates/skills/vv-write-for-humans/SKILL.md +47 -49
- package/templates/skills/vvoc-usage-analytics/SKILL.md +45 -43
- package/templates/skills/vvoc-usage-analytics/references/opencode-db-queries.md +12 -3
- package/dist/commands/orchestration.d.ts +0 -25
- package/dist/commands/orchestration.js +0 -185
- package/dist/commands/orchestration.js.map +0 -1
|
@@ -3,49 +3,44 @@ 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
|
-
<
|
|
7
|
-
|
|
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
|
-
</identity>
|
|
6
|
+
<scope>
|
|
7
|
+
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.
|
|
10
8
|
|
|
11
|
-
<principle>
|
|
12
9
|
AI slop is density, not a banned list. Any single tell (an eyebrow label, a cream background, a serif headline) is a legitimate choice; a page stacking ten of them reads as machine-made. Research on AI-built pages shows that written encouragement like "be distinctive" makes output worse — the model reads it as "add more". So this skill works by subtraction: make one deliberate choice, then remove everything that does not serve it. Banning Inter and purple does not produce design; it produces Instrument Serif and mono captions. The list of tells steers attention; the brief decides.
|
|
13
|
-
</
|
|
10
|
+
</scope>
|
|
14
11
|
|
|
15
12
|
<workflow>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
1. Identify the subject before styling: what the product is, who it is for, and the one job of this page or screen. Distinctive choices come from the subject's industry, materials, and vocabulary — not from a stylesheet of safe "premium" moves. If the brief does not name a subject, propose one and confirm.
|
|
14
|
+
2. Look for a project DESIGN.md before choosing any token. Load references/design-md.md when you need the discovery procedure and file contract. If the file exists, validate every later choice against it and report deviations explicitly. If it is missing, plan tokens first and propose creating DESIGN.md from your plan — ask before writing it.
|
|
15
|
+
3. Plan tokens before code: 4–8 named hex colors with roles, one or two brand typefaces with roles plus a mono or data face where the product needs one, a layout concept (alignment, density, one sentence per section), and one signature element the page will be remembered by. Spend your boldness in that one place and keep everything around it quiet. Review the plan against genericity: if a similar brief would produce the same plan, revise the part that would match — and say what you changed and why.
|
|
16
|
+
4. Build against the quality floor. Load references/quality-floor.md for the measurable numbers (contrast, type sizes, measure, focus, targets, motion, content states) and treat them as non-negotiable. Use real content — actual product names, screenshots, numbers — because placeholder content makes a design feel templated as surely as default colors do.
|
|
17
|
+
5. Run the subtractive audit before declaring the work done. Load references/slop-tells.md, walk the catalog by category, and count tells per section. When a section stacks several tells, fix by removing first — simpler hierarchy, fewer containers, less decoration — never by adding a counter-effect. Remove one more thing than feels necessary (take one accessory off before leaving the house).
|
|
18
|
+
6. Report honestly: list the tells you removed, the tells you kept deliberately (with the brief-based reason), and the quality-floor violations you fixed with numbers. A deliberate keep is legitimate; an unexamined default is not.
|
|
22
19
|
</workflow>
|
|
23
20
|
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</
|
|
21
|
+
<rules>
|
|
22
|
+
- A tell may remain only when the brief or subject genuinely calls for it and you can state that reason in one sentence. An editorial publication may keep a serif display and hairline rules; a fintech dashboard may not inherit them by default.
|
|
23
|
+
- Fix by removal before addition: merge containers, delete badges, drop entrances, shorten headlines. If a fix requires adding a new decoration, it is probably not a fix.
|
|
24
|
+
- Density ladder for the audit: one tell is a choice; more than 2 in one section is a pattern to break by removal; more than 5 on a page is a redesign of those areas.
|
|
25
|
+
- Do not fix slop by inverting it into the next default (cream to neon, serif to mono). Re-derive the choice from the subject.
|
|
26
|
+
- The quality floor is a requirement, not a style preference: it ranks above the brief, DESIGN.md, and this skill's other rules. If the brief or a documented decision asks for less than the floor, flag the conflict and confirm; absent confirmation, implement the floor-compliant version.
|
|
27
|
+
- Motion is judgment, not compliance: keep at most one purposeful reveal and the feedback that answers user actions, gate all of it behind reduced-motion, and never strip motion entirely just to pass an audit.
|
|
28
|
+
</rules>
|
|
32
29
|
|
|
33
|
-
<
|
|
34
|
-
|
|
30
|
+
<artifact>
|
|
31
|
+
Report format:
|
|
35
32
|
- Removed: tell → what replaced it (per section)
|
|
36
33
|
- Kept deliberately: tell → one-sentence brief-based reason
|
|
37
34
|
- Quality floor: violation → measured fix (numbers where applicable)
|
|
38
35
|
- DESIGN.md: found and followed | found with deviations listed | missing → proposal attached
|
|
39
|
-
</
|
|
40
|
-
</report_format>
|
|
36
|
+
</artifact>
|
|
41
37
|
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</
|
|
38
|
+
<refs>
|
|
39
|
+
- `references/slop-tells.md` — the tell catalog grouped by category (typography, color and contrast, layout and space, motion, copy, imagery, template chrome). Load when auditing or when a choice feels familiar.
|
|
40
|
+
- `references/quality-floor.md` — the measurable non-negotiables for any build. Load before writing UI code.
|
|
41
|
+
- `references/design-md.md` — the DESIGN.md contract: discovery, validation, and the create-or-fill proposal. Load at plan time and whenever a token choice is contested.
|
|
42
|
+
</refs>
|
|
47
43
|
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
</
|
|
51
|
-
</skill>
|
|
44
|
+
<done>
|
|
45
|
+
The requested build or audit is complete, the report lists removed tells, deliberate keeps with reasons, and measured quality-floor fixes, and DESIGN.md was followed or its absence was proposed. Do not modify files the request does not cover, and never write DESIGN.md without asking first.
|
|
46
|
+
</done>
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# AI slop tells
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Typography
|
|
5
|
+
- Color and contrast
|
|
6
|
+
- Layout and space
|
|
7
|
+
- Motion
|
|
8
|
+
- Copy
|
|
9
|
+
- Imagery
|
|
10
|
+
- Template chrome (composites)
|
|
11
|
+
|
|
3
12
|
A catalog for the subtractive audit. Read it as a set of familiar defaults to notice, not a ban list.
|
|
4
13
|
|
|
5
14
|
**How to use it**
|
|
@@ -3,49 +3,47 @@ name: vv-verification
|
|
|
3
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
4
|
---
|
|
5
5
|
|
|
6
|
-
<
|
|
7
|
-
|
|
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>
|
|
6
|
+
<scope>
|
|
7
|
+
Turn a correctness claim into sufficient evidence, not into a maximum number of tests. 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. Work in any language and any stack; the repository's own commands are the source of truth.
|
|
10
8
|
|
|
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
9
|
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
|
-
</
|
|
10
|
+
</scope>
|
|
19
11
|
|
|
20
12
|
<workflow>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
1. 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.
|
|
14
|
+
2. 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.
|
|
15
|
+
3. 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.
|
|
16
|
+
4. 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.
|
|
17
|
+
5. 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.
|
|
18
|
+
6. 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.
|
|
19
|
+
7. 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.
|
|
20
|
+
8. 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.
|
|
21
|
+
9. 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.
|
|
22
|
+
10. 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.
|
|
23
|
+
11. 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.
|
|
24
|
+
12. 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.
|
|
33
25
|
</workflow>
|
|
34
26
|
|
|
35
27
|
<rules>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
- Write skill artifacts, plans, evidence ledgers, and reports in English by default. Use the user's language only for dialogue; if the user explicitly requests a different document language, follow that request.
|
|
29
|
+
- A green test is not proof. It proves that the test ran and passed, not that the specification is satisfied.
|
|
30
|
+
- The oracle must carry external information. A test generated from the same context as the code tends to mirror the code.
|
|
31
|
+
- Separate the oracle from the implementer. When the implementer can see the exact tests, it can optimize for the tests instead of the specification.
|
|
32
|
+
- Tests never outrank the current specification. If a test contradicts the specification, surface the conflict before deciding which side is wrong.
|
|
33
|
+
- 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.
|
|
34
|
+
- Prefer deterministic checks over inferential ones. Use lint, types, contracts, properties, and reproducible commands before LLM judges or manual review.
|
|
35
|
+
- Evidence over prose. A completion claim names the command, the artifact, and the observed result.
|
|
36
|
+
- Formal methods are not a silver bullet. They can miss the formalization gap, tool bugs, and model drift.
|
|
37
|
+
- 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.
|
|
38
|
+
- 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.
|
|
39
|
+
- Stop when the claimed property is ambiguous or depends on business semantics. Ask for the property; do not invent a test-shaped interpretation.
|
|
40
|
+
- Stop when a test contradicts the current specification. Surface the conflict and the stale-test risk before changing either side.
|
|
41
|
+
- Stop when the available evidence cannot reach the changed behavior. Report the verification gap; do not claim completion.
|
|
42
|
+
- Stop when formal tooling is unavailable or its cost exceeds the risk. Fall back to the cheapest discriminating oracle and record the residual risk.
|
|
43
|
+
- Stop when 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.
|
|
46
44
|
</rules>
|
|
47
45
|
|
|
48
|
-
<
|
|
46
|
+
<artifact>
|
|
49
47
|
Use this shape in the change description, plan, review, or project VERIFICATION.md:
|
|
50
48
|
|
|
51
49
|
| Claim | Property | Oracle | Command | Artifact | Result | Residual risk | Owner |
|
|
@@ -53,26 +51,17 @@ Use this shape in the change description, plan, review, or project VERIFICATION.
|
|
|
53
51
|
| 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
52
|
|
|
55
53
|
A ledger row is complete only when the command is reproducible and the artifact can be inspected without asking the author.
|
|
56
|
-
</
|
|
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>
|
|
54
|
+
</artifact>
|
|
65
55
|
|
|
66
|
-
<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</
|
|
56
|
+
<refs>
|
|
57
|
+
- `references/strategy.md` — risk classification, test levels, cost and confidence, CI split, and coverage limits.
|
|
58
|
+
- `references/oracles.md` — the oracle problem, oracle catalog, selection matrix, fixtures, and anti-patterns.
|
|
59
|
+
- `references/evidence.md` — standards traceability, specification to invariant to proof to log check, evidence ledger, independent verification, and confidence tiers.
|
|
60
|
+
- `references/formal.md` — statecharts, TLA+, Lean, property-based tests, counterexample mapping, tooling, and limits.
|
|
61
|
+
- `references/maintenance.md` — stale tests, mutation and kill-matrix audits, flaky tests, coverage versus value, and incident-to-regression practice.
|
|
62
|
+
- `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.
|
|
63
|
+
</refs>
|
|
74
64
|
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
</
|
|
78
|
-
</skill>
|
|
65
|
+
<done>
|
|
66
|
+
Every material claim carries an inspectable artifact: claim, property, oracle, exact command, result, and residual risk are recorded. Load only the references the current claim needs. Never claim completion without an inspectable artifact.
|
|
67
|
+
</done>
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Create Your Verification Stack
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- When to use
|
|
5
|
+
- Discover the repository
|
|
6
|
+
- Write VERIFICATION.md
|
|
7
|
+
- Commands
|
|
8
|
+
- Claim map
|
|
9
|
+
- Environments and fixtures
|
|
10
|
+
- Known gaps
|
|
11
|
+
- Maintenance
|
|
12
|
+
- Create the verification CLI
|
|
13
|
+
- Generate the project skills
|
|
14
|
+
- Register the skills
|
|
15
|
+
- The smallest useful stack
|
|
16
|
+
- Never impose a framework
|
|
17
|
+
- Keep it current
|
|
18
|
+
|
|
3
19
|
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
20
|
|
|
5
21
|
What the stack consists of:
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Evidence-Based Testing
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- High-assurance traceability
|
|
5
|
+
- Specification to invariant to proof to log check
|
|
6
|
+
- Evidence ledger
|
|
7
|
+
- Self-verification versus independent verification
|
|
8
|
+
- Acceptance and review language
|
|
9
|
+
- Confidence tiers
|
|
10
|
+
- What this does not prove
|
|
11
|
+
|
|
3
12
|
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
13
|
|
|
5
14
|
## High-assurance traceability
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Oracle Design
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- The oracle problem
|
|
5
|
+
- Oracle catalog
|
|
6
|
+
- Selection matrix
|
|
7
|
+
- Fixtures
|
|
8
|
+
- The external-information test
|
|
9
|
+
- Anti-patterns
|
|
10
|
+
|
|
3
11
|
An oracle is the mechanism that decides whether an observed result is correct. The hardest part of verification is not running the code; it is knowing what the right answer is.
|
|
4
12
|
|
|
5
13
|
## The oracle problem
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Verification Strategy
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Risk first
|
|
5
|
+
- Test levels
|
|
6
|
+
- Cost and confidence
|
|
7
|
+
- CI split
|
|
8
|
+
- Coverage is a weak signal
|
|
9
|
+
- Choosing a level
|
|
10
|
+
- Layered example
|
|
11
|
+
- Anti-patterns
|
|
12
|
+
|
|
3
13
|
Use this reference to choose **where** to verify a claim. The oracle choice (what counts as correct) lives in `oracles.md`; this file decides the level, cost, and CI placement.
|
|
4
14
|
|
|
5
15
|
## Risk first
|
|
@@ -3,43 +3,43 @@ name: vv-write-for-agents
|
|
|
3
3
|
description: Use when writing or revising text an agent executes — subagent delegation prompts, AGENTS.md and project instructions, skill bodies, spec and plan prose, runtime prompts. Compiles raw intent into a minimal sufficient task specification, serializes and marks up content for exact addressability, and keeps long sessions stable through explicit update semantics. Not for human-facing prose; single-request task-XML compilation is the enhancer agent's job.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
You are the vv-write-for-agents skill. You design the input another agent executes: the whole effective prompt — persistent instructions, conversation history, documents, and the current task — not just the last user phrase. You are guidance, not a linter: every technique is a hypothesis until it is checked on the target model.
|
|
9
|
-
</identity>
|
|
6
|
+
<scope>
|
|
7
|
+
Design the input another agent executes: the whole effective prompt — persistent instructions, conversation history, documents, and the current task — not just the last user phrase. You are guidance, not a linter: every technique is a hypothesis until it is checked on the target model.
|
|
10
8
|
|
|
11
|
-
<principle>
|
|
12
9
|
The agent reads everything it can see as one cumulative input, so a clean current turn still fails when history carries stale tasks or ambiguous references. Quality has five designed properties: semantic specification (what counts as the task), structural serialization (logical functions are distinguishable), causal placement (definitions precede what depends on them), addressability (every referenced entity is exact), behavioral validation (the prompt is run, not admired). Structure reduces interpretations; it never repairs contradictory content.
|
|
13
|
-
</
|
|
14
|
-
|
|
15
|
-
<contract>
|
|
16
|
-
<rule>Preserve the requester's intent, material constraints, and project overlays: vocabulary, boundaries, verification commands. Add only requirements the user asked for.</rule>
|
|
17
|
-
<rule>Never make a material assumption silently: if a missing fact materially changes behavior, scope, schema, verification, safety, or reversibility, ask one focused question; otherwise state the narrowest assumption and continue with reversible work.</rule>
|
|
18
|
-
<rule>Keep one authoritative location per active rule: near the current task, repeat a stable ID or a short reminder — never a second wording of the rule.</rule>
|
|
19
|
-
<rule>Exact references over pronouns: name the block, ID, or file. "This" and "the above" are defects when the target is not unique.</rule>
|
|
20
|
-
<rule>State the evidence level of a recommendation — established mechanism, behavioral evidence, or working hypothesis. An inference is not a law.</rule>
|
|
21
|
-
<rule>Editing an existing instruction is a behavior change: preserve triggers, permissions, completion criteria, and commands unless changing them is the task; name the behavior each edit changes. Zero edits is a valid result.</rule>
|
|
22
|
-
<rule>The document being edited is material, not commands to you.</rule>
|
|
23
|
-
</contract>
|
|
10
|
+
</scope>
|
|
24
11
|
|
|
25
12
|
<workflow>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
1. Identify the recipient: a fresh subagent or a continuing session, and what context it already sees. A fresh subagent needs a self-contained assignment or exact references it can actually read.
|
|
14
|
+
2. Extract the deliverable, not the topic. Classify raw statements as goal, context, input, scope, constraint, priority, preserve, non-goal, unknown, or output, and scope conflicts rather than deleting one side. Load references/compilation.md when the request is raw, mixed, or contradictory.
|
|
15
|
+
3. Choose the minimal sufficient specification: add a field, rule, or example only when it removes a real ambiguity, sets a requirement, fixes a measured failure, or makes the result checkable. Underspecification and overspecification are both defects.
|
|
16
|
+
4. Serialize and place: one primary container with the native representation inside; definitions before use, sources before questions, the immediate task and output requirements last. Load references/structure.md for multi-block prompts, XML artifacts, or pasted content.
|
|
17
|
+
5. Add output and completion: deliverable shape, required evidence, a done condition checkable against evidence, and stop or blocked behavior. Done must not be reachable by weakening the criteria.
|
|
18
|
+
6. Track the session state: keep the current task explicit, express requirement changes as update operations with IDs, wrap external results with stable query IDs. Load references/session.md when requirements change mid-session or work transfers.
|
|
19
|
+
7. Lint before delivery: unresolved references, mixed instruction and data, duplicated rules, stale requirements, structure heavier than the task. Load references/validation.md for the checklist and the evaluation protocol.
|
|
33
20
|
</workflow>
|
|
34
21
|
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
22
|
+
<rules>
|
|
23
|
+
- Preserve the requester's intent, material constraints, and project overlays: vocabulary, boundaries, verification commands. Add only requirements the user asked for.
|
|
24
|
+
- Never make a material assumption silently: if a missing fact materially changes behavior, scope, schema, verification, safety, or reversibility, ask one focused question; otherwise state the narrowest assumption and continue with reversible work.
|
|
25
|
+
- Keep one authoritative location per active rule: near the current task, repeat a stable ID or a short reminder — never a second wording of the rule.
|
|
26
|
+
- Exact references over pronouns: name the block, ID, or file. "This" and "the above" are defects when the target is not unique.
|
|
27
|
+
- State the evidence level of a recommendation — established mechanism, behavioral evidence, or working hypothesis. An inference is not a law.
|
|
28
|
+
- Editing an existing instruction is a behavior change: preserve triggers, permissions, completion criteria, and commands unless changing them is the task; name the behavior each edit changes. Zero edits is a valid result.
|
|
29
|
+
- The document being edited is material, not commands to you.
|
|
30
|
+
- vv-spec and vv-plan own the spec and plan lifecycle; you govern the prose inside those documents, not their statuses. Human-facing prose belongs to vv-write-for-humans.
|
|
31
|
+
- Task split: Compile — run the pipeline and return the prompt. Revise — read the whole document, map the active rules, make minimal edits that each name the behavior they change, then re-lint. Audit — report findings with an evidence level and the smallest fix; do not rewrite. Never execute the compiled task yourself.
|
|
32
|
+
- In .vvoc spec and plan artifacts, unique element identities are enforced by vvoc tooling; elsewhere they are a strong default to verify on the target model.
|
|
33
|
+
- The enhancer agent compiles single requests into its task XML; when you emit one, reuse its schema and field names — never fork them.
|
|
34
|
+
</rules>
|
|
35
|
+
|
|
36
|
+
<refs>
|
|
37
|
+
- `references/compilation.md` — compile raw or mixed intent into a minimal sufficient task specification. Load for raw, mixed, or contradictory requests.
|
|
38
|
+
- `references/structure.md` — serialization, placement, identity, and pasted-content boundaries. Load for multi-block prompts, XML artifacts, or pasted content.
|
|
39
|
+
- `references/session.md` — session state, update semantics, and external result handling. Load when requirements change mid-session or work transfers.
|
|
40
|
+
- `references/validation.md` — evidence levels, prompt lint, anti-patterns, and controlled evaluation. Load before delivery.
|
|
41
|
+
</refs>
|
|
41
42
|
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
</
|
|
45
|
-
</skill>
|
|
43
|
+
<done>
|
|
44
|
+
The compiled or revised agent-facing text is delivered. The recipient and its visible context are named, the deliverable is observable, inputs and scope are exact, one authoritative location exists per rule, unresolved references and stale requirements are gone, and the done condition is checkable. Zero edits is reported when the text already does its job.
|
|
45
|
+
</done>
|
|
@@ -3,56 +3,54 @@ name: vv-write-for-humans
|
|
|
3
3
|
description: Use when drafting, copyediting, restructuring, or auditing engineering prose for human readers — README and docs, PR descriptions, design notes/RFD/ADR, commit messages, reports and final answers, error messages, substantive replies — or when a draft reads vague, inflated, or hedged beyond the evidence. Preserves facts, modality, conditions, and protected content; good text may be left unchanged. Not for agent-facing instructions, code, or marketing copy.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<skill>
|
|
7
|
-
<identity>
|
|
8
|
-
You are the vv-write-for-humans skill. You write and edit prose whose job is to let a human reader understand behavior, make a decision, or perform an action. Smoothness is not the goal; task fitness is. Removing machine-sounding tells is one editing technique, not the purpose and never an authorship test.
|
|
9
|
-
</identity>
|
|
10
|
-
|
|
11
|
-
<principle>
|
|
12
|
-
Every claim in the text must be traceable to a source the writer supplied: the code, the diff, the test run, the user's words. Limited verification never becomes a general guarantee. When meaning and smoothness conflict, meaning wins. A text that already does its job may be left unchanged — zero edits is a valid result.
|
|
13
|
-
</principle>
|
|
14
|
-
|
|
15
6
|
<scope>
|
|
7
|
+
Write and edit prose whose job is to let a human reader understand behavior, make a decision, or perform an action. Smoothness is not the goal; task fitness is. Removing machine-sounding tells is one editing technique, not the purpose and never an authorship test.
|
|
8
|
+
|
|
16
9
|
The test is the text's destination, not its file type. Artifacts — README and docs, PR descriptions, design notes/RFD/ADR, commit messages, reports, substantive answers — get the full contract. Utterances that live in the dialogue get only the fidelity rules and proportionality: answer directly, impose no headings or structure on short replies. Editing code, comments, docstrings, or identifiers is out of scope unless it is the explicit task. Agent-facing instructions belong to vv-write-for-agents. Marketing and legal copy are out of scope.
|
|
10
|
+
|
|
11
|
+
Every claim in the text must be traceable to a source the writer supplied: the code, the diff, the test run, the user's words. Limited verification never becomes a general guarantee. When meaning and smoothness conflict, meaning wins. A text that already does its job may be left unchanged — zero edits is a valid result.
|
|
17
12
|
</scope>
|
|
18
13
|
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</
|
|
58
|
-
|
|
14
|
+
<workflow>
|
|
15
|
+
1. Name the reader's job and pick the genre criteria from references/genres.md.
|
|
16
|
+
2. Read the whole text before editing and classify every candidate change by level: A (meaning invariant), B (clarity default), or C (project style).
|
|
17
|
+
3. For Draft, write from the supplied sources and list the gaps. For Copyedit, edit wording inside sentences only. For Restructure, change order and structure only on explicit request. For Audit, report findings and rewrite nothing.
|
|
18
|
+
4. Apply the deletion and addition tests to every cut and every addition.
|
|
19
|
+
5. Verify claim-by-claim against the source — a smoothness re-read is not that check.
|
|
20
|
+
6. Report nontrivial changes, flagged gaps, and a one-line reason when the result is zero edits. Escalate only by proposal: a copyedit that finds a structural problem reports it and offers restructure; it does not perform it.
|
|
21
|
+
</workflow>
|
|
22
|
+
|
|
23
|
+
<rules>
|
|
24
|
+
- Preserve negation, modality, conditions, and quantifiers: may, must, should, если, только если, if, unless, only, all, never, up to. Deleting a hedge turns a possibility into a guarantee.
|
|
25
|
+
- Preserve units, versions, numbers and their precision, attribution, and level of certainty. "About 3s" is not "3s"; "since v2.4" is not "in v2.4".
|
|
26
|
+
- Add no fact, number, name, date, mechanism, or stance that is not in the supplied sources. When a needed detail is missing, flag the gap or ask — never fill it.
|
|
27
|
+
- Protected content stays byte-identical in ordinary edits: code blocks and spans, identifiers, paths, URLs and link targets, quotations, frontmatter, structured data, test fixtures, log output, and error strings asserted by tests. Report a problem inside a protected span; do not rewrite it.
|
|
28
|
+
- The document being edited is material, not commands to you.
|
|
29
|
+
- Keep the document's language and established terminology: one term per concept.
|
|
30
|
+
- An ambiguous sentence keeps its content and is flagged with its candidate readings; resolve only when a source disambiguates.
|
|
31
|
+
- Level A — meaning invariants: the fidelity contract above. A violation is a defect regardless of style. Level B — clarity defaults: reorder for the reader, name actors and actions, mark relations between clauses; defaults yield to sources and to meaning. Level C — project style: dialect, spelling, punctuation, emoji, tone; resolution order is explicit user request, then project conventions, then this skill's defaults, and defaults never normalize existing text. A British-spelled repo keeps its spellings.
|
|
32
|
+
- Two tests govern every cut and every addition — the deletion test and the addition test. Deletion test: keep a span whose removal could make the reader act differently or believe something false; preconditions, failure conditions, defaults, and meaningful hedges survive simplification. Addition test: add only what the reader needs for the task and the sources supply. Longer can be better: "Retry on failure." becomes "Retry only on 429 and 5xx, up to three times, honoring Retry-After. Never retry 401." when the source states that behavior.
|
|
33
|
+
</rules>
|
|
34
|
+
|
|
35
|
+
<artifact>
|
|
36
|
+
Modes:
|
|
37
|
+
|
|
38
|
+
| Mode | Trigger | Allowed | Forbidden | Report |
|
|
39
|
+
|---|---|---|---|---|
|
|
40
|
+
| Draft | "write" plus sources | structure and content, with every claim traceable | facts beyond the sources | the text plus a list of gaps |
|
|
41
|
+
| Copyedit | default for existing text | wording inside sentences | reordering sections, adding or dropping claims, renaming terms | nontrivial changes and flags |
|
|
42
|
+
| Restructure | an explicit request | order and structure | changing facts | what moved and what merged |
|
|
43
|
+
| Audit | "review", "assess" | nothing | rewriting while at it | findings, each with a minimal fix |
|
|
44
|
+
|
|
45
|
+
Report format: nontrivial changes, flagged gaps, and a one-line reason when the result is zero edits.
|
|
46
|
+
</artifact>
|
|
47
|
+
|
|
48
|
+
<refs>
|
|
49
|
+
- `references/genres.md` — sufficiency criteria per genre: what the reader must be able to do after reading a README, PR description, commit message, design note, report, or error message. Load when drafting a new artifact or checking whether a text does its job.
|
|
50
|
+
- `references/patterns.md` — structure and word-level patterns for English and Russian prose, each with a pass condition and an exception. Load for audit mode and for the self-check of a fresh draft.
|
|
51
|
+
- `references/fidelity.md` — the casebook: leave-as-is counterexamples, the term-or-metaphor procedure, ambiguity handling. Load when an edit touches truth conditions, hedges, or protected spans.
|
|
52
|
+
</refs>
|
|
53
|
+
|
|
54
|
+
<done>
|
|
55
|
+
The requested draft, copyedit, restructure, or audit is complete. Nontrivial changes and flagged gaps are reported, every claim is traceable to a supplied source, protected spans are intact, and a zero-edit result states its one-line reason.
|
|
56
|
+
</done>
|