Skip to main content
The MultiPartyChallenge is the strongest verification mechanism in Attesta. It requires two or more independent approvers, each completing a different sub-challenge, before a critical action is allowed to proceed. This prevents any single point of failure in the approval process.

When It Is Used

By default, MultiPartyChallenge is assigned to CRITICAL risk actions (score 0.81.0). These are irreversible, destructive operations like dropping databases, deleting production infrastructure, or purging user data.
The Trust Engine enforces a safety invariant: CRITICAL actions are never downgraded, regardless of trust score. Even a maximally trusted agent will always face multi-party approval for critical operations.

Sub-Challenge Rotation

Each approver receives a different sub-challenge, assigned in a rotating pattern: The rotation order is: teach-back -> quiz -> confirm -> teach-back -> … This design ensures:
  1. The first approver must deeply understand the action (teach-back)
  2. The second approver must demonstrate comprehension (quiz)
  3. Subsequent approvers provide independent confirmation at lighter levels
  4. No two consecutive approvers face the same challenge type
All approvers must pass their respective sub-challenges. If any single approver fails or denies, the entire multi-party challenge fails and the action is blocked.

Usage


Approval Flow

When all approvers pass: When any approver fails:

Approver Identity

Each approver is identified by an approver_id, which is recorded in the audit trail. This enables post-hoc analysis of who approved what.
In production environments, integrate approver identification with your organization’s SSO or identity provider. The approver ID should be a verifiable identity, not a self-reported name.

Terminal Experience

The TerminalRenderer presents multi-party challenges sequentially, showing progress: Approver 1 prompt (Teach-Back):
CRITICAL RISK — Multi-Party Approval Required (Approvals: 0/2) Action: drop_database | Arguments: database="production" | Risk: 0.92 (CRITICAL) APPROVER 1 — Teach-Back In your own words, explain what this action will do and what its impact will be. (minimum 15 words)
After the first approver passes (Quiz):
CRITICAL RISK — Multi-Party Approval Required (Approvals: 1/2) APPROVER 2 — Quiz Q1: Which database will be dropped? a) staging, b) production, c) development, d) testing

Configuration via YAML

attesta.yaml

Scaling Approvers by Domain

Domain profiles can override the number of required approvers for specific action types:
attesta.yaml

TeachBackChallenge

The first sub-challenge in the rotation

Trust Engine

Why CRITICAL actions are never downgraded