Repository navigation
Observe sessions and recorded usage in the Janitor dashboard - #26
Merged
Merged
Conversation
Ticket 04: teammates browse ongoing agent sessions and open a session's facts with execution state and reason, meaningful activity, recorded token usage, delivery warnings and projection freshness. - Migration 0028 adds the team-wide `sessions` live channel with invalidation triggers on the session projection, session identity, thread associations, delivery health, catch-up freshness and membership. Intent commits with the change; catch-up and delivery cron wakes forward it. - `SessionObservation` composes one read model over Janitor's session identity, the runner-projected facts and the delivery records: keyset-paged list ordered working first, then activity, then session id; compact detail with pending inputs, latest error and pending delivery. Usage is shown as input plus cache read/write and output plus reasoning, unavailable until the first snapshot. - Accepted input is meaningful activity and moves an idle or failed session to working; a terminal admission rejection marks it failed; runner holds are blocked with their reason. - Routes under /api/v1/sessions sit behind Access and active membership. The live channel rechecks membership at the boundary and removal closes open subscriptions. - The web dashboard at /sessions reuses the live socket, reconnect and fallback pattern, coalesces invalidations during a read, preserves loaded pages on refresh and keeps last known data with a stale indication. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Summary
Testing
vp checkpassed with warnings and no errors.