Loading...
Loading...
Verify structure analysis output against source code. Check file:line references, component completeness, and Mermaid diagram validity. Runs as independent Critic in fork context. Use when: verify structure, check structure map, validate phase 1, re-verify-structure.
npx skill4agent add caldiaworks/caldiaworks-marketplace re-verify-structurere-structure-analysisre-visualize-logicPASSWARNfile:linemanifestanalysisdocs/reverse/{analysis}/manifest.jsonmanifestanalysis{manifest-path}
{analysis-dir}/01-structure-map.mdtargets.entry_pointsphase1.status"completed"languagephase1.status"completed"file:line| Category | Criteria |
|---|---|
| ✅ VALID | File exists, line exists, content matches claim |
| ⚠️ INACCURATE | File exists, content found within ±10 lines of cited line |
| ❌ INVALID | File does not exist, or line number grossly wrong |
| 🚫 HALLUCINATION | Component described in structure map cannot be found in source code at any location |
mcp__serena__search_for_pattern(
substring_pattern="class |interface |def |function ",
restrict_search_to_code_files=true
)(listed_in_map / actual_in_source) * 100| Coverage | Verdict |
|---|---|
| >= 95% | PASS |
| 90% - 94% | WARN |
| < 90% | FAIL |
targets_for_phase2docs/reverse/{analysis}/verification/v1-structure.md# Structure Map Verification Report
**Verification Date**: {YYYY-MM-DD}
**Target Document**: docs/reverse/{analysis}/01-structure-map.md
**Verdict**: {PASS / WARN / FAIL}
## Summary
| Check | Result | Details |
|:------|:-------|:--------|
| Reference Accuracy | {✅/⚠️/❌} | {valid}/{total} references ({%}) |
| Component Coverage | {✅/⚠️/❌} | {listed}/{actual} components ({%}) |
| Mermaid Syntax | {✅/⚠️/❌} | {error_count} errors |
| Internal Consistency | {✅/⚠️/❌} | {inconsistency_count} issues |
## Verdict
{PASS}: Phase 2 may proceed.
{WARN}: Minor issues found. Phase 2 may proceed. Corrections recommended.
{FAIL}: **Critical issues found. Phase 2 must not proceed. Corrections required.**
## Reference Verification Details
### Invalid References
| Claim | File:Line | Issue | Expected |
|:------|:----------|:------|:---------|
| {claim} | {reference} | {issue description} | {correct reference or "not found"} |
### Hallucinations
- {component}: {reason it is considered hallucinated}
## Completeness Details
### Missing Components
| Component | File | Type |
|:----------|:-----|:-----|
| {name} | {file path} | {class/function/interface} |
## Mermaid Validation
### Syntax Errors
- Block {N}: {error description}
### Content Inaccuracies
- Node "{node}": {discrepancy}
## Internal Consistency Issues
- {description of inconsistency}
## Recommendations
1. **[CRITICAL]** {fix description}
2. **[HIGH]** {fix description}
3. **[MEDIUM]** {fix description}phase1.verification"verification/v1-structure.md"PASSWARNphase1.status"verified"FAILphase1.status"completed"updated| Criterion | PASS | WARN | FAIL |
|---|---|---|---|
| Reference accuracy | >= 95% | 80-94% | < 80% |
| Component coverage | >= 95% | 90-94% | < 90% |
| Mermaid errors | 0 | 1-2 | >= 3 |
| Hallucinations | 0 | 0 | >= 1 |