Workshop 14: Governance and CCL Deep Dive
Learning Objectives
By the end of this workshop, you will be able to:
- Trace governance flow - Follow a proposal from creation to activation
- Read governance tests - Understand integration test expectations
- Identify capability enforcement - Locate CCL capability checks
Goal
Connect governance concepts to the implementation and understand how CCL enforces cooperative policy decisions.
Prerequisites
- Completed Module 14: Governance and CCL
- Familiarity with Module 6 (Ledger and Contracts)
Estimated time
1-2 hours
Related Materials
icn/crates/icn-governance/icn/crates/icn-ccl/docs/design/governance/governance-primitives.md
Part 1: Proposal Lifecycle
Steps
- Open
icn/crates/icn-governance/ - Identify proposal types and their states
- Map state transitions to governance actions
Questions
- Where are proposal status transitions enforced?
- How is voting outcome recorded?
Checkpoint
- You can describe proposal lifecycle states
Part 2: Governance Integration Test
Steps
- Open
icn/crates/icn-governance/tests/governance_integration.rs - Identify the setup, action, and assertion phases
Questions
- What is the test verifying about policy changes?
- What dependencies are required for the test to run?
Checkpoint
- You can summarize the governance integration test
Part 3: CCL Capability Enforcement
Steps
- Search
icn/crates/icn-ccl/for capability checks - Identify where ledger write permissions are validated
Questions
- Which capabilities can mutate ledger state?
- How is capability scope limited?
Checkpoint
- You can locate capability enforcement code
Summary
After completing this workshop you should be able to:
- Explain how proposals move through governance
- Read and interpret governance integration tests
- Identify where CCL enforces capabilities
Next steps
Revisit the manual sections on Governance and CCL for system-level context