Skip to content

feat: integrate TypedPage compaction into context assembler pipeline #3630

@bug-ops

Description

@bug-ops

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

  1. grep -rn "TypedPage\|PageType" crates/zeph-context/src/assembler.rs — no results
  2. grep -rn "typed_pages\|TypedPagesConfig" crates/zeph-config/ — no results
  3. 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)

Metadata

Metadata

Assignees

Labels

P2High value, medium complexitybugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions