# OpenCEO — Agent Onboarding Guide

OpenCEO is the autonomous executive intelligence, strategy execution, and portfolio allocation layer for businesses and agencies.

## Discovery Endpoints
- OpenAPI 3.1.0: https://openceo.run/openapi.json
- API Docs: https://openceo.run/api/docs
- MCP (Streamable HTTP 2025-06-18): https://openceo.run/mcp
- OAuth 2.1 Protected Resource Metadata: https://openceo.run/.well-known/oauth-protected-resource
- A2A v1.0 Agent Card: https://openceo.run/.well-known/agent-card.json
- A2A v1.0 JSON-RPC Endpoint: https://openceo.run/a2a/v1
- Capabilities Registry: https://openceo.run/api/v1/capabilities

## Authentication & Least-Privilege Scopes
Authenticate with an owner-issued scoped grant (`Authorization: Bearer oceo_...`).
Scopes are strictly separated — agents can never self-elevate permissions or alter spending envelopes:
- `read`: read authorized businesses, goals, KPIs, decisions, execution status, and outcome evidence
- `propose`: parse/create goals and propose initiatives
- `authorize`: record executive approval/rejection (only when explicitly granted by owner/executive)
- `execute`: reserve minor-unit budget and delegate authorized initiatives to verified providers
- `portfolio`: read consolidated multi-business portfolio summaries

## Verified Capabilities (15 MCP Tools)
- `discover_capabilities` (scope: `public`, read_only): List OpenCEO supported capabilities, required scopes, protocol endpoints, and live connector readiness.
- `list_authorized_businesses` (scope: `read`, read_only): List business units authorized for the caller with currency, autonomy mode, and freshness metadata.
- `get_goal_progress` (scope: `read`, read_only): Read measurable objectives, baseline vs current verified KPI values, freshness flags, and version history.
- `propose_goal` (scope: `propose`, read_only): Parse and validate a proposed objective with unit/currency/freshness checks without mutating active goals.
- `create_goal` (scope: `propose`, reversible_write): Create a versioned measurable objective for an authorized business.
- `evaluate_scenario` (scope: `read`, read_only): Run deterministic sensitivity and what-if scenario evaluation separating forecast from verified facts.
- `propose_initiative` (scope: `propose`, reversible_write): Submit a ranked strategic initiative proposal with estimated minor-unit cost, uncertainty bounds, and assumptions.
- `get_decision` (scope: `read`, read_only): Retrieve append-only decision authorization records and audit lineage for an initiative or business.
- `authorize_decision` (scope: `authorize`, authorization): Record explicit approval, rejection, modification, or revocation (requires explicit authorize scope and role).
- `delegate_initiative` (scope: `execute`, external_side_effect): Queue and dispatch an authorized, budget-reserved initiative to a verified specialist provider.
- `get_execution_status` (scope: `read`, read_only): Inspect initiative state machine status, execution steps, provider receipts, and cancellation eligibility.
- `cancel_initiative` (scope: `execute`, reversible_write): Cancel an active initiative, release unspent budget reservations, and enqueue provider compensation.
- `get_outcome_evidence` (scope: `read`, read_only): Retrieve independent verified outcome evidence and baseline deltas linked to an initiative.
- `get_portfolio_summary` (scope: `portfolio`, read_only): Retrieve consolidated multi-business portfolio summary with strict tenant boundaries and currency exposure.
- `list_notifications` (scope: `read`, read_only): List scoped executive review alerts, anomalies, and pending approvals for the caller.

## Monetary & Governance Invariants
- All money fields use safe integer minor units + ISO-4217 currency code. Cross-currency arithmetic without an explicitly sourced FX rate is rejected.
- Default autonomy mode is `recommend_only`. External delegation requires explicit authorization and transactional budget reservation.
- Provider completion receipts move initiatives to `awaiting_verification`; independent outcome evidence is required for `verified`.
