본문으로 건너뛰기
G

dsh-compaction-probe

gendui123/dsh-compaction-probe

dsh-compaction-audit용 Step-0 관찰 프로브: 모든 compaction/* 세션 이벤트를 기록하고 shadowedSeqs가 session.events에서 여전히 읽을 수 있는 이벤트로 해결되는지 프로빙합니다. 관찰 전용; 주입하지 않으며 차단하지 않습니다.

설치

dsh plugin --profile web add github:gendui123/dsh-compaction-probe

README

dsh-compaction-probe

Step-0 observation probe for dsh-compaction-audit. It listens to session/event and logs every compaction/* event to a JSONL file, probing whether shadowedSeqs still resolve to readable events in session.events at the moment the summary lands.

Observe-only: never injects, never blocks, never modifies a session. It exists to verify (before building the audit) that the compaction event stream is delivered to plugin subscribers and that the shadowed original events are still readable.

Output

Writes one JSON object per compaction event to <DSH_HOME>/reports/compaction-probe.jsonl (override with config.logFile). A compaction/summary record includes the summary text plus a shadowedProbe array: for each shadowed seq, whether the original event is readable, its event type, and a text preview.

Why

The audit plan (REVISED-PLAN.md) makes session.events the source of truth for cross-checking a summary against its originals. This probe confirms that assumption is true at runtime — if shadowedSeqs point to already-cleaned or unreadable events, the audit must be redesigned (e.g., verbatim ledger), before it is built.

관련 플러그인