Skip to content

feat(disclosure): authorize exact-output releases with scoped owner approval - #672

Merged
carloshvp merged 1 commit into
mainfrom
agent/disclosure-authorization
Sep 19, 2026
Merged

carloshvp merged 1 commit into
mainfrom
agent/disclosure-authorization

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

What

Add the #660 exact-output disclosure contract and an opt-in synchronous library adapter. Owner signatures bind the actual output bytes, workload, inherited labels, source scope, recipient, purpose, policy version and validity. A shared SQLite store consumes attempts before delivery, so callback failures remain unknown and cannot be replayed automatically.

Why

A clean-looking summary or model-generated approval cannot authorize sending confidential data to an external or lower-clearance recipient. This profile permits one independently approved byte string while retaining source restrictions and distinguishing unavailable evidence from a verified mismatch.

Refs #660 and agentrust-io/.github#41. This is the bounded library milestone; it does not close the deployment/composition issue. Existing CMCPProxy sink ceilings are unchanged, and no MCP request field can activate this path.

Security impact

Direct release-authority grants are separate from workload authentication, represented-user/delegation semantics and runtime attestation (#568). Public keys are pinned by the operator with source/audience/purpose scopes. Recipient transport adapters, classification provenance, immutable policy versions, trusted clocks and rollback-resistant storage remain deployment responsibilities. Replacement gates do not stop already admitted calls on old gates.

The minimized observation contains only disposition, reason, random event ID and delivery outcome. It omits content, digest, recipient and approval; callback return is not installation or execution proof. Private approval records remain sensitive. No semantic declassification, secure erasure, hardware assurance or gateway-wide confinement is claimed.

Test plan

  • Baseline: 68 existing sink/approval tests passed.
  • Focused disclosure and sink tests: 77 passed.
  • Full unit/conformance/integration/confinement suite: 2,046 passed, 20 skipped, 89.26% coverage.
  • Six deliberate weakenings caused assertion failures: signature, authority scope, replay consumption, inherited labels, validity and policy version. Exact source bytes restored.
  • Ruff across source/tests, strict mypy (61 runtime modules), Bandit and strict MkDocs passed.
  • Synthetic owner keys and recording callbacks test substitutions, prompt relabeling, unknown evidence, concurrent consumption, database reopen, delivery failure and a separately serialized canonical approval.

The first broad local run found stale installed cMCP metadata (0.4.0) and agent-manifest 0.11.2. An isolated editable 0.5.0 install with the repository-pinned agent-manifest 0.12.0 resolves both; tests and runtime were not weakened. Local skips cover platform/private-fixture controls. Hosted CI is separate and has not run yet.

DCO sign-off

  • Commit is DCO signed off.

…tion

Signed-off-by: Imran Siddique <imran.siddique@opaque.co>

@carloshvp carloshvp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validated exact head 2cdb168.

The release grant binds the exact output digest, principal, workload, inherited labels, source scope, recipient, purpose, policy version, request ID, and validity interval. Missing or contradictory authority fails closed, and the durable pre-delivery reservation prevents replay after restart, concurrent calls, callback failure, or reentrant delivery.

Local validation:

  • 81 focused disclosure and sink-policy tests passed, including additional principal-substitution, reentrant replay, post-reservation clock-failure, and invalid-attempt cases
  • Complete unit suite: 1,954 passed, 6 skipped
  • Ruff passed across src and tests
  • mypy passed across cmcp_runtime and cmcp_verify
  • Clean merge simulation against current main and clean diff check

The documented limits around trusted controller inputs, recipient adapters, replay-store protection, callback timeouts, and acknowledgement semantics are appropriately explicit. Approved.

@carloshvp
carloshvp merged commit 9d9ae8d into main Sep 19, 2026
19 checks passed
@carloshvp
carloshvp deleted the agent/disclosure-authorization branch September 19, 2026 07:12
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.

2 participants