Skip to content

feat: temporal-validity fields on learnings (as_of, evidence, validity, supersedes) #146

Closed

Description

@jflowers

Part of #153.

Summary

Learnings carry created_at but nothing about the code state they were true against. Add temporal-validity fields so knowledge can be checked against the code it describes.

Proposal

  • store_learning auto-stamps as_of: <repo>@<HEAD sha> for the vault's repository (deterministic, no agent input).
  • Optional frontmatter fields:
    • evidence — list of locators: <repo>:<path>, <repo>#<n> (PR/issue), learning/<identity>, session:<id>
    • validity — current | stale-unverified | superseded | historical
    • supersedes / superseded_by — learning identities, two-way linked
  • Validity is an attribute, not a tier. Tiers keep their meaning (who vouched); validity answers "is it still true as the code evolves".
  • Superseded entries are kept (append-only) with their true-from/true-to window, so historical reasoning stays possible.

Evidence

A 347-claim knowledge base compiled from two Dewey stores used exactly these fields. Pinning every claim to repo@sha made it possible to deep-verify claims against code and to separate claims true only on open-PR branches from claims true on main (9 of 28 unverified claims were branch-scoped) — a distinction a created_at timestamp can't express.

Related

Acceptance

  • New learnings get as_of automatically; existing learnings without it remain valid (as_of absent = unknown).
  • Fields round-trip through markdown backups and re-ingestion.
  • Read tools return the fields.

Activity

  1. added
    enhancement
    on Nov 3, 2026
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

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions