Skip to content

feat: v0.2 sovereign change planning - #22

Merged
aidankhogg merged 3 commits into
dev/alpha-tmpfrom
codex/add-v0.2-sovereign-change-planning
Aug 2, 2026
Merged

feat: v0.2 sovereign change planning#22
aidankhogg merged 3 commits into
dev/alpha-tmpfrom
codex/add-v0.2-sovereign-change-planning

Conversation

@aidankhogg

Copy link
Copy Markdown
Contributor

Motivation

  • Introduce a deterministic, provider-neutral change-planning layer (v0.2) that sits between static world declarations and any future runtime/provider execution.
  • Prevent early provider-driven architecture choices by evaluating proposals offline, admitting or rejecting them, and producing non-executable reconciliation plans.

Description

  • Add src/netsovereign/planning.py implementing canonical JSON/digests, accepted revision lineage, typed Change objects, observed-state snapshots, compare_worlds, admit_change, and build_plan producing provider-neutral ReconciliationPlan and approval gates.
  • Extend the CLI (src/netsovereign/cli.py) with diff, admit, and plan commands, offline observed snapshot loading, and stable JSON output for decisions and plans.
  • Expand documentation (docs/roadmap.md, README.md, CHANGELOG.md) to describe the v0.2 acceptance boundary and roadmap through v1.0.
  • Bump package API/version to 0.2.0 and export planning types from the package root.
  • Add tests (tests/test_planning.py) that exercise digest determinism, separation of provider-bindings from canonical intent, mandate-aware admission rules, observed drift handling, deterministic plan construction, and CLI end-to-end flows.

Testing

  • Ran linters and static checks: uv run ruff check src tests (passed).
  • Type checks: uv run mypy (passed).
  • Unit test suite: uv run pytest (29 tests passed).
  • Build produced distributions: uv build (wheel and sdist built successfully).
  • New tests specifically exercise canonical_json/digest, compare_worlds, admit_change, build_plan, observed snapshot handling, and the diff/admit/plan CLI commands (all passing).

Codex Task

@aidankhogg aidankhogg self-assigned this Aug 2, 2026
@aidankhogg aidankhogg added the enhancement New feature or request label Aug 2, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 06251f2614

ℹ️ 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".

Comment thread src/netsovereign/planning.py Outdated
Comment thread src/netsovereign/planning.py Outdated
Comment thread src/netsovereign/planning.py
Comment thread src/netsovereign/planning.py Outdated
Comment thread src/netsovereign/planning.py Outdated
Comment thread src/netsovereign/planning.py Outdated
@aidankhogg
aidankhogg merged commit 33268cd into dev/alpha-tmp Aug 2, 2026
2 checks passed
@aidankhogg
aidankhogg deleted the codex/add-v0.2-sovereign-change-planning branch August 2, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant