404human Projects Writing Build logs Learning Books Progress
Rust · Zola
zsh · 404human@dev:~ Tab complete · ↑↓ history · type help

AI Operations Layer: the build log

Telemetry that tells the truth about AI operations: one timeline per request, through model, tool and job steps, that shows where it failed, what was retried and which outcome is still uncertain, and shows missing data as missing. Rust collector, Rust SDK, SvelteKit console. Built in the open.

Entries
2 logged
Status
A0 done (final check after a second review), A1 partly; the first 1M-event run missed on a busy machine; a quiet run owed
Up next
A1 The million-event run, then A2: Durable Runner as the first real host
AI Ops Layer at a glance 2 entries
MilestoneNameEntriesState
A0 the spine 2 done
A1 one workflow, investigated 0 ● in progress
A2 first real host next upcoming
A3 controlled recovery next upcoming
A4 quality and adoption next upcoming

Latest · A0 · done: A0 done, again

tests per entry — 115 at A0–A1 → 141 at done
A0–A1 ██████████████████████████████████ 115
done  █████████████████████████████████████████ 141

AI Operations Layer is an add-on for applications that call AI models. When something goes wrong in one request (the model timed out, a tool returned junk, a background job ran twice), it shows that one operation as a single timeline: each step, what failed, what was retried, what it cost, and which outcome is still uncertain.

Its rule is that telemetry is evidence, not authority. If events went missing, the timeline says how many and where, instead of drawing a confident line through the hole. Later milestones add controlled recovery, but only through adapters that own the work, never a blind “run it again”.

A host application reports events through a Rust SDK or a plain HTTP and JSON contract. A Rust collector stores them in PostgreSQL, and a SvelteKit console draws them.

Where it stands

Started on 2026-11-16. The spine (A0) is done: two independent reviews and their fix rounds, and a final check that says so. A1 is partly done: a reference host with injectable faults runs the contract’s failure cases end to end, and the console, now on the shared Tailwind and shadcn-svelte kit, is checked in a real browser. The load evidence so far: two small ingest smokes from the first day; a 1,000,000-event retention sweep; a PostgreSQL restart drill with every acknowledged event stored; and the first 1,000,000-event ingest run, which missed its thresholds on a busy machine. A quiet-machine run is owed.

The code is public at akira-shirase-oss/ai-operations-layer.


A0 · the spine

A pure domain, a PostgreSQL event store, a bounded collector, a Rust SDK that never blocks its host, and a console that draws one honest timeline.

A0–A1
An honest timeline

Day one of the AI Operations Layer: a collector, a Rust SDK that never blocks its host, and a console that draws one operation as one timeline, with lost events shown as a hole instead of papered over. The failure cases pass end to end. An independent review found six ways the timeline could still mislead; they and six of its Mediums were fixed the same evening, not yet re-reviewed, and one fix's test is flaky. The load smokes missed their ingest target.

Read the full entry →

115
done
A0 done, again

The rest of the first review's list landed, the console moved to the shared design system, and A0 was called done. A second review reopened it with three new Highs, one of them a single NUL character that made the database throw away every event in its batch. Fixed, and the final check says A0 done. The million-event run is still owed.

Read the full entry →

141
A1 · one workflow, investigated — in progress

A reference host with injectable faults, the contract's failure cases as end-to-end tests, load smokes, and a pre-registered investigation drill.

A1 ● The million-event run, then A2: Durable Runner as the first real host — being built now
A2 · first real host

Durable Runner instrumented through its public APIs only, and broader investigation.

A3 · controlled recovery

Scoped, audited retry and reconcile through adapters that own execution, never a generic "run again".

A4 · quality and adoption

Measured overhead, retention cost, sampling and export, and estimated-versus-reconciled cost.