Skip to content

feat: validity-aware retrieval — return, filter, and rank by validity/as_of #148

Closed

Description

@jflowers

Part of #153. Depends on #146.

Summary

Make retrieval weigh validity so consumers don't have to. Today every command or agent that reads Dewey would need prose telling it how to rank tiers and treat stale entries.

Proposal

Depends on the temporal-validity fields.

  • Search and read results return validity and as_of.
  • semantic_search_filtered accepts a validity filter.
  • Default ranking down-weights stale-unverified and superseded entries (overridable).

Evidence

A proposal to add Dewey reads to spec-planning and review commands ended up pasting the same "weigh prior knowledge by tier and validity before citing it" paragraph into 20+ command and agent files across two workspaces. That's retrieval policy expressed as duplicated prose; it belongs in the server. Unweighted reads are actively risky: a branch-scoped claim (true only on an open PR) can be baked into a spec as current fact.

Acceptance

  • Results expose validity / as_of; filter and default ranking covered by tests.

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