Observability pages

A set of local, read-only pages that turn what agents leave behind (git operations, transcripts, the CAM journal, the task board and run trackers) into answers about who did what, what it cost, and what is waiting on whom. One stdlib Python server builds them on demand and never writes anything.

  • Agent observability
  • Token cost accounting
  • Harness engineering
  • Human in the loop
What it is
A family of single-file HTML pages served by bin/git-timeline serve, each fed by its own JSON endpoint, plus the separate taskman site for the board. An admin home page lists every surface and says whether it is up.
What it isn't
Not a hosted dashboard and not a metrics stack. There is no database, no collector and no network exposure: the server binds the loopback address, answers GET for a fixed list of paths, and nothing is ever published. It shows no money figures and no weekly-limit figures.
Why it exists
Agents run thousands of git commands and spread a single orchestrated run across a dozen chats and subagents. Without these pages the only record is raw transcripts, which the runtime prunes, and the only way to answer "which chat pushed this?" or "what did wave 2's gate cost?" is forensics.
~70kgit operations in the log
68run trackers in this repo
20paths the server answers
10–60 srebuild window per payload

How it works

Hooks do the recording while agents work; the server only reads. hooks/git-ops.py runs after every shell call, tokenizes it with shell quoting rules so that git inside a commit message or a grep pattern does not count, and appends one JSON row per real git invocation to a per-user log. It registers for the failure event too, because a non-zero shell exit fires a different hook event and a failed push is exactly the row worth keeping. bin/git-timeline backfill imports older calls from transcripts, keyed by tool-use id so a re-run adds nothing.

bin/git-timeline serve then loads the page files once at start-up and builds each JSON payload lazily, behind its own lock and its own time-to-live, so a slow build (GitHub's PR list, a cold transcript scan) never blocks a fast one.

loopback only · GET only · read-only git-ops log + repos one row per git call · PRs via gh Transcripts usage numbers · tool-call sizes CAM store journal · sessions · inbox Board + run trackers events.jsonl · tracker.json git-timeline serve one lock + TTL per payload Git timeline ops, branches, pushes Runs token spend per lane CAM page chats and untagged changes Run · Task · Mow graph one unit, every source data.json mow-data.json cam-data.json unit-data.json
Each page has its own payload and its own rebuild clock. The CAM payload rebuilds at most every 15 seconds and the spend payload every 60; a page that is slow to build never holds up another. The Run, Task and mow graph pages join several sources at once, which is why they sit last.

The pages

PageQuestion it answersData source
Admin homeWhich admin surfaces exist, and which are up right now?Probes each server by identity, never by port (bin/admin_view.py)
Git timelineWhich chat ran which git command, which branch it produced, and who pushed what?git-ops log, each repo's graph and reflog, GitHub PR lists through gh
Runs (mow token spend)Which lane, gate reviewer or fix round spent a run's tokens, and which chat owned the run?Transcripts reduced to usage and sizes (bin/mow_spend.py), each run's tracker.json
CAM pageWhich chat changed shared state, and which of those changes still owes a note saying why?Each repo's CAM store, plus its board and LESSONS.md for project records (bin/cam_view.py)
Run pageFor one orchestrated run: its chats, commits, board moves, CAM lines, lessons and documents togetherTracker, spend payload, git log limited to the run's owned paths, board, CAM, lessons (bin/unit_view.py)
Task pageFor one board task: who opened it, who worked it, what it cost, and its historyBoard events joined with the spend payload and CAM (bin/unit_view.py)
Mow graphWhich planned stem waits on what, and which chat to prompt next?The prerequisite evaluator in taskman.mow.prereqs, each stem's owning chat, CAM liveness (bin/mow_graph_view.py)
Roadmap and Board (taskman site)What features, tasks and decisions exist, and where does each task sit on the kanban?The board's event log, rebuilt on every request
Reading guidesWhat does each tile, chip and bar on a page mean?Rendered from docs/workflow/reading-the-*.md

bin/git-timeline html also writes the Git timeline as a self-contained snapshot that opens from disk with its data embedded, for when no server is running.

Design principles

The pages follow the operator-UI rules in PRODUCT.md, written for the live run tracker. The other pages are reviewed against the same rules, and one open item notes that the Git timeline still breaks two of them (a second typeface and outline pills).

  • Status-honest. A surface the admin page cannot check says can't check and why, rather than going green or disappearing. A page that is planned but not served shows as not built, with the plan that will build it.
  • Colour carries state and nothing else. Flow is geometry: horizontal is sequence, vertical is parallelism.
  • Missing data stays missing. An unmeasured value renders as an em dash, never a fabricated number. The Runs page refuses to show a money or weekly-limit figure at all, because transcripts cannot give one and a wrong figure is worse than none.
  • Self-contained. One file per page, no build step, so a page can be copied next to a run and still work.

AI engineering practices it demonstrates

  • Cost attribution per agent role. Spend is split into build lanes, gate reviewers, fix rounds, other agents and the orchestrator's own overhead inside the run's window. Each model reply is counted once even when streaming wrote it over several transcript lines (deduplicated by message id).
  • An honest definition of spend. Spend is new input plus cache writes plus output. Cache reads sit in their own column and are never added in: a long chat re-reads its context every turn, so its cache reads often run tens of times its spend and would drown every real difference between lanes.
  • Sizes, never content. The spend payload carries character counts, names and chat titles only, no prompts, commands or tool output. A server error returns the exception type only, because the message could quote transcript or journal text.
  • Output handling as untrusted text. Every journal string, note and commit message is inserted as text, never as markup.
  • Agent-written records parsed like a shell would. The git hook tokenizes with shell quoting rules and counts only a word in command position, so git inside a heredoc or a commit message is not logged as a git call.
  • Identity over port. Every server answers an identity probe. A port held by something else is stepped over, never taken or killed, and a server already running is reused rather than doubled. bin/serve-detached starts servers outside any chat's process group, because a server started as a chat's background task dies with that chat while every other chat still believes it is up.
  • Incremental, cache-keyed builds. Transcripts are reduced once per file and cached by size and modification time; the cache key includes the bytes of the code that produced the rows, so editing the parser invalidates it.

Capabilities

CapabilityDetail
Branch journeyBranches leave and rejoin main as lanes; PRs, worktrees, pushes and destructive operations are drawn on them. Hovering a commit names the chat that made it and the one that pushed it.
Run journeyOne row per run; each wave lists build, gate and fix agents with their spend. A bar is one active stretch, so a resumed agent's idle gap is not painted as work.
Untagged changesThe CAM page counts commits, pushes, resets and destructive operations whose chat never said why.
Cross-linksCAM chat rows link to their spend; Git timeline rows carry a CAM badge; run pages link to the chats that ran them.
Live refreshPages poll on the same beat as their payload's rebuild window. The board pages poll every 3 seconds with caching disabled.
Host-header checkThe taskman site answers only loopback host names, which closes the DNS-rebinding route from a hostile web page.

Benefits

The main one is that a parallel, multi-chat way of working stays legible to the one person running it. "Which chat pushed this?", "why is wave 2 expensive?" and "what is this stem waiting on?" each have a page that answers them in a glance, from records the agents wrote without being asked.

The record also outlives the runtime's transcript pruning: the git-ops log is append-only and kept forever, and backfill can recover older calls while their transcripts still exist.

Limits

Where it loses

The server reads every page file once, at start-up. A page change that has shipped is invisible until someone restarts the shared server, and nothing tells you it is stale. On 2026-10-08 a checkpoint asking for exactly that restart had been open for three days.

  • One machine, one user. Everything reads per-user files on the local disk. There is no team view, and the pages assume a macOS-style open for --open.
  • Token counts, not cost. Tool-call figures are estimated from text length, and one shell call's output is shared evenly among the git commands it ran.
  • Attribution has gaps. A quiet commit made before the hook recorded shas, or one run from a folder named by a shell variable, is matched by message or time and labelled so. Most agents in runs from before the current lane-naming convention land under other.
  • History windows. Push and pull history reaches back about 90 days, because git expires the reflog. The CAM page shows archived journal lines from the last 30 days only (ARCHIVE_DAYS = 30 in bin/cam_view.py).
  • Edits outside git are invisible. Every page is built on git operations, transcripts and journals; two chats editing the same file without committing show up nowhere.
  • Known defects. An interrupted journal rotation makes the CAM page show a line twice, and its rows carry only a time of day, with no date. The run page runs git while holding its lock, so one slow repository stalls every run and task request.
  • Two identity conventions. The timeline server and the taskman site answer different identity endpoints, so every probe has to know both.

Roadmap

ItemWhy it mattersStatus
Deduplicate rotated CAM lines and date the rowsToday a rotation interrupted mid-way double-counts, and a 30-day list with no dates misleadscorrectness
Run git outside the unit-view lock, with a timeoutOne slow repo currently stalls every run and task pagecorrectness
Tests pageTest runs, flaky tests and a dead-test audit, served from the same server; the admin page already lists it as not builtplanned
Runs page attributionPlace legacy agent names instead of other; tighten the heuristic that decides which shell calls were writesbacklog
Standardize the admin serversOne identity check and one start convention across timeline, tracker and taskman sitebacklog
Diary pageA browsable view of the project diary; listed as not builtidea
Browser acceptance suite for the board pagesThe checks that verified the board pages lived only in session scratch space, so nothing in the repo guards against regressionsbacklog

Sources

  • bin/git-timeline: backfill, snapshot and serve; route table, port picking, payload TTLs (DATA_TTL = 30, SPEND_TTL = 60, CAM_TTL = 15, UNIT_TTL = 30, GRAPH_TTL = 10, PR_TTL = 600).
  • hooks/git-ops.py: the live git-operation hook.
  • bin/mow_spend.py, bin/cam_view.py, bin/unit_view.py, bin/mow_graph_view.py, bin/admin_view.py, bin/serve-detached.
  • bin/git-timeline.html, bin/mow-timeline.html, bin/cam.html, bin/run.html, bin/task.html, bin/mow-graph.html, bin/admin-panel.html.
  • taskman/taskman/site/serve.py and taskman/taskman/site/static/: Roadmap and Board pages.
  • docs/workflow/reading-the-git-timeline.md, docs/workflow/reading-the-mow-timeline.md, docs/workflow/reading-the-cam-page.md: what each page shows and cannot tell you.
  • PRODUCT.md: design principles for operator surfaces.
  • Counts read on 2026-10-08: rows in the git-ops log (69,723), docs/plans/*/dispatch/tracker.json (68). Task board: open items for the CAM page, unit views, Tests page, Runs attribution and server standardization.

Facts as of 2026-10-08. Counts and constants read from source on that date. No server was started to write this page.