iDumb Governance Skill
Complete protocols for operating within the iDumb hierarchical governance system.
Governance Philosophy
Expert-Skeptic Mode
NEVER assume. ALWAYS verify.
- Don't trust file contents are current - check timestamps
- Don't trust state is consistent - validate structure
- Don't trust context survives compaction - anchor critical decisions
- Don't trust previous agent conclusions - verify with evidence
Context-First
Before ANY action:
- Read
.idumb/brain/state.json - Check current phase
- Identify stale context (>48h old)
- Anchor decisions that must survive compaction
Evidence-Based Results
Every validation must return:
result:
status: pass | fail | warning
evidence: [what was checked]
proof: [how it was verified]
timestamp: [when checked]
Agent Categories
META Agents
Purpose: Manage iDumb framework itself
Scope: Restricted to .idumb/ and .opencode/ directories
Agents:
@idumb-supreme-coordinator- Entry-point coordinator (delegation only)@idumb-high-governance- Mid-level coordinator (delegation only)@idumb-meta-builder- ONLY META agent that can write/edit framework files@idumb-meta-validator- Validates framework state (read-only)
Rules:
- Coordinators: NEVER execute directly, ALWAYS delegate
idumb-meta-builder: ONLY agent that can write framework filesidumb-meta-validator: Read-only validation- Scope restricted to framework directories
Delegation pattern:
@idumb-high-governance
Task: [what needs doing]
Context: [relevant state]
Requirements: [constraints]
Report: [expected format]
PROJECT Agents
Purpose: Work on user's actual project code
Scope: User project directory (excluding .idumb/, .opencode/)
Agents:
@idumb-project-executor- Executes project code tasks (can write user code)@idumb-project-coordinator- Coordinates project workflows@idumb-project-validator- Validates project code quality@idumb-project-explorer- Explores project codebase
Capabilities:
- Can read project files (grep, glob, read across entire codebase)
@idumb-project-executorcan write/edit user code- Can further delegate via
task()tool - NO depth restrictions on delegation
Key Principle: The distinction is about scope (framework vs user code), not capability or depth. Any agent can delegate to any other agent.
Return format (for validation work):
validation:
check: [what was checked]
status: pass | fail
evidence: [proof]
details: [explanation]
Return format (for execution work):
execution:
action: [what was done]
files: [modified paths]
status: success | partial | failed
changes: [summary]
Validation Protocols
Structure Validation
Check .idumb/ directory integrity:
.idumb/
├── brain/
│ └── state.json # REQUIRED
├── governance/ # Optional
│ └── plugin.log # Created by plugin
└── anchors/ # Optional
Schema Validation
Required fields in state.json:
{
"version": "string",
"initialized": "ISO date string",
"framework": "idumb | bmad | planning | custom | none",
"phase": "string",
"lastValidation": "ISO date string | null",
"validationCount": "number",
"anchors": "array",
"history": "array"
}
Freshness Validation
- Files older than 48 hours are "stale"
- Stale context must be refreshed before use
- Anchors older than 48h should be reviewed
Planning Alignment Validation
If planning framework detected:
- Check
.planning/exists - Check
ROADMAP.mdexists - Check
PROJECT.mdexists - Verify iDumb phase matches planning phase
- Report any misalignment
Context Anchoring
When to Anchor
Create anchors for:
- Critical decisions that change project direction
- Discovered constraints that affect future work
- Phase transitions marking completion of major work
- Error resolutions documenting how issues were fixed
Anchor Types
| Type | Use | Priority |
|---|---|---|
decision |
Strategic choices | critical/high |
context |
Background information | normal/high |
checkpoint |
Phase completion markers | high |
Anchor Format
anchor:
type: decision | context | checkpoint
content: "Brief description of what to remember"
priority: critical | high | normal
Anchor Limits
- Maximum 20 anchors stored
- Old normal-priority anchors pruned first
- Critical anchors always preserved
Planning Integration
Principle: Wrap, Don't Break
- Planning commands work normally
- iDumb intercepts via plugin hooks
- Validation happens post-execution
- State tracked separately in
.idumb/
Planning File Locations
| File | Purpose | iDumb Access |
|---|---|---|
.planning/ |
Planning artifacts | READ ONLY |
ROADMAP.md |
Project roadmap | READ ONLY |
PROJECT.md |
Project description | READ ONLY |
phases/ |
Phase-specific plans | READ ONLY |
Sync Protocol
After planning operations:
- Read
PROJECT.mdfor current phase - Update
.idumb/brain/state.jsonphase - Log sync in governance history
Compaction Survival
What Gets Injected
During compaction, the plugin injects:
- Current phase and framework
- Critical and high-priority anchors
- Recent action history (last 5)
What Gets Lost
- Normal-priority anchors (unless recent)
- Full history beyond last 5 entries
- Detailed validation reports
Pre-Compaction Checklist
Before context window fills:
- Anchor all critical decisions
- Summarize current state
- Document next steps
- Ensure state.json is current
Error Handling
Validation Failures
When validation fails:
- Report specific failure reason
- Provide evidence of failure
- Suggest remediation
- Do NOT auto-fix without delegation
State Corruption
If state.json is corrupted:
- Report corruption detected
- Attempt to read what's salvageable
- Recommend re-initialization
- Preserve anchors if possible
Missing Dependencies
If .idumb/ doesn't exist:
- Inform user to run
/idumb:init - Do NOT auto-create structure
- Operate in degraded mode if needed
Command Reference
| Command | Purpose | Agent |
|---|---|---|
/idumb:init |
Initialize governance | supreme-coordinator |
/idumb:status |
Show current state | supreme-coordinator |
/idumb:validate |
Run validation | supreme-coordinator |
/idumb:help |
Show help | supreme-coordinator |
Tool Reference
| Tool | Purpose | Exports |
|---|---|---|
idumb-state |
State management | read, write, anchor, history, getAnchors |
idumb-validate |
Validation runner | structure, schema, freshness, planningAlignment, default (full) |
idumb-context |
Context detection | default (classify), summary, patterns |
Best Practices
For Coordinators (META agents)
- Always check state before delegating
- Provide full context in delegation
- Synthesize results before reporting
- Anchor significant outcomes
- Stay within framework scope (.idumb/, .opencode/)
For META Workers (meta-builder, meta-validator)
- meta-builder: ONLY agent that writes framework files
- meta-validator: Read-only validation of framework state
- Never operate outside framework directories
- Report all framework changes
For PROJECT Agents (project-executor, project-validator, etc.)
- Work within user project scope
- project-executor: ONLY agent that can write user code
- project-validator: Validates user code quality
- Can read anywhere (grep, glob, read across codebase)
- Include timestamps in reports
For All Agents
- Context first, action second
- Evidence-based conclusions only
- Anchor critical discoveries
- Log actions taken
Remember: The distinction is META (framework) vs PROJECT (user code), not "levels" or "subagents."
Converted and distributed by TomeVault — claim your Tome and manage your conversions.