rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zhengqiuyang/dsh-compaction-guard
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Compaction integrity — what the agent was told to remember and silently forgot is reported loudly
dsh plugin --profile default add github:zhengqiuyang/dsh-compaction-guard
If this helps you, please give it a star — it helps others find it.
Part of the DSH trust layer — ten deterministic checks, no LLM in the trust path.
Compaction integrity for DeepSeek Harness (dsh).
Long sessions compact; the compacted range takes constraints with it — "never
commit to main", "必须先跑测试" — and the agent silently forgets rules it was
told to keep. This plugin watches compaction/summary session events: it
extracts directive lines from the user-authored events being shadowed,
verifies each against the summary (verbatim, whitespace-normalized, or
in substance — a coverage threshold on content words), and reports every
constraint the agent just forgot — console plus a durable JSONL ledger.
Pinned constraints from config are verified on every compaction. Zero LLM
calls in the trust path.
Family channel #9: read / write / do / call / leave-behind / egress / told / running / remembered — what the agent forgets.
The awesome list has 209 memory plugins and an entire compaction package
family in dsh itself — and not one verifies that constraints survive
compaction. Memory plugins add recall; this audits loss. The
compaction/summary event even ships shadowedSeqs (exactly what was
compact away) — the integrity check is deterministic by construction.
compaction/summary event
├── shadowedSeqs → session.eventAt(seq) → user/message directive lines
├── pinned constraints from config (always verified)
├── verify against the summary text:
│ verbatim (whitespace-normalized substring) → kept
│ best-matching summary sentence:
│ content-word coverage ≥ 0.6 AND same polarity → kept
│ polarity flip (negation dropped/added) → LOST-polarity
│ otherwise → LOST (reported + ledgered)
└── ledger: .dsh-compaction-guard/ledger.jsonl (CI-consumable)
Honest limitations, on purpose:
dsh plugin --profile default add github:zhengqiuyang/dsh-compaction-guard
Prebuilt lib/ ships in the repo — no build step, no allowBuilds.
- id: dsh-compaction-guard
name: dsh-compaction-guard
config:
pinned: ["Never force-push to main"] # always verified, verbatim
coverage: 0.6
ledgerPath: .dsh-compaction-guard/ledger.jsonl
dsh plugin add (prebuilt lib/, no build approval).dsh plugin --profile <fresh> add github:zhengqiuyang/dsh-compaction-guard → installed in 30s; boot shows [dsh-compaction-guard] active: …; dsh plugin --profile <fresh> remove dsh-compaction-guard → dependencies cleared, bundles restored.npm install && npm test
reinject mode: steer the lost constraints back into the session after
compaction (default stays observe — auto-injection deserves live testing
first)If dsh ships first-party compaction-integrity verification, this freezes at its last working version with a postmortem here.
lost-negation instead of silently surviving coverage.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。