Skip to content

About

Progress reporting for Tau Ceti: per-roadmap status snapshots and append-only progress logs, decided by script and written by AI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

99 Commits

Folders and files

Repository files navigation

TauCetiProgress

Progress reporting for Tau Ceti: what has actually been achieved on each roadmap, written for a human to read in a minute.

Each roadmap directory in TauCetiRoadmap carries two generated files:

  • STATUS.md — a snapshot, rewritten whole on each update. It says which parts of the roadmap are done and sketches the frontier, headed by the commit it describes.
  • PROGRESS.md — an append-only log. Each section covers one window of merged PRs as a few holistic paragraphs, emphasising named theorems rather than listing every PR.

New PROGRESS.md sections are announced in the Tau Ceti > Progress logs Zulip topic.

Why this repo exists

The rubrics-and-machinery split of TauCetiReview, applied to reporting: the prompts and the tooling live here, the output lands in TauCetiRoadmap, and TauCetiWorker drives it.

The design rule is that a model only ever writes prose. Every decision — whether an update is due, which roadmap it covers, which PRs are in the window, and what mathematics actually landed — is made by tested Python before any model starts, and the git and pull-request work afterwards is done by tested Python too.

The commands

tauceti-progress due                      is an update due? (one API call, no clone)
tauceti-progress plan   --roadmap-dir DIR pick the roadmap and the PR window
tauceti-progress facts  --plan FILE       what declarations actually landed in the window
tauceti-progress check  --plan FILE ...   hold the model's two bodies to the prompt and the facts
tauceti-progress apply  --plan FILE ...   write the files, open the PR (resumable)
tauceti-progress announce --section FILE  post a new section to Zulip (idempotent)

due is the only one that runs often; it exits 75 ("no progress") when nothing is due, matching the worker's convention. plan runs at most once a day.

Choosing the roadmap

plan uses the busiest strategy by default: it waits until no report has landed anywhere for 8 hours, then takes the roadmap with the most PRs in its window, if it has at least 10.

plan --strategy threshold decides per roadmap and has no project-wide cadence, for a caller that polls for work. With N the PRs in a roadmap's window and T the days since its last report landed (since its README was added, if it has never been reported), a roadmap qualifies when N > 0 and one of these holds: N + T > 10 (--threshold); it is archived under Completed/; or it is not yet assessed, meaning it has no report, or its report carries no coverage header bound to the README as it now stands, for it and each sub-roadmap. The merge gate's six-hour interval per roadmap is applied as well. Among the roadmaps that qualify the unassessed go first, then the largest N + T. An open report holds its area for 72 hours whoever opened it, as long as its head repository still exists. T is read from the roadmap checkout's history at --roadmap-ref (default HEAD), which must be complete.

--table FILE (threshold only) writes every roadmap's standing as JSON, whether or not one qualifies: chosen, next_qualifies_at, to_sha, and one row per roadmap with area, prs, days, score, assessed, complete, qualifies, qualifies_from and note. When plan exits 75, next_qualifies_at is the earliest time a roadmap qualifies with the PRs it has now or an open report stops holding its roadmap (a held row's qualifies_from is when its report goes stale), or null when only new PRs, or a report closing, can make one qualify.

--skip-area AREA (repeatable, either strategy) keeps a roadmap from being chosen. --label-cache FILE (either strategy) keeps each area's labelled PRs between runs: a later run makes one search for what closed since the previous one, and the full labelled histories are read again once a day. The search misses a label added to a PR that had already closed, so the chosen roadmap's history is read in full before its plan is written: one more GraphQL query per plan, a page per 100 labelled PRs.

build_plan also plans from a bound NativeSource, whose content and roadmap repositories are both on Forgejo; the command line binds none. Both strategies, the table, --skip-area and the label cache work with one. Forgejo cannot search by close or update time, and lists by creation time, which an import can set out of number order, so there each run reads the complete labelled listing, as an uncached plan does. The cache file names its forge and repository, so a file written for one is never read for another. Two things are not supported: content on Forgejo with the roadmap on GitHub, and apply of a plan made from a bound source, which it refuses.

Checking the prose

check --plan FILE --facts FILE --status-body FILE --section-body FILE --roadmap-dir DIR renders the report as apply would, without committing anything, and then holds it to what the prompt asks: 750 and 300 words, three paragraphs, the two status headings. It refuses a documentation link that was not copied from the facts or the previous report, one whose declaration is not in the plan's pinned documentation facts, a layer the previous report assessed that is now unassessed against the same README, a report that assesses no layer, and a bare URL whose final ? or ! the rendered link would drop. Findings are printed as FAIL: lines and the exit code is 1; the writing model can run it and repair what it reports. --no-links skips the lookup in the pinned facts.

The window cursor is a SHA, on the docs-tracking branch

A window is the half-open commit range (from_sha, to_sha] on TauCeti's docgen branch, where from_sha is the to_sha of the previous PROGRESS.md section.

docgen nominates the most recent commit on main whose API documentation has been published, and the window ends at the commit the published documentation actually reports — read from the site itself, since the deploy is independent and the branch can sit ahead of it. Ending at the branch tip instead would record a cursor covering work the report never described, and because the next window starts after that cursor, the work in between would never be reported at all.

The cost is latency: a report describes the project as of the last published docs build rather than the tip. That is the right trade for a document whose whole purpose is to be read, and the header records the exact commit, so nothing is misdated.

Links are not computed by this project at all, and neither are declaration names. Both are read from compiler-derived documentation facts, which carry the exact name, kind, canonical link, docstring, source file and line range. git blame over those line ranges is what decides whether a declaration belongs to the window.

There is deliberately no Lean parser here. Qualifying a name correctly means resolving namespace against section, end, open ... in and _root_, and many real declarations (projections, constructors, deriving output) are never written in the source at all. An approximation gets most names right, which is the worst outcome available: the wrong ones are indistinguishable from the right ones, and a link built from a wrong name is a plausible dead link. PR numbers come from the squash-merge commit subjects in that range and are attributed by their roadmap/<Area> label. Label queries include all closed PRs: bors squash merges close PRs without setting GitHub's merged flag, while native merges also appear in the closed query. Only PR numbers found on the first-parent history enter a report, so closing a PR without landing it does not count as progress.

One kind of PR enters a report from outside its window. A mainline commit that names its PR only in a Source-PR citation was invisible to readers that looked at subjects alone, and reports written by them moved the cursor past it. A PR labelled for the roadmap, landed by such a commit at or behind the cursor, and listed in no section is carried into the next section's prs; the plan names it under carried, one row per such commit with its landing date, and facts attributes its declarations.

Wall-clock time is used only for display. A cursor made of timestamps would be wrong: a worker clock running fast advances it past PRs whose merge times then fall before the stored cursor, and those PRs are never reported at all.

Documentation generation retries

plan and facts exit 76 (EX_DOCS_GENERATION_CHANGED) when the documentation positively changed under a plan: the live bundle no longer holds the exact bytes a plan pinned and no verified local copy remains. Python callers receive progress.docs.DocsGenerationChanged with full expected and observed commit IDs. The stderr diagnostic starts with <stage>: documentation-generation-changed: (or facts-replan-required: when the pinned copy is gone and the live bundle cannot replace it) and includes both commits when known. Neither command writes its output artifact on this result. Existing artifacts are preserved; consumers must check the exit code before using them.

Consumers should retry plan and facts together, at most twice after the initial attempt. Start no writing model until both succeed. Persistent churn is an infrastructure wait for the same unadvanced report obligation, without spending a repair attempt or report cadence window. Never retry paid prose because facts changed. Keep prepared publication artifacts and the published cursor intact.

Other failures are not this retry signal: unavailable documentation (including a site serving no bundle) is an infrastructure wait (77), and an invalid factual window is an error (1). Missing deleted modules remain allowed. The exact planned commit, history, declaration and publication guards still apply.

Documentation facts bundles

Each plan fetches <docs base>/facts.json.gz once. The base is TAUCETI_DOCS_URL (default https://taucetiproject.github.io/TauCeti/docs, the Pages site TauCeti deploys). The TauCeti producer deploys that single gzip file beside SOURCE_SHA and the HTML it describes, and documents the format. The bundle is the only source of documentation facts. A site without one (HTTP 404), a bundle with an unsupported schema, a fetch error, corrupt gzip/JSON, invalid provenance, or incomplete required coverage stops the run as an infrastructure wait (77); none ever becomes empty facts.

A plan's documentation object saves the documentation origin, documented source commit, compressed-byte SHA-256, generation identity, and module coverage. Gzip integrity, schema, compiler-derived names/kinds/ranges, provenance, source/window history and required module coverage are validated. Canonical URLs and docstrings come from the bundle; attribution still uses Git blame at its exact source commit. Current HTML may have advanced.

The site serves only the current bundle. Before emitting a selected plan, Progress retains its exact compressed bytes, keyed by documentation origin, source and hash. plan --out FILE also writes a hash-named sibling bundle and records its relative bundle_file name in the pin, then atomically writes the JSON plan. Both writes flush the file and parent directory. Keep that bundle with the plan when moving or retaining report artifacts. Facts verifies the sibling first, then the shared cache, without reading the live site when a valid copy is available.

The shared cache uses TAUCETI_FACTS_CACHE when set; otherwise it uses $XDG_STATE_HOME/tauceti-progress/facts or ~/.local/state/tauceti-progress/facts. Preserve this state across mechanical attempts. Discovery fetches anew, and plans that end not due do not retain bundles. Shared entries can be reclaimed after confirming that every retained plan referring to them has its own verified sibling; keep each report's plan and bundle together for its lifetime. No automatic cleanup deletes pins.

If both local copies are missing or corrupt, facts may fetch the same URL again, accepting it only when its hash and source still match. A complete changed bundle, unsupported live schema or HTTP 404 requests exit 76: the #25 bounded mechanical retry makes a fresh plan for the same unadvanced obligation before any writer starts. Old/new source and hash diagnostics are included when available. Transport errors, truncated/corrupt transfers, new-generation coverage errors or retention failures exit 77 for an infrastructure wait. Invalid saved pin/history, contradictory coverage, impossible pinned ranges, or a plan with no documentation pin exit 78 for safe recovery; configuration mistakes exit 1. No failure changes a report cursor or deletes its artifacts.

Prepared reports publish against their original source/window identity without consulting live facts. The producer fixture is the producer's real output.

Production use requires the deployed site to serve the bundle, and a Worker Progress pin with bounded exit-76 mechanical retries (including facts-replan-required), exit-77/78 recovery handling, and retention of bundle_file siblings with plans. A nonempty history migration policy additionally needs retention of history_migration_file siblings and policy-aware saved-work identity. Empty-policy plans need no additional file. Until the bundle is served, plans wait (77). Use an existing naturally due report to verify prepare/publish through the normal Worker path. Do not create a synthetic paid round, reset a cursor, or delete retained facts for acceptance.

The coverage header

A status snapshot may carry a second machine header beside tauceti-status:v1:

<!--tauceti-status:v1 {"roadmap":"EllipticCurves","to_sha":"…","ts":"…"}-->
<!--tauceti-coverage:v1 {"layers":[{"id":"Layer 0","remaining":"Weil reciprocity","state":"partial"},{"id":"Layer 1","state":"done"},…],"readme_sha":"…","roadmap":"EllipticCurves","to_sha":"…"}-->
# Status: EllipticCurves

It is the report's verdict on each layer of the roadmap, in a form a script can read; the prose says the same things, but nothing can aggregate prose across forty roadmaps. The consumer is the TauCeti site's Progress page (scripts/roadmap_progress.py in the TauCeti repository).

Wire schema. roadmap is the status header's area, or Area/Child for a sub-roadmap (below); to_sha equals the status header's; readme_sha is the SHA-256 of the README the layers were read from; layers is a non-empty list (at most 64) of {"id", "state", "remaining"?} with id a short label (Layer 3, Lane G, L0A), state one of done, partial, untouched, unassessed (the material said nothing), and remaining an optional one-line note of at most 200 characters with no angle brackets. No other keys anywhere. Keys are sorted and the JSON is compact; files.require_coverage is the one definition, and both the worker and the gate run it.

Trust boundary. The model supplies only the assessments, as JSON inside a fenced ```coverage block at the end of its status prose. Code supplies everything else: plan records the README's layer headings (Layer / Lane / Part / Stage, or L0A-style labels) and readme_sha in the plan; apply removes the block, validates the payload against the schema, checks it names every listed layer exactly once and nothing else, and writes the header; the gate treats the headers as part of the canonical prefix (the lines after the status header, nowhere else) and re-validates them. The gate proves the header's shape, never its truth, and cannot check readme_sha (it never checks out the roadmap repository): the header is a claim, not a certificate.

Missing block. A README with no layer headings gives a plan with no layers and a report with no header. When the plan lists layers, the worker refuses a body with no block, just as it refuses a block that is malformed, not JSON, or does not fit the plan: a new report changes the report hash, which retires the site's hand transcription of the old report, so publishing it headerless would turn assessed layers into unassessed ones. The model always has unassessed for a layer it cannot judge. The gate is deliberately more lenient and still accepts a status file without the header, which is what every report written before the header existed looks like.

README hash. readme_sha binds an assessment to the specification it was made against: layer ids alone do not, since a layer's requirements can change under an unchanged heading. The consumer refuses a header whose hash does not match the README it reads and shows those layers as unassessed with that reason.

Umbrella areas. An area whose directories include sub-roadmaps (RepresentationTheory's twelve) is one labelled area with one report, so that report is the only account of its children. A sub-roadmap is a directory directly below the area with a README.md and a Suggested.lean, the consumer's rule. plan lists each one with layer headings under sub_roadmaps, with its Area/Child id, its README path and its own readme_sha; the model reads those READMEs and answers with a JSON object keyed by roadmap id instead of an array; and apply writes one coverage header per sub-roadmap, each bound to its own README, after the area's own header (if its README has layers) and in ascending order of name. The gate holds each to the same schema, requires Area/Child with an alphanumeric child directly below the status file's own area, caps them at 32, and treats all of them as part of the canonical prefix. A consumer that does not know sub-roadmap headers ignores them: their roadmap never equals a row's own name.

Rollout. Merge here, then bump the two pins in TauCetiRoadmap's progress-*.yml workflows and the worker's PROGRESS_REF to the same SHA, together: the generator and the gate must run one version. Reports written before the bump simply have no header.

Leaving the hand transcriptions. Today the site reads layer states from a hand-transcribed file in the TauCeti repository (scripts/roadmap_coverage.json), each entry bound to the exact report it was read from. Nothing is backfilled: an area's transcription stays valid until its next report, which after the bump carries the headers (the worker refuses one without them when there are layers), and the site then reads those instead and the transcription is retired. That holds for the RepresentationTheory children too, all at once, at the umbrella's next report, provided the site reads sub-roadmap headers by then. Each entry can be deleted from the transcription file once its roadmap's report carries a header.

Trust boundary

STATUS.md and PROGRESS.md are machine-owned, and their prose is not security-validated.

The merge gate proves the shape of a generated update — its paths, its cursor, that it is a byte-exact append, and that what lands is exactly the validated bytes of those two files, written into current main. It cannot prove that the prose is true. Anyone may open a Tau Ceti PR whose description contains prompt-injection text; once that PR merges legitimately, its description reaches the writing model.

The mitigations reduce the risk and are not claimed to remove it: the model is grounded in mechanically-extracted declaration names rather than author prose, PR bodies are delimited and size-capped, reserved tauceti-*:v1 markers are rejected in model output, and Zulip mentions are defused. Read these two files as a machine's summary, not as reviewed roadmap content.

The blast radius is two markdown files AND a Zulip message. Every merged section is posted to Tau Ceti > Progress logs automatically, so accepted prose reaches an audience outside the repository. The post is treated as data -- mentions and bare #123 linkifiers are defused, the message is size-capped, it links both the appended log and the current roadmap status, and it is idempotent on a stable per-window id -- but it is a second sink and the threat model has to say so.

Licence

Apache-2.0.

Project bindings are shared with TauCetiTools. Pass --conf PATH_OR_HTTPS_URL to select the content/roadmap repositories, source root, publication destinations, review policy and optional archive. For example:

tauceti-progress due --conf ./tauceti.toml

The manual setup documents credentials and generated workflow callers. An absent optional destination in a configured project stays disabled. Invocations without configuration retain the Tau Ceti defaults.

The gh transport retries only recognized reads. API flags are consumed with their values before classifying a request: fields switch REST requests to POST, and a GraphQL document starting with query may also contain a selected mutation. Retryable GraphQL uses the literal graphql endpoint and one raw query field, with no mutation/subscription text, file-based query or extensions. Typed query fields (including file and repository-placeholder expansion) are not classified as retryable reads. This is a conservative retry guard, not a GraphQL parser. Unknown forms retain the existing publication journal and reconciliation path. Commands and payloads passed to native gh remain unchanged.

About

Progress reporting for Tau Ceti: per-roadmap status snapshots and append-only progress logs, decided by script and written by AI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages