Repository navigation
feat(j5): report Exchanges, playbook runs, Crews and fleet size - #516
Merged
Merged
Conversation
Nothing told us whether asks between agents, or from an agent to the person, get answered, or how long one waits. J5 now records j5.exchange.closed when an Exchange closes or is dropped, with the outcome, the kind of participant on each side, the urgency and the time it was open. It reads the ledger's committed events, so a retried reply or withdrawal counts once. Part of #510 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Nothing told us whether playbook runs finish or how far they get. J5 now records j5.playbook.run.started with the run's shape, and j5.playbook.run.finished when a run completes or is cancelled, with the step it reached and how long it ran. Both are recorded after the run's change commits and skip a replayed request, so a retry counts once. Part of #510 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Nothing told us how often a person approves, edits or declines a roster, how big Crews are, or how often a seat fails to start. J5 now records j5.crew.proposal.resolved when the person decides, with what they changed and how long the gate was open, and j5.crew.launched when seats are spawned, with counts of seats by kind and by launch outcome. Part of #510 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The boot heartbeat counts threads and projects, which says nothing about how many agents work at once. J5 now records j5.fleet.snapshot every fifteen minutes with counts of working threads, the ones an agent started, queued turns, live Crews and their largest roster, and asks waiting on the person and on agents. Part of #510 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Jacksondr5
added a commit
that referenced
this pull request
Oct 10, 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
J5's features sent no product analytics, so we could not tell whether asks get answered, whether playbook runs finish, how people respond to Crew rosters, or how many agents work at once. This is the rest of the first cut agreed in #510;
j5.turn.startedlanded in #515.What changed
Four groups of events, one commit each. All carry counts, enums and durations only: no text, no IDs, no names.
j5.exchange.closedj5.playbook.run.started,j5.playbook.run.finishedj5.crew.proposal.resolved,j5.crew.launchedj5.fleet.snapshotHow each counts once:
client_request_idrecords nothing.The playbook and Crew services take the analytics service if the layer graph has one and record nothing otherwise (
j5/analytics/recorder.ts), so their many unit layers did not have to change. The server's graph always has it.j5.playbook.run.startedwas not in the first cut as listed in #510. Without it, a run that is abandoned never produces an event, so completion rate had no denominator.Not covered: a run cancelled because its owner thread was deleted (a bulk update with no per-run record), whether an Exchange crossed servers, and which providers a Crew's seats use (the provider instance id is a name the person chooses).
UI changes
The privacy page's event list gains five items.
Checklist
FORK.md(case text and file-table row) in this PR. None edited.docs/j5/product/upstream.md. Upstream's events are unchanged; J5 sending its own was decided in J5 analytics, later: UI-only moments and health measures #510.AGENTS.md). Server only. Each event is recorded in the service method every door reaches (UI, MCP tools, Crew archive), on every provider.docs/j5/product/and user docs rewritten where this changes them.docs/user/telemetry.mdand the privacy page.Claude Opus 5.5 (1M context), Claude Code in J5 Code.
🤖 Generated with Claude Code