Skip to content

chore: release v0.9.0 - #212

Merged
gregpriday merged 192 commits into
mainfrom
release/0.9.0
Nov 19, 2026
Merged

gregpriday merged 192 commits into
mainfrom
release/0.9.0

Conversation

@gregpriday

Copy link
Copy Markdown
Contributor

Release v0.9.0: a regular release from develop at 9de528d (v0.8.0 → v0.9.0, minor because of the new features). Tagging the merge commit of this PR publishes every public package to npm under latest.

This release does two things. An agent can ask for advice with a deadline ("which fixture should I use? If I haven't heard in 15 minutes, I'll pick one"), and recover what happened to the question by its ID however the session, the network or the bridge fared. And the owner desktop can ask for an agent-stopped push to the phone.

What ships since v0.8.0

Advisory deadlines (#149)

Agent-stopped push (#148)

Fixes from the release check

Docs and tests

Plus #143, the merge of main back into develop after v0.8.0, and this PR's version bump: every workspace manifest, SERVER_VERSION and WORKER_VERSION → 0.9.0.

Compatibility

  • protocol_min/protocol_max stay 1/1. Both features are tokens in GET /api/v1/info (advisory-deadlines-v1, agent-stopped-push-v1), and clients send nothing a relay doesn't advertise.
  • Older relay: an advisory ask is refused as not_supported: relay-unsupported and nothing is asked; an agent-stopped push request reports unsupported. Ordinary questions, answers and declines work.
  • 0.8.0 desktop against a 0.9.0 relay: keeps asking and receiving answers and declines. Its reader refuses another host's advisory question by its reply_mode and reads everything else.
  • Cached 0.8.0 phone app: answers and declines ordinary questions; an advisory ask is refused as not_supported: no-capable-reader while no paired device can show it; it is never sent an agent-stopped push. Once the updated service worker declares it, pushes start.
  • Pre-upgrade questions still answer, expire and reopen; a reopen made under 0.8.0 is repaired to its signed deadline.
  • A client now refuses a state directory written by a newer client that it could misread.

Upgrading

  • Self-hosters: update the relay with decisions update (or deploy the decisions-worker-v0.9.0 bundle). Phones pick up the new app on their next restart into the update.
  • Daintree: bump the pinned packages and relay to 0.9.0. A custom LocalStore written to by a 0.8.0 bridge should implement processedEventsOfType so reopened rounds are repaired (see packages/client/README.md and docs/daintree-integration-spec.md); the bridge reports at start when it cannot.

Validation

CI is green on develop at 9de528d. Local checks on this release commit (8bafcdb) in a clean worktree (no .dev.vars):

  • pnpm install --frozen-lockfile, release:publish --check --tag v0.9.0, pnpm typecheck, pnpm build:all: pass
  • pnpm test (every workspace package, including the whole-system e2e in Chromium) and pnpm test:tools (56): pass
  • pnpm pack:check, release:publish --dry-run --no-build (6 packages at 0.9.0): pass
  • wrangler deploy --dry-run: pass; decisions --version: 0.9.0
  • pnpm audit --prod --audit-level high: no known vulnerabilities
  • pnpm compat:check --old 0.8.0: all four scenarios pass against npm 0.8.0 and the v0.8.0 relay bundle (3.1 min)

After merge

Tag the merge commit v0.9.0, which publishes. Then check the npm packages, provenance and GitHub release assets, run pnpm compat:check --old 0.8.0 --new 0.9.0, and merge main back into develop. That closes #148, #160 and #149.

chore: merge main into develop after v0.8.0
- Server instructions, the ask_human description and the attachments field now
  say to attach screenshots when the person must see something to decide
- local_resource_id was described as an id "Daintree has registered", which led
  agents to conclude they had nothing to attach; it now says what Daintree takes:
  an image path relative to the folder the terminal started in
- Hosts that resolve ids differently set attachmentIdDescription; the CLI daemon
  describes its pane folder, or that it takes no attachments
…creenshots

feat(client): tell agents to attach screenshots to visual questions
- POST /push/agent-stopped, owner desktop only, sends {"type":"agent-stopped"} and nothing else
- Only to endpoints whose latest subscription declared agent-stopped-push-v1; schema 6 starts every endpoint unable
- Dropped in quiet hours, one per 60 s window relay-wide, high urgency, 10 min TTL and a fixed Topic
- Re-read each endpoint just before its send, so a withdrawn declaration or new keys apply mid fan-out
- Advertise agent-stopped-push-v1 in GET /info
- Section 11: the owner-only route, endpoint declarations, quiet hours, the window, TTL and Topic
- Section 19: agent-stopped-push-v1 in /info and on push subscriptions
- Security claims: the relay learns that some agent stopped, and when
…e extra request fields

- A subscribe applies the declaration to every row of its endpoint, so a stale pairing's row cannot keep sending
- Re-read a subscription by device and endpoint before sending, so one removed and added back mid fan-out is reached
- AgentStoppedPushBody is strict: a host app that tries to say more gets 400
- Tests: window boundary, sends held during a burst, mixed delivery, token edge cases, the send-time payload guard
- Docs: what the relay infers, MUST NOT retry including a request-budget 429, per-endpoint Topic, retention
…me push subscription

- Match endpoint and keys, so a registration with other keys never changes another device's row
- Test quiet hours dropping the request without a presence lease too
…er-desktop-ask-for-a-push

feat(relay): let the owner desktop ask for a push when an agent stops
- Look up the command receipt and the existing question before checking expires_at
- Check the deadline with the clock read inside the commit transaction
- Cover replays, reconciliation, collisions and overdue creates past the deadline
…estion list

- shapePush gives agent-stopped its own body, a fixed tag and the inbox URL
- the service worker answers a features request with what it can show
- add RelayClient.postAgentStoppedPush, sent once with no retry or clock-skew resend
- add DecisionsBridge.requestAgentStoppedPush, owner-only, gated on agent-stopped-push-v1
- serve POST /push/agent-stopped from the fake relay
…s receipt

- Promote a published question to open only while it is still queued, under the store lock
- Let FakeRelay refuse new creates past their deadline when a test sets its clock
- Cover a lost create reply retried past the deadline after a reconnect
- Test that a new create is checked against its deadline at commit
… retry

- document requestAgentStoppedPush for Daintree in the integration spec
- Cap the Web Push TTL of an open question's push (new question, reminder,
  reply) at the whole seconds left before its deadline, worked out again
  before each endpoint's send and each retry; send nothing once less than
  a second is left
- Stop a push's fan-out once its job is cancelled or the deadline passes
- Drop instead of defer a push that quiet hours or the presence hold would
  keep to the deadline, and queue no push or reminder due after it
…hat can show it

- the page asks the registration's active worker what it can show and declares the
  agent-stopped push on a subscription only when that worker says it can and the relay serves it
- an app updated in place declares its existing subscription from boot, /info, the worker
  registration or a worker taking over, never reviving a dead endpoint
- Settings says a notification can also say that an agent stopped
- document the /info answers that count as unsupported
- test a restart while the feature check is held, object-first arguments and the MCP spellings
- drop an unused fake relay hold
…asses

- Expire a due question in the create transaction before answering a fresh-key reconciliation
- Qualify the protocol's replay promise with the 30-day receipt retention
- Move the deadline tests onto a controlled clock and check the reconciliation boundary
- Cover history arriving while the publisher stores a replayed receipt
…ng beside a leftover row

- the worker is asked before the rows are read, so an endpoint reported gone meanwhile is seen
- the boot-time declaration skips only when every row declares, so a row left by turning
  notifications off and on again no longer blocks the new subscription
- the Settings tap sends nothing for a pairing that ended while the worker was asked
- tests load the real service worker, and check each prerequisite on its own
…eminder chains

- Defer a reply push past the deadline as before: a proxy answer ends the
  deadline without answering the agent, and expiry cancels it otherwise
- End a reminder chain when quiet hours drop its reminder
- Line up no retry for a push job cancelled during its send
- Drive mid-send tests with a held send instead of real-time delays, and
  cover the TTL boundaries and every scheduling cutoff
…cepted-question-create-after

fix(worker): replay an accepted question create after its deadline
…app-ask-for-an-agent-stopped

feat(client): let a host app ask for an agent-stopped push
…tighten three checks

- a relay, actor or CLI whose spawn failed counts as stopped, so cleanup never waits on it
- a CLI log that cannot be written no longer escapes cleanup
- an expiry notice may not mention a plan; each reopened round's answer is typed once in any pane
- check the release carries the npm package's source maps, and compare full question id lists
… the reopened answer's own notice

- a signal sets a flag that every relay, actor and CLI start checks, so the shutdown sees each process
- the pane and answer checks apply to the one revision-2 notice of each reopened question
…sory-question-end-to-end-with

test(e2e): run advisory questions end to end on a controllable clock
…sed-0-8-0-packages-against-a

test(release): run released packages against the new relay and back
…r-is-skipped-for-stores

fix(client): report a store that cannot repair reopened rounds at start
…-hide-a-due-advisory-plan

fix(client): report a due advisory plan whose notice the sink refused
… a newer client's store

- Delivery holds an entry of an unknown kind, or an answer or decline from an
  unexpected source, and flags its question for a human instead of typing it;
  the formatter refuses such an entry rather than typing it as an answer
- get_decision never reports such an entry as the person's answer, and the
  legacy sealing pass leaves it as it is
- A store_format marker in meta: SqliteLocalStore refuses a newer schema or
  format before touching the file, DecisionsBridge.start() refuses before it
  starts anything, and the CLI reports it as a clear error
- Integration spec and operations docs describe the store format contract
- A start made while another admits the store waits for that admission and
  returns as a second call, so the first call's transport is the one used
- A hold is flagged on a fresh read under the delivery lock, so an entry a
  reopen or answer replaced meanwhile never holds the new round
- Tests cover both, and an ASCII-digit BLOB marker
…ent-types-a-newer-state

fix(client): hold answer entries it cannot type; refuse a newer store
…receiver

- Run the real `decisions mcp` receiver in process against the clocked Worker and the PWA
- Settle a question the offline computer never published as never-published, its plan due
- Lose a create's receipt, retry it after the deadline, and get the relay's original receipt back
- Refuse an answer the offline phone queued before the deadline and sent after it
- Restart the receiver between the expiry and its notice, replay the expiry over the socket, type it once
- Recover each outcome by ID with get_decision and `decisions wait --pane mcp`
- Check the relay's history holds one creation, at the replayed receipt's event, and one expiry
- Prove the restarted receiver delivers from its own store, keeps the MCP token, and a later restart types nothing more
- Fail the replay on any bridge error, and bound its barrier to the same socket
- Give each test its own teardown scope with bounded steps, and bound receiver readiness
…nish every teardown

- Count the question's creation and expiry only once the returning socket's catch-up has ended
- Reuse a receiver's stop in flight, so a teardown after a cut-short stop still waits for it
- Wait for late teardown before the next test starts, and fail the hook when a step hangs
…ory-faults-and-restarts-in

test(e2e): cover advisory faults and restarts end to end
- compat-check scenario 4 runs the released phone app in Chromium across the relay upgrade and the app's own update
- phone-app.mjs holds the browser loader, the push subscription fixture and the declaration judge
…d keep page snapshots on failure

- document scenario 4 in docs/operations.md
…ation counts

- the fixture records the worker's answer to the app's FEATURES question and when the app stops waiting
- the judge binds the old-worker question to the mixed page, refuses an unknown worker state and an incomplete trace, and runs on the whole trace at the end
- requests are timed at their start and named by page; the advisory checks follow a ticket from the cached page
- the new worker installs while the cached page is open, so the mixed page always finds it waiting
- exact display checks in the updated app, a full count of the desktop's notices, and a skipped scenario never counts as run
- the browser leaves the signals to the runner
…ly after the app's own handler

- every post-swap ticket of the cached page is checked for what it declares
- subscription posts are counted only for pages, and tied to the page that sent them
- the cached page's update check is not awaited; SIGHUP stops the run like SIGINT
- a missing Chromium is a warning before the installs, and fails scenario 4 only once it applies
- judge tests for each predicate's edges
…worker from Node

- Playwright's waitForFunction resolves on an async predicate's promise, so the waiting worker is polled with evaluate
- the declaration is taken from the updated page's own trace, then its answer is awaited after the reload
- every ticket of the cached page is checked once the cached phase is over, one without features included
- transfer lists that can be read only once, and response bodies that stall, no longer hold the fixture or the run
…d bound the worker poll

- the fixture replaces only a transfer list that is not already an array, and never copies the app's options
- the body drain's timer no longer holds the process, and the row's features must be a list
…hed-0-8-0-phone-app-against-a

test(release): check a cached 0.8.0 phone app against a 0.9.0 relay
@gregpriday
gregpriday merged commit 0ed930f into main Nov 19, 2026
2 checks passed
@gregpriday
gregpriday deleted the release/0.9.0 branch November 19, 2026 17:49
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