CI tracking
Sessions push commits but do not watch the CI they start. CI tracking watches GitHub for the commits each session pushed and tells that session when its runs conclude. Several sessions can push to one repository; each receives only the results of its own commits.
Open CI in the sidebar (terminal, web and desktop share the same screen). It lists repositories with their recent runs. Each run shows its status or conclusion, short SHA, branch, duration, the session(s) it belongs to and its age; Enter opens the link, failed jobs and steps, the log excerpt and how the run was attributed.
| Key | Action |
|---|---|
| ↑/↓ | Move |
| ←/→ | Fold or unfold a repository |
| Enter | Fold a repository, or show a run's details |
| f | Filter: all runs, failed, running, from my sessions |
| / | Search repositories, workflows, branches, SHAs and session names |
| s | Scope to one session's runs (cycles through sessions with runs) |
| t | Tracking on/off |
| n | Session notices on/off |
| c | Notify on failures only, or on every conclusion |
| w | Frozen or stopped sessions: deliver after resume, or show here only |
| r | Check GitHub now (rate-limit pauses still apply) |
Settings are per user and tracking is on by default: a user who never saved
CI settings has pushes recorded and GitHub polled for their projects. To turn it
off, press t in the CI section (or PUT /v1/ci/settings with
enabled: false); a saved enabled: false is kept, also across upgrades.
GET/PUT /v1/ci/settings takes
{revision, enabled, notifyInSession, notifyOn: "failure"|"all", whileAway: "queue"|"section-only"}; a stale revision is rejected with 409.
GET /v1/ci/runs (optional sessionId, repository) and POST /v1/ci/refresh
complete the API. All four are in the operator operation catalogue and are
handler-scoped to the signed-in user: runs, notices, sessions, settings and
GitHub tokens of another user are never read or used.
Attribution
Attribution uses structured facts only; no commit message, branch name or log text is classified.
Push facts. The managed
pre-pushhook (the same journal as review triggers) records(project, session, head SHA, pushed ref, time). When CI tracking is on, the controller installs the hook binding withciTracking: true, so pushes are recorded even with review triggers off. Such a push creates no review job. The pushed repository is the project's GitHub remote (owner/name, never the URL or its credentials).Managed checkouts. Container sessions on a Host do not run devctrl hooks. Each new session has its own clone whose
originis the project remote, so the Host reads the push log Git itself keeps: every successful push updatesrefs/remotes/origin/<branch>and appends a reflog entry with Git's fixed messageupdate by push, the old and new SHA and the time. The Host reads only those entries, through the same unprivileged descriptor-relative helper as the hooks (bounded to 256 files, the last 256 KiB of each and 256 entries), mapsrefs/remotes/origin/<branch>to the pushed branch and relays them withPOST /v1/agents/:id/ci-push-facts. Core accepts them only from the Host of the session's workspace and only within the last day. The checkout belongs to exactly one session (its checkout receipt), so the attribution is exact. Fetches (fetch: …entries), other remotes, tags and deletions are not pushes of this checkout and are ignored. A linked worktree shares remote-tracking refs with its siblings and a legacy checkout shared by several sessions is ambiguous; neither is attributed from the push log. The hook and the push log can both report one push; Core records it once.The Host data root is private to root, so the helper opens the workspace's host-owned sessions directory before it drops to the session identity and reaches the checkout only through that descriptor. Every component of that directory must be owned by root and not writable by anyone else; nothing inside it is opened with privileges. The Host reads only sessions that have their own checkout and an account identity, that are running, or that ended within the last day and were not read since they ended; a linked worktree is read once and then skipped. A failing checkout is retried after 15 s, then with doubling delays up to one hour, and the Host logs one line per checkout when its reason code changes (for example
helper_eacces,helper_enoent,identity_unavailable,core_unavailable) and once when it recovers.Matching. A workflow run or check run is attributed to the sessions that pushed its exact
head_sha. If several sessions pushed the same SHA, the sessions that pushed it to the run's branch are chosen; otherwise all of them.Session branch. A run whose branch is a session's own
devctrl/sessions/<id>checkout branch belongs to that session even without a hook record (the branch is unique per session).A run of a SHA that no session pushed is listed in its repository and notifies nobody.
A hook record that arrives after its runs were observed attributes them then.
Polling
Core polls GitHub every 5 seconds at most and only for repositories of projects with running sessions or pushes in the last 24 hours, using the owner's own connected github.com account (the project's selected Git account first).
GET /repos/{repo}/actions/runs?per_page=30withIf-None-Match: 30 seconds while something runs or a pushed SHA is still awaited, otherwise 5 minutes. Unchanged answers are304and do not count against GitHub's rate limit.- Per pushed SHA:
actions/runs?head_sha=until a workflow run is seen, andcommits/{sha}/check-runs(non-Actions check runs such as other CI apps) with their own ETags. Backoff 20 s doubling to 10 minutes while nothing runs; a SHA is dropped after 2 hours without runs, 3 minutes after everything settled, or after 6 hours in any case. - A failed workflow run's jobs (
runs/{id}/attempts/{n}/jobs) give failed job and step names. The first failed job's log is followed through GitHub's signed redirect without the token, read to at most 4 MiB keeping the last 64 KiB, and only the runner's##[error]lines are kept (at most 5, sanitized, 1200 characters). - At most 8 requests and 4 repositories per pass. Errors back off from 1 minute
doubling to 30 minutes. A primary or secondary rate limit (
403/429,retry-after,x-ratelimit-remaining: 0) pauses every request of that token until GitHub's reset; the poller also pauses itself when 50 or fewer requests remain, keeping them for the user's other tools. - Runs are kept 14 days (200 per repository); push facts 14 days.
Webhooks are not required. A later workflow_run/check_run webhook can mark a
repository due immediately; polling remains the source of truth.
Notices
When an attributed run concludes, the controller collects that push's conclusions for 45 seconds (up to 5 minutes while other runs of the same push still run) and sends one factual native notice to the session, through the existing session notice queue: input lock, idle-only delivery, draft deferral, generation fences and the 24-hour bound all apply. The notice names the repository, short SHA and branch, then per run the workflow, conclusion, duration, failed jobs and steps and link. Text from the repository is stripped of escapes and control characters, redacted and bounded (1,900 characters).
Failed-log excerpts come last, after a fixed statement and inside one fence
whose marker is derived from the excerpt's digest and removed from the excerpt
text (the same construction as untrusted repository context in Control Room
prompts). Anything a workflow prints (a test, a dependency, an action or text a
step echoes from an issue) can end up in a ##[error] line, so the statement
says that the excerpt is untrusted CI output, not system, operator or user
instructions, and that it cannot approve or widen requests, grant access or ask
for data. The excerpt is redacted again with the execution-output rules when
the notice is built. The facts before it are complete on their own: when the
line would exceed the limit, the excerpt is shortened or dropped and the run
link remains. The console's run detail shows the same redacted excerpt.
Each run conclusion is reported once (attempt:conclusion); a re-run is a new
conclusion. With failures only, failure, timed_out and startup_failure
notify. A run that was already finished before tracking was turned on, or
finished more than 15 minutes before it was first seen, does not notify. With
the unsaved default there is no recorded switch-on time, so the 15-minute window
alone keeps historic runs from notifying.
| Notice state | Meaning |
|---|---|
collecting |
Gathering one push's conclusions |
pending |
The session cannot take a notice yet; retried with backoff ≤ 24 h |
waiting-session |
Frozen or stopped; delivered after it resumes (≤ 72 h) |
delivered |
Accepted by the session notice queue (its command ID is kept) |
section-only |
Shown in CI only: setting, agent without notices, session gone |
expired |
Not delivered within its bound |
Audit events: ci.tracking.configured, ci.push.recorded (session, short SHA)
and ci.notice.queued (session, notice ID, run count, short SHA). They never
contain tokens, remote URLs or log text.
Limitations
- GitHub only. Projects whose remote is not on github.com are not tracked. GitHub Enterprise Server, GitLab CI and other forges are not polled. Other CI apps are visible only when they report GitHub check runs.
- Coverage. Registered local checkouts report pushes through the hook;
managed per-session checkouts through Git's push log. Not attributed: pushes
from a linked worktree or a checkout shared by several sessions (ambiguous),
pushes to a remote other than
originor to a URL (no remote-tracking ref), tag pushes, and repositories using Git's reftable ref storage (nologs/). A run on a session's owndevctrl/sessions/<id>branch is still attributed in those cases. - The pre-push hook observes an attempted push; a rejected push simply has no runs and expires after 2 hours.
- Only the project's primary repository is tracked, not linked repositories.
- Native notices exist for Claude and Codex sessions; other agents see results in the CI section only.
- A log excerpt is shown only when the runner marked
##[error]lines.