Skip to content

Provenance: downgrade vault_graph/related/summary returns to primed surfaces - #110

Merged
raphasouthall merged 1 commit into
mainfrom
fix/109-provenance-primed-surfaces
Aug 23, 2026
Merged

Provenance: downgrade vault_graph/related/summary returns to primed surfaces#110
raphasouthall merged 1 commit into
mainfrom
fix/109-provenance-primed-surfaces

Conversation

@raphasouthall

@raphasouthall raphasouthall commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Part of #109.

What

get_neighborhood (vault_graph), find_related (vault_related), and vault_summary recorded tier='used' source='explicit' on mere returns — the _record_note_usage defaults. A return is a primed surface, not a use (#103's model).

How

  • All three now record tier='primed' with distinct provenance sources: 'graph', 'related', 'summary' (free-text column, no schema change; feedback_stats only splits used by source).
  • Mirroring vault_context (Two-tier activation signal: primed (auto-RAG injection) vs used (deliberate record_usage) #95): when feedback_enabled, the surfacing is search-logged so a later read-after-surface infers the strong 'used'/'inferred' signal via capture_read. Without this, the strong signal was unobservable for these tools.
  • vault_record_usage remains the explicit override for consumption the server cannot observe.
  • Source-enum docs updated in schema.py and _record_note_usage's docstring.

Gate

ruff clean; 778 tests pass (769 + 9 new in tests/test_surface_provenance.py: primed/provenance rows per tool, feedback-gated search-logging, no-results guard, and the acceptance check that none of the three surfaces writes tier='used').

…ces, not uses

A return is surfacing, not use (issue #103's model). get_neighborhood,
find_related, and vault_summary still wrote tier='used' source='explicit'
on mere returns, polluting the strong signal. Downgrade all three to
tier='primed' with distinct provenance sources (graph/related/summary),
and — mirroring vault_context — search-log the surfacing when
feedback_enabled so a later read-after-surface infers 'used'/'inferred'
via capture_read. vault_record_usage stays the explicit override.

Part of #109
@raphasouthall
raphasouthall merged commit c1158e8 into main Aug 23, 2026
5 checks passed
@raphasouthall
raphasouthall deleted the fix/109-provenance-primed-surfaces branch August 23, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant