-
-
Notifications
You must be signed in to change notification settings - Fork 1
Governance-as-operator testing infrastructure: mock engine and cross-zome tests #45
Copy link
Copy link
Open
Labels
P2-highHigh priority - important for milestone completionHigh priority - important for milestone completioncross-zomeCross-zome integration and coordinationCross-zome integration and coordinationphase-2-governancePhase 2 - Enhanced governance & process integration (current)Phase 2 - Enhanced governance & process integration (current)testingTest infrastructure, scenarios, integration testsTest infrastructure, scenarios, integration testszome-governanceGovernance zome - validation, economic events, commitmentsGovernance zome - validation, economic events, commitments
Milestone
Metadata
Metadata
Assignees
Labels
P2-highHigh priority - important for milestone completionHigh priority - important for milestone completioncross-zomeCross-zome integration and coordinationCross-zome integration and coordinationphase-2-governancePhase 2 - Enhanced governance & process integration (current)Phase 2 - Enhanced governance & process integration (current)testingTest infrastructure, scenarios, integration testsTest infrastructure, scenarios, integration testszome-governanceGovernance zome - validation, economic events, commitmentsGovernance zome - validation, economic events, commitments
Type
Projects
Status
Backlog
Summary
Build the testing infrastructure needed to verify the governance-as-operator pattern: a mock governance engine for isolated resource zome testing, and cross-zome integration tests for the full Request-Evaluate-Apply flow.
Context
The governance-as-operator pattern introduces cross-zome dependencies that require new testing approaches:
Technical Implementation
1. Mock Governance Engine
This enables resource zome tests to:
2. Unit Tests for GovernanceEngine
Test the pure-function evaluation logic:
3. Cross-Zome Integration Tests (Tryorama)
End-to-end scenarios:
4. Test Helpers
Acceptance Criteria
MockGovernanceEnginewithApproveAll,RejectAll,RoleBased,ConditionalmodesGovernanceEngine::evaluate_transitionpure functionbun run testsDependencies
Definition of Done