Repository navigation
feat(web): add hints, intents, amendments and run controls from the board view - #19
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2 minutes 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>
POST /hints, POST /intents and POST /boards/control build the blackboard skill's templates, tags and links on the server as the caller. Text is folded onto one line so no field can forge a template line; a failed link deletes the memory just stored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /amendments stores an Amendment/From memory linked depends-on the goal (409 once done). The skill gains the amend command, the lead's Amendments handling and the worker rule that only a person steers the board. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ew Done when Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST is admitted for hints, intents, amendments and boards/control only, and only with proof of same-origin (Sec-Fetch-Site, else an Origin equal to the request's own), a JSON content type and a body of at most 16 KiB, read with a streaming cap. Writes get a 30 s upstream timeout; GETs keep 15 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the Board tab the drawer's Memory tab gains Add hint on every node, Add intent on the goal and on facts while the board runs or is paused, and on the goal its amendments, Add amendment and the board controls (pause, resume, an in-page confirmed stop, restart, the intent limit). Each write disables its form while in flight and polls the graph at once through mountBoard's new pollNow. The status strip shows paused in amber, and amendments sit in the graph's header band with their own colour and shape. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A held or repeated Enter on Stop… no longer lands on the newly focused Stop board button; confirming takes a deliberate Tab or click. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- runner: hold a measurement result while the lead is paused, so the first round after resume delivers it and passed_sent is set only when sent; the paused heartbeat is never slower than a running one, and the stuck-lead check waits two running heartbeats (at least two paused ones). - web-api: maxIntents must be a safe integer >= 1; an intent built on a fact names the fact's stored id in its Why line and link. - web: the amendment list redraws after Add amendment; a 409 from a control re-reads the goal state and redraws the buttons. - skill: one From: test in lead and work; the fallback candidate waits until the goal's own target is out of reach; workers' hints are partial results, ideas and problems; only a person changes the goal's text or limits. - tests: the skill names the server's person-intent marker. - docs: README write and limit wording; design doc Non-goals, Restart on every stopped board, the held measurement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 of 5 tasks
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.
What it does
The web UI (PR #18) could only watch a board. Now a person can steer one from the board view, and every change goes through the database, so it works for a board run on any machine. Design:
docs/superpowers/specs/2026-11-26-web-ui-hints-intents-design.md; plan:docs/superpowers/plans/2026-11-26-web-ui-hints-intents.md.Hint: …/From: <you>, linkedrelates-tothe node, or board-wide on the goal. The lead weighs it at its next round, as with/blackboard hint.Why:line startsWhy: added by, and the lead never drops such an intent as pointless. It counts towardMax intents, and the form shows the count first.[measure], the runner's measurement still decides Done, so a met fallback stops the board withStopped: amended target met (amendment <id>).state:paused. The lead plans nothing, workers carry on with open intents, and the runner checks every 2 minutes. A measurement that finishes while paused is held until resume.board-runner runagain".How
web-api:POST /hints,/intents,/amendments,/boards/control._shared/board-writes.ts, kept in step with the skill. A unit test pins theWhy: added bymarker to the skill files.Sec-Fetch-Site, orOriginwhen that is absent), JSON, at most 16 KiB, with a 30 s timeout. A cross-sitetext/plainrequest gets 403 and never reaches upstream.state:pausedacross SKILL.md, lead.md, work.md and start.md;pause,resume-lead,intentandamend;BOARD-*line is unchanged.BOARD-LEAD paused free=<n> open=<m>, keeps filling worker slots, uses a 2-minute heartbeat while paused (never slower than a running board), and holds measurement results until resume. Scheduler changes were test-first.Hosted
web-apiwas redeployed earlier from this branch's routes. The final-review fix wave then changedweb-api.tsagain: a safe-integer check on the limit, and using the resolved fact id. So hosted needs one more redeploy after review.Known limits
kind:amendment,kind:goalorkind:rules, or edit the goal.Test plan
deno task checkweb-apiwith the fix-wave changes, pending the maintainer's OK.round:<n>wording on a real lead and workers. Skipped so far, at the maintainer's choice.🤖 Generated with Claude Code