GeezerVison is showing github.com — id(world): F11.7 host metrics, Prometheus endpoint and tracing spans · Issue #553 · developing-today/code
id(world): F11.7 host metrics, Prometheus endpoint and tracing spans #553DescriptionWhat and why
Counters and histograms for actor queue depth, command latency, journal append/fsync latency, checkpoint duration, session count and frame bytes, shown in id world stats and as admin-token-protected Prometheus text, plus tracing spans per actor command. There is no way to see queue depth, latency or journal cost on a running node, and the audit log (F12.6) and fair scheduling (F12.10) build on these numbers.
Source
Current status
Not started. id world stats exists (pkgs/id/src/cli.rs:1701) but only prints module, capability and profile state as JSON. grep -rn 'prometheus\|histogram\|queue_depth\|fsync_latency\|command_latency' pkgs/id/src finds nothing; only per-call fuel metrics exist (commands/world.rs:734).
Acceptance criteria
- Counters and histograms exist for actor queue depth, command latency, journal append and fsync latency, checkpoint duration, session count and frame bytes
-
id world stats shows them
- A Prometheus text endpoint serves them and refuses requests without the admin token (tested)
- Each actor command runs in a
tracing span
Size
L
Prerequisites
Activityadded effort/lLarge: multi-day or open-ended; expect staged check-ins app/idPackage/app: id (pkgs/ or apps/ in this repo) meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Oct 26, 2026dezren39 commented on Oct 26, 2026 Intake review
Fleet-monitor intake pass (2026-10-26). Body already carries a full ## Acceptance criteria section, so this pass is label normalization plus a liveness check — no body edit.
Verified live on main e3467560 (2026-10-26): git grep -i 'prometheus' origin/main -- pkgs/id/src finds nothing, and none of the named histograms (queue depth, command latency, journal append/fsync latency, checkpoint duration, frame bytes) exist. id world stats remains the module/capability/profile print the body describes. Still live, exactly as filed.
Related: prerequisite #540 (splitting world.rs / world_session.rs / cli.rs) is still open and unenriched — instrumentation touches all three files, so landing this first means re-instrumenting after the split; sequencing after #540 is cheaper. Consumers waiting on these numbers: #557 (per-world budget observability) and the F12.6/F12.10 work named in the body.
Risks / notes: the admin-token refusal on the Prometheus endpoint is a security acceptance bullet — it needs its test in the same PR, not a follow-up. Histogram bucket choices for fsync/command latency should match how the numbers will actually be read (p99-oriented buckets).
Suggested approach: sequence after #540; add the counters/histograms at the actor and journal layers, surface them in id world stats, then add the token-protected Prometheus text endpoint with its refusal test, and wrap actor commands in tracing spans last. added nowOrg Project gate: active priority — orchestrator adds to the board and removed on Oct 27, 2026dezren39 commented on Oct 27, 2026 Reopened by queue worker (task 1305): PR #1437 merged F11.7 slice 1 only (metrics core + stats). Two acceptance criteria remain unimplemented — the admin-token Prometheus endpoint and the per-command tracing spans — and are enqueued as the slices 2+3 follow-up task. Closing keyword in the slice-1 PR closed the whole issue prematurely. dezren39 commented on Oct 27, 2026 Correction to the follow-up plan (queue worker, task 1305): the slices 2+3 follow-up could NOT be enqueued — the queue's fix dedupe key is one-per-issue (repo-health:v1:fix:…:issue:553 was consumed by the slice-1 task 1305 and enqueue returns that done task; the draft slice packets' :slice-N suffixes fail validation). The combined packet is preserved at hidden_files/packet-553-slices23.json and a SET-REMAINDER entry is in backlog-devtoday-code.md. This issue keeps queue/queued as the work order for the fleet monitor's safety-net enqueue. Slices remaining: (2) Prometheus text endpoint gated by admin token + refusal test; (3) tracing span per actor command + span-capture test. dezren39 commented on Oct 27, 2026 🤖 Agent note · handed off
- Agent: fleet monitor (repo-fleet-monitor)
- Session / ID: repo-fleet-monitor run 2026-10-27 12:23 CDT — Duty 1 safety-net reconciliation
- Found via: monitor reconciliation
- Task: safety-net reconciliation — slice 1 merged (PR feat(id): F11.7 slice 1 — host metrics core + world stats surfacing (#553) #1437, 42eae63, task 1305 done) and this issue was reopened for slices 2+3, but it carries
queue/queued with NO live task, and the monitor cannot enqueue the follow-up with a standard packet.
- Expectation: operator repair (see below); remaining scope is the acceptance criteria beyond slice 1 (stats display, Prometheus endpoint, tracing spans).
- Links: task 1305 (done, PR feat(id): F11.7 slice 1 — host metrics core + world stats surfacing (#553) #1437 merged), triage task 1261 (done), system limitation tracked in fleet(queue): repo-queue.py — add list/inspect, surface dedupe hits, document priority direction #1289
Why it is stuck: task 1305's own progress said to enqueue the combined slices 2+3 follow-up "with freed fix dedupe key", but the key is not freed — verified this run: enqueue with the fix dedupe key returns done task 1305 and with the triage key returns done task 1261, creating nothing. This is the same one-per-issue dedupe limitation the worker flagged at 17:10Z. Until the queue gains a requeue/revive path (#1289), the slices 2+3 follow-up needs operator repair to get a live task; flagged prominently in the monitor's run summary.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|