Repository navigation
Publish the SDK surface, the attempt harness, and the layer graph - #78
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
docs/SDK.mdwrites 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 withcategoryandretryable, a grading outcome is a result and never an exception,ExecOutcomeUnknownis 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:CommandBusyis 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.mdgains 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
faston 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-levelCommandBusyexport. CHANGELOGUnreleasedupdated.