一键导入
idumb-stress-test
META package for stress-testing the iDumb framework itself - validates agent coordination, integration completeness, and regression prevention
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
META package for stress-testing the iDumb framework itself - validates agent coordination, integration completeness, and regression prevention
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Validates iDumb plugin functionality through systematic pivotal trials and stress testing. Ensures all success criteria are met with concrete evidence. Use when testing any iDumb component or before considering implementation complete.
Guides the implementation of the iDumb plugin reboot following the 8-phase pivotal trial methodology. Use when building TypeScript engines, tools, and hooks for intelligent AI governance.
This skill should be used when the user asks to "orchestrate", "delegate", "coordinate agents", "enforce hierarchy", "mindful delegation", "hierarchical thinking", "chain of command", or "orchestrator patterns". Essential for coordinators and high-governance agents to maintain delegation integrity.
Complete iDumb governance protocols - hierarchical delegation, validation patterns, context anchoring, and expert-skeptic mode guidelines
Meta-skill for idumb-builder agent to transform confusing specifications into structured iDumb workflow modules with checkpoints, validation, and integration points. Use when creating reusable workflows, handling overlapping specs, or generating governance modules under .idumb/modules/. This skill enforces the iDumb vision: spec-driven development, context-first validation, drift detection, and hierarchical coordination.
This skill should be used when the user asks to "ingest meta-framework", "transform framework to idumb", "classify framework patterns", "create self-upgrading module", "meta-learning", "framework synthesis", "automated governance enhancement", "pattern extraction", "hierarchical framework analysis", or "iterative framework learning". Essential for idumb-builder to consume external frameworks like BMAD and transform them into iDumb-compatible governance patterns.
| name | idumb-stress-test |
| description | META package for stress-testing the iDumb framework itself - validates agent coordination, integration completeness, and regression prevention |
| version | 1.0.0 |
| license | MIT |
| metadata | {"audience":"ai-agents","workflow":"meta-validation","package":"META","activation":"coordinator-driven","modes":[{"micro":"Real-time validation after each action"},{"batch":"Phase transition validation"},{"full":"Complete stress test suite"}]} |
<activation_modes>
Trigger Conditions:
micro_validation_triggers:
- agent_action_complete: true
- file_modified: "src/agents/*.md OR src/commands/*.md OR src/workflows/*.md"
- delegation_chain_extended: true
- state_write_occurred: true
Coordinator Decision Logic:
use_micro_when:
- high_risk_action: "write to governance files"
- chain_depth: "> 2"
- previous_validation_failed: true
- user_requested: "strict mode"
Checks (Fast, <5s):
Trigger Conditions:
batch_validation_triggers:
- phase_transition: "discussed → planned → executed → verified"
- milestone_complete: true
- session_end: true
- user_requested: "/idumb:stress-test"
Coordinator Decision Logic:
use_batch_when:
- phase_boundary_reached: true
- multiple_files_changed: "> 5 files"
- significant_time_elapsed: "> 30 minutes since last"
- before_commit: true
Checks (Thorough, <60s):
Trigger Conditions:
full_stress_test_triggers:
- user_requested: "/idumb:stress-test --full"
- major_release_prep: true
- post_transformation: true
- certification_required: true
Checks (Complete, <5min):
<test_category name="agent-coordination">
Purpose: Verify all 22 agents work together without conflicts
test: delegation_chain_integrity
description: "Verify delegation paths are valid and complete"
checks:
- for_each_agent:
- parent_exists: "parent agent ID is valid"
- can_delegate_to_children: "delegation targets exist"
- no_circular_delegation: "A→B→C→A not allowed"
- leaf_nodes_cannot_delegate: "builder, validator have task: deny"
validation_command: |
grep -r "parent:" src/agents/*.md |
while read line; do
PARENT=$(echo "$line" | grep -oP 'parent: \K\S+')
test -f "src/agents/idumb-${PARENT}.md" || echo "FAIL: Invalid parent $PARENT"
done
pass_criteria:
- all_parents_exist: true
- no_orphan_agents: true
- no_circular_refs: true
test: permission_matrix_consistency
description: "Verify permission rules don't conflict"
checks:
- coordinators:
- write: deny
- edit: deny
- task: allow
- builders:
- write: allow
- edit: allow
- task: deny
- validators:
- write: deny
- edit: deny
- bash: "read-only"
validation_command: |
for agent in src/agents/idumb-*.md; do
NAME=$(basename "$agent" .md)
WRITE=$(grep -A5 "permission:" "$agent" | grep "write:" | head -1)
TASK=$(grep -A5 "permission:" "$agent" | grep "task:" | head -1)
# Check coordinator rule
if echo "$NAME" | grep -q "coordinator\|governance"; then
echo "$WRITE" | grep -q "deny" || echo "FAIL: $NAME should deny write"
fi
# Check builder rule
if echo "$NAME" | grep -q "builder"; then
echo "$TASK" | grep -q "deny" || echo "FAIL: $NAME should deny task"
fi
done
pass_criteria:
- no_coordinator_writes: true
- no_builder_delegates: true
- all_leaf_nodes_blocked: true
test: agent_spawning_simulation
description: "Simulate agent spawning to verify no deadlocks"
simulation:
- spawn: idumb-supreme-coordinator
- delegate_to: idumb-high-governance
- delegate_to: idumb-mid-coordinator
- delegate_to: idumb-project-executor
- delegate_to: idumb-builder
- verify: "chain completes without loop"
- spawn: idumb-verifier
- delegate_to: idumb-low-validator
- verify: "validation chain completes"
- spawn: idumb-planner
- delegate_to: idumb-plan-checker
- verify: "planning chain completes"
pass_criteria:
- all_chains_complete: true
- no_infinite_loops: true
- max_depth_respected: "≤ 5"
</test_category>
<test_category name="integration-matrix">
Purpose: Verify all components have sufficient integration points (30/15/10 thresholds)
test: agent_integration_points
threshold: 30
for_each_agent:
count_integration_points:
- tools_referenced: "count tool names in frontmatter"
- files_read: "count file paths in execution_flow"
- files_written: "count file paths in output sections"
- agents_delegated_to: "count @agent references"
- agents_delegated_from: "count parent references"
- state_fields_accessed: "count state.json keys"
- commands_triggered: "count /idumb: references"
- workflows_used: "count workflow references"
report:
- agent_name: "name"
- total_points: "sum of above"
- meets_threshold: "≥ 30"
- gap_if_not: "list missing connections"
pass_criteria:
- all_agents: "≥ 30 integration points"
- average: "≥ 35 integration points"
test: command_integration_points
threshold: 15
for_each_command:
count_integration_points:
- agent_binding: "which agent handles"
- tools_used: "idumb-* tool calls"
- state_access: "reads/writes state"
- workflow_triggers: "chained workflows"
- prerequisite_checks: "entry conditions"
- output_artifacts: "files created"
- chain_rules: "success/failure paths"
pass_criteria:
- all_commands: "≥ 15 integration points"
test: workflow_integration_points
threshold: 20
for_each_workflow:
count_integration_points:
- agents_spawned: "delegation matrix"
- tools_invoked: "tool calls in steps"
- state_transitions: "before/after states"
- artifacts_produced: "output files"
- entry_conditions: "prerequisites"
- exit_conditions: "completion criteria"
- chain_rules: "next workflows"
pass_criteria:
- all_workflows: "≥ 20 integration points"
</test_category>
<test_category name="regression-sweep">
Purpose: Ensure changes don't break existing functionality
test: schema_compliance
description: "All artifacts match their schemas"
checks:
- agent_frontmatter:
schema: "src/schemas/agent-frontmatter.json"
files: "src/agents/*.md"
- command_frontmatter:
schema: "src/schemas/command-frontmatter.json"
files: "src/commands/idumb/*.md"
- workflow_structure:
schema: "src/schemas/workflow-structure.json"
files: "src/workflows/*.md"
- state_json:
schema: "src/schemas/state.json"
file: ".idumb/brain/state.json"
pass_criteria:
- all_files_valid: true
- no_schema_violations: true
test: cross_reference_validity
description: "All references point to existing entities"
checks:
- agent_references:
pattern: "@idumb-[a-z-]+"
must_exist: "src/agents/idumb-{name}.md"
- command_references:
pattern: "/idumb:[a-z-]+"
must_exist: "src/commands/idumb/{name}.md"
- workflow_references:
pattern: "workflows/[a-z-]+\\.md"
must_exist: "src/workflows/{name}.md"
- tool_references:
pattern: "idumb-[a-z]+"
must_exist: "src/tools/idumb-{name}.ts"
validation_command: |
# Find all agent references
grep -rhoP '@idumb-[a-z-]+' src/ | sort -u | while read ref; do
AGENT=$(echo "$ref" | sed 's/@//')
test -f "src/agents/${AGENT}.md" || echo "FAIL: Missing agent $AGENT"
done
pass_criteria:
- all_references_valid: true
- no_dangling_refs: true
test: behavioral_consistency
description: "Components behave as documented"
checks:
- coordinators_dont_write:
test: "grep 'write:' in coordinator agents"
expect: "all deny"
- builders_dont_delegate:
test: "grep 'task:' in builder agents"
expect: "all deny"
- validators_are_readonly:
test: "check bash permissions in validators"
expect: "read-only or deny"
- all_have_structured_returns:
test: "grep '<structured_returns>' in all agents"
expect: "section exists"
pass_criteria:
- all_behaviors_match: true
- no_permission_violations: true
</test_category>
<conflict_detection>
agent_agent_conflicts:
- duplicate_scope:
detect: "Two agents claim same responsibility"
example: "Both executor and builder try to write"
resolution: "Clarify delegation boundaries"
- circular_delegation:
detect: "A delegates to B, B delegates to A"
resolution: "Break cycle by hierarchy"
- permission_overlap:
detect: "Non-leaf has write + task permissions"
resolution: "Remove one permission"
agent_tool_conflicts:
- missing_tool:
detect: "Agent references tool that doesn't exist"
resolution: "Create tool or remove reference"
- tool_permission_mismatch:
detect: "Agent calls tool it can't use"
resolution: "Update agent permissions"
command_workflow_conflicts:
- missing_workflow:
detect: "Command triggers non-existent workflow"
resolution: "Create workflow or update command"
- circular_chaining:
detect: "Workflow A chains to B, B chains to A"
resolution: "Redesign chain"
conflict_detection_algorithm:
step_1_build_graph:
- nodes: "all agents, commands, workflows, tools"
- edges: "references between nodes"
step_2_detect_cycles:
- algorithm: "Tarjan's strongly connected components"
- report: "all cycles as conflicts"
step_3_detect_overlaps:
- for_each_pair:
- check_scope_overlap
- check_permission_overlap
- check_responsibility_overlap
step_4_detect_gaps:
- for_each_node:
- check_integration_threshold
- check_required_connections
- check_orphan_status
</conflict_detection>
<gap_detection>
missing_integrations:
- agent_without_parent:
detect: "parent field missing or invalid"
severity: critical
auto_fix: false
- command_without_agent:
detect: "agent field missing"
severity: critical
auto_fix: false
- workflow_without_chain:
detect: "no chain_rules section"
severity: high
auto_fix: "add empty chain_rules"
incomplete_coverage:
- agent_missing_structured_returns:
detect: "no <structured_returns> section"
severity: high
auto_fix: "generate from template"
- command_missing_success_criteria:
detect: "no <success_criteria> section"
severity: medium
auto_fix: "generate checklist"
- workflow_missing_entry_check:
detect: "no <entry_check> section"
severity: high
auto_fix: "generate validation"
drift_detection:
- state_schema_drift:
detect: "state.json doesn't match schema"
severity: critical
auto_fix: "migrate state"
- config_version_drift:
detect: "config version < current"
severity: medium
auto_fix: "upgrade config"
- agent_frontmatter_drift:
detect: "frontmatter missing new required fields"
severity: high
auto_fix: "add missing fields"
</gap_detection>
<self_healing>
auto_fixable:
- missing_required_field:
action: "Add field with default value"
requires_confirmation: false
- syntax_error_yaml:
action: "Parse and reformat"
requires_confirmation: false
- missing_section:
action: "Generate from template"
requires_confirmation: true
- invalid_reference:
action: "Update to valid reference"
requires_confirmation: true
self_healing_workflow:
1_detect:
- run_validation
- classify_issues
2_plan:
- separate_auto_fixable
- create_fix_queue
3_fix:
- for_each_auto_fixable:
- apply_fix
- validate_single
- rollback_if_failed
4_verify:
- run_full_validation
- compare_before_after
5_report:
- issues_fixed: "count"
- issues_remaining: "count"
- manual_action_required: "list"
</self_healing>
<loop_controller>
loop_controller:
mode: "iteration_until_pass"
exit_conditions:
success:
- all_tests_pass: true
- no_critical_gaps: true
- no_conflicts: true
partial:
- critical_gaps: 0
- high_gaps: "documented"
- medium_gaps: "accepted by user"
stall:
- same_output_3_times: true
- no_progress_2_cycles: true
- fix_failed_3_times: true
never_exit_when:
- critical_conflicts_exist: true
- permission_violations_exist: true
- circular_references_exist: true
stall_handling:
on_stall:
- checkpoint_state
- report_progress
- request_guidance
max_iterations: null # No arbitrary limit
progress_metric: "gaps_remaining / gaps_initial"
coordinator_decisions:
after_each_iteration:
- evaluate_progress:
if_improving: "continue"
if_stalled: "escalate"
if_complete: "exit_success"
- evaluate_mode:
if_high_risk: "switch to micro"
if_stable: "switch to batch"
- evaluate_resources:
if_context_high: "checkpoint and compact"
if_time_exceeded: "partial exit with report"
</loop_controller>
# Run micro-validation (fast, after actions)
/idumb:stress-test --micro
# Run batch-validation (thorough, at transitions)
/idumb:stress-test --batch
# Run full stress test (comprehensive)
/idumb:stress-test --full
# Run with self-healing
/idumb:stress-test --heal
# Run certification check
/idumb:certify
# In agent profiles or workflows
auto_validate:
mode: micro
conditions:
- file_modified: "src/agents/*.md"
- severity: high
# At phase transitions
phase_validation:
mode: batch
required: true
block_on_fail: true
<success_criteria>
Skill: idumb-stress-test v1.0.0 - META Package