Skip to content

Enforce trusted-agent policy conditions#72

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
lazyGPT07:codex/enforce-trusted-agent-policy
Jun 14, 2026
Merged

Enforce trusted-agent policy conditions#72
ralyodio merged 1 commit into
profullstack:masterfrom
lazyGPT07:codex/enforce-trusted-agent-policy

Conversation

@lazyGPT07

Copy link
Copy Markdown
Contributor

Summary

  • keep allow_if_trusted_agent evaluation inside its policy branch
  • allow trusted principals as before
  • require approval for untrusted or missing principals instead of falling through to the generic low-risk allowance
  • add regression coverage for all three principal states

Root cause

The trusted-agent branch returned only for a trusted principal. A principal that did not satisfy the condition continued through generic risk evaluation, where low-risk read actions could be allowed despite the explicit policy.

Validation

  • vitest run packages/account-core/src (8 tests passed)
  • tsc -p packages/account-core/tsconfig.json --noEmit
  • git diff --check

Fixes #71

@ralyodio ralyodio merged commit 7d6a033 into profullstack:master Jun 14, 2026
5 checks passed
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.

Trusted-agent policy falls through for untrusted principals

2 participants