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
feat: explicit supersession in compile instead of newest-wins #150
Part of #153. Depends on #146. Sequence after #145, which substantially changes tools/compile.go (server-side synthesis); the "favor the newest learning" instruction is on main and survives that PR.
Summary
compile resolves contradictions by instructing synthesis to favor the newest learning (tools/compile.go, synthesis prompt). Recency isn't evidence: a newer learning can be wrong, partial, or about a different branch.
Proposal
Depends on the temporal-validity fields (supersedes / superseded_by).
A newer learning supersedes an older one only when it names it (supersedes), or when compile proposes a supersession that a human confirms at the /dewey-distill review gate.
Unconfirmed contradictions are surfaced (as lint contradictions already are), not silently resolved.
Compiled articles cite learning identities per claim, enabling a forward/backward coverage check: every claim cites a source, every source learning is accounted for.
Related: #93 (validate store_compiled sources map to existing learnings).
Evidence
The KB effort's coverage check (forward: every citation resolves; backward: every imported source is cited) caught 35 truncated citations and a missed batch of ~119 source files that a one-directional check would not have.
Acceptance
Synthesis prompt no longer says "favor newest"; supersession is explicit and two-way linked.
Coverage check available as a lint kind or compile report.
Activity