You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7fbd60f
Browse filesBrowse the repository at this point in the historyBrowse files
feat(sleep): auto-resolve near-duplicate pairs and stop the demotion ledger from lying
sleep: a new opt-in tier (conflictAutoResolveEnabled, default off) adjudicates
same-scope pairs at or above conflictAutoResolveMinSimilarity (default 0.95)
instead of parking them for manual review. The newer side wins; the older one is
superseded, so the traceability note lands on the archived copy and the survivor
keeps its body untouched. Cross-scope pairs are never auto-adjudicated - ownership
is the user's call (#170) - and a failed adjudication falls back to the manual
queue rather than disappearing. trustEpistemicWeighting is forced off on this path:
letting it swap sides would make "keep the newer one" drift with the data.
Measured on the live queue before choosing 0.95: of 345 historical rows carrying a
similarity, 20 (5.8%) sit at or above 0.95 and 28 (8.1%) at or above 0.94. The tier
cuts the peak, it does not empty the queue - the threshold stays configurable so it
can be tuned against the actual distribution instead of a guess.
demotion: phaseDemotion pushed every candidate into demoted without reading what
demoteToSummary returned, and demoteToSummary returns undefined for a row that was
already demoted, no longer exists, or got touched after the snapshot. The ledger
therefore re-reported the same rows every run (43%-99% overstatement across twelve
measured runs, one run reporting 81 rows where all 81 were repeats). Already
demoted rows are now skipped before the decision chain, and a row the freshness
guard spares is reported as demoteSkipped instead of demoted.
config/docs: both keys are whitelisted for the panel and documented in
CONFIGURATION.md.
0 commit comments