Repository navigation
feat(progress): glanceable quest progress on every surface (v0.20.0) - #73
Merged
Merged
Conversation
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>
|
Architecture Inside the changed components — 1 viewComponent view — Progress Tracking Subsystem Internal modules and contracts governing progress recording and multi-surface rendering
Data flow Review ✨ Nothing flagged · reviewed 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
Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it. |
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.
Why
A running quest is a black box: the camp-planner
feature/mcpquest 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.mdWhat it does
One record, every surface. Mordain seeds
docs/guildhall/plans/<slug>/progress.jsonright 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.guildhall-tavernpane: journey + NOW card above the adventurer tree; amber⚑ Waiting on youbandprogress.py --root . watchprogress.py --root . watch --web(127.0.0.1 only)Layout B (journey + focus card), as approved in brainstorming:
PASS 2 OF BUILDand gives one sentence on why it looped.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 intoquest.md, the portable skill,collaborative-planning.md,CLAUDE.mdand 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-tavern0.3.0 → 0.4.0.Testing
python3 -m unittest discover -s tests: 139/139 OK, including 44 new tests intests/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-tavernpassed.scripts/validate_plugin.pyandscripts/validate_portable.pyboth pass.scripts/test_install.pywasn't run locally because it needs the skills CLI; CI runs it.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/localhostHost headers, and record/lock paths refuse symlinks.Final whole-branch review. No Critical findings. Fixed and tested:
Calls made on your behalf
progress.pycall and every 5s. It doesn't read on plan writes, since the record doesn't exist yet at that point.references/progress.md.quest.mdand the portablequest.mdlink to it instead of duplicating it.earlierstate key, which was undeclared before this work, soclaude plugin validatepasses.Deferred minors
watchcan exit if a record is deleted mid-scan.fcntlmakes the helper Unix-only. On Windows the quest carries on without a record.Waiting on you
/questfrom a fresh session, since command content is snapshotted at session start. Watch the tavern pane in Claude, and runprogress.py watchin an AgentPanel split next to Codex, andwatch --webon desktop.${CLAUDE_PLUGIN_ROOT}expands inside the/questcommand body on your Claude Code version.quest.mdfalls back to aGlobif it doesn't.🤖 Generated with Claude Code