Repository navigation
Description
Summary
#203's git-is-source-of-record trust derivation — validated requires a canonical tier: validated frontmatter claim AND file-blob equality with the fetched <remote>/<default-branch> ref — currently covers only vault-root compiled/ and knowledge/ page families. Every real compiled article in the reference deployment lives at .uf/dewey/compiled/*.md (the workspace layout), so "merge = vouch" never manifests in dewey doctor/dewey status for them: the vouch is recorded in git (the merged, code-owner-approved PR on the article path), but the display never surfaces it.
Verified gap (five code-traced root causes)
gitref.TrustPathspecs()returns["compiled", "knowledge"]—git ls-tree -r <ref> -- compiled knowledgedoes not match.uf/dewey/compiled/x.md(a git pathspeccompiledmatches only the top-level path; verified empirically).vault.isGitTrustPagerequires the page name/path prefixcompiled/orknowledge/—.uf/dewey/compiled/authdoes not match;compiled/authdoes.- No ingestion route reads
.uf/dewey/compiled/**files at all: the disk source skips hidden directories (ignore/matcher.go hidden-dir baseline), the vault scan (vault.Client.Load) skips hidden directories too, anddewey indexhas no compiled-files re-ingestion pass (onlyreIngestLearningsfor learnings). Compiled DB pages are written solely bystore_compiled/compilewith their own tier (draft). queryTrustStatus(cli.go, backs thedewey doctor/dewey statusTrust Tiers section) walks<vault>/compiledand<vault>/knowledge— 0 files in the workspace layout.- Precedent contrast:
tools/curate.goIndexKnowledgeStorehandles arbitrary store locations by passing the store-relative pathspec toNewPageBlobResolver— compiled pages have no equivalent route.
Evidence
- Scratch-repo binary proof (2026-11-15, built from
018-weekly-distill-automationHEAD96c43d1):- Workspace layout:
.uf/dewey/compiled/auth.mdwithtier: validated, committed,refs/remotes/origin/main= HEAD.dewey status --vault .→ "Files: 0 compiled/knowledge file(s): 0 validated-eligible".dewey index→ 0 documents (disk source skips.uf). - Vault-root layout (same ref state):
compiled/auth.md(tier: validated) +knowledge/team.md(tier: draft).dewey status --vault .→ "Files: 2 compiled/knowledge file(s): 1 validated-eligible, 0 differing".
- Workspace layout:
- Real repo check (via
gh api):unbound-force/unbound-forcehas no top-levelcompiled/; its compiled articles live at.uf/dewey/compiled/*.md(e.g.change-management.mdwithtier: validated), sources.yamldisk-localpath.— the reference deployment is entirely in the uncovered layout. 38 validated-claiming articles at.uf/dewey/compiled/*.mdare affected today. - feat: git is the source of record for page trust tiers #203's own design.md problem statement ("Measured on unbound-force/main 2026-11-13, 38 of 39 compiled articles say tier: validated in git and ingest as draft everywhere") measured the
.uf/dewey/compiledarticles — but the shipped fix's fixtures (vault/tier_wiring_test.go,tools/promote_git_test.go) all use vault-rootcompiled/, so the workspace layout was never covered.
Proposed direction
Match #203's design intent ("one git ls-tree -r <ref> -- <source-paths> per source per index"):
- Add
.uf/dewey/compiledand.uf/dewey/knowledgeto the gitref trust pathspecs (alongside vault-rootcompiled/knowledge). - Extend the vault page classification (
isGitTrustPageor equivalent) to recognize the workspace-layout page families (doc.ID / page-name normalization). - Add an ingestion route that reads
.uf/dewey/compiled/**/.uf/dewey/knowledge/**files (mirroringreIngestLearningsand theIndexKnowledgeStoreprecedent of passing store-relative pathspecs toNewPageBlobResolver). - Extend
queryTrustStatus's walk (the doctor/status Trust Tiers section) to the workspace paths. - Backward compatible: the vault-root layout keeps working unchanged.
Origin
Found during #193 (018-weekly-distill-automation) Phase 8 implementation, when the US6 e2e could not verify the vouch display for the distill pipeline's own output paths (distill articles are written to .uf/dewey/compiled/<theme>.md). The remediation decided for #193 is "document + follow-up issue" — this is that issue. Until it lands, #193's spec documents the limitation honestly: the vouch for workspace-layout articles is the merged, code-owner-approved PR recorded in git, while dewey doctor/dewey status surface the display for vault-root layouts only.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
docs(spec): document US6 workspace-layout trust-display limitation pe…
docs(spec): address spec-review iteration 3 findings
docs(spec): document US6 workspace-layout trust-display limitation pe…
docs(spec): address spec-review iteration 3 findings