Repository navigation
Description
Problem
The structured audit log landed in #4017 (for #1063, main 2aca793a34) records two read-only queries — IsolationInfo and PolicyInfo — as admin actions with outcome accepted, even though neither command carries any caller identity. That is the exact falsified-attribution defect #4017 itself fixed for the other four participant-readable queries.
In pkgs/id/src/world/actor.rs at 2aca793a34:
WorldCommand::IsolationInfohandler (~line 1905): callsaudit_admin_result("admin", "IsolationInfo", …, true)and always records outcomeaccepted.WorldCommand::PolicyInfohandler (~line 1957): callsaudit_admin_result("admin", "PolicyInfo", …, true)the same way.
By contrast, the handlers for Metrics, CapsInfo, ExecutionProfileInfo, and ManifestState in the same match deliberately emit no record, with comments stating the rule: these queries are readable by joined participants, the handlers carry no caller identity, and recording the read as admin "would falsify the audit actor" / "participant-readable queries are not administrative actions and stay out of the audit trail." The pinning test participant_readable_queries_emit_no_admin_audit_record (pkgs/id/src/world/tests.rs) covers only those four commands — IsolationInfo and PolicyInfo were missed, so the inconsistency is untested and regressable.
Why it matters
- The audit trail lies about who acted.
WorldHandle::isolation()andWorldHandle::policy()(pkgs/id/src/world/handle.rs:400, :483) take no authority/identity parameter — any holder of the handle can issue them, exactly likeMetrics/CapsInfo. Recording them under actoradminmanufactures admin activity that never happened, in a log whose stated purpose is replayable, trustworthy attribution of admin actions (id: F12.6 audit log and OpenTelemetry export #1063). PolicyInfois on a hot internal path. The cross-world gateWorldHub::authorize(pkgs/id/src/world_hub.rs:302, :308) callspolicy()twice for every cross-world access check, same- or cross-world reads/writes alike. Every such check now appends a spuriousadmin / PolicyInfo / acceptedrecord, flooding theid::audittarget with noise that drowns real admin actions and breaks the "exactly one record per admin command" invariant the audit replay test asserts.- Replay/review tooling cannot distinguish a genuine admin read from an internal gate check or a participant read, undermining the refusal/provider-use dispositions feat(id): structured audit log of admin actions and provider use (#1063) #4017 added.
Evidence (verified 2026-11-08, laptop, main 2aca793)
-
Read of
pkgs/id/src/world/actor.rson current main:IsolationInfoandPolicyInfohandlers emitaudit_admin_result("admin", …, true);Metrics,CapsInfo,ExecutionProfileInfo,ManifestStatehandlers emit nothing and carry the explanatory comments quoted above. -
git show 2aca793a34(the feat(id): structured audit log of admin actions and provider use (#1063) #4017 landing commit) shows the same split introduced in one diff: audit calls added to the two Info handlers, no-audit comments added to the other four. -
Probe (laptop worktree
~/git/fleet/probe-audit-info, test added toworld::tests::audit_testsmirroringparticipant_readable_queries_emit_no_admin_audit_recordbut issuingIsolationInfo+PolicyInfo): a capture test in theid::audittarget, issuing only the two identity-less queries, captured exactly two records on current main:{"action":"IsolationInfo","actor":"admin","outcome":"accepted","parameters":{"isolation":"Isolated"},"schema_version":1,"world_id":"audit-test",…} {"action":"PolicyInfo","actor":"admin","outcome":"accepted","parameters":{"policy":"WorldPolicy { isolation: Isolated, cross_world_write: false, … }"},"schema_version":1,"world_id":"audit-test",…}i.e. two
admin/acceptedaudit records for commands that carry no caller identity at all — where the four sibling queries capture zero. -
Dedup: no open or closed issue covers audit attribution for
PolicyInfo/IsolationInfo(searched 2026-11-08). id: F12.6 audit log and OpenTelemetry export #1063 is the parent feature; Archive disposition: archive/janitor-2026-11-07/10653 #7370 covers only the pre-existing audit-test compile failure, a different defect.
Fix
Remove the audit_admin_result calls from the IsolationInfo and PolicyInfo handlers (matching the other four queries, with the same explanatory comment), and extend participant_readable_queries_emit_no_admin_audit_record to issue all six commands so the whole class is pinned.
Acceptance criteria
-
IsolationInfoandPolicyInfocommands emit noid::auditrecord, likeMetrics/CapsInfo/ExecutionProfileInfo/ManifestState. - The participant-readable-queries audit test covers all six query commands and fails if any of them emits a record.
- Genuine admin mutations (
SetIsolation,SetFileScope,UpdateCaps, …) still emit exactly one audit record each; the audit replay test stays green. -
cargo test -p id --lib audit_testsgreen.
Activity
developing-today commentedon Nov 8, 2026
🤖 Agent note · filed
2aca793a34: an audit-capture probe issuing onlyIsolationInfo+PolicyInfocaptured exactly twoid::auditrecords, both actoradmin, outcomeaccepted— for commands that carry no caller identity. The four sibling queries (Metrics/CapsInfo/ExecutionProfileInfo/ManifestState) emit none, per feat(id): structured audit log of admin actions and provider use (#1063) #4017's own fix.~/git/fleet/probe-audit-info(laptop)developing-today commentedon Nov 8, 2026
🤖 Agent note · picked up
audit_admin_result("admin", …, true)calls from theIsolationInfoandPolicyInfohandlers inpkgs/id/src/world/actor.rsand extendparticipant_readable_queries_emit_no_admin_audit_recordto all six participant-readable queries.creator-b/7553-audit-info-attribution(laptop worktree~/git/fleet/probe-audit-info)developing-today commentedon Nov 8, 2026
🤖 Agent note · done
IsolationInfo/PolicyInfoand pinned all six participant-readable queries in the audit test.5e307e975e;cargo test -p id --lib audit_tests6/6 green on the branch and again on merged main;cargo fmt --checkclean for both touched files; the fix re-read on origin/main (handler at actor.rs:1905 now carries the no-audit comment and no audit call). Issue auto-closed by the PR's Fixes marker. No queue packet (guarded self-solve, §4).5e307e975e