Observability — Delivery plan
Companion to SPEC.md. Each milestone is independently green, and its gate names the oracles in testing.md it must pass.
Observation is delivered beside the work it measures. Its first slice is built alongside the build graph's E3, whose actions and store it instruments, and its first records come with apps/ci M7b, the ci test cutover. Comparison and the gate come last, once history exists to calibrate them.
O0: Specification and spikes
- This specification, reviewed.
- Spikes S1, S3 and S5 before O1 starts, because they decide the counter, time-trace and spawn sources that O1 builds. S2, S4, S6 and S7 before the milestones that need them: O6, O3 and O5.
- The amendments this specification needs elsewhere, each in its owner's page:
- the build graph: BGA3 and BGA6 name the measurement directory, and BGN5 excludes the measurement output (OBD8), made with this specification; BGA8 adopts the task-id form of OBD2 at E2, and points to it;
apps/ci: §5.7's unavailable sampling is a run degradation, not aDegradedoutcome (invariant 1, OBD11), made with this specification;- the test runner's process model: TRP1 admits
sparkles:metricsandsparkles:metadata, and TRP16'sresultframe gainsusage(OBV2, OBT1), on the branch that holds that page.
Gate: the specification passes the documentation checks and an adversarial review; each spike's result is recorded in decisions.md; the amendments are accepted by their owners.
O1: The vocabulary and action accounting, with build graph E3
sparkles:metricswith the descriptors of SPEC §4–§9, and the test runner's catalog types moved into it (OBV1–OBV9). Event Horizon's quality type becomes the vocabulary's.- Event Horizon's supervised runs read accounting at the root's exit, before reaping, and attach counters before
exec, by the path S5 chose (OBA1–OBA3). - Queue wait and the executor's measurement table (OBA4–OBA5).
- The cache family in E3's store: outcomes, miss reasons, the eviction journal, line counts in the digest cache, and key and lookup times (OBA7–OBA9, OBC5).
- The measurement directory, and measurements stored with results as metadata (OBD8), except the Nix backend's separate output, which comes with E4.
Prerequisites: S1, S3 and S5; the TRP1 amendment, before the harness uses the vocabulary.
Gate: oracles 1, 2, 3 and 5 pass on Linux. E3's test-only driver prints each action's measurements for the repository's test selection.
Exclusions: no run record, no compile or link family, no history.
O2: Run records and reports, with apps/ci M7
- Local run records with the process, counters, stall, cache and run families and the facts (OBD1–OBD7, OBD9–OBD12, OBR1–OBR7, OBV6).
- The privacy rules and the scan (OBP1–OBP4).
ci perf show(OBQ1–OBQ2, OBQ6–OBQ8) and the--observeoption (OBO3).- The plain, TTY and CI-provider summaries (OBU1–OBU5), and the stall columns of
show(OBA6).
Gate: oracles 4, 10, 11 and 15 pass, and oracle 16 for show, --observe and the reporters. Every ci test run writes a record that passes the scan.
O2a: Test wall times for placements, with apps/ci M3a
The slice of O2 and O5 that OD21 names, delivered on the current test modes ahead of both:
- Run records holding each task's id, series key, outcome and
task.wall, with the source, host and run facts that exist before the build graph (OBD1, OBD4–OBD7, OBD11–OBD12, OBR7), and the privacy scan (OBP1–OBP4). - The ref and its README, signature checks in every reader, appending from
main-checks.ymlwith validation, and the lazy, offline-tolerant read (OBH1–OBH6, OBH8–OBH10).ci perf push, and an importer that seeds the history from earlier runs' job logs.
Exclusions: compaction (OBH7) waits for S6 and O5, and every family but task.wall, and ci perf show, history and the gate, wait for O1, O2, O5 and O6.
Gate: apps/ci M3a's gate. Oracle 12's signature and append steps pass against a local remote.
Progress: delivered, with M3a's gate met (apps/ci PLAN M3a).
O2b: CI cost and time to green, with a static site
The slice that OD23 names:
- Pull request records (OBJ4, OBJ6), appended at each landing (OBH4), and their privacy scan (OBP1–OBP3). The importer that seeds them from merged pull requests (OBQ9).
- The derived quantities of OBJ5, and
ci/runner-rates.json. ci perf siteand its views (OBW1–OBW3, OBW5), deployed to the Pages projectsparkles-perfafter each append and as a preview on pull requests that change it (OBW4). The layout is chosen from mockups.
Gate: oracle 18 passes. The deployed site shows every pull request merged since 2026-10-01, and the next landing's record appears on it with no manual step.
O3: Compile and link families
- The fork's time-trace summary mode (OBC8), with tests that fail without it, and the toolchain bumped to it; the reduced coarse trace for DMD (OBC7).
- Phases, the heaviest events and modules, and template counts (OBC1–OBC4).
- ELF object analysis and
ld.lldlink analysis (OBC6, OBL1–OBL3). --keep-traces(OBO4).
Prerequisites: S3 and S4.
Gate: oracles 6, 7 and 8 pass, oracle 14 passes with LDC and DMD, and oracle 16 for --keep-traces. A family that misses the budget ships off by default, and the decision is recorded.
O4: Test usage
- The
usagemember of the runner protocol'sresultframe, implemented in the harness (OBT1–OBT2). - Binary metrics and flakiness in the runner core's
ciclient, recorded in the run record (OBT3).
Prerequisites: apps/ci runs tests through the runner core (TRM5–TRM8 of the test runner's process model); the TRP16 amendment.
Gate: oracle 9 passes, including its older-runner and older-worker scenarios.
O5: History on refs/perf/data
- The ref and its README, the signing keys, the allowed-signers file and the environment that holds the CI key, and signature checks in every reader (OBH1–OBH2, OBH6, OBH8).
- Appending from CI on the mirror and rebuild paths, with validation (OBH3–OBH5), and CI job metrics (OBJ1–OBJ3).
ci perf push,fetchandhistory, with flakiness and no-op marks, the cached partial clone, and offline behaviour (OBH9–OBH10, OBQ4–OBQ5).- The compaction workflow (OBH7).
runGitgains what the fixed commit identity needs.
Prerequisites: S6 and S7; CI workflows running ci test (apps/ci M7).
Gate: oracle 12 passes against a local remote, oracle 16 for history, push and the CI job metrics, and oracle 17. S6's size model meets OBH7's bound. A week of main landings appends with no lost record.
O6: Comparison and the gate
ci perf compare, with comparability, the noise model, the threshold and thestalledmark (OBG1–OBG10, OBQ3, OBA6).- The gate in CI, report-only: it reports in the step summary and never fails a job.
- Calibration of OBG5's priors and floors from S2 and the accumulated history; then enforcement.
Prerequisites: S1, which fixes each environment's gate metric (OD20), and S2.
Gate: oracle 13 passes, oracle 16 for compare, and the gate is enforcing on every leg whose gate metric S1 established, the cpu-user gate once S2 has calibrated it.
O7: Platform parity and the Nix backend
- The macOS and Windows sources of SPEC §4 and §7, by the paths S5 verified.
- Mach-O and COFF object analysis, and
lld-link's reports (OD17). - The measurement output as a separate derivation output under the Nix backend, with build graph E4 (OBD8).
Gate: oracles 2, 3 and 8 on macOS and Windows, and oracle 10's Nix scenario.
Progress
| Milestone | Deliverable | State |
|---|---|---|
| O0 | Specification and spikes | in review |
| O1 | Vocabulary and action accounting | not started |
| O2a | Test wall times for placements | done |
| O2b | CI cost and time to green | in progress |
| O2 | Run records and reports | not started |
| O3 | Compile and link families | not started |
| O4 | Test usage | not started |
| O5 | History on refs/perf/data | not started |
| O6 | Comparison and the gate | not started |
| O7 | Platform parity and the Nix backend | not started |