Skip to content

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

Merged
AlexMikhalev merged 2 commits into
mainfrom
task/945-cache-flush
May 11, 2026
Merged

Fix #945: flush compiled thesaurus cache after KG markdown edits#864
AlexMikhalev merged 2 commits into
mainfrom
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
@AlexMikhalev AlexMikhalev merged commit bf1b7f1 into main May 11, 2026
22 of 25 checks passed
@AlexMikhalev AlexMikhalev deleted the task/945-cache-flush branch May 11, 2026 12: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