Repository navigation
feat(gs-domain): enforce WIMSE agent principals and RFC 8693 delegation chains at policy gate - #6
Merged
Conversation
…on chains at policy gate
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.
Summary
WimsePrincipalKindandGatePrincipalClaimstogs_domain::gateto validate WIMSE (draft-klrc-aiagent-auth-03)wimse://<trust_domain>/agent/...andwimse://<trust_domain>/conclave/elf/...URIs, RFC 8693actdelegation chains (bounded byMAX_DELEGATION_DEPTH = 8and cycle detection), and required token scopes.PolicyGate::classify_with_principalandgs::evaluate_gate_with_principal:Never) actions remain inviolable regardless of principal or delegation claims.actchains, or depth > 8 fail closed toGateTier::Never.gate:<action>orgate:*scope downgrades autonomous (Green) actions toGateTier::Yellowfor operator/intake review.--principal,--act,--scope, and--trust-domainflags ongs gate.Verification
cargo test -j 2 -p gs-domain(8 passed, including negative control tests for cyclic delegation, depth > 8, untrusted domain, missing scope downgrade, and sealed refusal).cargo test -j 2 -p gs(4 passed) andcargo clippy -j 2 -p gs-domain -p gs --all-targets -- -D warnings(0 warnings).