chore(agents): pi packages → @earendil-works 0.85.1 (refresh of #4702) - #4804
Open
espaciofuturoio wants to merge 8 commits into
Open
espaciofuturoio wants to merge 8 commits into
espaciofuturoio wants to merge 8 commits into
Conversation
…, not only `old_value` Electric's `replica: full` delete message carries the deleted row in `value` (`old_value` is only set on updates). WakeRegistry read `old_value.id`, got NaN, and reset the whole in-memory registration cache on every delete. Because manifest sync unregisters+registers per child, a parent that spawned N children with `runFinished` wakes kept only the registration inserted after the last delete — only its last child ever woke it — and the shape log replayed the same deletes on every restart. Measured on two 5-child swarms against electricsql/electric 1.7.10 + agents-server 0.6.4. The existing sync test modelled deletes without a row, which cannot tell 'removed one' from 'reset everything'; the new test deletes one of two registrations with the row in `value` and asserts the other still evaluates.
…elivered for every child
…c-sql#4702 getModel is typed on the generated catalog's providers (BuiltinProvider) in 0.85; resolvePiModel casts through Parameters<typeof getModel>[0] and keeps the unknown-model throw.
espaciofuturoio
added a commit
to espaciofuturoio/electric
that referenced
this pull request
Sep 13, 2026
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.
Refresh of #4702 (@KyleAMathews) rebased onto current
main, with the pi packages bumped from^0.80.5to^0.85.1. Kyle's three commits are cherry-picked unchanged (one trivialpackage.jsonconflict); this PR adds one commit + a changeset on top. Happy to close this in favour of #4702 if you'd rather take the two commits there.What changed since 0.80.5 that matters here
getModel(compat) is now typed on the generated catalog's providers (BuiltinProvider, a subset ofKnownProvider):resolvePiModelcasts throughParameters<typeof getModel>[0]and keeps the unknown-model throw.AgentstreamFnis a required stream function since 0.84 (0.84.1 kept the option name);pi-adapter.tsalways passes one, so nothing to do.Full changelog read:
packages/ai/CHANGELOG.mdandpackages/agent/CHANGELOG.mdin earendil-works/pi, 0.70.0 → 0.85.1; nothing else between 0.80.5 and 0.85.1 touches the runtime's surface (auth/OAuth rewrite,ModelsAPI, TypeBox 1.3.7, Cloudflare bindings).Verification
typecheckgreen foragents-runtime,agents,agents-server,agents-server-conformance-tests(afteragents-runtimebuild).agents-runtime:pi-adapter(35),model-runner(10),compaction-trigger(2),context-factory(6),process-wake(54) — 107/107.agents-server:wake-registry-sync.test.tsgreen.wake-registry.test.tshas 7 failures that reproduce identically on pristinemainon my machine (DurableStreamError: JSON methods are only valid for JSON-mode streams, plus the pull-wake e2es never reaching the handler) — environmental here, so please rely on CI for those.agents-serverDocker image built from this branch + an entity server on@earendil-works/pi-ai@0.85.1through Vercel AI Gateway (Sonnet 5 orchestrator, Haiku 4.5 workers, tool calls viaanthropic-messages): 2-worker swarm, same output as on 0.70 (2 wiki entries, 1 cross-reference), 86 s vs 80 s, $0.102 vs $0.110 by the runtime'sstepstoken counts.