Data Flow

This page describes the lifecycle of an action proposal as it flows through the AEGIS governance system, following the AEGIS Governance Protocol (AGP-1).

Protocol Overview

AGP-1 defines three primary message types:

MessageDirectionPurpose
ACTION_PROPOSEClient to ServerAI system proposes an action for governance evaluation
DECISION_RESPONSEServer to ClientGovernance runtime returns its decision
EXECUTION_RESULTServer to ClientTool proxy reports the outcome of an executed action

Message Lifecycle

1. ACTION_PROPOSE

The AI system sends an ACTION_PROPOSE message to the governance gateway. The message includes:

AI Agent --> ACTION_PROPOSE --> AEGIS Governance Gateway

2. Governance Evaluation

The gateway authenticates the request and routes it to the decision engine, which evaluates the proposal through the full pipeline:

Authentication --> Capability Check --> Authority Check --> Risk Scoring --> Policy Evaluation

Each stage can independently deny or escalate the request. All stages must pass for an ALLOW outcome.

3. DECISION_RESPONSE

The governance runtime returns a DECISION_RESPONSE with one of four outcomes:

OutcomeMeaning
ALLOWAction permitted — proceed to execution
DENYAction forbidden — do not execute
ESCALATERequires human review before proceeding
REQUIRE_CONFIRMATIONRequires explicit user consent

The response includes:

4. EXECUTION_RESULT

For ALLOW decisions, the tool proxy executes the action and reports the result:

Tool Proxy --> External System --> Result
Tool Proxy --> EXECUTION_RESULT --> AI Agent

The execution result is also recorded in the audit log, completing the full lifecycle.

End-to-End Flow

AI Agent
   |
   | ACTION_PROPOSE
   v
Governance Gateway
   |
   | Authenticate + Route
   v
Decision Engine
   |
   | Capability -> Authority -> Risk -> Policy
   v
DECISION_RESPONSE
   |
   +--[DENY/ESCALATE/REQUIRE_CONFIRMATION]--> Return to Agent
   |
   +--[ALLOW]
   |
   v
Tool Proxy
   |
   | Execute against external system
   v
EXECUTION_RESULT --> Agent + Audit Log

Audit Integration

Every step in the lifecycle is recorded in the immutable audit log:

This enables full forensic reconstruction of any governance decision.

Further Reading

Note: For the full AGP-1 protocol specification including wire formats, authentication, and error handling, see the aegis-governance repository.