oneie 3.6.24 → 3.6.25

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 (47) hide show
  1. package/.claude/agents/agent-backend.md +2 -2
  2. package/.claude/agents/agent-designer.md +1 -0
  3. package/.claude/agents/agent-director.md +71 -71
  4. package/.claude/agents/agent-onboard.md +1 -1
  5. package/.claude/agents/agent-ontology.md +2 -2
  6. package/.claude/agents/agent-ops.md +58 -38
  7. package/.claude/agents/agent-sales.md +3 -3
  8. package/.claude/commands/cascade.md +21 -21
  9. package/.claude/commands/create.md +19 -19
  10. package/.claude/commands/deploy.md +82 -104
  11. package/.claude/commands/mcp-on.md +191 -0
  12. package/.claude/commands/one.md +267 -92
  13. package/.claude/commands/plan.md +17 -17
  14. package/.claude/commands/release.md +65 -14
  15. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +473 -0
  16. package/.claude/hooks/README-knowledge-hooks.md +451 -0
  17. package/.claude/hooks/README-root-cleanup.md +200 -0
  18. package/.claude/hooks/README.md +284 -0
  19. package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
  20. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  21. package/.claude/hooks/check-filenames.py +177 -0
  22. package/.claude/hooks/clean-post.py +468 -0
  23. package/.claude/hooks/clean-pre.py +393 -0
  24. package/.claude/hooks/clean-root-markdown.sh +73 -0
  25. package/.claude/hooks/commit-push.sh +95 -0
  26. package/.claude/hooks/done.py +236 -0
  27. package/.claude/hooks/format-hook.sh +163 -0
  28. package/.claude/hooks/hook-logger.sh +173 -0
  29. package/.claude/hooks/knowledge-post.py +355 -0
  30. package/.claude/hooks/knowledge-pre.py +245 -0
  31. package/.claude/hooks/mcp-on.sh +134 -0
  32. package/.claude/hooks/notification-hook.sh +279 -0
  33. package/.claude/hooks/push.sh +101 -0
  34. package/.claude/hooks/release-cli.sh +16 -8
  35. package/.claude/hooks/root-cleanup.py +217 -0
  36. package/.claude/hooks/security-hook.sh +397 -0
  37. package/.claude/hooks/tag-all-docs.py +464 -0
  38. package/.claude/hooks/test-validate-ontology.sh +170 -0
  39. package/.claude/hooks/todo.py +368 -0
  40. package/.claude/hooks/track-changes.sh +101 -0
  41. package/.claude/hooks/validate-ontology-structure-summary.md +243 -0
  42. package/.claude/hooks/validate-ontology-structure.py +518 -0
  43. package/.claude/skills/INDEX.md +1 -1
  44. package/.claude/skills/ontology/README.md +1 -1
  45. package/package.json +1 -1
  46. package/.claude/commands/mcp-toggle.md +0 -93
  47. package/.claude/commands/npx.md +0 -84
@@ -28,7 +28,7 @@ Implement Convex backend infrastructure: schema design, mutations, queries, Effe
28
28
  - Every mutation MUST validate organization context
29
29
  - Every query MUST filter by organizationId
30
30
  - Enforce resource quotas at mutation level
31
- - Track usage: users, courses, storage, API calls, inference
31
+ - Track usage: users, courses, storage, API calls, cycle
32
32
 
33
33
  ### 2. People (Authorization & Governance)
34
34
  - Every mutation MUST identify actor (person)
@@ -385,7 +385,7 @@ watchFor('test_passed', 'quality/all', () => {
385
385
  - **Agent**: agent_created, agent_executed, agent_completed, agent_failed
386
386
  - **Workflow**: task_completed, implementation_complete, fix_started, fix_complete
387
387
  - **Analytics**: metric_calculated, insight_generated, prediction_made
388
- - **Inference**: inference_request, inference_completed, inference_failed
388
+ - **Cycle**: cycle_request, cycle_completed, cycle_failed
389
389
  - **Consolidated**: content_event, payment_event, subscription_event, commerce_event, communication_event, task_event
390
390
 
391
391
  # Critical Mistakes to Avoid
@@ -311,6 +311,7 @@ watchFor('tests_ready_for_*', 'quality/*', (event) => {
311
311
  - Design patterns (layout patterns, component patterns)
312
312
  - Previous designs (similar features, proven solutions)
313
313
  - Accessibility guidelines (WCAG best practices)
314
+ - **PRIMARY REFERENCE:** `one/knowledge/develop/design.md` - Complete design system specification with tokens, guidelines, and implementation patterns
314
315
 
315
316
  **From Workflow Events (ontology dimension 5):**
316
317
  - `entity_created` event (tests defined, ready for design) with metadata.stage: "4_tests"
@@ -279,22 +279,22 @@ From the ontology workflow system, you have 5 responsibilities:
279
279
 
280
280
  **Output:** Validated idea document (`ideas/N-name.md`)
281
281
 
282
- ### 2. Generate 100-Inference Plans (NEW)
282
+ ### 2. Generate 100-Cycle Plans (NEW)
283
283
 
284
284
  **Process:**
285
285
  1. Read feature selections from `.onboarding.json` or user input
286
- 2. Map each feature to inference ranges (e.g., landing-page → Cycle 1-10)
286
+ 2. Map each feature to cycle ranges (e.g., landing-page → Cycle 1-10)
287
287
  3. Resolve dependencies and create execution phases
288
- 4. Calculate total inferences, duration, and cost estimates
289
- 5. Generate complete 100-inference plan with specialist assignments
288
+ 4. Calculate total cycles, duration, and cost estimates
289
+ 5. Generate complete 100-cycle plan with specialist assignments
290
290
  6. Write plan back to `.onboarding.json` for tracking
291
291
 
292
292
  **Output:**
293
- - Complete inference plan in `.onboarding.json`
293
+ - Complete cycle plan in `.onboarding.json`
294
294
  - Execution roadmap with phases and specialists
295
- - Progress tracking structure (currentInference, completedInferences)
295
+ - Progress tracking structure (currentCycle, completedCycles)
296
296
 
297
- **Key Innovation:** Plans are inference-based (not time-based), enabling precise execution and transparent progress tracking.
297
+ **Key Innovation:** Plans are cycle-based (not time-based), enabling precise execution and transparent progress tracking.
298
298
 
299
299
  ### 3. Create Plans (Feature Collections)
300
300
 
@@ -351,10 +351,10 @@ From the ontology workflow system, you have 5 responsibilities:
351
351
  - Dependency resolution allowing safe parallelization
352
352
  - 30-50% faster delivery through parallel execution
353
353
 
354
- ## Feature Library (100-Inference Mapping)
354
+ ## Feature Library (100-Cycle Mapping)
355
355
 
356
- The feature library maps every possible feature to specific inference ranges. Each feature includes:
357
- - **Inference range**: Where it fits in the 100-inference sequence
356
+ The feature library maps every possible feature to specific cycle ranges. Each feature includes:
357
+ - **Cycle range**: Where it fits in the 100-cycle sequence
358
358
  - **Specialist**: Which agent executes it
359
359
  - **Duration**: Estimated time to complete
360
360
  - **Dependencies**: Required features that must complete first
@@ -367,7 +367,7 @@ const FOUNDATION_FEATURES = {
367
367
  "landing-page": {
368
368
  name: "Landing Page",
369
369
  description: "Beautiful landing page with hero, features, CTA",
370
- inferences: [1, 10],
370
+ cycles: [1, 10],
371
371
  specialist: "agent-frontend",
372
372
  duration: "~5 min",
373
373
  cost: "$0",
@@ -385,7 +385,7 @@ const FOUNDATION_FEATURES = {
385
385
  "authentication": {
386
386
  name: "Authentication System",
387
387
  description: "Email/password + OAuth + Magic Links (6 methods)",
388
- inferences: [11, 20],
388
+ cycles: [11, 20],
389
389
  specialist: "existing", // Already implemented
390
390
  duration: "~0 min",
391
391
  cost: "$0",
@@ -403,7 +403,7 @@ const FOUNDATION_FEATURES = {
403
403
  "multi-tenant-groups": {
404
404
  name: "Multi-Tenant Groups",
405
405
  description: "Hierarchical groups with data scoping (organizations → teams → projects)",
406
- inferences: [21, 30],
406
+ cycles: [21, 30],
407
407
  specialist: "agent-backend",
408
408
  duration: "~10 min",
409
409
  cost: "$0",
@@ -427,7 +427,7 @@ const CREATOR_FEATURES = {
427
427
  "content-publishing": {
428
428
  name: "Content Publishing",
429
429
  description: "Blog posts, articles, courses, lessons",
430
- inferences: [31, 40],
430
+ cycles: [31, 40],
431
431
  specialist: "agent-frontend",
432
432
  duration: "~15 min",
433
433
  cost: "$0",
@@ -444,7 +444,7 @@ const CREATOR_FEATURES = {
444
444
  "membership-tiers": {
445
445
  name: "Membership Tiers",
446
446
  description: "Subscription plans with tiered access",
447
- inferences: [41, 50],
447
+ cycles: [41, 50],
448
448
  specialist: "agent-backend",
449
449
  duration: "~15 min",
450
450
  cost: "$0",
@@ -461,7 +461,7 @@ const CREATOR_FEATURES = {
461
461
  "revenue-tracking": {
462
462
  name: "Revenue Tracking",
463
463
  description: "Track payments, subscriptions, and revenue metrics",
464
- inferences: [51, 60],
464
+ cycles: [51, 60],
465
465
  specialist: "agent-backend",
466
466
  duration: "~10 min",
467
467
  cost: "$0",
@@ -484,7 +484,7 @@ const DEVELOPER_FEATURES = {
484
484
  "project-management": {
485
485
  name: "Project Management",
486
486
  description: "Projects, tasks, milestones, kanban boards",
487
- inferences: [31, 40],
487
+ cycles: [31, 40],
488
488
  specialist: "agent-builder", // Full-stack
489
489
  duration: "~15 min",
490
490
  cost: "$0",
@@ -501,7 +501,7 @@ const DEVELOPER_FEATURES = {
501
501
  "code-repositories": {
502
502
  name: "Code Repositories",
503
503
  description: "Git repository integration and management",
504
- inferences: [41, 50],
504
+ cycles: [41, 50],
505
505
  specialist: "agent-integrator",
506
506
  duration: "~15 min",
507
507
  cost: "$0",
@@ -518,7 +518,7 @@ const DEVELOPER_FEATURES = {
518
518
  "deployment-pipeline": {
519
519
  name: "Deployment Pipeline",
520
520
  description: "CI/CD automation with Cloudflare Pages + Convex",
521
- inferences: [51, 60],
521
+ cycles: [51, 60],
522
522
  specialist: "agent-ops",
523
523
  duration: "~20 min",
524
524
  cost: "$0",
@@ -541,7 +541,7 @@ const AI_FEATURES = {
541
541
  "ai-agents": {
542
542
  name: "AI Agent Framework",
543
543
  description: "9 specialist agents for development, design, quality",
544
- inferences: [61, 70],
544
+ cycles: [61, 70],
545
545
  specialist: "agent-builder",
546
546
  duration: "~20 min",
547
547
  cost: "$0",
@@ -561,7 +561,7 @@ const AI_FEATURES = {
561
561
  "rag-knowledge": {
562
562
  name: "RAG Knowledge Base",
563
563
  description: "Vector embeddings + semantic search + retrieval",
564
- inferences: [71, 80],
564
+ cycles: [71, 80],
565
565
  specialist: "agent-backend",
566
566
  duration: "~15 min",
567
567
  cost: "$0.10 - $1.00", // Embedding costs
@@ -578,7 +578,7 @@ const AI_FEATURES = {
578
578
  "semantic-search": {
579
579
  name: "Semantic Search",
580
580
  description: "Natural language search across all content",
581
- inferences: [81, 90],
581
+ cycles: [81, 90],
582
582
  specialist: "agent-backend",
583
583
  duration: "~10 min",
584
584
  cost: "$0",
@@ -601,7 +601,7 @@ const INTEGRATION_FEATURES = {
601
601
  "stripe-payments": {
602
602
  name: "Stripe Payments",
603
603
  description: "Stripe integration for payments and subscriptions",
604
- inferences: [31, 40],
604
+ cycles: [31, 40],
605
605
  specialist: "agent-integrator",
606
606
  duration: "~15 min",
607
607
  cost: "$0",
@@ -618,7 +618,7 @@ const INTEGRATION_FEATURES = {
618
618
  "email-marketing": {
619
619
  name: "Email Marketing",
620
620
  description: "Resend integration for transactional + marketing emails",
621
- inferences: [41, 50],
621
+ cycles: [41, 50],
622
622
  specialist: "agent-integrator",
623
623
  duration: "~10 min",
624
624
  cost: "$0",
@@ -635,7 +635,7 @@ const INTEGRATION_FEATURES = {
635
635
  "discord-community": {
636
636
  name: "Discord Community",
637
637
  description: "Discord bot integration for community engagement",
638
- inferences: [51, 60],
638
+ cycles: [51, 60],
639
639
  specialist: "agent-integrator",
640
640
  duration: "~15 min",
641
641
  cost: "$0",
@@ -658,7 +658,7 @@ const DESIGN_FEATURES = {
658
658
  "design-system": {
659
659
  name: "Design System",
660
660
  description: "Component library with brand tokens and Tailwind config",
661
- inferences: [71, 80],
661
+ cycles: [71, 80],
662
662
  specialist: "agent-designer",
663
663
  duration: "~15 min",
664
664
  cost: "$0",
@@ -675,7 +675,7 @@ const DESIGN_FEATURES = {
675
675
  "wireframes": {
676
676
  name: "Wireframes & Mockups",
677
677
  description: "Auto-generated wireframes from feature specs",
678
- inferences: [71, 75],
678
+ cycles: [71, 75],
679
679
  specialist: "agent-designer",
680
680
  duration: "~10 min",
681
681
  cost: "$0",
@@ -698,7 +698,7 @@ const PERFORMANCE_FEATURES = {
698
698
  "performance-monitoring": {
699
699
  name: "Performance Monitoring",
700
700
  description: "Real-time performance metrics and Lighthouse scores",
701
- inferences: [81, 90],
701
+ cycles: [81, 90],
702
702
  specialist: "agent-ops",
703
703
  duration: "~10 min",
704
704
  cost: "$0",
@@ -715,7 +715,7 @@ const PERFORMANCE_FEATURES = {
715
715
  "analytics-dashboard": {
716
716
  name: "Analytics Dashboard",
717
717
  description: "User analytics, revenue metrics, engagement tracking",
718
- inferences: [81, 90],
718
+ cycles: [81, 90],
719
719
  specialist: "agent-frontend",
720
720
  duration: "~15 min",
721
721
  cost: "$0",
@@ -1102,7 +1102,7 @@ The Director enforces consistent numbering:
1102
1102
 
1103
1103
  ## Plan Generation Algorithm
1104
1104
 
1105
- When generating a 100-inference plan from feature selections, follow this algorithm:
1105
+ When generating a 100-cycle plan from feature selections, follow this algorithm:
1106
1106
 
1107
1107
  ### Step 1: Read Feature Selections
1108
1108
 
@@ -1157,21 +1157,21 @@ function resolveDependencies(selectedFeatures: string[]): string[] {
1157
1157
  // Output: ["landing-page", "authentication", "multi-tenant-groups", "project-management", "ai-agents"]
1158
1158
  ```
1159
1159
 
1160
- ### Step 3: Map to Inference Ranges
1160
+ ### Step 3: Map to Cycle Ranges
1161
1161
 
1162
1162
  ```typescript
1163
- function mapToInferences(features: string[]): InferencePlan {
1163
+ function mapToCycles(features: string[]): CyclePlan {
1164
1164
  const phases: Phase[] = [];
1165
- const allInferences = [];
1165
+ const allCycles = [];
1166
1166
 
1167
1167
  for (const featureKey of features) {
1168
1168
  const feature = ALL_FEATURES[featureKey];
1169
- const [start, end] = feature.inferences;
1169
+ const [start, end] = feature.cycles;
1170
1170
 
1171
1171
  phases.push({
1172
1172
  name: feature.name,
1173
1173
  featureKey: featureKey,
1174
- inferences: { start, end },
1174
+ cycles: { start, end },
1175
1175
  specialist: feature.specialist,
1176
1176
  duration: feature.duration,
1177
1177
  cost: feature.cost,
@@ -1179,14 +1179,14 @@ function mapToInferences(features: string[]): InferencePlan {
1179
1179
  ontology: feature.ontology
1180
1180
  });
1181
1181
 
1182
- allInferences.push(...range(start, end));
1182
+ allCycles.push(...range(start, end));
1183
1183
  }
1184
1184
 
1185
1185
  // Always add deployment phase (Cycle 91-100)
1186
1186
  phases.push({
1187
1187
  name: "Deployment & Documentation",
1188
1188
  featureKey: "deployment",
1189
- inferences: { start: 91, end: 100 },
1189
+ cycles: { start: 91, end: 100 },
1190
1190
  specialist: "agent-ops",
1191
1191
  duration: "~10 min",
1192
1192
  cost: "$0",
@@ -1198,9 +1198,9 @@ function mapToInferences(features: string[]): InferencePlan {
1198
1198
 
1199
1199
  return {
1200
1200
  phases,
1201
- totalInferences: allInferences.length + 10, // Include deployment
1202
- currentInference: 1,
1203
- completedInferences: []
1201
+ totalCycles: allCycles.length + 10, // Include deployment
1202
+ currentCycle: 1,
1203
+ completedCycles: []
1204
1204
  };
1205
1205
  }
1206
1206
  ```
@@ -1208,7 +1208,7 @@ function mapToInferences(features: string[]): InferencePlan {
1208
1208
  ### Step 4: Calculate Estimates
1209
1209
 
1210
1210
  ```typescript
1211
- function calculateEstimates(plan: InferencePlan) {
1211
+ function calculateEstimates(plan: CyclePlan) {
1212
1212
  let totalMinutes = 0;
1213
1213
  let totalCost = 0;
1214
1214
 
@@ -1228,7 +1228,7 @@ function calculateEstimates(plan: InferencePlan) {
1228
1228
  return {
1229
1229
  estimatedDuration: `${totalMinutes} minutes (~${Math.ceil(totalMinutes / 60)} hours)`,
1230
1230
  estimatedCost: `$${totalCost.toFixed(2)}`,
1231
- inferenceCount: plan.totalInferences
1231
+ cycleCount: plan.totalCycles
1232
1232
  };
1233
1233
  }
1234
1234
  ```
@@ -1242,13 +1242,13 @@ interface ExecutionPlan {
1242
1242
  createdAt: number;
1243
1243
  plan: {
1244
1244
  phases: Phase[];
1245
- totalInferences: number;
1246
- currentInference: number;
1247
- completedInferences: number[];
1245
+ totalCycles: number;
1246
+ currentCycle: number;
1247
+ completedCycles: number[];
1248
1248
  estimates: {
1249
1249
  duration: string;
1250
1250
  cost: string;
1251
- inferences: number;
1251
+ cycles: number;
1252
1252
  };
1253
1253
  };
1254
1254
  progress: {
@@ -1269,7 +1269,7 @@ const executionPlan: ExecutionPlan = {
1269
1269
  {
1270
1270
  name: "Landing Page",
1271
1271
  featureKey: "landing-page",
1272
- inferences: { start: 1, end: 10 },
1272
+ cycles: { start: 1, end: 10 },
1273
1273
  specialist: "agent-frontend",
1274
1274
  duration: "~5 min",
1275
1275
  cost: "$0",
@@ -1278,13 +1278,13 @@ const executionPlan: ExecutionPlan = {
1278
1278
  },
1279
1279
  // ... more phases
1280
1280
  ],
1281
- totalInferences: 70,
1282
- currentInference: 1,
1283
- completedInferences: [],
1281
+ totalCycles: 70,
1282
+ currentCycle: 1,
1283
+ completedCycles: [],
1284
1284
  estimates: {
1285
1285
  duration: "60 minutes (~1 hours)",
1286
1286
  cost: "$0.10",
1287
- inferences: 70
1287
+ cycles: 70
1288
1288
  }
1289
1289
  },
1290
1290
  progress: {
@@ -1315,14 +1315,14 @@ function generateMarkdownSummary(plan: ExecutionPlan): string {
1315
1315
 
1316
1316
  ## Overview
1317
1317
 
1318
- - **Total Inferences:** ${plan.plan.totalInferences}/100
1318
+ - **Total Cycles:** ${plan.plan.totalCycles}/100
1319
1319
  - **Estimated Duration:** ${plan.plan.estimates.duration}
1320
1320
  - **Estimated Cost:** ${plan.plan.estimates.cost}
1321
1321
 
1322
1322
  ## Execution Phases
1323
1323
 
1324
1324
  ${plan.plan.phases.map((phase, i) => `
1325
- ### Phase ${i + 1}: ${phase.name} (Cycle ${phase.inferences.start}-${phase.inferences.end})
1325
+ ### Phase ${i + 1}: ${phase.name} (Cycle ${phase.cycles.start}-${phase.cycles.end})
1326
1326
 
1327
1327
  - **Specialist:** ${phase.specialist}
1328
1328
  - **Duration:** ${phase.duration}
@@ -1335,8 +1335,8 @@ ${JSON.stringify(phase.ontology, null, 2)}
1335
1335
 
1336
1336
  ## Progress Tracking
1337
1337
 
1338
- Current Inference: ${plan.plan.currentInference}/${plan.plan.totalInferences}
1339
- Completed: ${plan.plan.completedInferences.length} inferences
1338
+ Current Cycle: ${plan.plan.currentCycle}/${plan.plan.totalCycles}
1339
+ Completed: ${plan.plan.completedCycles.length} cycles
1340
1340
  `;
1341
1341
  }
1342
1342
  ```
@@ -1355,7 +1355,7 @@ async function executePhase(phase: Phase): Promise<void> {
1355
1355
  targetId: phase.featureKey,
1356
1356
  metadata: {
1357
1357
  phaseName: phase.name,
1358
- inferences: phase.inferences,
1358
+ cycles: phase.cycles,
1359
1359
  specialist: phase.specialist
1360
1360
  }
1361
1361
  });
@@ -1364,7 +1364,7 @@ async function executePhase(phase: Phase): Promise<void> {
1364
1364
  const specialist = getSpecialistAgent(phase.specialist);
1365
1365
  await specialist.execute({
1366
1366
  featureKey: phase.featureKey,
1367
- inferenceRange: phase.inferences,
1367
+ cycleRange: phase.cycles,
1368
1368
  ontology: phase.ontology
1369
1369
  });
1370
1370
 
@@ -1377,8 +1377,8 @@ async function executePhase(phase: Phase): Promise<void> {
1377
1377
 
1378
1378
  // 4. Update .onboarding.json progress
1379
1379
  updateProgress({
1380
- currentInference: phase.inferences.end,
1381
- completedInferences: range(phase.inferences.start, phase.inferences.end),
1380
+ currentCycle: phase.cycles.end,
1381
+ completedCycles: range(phase.cycles.start, phase.cycles.end),
1382
1382
  currentPhase: phase.name,
1383
1383
  status: "in_progress"
1384
1384
  });
@@ -1401,8 +1401,8 @@ async function executePhase(phase: Phase): Promise<void> {
1401
1401
 
1402
1402
  ```typescript
1403
1403
  interface ProgressUpdate {
1404
- currentInference: number;
1405
- completedInferences: number[];
1404
+ currentCycle: number;
1405
+ completedCycles: number[];
1406
1406
  currentPhase: string;
1407
1407
  status: "pending" | "in_progress" | "completed" | "failed";
1408
1408
  startedAt?: number;
@@ -1421,7 +1421,7 @@ function updateProgress(update: Partial<ProgressUpdate>): void {
1421
1421
  };
1422
1422
 
1423
1423
  // Calculate completion percentage
1424
- const percentage = (plan.plan.completedInferences.length / plan.plan.totalInferences) * 100;
1424
+ const percentage = (plan.plan.completedCycles.length / plan.plan.totalCycles) * 100;
1425
1425
 
1426
1426
  // Write back to file
1427
1427
  writeOnboardingJson(plan);
@@ -1431,8 +1431,8 @@ function updateProgress(update: Partial<ProgressUpdate>): void {
1431
1431
  type: "progress_updated",
1432
1432
  metadata: {
1433
1433
  percentage,
1434
- currentInference: plan.plan.currentInference,
1435
- totalInferences: plan.plan.totalInferences,
1434
+ currentCycle: plan.plan.currentCycle,
1435
+ totalCycles: plan.plan.totalCycles,
1436
1436
  currentPhase: plan.progress.currentPhase
1437
1437
  }
1438
1438
  });
@@ -1463,20 +1463,20 @@ async function executeAllPhases(plan: ExecutionPlan): Promise<void> {
1463
1463
  updateProgress({
1464
1464
  status: "completed",
1465
1465
  completedAt: Date.now(),
1466
- currentInference: 100
1466
+ currentCycle: 100
1467
1467
  });
1468
1468
  }
1469
1469
 
1470
1470
  function findParallelPhases(phase: Phase, allPhases: Phase[]): Phase[] {
1471
1471
  // Phases can run in parallel if:
1472
1472
  // 1. They have no shared dependencies
1473
- // 2. They don't overlap in inference ranges
1473
+ // 2. They don't overlap in cycle ranges
1474
1474
  // 3. They use different specialists (optional optimization)
1475
1475
 
1476
1476
  return allPhases.filter(p =>
1477
1477
  p !== phase &&
1478
1478
  !hasSharedDependencies(p, phase) &&
1479
- !overlapsInferences(p.inferences, phase.inferences)
1479
+ !overlapsCycles(p.cycles, phase.cycles)
1480
1480
  );
1481
1481
  }
1482
1482
  ```
@@ -1535,21 +1535,21 @@ async function executePhaseWithRetry(phase: Phase, maxRetries = 3): Promise<void
1535
1535
 
1536
1536
  ```typescript
1537
1537
  function displayProgress(plan: ExecutionPlan): void {
1538
- const percentage = (plan.plan.completedInferences.length / plan.plan.totalInferences) * 100;
1538
+ const percentage = (plan.plan.completedCycles.length / plan.plan.totalCycles) * 100;
1539
1539
 
1540
1540
  console.log(`
1541
1541
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1542
1542
  🤖 BUILDING ${plan.organizationName}
1543
1543
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1544
1544
 
1545
- Progress: ${percentage.toFixed(1)}% (${plan.plan.completedInferences.length}/${plan.plan.totalInferences} inferences)
1545
+ Progress: ${percentage.toFixed(1)}% (${plan.plan.completedCycles.length}/${plan.plan.totalCycles} cycles)
1546
1546
 
1547
1547
  Current Phase: ${plan.progress.currentPhase || 'Starting...'}
1548
- Current Inference: ${plan.plan.currentInference}
1548
+ Current Cycle: ${plan.plan.currentCycle}
1549
1549
 
1550
1550
  Phases:
1551
1551
  ${plan.plan.phases.map(phase => `
1552
- ${getStatusIcon(phase.status)} ${phase.name} (Cycle ${phase.inferences.start}-${phase.inferences.end})
1552
+ ${getStatusIcon(phase.status)} ${phase.name} (Cycle ${phase.cycles.start}-${phase.cycles.end})
1553
1553
  ${phase.specialist} • ${phase.duration}
1554
1554
  `).join('')}
1555
1555
 
@@ -472,7 +472,7 @@ After agent-onboard completes:
472
472
  2. Reads ontology mapping from installation folder
473
473
  3. Recommends features based on detected patterns
474
474
  4. User selects features to build
475
- 5. agent-director generates 100-inference plan
475
+ 5. agent-director generates 100-cycle plan
476
476
  6. Specialized agents execute (agent-backend, agent-frontend, etc.)
477
477
 
478
478
  ---
@@ -75,7 +75,7 @@ Every feature, every service, every line of code must map cleanly to these 6 dim
75
75
  **Use Hooks to Validate:**
76
76
  - `.claude/hooks/validate-ontology-structure.py` - Structural validation
77
77
  - `.claude/hooks/check-filenames.py` - File naming validation
78
- - `.claude/hooks/todo.sh` - Inference workflow validation
78
+ - `.claude/hooks/todo.sh` - Cycle workflow validation
79
79
 
80
80
  **Validation Checklist:**
81
81
  - [ ] All features map to 6 dimensions
@@ -233,7 +233,7 @@ await db.insert('connections', {
233
233
 
234
234
  **Analytics (5):** metric_calculated, insight_generated, prediction_made, optimization_applied, report_generated
235
235
 
236
- **Inference (7):** inference_request, inference_completed, inference_failed, inference_quota_exceeded, inference_revenue_collected, org_revenue_generated, revenue_share_distributed
236
+ **Cycle (7):** cycle_request, cycle_completed, cycle_failed, cycle_quota_exceeded, cycle_revenue_collected, org_revenue_generated, revenue_share_distributed
237
237
 
238
238
  **Blockchain (5):** nft_minted, nft_transferred, tokens_bridged, contract_deployed, treasury_withdrawal
239
239