Title: id(world/audit): IsolationInfo and PolicyInfo queries are audited as admin actions — the falsified-attribution class #4017 fixed for the other four queries · Issue #7553 · developing-today/code · GitHub
Open Graph Title: id(world/audit): IsolationInfo and PolicyInfo queries are audited as admin actions — the falsified-attribution class #4017 fixed for the other four queries · Issue #7553 · developing-today/code
X Title: id(world/audit): IsolationInfo and PolicyInfo queries are audited as admin actions — the falsified-attribution class #4017 fixed for the other four queries · Issue #7553 · developing-today/code
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....
Open Graph 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 neit...
X 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 neit...
Opengraph URL: https://github.com/developing-today/code/issues/7553
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(world/audit): IsolationInfo and PolicyInfo queries are audited as admin actions — the falsified-attribution class #4017 fixed for the other four queries","articleBody":"## Problem\n\nThe 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.\n\nIn `pkgs/id/src/world/actor.rs` at `2aca793a34`:\n\n- `WorldCommand::IsolationInfo` handler (~line 1905): calls `audit_admin_result(\"admin\", \"IsolationInfo\", …, true)` and always records outcome `accepted`.\n- `WorldCommand::PolicyInfo` handler (~line 1957): calls `audit_admin_result(\"admin\", \"PolicyInfo\", …, true)` the same way.\n\nBy 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.\n\n## Why it matters\n\n- **The audit trail lies about who acted.** `WorldHandle::isolation()` and `WorldHandle::policy()` (pkgs/id/src/world/handle.rs:400, :483) take no authority/identity parameter — any holder of the handle can issue them, exactly like `Metrics`/`CapsInfo`. Recording them under actor `admin` manufactures admin activity that never happened, in a log whose stated purpose is replayable, trustworthy attribution of admin actions (#1063).\n- **`PolicyInfo` is on a hot internal path.** The cross-world gate `WorldHub::authorize` (pkgs/id/src/world_hub.rs:302, :308) calls `policy()` twice for **every** cross-world access check, same- or cross-world reads/writes alike. Every such check now appends a spurious `admin / PolicyInfo / accepted` record, flooding the `id::audit` target with noise that drowns real admin actions and breaks the \"exactly one record per admin command\" invariant the audit replay test asserts.\n- **Replay/review tooling cannot distinguish** a genuine admin read from an internal gate check or a participant read, undermining the refusal/provider-use dispositions #4017 added.\n\n## Evidence (verified 2026-11-08, laptop, main 2aca793a34)\n\n- Read of `pkgs/id/src/world/actor.rs` on current main: `IsolationInfo` and `PolicyInfo` handlers emit `audit_admin_result(\"admin\", …, true)`; `Metrics`, `CapsInfo`, `ExecutionProfileInfo`, `ManifestState` handlers emit nothing and carry the explanatory comments quoted above.\n- `git show 2aca793a34` (the #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.\n- Probe (laptop worktree `~/git/fleet/probe-audit-info`, test added to `world::tests::audit_tests` mirroring `participant_readable_queries_emit_no_admin_audit_record` but issuing `IsolationInfo` + `PolicyInfo`): a capture test in the `id::audit` target, issuing only the two identity-less queries, captured exactly two records on current main:\n\n ```json\n {\"action\":\"IsolationInfo\",\"actor\":\"admin\",\"outcome\":\"accepted\",\"parameters\":{\"isolation\":\"Isolated\"},\"schema_version\":1,\"world_id\":\"audit-test\",…}\n {\"action\":\"PolicyInfo\",\"actor\":\"admin\",\"outcome\":\"accepted\",\"parameters\":{\"policy\":\"WorldPolicy { isolation: Isolated, cross_world_write: false, … }\"},\"schema_version\":1,\"world_id\":\"audit-test\",…}\n ```\n\n i.e. two `admin`/`accepted` audit records for commands that carry no caller identity at all — where the four sibling queries capture zero.\n- Dedup: no open or closed issue covers audit attribution for `PolicyInfo`/`IsolationInfo` (searched 2026-11-08). #1063 is the parent feature; #7370 covers only the pre-existing audit-test compile failure, a different defect.\n\n## Fix\n\nRemove 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.\n\n## Acceptance criteria\n\n- [ ] `IsolationInfo` and `PolicyInfo` commands emit no `id::audit` record, like `Metrics`/`CapsInfo`/`ExecutionProfileInfo`/`ManifestState`.\n- [ ] The participant-readable-queries audit test covers all six query commands and fails if any of them emits a record.\n- [ ] Genuine admin mutations (`SetIsolation`, `SetFileScope`, `UpdateCaps`, …) still emit exactly one audit record each; the audit replay test stays green.\n- [ ] `cargo test -p id --lib audit_tests` green.\n","author":{"url":"https://github.com/apps/developing-today","@type":"Person","name":"developing-today"},"datePublished":"2026-11-08T07:27:01Z","url":"https://github.com/developing-today/code/issues/7553"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:331a869c-7001-d037-4928-8d5a063c2b44 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB5A:107A1:69FF90:8A28D6:6B06265E |
| html-safe-nonce | cba6a6a5d07115795e6b0c765f5950d298e687506421bd5d2f2bbb9a3c9686c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjVBOjEwN0ExOjY5RkY5MDo4QTI4RDY6NkIwNjI2NUUiLCJ2aXNpdG9yX2lkIjoiMzExNjg2MzEwMDIyNDQ3MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d0f76dbd927ac720460977d3e220d1a6e48c4e966d8f853f85eb2294b556dc5b |
| hovercard-subject-tag | issue:6268712387 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7553/issue_layout |
| twitter:image | https://opengraph.githubassets.com/822e7cf84ce7c370559db31efaeee745eed3e57959b576da477a58f35111da0c/developing-today/code/issues/7553 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/822e7cf84ce7c370559db31efaeee745eed3e57959b576da477a58f35111da0c/developing-today/code/issues/7553 |
| og:image:alt | 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 neit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | developing-today[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width