GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 17, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

  1. 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).

  2. 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.

  3. 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
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.

All reactions
repo-worker-tmp-code-b
feat(id): F13.7 step 6 — end-to-end hardening + rollout docs (#5532)
16c201e
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 05:47
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 17, 2026
id: implement Phase 13 F13.7 client-side capability providers (design #789) #5532
Closed
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Explain Change →

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 2a1fe2f into main Nov 17, 2026
1 check failed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/20063-step6 branch November 17, 2026 05:48
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

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.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.