Skip to content

Epistemic integrity for Dewey knowledge: temporal validity, drift detection, guarded curation #153

Closed

Description

@jflowers

Summary

Bring the mechanisms that made a recent large knowledge-compilation effort reliable — temporal validity, evidence anchors, drift detection, explicit supersession, coverage accounting — into Dewey, without replacing human promotion and without requiring development repos to weaken supervisor guards.

Background

A research workspace compiled a 347-claim knowledge base from two Dewey stores plus a third memory corpus (≈773 source files). What made it trustworthy:

  • Accounting — every source file dispositioned; a bidirectional coverage check caught 35 truncated citations and ~119 files the first enumeration missed.
  • Temporal grounding — each claim pinned to repo@sha with evidence locators and deep-verified against code at those pins.
  • Honest uncertainty — stale-unverified separated claims true only on open-PR branches from claims with no main-branch anchor at all.
  • Append-only revision — challenges and corrections appended, never edited in place.

Its limits are also instructive: verification checks correspondence (the claim matches the code), not endorsement (the advice is right); the same model class distilled and verified; and repeatability (a second refresh) is not yet proven.

Core idea: trust and validity are orthogonal

Dewey's tiers (authored / curated / validated / draft) answer who vouched for this. Validity answers is it still true as the code evolves. Today Dewey approximates validity with a 30-day age threshold in lint and "favor the newest learning" in compile.

Decision: keep human promotion

  • Automate demotion, not promotion. Drift can flag even validated entries stale immediately; promotion stays human.
  • Make the gate cheap. Present a pre-verified, evidence-attached queue for batch promotion.
  • Why not auto-promote: with feat: distill knowledge through the running MCP server with OpenAI-compatible synthesis #145, learning files claiming tier: validated are re-ingested as draft until a human promotes them; auto-promotion after a correspondence check would let injected content reach the tier review agents trust.

Supervisor guards

Curation at corpus scale tripped opencode-supervisor's reward-hacking guard (it substring-matches authored content, so writing about --no-verify is blocked like using it) and its path-trace guard (hundreds of paths). The workaround — committing blockRewardHacking: false and requireStepReferenceInTools: false to project config — would be unsafe in any development repo.

Principle: the knowledge pipeline must never require weakening development guards in a repo's committed config. Achieved by (1) moving high-volume checks into deterministic Dewey code, (2) fixing the guard false positives, (3) a dedicated narrow-permission curator agent whose guard narrowing is granted only from the user's global config, and (4) never letting auto-answering touch curation's human gates.

Agent Guards Permissions Question gates
default / build defaults (all on) normal development human
autonomy defaults (all on) normal development AI decision engine
curator narrowed, user-config granted knowledge stores only human, enforced

Work items

Phase 1 — deterministic foundation (Dewey)

Phase 2 — retrieval (Dewey)

Phase 3 — guards (independent of Dewey; can run in parallel)

Phase 4 — pipeline (after #145 merges and a second refresh proves repetition)

Phase 5 — git as source of record, unattended curation (added 2026-11-13)

Each teammate runs their own MCP server, so trust must come from git, not a local database. Human promotion stays: the vouch becomes a merged, code-owner-approved PR on the compiled page. At ~500 new learnings a week, humans review compiled articles; learnings stay draft.

Related:

Non-goals

  • Replacing or auto-running human promotion.
  • Turning any guard fully off for any agent.
  • Accepting guard relaxation from repo-committed config.

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions