aoa-sdk
Typed Python SDK and control-plane helper layer for the AoA federation.
aoa-sdk consumes source-owned sibling surfaces and exposes local-first Python
and CLI handles for discovery, compatibility, routing, skill inspection,
checkpoint, closeout, release, and bounded handoff. It keeps federation state
legible without becoming the source of truth for sibling-layer meaning.
This README is the public front door. When work becomes operational,
source-authored, generated, mechanic-local, release-facing, or agent-facing,
follow the linked owner surface instead of expanding this page.
Current release: v0.10.2. See CHANGELOG for release notes.
What This Repository Does
| Function |
Owner Surface |
| Repository boundary and stronger-owner stop lines |
docs/boundaries |
| System form |
DESIGN |
| Agent-facing guidance form |
DESIGN.AGENTS |
| Local route law |
root and nearest nested AGENTS cards |
| On-demand executable checks |
root VALIDATION or the nearest part VALIDATION.md after selecting a lane |
| Documentation map |
docs |
| Checked SDK source-home posture |
sdk, source home manifest |
| SDK-owned statistical questions |
stats, local stats port |
| Callable Titan helper procedures |
skills, owner skill port |
| Importable implementation |
src/aoa_sdk |
| Repeatable SDK mechanics |
mechanics, mechanics roadmap, mechanics topology |
| Workspace discovery, source topology, and control-plane capsule |
workspace layout, .aoa workspace, generated source topology, generated capsule |
| Compatibility, release, and public support posture |
versioning, releasing, release and CI posture, release support mechanic |
| Durable rationale |
decision records |
| Current direction and durable obligations |
ROADMAP, QUESTBOOK, quests |
| Seed history |
blueprint, the original seed blueprint and historical design context |
Start Here
| Need |
Route |
| Get the shortest repo overview |
Stay on this README, then choose an owner surface from the tables. |
| Decide whether a change belongs in this repo |
Read docs/boundaries, DESIGN, and the relevant source-home or mechanic card. |
| Work on SDK-facing source posture |
Start at sdk and the nearest branch AGENTS.md. |
| Change an SDK-owned measurement question or reference packet |
Start at stats and stats/AGENTS; shared grammar remains in aoa-stats. |
| Change an SDK-owned Titan helper skill |
Start at skills and skills/AGENTS; runtime, operator, memory, proof, and playbook meaning remain with stronger owners. |
| Change importable Python behavior |
Start at src/aoa_sdk/AGENTS.md, then route to the owning tests or mechanic. |
| Change repeatable operations, helpers, schemas, examples, or part tests |
Start at mechanics, then package AGENTS.md, package README.md, package ROADMAP.md, package PARTS.md, package PROVENANCE.md, and the active part VALIDATION.md. |
| Change workspace, compatibility, checkpoint, Codex projection, release, or closeout behavior |
Follow the matching mechanic package route before changing root docs. |
| Change public support, release posture, or CI posture |
Start at docs/RELEASE_CI_POSTURE and mechanics/release-support. |
| Change direction, obligation, or rationale |
Use ROADMAP, QUESTBOOK, quests, and decision records. |
| Work as an agent |
Read AGENTS, then the nearest nested route card. |
Common Mechanic Routes
| Pressure |
Route |
| Stress dispatch, reviewed stress carry, and via negativa pruning |
mechanics/antifragility |
| Sibling facades, compatibility, skill bridges, technique readers, surface hints, and owner-layer handoff |
mechanics/boundary-bridge |
| Checkpoint capture, review gates, closeout handoff, child-task re-entry, and reviewed carry |
mechanics/checkpoint |
| Codex workspace MCP, live rollout status, portability boundary, and rollout refs |
mechanics/codex-projection |
| OS Abyss organ discovery, registry projection, and candidate activation contracts |
mechanics/boundary-bridge/parts/organ-access-control-plane |
| Host-visible KAG to memo candidate to eval to owner-acceptance chains |
mechanics/boundary-bridge/parts/cross-organ-orchestration |
| Release audit, publication helpers, CI posture, and sibling canaries |
mechanics/release-support |
| RPG typed consumer reads and surface-path transport |
mechanics/rpg |
| Workspace roots, mirrors, bootstrap, and generated control-plane capsule |
mechanics/runtime-seam |
| Durable obligation source records and quest reader posture |
mechanics/questbook |
Control-Plane Check
| Question |
Route |
| Who owns the meaning? |
Usually the sibling repo or a stronger owner named in docs/boundaries. |
What does aoa-sdk own? |
Typed handles, route cards, local checks, generated read models, and bounded helper behavior. |
| What proves the change? |
The nearest part VALIDATION.md, root VALIDATION, and the touched test route. |
| Is this activation, durable memory, proof, progression, gameplay, or runtime deployment? |
Route away from SDK helper authority unless the source owner has already made the meaning explicit. |
Current Contour
The current landed surface includes:
- workspace discovery grounded in .aoa/workspace.toml;
- root design surfaces, DESIGN and DESIGN.AGENTS;
- canonical decision rationale under docs/decisions;
- the checked SDK source-home tree under sdk;
- the SDK-owned compatibility posture measurement under stats;
- the admitted Titan helper procedure home under skills;
- the accepted staged routing producer succession in
AOA-SDK-D-0071
and its
target operating model;
- the strict, runtime-neutral
R2 Agent OS contract family
for route decisions, plans, approvals, lifecycle, events, evidence, and
adapter protocols, now consumed by the separately bounded C3 Runner;
- the owner-bounded
organ access control plane
and its progressive read-only projection through the existing
aoa_workspace MCP server, without activation or runtime execution;
- the host-visible
cross-organ orchestration contract
for KAG evidence, memo candidates, eval pressure, and explicit owner
acceptance, without SDK-owned MCP invocation;
- the passed
R3 disposable migration rehearsal,
which proves 14/14 byte parity, installed-wheel construction without the
predecessor checkout, consumer compatibility, and rollback while leaving
aoa-routing canonical;
- the implemented
M1 routing shadow producer,
which packages the typed compiler, schemas, validator, dual-producer
sidecar, parity CI, and installed-wheel gate while remaining non-publishing;
- the passed shadow-only
G4 evidence chain,
which proves the immutable release, predecessor consumer and rollback,
package trust, full 170-route canonical replay, and isolated runtime content
path while leaving
aoa-routing canonical and the live runtime untouched;
- the explicit
G5 candidate,
which lets an installed SDK build a complete SDK-identified,
Git-ref-bound artifact assembly for stronger-owner trust and runtime canary
review while every switch-authority flag remains false;
- the separately profiled
G5 release candidate,
which binds the exact public archive, release provenance, and stronger-owner
verifier before the owner switch while normal runtime remains denied;
- the receipt-bound
G5 owner switch,
which makes
aoa-sdk the single canonical routing producer by proving exact
byte parity with the public v0.7.0 asset, starts the compatibility window,
retains aoa-routing for rollback, and keeps archival authority separate;
- the post-G5 maintenance contour, in which routing compatibility reads prefer
the SDK-delivered runtime bundle,
aoa-routing is optional workspace state,
paired predecessor CI/release dependencies are inactive, and the predecessor
remained available only for compatibility and rollback until X1 closed that
window;
- the completed mixed-verdict
E1 cost comparison,
which proves structural workflow, checkout, release, and repository-context
reduction, exposes a 23.1% landed median CI runner-time regression, and
leaves direct task-latency, token, long-run reliability, and consumer-zero
claims outside E1;
- the archive-ready, operator-gated
X1 consumer-zero report,
which proves 17/17 landed or classified consumers, zero active predecessor
checkout dependencies across 24 current heads, exact package and
post-repair Agent OS cycles, compatibility exit, and SDK-only operational
rollback, including a receipt for its own landed
aoa-sdk main validation,
while leaving every irreversible archive action separately operator-gated;
- the operator-approved
X2 archive closeout,
which pins X1 unchanged, binds the final predecessor landing and
v0.4.0
release, records the preserved public GitHub archive, verifies the
SDK-canonical live route and RAG path, and exposes the old KAG runtime slice
as a non-blocking derived projection residual;
- the callable
C1 route resolution control plane,
which validates the exact live G5 snapshot, intersects routing entries with
the pinned
aoa-skills owner projection, and emits deterministic
RouteDecision and RouteExplanation objects without activation;
- the callable
C2 plan compilation control plane,
which validates an exact admitted
aoa-playbooks contour/schema pin,
requires owner-qualified scenario inputs and reviewed conditions, prunes
guarded branches deterministically, and emits a content-addressed
runtime-neutral RunPlan without adapter selection or execution;
- the callable
C3 Runner lifecycle control plane,
which prepares immutable sessions, binds only caller-supplied adapters,
validates fresh runtime observations, approvals, bounded recovery, receipts,
event chains, outcomes, restoration, and closeout, and ships a deterministic
reference adapter that executes no plan steps;
- the explicit
C4 abyss-stack runtime adapter client,
which hashes an owner-delivered runtime profile and constraints, binds exact
plan source/ABI coordinates, and invokes one absolute runtime-owner
executable through a no-shell JSON transport without moving execution,
policy, or adapter selection into the SDK;
- the callable
C5 unified evidence and closeout chain,
which records immutable partial-to-complete audit projections, resolves
them by exact session or closeout-receipt identity, and requires external
owner-qualified eval, memo, checkpoint, and closeout refs without copying
their canonical truth into the SDK;
- active mechanics topology under mechanics with
future-pressure routing in mechanics roadmap;
- typed compatibility and workspace inspection helpers;
- the compact control-plane capsule at
generated/workspace_control_plane.min.json;
- the generated implementation tree index at
generated/source_topology.min.json;
- bounded skill inspection, surface-detection, checkpoint, closeout, Codex projection,
release, and public support helpers.
Detailed shipped-surface maps live in mechanics,
sdk, generated companions, decision indexes, and release
history. Package-local future pressure lives in mechanics package roadmaps.
ROADMAP keeps direction at the repo level. The root README should not become that inventory.
Core Districts
| District |
Use For |
| .aoa |
Workspace metadata consumed by SDK discovery. |
| docs |
Documentation map, boundaries, release route, versioning, seed history, and decision records. |
| evals |
SDK-local eval pressure intake, suites, and reports before adoption by aoa-evals. |
| generated |
Derived read models and compact control-plane companions. |
| mechanics |
Repeatable SDK operations with package and part ownership. |
| sdk |
Source-authored SDK posture and manifest-checked route map. |
| stats |
SDK-owned measurement questions and evidence-linked reference packets using the shared aoa-stats grammar. |
| skills |
Admitted callable procedures over SDK-owned Titan helper contracts; globally exposed only through the OS user profile. |
| src/aoa_sdk |
Importable Python package and public API implementation. |
| schemas |
Shared contract schemas used across SDK surfaces. |
| quests |
Source records for durable SDK obligations. |
| tests |
Repo-wide regression and route-contract tests. |
Validation
Executable validation routes live in root VALIDATION and the
nearest part VALIDATION.md; nested AGENTS.md only selects the applicable
route and stop-line. Release gates live in
docs/RELEASING and
mechanics/release-support.
Use this README to choose the route, not to run the route.
Downstream Consumers
The SDK is useful to agents and humans that need a typed, local-first view over
AoA workspace state. It must remain subordinate to sibling repositories for
source truth:
- sibling generated readers stay source-owned;
- SDK compatibility checks are posture checks, not source verdicts;
- checkpoint and closeout helpers carry reviewed context without becoming
durable memory or proof authority;
- release helpers describe or dry-run SDK release posture until GitHub,
package, and owner surfaces actually publish.
License
Licensed under the Apache License 2.0.
评论