Implements Phase 1-8 of /trekrevise (Handover 8 producer):
- Phase 1: parse mode + reject MULTI_ARTIFACT_NOT_SUPPORTED
- Phase 2: read source + check stale .local.bak
- Phase 3: parseAnchors + validateAnchorPlacement (no partial revisions)
- Phase 4: computeAnnotationDigest + non-additive detection
- Phase 5: revisionGuard orchestration (backup -> mutate -> validate -> rollback-on-fail)
- Phase 6: branch on outcome (applied / rolled-back / mutator-failed)
- Phase 7: optional review-gate (advisory, no auto-rollback)
- Phase 8: trekrevise-stats.jsonl + report
Frontmatter: name=trekrevise, model=opus, allowed-tools includes Read/Write/Edit/Bash/Grep/Glob.
Reuses lib/parsers/anchor-parser, lib/parsers/annotation-digest,
lib/util/markdown-write, lib/util/revision-guard, lib/validators/{brief,plan,review}.
settings.json: register new top-level scope trekrevise with
trekrevise-stats.jsonl tracking (mirrors trekplan/trekresearch shape).
Forward-pinning to keep doc-consistency invariants green:
- tests/lib/doc-consistency.test.mjs: known-scopes allowlist += trekrevise
- CLAUDE.md commands table: add /trekrevise row
Plan Step 13 owns the full README/CLAUDE.md/CHANGELOG content sync;
this commit is the implementation milestone, not the doc milestone.
Refs plan.md Step 6 + plan-critic M3.
38 lines
No EOL
830 B
JSON
38 lines
No EOL
830 B
JSON
{
|
|
"trekplan": {
|
|
"defaultMode": "default",
|
|
"autoResearch": true,
|
|
"interview": {
|
|
"maxQuestions": 8,
|
|
"typicalQuestions": 5
|
|
},
|
|
"tracking": {
|
|
"enabled": true,
|
|
"statsFile": "trekplan-stats.jsonl"
|
|
}
|
|
},
|
|
"trekresearch": {
|
|
"defaultMode": "default",
|
|
"maxDimensions": 8,
|
|
"geminiBridge": {
|
|
"enabled": true,
|
|
"pollIntervalSeconds": 30,
|
|
"timeoutMinutes": 25
|
|
},
|
|
"interview": {
|
|
"maxQuestions": 4,
|
|
"typicalQuestions": 3
|
|
},
|
|
"tracking": {
|
|
"enabled": true,
|
|
"statsFile": "trekresearch-stats.jsonl"
|
|
}
|
|
},
|
|
"trekrevise": {
|
|
"defaultMode": "default",
|
|
"tracking": {
|
|
"enabled": true,
|
|
"statsFile": "trekrevise-stats.jsonl"
|
|
}
|
|
}
|
|
} |