Repository navigation
feat(integrations): patchy dev reads the real Pidgeon address and simulates sends - #955
Conversation
Acceptance: PASS with notesChecked Done means
Selected fields from this instance's Golden journeys and risks
Focused local run: All checks were green on this head. I read the Pidgeon live job: all 19 tests passed, including all three Rollback answers: match the scoped diff. There is no migration, infrastructure change or live dev write. Dev reads leave machine-call records in the existing shape; the base already understands that shape. No Not run
Notes
|
333ea52 to
5d2310a
Compare
…es its writes The instance's dev read door takes pidgeon.read beside posthog.query, through the same address checks, slots and refusals as a published read. Its body is read up to the largest live bound, then held to each operation's own. patchy dev's side of the door moves out of PostHog's binding into DevDoor, and Pidgeon's dev binding reads through it and answers every write itself, with dev_ ids and test: true, printing what it would have sent. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nds stay in dev's output Co-Authored-By: Claude Opus 5.5 <[email protected]>
…v door and simulates a reply Co-Authored-By: Claude Opus 5.5 <[email protected]>
…side PostHog The dev read door's API description, the Integrations glossary (dev binding, dev read, simulated write), the product's Development section, DEVELOPMENT, the patchy-dev-loop skill, the CLI README and ADR-0004, the global patchy skill and the project skills now say patchy dev reads the real Pidgeon address and simulates its sends, replies and triage. So do Pidgeon's generated context and its SDK capability line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…and the caller-refusal marker says why Co-Authored-By: Claude Opus 5.5 <[email protected]>
…onnection with Schema.is Co-Authored-By: Claude Opus 5.5 <[email protected]>
cce5019 to
53d9f0f
Compare
… patchy survives a Node update (#962) ## What changed This PR adds release 20's What's new entry, written from `c5175bd`. It covers everything merged since release 19's `through` (`156a228`), and it sets the `patchy` release to `0.20.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. With this release patches can read and answer a company email address on Pidgeon, and the `patchy` command keeps working after a Node version change. | Change | PRs | | --- | --- | | New: Patches can read and answer a company email address | #921, #954, #955 | | Fixed: The patchy command survives a Node update | #944 | | Behind the scenes: Patchy keeps only a key for the connected address, never the Pidgeon admin key | #921 | Two merged PRs get no line: #941 is release 19's own entry, and #945 adds CI install checks on macOS and Windows, which is tooling. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. Its labels are the pages' own: Integrations, Read, Read and send. The 200 sends a day is `pidgeon.sends.daily`'s default. The Node fix says what #944's Release impact asks of the note: people whose terminal doesn't look in `~/.local/bin` are shown the line to add when they rerun the install line. - **Rollback safety, from the live commit `fe8a0f2` to `c5175bd`.** Three PRs in the range are labelled `one-way`: - **#921 and #954 (Pidgeon).** Release 19 hides Pidgeon connections and ignores the new `pidgeon_sends` table, but a patch whose current version declares or calls Pidgeon needs this release to serve. Recovering it means rolling forward. - **#944 (CLI install).** On machines where the new installer put `~/.local/bin/patchy` ahead of Node's own bin on PATH, release 19's install-and-login line refuses after installing. Those people would need to clean that up by hand. - **#955 and #945** answer both Release impact questions with "Yes". `rollback-rehearsal` passed on every landed head, including #954's migration `0028`. ## How it was verified - **Tests.** `whatsNew.test.ts` (4), `WhatsNewPages.test.ts` (6), `schemas.test.ts` (11) and the skill lock (1) pass. Typecheck passes for core, api and the CLI, and so do prettier and eslint on the changed files. - **The stack.** #921, #954 and #955 each had GPT 6.1 Sol reviews to merge-ready and an acceptance verdict of PASS with notes. Each landed after all 21 checks passed on its rebased head, `Pidgeon live` included. Each rebase left the tree byte-identical to the accepted head, and `main`'s tree at `c5175bd` is identical to #955's accepted `cce5019`. - **Deploy state.** The live commit was pinned from `/healthz/deep`: `fe8a0f2`, release 19. 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 This PR changes only the changelog text and the `patchy` version. As with every release, a CLI installed before this deploy is told to upgrade. - **What does a revert leave behind?** Nothing. People whose seen marker reached 20 would just see no new release. - **Does the release before it still work with that?** Yes. Rolling back past #921 and #954 would stop any patch whose current version uses a Pidgeon connection from serving, and rolling back past #944 would break the install-and-login line on machines where the new installer put `~/.local/bin/patchy` ahead of Node on PATH; fix forward instead. Made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed
patchy devcouldn't run Pidgeon at all: every call failedinvalid_request, so a builder's agent built a support desk against mail it never saw. Nowpatchy devreads the connected address's real mail through the instance's dev read door, as the builder, and simulates every send, reply and triage. Dev's output names what it would have sent, and nobody receives anything.Closes #826. Part of #822. Ships in one release with #921 and #954, and stacks on #954.
Look at
1. Pressing Send in the Support desk under
patchy devsends nothing. Onpnpm dev up pidgeon, I started the workspace repo'spnpm patchy dev --jsonwith the agent launcher's environment, then drove the desk in Chromium: list, open, type a reply, press Send reply.dev.lognames the simulated reply. This session logs JSON; a text session prints<viewer> pidgeon/support messages.reply <id>: simulated in dev, nothing reached Pidgeon.{"type":"simulated","viewerId":"usr_env_lumen_allison","connection":"pidgeon/support","operation":"messages.reply","summary":"messages.reply <message id>"}The connection's recent calls on the instance show only Dev reads, the last one being the desk's reload after the send. There's no write:
pnpm dev down:Pidgeon: revoked 1 key and deleted 1 test address this environment made.2. A repo whose only live integration is Pidgeon gets the machine key.
patchy devhanded its key to the daemon only when PostHog was declared.devLifecycle.test.ts› "hands the key to a repo whose only live integration is Pidgeon…", run over #954'sdevLifecycle.ts,dev.tsanddevPreparation.ts:…and over this head:
Tests 1 passed | 11 skipped (12).3. The door reads Pidgeon as a published read does, and refuses writes.
packages/integrations/src/DevReads.tsrunspidgeon.readthroughpidgeon/Operations.ts's newdevReads, with the same address checks, slots and held-mail handling. It answerspidgeon.writeinvalid_request, logged.DevReads.test.ts› "Pidgeon in patchy dev" covers:readconnection's write refused exactly as a published one is;Live: the new
PidgeonDev.live.tsreads a fresh test address through the door, finds held mail empty, and shows that a simulated reply leaves the next read unchanged.Decisions you can overturn
pending_approvalin dev. A simulated send always answerssent. The snapshot doesn't carry the address's approval setting, so dev can't know when Pidgeon would hold a send.threadIdis adev_id. Dev can't learn a reply's thread without reaching the instance. Reading adev_id answersnot_found, so the desk's new-email view opens ontonot_foundin dev; the skill says so.runtime.pidgeon.bytes(1 MiB), then holds each operation to its own;runtime.posthog.bytesstays 256 KiB. A garbage body between 256 KiB and 1 MiB now answers 400 instead of 413.DevDoor.posthog/Dev.tsis now a thin binding overpackages/integrations/src/DevDoor.ts, which Pidgeon's binding uses too. Its errors' tags changed fromPostHogDev*toDevDoor*. Tags aren't on the wire, and PostHog's messages are unchanged.Also settled on #826:
threads.updatereturns the id and the new status, andthreads.labelreturns the label when the snapshot lists it.Changes to #954's code
pidgeon/Operations.ts:perform's tail becameatAddress, which the door shares. It also hands the door's refusal of its caller after a slot wait back unchanged.devReads.api/pidgeon.ts:PidgeonDevRead, additive.pidgeon/index.ts:live: ["read"].pidgeon/Generate.tsand thepatchy-pidgeonskill now say what dev does.How it was verified
pnpm verifyonc14b999: all ten suites passed (format, lint, typecheck, synth, test, postgres-concurrency, cli-smoke, install, tier2-smoke, browser). The only difference between that commit and this head is feat(integrations): patches read, reply and send from a Pidgeon address #954's last commit, which changes the Support desk'sApp.tsx, and no verify suite exercises that file.The live tier, once, on this branch: 3 files, 19 tests passed. The account's keys stayed under the harness cap:
pnpm dev up pidgeon, the desk underpatchy dev, thenpnpm dev down: as above.Every surface #826 named:
devRead.tsanddocs/API.md;packages/patchydev, its README and ADR-0004'sdev.loglines (no flag or exit code moved);docs/DEVELOPMENT.mdandpatchy-dev-loop;patchyskill with its lock hash, and the project skills;GLOSSARY-MAP.md;docs/product.md;There's no migration. Prototype #819's fixture door never reached this stack, so there was nothing to remove.
Release impact
Dev only: the door gains one read operation,
patchy devgains Pidgeon's binding, and nothing a published patch does changes.runtime_calls, in the shape PostHog's dev reads already use: machine credential, no patch,oppidgeon.read. No schema, and no mail, since dev never sent any.patchy devfails Pidgeon callsinvalid_requestas before. The stack's own rollback story is feat(integrations): connect a Pidgeon address with an admin key #921's and feat(integrations): patches read, reply and send from a Pidgeon address #954's.Made by Claude Opus 5.5 in Claude Code, running in T3 Code.