From greenfield
Cross-validates sanitized output specs against raw source specs to detect lost behavioral detail, dropped constants, missing features, or diluted precision. Run after sanitization and contamination audit.
How this skill is triggered — by the user, by Claude, or both
Slash command
/greenfield:fidelity-validationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Sanitization removes source code identifiers. But aggressive sanitization can also remove behavioral detail that an implementor needs. This skill detects information loss.
Sanitization removes source code identifiers. But aggressive sanitization can also remove behavioral detail that an implementor needs. This skill detects information loss.
The sanitization pass rewrites raw specs into output specs. Each rewrite risks:
Run this AFTER:
This is the final quality gate before handing the output to the implementer.
Every behavioral claim in the raw specs must have a corresponding claim in the output specs — with equal or greater precision.
The output specs may use different words (that's the point of sanitization), but it must convey the same behavior. If the raw spec says "retry N times with a specific base, cap, and jitter", the output specs must say the same — not just "the system retries on failure."
For each raw module spec (workspace/raw/specs/modules/*.md), extract:
Write this inventory to workspace/raw/audit/fidelity-inventory.md.
For each item in the source claim inventory, search the corresponding output domain spec(s) for a matching behavioral claim.
Match criteria:
Report format per item:
### [RAW-SPEC: section-name] Claim: "description of the behavioral claim"
- Constant/Rule/Error/State/Decision/Feature
- Raw value: [exact value from raw specs]
- Output location: [file:section where it appears in the output] or MISSING
- Output value: [exact value from output specs] or N/A
- Status: MATCH | WEAKENED | MISSING | CHANGED
- Notes: [if WEAKENED/MISSING/CHANGED, explain what was lost]
Status definitions:
Repeat Phase 2 for:
Categorize all WEAKENED, MISSING, and CHANGED findings:
| Severity | Criteria | Action |
|---|---|---|
| P0-CRITICAL | A P0 behavior (critical path) is MISSING or CHANGED | Must fix before implementation |
| P0-WEAKENED | A P0 behavior lost precision (constants, branch coverage) | Must fix before implementation |
| P1-MISSING | A P1 behavior is entirely absent from the output | Should fix |
| P1-WEAKENED | A P1 behavior lost precision | Should fix |
| P2-MISSING | A P2/P3 behavior is absent | Advisory — may fix |
| P2-WEAKENED | A P2/P3 behavior lost precision | Advisory — may fix |
Write the full report to workspace/raw/audit/fidelity-report.md.
The report SHALL include:
Write a summary to workspace/output/audit/fidelity-summary.md:
The fidelity validation is compute-heavy (reading all raw specs AND all output specs). Dispatch as:
Inventory builders (parallel, one per 4-5 raw module specs): Extract behavioral claims from raw specs → workspace/raw/audit/fidelity-inventory-batch-N.md
Cross-validators (parallel, one per output domain spec): Read the relevant inventory batches + the output domain spec → produce per-domain findings
Aggregator (sequential): Merge all findings → severity assessment → final report
Each agent is dispatched as greenfield:analyzer since they need to read both raw/ and output/.
Together, the audit (Layer 6) and fidelity validation form a two-sided check:
2plugins reuse this skill
First indexed Jul 8, 2026
npx claudepluginhub systemlevel/greenfieldCross-validates sanitized output specs against raw source specs to detect lost behavioral detail, dropped constants, missing features, or diluted precision. Run after sanitization and contamination audit.
Verifies implementation completion by running tests, code hygiene review, spec compliance validation, and drift checks; blocks claims on failures. Use before commits or merges.
Validates completed implementation against specification using 7 mandatory gates, checks proof artifacts, and produces a coverage matrix report.