dsh-fact-lock-rewrite
Two-pass Chinese de-AI rewriting for DeepSeek Harness: pass one extracts the facts that may not change (price, stock, model, spec, date, after-sales promise, link, contact) into a fact-lock with line:col; pass two rewrites with those facts masked as placeholders the model cannot edit, then compares item by item. A changed amount, a vanished fact, an invented claim, or a crossed qualifier (原价→现价, 仅剩→已售) rejects the whole piece, withholds the text and points at the conflict; only a clean pass yields a side-by-side source/rewrite diff. Two gates: drafts save with their conflict count, publishing requires a passing check. Ships a conversation-view panel, two agent tools (fact_lock_rewrite / fact_lock_check) and a CLI whose exit code makes check composable in a publish pipeline. Fails closed on every uncertainty. Zero dependency build, MIT.
Overview
Two-pass Chinese de-AI rewriting for DeepSeek Harness: pass one extracts the facts that may not change (price, stock, model, spec, date, after-sales promise, link, contact) into a fact-lock with line:col; pass two rewrites with those facts masked as placeholders the model cannot edit, then compares item by item. A changed amount, a vanished fact, an invented claim, or a crossed qualifier (原价→现价, 仅剩→已售) rejects the whole piece, withholds the text and points at the conflict; only a clean pass yields a side-by-side source/rewrite diff. Two gates: drafts save with their conflict count, publishing requires a passing check. Ships a conversation-view panel, two agent tools (fact_lock_rewrite / fact_lock_check) and a CLI whose exit code makes check composable in a publish pipeline. Fails closed on every uncertainty. Zero dependency build, MIT.
Installation
Version compatibility
Compatibility is unconfirmed. Check the project documentation for supported versions.