Skip to content

fix(governance): honor explicit estate for policy and observation - #93

Merged
rldyourmnd merged 3 commits into
mainfrom
fix/governance-estate-root-20260907
Sep 7, 2026
Merged

fix(governance): honor explicit estate for policy and observation#93
rldyourmnd merged 3 commits into
mainfrom
fix/governance-estate-root-20260907

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

When --estate-root selected a control-plane different from the environment or registered estate, governance loaded provider inventory from the selected root but compiled local policy from the other one. A profile present only in the selected estate incorrectly failed as missing.

The operation-local override now passes through the existing control-plane authority checks for both governance/ruleset planning and read-only local comparison. The precondition observer retains the resolved root. No process environment is changed, and omitted overrides preserve the existing selection behavior.

Validation: reproduced GDS_POLICY_PROFILE_MISSING before the fix; regression verifies explicit/default roots, invalid roots, unchanged environment and observer binding. App/context race tests, full Go quick validation, 47 Python tests, actionlint and repeated native projection checks passed. The rebuilt CLI successfully performed the same read-only reconciliation using the flag alone. No provider write is part of this fix.

Closes #90.

Signed-off-by: rldyourmnd <danil@nddev.it.com>
Signed-off-by: rldyourmnd <danil@nddev.it.com>

# Conflicts:
#	CHANGELOG.md
Signed-off-by: rldyourmnd <danil@nddev.it.com>
@rldyourmnd
rldyourmnd merged commit 3e5538a into main Sep 7, 2026
6 of 7 checks passed
@rldyourmnd
rldyourmnd deleted the fix/governance-estate-root-20260907 branch September 7, 2026 08:07
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.

Governance policy compilation ignores explicit estate-root selection

1 participant