Skip to content

feat(governance): add classified governance migration engine - #31

Merged
Kucell merged 8 commits into
mainfrom
feat/rdg-ms008-governance-migration
Oct 6, 2026
Merged

Kucell merged 8 commits into
mainfrom
feat/rdg-ms008-governance-migration

Conversation

@Kucell

@Kucell Kucell commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Purpose

Implement Remote & Detached Governance MS-008 — Migration & State Classification approved by D-RDG-MS008-20261006.

This PR introduces a resumable, fail-closed migration engine that reuses the existing M-042 state registry instead of creating a second classification system.

Scope

  • map M-042 policies to durable / derived / ephemeral migration classes;
  • expand the state registry to classify portable framework state used by real .agent trees;
  • skip machine-local / instance-local / local state from authority migration;
  • fail closed on unclassified state;
  • add migration manifest with hashes and class metadata;
  • implement filesystem -> detached filesystem copy + verify + cutover;
  • archive the old embedded authority instead of deleting it;
  • update .agent to a single canonical symlink after cutover;
  • update cortex.project.json binding only after verification;
  • add local GitGovernanceStore seeding + hash verification primitive;
  • persist migration journal and rollback on failure;
  • add migration/state-registry regressions to M-040 validation.

Transaction

PREPARE
→ COPY
→ VERIFY
→ FREEZE OLD AUTHORITY
→ FLIP CANONICAL BINDING
→ VERIFY NEW AUTHORITY
→ ARCHIVE OLD SOURCE
→ COMPLETED

Boundaries

  • no provider network transport;
  • no clone/fetch/push;
  • no remote repository creation;
  • Git target must already be locally accessible;
  • remote provider synchronization remains outside MS-008.

Governance

@Kucell
Kucell marked this pull request as ready for review October 6, 2026 07:36
@Kucell
Kucell merged commit 07beb37 into main Oct 6, 2026
5 checks passed
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