-
-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor resource zome to use Request-Evaluate-Apply pattern #43
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)valueflowsValueFlows ontology compliance and integrationValueFlows ontology compliance and integrationzome-resourceResource zome - specifications, economic resourcesResource zome - specifications, economic resources
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)valueflowsValueFlows ontology compliance and integrationValueFlows ontology compliance and integrationzome-resourceResource zome - specifications, economic resourcesResource zome - specifications, economic resources
Type
Projects
Status
Backlog
Summary
Refactor the resource zome so that all resource state changes pass through the governance zome for approval before being applied. This implements the Request-Evaluate-Apply pattern that is the core flow of the governance-as-operator architecture.
Context
Currently, resource operations (create, update, transfer) happen directly in the resource zome without governance approval. The governance-as-operator architecture requires:
GovernanceTransitionRequestGovernanceTransitionResultThis ensures all resource mutations are governed and auditable.
Technical Implementation
1. New Resource Zome Function
2. Refactor Existing Resource Operations
Identify and refactor resource operations that currently bypass governance:
create_economic_resource— should it require governance approval?update_economic_resource— must pass through governance3. Data Validation vs. Business Validation Split
4. Error Handling
Acceptance Criteria
request_resource_transitionfunction implemented in resource zomeevaluate_state_transitionworks correctlyDependencies
Definition of Done