Atlas's entry point is a frontier model (Fable, or whatever the best frontier model is) acting as the driver. The driver understands the user's intent using skills built for it, then — inside a loop — decomposes the goal into optimal components and routes each to the cheapest capable executor, to save as many tokens as possible while delivering an outcome as good as if the frontier model had done all the work itself, at a fraction of the cost.
The executor pool is any CLI agent harness (Claude Code, Codex, Gemini, whatever ships next) plus direct API paths (the native backend's parse/expand/rate), all in parallel. Not a fixed provider list. Every feature decision is tested against: does this make the frontier-driver-decomposes-to-cheap-executors loop better, cheaper, or more provable?
What makes Atlas a product, not a prompt pack (the four moats):
- Cross-vendor arbitrage — route work across any harness/API by cost and capability.
- Engine-enforced unfakable gates — validate-tasks, ship-check (
SHIP_CHECK_OK), the two-axis "done" (oracle + reachability, below), structural tests. If a feature could be a skill, it's not a product feature until the engine enforces it. - Persistent vendor-neutral task graph — tasks.json survives across vendors/sessions.
- Cross-vendor cost ledger — telemetry + economy-report prove the savings.
A task ships only when both axes pass — done = oracle-PASS AND code WIRED/EXEMPT.
This is the property the whole product (and the marketplace below) rests on; do not weaken it.
- Gate 5 — re-execution oracle. The binding ship gate is
skel/ship-check.py(oracle-backed). It re-runs the operator-held tests at the claimed commit in a network-isolated, digest-pinned podman sandbox, so a submitter cannot pass by editing their own logs.prd_taskmaster/oracle_bridge.pymaps a CDD card → graded verdict via the spine'satlas oracleCLI; it is fail-closed (any ambiguity → FAIL, never PASS). The self-grantableSHIP_CHECK_OVERRIDE_ADMINbypass was removed. (prd_taskmaster/shipcheck.pyis a NON-binding display heuristic only — never add an oracle call there.) - Gate 6 — reachability (
prd_taskmaster/reachability.py,reachability-sweepCLI). A green test on an orphan module (imported by nothing) is blocked and surfaced as⚠ scaffolded. Verdicts: WIRED (a non-test file imports it) / EXEMPT (declaredcli:|route:|tool:|hook:|plugin:|dynamic:scheme, accepted on trust in v1) / ORPHAN (fail). Read-only at runtime.
The trustworthy two-gate signal feeds a settled tournament: N executors race one job → every submission is adjudicated through both gates → the winner is paid in AtlasCoin → a UCB reputation store routes the next job to the cheapest proven-capable executor.
tournament-run/tournament-statusCLI; flow isspawn → collect → adjudicate → settle → reputation(cmd.py), with anti-sybil slots released in a crash-safefinally.collect.pyis the security core — commit-reveal (commit_hash = sha256(diff base..HEAD)) defeats the diff-copy attack.antisybil.pyenforces per-job / per-operator economic caps.goose_backend.pyis the cheap-API racer (one OpenRouter model viagoose run).watcher.py(watcher-run/watcher-status) is the independent out-of-band re-execution watcher — the precondition for real slashing. It re-adjudicates settled submissions from primary evidence (re-runs the oracle, independently re-derivessha256(diff base..HEAD)to catch diff-copy), abstains when it cannot verify (never a false confirm), and engine-gates real forfeiture:run_tournamentdowngrades--enforce-slashto shadow unless the fail-closedpermit_enforce_slashconfirms the whole job behind a concordance track record.- Invariants (enforced + tested — keep them): shadow-slash by default; real slashing only behind the watcher's fail-closed permit (no AtlasCoin burned without an independent positive confirmation); honest losers are always refunded; AtlasCoin is conserved (no mint/burn, even under account aliasing).
The gates shell out to the spine CLI (atlas oracle / atlas tournament settle / ledger),
which lives in the atlas-protocol repo (branch dev) and runs via tsx today. Point
ATLAS_ORACLE_CMD at it (e.g. tsx apps/cli/src/index.ts) for the real-podman e2e gates.
Packaging the spine for production is on the roadmap — see CHANGELOG ## [5.3.0].
TaskMaster is one pluggable backend, not a prerequisite. "Atlas speaks TaskMaster natively — but doesn't need it."
- Backend resolution:
backend: auto|taskmaster|nativein.atlas-ai/fleet.json(auto = taskmaster iff binary ≥0.43 present, else native). The 5-op protocol (detect / init_project / parse_prd / expand / rate) lives inprd_taskmaster/backend.py. - Task-state ops are engine-native ALWAYS: use
python3 script.py next-taskandpython3 script.py set-status <id> <status>(or the MCP toolsnext_task/set_task_status). Never call baretask-mastercommands outside a Mode-B-labeled block — structural tests enforce this. - No API keys → backend returns a structured
agent_action_requiredpayload; the driving agent does the generation itself. Never a crash, never a hard requirement. - The normative reference is the "## Backend operations" table in SKILL.md. When docs and code disagree, fix the docs to match the table.
The engine is stdlib-only Python in prd_taskmaster/, surfaced two ways that share the
same code — keep them in lockstep:
script.py— thin shim overprd_taskmaster/cli.py:main(~40 subcommands;python3 script.py -h).mcp-server/server.py— FastMCP server exposing the same ops as MCP tools (next_task,set_task_status,validate_prd, …). It needspip install -r mcp-server/requirements.txt; the CLI does not.
Key modules: cli.py (dispatch) · backend.py (5-op backend protocol) · validation.py +
tasks.py (graded PRD + task graph) · task_state.py (atomic next/claim/set-status) ·
reachability.py (Gate 6) · oracle_bridge.py + shipcheck.py (Gate 5 wiring) · economy.py
reputation.py(cost ledger + UCB routing) ·fleet.py/parallel.py(fleet waves) ·tournament/(the settled marketplace;tournament/watcher.pyis the independent re-execution watcher that engine-gates real slashing). The binding ship gate isskel/ship-check.py; the skill/slash commands live inskills/(atlas, go, generate, execute-task, execute-fleet, …) and ship inside the package.SKILL.mdis the normative behavior spec. Tests split intotests/core+tests/plugin(stdlib-only),tests/mcp(needs the mcp package), andtests/parity(golden-parity harness, run as a module, not via pytest).
AGENTS.md is the harness-neutral twin of this file — the same operating contract for any
agent (Codex, Gemini, the next harness). No test enforces their agreement, so when you change an
operating rule here, mirror it in AGENTS.md (and vice-versa).
python3 script.py next-task— get the next dependency-ready taskpython3 script.py set-status <id> in_progress- Implement (follow the plan step linked to the task)
python3 script.py set-status <id> done- Repeat. TodoWrite for user visibility; tasks.json is the source of truth.
pytest tests/ -q # full suite (877); the 4 real-podman e2e gates
# auto-skip unless the env below is set
pytest tests/core tests/plugin -q # stdlib-only path (no mcp pkg); tests/mcp needs
# pip install -r mcp-server/requirements.txt first
pytest tests/core/test_validation.py::test_name -q # run a single test (file::test or -k expr)
ATLAS_ORACLE_CMD="<spine>/node_modules/.bin/tsx <spine>/apps/cli/src/index.ts" \
pytest tests/core -q -k "e2e or dogfood" # un-skip the 4 real-podman gates (need the spine CLI + podman)
python3 script.py engine-preflight # one-call environment + backend probe
python3 script.py validate-tasks <tasks.json> # gate before any tasks.json write
python3 script.py reachability-sweep # Gate 6 — orphan-module detection
python3 script.py tournament-run # settled marketplace: spawn→…→reputation
python3 script.py watcher-run --job <dir> --card <card> --task <id> --base-ref <sha> # out-of-band re-adjudication
python3 script.py watcher-status # watcher concordance + whether real slashing is permitted yet
python3 script.py economy-report # cost ledger from .atlas-ai/telemetry.jsonl- Stdlib only in
prd_taskmaster/andmcp-server/server.py— no new dependencies. CI (.github/workflows/ci.yml) AST-scans the package for non-stdlib imports on a bare runner. - CI also enforces, and these break easily: all version strings must agree —
prd_taskmaster/__init__.py,package.json,.claude-plugin/plugin.json,install.sh, plus a matchingCHANGELOG.mdentry (bump them together); and the native-no-keys path must still resolvebackend=native, ai_ops=agentwith no TaskMaster binary and no API keys. - Errors return FR-28-safe dicts; library code never
sys.exits. - All
.atlas-ai/*.jsonlwrites go through the shared flock-guarded append (economy.append_telemetrypattern). - Tests are hermetic (tmp_path, no network). Structural tests in
tests/plugin/enforce doc invariants — if you change SKILL.md or installer text, run them. - Agents record how each run went via the feedback tool (
feedback_submitMCP tool /script.py feedback-add→.atlas-ai/feedback.jsonl) — this is the product's improvement loop; use it at debrief time.