Description
crates/zeph-context/src/typed_page.rs implements the ClawVM typed-page compaction system (#3221) with full classification, invariant enforcement, and audit sink. However, the module is only exported from lib.rs and is not used anywhere in the assembler or compaction pipeline.
There is no [memory.compaction.typed_pages] config key in zeph-config, making the feature unreachable.
Reproduction Steps
grep -rn "TypedPage\|PageType" crates/zeph-context/src/assembler.rs — no results
grep -rn "typed_pages\|TypedPagesConfig" crates/zeph-config/ — no results
- 34 unit tests in
typed_page.rs pass in isolation, but the module is dead code in production
Expected Behavior
assembler.rs uses classify() to tag each context segment with a PageType, enforces PageInvariant at compaction boundaries, and emits audit records to the configured sink.
Actual Behavior
Module is implemented and fully tested in isolation but has no integration points in the assembler or config system.
Environment
- Version: 0.20.1
- Features: full
Logs / Evidence
grep -rn "TypedPage\|typed_page" crates/zeph-context/src/ | grep -v typed_page.rs
→ /crates/zeph-context/src/lib.rs:34:pub mod typed_page; (only declaration)
Description
crates/zeph-context/src/typed_page.rsimplements the ClawVM typed-page compaction system (#3221) with full classification, invariant enforcement, and audit sink. However, the module is only exported fromlib.rsand is not used anywhere in the assembler or compaction pipeline.There is no
[memory.compaction.typed_pages]config key inzeph-config, making the feature unreachable.Reproduction Steps
grep -rn "TypedPage\|PageType" crates/zeph-context/src/assembler.rs— no resultsgrep -rn "typed_pages\|TypedPagesConfig" crates/zeph-config/— no resultstyped_page.rspass in isolation, but the module is dead code in productionExpected Behavior
assembler.rsusesclassify()to tag each context segment with aPageType, enforcesPageInvariantat compaction boundaries, and emits audit records to the configured sink.Actual Behavior
Module is implemented and fully tested in isolation but has no integration points in the assembler or config system.
Environment
Logs / Evidence