@boshu2/vibe-check 1.5.0 → 1.6.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.
Files changed (147) hide show
  1. package/.agents/bundles/insight-mining-dashboard-research-2025-11-30.md +400 -0
  2. package/.agents/bundles/storage-enhancement-research-2025-11-30.md +292 -0
  3. package/.agents/bundles/timeline-feature-research-complete-2025-11-30.md +301 -0
  4. package/.agents/plans/insight-dashboard-plan-2025-11-30.md +1130 -0
  5. package/.agents/plans/json-storage-enhancement-plan.md +717 -0
  6. package/.agents/plans/storage-hardening-and-cache-plan.md +592 -0
  7. package/.agents/plans/test-coverage-gaps-plan.md +1117 -0
  8. package/.agents/plans/timeline-feature-plan.md +193 -0
  9. package/.agents/plans/vibe_timeline_research_findings.md +553 -0
  10. package/.claude/settings.local.json +1 -0
  11. package/.vibe-check/.gitignore +6 -0
  12. package/CHANGELOG.md +46 -0
  13. package/CLAUDE.md +24 -0
  14. package/CONTRIBUTING.md +227 -0
  15. package/README.md +200 -143
  16. package/claude-progress.json +191 -9
  17. package/claude-progress.txt +257 -0
  18. package/dashboard/app.js +75 -2
  19. package/dashboard/dashboard-data.json +653 -0
  20. package/dashboard/index.html +13 -0
  21. package/dashboard/styles.css +61 -0
  22. package/dist/analysis/cross-session-analysis.d.ts +68 -0
  23. package/dist/analysis/cross-session-analysis.d.ts.map +1 -0
  24. package/dist/analysis/cross-session-analysis.js +174 -0
  25. package/dist/analysis/cross-session-analysis.js.map +1 -0
  26. package/dist/analysis/index.d.ts +2 -0
  27. package/dist/analysis/index.d.ts.map +1 -0
  28. package/dist/analysis/index.js +12 -0
  29. package/dist/analysis/index.js.map +1 -0
  30. package/dist/cli.js +10 -1
  31. package/dist/cli.js.map +1 -1
  32. package/dist/commands/analyze.d.ts +2 -0
  33. package/dist/commands/analyze.d.ts.map +1 -1
  34. package/dist/commands/analyze.js +105 -2
  35. package/dist/commands/analyze.js.map +1 -1
  36. package/dist/commands/cache.d.ts +6 -0
  37. package/dist/commands/cache.d.ts.map +1 -0
  38. package/dist/commands/cache.js +168 -0
  39. package/dist/commands/cache.js.map +1 -0
  40. package/dist/commands/dashboard.d.ts +8 -0
  41. package/dist/commands/dashboard.d.ts.map +1 -0
  42. package/dist/commands/dashboard.js +109 -0
  43. package/dist/commands/dashboard.js.map +1 -0
  44. package/dist/commands/index.d.ts +3 -0
  45. package/dist/commands/index.d.ts.map +1 -1
  46. package/dist/commands/index.js +8 -1
  47. package/dist/commands/index.js.map +1 -1
  48. package/dist/commands/timeline.d.ts +14 -0
  49. package/dist/commands/timeline.d.ts.map +1 -0
  50. package/dist/commands/timeline.js +462 -0
  51. package/dist/commands/timeline.js.map +1 -0
  52. package/dist/git.d.ts +24 -0
  53. package/dist/git.d.ts.map +1 -1
  54. package/dist/git.js +94 -0
  55. package/dist/git.js.map +1 -1
  56. package/dist/insights/generators.d.ts +44 -0
  57. package/dist/insights/generators.d.ts.map +1 -0
  58. package/dist/insights/generators.js +289 -0
  59. package/dist/insights/generators.js.map +1 -0
  60. package/dist/insights/index.d.ts +16 -0
  61. package/dist/insights/index.d.ts.map +1 -0
  62. package/dist/insights/index.js +171 -0
  63. package/dist/insights/index.js.map +1 -0
  64. package/dist/insights/types.d.ts +93 -0
  65. package/dist/insights/types.d.ts.map +1 -0
  66. package/dist/insights/types.js +6 -0
  67. package/dist/insights/types.js.map +1 -0
  68. package/dist/output/timeline-html.d.ts +6 -0
  69. package/dist/output/timeline-html.d.ts.map +1 -0
  70. package/dist/output/timeline-html.js +389 -0
  71. package/dist/output/timeline-html.js.map +1 -0
  72. package/dist/output/timeline-markdown.d.ts +6 -0
  73. package/dist/output/timeline-markdown.d.ts.map +1 -0
  74. package/dist/output/timeline-markdown.js +167 -0
  75. package/dist/output/timeline-markdown.js.map +1 -0
  76. package/dist/output/timeline.d.ts +9 -0
  77. package/dist/output/timeline.d.ts.map +1 -0
  78. package/dist/output/timeline.js +318 -0
  79. package/dist/output/timeline.js.map +1 -0
  80. package/dist/patterns/detour.d.ts +32 -0
  81. package/dist/patterns/detour.d.ts.map +1 -0
  82. package/dist/patterns/detour.js +137 -0
  83. package/dist/patterns/detour.js.map +1 -0
  84. package/dist/patterns/flow-state.d.ts +16 -0
  85. package/dist/patterns/flow-state.d.ts.map +1 -0
  86. package/dist/patterns/flow-state.js +40 -0
  87. package/dist/patterns/flow-state.js.map +1 -0
  88. package/dist/patterns/index.d.ts +8 -0
  89. package/dist/patterns/index.d.ts.map +1 -0
  90. package/dist/patterns/index.js +22 -0
  91. package/dist/patterns/index.js.map +1 -0
  92. package/dist/patterns/intervention-effectiveness.d.ts +42 -0
  93. package/dist/patterns/intervention-effectiveness.d.ts.map +1 -0
  94. package/dist/patterns/intervention-effectiveness.js +196 -0
  95. package/dist/patterns/intervention-effectiveness.js.map +1 -0
  96. package/dist/patterns/late-night.d.ts +30 -0
  97. package/dist/patterns/late-night.d.ts.map +1 -0
  98. package/dist/patterns/late-night.js +141 -0
  99. package/dist/patterns/late-night.js.map +1 -0
  100. package/dist/patterns/post-delete-sprint.d.ts +28 -0
  101. package/dist/patterns/post-delete-sprint.d.ts.map +1 -0
  102. package/dist/patterns/post-delete-sprint.js +85 -0
  103. package/dist/patterns/post-delete-sprint.js.map +1 -0
  104. package/dist/patterns/spiral-regression.d.ts +49 -0
  105. package/dist/patterns/spiral-regression.d.ts.map +1 -0
  106. package/dist/patterns/spiral-regression.js +219 -0
  107. package/dist/patterns/spiral-regression.js.map +1 -0
  108. package/dist/patterns/thrashing.d.ts +25 -0
  109. package/dist/patterns/thrashing.d.ts.map +1 -0
  110. package/dist/patterns/thrashing.js +111 -0
  111. package/dist/patterns/thrashing.js.map +1 -0
  112. package/dist/storage/atomic.d.ts +40 -0
  113. package/dist/storage/atomic.d.ts.map +1 -0
  114. package/dist/storage/atomic.js +155 -0
  115. package/dist/storage/atomic.js.map +1 -0
  116. package/dist/storage/commit-log.d.ts +35 -0
  117. package/dist/storage/commit-log.d.ts.map +1 -0
  118. package/dist/storage/commit-log.js +128 -0
  119. package/dist/storage/commit-log.js.map +1 -0
  120. package/dist/storage/index.d.ts +5 -0
  121. package/dist/storage/index.d.ts.map +1 -0
  122. package/dist/storage/index.js +33 -0
  123. package/dist/storage/index.js.map +1 -0
  124. package/dist/storage/schema.d.ts +32 -0
  125. package/dist/storage/schema.d.ts.map +1 -0
  126. package/dist/storage/schema.js +37 -0
  127. package/dist/storage/schema.js.map +1 -0
  128. package/dist/storage/timeline-store.d.ts +117 -0
  129. package/dist/storage/timeline-store.d.ts.map +1 -0
  130. package/dist/storage/timeline-store.js +438 -0
  131. package/dist/storage/timeline-store.js.map +1 -0
  132. package/dist/types.d.ts +96 -0
  133. package/dist/types.d.ts.map +1 -1
  134. package/docs/ARCHITECTURE.md +458 -0
  135. package/docs/DATA-ARCHITECTURE.md +565 -0
  136. package/docs/GAMIFICATION.md +564 -0
  137. package/docs/JSON-STORAGE-PATTERNS.md +512 -0
  138. package/docs/METRICS-EXPLAINED.md +394 -0
  139. package/docs/UNIFIED-ECOSYSTEM.md +560 -0
  140. package/docs/VIBE-ECOSYSTEM.md +406 -0
  141. package/feature-list.json +48 -0
  142. package/package.json +2 -1
  143. package/vitest.config.ts +1 -5
  144. package/.vibe-check/calibration.json +0 -38
  145. package/.vibe-check/latest.json +0 -114
  146. package/.vibe-check/sessions.json +0 -44
  147. package/PLAN-ultimate-game.md +0 -1362
@@ -0,0 +1,560 @@
1
+ # The Unified Vibe-Coding Ecosystem
2
+
3
+ **A complete map of how vibe-coding, vibe-check, 12-Factor AgentOps, and Knowledge OS connect**
4
+
5
+ ---
6
+
7
+ ## Executive Summary
8
+
9
+ This document maps an integrated ecosystem for reliable AI-assisted development:
10
+
11
+ ```
12
+ KNOWLEDGE OS (Foundation Layer)
13
+ Git as Institutional Memory
14
+
15
+ ┌─────────────────────┼─────────────────────┐
16
+ │ │ │
17
+ ▼ ▼ ▼
18
+ BUILD WORK WITH RUN
19
+ 12-Factor Vibe-Coding 12-Factor
20
+ Agents Methodology AgentOps
21
+ │ │ │
22
+ └─────────────────────┼─────────────────────┘
23
+
24
+
25
+ MEASURE
26
+ vibe-check
27
+ (5 Core Metrics)
28
+ ```
29
+
30
+ **The insight:** These aren't competing frameworks. They're layers of a complete system—each solving a different problem at a different timescale.
31
+
32
+ ---
33
+
34
+ ## The Three-Layer Architecture
35
+
36
+ ### Layer 1: BUILD - 12-Factor Agents
37
+
38
+ **Source:** Dex Horthy (HumanLayer)
39
+ **Focus:** Engineering patterns for constructing production-grade agents
40
+
41
+ How to build agents that:
42
+ - Handle context windows correctly
43
+ - Manage tool calls reliably
44
+ - Control execution flow
45
+ - Interface with humans appropriately
46
+
47
+ ### Layer 2: WORK - Vibe-Coding Methodology
48
+
49
+ **Source:** Gene Kim & Steve Yegge (with Dario Amodei foreword)
50
+ **Focus:** How developers work effectively WITH AI agents
51
+
52
+ Answers:
53
+ - How much to trust AI output? (Vibe Levels 0-5)
54
+ - What can go wrong? (12 Failure Patterns)
55
+ - How to organize work? (Three Developer Loops)
56
+ - What does success look like? (FAAFO framework)
57
+
58
+ ### Layer 3: RUN - 12-Factor AgentOps
59
+
60
+ **Source:** 2 years production validation (1,175+ commits, 95% success)
61
+ **Focus:** Operational discipline for running agents reliably
62
+
63
+ Provides:
64
+ - The Five Laws (mandatory behaviors)
65
+ - The 12 Factors (operational patterns)
66
+ - The 40% Rule (context engineering)
67
+ - Validation gates (prevent, detect, correct)
68
+
69
+ ### Foundation: Knowledge OS
70
+
71
+ **Concept:** Git as operating system for institutional memory
72
+
73
+ Enables:
74
+ - Commits as memory writes (Context/Solution/Learning/Impact)
75
+ - History as searchable knowledge base
76
+ - Patterns compound across sessions
77
+ - Zero knowledge loss when people leave
78
+
79
+ ---
80
+
81
+ ## Vibe-Coding: The Methodology
82
+
83
+ ### What Is Vibe-Coding?
84
+
85
+ The iterative conversation that results in AI writing your code. You're no longer the line cook (implementer)—you're the **head chef** (orchestrator), with AI as your sous chefs.
86
+
87
+ ### The FAAFO Framework
88
+
89
+ | Dimension | Meaning | Measurement |
90
+ |-----------|---------|-------------|
91
+ | **F**ast | 10-16x productivity gains | Time to delivery |
92
+ | **A**mbitious | Impossible becomes possible | Scope expansion |
93
+ | **A**utonomous | Solo replaces team coordination | Dependencies reduced |
94
+ | **F**un | 50% more "happy time" | Developer satisfaction |
95
+ | **O**ptionality | 120x more strategic options | Option value formula |
96
+
97
+ **Option Value Formula:**
98
+ ```
99
+ Option Value = (N × K × σ) / t
100
+
101
+ N = Number of independent modules
102
+ K = Concurrent experiments (AI parallelism)
103
+ σ = Uncertainty magnitude / payoff
104
+ t = Time per experiment
105
+
106
+ Before AI: 0.71σ per day
107
+ After AI: 200σ per day (282x improvement)
108
+ ```
109
+
110
+ ### The Three Developer Loops
111
+
112
+ Failures happen at different timescales. Prevention must match:
113
+
114
+ | Loop | Timeframe | Focus | Failures |
115
+ |------|-----------|-------|----------|
116
+ | **Inner** | Seconds-Minutes | Direct AI collaboration | Tests lie, context amnesia, debug spirals |
117
+ | **Middle** | Hours-Days | Multi-agent coordination | Eldritch horrors, workspace collision, deadlock |
118
+ | **Outer** | Weeks-Months | Architecture & process | Bridge torching, repo deletion, process gridlock |
119
+
120
+ ```
121
+ OUTER LOOP (Weeks-Months)
122
+ ┌─────────────────────────────────┐
123
+ │ MIDDLE LOOP (Hours-Days) │
124
+ │ ┌─────────────────────────┐ │
125
+ │ │ INNER LOOP (Sec-Min) │ │
126
+ │ │ ┌─────────────────┐ │ │
127
+ │ │ │ You + AI │ │ │
128
+ │ │ └─────────────────┘ │ │
129
+ │ └─────────────────────────┘ │
130
+ └─────────────────────────────────┘
131
+ ```
132
+
133
+ ### The 12 Failure Patterns
134
+
135
+ **Inner Loop (immediate):**
136
+ 1. Tests Passing Lie - AI claims "all green" but code broken
137
+ 2. Context Amnesia - Forgets instructions from 5 minutes ago
138
+ 3. Instruction Drift - Starts "improving" things you didn't ask
139
+ 4. Debug Loop Spiral - Adds logging instead of fixing
140
+
141
+ **Middle Loop (hours-days):**
142
+ 5. Eldritch Code Horror - 3,000-line functions, everything tangled
143
+ 6. Agent Workspace Collision - Multiple agents corrupt each other
144
+ 7. Memory Tattoo Decay - Progress docs become stale
145
+ 8. Multi-Agent Deadlock - Circular dependencies
146
+
147
+ **Outer Loop (weeks-months):**
148
+ 9. Bridge Torching - AI breaks APIs, downstream code fails
149
+ 10. Repository Deletion - AI deletes "unused" branches
150
+ 11. Process Gridlock - Approvals negate AI gains
151
+ 12. Stewnami - Workspace chaos, 200-file merge conflicts
152
+
153
+ ---
154
+
155
+ ## Vibe Levels: The Trust Calibration Framework
156
+
157
+ **Core Question:** How much can I trust AI here, and how much should I verify?
158
+
159
+ | Level | Name | Trust | Verify | Use For |
160
+ |:-----:|------|:-----:|:------:|---------|
161
+ | **0** | Manual | 0% | N/A | Novel research, first-time security |
162
+ | **1** | AI-Assisted | 20% | Every line | Architecture, security design |
163
+ | **2** | AI-Augmented | 40% | Every change | Integrations, OAuth, APIs |
164
+ | **3** | Supervised | 60% | Key outputs | Features, tests, CRUD |
165
+ | **4** | Conditional | 80% | Spot check | Boilerplate, formatting |
166
+ | **5** | Full Autonomy | 95% | Final only | Formatting, linting, style |
167
+
168
+ **Key insight:** Vibe Levels are **personal** and **skill-dependent**. The same task requires different levels for different developers.
169
+
170
+ ### Calibration Cycle
171
+
172
+ ```
173
+ BEFORE DURING AFTER
174
+ ────── ────── ─────
175
+ vibe-check → Work at level → vibe-check
176
+ baseline results
177
+
178
+ "My trust is 75%, "Level 3 for me, "Rework up,
179
+ SSL is weak spot" review key outputs" 2 spirals"
180
+
181
+
182
+
183
+ LEARN & CALIBRATE
184
+ ─────────────────
185
+ "SSL should be Level 2 for me, not Level 3"
186
+ ```
187
+
188
+ ---
189
+
190
+ ## vibe-check: The Measurement Tool
191
+
192
+ ### Purpose
193
+
194
+ Measures AI-assisted development effectiveness through git history analysis. Provides feedback loop for vibe level calibration.
195
+
196
+ ### The 5 Core Metrics
197
+
198
+ | Metric | Question | Elite | Needs Work |
199
+ |--------|----------|-------|------------|
200
+ | **Iteration Velocity** | How tight are feedback loops? | >5/hr | <3/hr |
201
+ | **Rework Ratio** | Building or debugging? | <30% | >50% |
202
+ | **Trust Pass Rate** | Does code stick? | >95% | <80% |
203
+ | **Debug Spiral Duration** | How long stuck? | <15m | >45m |
204
+ | **Flow Efficiency** | What % productive? | >90% | <70% |
205
+
206
+ **Trust Pass Rate** is THE key metric—it measures whether you vibed at the right level.
207
+
208
+ ### Key Features (v1.5.0)
209
+
210
+ - **Watch Mode** - Real-time spiral detection
211
+ - **Automatic Baseline** - Compares to YOUR historical patterns
212
+ - **Pattern Memory** - Tracks your spiral triggers
213
+ - **Intervention Tracking** - Records what breaks your spirals
214
+ - **Gamification** - XP, streaks, achievements, challenges
215
+ - **GitHub Action** - Automated PR feedback
216
+
217
+ ### The Feedback Loop
218
+
219
+ ```
220
+ vibe-check baseline → Declare vibe level → Work → vibe-check results
221
+ ↑ │
222
+ └──────────── Learn & Calibrate ←──────────────┘
223
+ ```
224
+
225
+ ---
226
+
227
+ ## 12-Factor AgentOps: The Operational Framework
228
+
229
+ ### The Five Laws (Mandatory Behaviors)
230
+
231
+ | Law | Principle | Enforcement |
232
+ |-----|-----------|-------------|
233
+ | **1** | ALWAYS Extract Learnings | Commits require "Learning:" section |
234
+ | **2** | ALWAYS Improve Self or System | Telemetry identifies improvements |
235
+ | **3** | ALWAYS Document Context | Context/Solution/Learning/Impact format |
236
+ | **4** | ALWAYS Validate Before Execute | Pre-commit hooks, CI gates |
237
+ | **5** | ALWAYS Share Patterns | Single-responsibility = reusable |
238
+
239
+ ### The 12 Factors
240
+
241
+ **Foundation (I-IV) - Build Trust:**
242
+ - I. Automated Tracking (Git as memory)
243
+ - II. Context Loading (40% rule)
244
+ - III. Focused Agents (single responsibility)
245
+ - IV. Continuous Validation (gates at every step)
246
+
247
+ **Operations (V-VIII) - Run Reliably:**
248
+ - V. Measure Everything (metrics, logs, traces)
249
+ - VI. Resume Work (state persistence)
250
+ - VII. Smart Routing (right agent for job)
251
+ - VIII. Human Validation (approval gates)
252
+
253
+ **Improvement (IX-XII) - Learn Continuously:**
254
+ - IX. Mine Patterns (search git history)
255
+ - X. Small Iterations (compound improvements)
256
+ - XI. Fail-Safe Checks (prevent repeating mistakes)
257
+ - XII. Package Patterns (reusable bundles)
258
+
259
+ ### The 40% Rule
260
+
261
+ **Never exceed 40% of context window utilization.**
262
+
263
+ | Utilization | Effect | Evidence |
264
+ |-------------|--------|----------|
265
+ | 0-40% | Optimal | Cognitive psychology, LLM research |
266
+ | 40-60% | Degradation begins | "Lost in the middle" effect |
267
+ | 60-80% | Significant errors | Instruction loss, drift |
268
+ | 80-100% | Critical failure | Confabulation, contradictions |
269
+
270
+ **Production validation:** 95% success under 40% vs 60% over 80%
271
+
272
+ ---
273
+
274
+ ## Knowledge OS: The Foundation Layer
275
+
276
+ ### Core Concept
277
+
278
+ **Git is not just version control. Git IS the operating system for institutional memory.**
279
+
280
+ ### The Paradigm Shift
281
+
282
+ | Traditional Git | Knowledge OS |
283
+ |-----------------|--------------|
284
+ | Commits = file changes | Commits = memory writes |
285
+ | Value = prevents losing work | Value = compounds learning |
286
+ | Result = code management | Result = knowledge management |
287
+
288
+ ### The Four-Component Commit
289
+
290
+ ```
291
+ <type>(<scope>): <subject>
292
+
293
+ Context: Why this work was needed
294
+ Solution: What was done and how
295
+ Learning: Reusable insights extracted
296
+ Impact: Quantified value delivered
297
+ ```
298
+
299
+ ### Knowledge Compounding
300
+
301
+ ```
302
+ Year 1: Solve 100 problems → Extract 20 patterns
303
+ Year 2: Apply 20 patterns → Solve 200 problems → Extract 40 patterns
304
+ Year 3: Apply 60 patterns → Solve 500 problems → Framework emerges
305
+
306
+ Result: Exponential growth (800 problems vs 300 linear)
307
+ ```
308
+
309
+ ---
310
+
311
+ ## How Everything Connects
312
+
313
+ ### The Integration Map
314
+
315
+ ```
316
+ ┌─────────────────────────────────────────────────────────────────┐
317
+ │ KNOWLEDGE OS │
318
+ │ (Git as Institutional Memory) │
319
+ │ │
320
+ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
321
+ │ │ 12-Factor │ │ Vibe-Coding │ │ 12-Factor │ │
322
+ │ │ Agents │ │ Methodology │ │ AgentOps │ │
323
+ │ │ │ │ │ │ │ │
324
+ │ │ BUILD │ │ WORK WITH │ │ RUN │ │
325
+ │ │ agents │ │ agents │ │ agents │ │
326
+ │ │ correctly │ │ effectively │ │ reliably │ │
327
+ │ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ │
328
+ │ │ │ │ │
329
+ │ └────────────┬────┴────────┬────────┘ │
330
+ │ │ │ │
331
+ │ ▼ ▼ │
332
+ │ ┌───────────────────────────┐ │
333
+ │ │ vibe-check │ │
334
+ │ │ (5 Core Metrics) │ │
335
+ │ │ │ │
336
+ │ │ Iteration Velocity │ │
337
+ │ │ Rework Ratio │ │
338
+ │ │ Trust Pass Rate ← KEY │ │
339
+ │ │ Debug Spiral Duration │ │
340
+ │ │ Flow Efficiency │ │
341
+ │ └───────────────────────────┘ │
342
+ │ │ │
343
+ │ ▼ │
344
+ │ ┌───────────────────────────┐ │
345
+ │ │ Vibe Levels │ │
346
+ │ │ (Trust Calibration) │ │
347
+ │ │ │ │
348
+ │ │ Level 5: 95% trust │ │
349
+ │ │ Level 4: 80% trust │ │
350
+ │ │ Level 3: 60% trust │ │
351
+ │ │ Level 2: 40% trust │ │
352
+ │ │ Level 1: 20% trust │ │
353
+ │ │ Level 0: 0% trust │ │
354
+ │ └───────────────────────────┘ │
355
+ │ │
356
+ └─────────────────────────────────────────────────────────────────┘
357
+ ```
358
+
359
+ ### Cross-Framework Mappings
360
+
361
+ **Vibe-Coding Failures → AgentOps Prevention:**
362
+
363
+ | Failure Pattern | Loop | AgentOps Factor | Prevention |
364
+ |-----------------|------|-----------------|------------|
365
+ | Tests Passing Lie | Inner | IV (Validation) | Independent test execution |
366
+ | Context Amnesia | Inner | II (Context) | 40% rule + JIT loading |
367
+ | Debug Spiral | Inner | V (Measure) | vibe-check watch mode |
368
+ | Eldritch Horror | Middle | III (Focused) | Single-responsibility agents |
369
+ | Workspace Collision | Middle | VII (Routing) | Clear boundaries |
370
+ | Bridge Torching | Outer | IV (Validation) | API compatibility tests |
371
+
372
+ **vibe-check Metrics → AgentOps Factors:**
373
+
374
+ | Metric | Enabled By |
375
+ |--------|------------|
376
+ | Iteration Velocity | Factor I (tracking), Factor II (context) |
377
+ | Rework Ratio | Factor IV (validation), Factor IX (patterns) |
378
+ | Trust Pass Rate | Factor V (measure), Factor IV (validation) |
379
+ | Debug Spiral Duration | Factor V (measure), Factor XI (fail-safes) |
380
+ | Flow Efficiency | Factor II (context), Factor VI (resume) |
381
+
382
+ **Vibe Levels → Trust Calibration:**
383
+
384
+ | Vibe Level | Maps To | AgentOps Implication |
385
+ |------------|---------|---------------------|
386
+ | 5 (95%) | Factor VIII minimal | Human validates final only |
387
+ | 4 (80%) | Factor VIII light | Spot check sufficient |
388
+ | 3 (60%) | Factor IV standard | Validate key outputs |
389
+ | 2 (40%) | Factor IV strict | Validate every change |
390
+ | 1 (20%) | Factor VIII heavy | Human reviews everything |
391
+ | 0 (0%) | No AI | Manual research |
392
+
393
+ ### The Feedback Loops
394
+
395
+ **Inner Loop (seconds-minutes):**
396
+ ```
397
+ Write code → vibe-check watch → Spiral alert → Intervene → Continue
398
+ ```
399
+
400
+ **Middle Loop (hours-days):**
401
+ ```
402
+ Start session → Declare level → Work → vibe-check results → Calibrate
403
+ ```
404
+
405
+ **Outer Loop (weeks-months):**
406
+ ```
407
+ Pattern memory → Identify triggers → Adjust vibe levels → Improve over time
408
+ ```
409
+
410
+ ---
411
+
412
+ ## The Four Pillars (Shared Foundation)
413
+
414
+ All frameworks share these foundational pillars:
415
+
416
+ ### 1. DevOps + SRE (20 years operations)
417
+
418
+ - Shift-left testing (catch errors early)
419
+ - Observability (measure everything)
420
+ - Blameless postmortems (learn from failures)
421
+ - Continuous improvement (kaizen)
422
+
423
+ ### 2. Learning Science (Cognitive Psychology)
424
+
425
+ - Deliberate practice requires reflection
426
+ - Schema formation (specific → general)
427
+ - Transfer of learning (patterns to new contexts)
428
+ - Cognitive load management (40% rule)
429
+
430
+ ### 3. Context Engineering (LLM Research)
431
+
432
+ - Context windows degrade at ~40%
433
+ - "Lost in the middle" effect
434
+ - JIT loading prevents collapse
435
+ - External memory extends capacity
436
+
437
+ ### 4. Knowledge OS (Git as Memory)
438
+
439
+ - Commits = memory writes
440
+ - History = searchable knowledge
441
+ - Patterns compound exponentially
442
+ - Zero knowledge loss
443
+
444
+ ---
445
+
446
+ ## Production Validation
447
+
448
+ ### Measured Results
449
+
450
+ | Metric | Before | After | Source |
451
+ |--------|--------|-------|--------|
452
+ | Success rate | 35% | 95% | 12-Factor AgentOps (200+ sessions) |
453
+ | Context collapse | 65% | 0% | 40% rule enforcement |
454
+ | Task completion | 45 min | 12 min | 3.75x improvement |
455
+ | Documentation rework | 40% | 2% | 20x improvement |
456
+ | Speedup | 1x | 40x | Git metrics verification |
457
+
458
+ ### Key Evidence
459
+
460
+ - **1,175+ commits** with Context/Solution/Learning/Impact
461
+ - **204 production sessions** tracked and measured
462
+ - **52 focused agents** vs 1 monolithic (6x faster, 2.4x more reliable)
463
+ - **50+ patterns** extracted from git history
464
+ - **8x efficiency** from 40% rule across workspace
465
+
466
+ ---
467
+
468
+ ## Corpus Location Map
469
+
470
+ ### Primary Sources
471
+
472
+ | Corpus | Location | Purpose |
473
+ |--------|----------|---------|
474
+ | **Vibe-Coding** | `gitops/docs/corpora/vibe-coding-corpus/` | Research foundation (68k tokens) |
475
+ | **12-Factor AgentOps** | `personal/12-factor-agentops/` | Operational framework |
476
+ | **vibe-check** | `personal/vibe-check/` | Measurement tool (npm) |
477
+ | **Knowledge OS** | `personal/CLAUDE.md` | Workspace orchestration |
478
+
479
+ ### Key Files
480
+
481
+ **Vibe-Coding:**
482
+ - `vibe-coding-corpus/02-frameworks/vibe-coding/FAAFO.md`
483
+ - `vibe-coding-corpus/02-frameworks/vibe-levels/Vibe-Levels.md`
484
+ - `vibe-coding-corpus/03-patterns/failure-patterns/`
485
+
486
+ **AgentOps:**
487
+ - `12-factor-agentops/factors/` (all 12 factors)
488
+ - `12-factor-agentops/docs/principles/five-laws.md`
489
+ - `12-factor-agentops/docs/00-SUMMARY.md`
490
+
491
+ **vibe-check:**
492
+ - `vibe-check/README.md`
493
+ - `vibe-check/docs/VIBE-ECOSYSTEM.md`
494
+ - `vibe-check/src/` (implementation)
495
+
496
+ **Knowledge OS:**
497
+ - `personal/CLAUDE.md` (workspace kernel)
498
+ - `gitops/CLAUDE.md` (team kernel)
499
+
500
+ ---
501
+
502
+ ## Quick Reference
503
+
504
+ ### When to Use What
505
+
506
+ | Situation | Use |
507
+ |-----------|-----|
508
+ | Starting a task | Classify vibe level (0-5) |
509
+ | During work | `vibe-check watch` for spiral detection |
510
+ | After work | `vibe-check --since "1 hour"` for feedback |
511
+ | Multi-day project | 2-Agent Harness + feature-list.json |
512
+ | Building agents | 12-Factor Agents patterns |
513
+ | Operating agents | 12-Factor AgentOps discipline |
514
+ | Tracking progress | Knowledge OS (git commits) |
515
+
516
+ ### The Daily Workflow
517
+
518
+ ```
519
+ 1. Check baseline: vibe-check profile
520
+ 2. Classify task: What vibe level?
521
+ 3. Start monitoring: vibe-check watch
522
+ 4. Work with appropriate verification
523
+ 5. End session: vibe-check results
524
+ 6. Extract learning: Commit with Context/Solution/Learning/Impact
525
+ 7. Calibrate: Adjust future vibe levels based on results
526
+ ```
527
+
528
+ ### The Laws to Remember
529
+
530
+ 1. **ALWAYS Extract Learnings** - Every session produces reusable patterns
531
+ 2. **ALWAYS Improve** - Leave the system better than you found it
532
+ 3. **ALWAYS Document Context** - Future you will thank present you
533
+ 4. **ALWAYS Validate First** - Prevention is 100x cheaper than recovery
534
+ 5. **ALWAYS Share** - Knowledge shared is knowledge multiplied
535
+
536
+ ---
537
+
538
+ ## Summary
539
+
540
+ The unified ecosystem provides:
541
+
542
+ | Layer | Framework | Answers |
543
+ |-------|-----------|---------|
544
+ | Foundation | Knowledge OS | How do we preserve and compound knowledge? |
545
+ | BUILD | 12-Factor Agents | How do we construct production-grade agents? |
546
+ | WORK | Vibe-Coding | How do we work effectively with AI? |
547
+ | RUN | 12-Factor AgentOps | How do we operate agents reliably? |
548
+ | MEASURE | vibe-check | How do we know if it's working? |
549
+ | CALIBRATE | Vibe Levels | How much should we trust and verify? |
550
+
551
+ **The synthesis:** These frameworks form a complete system for 10x productivity without chaos. Each layer addresses a different concern at a different timescale, and they integrate through shared principles (the Four Pillars) and measurement (vibe-check metrics).
552
+
553
+ **The competitive advantage:** This ecosystem compounds knowledge over time. Every session improves the system. Every pattern extracted prevents future mistakes. Every calibration increases trust accuracy. The result is exponential growth in capability—a 2-year moat that competitors cannot replicate without doing the same disciplined work.
554
+
555
+ ---
556
+
557
+ *"Vibe Coding shows the destination. AgentOps provides the navigation. Knowledge OS remembers the journey. vibe-check measures the progress."*
558
+
559
+ **Version:** 1.0.0
560
+ **Last Updated:** 2025-11-29