Clarify decision-graph runtime workflow for graph-backed memory retrieval/writes#13
Draft
Copilot wants to merge 1 commit intocodex/graphsfrom
Draft
Clarify decision-graph runtime workflow for graph-backed memory retrieval/writes#13Copilot wants to merge 1 commit intocodex/graphsfrom
Copilot wants to merge 1 commit intocodex/graphsfrom
Conversation
Copilot
AI
changed the title
[WIP] Integrate decision graph into Control Tower memory
Clarify decision-graph runtime workflow for graph-backed memory retrieval/writes
Mar 20, 2026
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.
This update addresses reviewer uncertainty about whether Tower actively reads/writes the decision graph during normal operation. It documents the exact runtime workflow: initialization, graph materialization, memory regeneration, and provenance queries.
What was clarified
tower-runinitializes project state on every command (init_project,update_git_branch).sync-memorywrites graph data by importing sessions, appending events, and materializing nodes/edges/indexes.log-decisionwrites explicit decision/artifact/edge events, then re-syncs graph and refreshes L0/L1.graph-status,graph-search, andexplainall force a graph sync before reading/querying provenance.Workflow (shared in review comment)
sync-memory→ ingest sessions → sync graph → rebuild L0/L1log-decision→ append decision events → sync graph → rebuild L0/L1graph-*/explain→ sync graph → read/query graph stateIllustrative snippet
flowchart TD A[tower-run <command>] --> B[init_project + update_git_branch] B --> C{command} C -->|sync-memory| D[import sessions + append events] D --> E[sync_decision_graph] E --> F[materialize nodes/edges/indexes + decisions.md] F --> G[refresh L1/L0 from graph] C -->|log-decision| H[append decision/artifact/edge events] H --> E C -->|graph-status / graph-search / explain| I[sync_decision_graph] I --> J[query graph state]⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.