Repository navigation
Description
Part of #153. Replaces the promotion-manifest approach that #193 and #194 originally described.
Problem
Each teammate runs their own Dewey MCP server. Today the trust tier lives only in that server's local database:
promotewrites the database and nothing else, so a promotion never reaches git, a teammate, or a disposable fleet workspace.- Learning files that claim a tier are re-ingested as
draft(main.go:1087, from feat: distill knowledge through the running MCP server with OpenAI-compatible synthesis #145). - The v1→v2 migration resets compiled pages to
draft(store/migrate.go:112).
Result, measured on unbound-force main on 2026-11-13: 38 of 39 compiled articles say tier: validated in git (reviewed 2026-10-25), and every Dewey server that ingests them shows them as draft. No learning has ever been promoted.
Rule
Git is the source of record, and the default branch's protection is the trust boundary.
- A merged, human-approved PR is the vouch. A compiled or curated page is
validatedonly when its file saystier: validatedand the file's blob equals the blob at<remote>/<default-branch>(fetched ref). Every server derives this locally from git, offline; no shared service. - Raising trust comes only from the default branch. A working-tree edit, an unmerged branch, or a stale fetch never raises a tier. When a file differs from the default-branch blob, it reads as
draft. - Lowering trust comes from anywhere.
stale,superseded, and validity fields lower trust only, so they're honored from any file, branch or local edit (fail-safe). promotebecomes a file edit. It setstier: validatedin the page's frontmatter on a branch, for a PR. It no longer writes the database's tier directly. The database tier becomes a cache of rule 1.- Learnings stay
draftforever. At about 500 new learnings a week, per-learning review isn't feasible. Humans vouch for compiled articles; learnings are raw material that compile cites. - Not a git repo, or no default-branch ref: everything reads as
draft, as it does today.
The enforcement half lives in each knowledge repo: CODEOWNERS plus required code-owner review on the page paths (#194). Consumer: #193 (unattended distill). Without it, a bot approval plus auto-merge could promote.
Notes
- This fixes fix: regenerated compiled article keeps the validated tier of the content it replaced #204 as a side effect: a regenerated article's blob no longer matches the merged one, so it reads as
draftuntil a human merges it. - Remove or invert the compiled-page backfill in
store/migrate.go; remove the "ignoring non-draft tier" special case for compiled pages (keep it for learnings, per rule 5). - Cost: one
git cat-file/ls-treeper indexed page at ingest, or onels-tree -rper source per index run.
Acceptance
Tests for each case:
- Validated file identical to the default branch:
validated. - Same file, modified in the working tree or only on a branch:
draft. validatedon the default branch butstalein the working tree:stale(lowering is honored).- Learning file claiming
validated, even on the default branch:draft. - Two servers with different local databases, same fetched default branch: same tiers.
promotechanges the file, not the database tier, and a branch-only promotion staysdraft.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
feat: git is the source of record for page trust tiers (unbound-force…
feat: git is the source of record for page trust tiers (#203)
docs(spec): document US6 workspace-layout trust-display limitation pe…
docs(spec): finalize T040 trust derivation limitation wording
docs(spec): weekly unattended distill with rolling per-theme review P…
docs(spec): document US6 workspace-layout trust-display limitation pe…
docs(spec): finalize T040 trust derivation limitation wording