Skip to content

Fix #945: flush compiled thesaurus cache after KG markdown edits#864

Open
AlexMikhalev wants to merge 2 commits intomainfrom
task/945-cache-flush
Open

Fix #945: flush compiled thesaurus cache after KG markdown edits#864
AlexMikhalev wants to merge 2 commits intomainfrom
task/945-cache-flush

Conversation

@AlexMikhalev
Copy link
Copy Markdown
Contributor

Implements content-hash-based cache invalidation for compiled thesauri.

  • Added source_hash field to Thesaurus type
  • Implemented compute_kg_source_hash for SHA-256 hashing of KG markdown files
  • Modified ensure_thesaurus_loaded to check hash and rebuild if stale
  • Added CLI subcommand: terraphim-agent cache flush [--role ROLE]
  • Added unit tests for hash computation and Thesaurus serialization

Refs #945

forge-admin added 2 commits May 6, 2026 08:43
…wn edits

- Add source_hash field to Thesaurus for cache invalidation tracking
- Implement SHA-256 hash computation for KG markdown files (compute_kg_source_hash)
- Modify Logseq builder to compute and store source hash on thesaurus build
- Modify ensure_thesaurus_loaded to check source hash and rebuild if stale
- Add CLI subcommand: terraphim-agent cache flush [--role ROLE]
- Add tests for hash computation and Thesaurus serialization

Refs #945
- Add cache flush feature to CHANGELOG (Refs #945)
- Regenerate documentation gap report: 3,138 gaps across 55 crates
- Regenerate API reference snippets for modified crates

Refs #1273
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