Skip to content

Publish the SDK surface, the attempt harness, and the layer graph - #78

Merged
matrix72c merged 1 commit into
mainfrom
sdk-surface
Nov 19, 2026
Merged

matrix72c merged 1 commit into
mainfrom
sdk-surface

Conversation

@matrix72c

Copy link
Copy Markdown
Owner

Change

docs/SDK.md writes down what a consumer and an extension package may import: the top-level and native symbol tables, the stability commitments an extension can plan around before 1.0 (the tables are additive until a changelog entry says otherwise, the grading phase order, the layer graph the import contracts pin), and the error classification a retry policy needs -- infrastructure failures raise with category and retryable, a grading outcome is a result and never an exception, ExecOutcomeUnknown is never replayed. A unit test parses both tables and checks them against __all__, so the doc and the surface cannot drift apart silently. Writing the table down found one gap: CommandBusy is now exported at the top level, like every other error type a consumer catches.

The attempt lifecycle's fake-platform harness moves from private test scaffolding to flotilla.testing.attempt, so a downstream can test its own episode loop -- verify, or the three phase primitives called by hand -- with no platform, registry, or network. The lifecycle tests consume it from there.

docs/Architecture.md gains the Layers section: the stack bottom-up, each row naming the import contract that enforces it, and the two deliberately lazy edges (config->compose, deployment->compose.task), plus phase terminology rows. The integration guide and README point at the new doc and the harness. Last in the layering series (#73, #74, #75, #76, #77).

Validation

CI fast on this PR. Full container suite at this commit: ruff, format, mypy strict (163 files), lint-imports (10 contracts), pytest 1299 passed (2 new SDK-surface tests).

Release impact

Added: flotilla.testing.attempt (AttemptHarness, prepared_source, write_task, stage_dataset, VERIFY_COMMAND), docs/SDK.md, top-level CommandBusy export. CHANGELOG Unreleased updated.

docs/SDK.md writes down what a consumer and an extension package may
import: the top-level and native symbol tables, the stability
commitments an extension can plan around before 1.0 (the tables are
additive until a changelog entry says otherwise, the grading phase
order, the layer graph the import contracts pin), and the error
classification a retry policy needs -- infrastructure failures raise
with category and retryable, a grading outcome is a result and never
an exception, ExecOutcomeUnknown is never replayed. A unit test parses
both tables and checks them against __all__, so the doc and the surface
cannot drift apart silently. Writing the table down found one gap:
CommandBusy is now exported at the top level, like every other error
type a consumer catches.

The attempt lifecycle's fake-platform harness moves from private test
scaffolding to flotilla.testing.attempt, so a downstream can test its
own episode loop -- verify, or the three phase primitives called by
hand -- with no platform, registry, or network. The lifecycle tests
consume it from there.

docs/Architecture.md gains the Layers section: the stack bottom-up,
each row naming the import contract that enforces it, and the two
deliberately lazy edges (config->compose, deployment->compose.task),
plus phase terminology rows. The integration guide and README point at
the new doc and the harness.
@matrix72c
matrix72c merged commit c327aa6 into main Nov 19, 2026
4 checks passed
@matrix72c
matrix72c deleted the sdk-surface branch November 19, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant