Repository navigation
id-caps: role definitions as first-class versioned world config (#8299) - #14044
Merged
Merged
Conversation
Ports the #13234 implementation onto the reconciled policy point (#13202 deleted agent_policy.rs into mcp_policy.rs after the PR branched): RoleDefinition/QuotaClass/Replenishment/ReviewPolicy as serde world config, versioned RoleRegistry upsert, explicit grant/list/revoke with every mutation (refusals included) recorded as RoleConfigEvent, observer/participant/archivist-editor as plain editable starter definitions, and PolicySession::refresh_ceiling so a lowered ceiling refuses the newly out-of-ceiling action on the next act() frame check. WorldScopes gains the serde round-trip the role ceiling embeds in. Verified: id-caps lib suite 257 passed (incl. 4 role_config tests), id-worlds lib suite 969 passed, cargo fmt clean.
PolicyRefusal carries the full park event; refresh runs at owner-operation cadence, never in a hot path. Precedent: id-groups scheme.rs.
|
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 5 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Successor port of #13234 (DIRTY/conflicting) rebased as c2cc491 + clippy allow (af216ad).
Closes #8299 (phase-14 v2 step 1; parent #6301).
What:
Verification (any-n, 2026-11-24, worktree at af216ad):
Supersedes #13234 (original gate PR, mergeState DIRTY).
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-24T03:20:42Z", "session_id": "ses_e5df4a59a42ffeXKJ6PUo45ayY", "lane": null, "host": "amd", "worktree": "/home/user/git/code", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/code", "repo": "developing-today/code", "branch": "queue/21628-12215-program-run-history-decision", "sha": "145013c3c695f2b74341692685eaedb51a2c755a" }, "auth_subject": "any-n", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.