Jarvis Osorio Labs

Labs · Agent Outcome · summary on jarvisosorio.com

Agent Outcome documentation

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.

Current version: 0.1.0. License: Apache-2.0. Source: github.com/JarvisOsorio/agent-outcome. 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.

View the GitHub repository Short project page

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",
        ),
    ],
    observers={"github": github_observer, "postgres": postgres_observer},
)

if not result.passed:
    print(result.failures)

CLI

CommandPurpose
agent-outcome initCreate .agent-outcome/ + SQLite store
agent-outcome verifyRun --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 doctorHonest readiness (trusts_agent_success_text=false)

Common flags: --github-fixture, --postgres-fixture, --live, --save-case, --save-on-fail, --json.

Exit codes

CodeMeaning
0Pass
1Assertion failure
2Invalid input / case / receipt
3Infrastructure / 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:

EnvPurpose
GITHUB_TOKEN + --live / LiveGitHubObserverLive GitHub REST
AGENT_OUTCOME_DATABASE_URL (or DATABASE_URL) + --liveLive Postgres (pip install 'agent-outcome[postgres]')
AGENT_OUTCOME_LIVE_GITHUB=1Enable optional pytest live GitHub tests
AGENT_OUTCOME_LIVE_POSTGRES=1Enable 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 productNot this product
Deterministic assertions against independent observationsTrusting 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-runsAgent framework / orchestration
Hermetic fakes in unit tests; optional live adaptersCassette/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

Updated: 22 November 2026