Repository navigation
feat(j5): J5's read models follow a change stream, not timers - #586
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
This review includes 41 billable files and costs up to $10.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 22 minutes for your next included review. View limit details
Comment |
Jacksondr5
force-pushed
the
j5/read-change-stream
branch
from
October 13, 2026 02:41
4d3afe0 to
a7b305c
Compare
7 of 8 tasks
Jacksondr5
added a commit
that referenced
this pull request
Oct 13, 2026
This was referenced Oct 13, 2026
The Inbox, Crew proposals, a seat's approvals, the Fleet and the sidebar's Crew chips were re-read on 7.5 and 30 second timers whether or not anything had changed. The server now streams four revisions (inbox, crew, fleet, runtimeRequests) over `j5.reads.subscribeChanges`, and each read re-reads when a revision it depends on moves. The ledger's committed events, the orchestration event store and the playbook store feed the revisions; the Crew services and spawn placement notify after their own commits. The timers are removed; a refresh on tab focus stays for what has no signal. Closes #182. Part of #506. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tream Review fixes. The revisions start from the server's start time, so a client that reconnects after a restart sees them moved. The sidebar rows re-read on the first revisions heard, which may already count a change. After losing the event stream, the follower takes its new mark before it notifies. A thread's title change moves runtimeRequests, since the approval card shows it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Fleet page re-read the Fleet on every playbook revision. The fleet revision already moves when a playbook run does, so the page read it again beside the stream. Found in live testing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5
force-pushed
the
j5/read-change-stream
branch
from
October 13, 2026 03:51
9c99e0a to
e6c1fbf
Compare
7 of 8 tasks
6 of 8 tasks
This was referenced Oct 13, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
This branch was successfully deployed
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.
Problem
The Inbox, Crew proposals, a seat's approvals, the Fleet and the sidebar's Crew chips and children were re-read on 7.5 and 30 second timers whether or not anything had changed, once per connected environment. Closes #182. Part of #506 (the last part of step 3). Stacked on #584.
What changed
j5.reads.subscribeChangesstreams four revisions:inbox,crew,fleetandruntimeRequests. It says which read models went out of date, never what changed. Each read re-reads when a revision it depends on moves, through upstream'srefreshTrigger, as upstream's pull-request summaries do.inbox: an Exchange closing or dropping, and a delivery, cancellation or delivery failure that reaches a person.fleet: any participant event, an Exchange opening, closing or dropping, a placement, and a playbook run changing.crew: a proposal being admitted, resolved or attached to its Crew, and a Crew being recorded, gaining or losing seats, retired or restored.runtimeRequests: a provider request opening or resolving, an approval's turn item, and a thread being archived, unarchived, deleted or renamed.ReadChanges) holds the revisions. Feeds turn what the server already publishes into revisions: the ledger's committed events, the orchestration event store and the playbook store. The Crew services and spawn placement had no signal, so they notify after their own commits.fleetrevision covers it.Still on a timer after this PR: the peer list (30 s) and a playbook board with an active run (30 s). Neither had a change signal for everything that changes it. #593, on top of this, adds those signals and removes both.
Things to know
Verification
HumanInboxPage.tsx).src/j5,src/state) 907, websrc/j5280, mobilesrc/j531, server (src/j5,src/auth,src/observability,ws.test.ts) 1,235.inboxrevision re-running the Inbox query and not the proposals query, and the sidebar rows refreshing oncrew.UI changes
No layout or styling changes, so there are no before/after stills. The visible difference is timing: these views update about half a second after a change.
Live testing
Pass on 9c99e0ae01, by a GPT-6 Astra peer agent on two peered isolated servers, with Claude Haiku 5.5 for the turns. Report:
artifacts/test-reports/j5-read-change-stream.md.runtimeRequestsalone and ran one read.orchestration:readalone (on the first head tested).Not exercised live
sharing.test.ts, and the server's guest gate refuses any method it does not name.Upstream impact
packages/client-runtime/src/rpc/client.ts: the stream's tag joinsEnvironmentSubscriptionRpcTag, its import and one union member, as the artifact and playbook streams did (FORK.md cases 45 and 64).ws.tsedit: the hub reaches the socket through the J5 serviceswsRpc.tsalready picks.Checklist
FORK.md(case text and file-table row) in this PRdocs/j5/product/upstream.md— none changedAGENTS.md) — web only; mobile has no consumer of these reads; relay and tunnel not run livedocs/j5/product/and user docs rewritten where this changes them — none state the pollingBuilt by Claude Opus 5.5 in Claude Code, with Opus 5.5 subagents.
🤖 Generated with Claude Code