Skip to content

feat(gs-domain): enforce WIMSE agent principals and RFC 8693 delegation chains at policy gate - #6

Merged
todie merged 1 commit into
developmentfrom
feat/gate-wimse-token-delegation
Oct 16, 2026
Merged

todie merged 1 commit into
developmentfrom
feat/gate-wimse-token-delegation

Conversation

@todie

@todie todie commented Oct 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Add WimsePrincipalKind and GatePrincipalClaims to gs_domain::gate to validate WIMSE (draft-klrc-aiagent-auth-03) wimse://<trust_domain>/agent/... and wimse://<trust_domain>/conclave/elf/... URIs, RFC 8693 act delegation chains (bounded by MAX_DELEGATION_DEPTH = 8 and cycle detection), and required token scopes.
  • Add PolicyGate::classify_with_principal and gs::evaluate_gate_with_principal:
    • Sealed (Never) actions remain inviolable regardless of principal or delegation claims.
    • Malformed WIMSE URIs, cyclic act chains, or depth > 8 fail closed to GateTier::Never.
    • Missing gate:<action> or gate:* scope downgrades autonomous (Green) actions to GateTier::Yellow for operator/intake review.
  • Expose --principal, --act, --scope, and --trust-domain flags on gs 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) and cargo clippy -j 2 -p gs-domain -p gs --all-targets -- -D warnings (0 warnings).

@todie
todie merged commit 109b289 into development Oct 16, 2026
1 check passed
@todie
todie deleted the feat/gate-wimse-token-delegation branch October 16, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant