Skip to main content
ModusBrain operational skills follow a structured, five-phase lifecycle. This workflow ensures that agent actions are safe, conformant to policies, and fully auditable. The following guide walks through a real-world refund handling scenario to demonstrate how agents and operators interact with these phases.

Phase 1 — Compile

The compilation phase reads your unstructured company documentation—such as markdown wikis, support policies, and ticketing procedures—and compiles them into a versioned, static draft skill.
Every compiled operational skill version captures three core layers:
  • Prose Judgment — Semantic, context-aware guidelines extracted from natural language text to steer agent behavior in complex scenarios.
  • Structured Policy Rules — Executable logic constraints (e.g. if amount < 500 => auto_approve) parsed from documentation to enforce strict boundaries.
  • Lineage and Provenance — A secure mapping back to the source files, compiler identity, and timestamps.

Phase 2 — Approve

When an operational skill is newly compiled, it is held in a draft status. Active agents are restricted from executing draft skills until an owner promotes them:

Approval Tokens

For high-stakes tasks that fall below the automatic confidence threshold, operators can issue a temporary 1-hour approval token to safely override the gate:

Phase 3 — Execute (with Gating)

During agent runtime, the agent requests the execution of an active operational skill. ModusBrain evaluates the request against the active policy parameters and calculates a confidence score:
The execution query is allowed or blocked based on its risk tier threshold:

Phase 4 — Audit

ModusBrain logs all execution attempts and outcomes to a secure, queryable audit ledger. This allows organizations to monitor compliance and debug agent decisions:
Audit entries record the executing agent’s identifier, the specific skill version used, calculated confidence scores, parameters evaluated, and the final output.

Phase 5 — Feedback Loop

If an agent action is incorrect or needs refinement, operators submit corrections. This writes feedback files back to the database, which influences subsequent skill compilations:

Conflict Handling

If multiple source documents contain contradicting instructions, ModusBrain flags the conflict in the review queue to prevent execution issues: