GeezerVison is showing github.com — id: F12.6 audit log and OpenTelemetry export · Issue #1063 · developing-today/code
id: F12.6 audit log and OpenTelemetry export #1063DescriptionF12.6 — Audit log and telemetry
From the Phase 12 plan (.opencode/plans/phase-12-platform-flexibility.md, workstream B):
A structured audit log of administrative actions and provider use, with OpenTelemetry export. Builds on F11.7 (host metrics, #553).
Exit: every admin frame produces an audit line, and a test replays the log to the final grants.
Coordination (2026-10-26 reprioritization, per Drew): every id roadmap item now has its own GitHub issue, and priority encodes the order: (1) the path to Phase 12 — now + priority/high; (2) Phase 12 itself — next; (3) Phase 13 and long-term ideas — priority/low. The dashboard mirrors this list (org Project "Developing Today" #4, Area id-train; Grist Program roadmap, Area id). If this item turns out to be blocked, wrong, or superseded, park or close it with a note rather than letting it stall the queue — dropping an issue is always allowed; silently stalling is not. Activitydeveloping-today commented on Oct 27, 2026 added app/idPackage/app: id (pkgs/ or apps/ in this repo) nextOrg Project gate: queued next — orchestrator adds to the board effort/lLarge: multi-day or open-ended; expect staged check-ins on Oct 27, 2026dezren39 commented on Nov 1, 2026 dezren39 commented on Nov 1, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane B shift
- Session / ID: queue task 2336 (triage)
- Found via: queue claim
- Task: Triage verdict for id: F12.6 audit log and OpenTelemetry export #1063 (F12.6 audit log and OpenTelemetry export).
- Expectation: Verdict with fresh-HEAD citations + follow-up route — both delivered below.
- Links: slice-1 fix task 4885 (queued, ungated); packet: hidden_files/packet-1063-code-fix.json
Triage verdict: CONFIRMED — no structured audit log, no OTEL export; foundation already landed, route is a sliced slice 1
Evidence (fresh, current main b56ccda5c, 2026-10-31 21:06 CDT, laptop primary origin/main):
pkgs/id/Cargo.toml:86-87: tracing + tracing-subscriber (env-filter) only — no opentelemetry dependency, no OTLP exporter anywhere in pkgs/id.
- "Audit" in
pkgs/id/src is journal annotation only: world/handle.rs:576/736 and world/actor.rs:86/133 record a moderator/builder participant "for the audit journal"; world/core.rs:295/299 are audit-only journal comments. There is no audit record type, no sink, and nothing replayable.
- The auditable surface is enumerable: the world actor's admin commands in
pkgs/id/src/world/actor.rs (granted-set change ~L144, ceiling replace ~L150, runtime profile ~L155, AdminScheduleAt/AdminCancelSchedule, isolation, cross-world force), and provider-use accounting already exists as CapUsage in world_caps.rs.
Dependency state: the foundation this builds on — #553 (F11.7 host metrics, Prometheus endpoint, tracing spans) — is CLOSED. Nothing gates slice 1.
Route — sliced, because the full F12.6 is effort/l:
- Slice 1 enqueued as queue task 4885 (kind small_fix, packet
packet-1063-code-fix.json, ungated): one structured audit record (timestamp, world, authority/actor, action, outcome — never credentials) for every admin command, accepted or refused, through a single sink; provider-use records (grant / denial / first-use grant) from CapUsage in the same shape; and the issue's own exit test in miniature — replaying a scripted session's audit log reconstructs the final grants and ceiling exactly. The PR states the sink choice (reserved tracing target vs dedicated audit journal) and why.
- Slice 2 (not yet enqueued): OpenTelemetry/OTLP export of these records. Enqueue it when slice 1 lands — exporting a log that does not exist yet is not a coherent packet.
This issue stays open (tracker for both slices) with queue/queued for task 4885. dezren39 commented on Nov 16, 2026
Agent note — task 16826 done: PR #10718 merged; OTEL remainder is task 17489 (lane code-d, 2026-11-16)
State: done (fixed_merged, split remainder)
dezren39 commented on Nov 16, 2026 🤖 Agent note · duplicate-work salvage (task 16826, lane any-a)
While this lane held task 16826 and was implementing F12.6, PR #10718 (branch queue/16826-1063-audit, from an earlier claim of the same task) merged at 2026-11-16T13:33:33Z with the session admin-frame audit + AuditRecord v2 (target, correlation id) half of F12.6. Per the duplicate-PR protocol, I diffed my branch (PR #10764) against merged main before closing anything:
- Superseded by id-worlds: session admin-frame audit + AuditRecord v2 (target, correlation id) (#1063) #10718 (dropped from F12.6 (remainder): retained audit log, OpenTelemetry export (#1063) #10764): session-layer denial audit lines (theirs covers hub + world admin frames with accepted/refused outcomes), correlation id + target on the record (theirs: schema v2, process-monotonic ids), the pre-join
FormResult exhaustiveness fix (theirs adds its own arm).
- Unique to F12.6 (remainder): retained audit log, OpenTelemetry export (#1063) #10764 (kept, rebased onto current main): the retained audit log (
WorldAuditLog), the OpenTelemetry OTLP/JSON export (acceptance criterion 2 — not present on main), the replay_grants library fold over the retained log, and the retained-log replay exit test.
PR #10764 now contains only the unique remainder; #1063 stays open until it lands.
dezren39 commented on Nov 16, 2026 🤖 Agent note · done — F12.6 complete (task 16826)
All four F12.6 acceptance criteria now hold on main:
- Every admin frame produces exactly one audit line — actor-level records (pre-existing) plus PR id-worlds: session admin-frame audit + AuditRecord v2 (target, correlation id) (#1063) #10718's session-layer audit (
audit_admin_frame, hub + world frames, accepted/refused) with AuditRecord v2 (target, correlation_id).
- OpenTelemetry export — PR F12.6 (remainder): retained audit log, OpenTelemetry export (#1063) #10764 (merged 2026-11-16T14:13:20Z, merge commit f208708): the actor's records are retained in a shared
WorldAuditLog (world/audit.rs, the F11.7 metrics sharing pattern) and export as an OTLP/JSON logs payload via WorldService::audit_otlp_json().
- Replay test — pre-existing tracing-capture replay tests, plus PR F12.6 (remainder): retained audit log, OpenTelemetry export (#1063) #10764's
retained_audit_log_replays_to_the_final_grants over the retained log itself.
- Dependents unblocked — queue task 4888 (issue id: F12.14 portals — cross-world messaging by mutual grant #1068) and queue task 9599 (issue id: implement Phase 13 F13.7 client-side capability providers (design #789) #5532) were gated on this task; F12.6 is landed, so both may proceed.
Tests: cargo test -p id-worlds --lib --features sandbox,test-utils — 844 passed, 0 failed on the merged head's tree (one earlier single-test flake did not reproduce in two subsequent full runs). Closing this issue.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|