Skip to content

docs: sync dewey compile tier demotion documentation #413

Open

Description

@jflowers

Context

dewey change demote-validated-on-regeneration (unbound-force/dewey#204, part of epic unbound-force/dewey#153 "Epistemic integrity for Dewey knowledge") makes the validated trust tier content-bound: a validated badge now means a human vouched for the specific bytes of an article, not for the topic. Machine regeneration can no longer carry a human's vouch onto content the human never reviewed.

What changed for users

dewey compile demotes on regeneration. Recompiling writes tier: draft. A validated compiled article keeps its tier only when the regenerated article bytes are identical to the stored ones; changed content demotes the article to draft, and it re-enters the promote queue for human re-review. Previously, compile carried the old article's validated tier onto regenerated content — machine-written content no human had reviewed kept the tier a human gave to the old content.

Machine write paths never write validated. Every article compile produces is written with tier draft; preservation is decided by the store's content-hash comparison, not by the writer. dewey curate re-indexes a knowledge file whose content changed at curated (the tier a fresh insert gets); unchanged files are skipped before any write, so an untouched validated knowledge page keeps its tier.

The compile result's tier field is a write receipt. The per-article tier field in the compile result and the regenerated article's frontmatter report the tier the machine wrote (draft) — not necessarily the effective tier after the store's content-bound preservation rule. The store's page row is the authority on the effective tier.

Retention carve-outs (unchanged). Failed topics, total compile failure, and empty-collection cleanup still retain validated articles — no write occurs, so the human-vouched bytes are untouched. store_compiled still refuses to overwrite a validated article before any write.

Verified state is held until re-promotion. The existing guidance that validated content is high-trust, human-reviewed material should be retained — but it must now be qualified as content-bound: a page regenerated with changed content loses its verified state (drops to draft) and only regains it when a human re-promotes the new content. Verified state is a property of specific bytes, not of a topic or page name.

Pages to update

  • content/docs/getting-started/knowledge.md
    • "Knowledge Lifecycle" → "dewey compile" (~line 585): "Compiled articles are materialized views, rebuilt from the underlying learnings whenever new information arrives" — add the tier semantics: a rebuild with changed content lands at draft and re-enters the promote queue; a byte-identical rebuild keeps validated.
    • "Knowledge Lifecycle" → "dewey promote" (~line 609): cross-reference that regenerated validated articles come back through this queue.
    • "Trust Tiers" table (~line 618): the Validated row ("Content generated by agents and approved by a human via dewey promote") — note the vouch is content-bound; regeneration with changed content demotes to draft until re-promotion.
  • content/docs/projects/dewey.md
    • Knowledge Lifecycle bullets (~lines 84–88): the Compile bullet ("compiled articles are materialized views rebuilt from those learnings whenever new information arrives") and the closing lifecycle paragraph ("promotion ensures reviewed content ranks higher") — add demote-on-regeneration so the lifecycle reads complete.
  • content/docs/tutorials/dewey-knowledge-stores.md
    • Tier comparison table (~lines 185–191): the validated row ("Curated knowledge that has been promoted after human review") — qualify as content-bound.
    • "Verifying stored knowledge" (~line 329): "They start in the draft tier and move to validated after human review via dewey promote" — add that a regenerated (changed) article returns to draft and must be re-promoted.
  • content/docs/team/dewey.md
    • Tool table (~lines 66–70): the compile / curate / promote rows may warrant a brief note that compile writes draft and changed regenerations re-enter the promote queue (lowest priority — the descriptions are generic).

No page currently states outright that recompiling a validated article preserves its tier; the closest statements are the "materialized views, rebuilt … whenever new information arrives" phrasing, which implies silent tier carryover. The update is to make the content-bound contract explicit wherever the rebuild/lifecycle is described.

Sources

  • dewey README, "Knowledge Compilation" section (compile paragraph): "Recompiling writes tier: draft; a validated article keeps its tier only when the regenerated article bytes are identical to the stored ones (content-bound preservation in the store), and changed content demotes to draft for re-review."
  • openspec/changes/demote-validated-on-regeneration/ in the dewey repo

Related: #380 (learning temporal validity), #398 (lint anchor checks) — same epistemic-integrity arc (dewey epic #153).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions