Repository navigation
Commit eebcef8
kb init: modules stage (module map cards and routes)
Stage 2 of kb init (design v3 §7.1-7.2): route every code module.
- init_stages: the skeleton's flow becomes a _Stage base shared by every
stage (pin, record, rule screening and placement, the deterministic
checks as _conclude, the publication); _Skeleton keeps only its own
steps. New: the stage chain. Each earlier stage must be merged (record
published and gh pr view MERGED, so main holds it), or, for a dry run
of this stage, dry-run: its snapshot is overlaid on main as the base and
handed to the knowledge validators with this stage's change. A stage
with nothing to change is recorded "empty", not blocked. Later stages
keep the earlier stages' pin unless --pin says otherwise.
- init_modules: scan_modules_at_depth at the pin (language from the
adapter's repo.language; none or unknown -> no scan, checklist). A
module an owner partly reaches is absorbed: its prefix is appended to
that owner's scope_prefixes. Every other module gets one bounded
generator call (file names, signatures, leading docstrings, never
bodies) and a map card: a prose page (type architecture) in an existing
components/<group>/ (index append-only) or a new group with its own
_index.md and route owner, linked upward. Sections are bold labels: the
knowledge format reads any "## <Word>" heading as a rule ID. The route
table is only appended to (routes_append_only). Budget or card cap ->
the cards written so far still make a PR; the rest is listed.
- InitRecord.coverage: the stage's coverage report, rendered as a
before/after table in the PR body.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4115751 commit eebcef8
6 files changed
Lines changed: 1167 additions & 204 deletions
File tree
- doc/architecture/SPEC
- src/infermatrix_copilot/kb_service
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
0 commit comments