Skip to content

feat(progress): glanceable quest progress on every surface (v0.20.0) - #73

Merged
GrillerGeek merged 8 commits into
mainfrom
Plan-viz
Nov 10, 2026
Merged

GrillerGeek merged 8 commits into
mainfrom
Plan-viz

Conversation

@GrillerGeek

@GrillerGeek GrillerGeek commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Why

A running quest is a black box: the camp-planner feature/mcp quest ran in Codex for a week with no way to tell what it was doing or how much was left. This PR adds a glanceable progress view that answers how far along the quest is, how much is left, and when it needs you, the same on Claude and Codex, in terminals and on desktop.

Design: docs/superpowers/specs/2026-11-07-quest-progress-design.md · Plan: docs/superpowers/plans/2026-11-07-quest-progress.md

What it does

One record, every surface. Mordain seeds docs/guildhall/plans/<slug>/progress.json right after the plan and keeps it current through a new stdlib helper, progress.py. The record holds milestones, tasks, loops declared up front (with pass limits), and every point where he expects to need you.

Surface How
Claude Code terminal + desktop guildhall-tavern pane: journey + NOW card above the adventurer tree; amber ⚑ Waiting on you band
Codex / any terminal (AgentPanel, tmux split) progress.py --root . watch
Codex desktop / any browser progress.py --root . watch --web (127.0.0.1 only)

Layout B (journey + focus card), as approved in brainstorming:

  • The whole quest is shown as one path. Done milestones are green, the current one is blue (violet on a repeat pass), upcoming ones are dotted, and an amber ⚑ marks each point where you're needed.
  • The NOW card shows the current milestone's goal, an "N of M tasks" bar and its tasks. On a repeat pass, the card is headed PASS 2 OF BUILD and gives one sentence on why it looped.
  • When Mordain asks you something, the card becomes an amber YOUR TURN card.
  • The full browser page adds a milestone timeline with time spent per milestone, the full task list, and a "Where you come in" list.

Rule change, decided in brainstorming: this is the one narrow exception to Mordain's plan-only writes. He may update the progress record only through progress.py. It's written into quest.md, the portable skill, collaborative-planning.md, CLAUDE.md and the write-guard docstring. The bookkeeping never blocks a quest and never changes dispatch, reviewers, retries or any worker brief.

Versions: guildhall 0.19.0 → 0.20.0, guildhall-tavern 0.3.0 → 0.4.0.

Testing

  • python3 -m unittest discover -s tests: 139/139 OK, including 44 new tests in tests/test_progress.py. They cover record operations, the CLI, 10-way concurrent updates, path and symlink refusals, the terminal render at 30–100 columns, the HTML page, the web server, the instructions and bundle parity.
  • claude plugin test mods/guildhall-tavern: 24/24 (5 new). claude plugin validate mods/guildhall-tavern passed.
  • scripts/validate_plugin.py and scripts/validate_portable.py both pass. scripts/test_install.py wasn't run locally because it needs the skills CLI; CI runs it.
  • I checked the browser page by hand in light and dark mode, and the terminal render in all three states.

Security. The automated security review flagged four issues, all now fixed with tests: a symlinked record path, record values injected into HTML attributes, terminal escape sequences from record text, and DNS rebinding against the local server. The fixes: the record is untrusted in every view, state values are allowlisted, control characters are refused on write and stripped on read, the server answers only to 127.0.0.1/localhost Host headers, and record/lock paths refuse symlinks.

Final whole-branch review. No Critical findings. Fixed and tested:

  • A partial record crashed the web view and the pane.
  • Closing a quest left YOUR TURN stuck on screen.
  • During a fix loop, Review showed as done.
  • Mordain's instructions were unclear on the call syntax and on what to do after a refused command.

Calls made on your behalf

  • The pane re-reads the record after each progress.py call and every 5s. It doesn't read on plan writes, since the record doesn't exist yet at that point.
  • The full contract lives in a new references/progress.md. quest.md and the portable quest.md link to it instead of duplicating it.
  • The waypoint's "need" sits on its own line under "You're needed after X" rather than wrapping mid-phrase.
  • Each milestone remembers it was completed, so the done count you see never drops during a loop.
  • I declared the tavern's existing earlier state key, which was undeclared before this work, so claude plugin validate passes.

Deferred minors

  • The spec phrase "last pass allowed — next miss asks you" isn't shown at the loop limit. The card says "Expected — X allows N passes" instead.
  • The Python and TypeScript views differ slightly in their narrow-width window and bar width.
  • watch can exit if a record is deleted mid-scan.
  • Box alignment assumes single-width characters, so CJK or emoji names misalign the borders.
  • fcntl makes the helper Unix-only. On Windows the quest carries on without a record.

Waiting on you

  • Review each surface live on a real quest. This is the planned acceptance step from the design. Start /quest from a fresh session, since command content is snapshotted at session start. Watch the tavern pane in Claude, and run progress.py watch in an AgentPanel split next to Codex, and watch --web on desktop.
  • Confirm that ${CLAUDE_PLUGIN_ROOT} expands inside the /quest command body on your Claude Code version. quest.md falls back to a Glob if it doesn't.

🤖 Generated with Claude Code


Play the walkthrough    Follow each request

GrillerGeek and others added 8 commits November 7, 2026 10:06
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
State values are allowlisted before they reach HTML, control characters
are refused on write and stripped on read (terminal and tavern), and the
local web view answers only to 127.0.0.1/localhost Host headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mordain seeds a progress record beside the plan and keeps it current
through progress.py on both hosts: the one, narrow exception to plan-only
writes. Bundles the helper in the portable skill, documents watching a
quest from the tavern pane, any terminal or a local browser page, and
bumps guildhall to 0.20.0 and guildhall-tavern to 0.4.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ates

- Every field the views read is validated (Python and tavern); a partial
  record shows 'No progress to show' on the web page and pane and is a
  one-line refusal for commands, never a traceback.
- close resolves waiting waypoints, and a closed quest's status wins over
  any stale wait, so the amber band stands down.
- Looping back interrupts the current milestone instead of marking it
  done; milestones remember completion so the done count never drops.
- Mordain reads the progress contract before seeding, marks what is
  already behind him after init, and keeps updating after a single
  refused command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coldtea-pr-lens

coldtea-pr-lens Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Architecture

Architecture diagram for GrillerGeek/guildhall at 6d1d469

Play the walkthrough

Inside the changed components — 1 view

Component view — Progress Tracking Subsystem

Internal modules and contracts governing progress recording and multi-surface rendering

Architecture view of Component view — Progress Tracking Subsystem in GrillerGeek/guildhall

Data flow

Data flow diagram for GrillerGeek/guildhall at 6d1d469

Follow each request


Review

✨ Nothing flagged · reviewed 6d1d469


Tip

Open a diagram on the canvas, then press W or click play to walk through the change one step at a time

🪧 More tips
  • Run npx skills add coldteadotai/pr-lens, then tell your coding agent: "Diagram the change you just made with PR Lens and attach it to the pull request."
  • Run npx @coldtea/pr-lens-cli analyze --base origin/main on a branch, then npx @coldtea/pr-lens-cli render .pr-lens/graph.json. Same lenses, your own model key, before the pull request exists
  • Click the link under each diagram to open it on a canvas you can zoom, pan and step through
  • The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change
  • The CLI's render reads .github/pr-lens.yml and applies your renames, exclusions and lane pins at draw time
  • Set github.comment.collapsed: true in .github/pr-lens.yml to fold the comment behind one View architecture… row. Drawing still runs as before
  • Set github.draw: on-demand in .github/pr-lens.yml and PR Lens stops drawing pull requests on its own. Comment @pr-lens draw on a pull request when you want that one drawn
  • Add .github/workflows/pr-lens.yml with coldteadotai/pr-lens/packages/action@v0 and your model provider's key as its api-key to run PR Lens from your own CI. Any /chat/completions endpoint works
  • After a push, tick Redraw to draw the latest commit
  • Switch GitHub to dark mode and the diagrams follow. The moving dots are this pull request's data in motion
  • Set github.description: false in .github/pr-lens.yml to stop PR Lens adding buttons to your PR descriptions

Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it.  Star PR Lens on GitHub

@GrillerGeek
GrillerGeek merged commit 3ba5a66 into main Nov 10, 2026
4 checks passed
@GrillerGeek
GrillerGeek deleted the Plan-viz branch November 10, 2026 00:59
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