원클릭으로
validate-fix
Iteratively fix validation errors until clean
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Iteratively fix validation errors until clean
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Collaboratively refine a high-level ambition into a set of chunk prompts.
Migrate the project's ACTIVE chunks to the present-tense, intent-owning standard. Audits each chunk's goal against the code it claims to govern; rewrites retrospective framing inline; logs over-claims that need operator triage; historicalizes chunks with no enduring intent. Designed for full-corpus migrations — fans out across many parallel sub-agents at 5 chunks per agent.
Create a new chunk of work and refine its goal. Use when the operator wants to start new intent-bearing work, chunk something, define a piece of work, or break work into a chunk.
Update code references in the current chunk and move both the PLAN.md and the GOAL.md to the ACTIVE state.
Wake an entity by loading its identity, memories, and operational context
Set up a project steward via interactive interview
| name | validate-fix |
| description | Iteratively fix validation errors until clean |
This command runs an iterative fix loop that:
ve validate --verbose to detect errorsImportant constraints:
| Error Type | Link Type | Fix |
|---|---|---|
Malformed chunk_directory | narrative→chunk, investigation→chunk, friction→chunk | Strip docs/chunks/ prefix |
| Missing bidirectional link | chunk↔narrative, chunk↔investigation | Add chunk to parent's proposed_chunks |
| Missing code backref in file | chunk→code (when chunk has code_references) | Add # Chunk: comment to file |
Missing code_references entry | code↔chunk (code has backref, chunk doesn't list file) | Add entry to chunk's code_references |
| Error Type | Link Type | Reason |
|---|---|---|
| Reference to non-existent artifact | chunk→narrative, chunk→investigation, chunk→subsystem, chunk→friction, chunk→chunk | Artifact may be deleted or typo; requires human judgment |
| Code backref to non-existent chunk | code→chunk | Chunk may be deleted; requires human to update code |
| Code backref to non-existent subsystem | code→subsystem | Subsystem may be deleted; requires human to update code |
Non-existent chunk in proposed_chunks | narrative→chunk, investigation→chunk | Chunk reference is stale; requires human judgment |
Run validation to capture current state:
ve validate --verbose
Parse the output to extract:
ERROR: - these block successWARNING: - bidirectional consistency issuesFor each iteration (max 10):
Analyze each error and classify it:
Malformed path errors (auto-fixable):
Malformed chunk_directory '...' - should not include 'docs/chunks/' prefixMissing proposed_chunks entry (auto-fixable):
docs/chunks/{chunk}/GOAL.mdChunk references {narrative/investigation} '...' but {narrative/investigation}'s proposed_chunks does not list this chunkchunk↔narrative or chunk↔investigationproposed_chunks arrayMissing code backref in file (auto-fixable when chunk has code_references):
code_references and checking if each referenced file contains a # Chunk: comment pointing back# Chunk: docs/chunks/{chunk_name} - {description} to the fileMissing chunk→code reference (auto-fixable):
{file}:{line}Code backreference to chunk '...' but chunk's code_references does not include this filecode↔chunkcode_references arrayNon-existent references (unfixable):
... does not existApply auto-fixable fixes:
Fix: Malformed path
# Before in OVERVIEW.md frontmatter
proposed_chunks:
- prompt: "..."
chunk_directory: docs/chunks/my_chunk
# After
proposed_chunks:
- prompt: "..."
chunk_directory: my_chunk
Fix: Missing proposed_chunks entry
# Add to narrative/investigation's OVERVIEW.md proposed_chunks:
proposed_chunks:
# ... existing entries ...
- prompt: "<infer from chunk's Minor Goal>"
chunk_directory: {chunk_name}
Fix: Missing code backref
# Add at module level or before the referenced symbol
# Chunk: docs/chunks/{chunk_name} - {brief description from Minor Goal}
Fix: Missing code_references entry
# Add to chunk's GOAL.md code_references:
code_references:
# ... existing entries ...
- ref: {file_path}#{symbol_if_known}
implements: "{describe what this code implements}"
Track progress:
Re-validate:
ve validate --verbose
Loop check:
Report results:
## Validation Fix Results
### Fixes Applied
- Fixed malformed chunk_directory in docs/narratives/foo/OVERVIEW.md: docs/chunks/bar → bar
- Added chunk integrity_validate_fix_command to docs/investigations/referential_integrity/OVERVIEW.md proposed_chunks
- Added code backref to src/integrity.py for chunk integrity_validate
### Remaining Issues (require human review)
- ERROR: docs/chunks/foo/GOAL.md → docs/narratives/deleted_narrative: Narrative 'deleted_narrative' does not exist
- ERROR: src/old_code.py:42 → docs/chunks/removed_chunk: Chunk 'removed_chunk' does not exist
### Summary
- Iterations: 3
- Fixes applied: 5
- Remaining errors: 2 (require human intervention)
Warnings only: If validation shows only warnings (bidirectional issues) and no errors:
Circular or conflicting fixes: If the same error reappears after being "fixed":
Multiple fixes per file: When applying multiple edits to the same file: