@tyroneross/build-loop 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +1 -1
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +1 -1
- package/AGENTS.md +71 -18
- package/README.md +208 -299
- package/agents/advisor.md +2 -0
- package/agents/alignment-checker.md +2 -0
- package/agents/api-assessor.md +3 -1
- package/agents/architecture-scout.md +2 -0
- package/agents/assessment-orchestrator.md +2 -0
- package/agents/build-orchestrator.md +13 -8
- package/agents/database-assessor.md +107 -3
- package/agents/design-contract-specialist.md +2 -0
- package/agents/fact-checker.md +2 -0
- package/agents/fix-critique.md +26 -5
- package/agents/frontend-assessor.md +3 -1
- package/agents/implementer.md +2 -0
- package/agents/independent-auditor.md +2 -0
- package/agents/mock-scanner.md +2 -0
- package/agents/optimize-runner.md +2 -0
- package/agents/overfitting-reviewer.md +2 -0
- package/agents/performance-assessor.md +3 -1
- package/agents/plan-critic.md +5 -2
- package/agents/promotion-reviewer.md +2 -0
- package/agents/recurring-pattern-detector.md +4 -1
- package/agents/retrospective-synthesizer.md +14 -0
- package/agents/root-cause-investigator.md +39 -2
- package/agents/scope-auditor.md +2 -0
- package/agents/security-reviewer.md +3 -0
- package/agents/self-improvement-architect.md +2 -0
- package/agents/synthesis-critic.md +2 -0
- package/agents/transcript-pattern-miner.md +2 -0
- package/agents/ui-validator.md +2 -0
- package/assets/build-loop-plugin-icon.png +0 -0
- package/bin/build-loop-install.js +234 -0
- package/commands/run.md +1 -1
- package/hooks/git/pre-commit +40 -0
- package/hooks/git/pre-push +35 -10
- package/hooks/hooks.json +42 -5
- package/hooks/pre-edit-architecture.sh +2 -2
- package/hooks/route-guard.sh +15 -0
- package/hooks/route_guard.py +221 -0
- package/hooks/session-start-extensions.sh +10 -0
- package/hooks/session-start-git-hooks.sh +6 -1
- package/hooks/session-start-rally-point.sh +23 -1
- package/hooks/test_session_start_rally_version.sh +123 -0
- package/package.json +7 -2
- package/plugin-artifacts/codex/.codex-plugin/plugin.json +1 -1
- package/plugin-artifacts/codex/AGENTS.md +77 -16
- package/plugin-artifacts/codex/README.md +208 -299
- package/plugin-artifacts/codex/assets/build-loop-plugin-icon.png +0 -0
- package/plugin-artifacts/codex/references/agent-role-taxonomy.md +34 -0
- package/plugin-artifacts/codex/references/backlog-system.md +285 -0
- package/plugin-artifacts/codex/references/capability-routing.md +49 -0
- package/plugin-artifacts/codex/references/coordination-file-template.md +2 -2
- package/plugin-artifacts/codex/references/coordination-rules.md +275 -6
- package/plugin-artifacts/codex/references/memory-systems.md +25 -2
- package/plugin-artifacts/codex/references/memory.md +16 -0
- package/plugin-artifacts/codex/references/model-tier-mapping.md +45 -6
- package/plugin-artifacts/codex/references/phase-1-assess.md +19 -1
- package/plugin-artifacts/codex/references/phase-2-plan.md +10 -1
- package/plugin-artifacts/codex/references/phase-3-execute.md +5 -3
- package/plugin-artifacts/codex/references/phase-4-review.md +22 -1
- package/plugin-artifacts/codex/references/phase-5-iterate.md +4 -3
- package/plugin-artifacts/codex/references/phase-6-learn.md +3 -1
- package/plugin-artifacts/codex/references/verify-dispatch.md +85 -0
- package/plugin-artifacts/codex/skills/build-loop/SKILL.md +19 -10
- package/plugin-artifacts/codex/skills/build-loop/fallbacks.md +1 -1
- package/plugin-artifacts/codex/skills/build-loop/references/capability-routing.md +49 -0
- package/plugin-artifacts/codex/skills/build-loop/references/experiment-results-template.md +101 -0
- package/plugin-artifacts/codex/skills/build-loop/references/memory.md +16 -0
- package/plugin-artifacts/codex/skills/build-loop/references/output-style.md +98 -5
- package/plugin-artifacts/codex/skills/build-loop/references/phase-1-assess.md +19 -1
- package/plugin-artifacts/codex/skills/build-loop/references/phase-2-plan.md +10 -1
- package/plugin-artifacts/codex/skills/build-loop/references/phase-3-execute.md +5 -3
- package/plugin-artifacts/codex/skills/build-loop/references/phase-4-review.md +22 -1
- package/plugin-artifacts/codex/skills/build-loop/references/phase-5-iterate.md +4 -3
- package/plugin-artifacts/codex/skills/build-loop/references/phase-6-learn.md +3 -1
- package/plugin-artifacts/codex/skills/build-loop/references/verify-dispatch.md +85 -0
- package/plugin-artifacts/codex/skills/build-loop/templates/codex-worker-prompt.md +4 -0
- package/scripts/build_codex_plugin_artifact.py +7 -0
- package/scripts/embed_backend.py +17 -13
- package/scripts/lessons_index/query.py +1 -1
- package/scripts/memory_graph/__init__.py +2 -2
- package/scripts/sync_navgator_lessons.py +4 -4
- package/skills/api-registry-bridge/SKILL.md +1 -1
- package/skills/auto-decision-capture/SKILL.md +4 -3
- package/skills/auto-finding-capture/SKILL.md +119 -0
- package/skills/build-loop/SKILL.md +19 -10
- package/skills/build-loop/fallbacks.md +1 -1
- package/skills/build-loop/references/capability-routing.md +49 -0
- package/skills/build-loop/references/experiment-results-template.md +101 -0
- package/skills/build-loop/references/memory.md +14 -0
- package/skills/build-loop/references/output-style.md +98 -5
- package/skills/build-loop/references/phase-1-assess.md +19 -1
- package/skills/build-loop/references/phase-2-plan.md +10 -1
- package/skills/build-loop/references/phase-3-execute.md +5 -3
- package/skills/build-loop/references/phase-4-review.md +20 -1
- package/skills/build-loop/references/phase-5-iterate.md +4 -3
- package/skills/build-loop/references/phase-6-learn.md +2 -0
- package/skills/build-loop/references/verify-dispatch.md +85 -0
- package/skills/build-loop/templates/codex-worker-prompt.md +4 -0
- package/skills/debug-loop/SKILL.md +4 -2
- package/skills/debugging-memory/SKILL.md +24 -12
- package/skills/{debugging/assess/SKILL.md → debugging-memory/references/assess.md} +6 -13
- package/skills/{debugging/memory/SKILL.md → debugging-memory/references/search.md} +10 -17
- package/skills/{debugging/store/SKILL.md → debugging-memory/references/store.md} +5 -13
- package/skills/debugging-memory/references/subagent-integration.md +3 -3
- package/skills/defenseclaw-bridge/SKILL.md +1 -1
- package/skills/{loop-builder → focused-loop-builder}/SKILL.md +6 -6
- package/skills/ibr-bridge/SKILL.md +1 -1
- package/skills/knowledge/SKILL.md +13 -2
- package/skills/{knowledge-review/SKILL.md → knowledge/references/review-mode.md} +8 -20
- package/skills/logging-tracer/SKILL.md +20 -4
- package/skills/model-bakeoff/SKILL.md +44 -0
- package/skills/model-tiering/SKILL.md +55 -20
- package/skills/optimize/SKILL.md +2 -2
- package/skills/prd-bridge/SKILL.md +1 -1
- package/skills/recursive-retrospective/SKILL.md +46 -0
- package/skills/recursive-retrospective/references/01-retrospective.md +136 -0
- package/skills/recursive-retrospective/references/02-learning-capture.md +72 -0
- package/skills/recursive-retrospective/references/03-judge.md +45 -0
- package/skills/research/SKILL.md +1 -1
- package/skills/root-cause-analysis/SKILL.md +42 -0
- package/skills/security-methodology/SKILL.md +10 -1
- package/skills/security-scan/SKILL.md +55 -0
- package/skills/spec-writing/SKILL.md +42 -1
- package/skills/sync-skills/SKILL.md +8 -7
- package/commands/assess.md +0 -41
- package/commands/compose-handoff.md +0 -113
- package/commands/debug.md +0 -20
- package/commands/debugger-detail.md +0 -34
- package/commands/debugger-scan.md +0 -15
- package/commands/debugger-status.md +0 -20
- package/commands/debugger.md +0 -32
- package/commands/optimize-run.md +0 -31
- package/commands/promote-experiment.md +0 -129
- package/commands/rally-point.md +0 -301
- package/commands/research-run.md +0 -22
- package/commands/review-knowledge.md +0 -16
- package/commands/self-review.md +0 -51
- package/commands/setup-memory.md +0 -32
- package/commands/start-prd.md +0 -57
- package/commands/test.md +0 -34
- package/commands/verify-plan.md +0 -39
- package/skills/debugging/debug-loop/SKILL.md +0 -231
- package/skills/logging-tracer-bridge/SKILL.md +0 -70
- /package/skills/{loop-builder → focused-loop-builder}/presets/active-project-evidence.yaml +0 -0
- /package/skills/{loop-builder → focused-loop-builder}/presets/generic-artifact-loop.yaml +0 -0
- /package/skills/{loop-builder → focused-loop-builder}/presets/presentation-audit.yaml +0 -0
- /package/skills/{loop-builder → focused-loop-builder}/presets/research-synthesis.yaml +0 -0
- /package/skills/{loop-builder → focused-loop-builder}/presets/source-ingestion-raw-data-audit.yaml +0 -0
- /package/skills/{loop-builder → focused-loop-builder}/references/spec-format.md +0 -0
- /package/skills/{loop-builder → focused-loop-builder}/scripts/loop_builder.py +0 -0
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: build-loop:debugging-debug-loop
|
|
3
|
-
description: Iterative root-cause debugging with 5 Whys, causal/fault-tree analysis, hypothesis testing, fix-verify-score cycles, and fix-critique pressure-test. Up to 5 iterations. Build-loop's native debug loop, adapted from debugger workflows.
|
|
4
|
-
version: 0.1.0
|
|
5
|
-
user-invocable: false
|
|
6
|
-
source: claude-code-debugger/skills/debug-loop/SKILL.md
|
|
7
|
-
source_hash: 07b2dd2ad30c210b14bbac3c4e7ddd772ed642dd4c478dfbdb81b52ae809c92a
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
<!-- SPDX-FileCopyrightText: 2025-2026 Tyrone Ross, Jr <46267523+tyroneross@users.noreply.github.com> | SPDX-License-Identifier: Apache-2.0 -->
|
|
11
|
-
|
|
12
|
-
# Debug Loop — Iterative Root Cause Debugging
|
|
13
|
-
|
|
14
|
-
A 7-phase debugging loop: investigate with structured root-cause methods, hypothesize root cause, implement targeted fix, verify with evidence, score against criteria, pressure-test via critique agent, and report with transparency markers. Iterates up to 5x on failures. Native to build-loop; initially adapted from the debugger workflow lineage.
|
|
15
|
-
|
|
16
|
-
## Scope Check
|
|
17
|
-
|
|
18
|
-
Trigger is the **verdict category**, not a numeric score — research shows LLM-assigned confidence scores are poorly calibrated for open-ended tasks (Tian et al., EMNLP 2023; 49-84% calibration error on open-ended generation).
|
|
19
|
-
|
|
20
|
-
- **Skip the loop** if `build-loop:debugging-memory` returned `KNOWN_FIX` — apply the fix directly and verify
|
|
21
|
-
- **Skip the loop** for trivial issues: typos, missing imports, obvious config errors
|
|
22
|
-
- **Enter the loop** when: verdict is `LIKELY_MATCH`, `WEAK_SIGNAL`, or `NO_MATCH`, the user asks for deep investigation, the initial diagnosis feels superficial, or a previous fix attempt didn't hold
|
|
23
|
-
|
|
24
|
-
## Efficiency
|
|
25
|
-
|
|
26
|
-
- Terminal output: current phase, key findings (one line each), status changes, failures. No verbose reasoning
|
|
27
|
-
- Agent context: minimum needed per job. Pass symptom + relevant findings, not full conversation history
|
|
28
|
-
- Load convergence rules reference on demand only when entering iteration
|
|
29
|
-
|
|
30
|
-
## Phase 1: INVESTIGATE — Gather Evidence and Trace Root Cause
|
|
31
|
-
|
|
32
|
-
**Goal**: Understand what's actually failing and why, not just what it looks like.
|
|
33
|
-
|
|
34
|
-
1. **Search debugging memory** — invoke `build-loop:debugging-memory` with the symptom. Note related incidents from local build-loop memory and optional standalone Coding Debugger memory when available.
|
|
35
|
-
2. **Reproduce the issue** — identify exact steps, commands, or conditions that trigger the bug
|
|
36
|
-
3. **Deploy `root-cause-investigator` agent** — pass the symptom and reproduction steps for causal tree analysis. The agent explores multiple branches (not a single chain), prioritizes by evidence strength, and prunes with evidence.
|
|
37
|
-
4. **Research gate** — if the investigator flags unfamiliar error codes, library behavior, or version-specific issues:
|
|
38
|
-
- Search externally (WebSearch, Context7, or documentation)
|
|
39
|
-
- Document what was searched and what was found
|
|
40
|
-
- If search is unavailable, document what SHOULD be searched
|
|
41
|
-
5. **Assess completeness** — does the investigation explain ALL reported symptoms? Check for multi-causal bugs (2+ independent root causes)
|
|
42
|
-
|
|
43
|
-
**Output**: Causal tree (with confirmed and pruned branches), reproduction steps, evidence gathered, research performed.
|
|
44
|
-
|
|
45
|
-
### Root-Cause Frameworks
|
|
46
|
-
|
|
47
|
-
Use the lightest framework that fits the failure. Stack frameworks only when the current one stalls.
|
|
48
|
-
|
|
49
|
-
| Framework | Use when | Output |
|
|
50
|
-
|---|---|---|
|
|
51
|
-
| 5 Whys | A symptom has a plausible linear chain and needs a controllable system cause | Five-level why-chain ending in a code, test, config, protocol, or process control |
|
|
52
|
-
| Causal tree / fault tree | Multiple causes could explain the same symptom | Branches with confirming and pruning evidence |
|
|
53
|
-
| Ishikawa / fishbone | The failure may span people/process/code/tooling/data/environment | Category map, then the top 2-3 branches to test |
|
|
54
|
-
| Kepner-Tregoe problem analysis | The issue is intermittent, version-specific, or boundary-sensitive | Is/is-not table: affected/unaffected versions, inputs, users, routes, environments |
|
|
55
|
-
| Differential diagnosis | Several hypotheses look similar from symptoms alone | Ranked hypotheses plus the discriminating test for each |
|
|
56
|
-
| Falsification test | A hypothesis is attractive but under-proven | Smallest test that would disprove it |
|
|
57
|
-
|
|
58
|
-
For hard fixes, record which framework was used and the decisive evidence. The framework is a thinking scaffold, not a report section unless it clarifies the outcome.
|
|
59
|
-
|
|
60
|
-
## Phase 2: HYPOTHESIZE — State the Root Cause
|
|
61
|
-
|
|
62
|
-
**Goal**: Commit to a specific, testable hypothesis before writing any fix.
|
|
63
|
-
|
|
64
|
-
Start with plain language before implementation detail. State what failed in normal words, then trace visible symptom -> technical failure -> upstream dependency/interface/process failure -> first controllable system failure. Do not use "agent forgot", "agent missed context", or similar actor-blame language as the terminal cause unless you also name the missing system control that allowed it.
|
|
65
|
-
|
|
66
|
-
1. **State the root cause hypothesis** with evidence level:
|
|
67
|
-
- **Strong**: Multiple evidence types (code, logs, reproduction) all point to this cause
|
|
68
|
-
- **Moderate**: Some direct evidence plus reasonable inference
|
|
69
|
-
- **Weak**: Mostly inference, limited direct evidence — consider investigating other branches first
|
|
70
|
-
2. **Predict verification test**: If this hypothesis is correct, what specific test would prove it?
|
|
71
|
-
3. **Predict related symptoms**: What else should be affected if this root cause is real?
|
|
72
|
-
4. **If multiple hypotheses exist**, rank by evidence strength. Pursue the strongest first.
|
|
73
|
-
|
|
74
|
-
## Phase 3: FIX — Implement Targeted Change
|
|
75
|
-
|
|
76
|
-
**Goal**: Make the minimal change that addresses the hypothesized root cause.
|
|
77
|
-
|
|
78
|
-
1. **Fix the root cause, not the symptom** — adding a null check instead of fixing why something is null is a symptom fix
|
|
79
|
-
2. **Minimal changes** — touch only what's needed. Don't refactor, don't improve, don't clean up
|
|
80
|
-
3. **Note exactly what was changed and why** — this becomes the evidence trail
|
|
81
|
-
|
|
82
|
-
## Phase 4: VERIFY — Test the Fix with Evidence
|
|
83
|
-
|
|
84
|
-
**Goal**: Collect concrete evidence that the fix works.
|
|
85
|
-
|
|
86
|
-
1. Run the prediction test from Phase 2 — does it confirm the hypothesis?
|
|
87
|
-
2. Run the original reproduction steps — is the symptom gone?
|
|
88
|
-
3. Run related test suite — do existing tests still pass?
|
|
89
|
-
4. Check for regressions — run broader test suite if available
|
|
90
|
-
5. Verify related symptom predictions — are predicted effects present?
|
|
91
|
-
|
|
92
|
-
Every verification step must produce evidence: command output, test results, observable behavior. "It should work" is not evidence.
|
|
93
|
-
|
|
94
|
-
## Phase 5: SCORE — Evaluate Against Criteria
|
|
95
|
-
|
|
96
|
-
**Goal**: Objective pass/fail with evidence.
|
|
97
|
-
|
|
98
|
-
| # | Criterion | Method | Pass Condition | Evidence Required |
|
|
99
|
-
|---|-----------|--------|----------------|-------------------|
|
|
100
|
-
| 1 | Symptom resolved | Reproduction steps | Symptom no longer occurs | Command output or test result |
|
|
101
|
-
| 2 | Tests pass | Test suite | All relevant tests pass | Test runner output |
|
|
102
|
-
| 3 | No regressions | Broader test suite | No new failures introduced | Test runner output |
|
|
103
|
-
| 4 | Root cause addressed | Code review | Fix targets root cause, not symptom | Diff + reasoning |
|
|
104
|
-
| 5 | Hypothesis confirmed | Prediction test | Prediction test passes | Test output |
|
|
105
|
-
|
|
106
|
-
**All criteria must have evidence.** No criterion marked PASS without proof.
|
|
107
|
-
|
|
108
|
-
If any criterion fails → enter iteration (Phase 6 rules apply).
|
|
109
|
-
If all criteria pass → proceed to critique (Phase 6).
|
|
110
|
-
|
|
111
|
-
## Phase 6: CRITIQUE — Pressure-Test Before Declaring Done
|
|
112
|
-
|
|
113
|
-
**Goal**: Challenge the fix before the user relies on it.
|
|
114
|
-
|
|
115
|
-
1. **Deploy `fix-critique` agent** with: the symptom, the causal tree from investigation (confirmed branch path + pruned branches), the fix (what was changed), the verification evidence
|
|
116
|
-
2. **Evaluate verdict**:
|
|
117
|
-
- **APPROVED** → proceed to REPORT
|
|
118
|
-
- **CHALLENGED** → concerns become input for the next iteration. Route back to INVESTIGATE with the specific challenges as new investigation targets
|
|
119
|
-
|
|
120
|
-
The critique agent checks 5 things:
|
|
121
|
-
- Root cause vs symptom fix
|
|
122
|
-
- Symptom coverage (similar bugs elsewhere)
|
|
123
|
-
- Regression risk
|
|
124
|
-
- Evidence verification
|
|
125
|
-
- Causal tree consistency
|
|
126
|
-
|
|
127
|
-
## Phase 7: REPORT — Transparent Status
|
|
128
|
-
|
|
129
|
-
**Goal**: Clear, honest summary. No overclaiming.
|
|
130
|
-
|
|
131
|
-
### Transparency Markers
|
|
132
|
-
|
|
133
|
-
- ✅ **Verified**: Checked with evidence (test output, reproduction, command results)
|
|
134
|
-
- ⚠️ **Assumed**: Believed true based on reasoning, not verified with a test
|
|
135
|
-
- ❓ **Unknown**: Not checked — explicitly acknowledged gap
|
|
136
|
-
|
|
137
|
-
### Report Contents
|
|
138
|
-
|
|
139
|
-
1. Verdict: Fixed (all criteria pass + critique approved) or Unresolved (iteration limit hit)
|
|
140
|
-
2. Plain-language failure: what went wrong in normal words
|
|
141
|
-
3. Why it happened: symptom -> technical failure -> upstream dependency/interface/process failure -> first controllable system failure
|
|
142
|
-
4. Technical details needed to prove the cause
|
|
143
|
-
5. Tradeoffs and impact
|
|
144
|
-
6. Prevention control
|
|
145
|
-
7. Root cause + evidence level
|
|
146
|
-
8. Causal tree — confirmed branches, pruned branches with rejection evidence, multi-causal findings
|
|
147
|
-
9. Fix applied — what was changed, with rationale
|
|
148
|
-
10. Scorecard — final pass/fail per criterion + evidence
|
|
149
|
-
11. Research used — what was searched, what was found
|
|
150
|
-
12. Iteration history (if >1 iteration) — what was tried, what failed, what changed
|
|
151
|
-
13. Remaining gaps — anything ⚠️ or ❓
|
|
152
|
-
|
|
153
|
-
### After Reporting
|
|
154
|
-
|
|
155
|
-
- Store via `build-loop:debugging-store`
|
|
156
|
-
- Record outcome through standalone Coding Debugger only when it supplied the matched prior incident
|
|
157
|
-
- Write state to `.build-loop/debugging-debug-loop/scorecard.md`
|
|
158
|
-
|
|
159
|
-
## Iteration Rules
|
|
160
|
-
|
|
161
|
-
When any criterion fails or critique is CHALLENGED:
|
|
162
|
-
|
|
163
|
-
1. Diagnose why the criterion failed — don't blind retry
|
|
164
|
-
2. Revise the hypothesis if verification disproved it
|
|
165
|
-
3. Create targeted fix plan for failed criteria only
|
|
166
|
-
4. Execute fix
|
|
167
|
-
5. Re-verify ONLY failed criteria — don't re-run passing checks
|
|
168
|
-
6. Re-score and re-critique
|
|
169
|
-
|
|
170
|
-
### Convergence Detection
|
|
171
|
-
|
|
172
|
-
- **Same hypothesis fails 2x** → escalate to user ("I've tried this approach twice — the hypothesis may be wrong or there's a constraint I'm not seeing")
|
|
173
|
-
- **Fix A breaks criterion B (oscillation)** → flag as coupled issue, present both sides, ask user
|
|
174
|
-
- **3+ criteria fail after a fix** → systemic issue, stop loop and reassess
|
|
175
|
-
- **New regression detected** → fix is causing side effects, reconsider
|
|
176
|
-
- **Hard stop at 5 iterations** → report what's known and what isn't
|
|
177
|
-
|
|
178
|
-
### State Tracking
|
|
179
|
-
|
|
180
|
-
Write iteration state to `.build-loop/debugging-debug-loop/state.json`:
|
|
181
|
-
|
|
182
|
-
```json
|
|
183
|
-
{
|
|
184
|
-
"symptom": "...",
|
|
185
|
-
"iteration": 1,
|
|
186
|
-
"phase": "VERIFY",
|
|
187
|
-
"hypotheses": [
|
|
188
|
-
{ "iteration": 1, "hypothesis": "...", "evidence_level": "strong|moderate|weak", "result": "confirmed|disproved|partial", "evidence": "..." }
|
|
189
|
-
],
|
|
190
|
-
"scorecard": [
|
|
191
|
-
{ "criterion": "symptom_resolved", "result": "PASS|FAIL", "evidence": "..." }
|
|
192
|
-
],
|
|
193
|
-
"critique_verdict": "APPROVED|CHALLENGED|pending",
|
|
194
|
-
"changes_made": ["file:change summary"]
|
|
195
|
-
}
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
`mkdir -p .build-loop/debugging-debug-loop/` before writing.
|
|
199
|
-
|
|
200
|
-
## Process Flow
|
|
201
|
-
|
|
202
|
-
```
|
|
203
|
-
MEMORY SEARCH → INVESTIGATE → HYPOTHESIZE → FIX → VERIFY → SCORE
|
|
204
|
-
↓
|
|
205
|
-
All pass? ──yes──→ CRITIQUE ──approved──→ REPORT
|
|
206
|
-
↓ ↓
|
|
207
|
-
no challenged
|
|
208
|
-
↓ ↓
|
|
209
|
-
ITERATE ←──────────────┘
|
|
210
|
-
(up to 5x)
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
## Anti-Patterns
|
|
214
|
-
|
|
215
|
-
| Anti-Pattern | What to Do Instead |
|
|
216
|
-
|-------------|-------------------|
|
|
217
|
-
| Accepting the first explanation | Branch first — identify 2+ plausible causes |
|
|
218
|
-
| Fixing the symptom | Trace to root cause |
|
|
219
|
-
| "This should fix it" | Run the tests, show the output |
|
|
220
|
-
| Retrying the same approach | If it failed once with the same evidence, change the hypothesis |
|
|
221
|
-
| Declaring victory without evidence | Every claim needs ✅/⚠️/❓ |
|
|
222
|
-
| Skipping research when stuck | Search for unfamiliar behavior |
|
|
223
|
-
| Hiding uncertainty | ⚠️ and ❓ are not failures — hiding them is |
|
|
224
|
-
|
|
225
|
-
## Sibling Skills
|
|
226
|
-
|
|
227
|
-
- `build-loop:debugging-memory` — mandatory pre-step (Phase 1.1)
|
|
228
|
-
- `build-loop:debugging-assess` — escalation path when investigation can't isolate domain
|
|
229
|
-
- `build-loop:debugging-store` — Phase 7 incident storage
|
|
230
|
-
|
|
231
|
-
*Source: adapted from the debugger workflow lineage and maintained as a build-loop-native skill. Drift-checked by `build-loop:sync-skills`.*
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: build-loop:logging-tracer-bridge
|
|
3
|
-
description: Use when the bundled logging-tracer skill signals insufficient tier-selection or codegen, or the user asks for "extended observability" or "cross-build log correlation". Optional escalation to standalone Coding Debugger for additional tracer backends and advanced placement intelligence.
|
|
4
|
-
version: 0.3.0
|
|
5
|
-
user-invocable: false
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- SPDX-FileCopyrightText: 2025-2026 Tyrone Ross, Jr <46267523+tyroneross@users.noreply.github.com> | SPDX-License-Identifier: Apache-2.0 -->
|
|
9
|
-
|
|
10
|
-
# Logging-Tracer Bridge — Extended Capability Escalation
|
|
11
|
-
|
|
12
|
-
As of build-loop 0.7.1 this bridge's role is **escalation, not primary coordination**. The orchestrator owns when-to-fire (Phase 1 Assess observability scan, Phase 5 Iterate reactive trigger on `evidence_gap`) and routes those phases to the bundled internal `build-loop:logging-tracer` skill, which owns tier selection, stack detection, codegen, the ephemeral-by-default policy (Mechanisms A and B), and code-placement rules.
|
|
13
|
-
|
|
14
|
-
This bridge is the **secondary hop**: when the bundled logging-tracer decides it needs more than build-loop ships natively, it can invoke this bridge to delegate to standalone Coding Debugger (if installed) for extended observability tooling.
|
|
15
|
-
|
|
16
|
-
## When this bridge is invoked
|
|
17
|
-
|
|
18
|
-
By `build-loop:logging-tracer`, not the orchestrator. Calling sites:
|
|
19
|
-
|
|
20
|
-
- `build-loop:logging-tracer` §"Extended capability" — when the project requires a tracer backend or placement intelligence beyond what build-loop ships (e.g., a downstream MCP-discoverable log sink that lives in the standalone plugin only)
|
|
21
|
-
|
|
22
|
-
The orchestrator MUST NOT call this bridge directly. Orchestrator → `logging-tracer` skill → (optional) this bridge → standalone plugin.
|
|
23
|
-
|
|
24
|
-
## Pre-flight (always run first)
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
if (!state.availablePlugins.codingDebugger) {
|
|
28
|
-
return { delegated: false, reason: "standalone Coding Debugger plugin not installed" }
|
|
29
|
-
}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
If false, the calling target skill continues with bundled-only capability.
|
|
33
|
-
|
|
34
|
-
## Delegations available
|
|
35
|
-
|
|
36
|
-
| Capability needed | Standalone Skill / MCP call |
|
|
37
|
-
|---|---|
|
|
38
|
-
| Extended tracer backends not in bundle | `Skill("coding-debugger:logging-tracer")` with `tier: <upstream-only>` |
|
|
39
|
-
| Cross-build log correlation (e.g., correlation IDs across multiple build-loop runs) | standalone-only MCP tools |
|
|
40
|
-
| Advanced placement intelligence (e.g., function-call graph aware insertion) | standalone-only assessor skills |
|
|
41
|
-
|
|
42
|
-
The bridge passes through caller-supplied symptom + target-files + tier-hint, returns enriched data to `logging-tracer`. The target skill decides how to fold the extended result into its own codegen.
|
|
43
|
-
|
|
44
|
-
## What this bridge does NOT do
|
|
45
|
-
|
|
46
|
-
- Reimplement tier selection, stack detection, ephemeral mechanisms, or code placement — those live in `build-loop:logging-tracer`
|
|
47
|
-
- Replace the orchestrator's when-to-fire policy (Phase 1 Assess scan, Phase 5 Iterate evidence_gap trigger) — that lives in `agents/build-orchestrator.md`
|
|
48
|
-
- Introduce new logging dependencies without explicit user approval — that constraint stays in `logging-tracer`
|
|
49
|
-
- Mutate build-loop's native `.build-loop/issues/` paths
|
|
50
|
-
- Hard-fail when standalone is absent — pre-flight returns gracefully
|
|
51
|
-
|
|
52
|
-
## State
|
|
53
|
-
|
|
54
|
-
Optional bridge invocations are logged to `.build-loop/state.json.observability.escalations[]`:
|
|
55
|
-
|
|
56
|
-
```json
|
|
57
|
-
{ "ts": "ISO", "calledBy": "logging-tracer", "reason": "tier_3_otel_required", "delegated": true|false }
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Cross-references
|
|
61
|
-
|
|
62
|
-
- `agents/build-orchestrator.md` — when-to-fire policy (Phase 1 Assess scan, Phase 5 Iterate)
|
|
63
|
-
- `skills/logging-tracer/SKILL.md` — primary tier-selection / codegen / ephemeral-by-default skill
|
|
64
|
-
- `skills/build-loop/fallbacks.md` §`debug` — local-only fallback when neither bundled nor standalone is reachable
|
|
65
|
-
|
|
66
|
-
## History
|
|
67
|
-
|
|
68
|
-
- v0.2.0 — coordination layer (orchestrator called this bridge as primary entry point for observability)
|
|
69
|
-
- v0.7.0 — dissolved into `logging-tracer` skill + orchestrator (transient, in-flight architecture)
|
|
70
|
-
- v0.7.1 — restored as **extended-capability escalation hop** with the architecture documented above
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/skills/{loop-builder → focused-loop-builder}/presets/source-ingestion-raw-data-audit.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|