بنقرة واحدة
self-check
Mid-execution self-monitoring checkpoint (Ralph Wiggum Loop): Detect warning signs (drift, confusion, gold-plating), course-correct before completion. Mandatory at 25% progress and before delegation.
القائمة
Mid-execution self-monitoring checkpoint (Ralph Wiggum Loop): Detect warning signs (drift, confusion, gold-plating), course-correct before completion. Mandatory at 25% progress and before delegation.
Execute a complete iteration cycle: planning → batch execution → documentation → review setup. Follows file-based orchestration with TDD/ATDD, work logs, and quality gates.
Delegate task to specialist agent when expertise required: Initialize as specialist (Planning Petra, Backend Benny, Architect Alphonso, etc.) OR spawn sub-agent if available. Use when task requires specialized knowledge in agent's core focus area.
Test-first bug fixing: Write failing test that reproduces bug → Fix code → Test passes. Systematic, verifiable approach prevents regression and wastes no time on trial-and-error deployments.
Architect Alphonso conducts rigorous code review and architecture-fit analysis: ADR compliance, test coverage, architectural patterns, security. Outputs review document with APPROVED/REDIRECT/BLOCKED status.
Create functional specification for complex features: detailed requirements, user scenarios, constraints, acceptance criteria. Bridges strategic intent and implementation with MoSCoW prioritization and Given/When/Then scenarios.
Assess current implementation state: pending tasks, active work, progress metrics, blockers, and next recommended batch. Provides Planning Petra's executive view.
| name | self-check |
| description | Mid-execution self-monitoring checkpoint (Ralph Wiggum Loop): Detect warning signs (drift, confusion, gold-plating), course-correct before completion. Mandatory at 25% progress and before delegation. |
| version | 1.0.0 |
| type | quality-gate |
| category | self-monitoring |
Invoke mid-execution checkpoint to detect warning signs and course-correct. Prevents drift, confusion, and wasted effort through systematic self-observation.
When to Invoke (Mandatory):
Optional Invocations:
[mode: current-mode → meta]
🔄 **Ralph Wiggum Loop Checkpoint**
[Timestamp: YYYY-MM-DDTHH:MM:SSZ]
[Current Mode: /previous-mode]
[Task Progress: XX% complete, Step N of M]
[Elapsed Time: XX minutes]
## Self-Observation Checklist
### Execution State
- **Current task:** [one-line description]
- **Original goal:** [from initial prompt or task file]
- **Progress:** [steps completed / total steps]
- **Time budget:** [elapsed / estimated]
### Warning Signs (Mark all that apply)
- [ ] Repetitive patterns: Am I doing the same thing multiple times?
- [ ] Goal drift: Have I lost sight of the original objective?
- [ ] Speculation: Am I guessing instead of validating?
- [ ] Verbosity: Are outputs becoming unclear or too long?
- [ ] Scope creep: Am I adding work not requested?
- [ ] Directive violations: Am I ignoring established protocols?
- [ ] Confusion: Do I understand what I'm doing next?
- [ ] Mode misuse: Is my reasoning mode appropriate?
### Integrity Symbols
- ❗️ Critical issues: [list or "none detected"]
- ⚠️ Warning signs: [list or "none detected"]
- ✅ Alignment status: [confirmed/uncertain/violated]
If warnings detected, identify pattern:
| Pattern | Symptoms | Required Action |
|---|---|---|
| Drift | Scope creep, added features | Revert to original scope |
| Confusion | Multiple ⚠️, uncertainty | Stop and request clarification |
| Gold-plating | Over-engineering, future features | Remove unnecessary work |
| Mode misuse | Wrong reasoning mode | Switch to appropriate mode |
| Repetition | Same actions multiple times | Change approach |
| Speculation | Guessing without validation | Validate assumptions |
If ✅ Aligned:
If ⚠️ Warnings:
If ❗️ Critical:
[mode: meta → previous-mode]
**Checkpoint Result:** ✅ Aligned / ⚠️ Corrected / ❗️ Blocked
**Corrective Actions Taken:** [List or "none needed"]
**Resuming:** [Next specific action]
🔄 **Ralph Wiggum Loop Checkpoint**
[Timestamp: 2026-02-06T14:30:00Z]
[Current Mode: /analysis-mode]
[Task Progress: 25% complete, Step 3 of 12]
[Elapsed Time: 45 minutes]
## Self-Observation Checklist
### Execution State
- **Current task:** Implement GenericYAMLAdapter with ENV support
- **Original goal:** Create adapter that reads tool config from YAML
- **Progress:** 3/12 steps (base class done, env expansion pending)
- **Time budget:** 45min elapsed / 5h estimated (18% time used)
### Warning Signs
- [x] Scope creep: Added caching mechanism not in requirements
- [ ] Repetitive patterns: No
- [ ] Goal drift: No
- [ ] Speculation: No
- [ ] Verbosity: No
- [ ] Directive violations: No
- [ ] Confusion: No
- [ ] Mode misuse: No
### Integrity Symbols
- ❗️ Critical issues: none detected
- ⚠️ Warning signs: Scope creep detected (caching not requested)
- ✅ Alignment status: UNCERTAIN
---
**Pattern Identified:** Gold-plating
- **Symptom:** Added caching for "future performance"
- **Root cause:** Anticipated need without validation
**Corrective Action:**
1. Remove caching code (not in requirements)
2. Add TODO comment if needed later
3. Focus on core adapter functionality only
4. Follow Directive 020 (Locality of Change)
**Result:** ⚠️ Corrected
---
[mode: meta → analysis]
**Checkpoint Result:** ⚠️ Corrected - Removed gold-plating
**Corrective Actions Taken:**
- Deleted 45 lines of caching code
- Simplified to core requirements only
- Added TODO for future consideration
**Resuming:** Implement ENV variable expansion (Step 4)
Symptoms:
Correction:
Symptoms:
Correction:
Symptoms:
Correction:
Symptoms:
Correction:
Symptoms:
Correction:
Symptoms:
Correction:
Agent (Backend-Dev):
Step 1-3: Implement feature...
[At 25% completion]
🔄 Self-Check Checkpoint
✅ Aligned - Continue
Step 4-6: Continue implementation...
[Before delegating to Frontend]
🔄 Self-Check Checkpoint
⚠️ Warning: Scope creep detected
Corrective action: Removed extra validation
✅ Corrected - Ready to delegate
Step 7: Delegate UI task...
Agent: About to make significant architectural change...
🔄 Self-Check Checkpoint
❗️ CRITICAL: Change not aligned with ADR-025
Action: STOP - Request architect review
Status: BLOCKED pending review
Agent: Feature implementation complete...
🔄 Final Self-Check Checkpoint
✅ All requirements met
✅ No scope creep
✅ Tests passing
✅ Work log created
Status: ALIGNED - Ready to complete
Prevents Wasted Effort:
Maintains Quality:
Improves Communication:
Reduces Rework:
🔄 Checkpoint at 25%
✅ On track, aligned
Resume: Continue Step 4
🔄 Checkpoint at 50%
⚠️ Scope creep detected
Corrective action: Removed feature X
Resume: Refocus on core requirements
🔄 Checkpoint at pre-delegation
❗️ Violates ADR-029
Action: STOP - Request architect review
Status: BLOCKED
❌ Skipping mandatory checkpoints:
❌ Ignoring warnings:
❌ Superficial checks:
❌ Over-checking:
✅ Correct usage:
/iterate - Uses self-check at batch milestones/review - Similar systematic evaluation/status - Planning-level health check.github/agents/directives/024_self_observation_protocol.md.github/agents/approaches/ralph-wiggum-loop.md (detailed pattern).github/agents/directives/021_locality_of_change.md (Scope management)