Repository navigation
docs(sdk): routing is in the skills - #1095
Conversation
Sol reviewStandards: No blockers. Both edits use the canonical release-bound project skill sources, as Spec / accuracy — one merge blocker: [P2] Qualify the notification guarantees (
Keep the initial asynchronous notification, then describe subsequent notifications as changes to the cached path string, including the acknowledged request and the shell's decoded update. Drop the unconditional same-address and every-history-step guarantees. This needs only a wording correction in this PR. The requested routing API, path rules and loop pointer are otherwise covered, with no router recipe or instructions about when to offer routing. The reported dev mismatch is real: Checked against |
|
Addressed the Sol review in d14f9f9:
|
4000594 to
8f2e238
Compare
Acceptance: PASS with notesChecked Done means
The merged skill texts
Golden journeys
Rollback answers: they match the diff. A revert leaves the Routes text in the managed skill copies of repos refreshed in the meantime. That text describes an API every release since routing shipped already has. No Not run
Notes
|
8f2e238 to
5c45efb
Compare
patchy-preact gains a Routes section with patchy.route's get, set and subscribe, the path rules, decoded reports, and why a link calls set instead of navigating the frame. patchy-loop points framework-free pages at it. Closes #1088 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sol's review: subscribe notifies when the page's cached path string changes, not on every set or history step. Co-Authored-By: Claude Opus 5.5 <[email protected]>
5c45efb to
29fe41c
Compare
## What changed This adds release 32's What's new entry, written from `58d94b3`. It covers everything merged since release 31's `through` (`5888411`). It also sets the `patchy` release to `0.32.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. | Change | PRs | | --- | --- | | Fixed: a patch has the keyboard as soon as it opens, so its shortcuts work, and Space and Page Down scroll it, without a click first | #1097 | | Improved: agents give a patch pages of its own, each view at its own address under the patch, with back and forward working; repos pick it up at their next refresh | #1095 | | Fixed: a patch that hits Pidgeon's hold on a new message is told nothing was sent and to reply in the conversation, not to wait and retry | #1139 | | Behind the scenes: refresh and `patchy dev` keep working when a repo holds a skill the instance's release doesn't ship, so a rollback can't break them | #1099 | #1138 is a live test tier change with nothing that ships. #1140 is release 31's own entry. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `9e176cb` (release 31) to `58d94b3`:** #1138, #1139, #1097, #1095 and #1099. None is labelled `one-way`, and their Release impact answers agree: - #1097 changes only the shell's script. - #1095 changes only skill text. - #1139 adds a `details.limit` value and a `details.message` on an existing refusal. - #1099 adds no skill, so a repo refreshed on this release holds only skills release 31 also ships. - #1138 is tests only. - **#1099 has to be live before #1092 (PR #1098, `patchy/hotkeys`) ships.** That's why this release goes out alone. Once #1098 is live, a rollback to release 32 or later keeps refresh and dev working for repos that picked up the new `patchy-hotkeys` skill. **Rollback line:** If this release misbehaves, roll back to `9e176cb` (release 31). ## How it was verified - **Tests.** `whatsNew.test.ts`, `schemas.test.ts` and `WhatsNewPages.test.ts` pass (21 tests), and prettier passes on the changed files. - **The range.** - #1097, #1095 and #1099 were each reviewed by GPT 6.1 Sol, with every finding resolved. Each got a fresh acceptance PASS with notes after its rebase onto Preact 11. - Each landed with all 12 required checks green on its final head. - #1138 and #1139 were merged from their own thread. - **Deploy state.** The live commit, pinned from `/healthz/deep`, is `9e176cb` (release 31). The Deploy run updated last succeeded, and none is unfinished. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Text and version numbers only. The `0.32.0` bump tells CLIs and patch repos installed before this deploy to upgrade, as every release does. - **What does a revert leave behind?** Nothing. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, through T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>

What changed
An agent asked for pages at their own paths couldn't find
patchy.routein any project skill. In #1052's trials, one read the generated.d.tsfiles to find it. Nowpatchy-preacthas a Routes section: whatget,setandsubscribedo, the path rules, and that a link callssetinstead of navigating the frame.patchy-looppoints framework-free pages at that section. Thepatchy-preactdescription adds "give pages paths of their own" so agents reach for the skill when they need routes.Closes #1088
Look at
The Routes section in
packages/sdk/skills/patchy-preact/SKILL.md. It states facts and gives no router recipe, and it never says when to add routing. Each line was checked against the code. Three facts go beyond the README's routing paragraph:pushState, and the client skips an unchanged path.%in a path has to begin a valid escape. The broker'sdecodeURIComponentrefuses anything else.load.A fresh agent with the skill vs without it. Same task on both sides, Sonnet 5.5. The before agent grepped
node_modules/patchy/dist/*.d.tsand the package README to find routing. The after agent found Routes in the skills, opened no.d.tsfile and answered thatpatchy.route.setandsubscribechange the address:Trial
routesBefore is
2449055(where this branch left main) and after is66bc56d(docs/route-skills-1088), both on theteamscenario, frompnpm dev trial. Those are the commits before the branch was rebased onto Preact 11. The routing text hasn't changed since, and acceptance re-ran a fresh agent at8f2e238.Each side gave the task to a fresh agent: after's
agentlauncher in the side's environment, Claude Code onclaude-sonnet-5-5as the scenario's publisher, with the side's release of the Patchy skill and no personal instructions or settings, run without a person within 60 turns and 20 minutes. The log keeps each tool call, commands with their exit codes, and one line per failure; not the agent's reasoning or what its commands printed. Nothing in it matched a collected secret (each side's CLI state, machine-token and login-code shapes, email addresses outside the scenarios' example domains, secret-named variables, and any accounts the run acts as).One run is a smell test, not a measurement.
Before answered: “The page changes its address by calling
patchy.route.set(path)from the nav link click handlergoinsrc/App.tsx, and it reads the address back withpatchy.route.get()andpatchy.route.subscribe(), which also report back and forward. I haven't published it.”After answered: “The page changes the address through
patchy.route.set(path)(called from the nav links) andpatchy.route.subscribe. That is Patchy's routing API, not the History API I first named.”Before's log: 15 commands, 6 failures
After's log: 12 commands, 4 failures
How it was verified
packages/patchy/src/clientTransport.ts: the route'sget,setandsubscribe, including async notify, acknowledged-set adoption and queued notifications dropped on unsubscribe.packages/serving/src/broker.ts:routePathrules,route.set→pushState,popstate→ route event, frame reload →stop(), refusals asinvalid_request.packages/patchy/src/devServer.tsandpackages/serving/src/Pages.ts: deep links are served in dev and hosted.packages/sdk/src/Generation.ts:patchy-preactis installed on every tier 1 and 2 repo, vanilla included, so the loop pointer always resolves.vitest run packages/patchy/src/initProject.test.ts packages/sdk/src/SdkApi.test.tspassed 37 of 37. The first pins the lint block inpatchy-preact, which is unchanged.pnpm dev trialran twice with the same brief. The second run added only the request for a one-sentence answer, because the trial log keeps commands but not file contents. In the first run, too, the before agent grepped.d.tsfiles and the after agent read only the skills. Neither after agent published. The first said this machine was logged in as someone else. The second stopped when the launcher denied itscurlchecks. Neither stop has to do with routing.pnpm verify: format, lint, typecheck, synth, postgres-concurrency, cli-smoke, install, tier2-smoke and browser passed. The offlineteststep failed locally on CLI stub-server tests that recorded a strayGET /none of them sent, plus a few load-timing tests. The failing set changed between runs, and none of those tests reads skill text. CI's run on this PR is the real check.patchy devpasses an opening address's encoded path to the page undecoded, while the hosted shell decodes it. The skill therefore claims decoding only for back, forward andset.Release impact
Tick exactly one.
Breaking — requires action from anyone already running this
Not breaking — no action required. Only skill text changes; it reaches repos at their next refresh.
What does a revert leave behind? Repos refreshed in the meantime keep the Routes text in their managed skill copy until they refresh again. The text describes an API every release since routing shipped already has.
Does the release before it still work with that? Yes. No code, schema or contract changed.
Built by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, through T3 Code.