Agent Outcome, independent postcondition verification for AI agent side effects by Jarvis Osorio
Agent Outcome is a local-first Python toolkit by Jarvis Osorio (Jarvis Nelson Osorio) for independent postcondition verification of AI agent side effects: observe GitHub or Postgres, assert expected state, and CI-gate PASS/FAIL. The GitHub repository is agent-outcome.
View the GitHub repository Full documentation
The current version is 0.1.0, released under the Apache License 2.0. It requires Python 3.11+. Storage is SQLite plus portable JSON. The package is not on PyPI yet — install from the GitHub repository.
Your agent said “All done!” A green receipt is not proof. Agent Outcome observes the target system (fakes for CI, live adapters opt-in) and runs deterministic assertions so side-effect drift fails closed with machine-readable codes. Receipts are context only — never sole evidence. A receipt where agent_claimed_success=true cannot flip passed=True by itself. It is not a tracing dashboard, prompt eval, vector-similarity judge, agent framework, or a cassette/replay of tool I/O. There is no MCP adapter in v0.1, and the package is not on PyPI yet.
Install
The v0.1 path is to clone this repository (not published to PyPI yet):
git clone https://github.com/JarvisOsorio/agent-outcome.git
cd agent-outcome
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
python examples/claim_vs_verify/run.py
Minimal API
Public exports: verify, AssertionSpec, Failure, Receipt, VerificationResult, VerificationCase, case_from_result, load_case, save_case. Observers: FakeGitHubObserver / LiveGitHubObserver, FakePostgresObserver / LivePostgresObserver.
from agent_outcome import verify
from agent_outcome.adapters import github, postgres
result = verify(
task="Create a GitHub issue",
assertions=[
github.issue_exists(owner="acme", repo="app", number=42),
github.title_equals(
owner="acme", repo="app", number=42, expected="Fix authentication"
),
github.label_exists(owner="acme", repo="app", number=42, label="bug"),
postgres.row_exists(table="orders", where={"id": "ord_1"}),
postgres.column_equals(
table="orders",
where={"id": "ord_1"},
column="status",
expected="paid",
),
],
# Optional JSON execution receipt — context only, NEVER sole evidence:
# receipt=receipt,
observers={"github": github_observer, "postgres": postgres_observer},
)
if not result.passed:
print(result.failures) # machine-readable codes + expected/actual
CLI
| Command | Purpose |
|---|---|
agent-outcome init | Create .agent-outcome/ + SQLite store |
agent-outcome verify | Run --assertions or --case (+ optional --receipt, fixtures / --live) |
agent-outcome test <case> | Re-run a saved failure case |
agent-outcome inspect <target> | Inspect case, receipt, run, or file |
agent-outcome export <path> | Portable JSON bundle (agent-outcome.export.v1) |
agent-outcome import <path> | Import bundle (integrity-checked) |
agent-outcome doctor | Honest readiness (trusts_agent_success_text=false) |
Common flags: --github-fixture, --postgres-fixture, --live, --save-case, --save-on-fail, --json.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Pass |
| 1 | Assertion failure |
| 2 | Invalid input / case / receipt |
| 3 | Infrastructure / observer / storage error |
Example (claim vs verify)
examples/claim_vs_verify shows: an agent receipt claims success; independent observations PASS against the expected world; an intentional wrong title, label or row FAILs with GITHUB_TITLE_MISMATCH, GITHUB_LABEL_MISSING or PG_COLUMN_MISMATCH — even though the receipt still says success; and the failure becomes a reusable case.
python examples/claim_vs_verify/run.py
Live adapters (optional)
Hermetic CI needs no network. Live checks are opt-in:
| Env | Purpose |
|---|---|
GITHUB_TOKEN + --live / LiveGitHubObserver | Live GitHub REST |
AGENT_OUTCOME_DATABASE_URL (or DATABASE_URL) + --live | Live Postgres (pip install 'agent-outcome[postgres]') |
AGENT_OUTCOME_LIVE_GITHUB=1 | Enable optional pytest live GitHub tests |
AGENT_OUTCOME_LIVE_POSTGRES=1 | Enable optional pytest live Postgres tests |
agent-outcome doctor reports readiness honestly without printing secrets.
Storage
Default: .agent-outcome/store.sqlite plus JSON case sidecars. Portable export schema agent-outcome.export.v1 with an integrity hash. No telemetry. Tokens in case metadata are redacted on save.
Honesty / non-goals
| This product | Not this product |
|---|---|
| Deterministic assertions against independent observations | Trusting agent_claimed_success / “Done!” text |
| GitHub issue + Postgres row/column/count checks (v0.1) | Tracing UI, prompt eval, vector similarity |
| Failure → reusable verification case for CI re-runs | Agent framework / orchestration |
| Hermetic fakes in unit tests; optional live adapters | Cassette/replay of tool I/O |
What v0.1 does not include: an MCP adapter (deferred), Slack/filesystem adapters, dashboards, semantic/LLM judges, Agent Assurance policy engines, or dual-building Replay Lab cassettes here.
Sibling tools (do not merge): Agent Replay Lab (VCR for tool I/O), mcp-pordego, and agentscrub. Observability products answer what happened in the run; Agent Outcome asserts whether the external world matches expected postconditions.
Source and license
- Repository: github.com/JarvisOsorio/agent-outcome
- Release: v0.1.0
- License: Apache-2.0
- Author: Jarvis Nelson Osorio (Jarvis Osorio), technology entrepreneur and AI innovator, based in Miami Beach, Florida
- Project site: jarvisosorio.com/agent-outcome/
- Docs: labs.jarvisosorio.com/agent-outcome/
- All open-source tools: Open-source AI tools by Jarvis Osorio
- Also by Jarvis Osorio: Agent Reach, a local-first A2A discovery and pitch protocol; Agent Replay Lab, a local-first VCR for agent tool I/O; mcp-pordego, an open-source MCP security scanner; agentscrub, a local-first CLI for agent session secrets and PII; and Ambient Memory, a local-first MCP memory layer
Identity: Jarvis Osorio · Jarvis Nelson Osorio · AI work · Official profiles
Updated: November 22, 2026 (America/Santiago)