Add a live trace view to serve, and a file-backed plan approval flow - #39
Merged
Conversation
The server grows an optional read-only /live view (grapharc serve --live-root PATH, token-gated via --live-token / GRAPHARC_LIVE_TOKEN) that lists trace files and streams a run's events over SSE with a mermaid topology render. Slack gains the same live link plumbing, the planner gains a file-backed approval store with a grapharc approve command, and to_mermaid learns clustered multi-round topologies. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Promotes the in-tree work-in-progress to a reviewed change.
What this adds
grapharc serve --live-root PATH: a read-only/liveview on the API server — an index of trace files under the root, and a per-run page that streams trace events over SSE with a mermaid topology render. Optional token gate via--live-token/GRAPHARC_LIVE_TOKEN, with a startup warning when binding beyond localhost without a token.grapharc approvecommand and an approval store (grapharc/planner/approval_file.py) so a held plan can be approved out-of-band.to_mermaidlearns clustered multi-round diagrams (tested intests/test_topology_viz.py).Verification
ruff check .clean — this PR also fixes the 11 lint findings the draft carried (unused/unsorted imports, ambiguous single-letter variables, four overlong lines in HTML/JS template strings, split with no behavioural change).🤖 Generated with Claude Code