READ-ONLY AGENT OPERATIONS
A contract for
the work in progress.
Publish the facts your coordinator has. Preserve what it doesn’t know. Any language can serve the same bounded snapshot.
Start with one publisher.
Run the helper from a Glimdock source checkout. Copy the minimal fixture, map approved metadata from your actual lifecycle callbacks or read API, and atomically replace a private snapshot file. Keep unavailable fields null.
git clone https://github.com/gkostadinov/glimdock.git cd glimdock python3 -m venv .venv-agent-ops .venv-agent-ops/bin/pip install -r tools/agent-operations/requirements.txt .venv-agent-ops/bin/python tools/agent-operations/api.py \ --snapshot /PRIVATE/STATE/agent-operations.json --port 8784
Open http://127.0.0.1:8784/?mode=file locally. The public website does not connect to that address. Your adapter supplies real timestamps and sequence values; serving a cached file must not make it fresh.
Read the complete publisher cookbook · Reference server source
A small, explicit contract.
| Collection | What it describes |
|---|---|
| sources / systems | Provenance, capabilities, TTL and scoped summaries |
| agents | Identity, state, host, task, heartbeat and optional usage |
| tasks / events | Ownership, lifecycle, parent tasks and concise metadata |
| channels / resources | Queues, receipts, measured latency and lock ownership |
| limits | Original counts and explicit truncation |
GET /v1/snapshotBounded normalized snapshotGET /v1/capabilitiesSources, read-only status and size budgetPOST and control requests return 405. The reference server’s mode query selects demo, file or configured hub data; another implementation can use its configured source directly.
Connect your display through the collector.
Add one optional agent_operations source to your private collector configuration. Use a source URL and separate key file, or an absolute snapshot_file path. A source failure leaves hardware collection available.
{
"agent_operations": {
"enabled": true,
"url": "https://agents.example/v1/snapshot",
"token_file": "/etc/glimdock/operations-source.key",
"poll_interval_s": 5,
"timeout_s": 3
}
}The ESP32 reads GET /api/v1/agent-operations at its existing collector address, with the same display reader key. The configuration/setup key does not grant reader access. GET and HEAD are supported; POST and execution controls are unavailable. An unconfigured or invalid source returns 503.
Source credentials stay in private files. HTTPS verifies certificates. Trusted remote HTTP requires the explicit allow_insecure_http: true option. The 48 KiB bound, scoped identities, original timestamps, null values and truncation rules apply to the production endpoint.
Keep the unknowns visible.
- Null is unavailable. A measured zero is still zero.
- Recency is not execution. An advisory heartbeat does not prove a model is running.
- Ownership needs evidence. File-hub running work requires an active task and matching claim.
- Freshness belongs to the source. Sample time, heartbeat time and HTTP receipt time are separate.
- Usage is measured. Cost needs currency and provenance; progress needs a reported percentage.
- Partial means partial. Preserve original totals and declare omitted records.
A2A state and OpenTelemetry token helpers are included as vocabulary mappings. They are not a full A2A client or OTLP receiver.
Monitor without exporting the conversation.
Include approved operational labels, states and measurements. Omit prompts, generated output, raw messages, transcripts, authorization notes, personal paths and secrets.
The reference server is loopback-only by default. A LAN bind needs a private read-token file; readers send an Authorization Bearer header. Use HTTPS or an authenticated reverse proxy remotely. Viewer keys and source credentials remain separate. The API cannot start, stop or approve work.
A useful brief for your coding agent.
Replace bracketed placeholders with your project details. Keep credentials out of the prompt. Each brief includes concrete acceptance checks and privacy boundaries.
Connect your framework
Map your source’s lifecycle and measured telemetry.
Use Download text if JavaScript is unavailable.
Extend the Rust collector
Add a source to the existing bounded production transport.
Use Download text if JavaScript is unavailable.
Extend the ESP32 workspace
Extend the shared LVGL view with bounded parsing and verification.
Use Download text if JavaScript is unavailable.
Review before release
Check state semantics, privacy, security and real capability claims.
Use Download text if JavaScript is unavailable.
Verify the evidence and the interface.
Exercise missing and zero measurements, source expiry, unknown states, ownership races, duplicate IDs, truncation, oversized feeds and provider failures. Use synthetic fixtures, check the metadata allowlist and confirm the exporter leaves its source unchanged.
python tools/agent-operations/test_api.py python tools/agent-operations/check_ui.py python tools/agent-operations/check_edges.py
Start the reference server first. Browser checks need Node/npm and Playwright; no Codex account is required. Physical firmware installation and touch evidence are separate from browser verification.
Complete setup and verification guide ↗