Skip to content

[Phase 3] Express the tool limit as generated Cedar policy #2849

Open

Description

@ChrisJBurns

Depends on: #2842 (tool limit), #2547, #2548 (exact definition versions)

Problem

The broker's tool limit is a plain check. The design selects Cedar for it, with policy generated from each admitted definition and its revision, so every decision records which policy version allowed or refused it.

Design

Requirements

  • Generate Cedar policy deterministically from each admitted definition's resolved limit, tied to its source and revision, and evaluate it behind the tool-limit interface. Any Cedar diagnostic error denies.
  • A broker adapter for Cedar with its own dependency rule; cedar-go is already a dependency.
  • Decision records name the generated policy revision.

Done when

The checks in implementation.md ("Cedar authorization and audit verification") for the server/tool ceiling pass.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions