Skip to content

Discuss post-validation policy and final approval in protocol 2.0.0 draft revision 2 #237

Done

Description

@tercel

Context

The 2.0.0 draft approval gate authorizes submitted arguments before middleware transforms them. An invocation that opts into evaluating the final arguments must verify its resumable approval against the same values that will reach the module.

Proposal

  • Introduce an instance-scoped, code-configured policy evaluator after schema validation.
  • In the enabled strategy, compute the early approval obligation at Step 5 and authorize once against the final, validated invocation. Preserve the ordinary Step 5 timing for executors without an evaluator.
  • Bind final-scope resumption to the authenticated principal, caller, selected module and version, and canonical argument digest. Use the existing atomic consume contract for scoped credential stores.
  • Share the policy check across ordinary calls, preflight and streaming. Preflight reports approval requirements without issuing or consuming credentials. A denial blocks dispatch and producer startup.
  • Keep protocol version 2.0.0 and record this as draft revision 2.

Review and validation

Review the strategy boundary, effective argument projection, and the separation of legacy and final-scope credentials. Verify the shared conformance cases in Python, TypeScript, and Rust, and verify MCP polling and one-shot resumption against the packaged Core distributions.

Activity

  1. tercel commented on Nov 29, 2026

    @tercel
    ContributorAuthor

    The approved draft revision and its three-SDK implementation were merged in #238. Closing this related specification discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions