GeezerVison is showing github.com — id: F13.7 step 6 — end-to-end hardening + rollout docs (#5532) by dezren39 · Pull Request #11004 · developing-today/code
Conversation
dezren39
commented
Nov 17, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Step 6 (the final step) of #5532: end-to-end hardening of the F13.7 client-side capability provider path, plus the rollout runbook. Builds on step 5, PR #10925 (merged). Fleet queue carrier: task 20063. Please do not merge on my behalf — the coordinator merges.
Hardening findings and fixes
-
Client refusal codes were journaled verbatim. The broker turned a client reply's refusal string into the guest result event's reason unchecked. A reply is client input at the host trust boundary, and that reason lands in the durable journal — any joined session's client implementation could journal arbitrary text (a local path, file content, prose) as a "refusal reason". Fix: the broker now passes only stable-shaped codes (lowercase snake_case, ≤ 64 bytes — the shape of every adapter refusal constant) and substitutes the generic provider_refused otherwise (stable_refusal_code in provider_broker.rs). The host audit outcome is unchanged (it never carried the client code).
-
Restarted refusals of client providers were missing from the host audit trail. Requests already listed when a world reopens are refused actor_denied/restarted by the world actor before the broker, so the F12.6 trail had a gap exactly at reopen, while the design requires every attempted provider use to be recorded. Fix: ProviderBroker::note_restarted_refusal records the decision (outcome denied, reason restarted, args digest only) and the actor's stale-wants branch calls it for client-side manifests. Host capabilities keep their existing accounting.
-
Exercised and confirmed (no code change): the host gate is three layers, and the docs now say so. The new end-to-end test initially failed every read with outside_ceiling: a world ceiling + grant is not enough, because the provider's manifest default (Excluded) also keeps it out of the server ceiling, which defaults to the default ceiling. The operator must name it in serve --world-allowed-caps first. The runbook documents this ordering explicitly (it is the most likely setup mistake).
Also confirmed by exercise: the legacy host CATALOG view and default ceilings are untouched (pinned by the existing id-caps tests); nothing is registered, offered, or executed unless the shell opts in; replay never re-runs local I/O (restarted wants refuse, never route).
New coverage
crates/id-native-shell/tests/provider_file_read_e2e.rs — 6 tests assembling the whole path against a live host (real registry manifest, real broker, session routing via run_session_with_providers, the real adapter + FileReadExecutor, a temp file root): happy path through both gates with audit-content assertions; the live refusal matrix (traversal, absolute path, symlink escape, missing, directory, 40 KB file); world gates refusing before any client frame; no-local-opt-in unavailability and cross-session offer isolation; the disclosure gate holding end-to-end via the raw registration route; revocation at either gate.
- Host audit is asserted through its public emission surface (the
id::audit tracing target carrying each record's JSON), because AuditRecord is crate-private to id-worlds; this adds tracing/tracing-subscriber as dev-dependencies only of id-native-shell.
- Broker unit tests now exercise the real
client.file.read manifest through the broker (arg schema validation: missing/non-string path, > 8 KiB args; the manifest's 32 KiB result bound at 32 768/32 769 bytes) — previously only a fake manifest was brokered in tests — plus the refusal-code sanitization matrix and the restarted-refusal audit record.
- Actor test: a reopened
client.file.read want is refused restarted and never routed, while a fresh want in the same pass still reaches the broker.
Docs
doc/2026-11-17_runbook_id5532_f13-7_client_file_read_rollout.md — the two-gate opt-in (server ceiling at serve → world ceiling + grant via id world caps → local ID_SHELL_FILE_READ_ROOT), disclosure semantics (returned bytes become journaled world data; acknowledgment mandatory), bounds and path rules, revocation at either gate, an operator verification checklist, and the guest-visible refusal-code table.
Verification
cargo test -p id-caps --lib: 138 passed
cargo test -p id-worlds --lib: 745 passed (baseline 740 on this branch point; +4 broker, +1 actor)
cargo test -p id-native-shell (under nix develop): lib 37, live_session 1, parity 3, provider_file_read_e2e 6, transcript 3 — all passed
cargo fmt --check on the touched crates: clean.
cargo clippy --all-targets --no-deps on id-caps / id-worlds / id-native-shell: no findings in any file this PR touches. A workspace-wide clippy run currently fails on pre-existing errors in untouched files (id-core/src/transport_advertisement.rs, id-caps/src/declaration.rs tests, id-store/src/event_types.rs) — identical without this change and left out of scope.
- Environment note: the shared
pkgs/id target dir mixes rustc 1.99.0/1.99.1 artifacts (E0514 collisions), so the shell suite was built in a dedicated target dir under nix develop.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ❌ Failed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
❌ Failed 2026-11-17T05:47:11.530199Z We couldn’t complete this review. Comment @codex review to try again. |
16c201e |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 17, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|