feat: curation log, quote-or-refuse, composite score, typed edges#12
Merged
Conversation
Implements the four-task product brief end-to-end. Tests 160 → 186. Task 1 (v1) — Curation event log - New append-only .priors/audit/curation.log with 6 typed event kinds (propose/stage/edit/accept/reject/discard); captures source model, original proposal payload, and human edit deltas as research data - New discard_staged / edit_staged MCP tools + CLI; new `priors audit curation` filter command Task 2 (v1) — Quote-or-refuse verification - New project-local .priors/config.json (groundingMode + commitThreshold) - Deterministic claim↔evidence dice-coefficient floor (0.15) atop the existing verbatim-substring check; new ungrounded_claim reason code - groundingMode "strict" rejects; "warn" stages with grounding_warning flag and details on the stage event - 10 adversarial fixtures + strict/warn harness in tests/grounding/ Task 3 (v2) — Typed causal edges - Vocabulary 4 → 8: supersedes, contradiction_of, derived_from, reinforces, caused_by, blocks, depends_on, refutes (hard cap; ninth kind requires removing one) - Renamed contradicts → contradiction_of; kept reinforces; dropped validates per the brief - New propose_edge / commit_edge / discard_edge MCP tools mirroring the entry staging pipeline; inbound edges surfaced on get_entry and `priors get` - One-shot `priors migrate-relations` for legacy stores (raw-YAML rewrite bypasses schema validation) Task 4 (v2) — Composite quality score - Six deterministic sub-scores in src/distill/score.ts (no LLM scoring), min-composite documented inline - commitThreshold gates entries that pass hard checks but score low; default 0.0 preserves current behaviour - Sub-scores + composite logged on every propose and reject event
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
claudialnathan
added a commit
that referenced
this pull request
Apr 28, 2026
Implements the four-task product brief end-to-end. Tests 160 → 186. Task 1 (v1) — Curation event log - New append-only .priors/audit/curation.log with 6 typed event kinds (propose/stage/edit/accept/reject/discard); captures source model, original proposal payload, and human edit deltas as research data - New discard_staged / edit_staged MCP tools + CLI; new `priors audit curation` filter command Task 2 (v1) — Quote-or-refuse verification - New project-local .priors/config.json (groundingMode + commitThreshold) - Deterministic claim↔evidence dice-coefficient floor (0.15) atop the existing verbatim-substring check; new ungrounded_claim reason code - groundingMode "strict" rejects; "warn" stages with grounding_warning flag and details on the stage event - 10 adversarial fixtures + strict/warn harness in tests/grounding/ Task 3 (v2) — Typed causal edges - Vocabulary 4 → 8: supersedes, contradiction_of, derived_from, reinforces, caused_by, blocks, depends_on, refutes (hard cap; ninth kind requires removing one) - Renamed contradicts → contradiction_of; kept reinforces; dropped validates per the brief - New propose_edge / commit_edge / discard_edge MCP tools mirroring the entry staging pipeline; inbound edges surfaced on get_entry and `priors get` - One-shot `priors migrate-relations` for legacy stores (raw-YAML rewrite bypasses schema validation) Task 4 (v2) — Composite quality score - Six deterministic sub-scores in src/distill/score.ts (no LLM scoring), min-composite documented inline - commitThreshold gates entries that pass hard checks but score low; default 0.0 preserves current behaviour - Sub-scores + composite logged on every propose and reject event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the four-task product brief end-to-end. Tests 160 → 186.
Task 1 (v1) — Curation event log
(propose/stage/edit/accept/reject/discard); captures source model,
original proposal payload, and human edit deltas as research data
priors audit curationfilter commandTask 2 (v1) — Quote-or-refuse verification
existing verbatim-substring check; new ungrounded_claim reason code
flag and details on the stage event
Task 3 (v2) — Typed causal edges
Vocabulary 4 → 8: supersedes, contradiction_of, derived_from,
reinforces, caused_by, blocks, depends_on, refutes (hard cap;
ninth kind requires removing one)
Renamed contradicts → contradiction_of; kept reinforces; dropped
validates per the brief
New propose_edge / commit_edge / discard_edge MCP tools mirroring the
entry staging pipeline; inbound edges surfaced on get_entry and
priors getOne-shot
priors migrate-relationsfor legacy stores (raw-YAML rewritebypasses schema validation)
Task 4 (v2) — Composite quality score
Six deterministic sub-scores in src/distill/score.ts (no LLM scoring),
min-composite documented inline
commitThreshold gates entries that pass hard checks but score low;
default 0.0 preserves current behaviour
Sub-scores + composite logged on every propose and reject event