Repository navigation
docs(id): decide capability-change diff semantics (#5999) - #7630
Conversation
Record the comparison semantics #5959's capability-change notices consume: the user-meaningful capability class table over the world_caps registry vocabulary (19 registered names plus the fs/net classes #5958 S12 reserves), the subsumption/collapse rules, and the diff-trigger rules. Trigger iff a class in the world's declared set (requested union platform bound) is not covered by the class set the user last accepted. Removals, within-class moves, messageless capabilities, optional additions and used-set changes are silent; a used set that outgrows the declaration is surfaced as an author declaration defect instead of a notice. Grant-on-use is named as a seam the notice does not cover.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 22 minutes. View limit details
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. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 318da1af81
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| | `fs.sandbox` | "Read and write files in this world's own storage." | sandboxed file read+write (S12) | subsumed by `fs.read.arbitrary` | | ||
| | `fs.read.arbitrary` | "Read any file this server can read." | arbitrary file read (S12) | subsumes `fs.sandbox` | |
There was a problem hiding this comment.
Keep sandbox writes independent of arbitrary file reads
If a user has accepted only fs.read.arbitrary, adding fs.sandbox is silent under this subsumption relation even though the latter introduces write authority that the accepted read-only permission never disclosed. Maximalisation also drops the sandbox read/write warning when both classes are requested, hiding that authority on initial approval. Keep these classes incomparable, or split sandbox reads and writes so arbitrary read subsumes only the read component.
Useful? React with 👍 / 👎.
| ``` | ||
| classes(S) = { table(n).class : n ∈ S } // unknown names → `unknown` | ||
| messages(S) = maximal( classes(S) \ {cap.none} ) // maximal under ≼ | ||
| N = messages(requested ∪ platform_bound) |
There was a problem hiding this comment.
Exclude optional-only capabilities from the trigger inputs
When an update adds an optional capability to either input set whose class was not previously accepted, this formula includes it in N and triggers re-approval, despite rule 6 explicitly requiring optional additions to remain silent. The contract supplies a per-name optional flag, but neither classes nor messages consults it, and no filtering step is defined. Define the required-on-connect subset before computing N, including how optional flags interact with platform_bound, so the provided algorithm implements the stated exclusion.
Useful? React with 👍 / 👎.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Closes #5999.
Design record only — no code, no behaviour change. It pins the comparison semantics that #5959 (capability-change notices on reconnect) consumes, so the notice design works against a decidable rule instead of re-deriving one.
What it decides
requested ∪ platform_bound, mapped to capability classes. Not the used set, notgranted/effective.pkgs/id/crates/id-core/src/world_caps.rs:346-491), plus reserved classes for the vocabulary id: design: capability model — requested vs discovered-used sets, registry listing, custom-compiled platforms #5958 S12 requires (sandboxed fs, arbitrary file read, arbitrary network out). Class assignment is registry data (a manifest field), never inferred from name prefixes orRequiredScope; message text stays client-side so a server cannot word its own warning.fs.read.arbitrary ≽ fs.sandbox,net.out ≽ net.host.*); messageless capabilities never enter the comparison; acceptance is by class, not by name.(B, N, ≼)without a host.Evidence
Every current-state claim is tied to code at
origin/mainb6bd188624.grep reconnectunderpkgs/id/srcfinds only the replication snapshot path, so no diff/notice code exists to conflict with.History: re-triage task 12425 (2026-11-08) confirmed #5999 real and current; prior triage task 10365 (2026-11-05) reached the same verdict and enqueued nothing.
Links
planning/architecture/README.md(design records) anddoc/README.md.Filed by the OpenChamber scheduled queue lane (worker
repo-worker-code), task 12873.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.