Commit 6f6608b
authored
feat(skill): comprehensive grind rewrite and cross-skill integration (#896)
* refactor: adopt dead helpers across codebase
Wire up extracted helpers from Titan runs that existed but were never
consumed, reducing boilerplate and improving error specificity.
- Adopt named_child_text across 27 sites in 11 Rust extractors
- Migrate cpp.rs from hand-rolled find_cpp_parent_class to find_enclosing_type_name
- Add toSymbolRef helper in shared/normalize.ts, adopt at 15 mapping sites
- Wire ParseError in parser.ts for structured PARSE_FAILED error codes
- Wire BoundaryError in boundaries.ts to distinguish config/DB failures from clean results
- Add --modules/--threshold flags to codegraph structure command
- Wire batchQuery in CLI batch command, removing duplicated routing logic
- Route detect-changes pending analysis through unified runAnalyses engine
* fix: address review feedback on dead helper adoption (#895)
- manifesto.ts: report 'warn' instead of 'pass' when boundary check throws
- structure.ts: validate --threshold flag rejects non-numeric input
- dependencies.ts: clarify intentional skip of toSymbolRef for callers
* feat(skill): add /titan-grind phase and wire into /titan-run pipeline
Forge extracts helpers but never completes the adoption loop — dead
symbol count inflates with every run. Grind closes the gap by finding
dead helpers from forge, classifying them (adopt/re-export/promote/
false-positive/remove), wiring them into consumers, and gating on a
non-positive dead-symbol delta.
Pipeline is now: recon → gauntlet → sync → forge → grind → close
* fix(skill): add resilience and codegraph usage to /titan-grind
- Track currentTarget, processedTargets, failedTargets in state for
mid-run resume after interruption
- Persist grind classifications to grind-targets.ndjson (append-only)
so re-runs skip already-analyzed targets
- Write titan-state.json after every target, not just at phase end
- Add interrupted-mid-target recovery logic in edge cases
- Use codegraph audit/context/fn-impact/where/query/ast before edits
- Add codegraph diff-impact --staged before commits
- Add codegraph build after edits to keep graph current
- Add --target flag for retrying individual failures
* feat(skill): comprehensive grind rewrite and cross-skill integration
Rewrite titan-grind with full resilience (state machine, .bak files,
NDJSON persistence, snapshot management), codegraph integration
(audit/context/fn-impact/diff-impact), diff review (DR1-DR3), drift
detection, false positive tracking via issues.ndjson, and phase
timestamps.
Update titan-close: grind-targets.ndjson in artifact load list,
adoption concern type in PR grouping, grind metrics in before/after
comparison, GRIND row in Pipeline Timeline, Grind Results section
in report template, grind block in close-summary.json.
Update titan-reset: titan-grind-baseline snapshot deletion and
grind-targets.ndjson in artifact listing.
* fix(skill): align titan-close grind metrics with titan-grind NDJSON schema (#896)
titan-close was reading status/deadBefore/deadAfter fields that
titan-grind never writes. Updated to read classification field from
grind-targets.ndjson and pull metrics from titan-state.json grind block.
* fix: restore null guard in batchQuery multi-batch detection (#896)
typeof null === 'object' is true in JS, so accessing .command on null
would throw TypeError. Added explicit null check before the typeof.
* fix(skill): add --start-from grind pre-checks row to titan-run (#896)
Without a validation table row for grind, the orchestrator had no
guidance on which pre-checks to run when starting directly from grind.1 parent 3cb4260 commit 6f6608b
5 files changed
+265
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
167 | | - | |
| 171 | + | |
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
| |||
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
205 | 220 | | |
206 | 221 | | |
207 | 222 | | |
| |||
342 | 357 | | |
343 | 358 | | |
344 | 359 | | |
345 | | - | |
| 360 | + | |
| 361 | + | |
346 | 362 | | |
347 | 363 | | |
348 | 364 | | |
| |||
393 | 409 | | |
394 | 410 | | |
395 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
396 | 428 | | |
397 | 429 | | |
398 | 430 | | |
| |||
551 | 583 | | |
552 | 584 | | |
553 | 585 | | |
| 586 | + | |
554 | 587 | | |
555 | 588 | | |
556 | 589 | | |
| |||
0 commit comments