feat: complete NetEngine v0.3 runtime core - #23
Merged
aidankhogg merged 3 commits intoAug 2, 2026
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f71bf5a1f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
Motivation
resource.manage@1.0capability when the source plan omits explicit capability wiring.Description
src/netsovereign/providersto modelCapabilityRequirement,ProviderDescriptor,ProviderContext,ValidationResult,ProviderResult,ObservationResult, and a providerProtocol. (seeproviders/contracts.py).ProviderRegistrythat rejects duplicates, enforces capability version compatibility, resolves explicit bindings or a single default provider, and produces stable resolution errors (seeproviders/registry.py).providers/fake.py).src/netsovereign/runtime.pythat: topologically orders plan steps, resolves providers, emits anExecutablePlanwith stable ids/fingerprint, implements an explicitOperationStatestate machine, records attempts/transitions/evidence/observations, supports retry policy and failure postures, performs reverse‑order compensation, and supports interruption‑safe resume against the in‑memory repository.netsovereign execute <plan.json> [--dry-run]to compile an admitted plan against the fake registry and run or simulate it (seesrc/netsovereign/cli.py).tests/test_runtime.py) that exercise provider resolution errors, compilation determinism and non‑mutation, state transitions, execution success, dry‑run semantics, retry behavior, observation mismatch handling, compensation, idempotent resume, and interruption recovery.docs/runtime-core-v0.3.md,docs/adr/0003-compile-admitted-plans-into-provider-bound-operations.md) and bump package metadata to0.3.0.Testing
uv run pytest tests/test_runtime.pyand the focused runtime tests passed (8 passed), and the full test suite passed (uv run pytest→56 passed).uv run ruff format --check/uv run ruff checkanduv run mypycompleted with no issues.uv buildproduced a source distribution and wheel fornetsovereign-0.3.0.netsovereign planto produce an admitted plan andnetsovereign execute --dry-runproduced a structured dry‑run report with evidence and observed no provider mutation.Codex Task