Skip to content

PRD — outbox

The product requirements for outbox: the problem, its users, goals and non-goals, the protocol and scoring requirements, proposed success metrics and open questions.

Derived from the README, agent docs, config and code in bamr87/outbox. Anything not stated in those sources is marked TBD; success metrics are proposals.

1. Overview / problem

A measurable harness for competitive asynchronous outbound messaging among three agents. Agents may only publish by writing immutable outbox records; peers never mutate each other's memory. A filesystem inbox/outbox, injected environment lag, a confidence race and a replay scorer judge who published what, when, with what confidence, and whether they were right.

1.1 Missions

Outbox's direction is to become the ultimate open home for all things competitive agent messaging — data, tools, resources and transparency, gathered in one place that anyone can inspect and reuse.

  1. Provide data, tools, resources and transparency for all stakeholders, multi-agent researchers and practitioners, and the general public. Analysts, harness authors, agent builders and anyone curious about how agents argue in the open are first-class audiences. The aim is a shared, inspectable commons: the same protocol, the same traces, and the same scoring rules for everyone.
  2. Make every outbound message immutable, every peer exchange inbox-only, and every race replayable and auditable. Agents publish only by writing immutable outbox records; peers never mutate each other's memory. A filesystem inbox and outbox, injected environment lag, a confidence race and a replay scorer judge who published what, when, with what confidence, and whether they were right.
  3. Expose failure modes in the open — stale facts, confidence inversion, lag-window misses — through a reproducible offline harness and a strict message protocol anyone can run and inspect. Policy bots stand in for live agents so the suite needs no network and no key, and the protocol itself remains the contract.

These missions set the course; they do not claim the work is finished. They serve the PRD goals: a reproducible offline suite, visible failure modes, and a strict message protocol.

Requirement

  • MR1: Constitution §1 states one direction statement and exactly three numbered missions, and the README and AGENTS.md taglines match that direction and link to constitution §1.

Feature OUTBOX-009 traces to requirement MR1.

2. Target users

  • Researchers/engineers evaluating multi-agent coordination and calibration
  • Operators running live agent bots using the cards in agents/

3. Goals and non-goals

Goals

  • Reproducible offline suite using policy bots in place of live agents
  • Expose failure modes: stale facts, confidence inversion, lag-window misses
  • Enforce a strict message protocol (protocol/schema.json)

Non-goals

  • Network calls in tests
  • Deploy workflows
  • An observer that synthesizes answers during the race

4. Core features (current)

  • Agents: scout (env/clock), claimant-a (fast), claimant-b (slow, lagged inbox)
  • CLI: init, run, watch, score, suite, relay (flags in docs/reference/cli.md)
  • Task families: stale_fact, ambiguous, deadline
  • Relay to inboxes + ledger.jsonl; invalid messages to dead_letter.jsonl
  • Scoring: winner, correctness, confidence inversion, retracts

Feature catalog

Every user-facing capability has a stable id in the feature catalog features/features.yml. Each entry names the PRD requirements it serves (prd:); the trace below is the reverse view.

ID Feature Status Where Requirements
OUTBOX-001 Agents: scout (env/clock), claimant-a (fast), claimant-b… shipped agents · README.md FR2, NFR1
OUTBOX-002 CLI: init, run, watch, score, suite, relay shipped src/outbox/cli.py · README.md FR3, NFR2
OUTBOX-003 Task families: stale_fact, ambiguous, deadline shipped tasks · README.md FR1, FR3
OUTBOX-004 Relay to inboxes + ledger.jsonl shipped src/outbox/mailbox.py · README.md FR2, NFR2
OUTBOX-005 Scoring: winner, correctness, confidence inversion, retracts shipped src/outbox/score.py · README.md FR1, FR3
OUTBOX-006 Belt profile: handoff messages through one gapless, crash-repairable relay partial src/outbox/belt.py · docs/adr/0002-belt-profile-and-claim-desk.md FR2, NFR2
OUTBOX-007 Claim desk: race a draft's claims, resolve later, calibrate partial src/outbox/claimdesk.py · docs/adr/0002-belt-profile-and-claim-desk.md FR1, FR3
OUTBOX-008 Local end-to-end proof of the platform plan across the sibling repos shipped e2e/run.py · e2e/README.md TBD
OUTBOX-009 Constitution missions planned docs/constitution.md · PRD.md MR1

Requirement → feature trace

Requirement Features
FR2 OUTBOX-001, OUTBOX-004, OUTBOX-006
NFR1 OUTBOX-001
FR3 OUTBOX-002, OUTBOX-003, OUTBOX-005, OUTBOX-007
NFR2 OUTBOX-002, OUTBOX-004, OUTBOX-006
FR1 OUTBOX-003, OUTBOX-005, OUTBOX-007
TBD OUTBOX-008
MR1 OUTBOX-009

5. Requirements

Functional

  • FR1: Winner at closes_at_tick = highest-confidence non-retracted claim with current env_seq (subject to max_env_lag)
  • FR2: Peers learn only via inbox; state.json is private
  • FR3: Correctness judged after close against expected_answer

Non-functional

  • NFR1: Python ≥ 3.11; unittest suite runs offline
  • NFR2: Deterministic replays from ledgers

6. Success metrics (proposed — not defined in sources)

  • Correct-winner rate per task family
  • Confidence-inversion rate
  • Retract latency after env change

7. Roadmap / open questions

  • Live-agent evaluation protocol and acceptance thresholds: TBD