feat(engine): write graph-wide receipt to ~/.enola/receipt.json - #76
Merged
Conversation
Add a global receipt describing the CURRENT multi-repo "graph of graphs": which repositories compose it, each repo's git commit/ref/dirty state, when each entered the graph and how long it has been a member, and what the graph consists of right now (fact/insight counts, cross-repo services and edges, coverage). Complements the existing per-repo <repo>/.enola/receipt.json. - New GraphReceipt/GraphRepoEntry types (internal/facts/model.go) - Engine.WriteGlobalReceipt(): per-repo git capture across every repo in the graph, merge-forward of added_at (preserved across regenerations; a moved commit keeps added_at and stamps commit_changed_at), atomic temp-file+rename write, graceful degradation when $HOME is unavailable (internal/engine/global_receipt.go) - service_count / cross_repo_edge_count describe the graph-of-graphs topology (edges counted from service-node depends_on relations, not total dep facts) - Store.CountByRepo() for O(1) per-repo fact counts (internal/facts/store.go) - Wire into CLI --generate and the MCP generate_snapshot handler (non-fatal) - Unit tests: merge-forward, commit-change, departed-repo, single-repo fallback, atomic write/read, cross-repo edge count
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a global receipt describing the CURRENT multi-repo "graph of graphs": which repositories compose it, each repo's git commit/ref/dirty state, when each entered the graph and how long it has been a member, and what the graph consists of right now (fact/insight counts, cross-repo services and edges, coverage). Complements the existing per-repo /.enola/receipt.json.