dsh-fabric-compaction
v0.1.4
Published
Deterministic Fabric compaction provider and preset roster for DeepSeek Harness
Readme
dsh-fabric-compaction
Deterministic Fabric summary compiler adapted to DSH's durable CompactionEngine transaction. It preserves bounded typed facts, graded history projections, exact failure identities, and a compact recent transcript without making a second model request. The adapter recursively reconstructs cited original events from DSH's immutable session log, folds native mesh/Code Mode/workflow lifecycle records, and never feeds generated checkpoint prose or a prior snapshot back as compaction authority. Strict bounded snapshots remain available for diagnostics and detached compiler callers. Citation recovery has a 100,000-event safety bound; reaching it degrades to a bounded partial source with an explicit summary notice rather than making /compact permanently fail.
The package also ships the authoritative system-trusted Fabric agent-preset root. The bundle points DSH's host-resolved AgentPresets runtime at that immutable root, so linked installs retain one Cordis runtime and correct per-preset scoping. It masks the stock DSH compaction backend and tool-result pruner while retaining DSH's backend-independent /compact command, token meter, durable lock, replacement protocol, and session invariants. The roster pins the four adapted DSH modes and adds Fabric mode (fabric) as its own entry beside Code mode (code), so Fabric sessions no longer share the PTC preset identity. Creation mode includes both pinned Cordis composition/plugin authoring skills referenced by its preset.
