Catalog/P family/P24
Proposed specificationSource-located exemplarH2

Guardian approval reviewer

Review risky proposed actions.

JOIN POINTrisky_action_escalationRECORD STATUSCandidate · v0.1.0
UML class view for Guardian approval reviewer, showing participant roles, received calls, and analytical dependencies
FIG. P24 / UML CLASS VIEW
Object interaction diagram for Guardian approval reviewer, showing role collaboration and a numbered message sequence
FIG. P24 / OBJECT INTERACTIONS
Context
A proposed tool action is classified as requiring review.
Trigger
Policy requests approval or an automated reviewer detects risk.
Structure
Review request, reviewer context, decision reason, and approve/reject/escalate path.
Effect
The action waits for and executes only after an accepted decision.
Requires
Proposed action identity, risk context, and authority source are available.
Ensures
The approval binds to the exact action and records the decision.
Invariant
Review cannot silently execute while pending or accept a different action.
Violation
Timeout, reviewer failure, or rejection blocks execution with a typed outcome.

Negative control

A post-hoc warning after execution is not an approval gate.

Permitted variation

Human prompt, reviewer agent, policy guardian, callback, and resumable interruption.

Test obligation

Test approve, reject, timeout, altered arguments, nested action, and bypass.

Evolution question

Did confirmation evolve into action-bound interruption and resumption?

PROMPT SKETCH
Escalate risky actions to a reviewer with the exact action identity and risk context. Bind the approval to that action hash, record the decision, and resume only the approved call.
CODE DESIGN / PYTHON
def escalate(action, reviewer):
    ticket = reviewer.request(
        action_hash=action.digest(),
        context=action.risk_context(),
        authority=action.authority,
    )
    if ticket.decision != "approved":
        return Denied(action, ticket.reason)
    if ticket.action_hash != action.digest():
        return Denied(action, "approval bound to different action")
    return action.execute()

Illustrative design sketch. Approval must name the action; a blanket yes is not an authorization record. This example is a teaching aid, not implementation evidence or a conformance claim.

Join point
risky_action_escalation
Source locator
Barbaste et al., §10.2, p. 36 (Codex, “Guardian, an LLM Approval Reviewer”); source label
Lexical cue
(?i)\b(?:guardian|approval[_-]?(?:request|callback|handler)|review[_-]?action|human[_-]?approval)\bFrozen expression, v0.1.0. A match is a retrieval cue, not a confirmed implementation.
Aliases
None
Canonical exemplar
openai/openai-agents-pythonsrc/agents/tool.py:1498Support: tests/test_function_tool_approval_arguments.py:1
Negative control
A post-hoc warning after execution is not an approval gate.

Scope-anchored review. pohe-agent analyze <repo> --pattern P24 anchors the cue to its enclosing declaration and checks a separate operational signature for all four pointcut dimensions. Missing roles and negative-control risks remain visible; a structural match is not E2/E3. Calibration report ↗

Source-located exemplar

A concrete source anchor is available for this proposed record. It is one exemplar, not evidence that all repositories—or every contract field—conform.

Review boundary: this candidate and its specification come from an AI-assisted study. Independent human validation remains open.

ANY-EVIDENCE FAMILY COVERAGE22/36

61.1% of repository families in the frozen panel have at least one current cue, historical cue, or canonical source layer. This is not confirmed prevalence.

Current lexical-cue repositories: 21 / 41
Canonical source anchoropenai/openai-agents-python 86bd29878b30src/agents/tool.py:1498

Tool approval interruption and on-approval handler.

Exploratory retrieval cue Regex / v0.1.0
(?i)\b(?:guardian|approval[_-]?(?:request|callback|handler)|review[_-]?action|human[_-]?approval)\b

This expression is a discovery instrument only. A match is a retrieval cue—not a confirmed implementation, pointcut match, or contract proof.