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.

  1. Push facts. The managed pre-push hook (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 with ciTracking: 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).

  2. Managed checkouts. Container sessions on a Host do not run devctrl hooks. Each new session has its own clone whose origin is the project remote, so the Host reads the push log Git itself keeps: every successful push updates refs/remotes/origin/<branch> and appends a reflog entry with Git's fixed message update 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), maps refs/remotes/origin/<branch> to the pushed branch and relays them with POST /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.

  3. 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.

  4. 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).

  5. 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).

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