@dragonflymcp/plugin 1.0.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/.claude-plugin/plugin.json +26 -0
- package/LICENSE +21 -0
- package/README.md +126 -0
- package/dist/core/annotations.d.ts +71 -0
- package/dist/core/annotations.d.ts.map +1 -0
- package/dist/core/annotations.js +61 -0
- package/dist/core/annotations.js.map +1 -0
- package/dist/core/config.d.ts +66 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +131 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/dispatcher.d.ts +77 -0
- package/dist/core/dispatcher.d.ts.map +1 -0
- package/dist/core/dispatcher.js +132 -0
- package/dist/core/dispatcher.js.map +1 -0
- package/dist/core/server.d.ts +24 -0
- package/dist/core/server.d.ts.map +1 -0
- package/dist/core/server.js +41 -0
- package/dist/core/server.js.map +1 -0
- package/dist/core/store.d.ts +91 -0
- package/dist/core/store.d.ts.map +1 -0
- package/dist/core/store.js +157 -0
- package/dist/core/store.js.map +1 -0
- package/dist/core/types.d.ts +128 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +5 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/test-utils/store-harness.d.ts +41 -0
- package/dist/test-utils/store-harness.d.ts.map +1 -0
- package/dist/test-utils/store-harness.js +61 -0
- package/dist/test-utils/store-harness.js.map +1 -0
- package/dist/tools/analytics/aggregators.d.ts +18 -0
- package/dist/tools/analytics/aggregators.d.ts.map +1 -0
- package/dist/tools/analytics/aggregators.js +260 -0
- package/dist/tools/analytics/aggregators.js.map +1 -0
- package/dist/tools/analytics/aggregators.test.d.ts +2 -0
- package/dist/tools/analytics/aggregators.test.d.ts.map +1 -0
- package/dist/tools/analytics/aggregators.test.js +177 -0
- package/dist/tools/analytics/aggregators.test.js.map +1 -0
- package/dist/tools/analytics/drift.d.ts +15 -0
- package/dist/tools/analytics/drift.d.ts.map +1 -0
- package/dist/tools/analytics/drift.js +135 -0
- package/dist/tools/analytics/drift.js.map +1 -0
- package/dist/tools/analytics/drift.test.d.ts +2 -0
- package/dist/tools/analytics/drift.test.d.ts.map +1 -0
- package/dist/tools/analytics/drift.test.js +99 -0
- package/dist/tools/analytics/drift.test.js.map +1 -0
- package/dist/tools/analytics/index.d.ts +10 -0
- package/dist/tools/analytics/index.d.ts.map +1 -0
- package/dist/tools/analytics/index.js +192 -0
- package/dist/tools/analytics/index.js.map +1 -0
- package/dist/tools/analytics/learner.d.ts +29 -0
- package/dist/tools/analytics/learner.d.ts.map +1 -0
- package/dist/tools/analytics/learner.js +135 -0
- package/dist/tools/analytics/learner.js.map +1 -0
- package/dist/tools/analytics/learner.test.d.ts +2 -0
- package/dist/tools/analytics/learner.test.d.ts.map +1 -0
- package/dist/tools/analytics/learner.test.js +118 -0
- package/dist/tools/analytics/learner.test.js.map +1 -0
- package/dist/tools/analytics/observe.d.ts +22 -0
- package/dist/tools/analytics/observe.d.ts.map +1 -0
- package/dist/tools/analytics/observe.js +143 -0
- package/dist/tools/analytics/observe.js.map +1 -0
- package/dist/tools/analytics/observe.test.d.ts +2 -0
- package/dist/tools/analytics/observe.test.d.ts.map +1 -0
- package/dist/tools/analytics/observe.test.js +95 -0
- package/dist/tools/analytics/observe.test.js.map +1 -0
- package/dist/tools/analytics/store.d.ts +29 -0
- package/dist/tools/analytics/store.d.ts.map +1 -0
- package/dist/tools/analytics/store.js +192 -0
- package/dist/tools/analytics/store.js.map +1 -0
- package/dist/tools/analytics/types.d.ts +290 -0
- package/dist/tools/analytics/types.d.ts.map +1 -0
- package/dist/tools/analytics/types.js +7 -0
- package/dist/tools/analytics/types.js.map +1 -0
- package/dist/tools/ast/index.d.ts +8 -0
- package/dist/tools/ast/index.d.ts.map +1 -0
- package/dist/tools/ast/index.js +242 -0
- package/dist/tools/ast/index.js.map +1 -0
- package/dist/tools/ast/indexer.d.ts +41 -0
- package/dist/tools/ast/indexer.d.ts.map +1 -0
- package/dist/tools/ast/indexer.js +617 -0
- package/dist/tools/ast/indexer.js.map +1 -0
- package/dist/tools/ast/store.d.ts +87 -0
- package/dist/tools/ast/store.d.ts.map +1 -0
- package/dist/tools/ast/store.js +280 -0
- package/dist/tools/ast/store.js.map +1 -0
- package/dist/tools/ast/store.test.d.ts +6 -0
- package/dist/tools/ast/store.test.d.ts.map +1 -0
- package/dist/tools/ast/store.test.js +257 -0
- package/dist/tools/ast/store.test.js.map +1 -0
- package/dist/tools/bridge/bridge.d.ts +37 -0
- package/dist/tools/bridge/bridge.d.ts.map +1 -0
- package/dist/tools/bridge/bridge.js +82 -0
- package/dist/tools/bridge/bridge.js.map +1 -0
- package/dist/tools/bridge/bridge.test.d.ts +2 -0
- package/dist/tools/bridge/bridge.test.d.ts.map +1 -0
- package/dist/tools/bridge/bridge.test.js +119 -0
- package/dist/tools/bridge/bridge.test.js.map +1 -0
- package/dist/tools/bridge/index.d.ts +8 -0
- package/dist/tools/bridge/index.d.ts.map +1 -0
- package/dist/tools/bridge/index.js +153 -0
- package/dist/tools/bridge/index.js.map +1 -0
- package/dist/tools/bridge/store.d.ts +45 -0
- package/dist/tools/bridge/store.d.ts.map +1 -0
- package/dist/tools/bridge/store.js +307 -0
- package/dist/tools/bridge/store.js.map +1 -0
- package/dist/tools/bridge/store.test.d.ts +2 -0
- package/dist/tools/bridge/store.test.d.ts.map +1 -0
- package/dist/tools/bridge/store.test.js +180 -0
- package/dist/tools/bridge/store.test.js.map +1 -0
- package/dist/tools/bridge/types.d.ts +44 -0
- package/dist/tools/bridge/types.d.ts.map +1 -0
- package/dist/tools/bridge/types.js +6 -0
- package/dist/tools/bridge/types.js.map +1 -0
- package/dist/tools/evolve/algorithm.d.ts +33 -0
- package/dist/tools/evolve/algorithm.d.ts.map +1 -0
- package/dist/tools/evolve/algorithm.js +64 -0
- package/dist/tools/evolve/algorithm.js.map +1 -0
- package/dist/tools/evolve/algorithm.test.d.ts +6 -0
- package/dist/tools/evolve/algorithm.test.d.ts.map +1 -0
- package/dist/tools/evolve/algorithm.test.js +138 -0
- package/dist/tools/evolve/algorithm.test.js.map +1 -0
- package/dist/tools/evolve/index.d.ts +11 -0
- package/dist/tools/evolve/index.d.ts.map +1 -0
- package/dist/tools/evolve/index.js +300 -0
- package/dist/tools/evolve/index.js.map +1 -0
- package/dist/tools/evolve/store.d.ts +27 -0
- package/dist/tools/evolve/store.d.ts.map +1 -0
- package/dist/tools/evolve/store.js +147 -0
- package/dist/tools/evolve/store.js.map +1 -0
- package/dist/tools/evolve/store.test.d.ts +6 -0
- package/dist/tools/evolve/store.test.d.ts.map +1 -0
- package/dist/tools/evolve/store.test.js +162 -0
- package/dist/tools/evolve/store.test.js.map +1 -0
- package/dist/tools/evolve/types.d.ts +38 -0
- package/dist/tools/evolve/types.d.ts.map +1 -0
- package/dist/tools/evolve/types.js +6 -0
- package/dist/tools/evolve/types.js.map +1 -0
- package/dist/tools/framework/content-loader.d.ts +45 -0
- package/dist/tools/framework/content-loader.d.ts.map +1 -0
- package/dist/tools/framework/content-loader.js +258 -0
- package/dist/tools/framework/content-loader.js.map +1 -0
- package/dist/tools/framework/content-loader.test.d.ts +5 -0
- package/dist/tools/framework/content-loader.test.d.ts.map +1 -0
- package/dist/tools/framework/content-loader.test.js +262 -0
- package/dist/tools/framework/content-loader.test.js.map +1 -0
- package/dist/tools/framework/index.d.ts +30 -0
- package/dist/tools/framework/index.d.ts.map +1 -0
- package/dist/tools/framework/index.js +517 -0
- package/dist/tools/framework/index.js.map +1 -0
- package/dist/tools/framework/session.d.ts +85 -0
- package/dist/tools/framework/session.d.ts.map +1 -0
- package/dist/tools/framework/session.js +311 -0
- package/dist/tools/framework/session.js.map +1 -0
- package/dist/tools/framework/session.test.d.ts +5 -0
- package/dist/tools/framework/session.test.d.ts.map +1 -0
- package/dist/tools/framework/session.test.js +291 -0
- package/dist/tools/framework/session.test.js.map +1 -0
- package/dist/tools/framework/sync-evaluator.d.ts +41 -0
- package/dist/tools/framework/sync-evaluator.d.ts.map +1 -0
- package/dist/tools/framework/sync-evaluator.js +298 -0
- package/dist/tools/framework/sync-evaluator.js.map +1 -0
- package/dist/tools/framework/sync-evaluator.test.d.ts +5 -0
- package/dist/tools/framework/sync-evaluator.test.d.ts.map +1 -0
- package/dist/tools/framework/sync-evaluator.test.js +288 -0
- package/dist/tools/framework/sync-evaluator.test.js.map +1 -0
- package/dist/tools/framework/types.d.ts +279 -0
- package/dist/tools/framework/types.d.ts.map +1 -0
- package/dist/tools/framework/types.js +6 -0
- package/dist/tools/framework/types.js.map +1 -0
- package/dist/tools/framework/workflow-intelligence.d.ts +55 -0
- package/dist/tools/framework/workflow-intelligence.d.ts.map +1 -0
- package/dist/tools/framework/workflow-intelligence.js +199 -0
- package/dist/tools/framework/workflow-intelligence.js.map +1 -0
- package/dist/tools/framework/workflow-intelligence.test.d.ts +6 -0
- package/dist/tools/framework/workflow-intelligence.test.d.ts.map +1 -0
- package/dist/tools/framework/workflow-intelligence.test.js +257 -0
- package/dist/tools/framework/workflow-intelligence.test.js.map +1 -0
- package/dist/tools/framework/workflow-planner.d.ts +10 -0
- package/dist/tools/framework/workflow-planner.d.ts.map +1 -0
- package/dist/tools/framework/workflow-planner.js +214 -0
- package/dist/tools/framework/workflow-planner.js.map +1 -0
- package/dist/tools/framework/workflow-planner.test.d.ts +5 -0
- package/dist/tools/framework/workflow-planner.test.d.ts.map +1 -0
- package/dist/tools/framework/workflow-planner.test.js +137 -0
- package/dist/tools/framework/workflow-planner.test.js.map +1 -0
- package/dist/tools/knowledge/bridge.d.ts +34 -0
- package/dist/tools/knowledge/bridge.d.ts.map +1 -0
- package/dist/tools/knowledge/bridge.js +249 -0
- package/dist/tools/knowledge/bridge.js.map +1 -0
- package/dist/tools/knowledge/bridge.test.d.ts +5 -0
- package/dist/tools/knowledge/bridge.test.d.ts.map +1 -0
- package/dist/tools/knowledge/bridge.test.js +221 -0
- package/dist/tools/knowledge/bridge.test.js.map +1 -0
- package/dist/tools/knowledge/extractor.d.ts +22 -0
- package/dist/tools/knowledge/extractor.d.ts.map +1 -0
- package/dist/tools/knowledge/extractor.js +154 -0
- package/dist/tools/knowledge/extractor.js.map +1 -0
- package/dist/tools/knowledge/index.d.ts +12 -0
- package/dist/tools/knowledge/index.d.ts.map +1 -0
- package/dist/tools/knowledge/index.js +505 -0
- package/dist/tools/knowledge/index.js.map +1 -0
- package/dist/tools/knowledge/retrieval.d.ts +28 -0
- package/dist/tools/knowledge/retrieval.d.ts.map +1 -0
- package/dist/tools/knowledge/retrieval.js +164 -0
- package/dist/tools/knowledge/retrieval.js.map +1 -0
- package/dist/tools/knowledge/store.d.ts +96 -0
- package/dist/tools/knowledge/store.d.ts.map +1 -0
- package/dist/tools/knowledge/store.js +562 -0
- package/dist/tools/knowledge/store.js.map +1 -0
- package/dist/tools/knowledge/store.test.d.ts +6 -0
- package/dist/tools/knowledge/store.test.d.ts.map +1 -0
- package/dist/tools/knowledge/store.test.js +385 -0
- package/dist/tools/knowledge/store.test.js.map +1 -0
- package/dist/tools/knowledge/types.d.ts +168 -0
- package/dist/tools/knowledge/types.d.ts.map +1 -0
- package/dist/tools/knowledge/types.js +6 -0
- package/dist/tools/knowledge/types.js.map +1 -0
- package/dist/tools/memory/evolution.d.ts +31 -0
- package/dist/tools/memory/evolution.d.ts.map +1 -0
- package/dist/tools/memory/evolution.js +130 -0
- package/dist/tools/memory/evolution.js.map +1 -0
- package/dist/tools/memory/index.d.ts +11 -0
- package/dist/tools/memory/index.d.ts.map +1 -0
- package/dist/tools/memory/index.js +239 -0
- package/dist/tools/memory/index.js.map +1 -0
- package/dist/tools/memory/store.d.ts +75 -0
- package/dist/tools/memory/store.d.ts.map +1 -0
- package/dist/tools/memory/store.js +398 -0
- package/dist/tools/memory/store.js.map +1 -0
- package/dist/tools/memory/store.test.d.ts +6 -0
- package/dist/tools/memory/store.test.d.ts.map +1 -0
- package/dist/tools/memory/store.test.js +429 -0
- package/dist/tools/memory/store.test.js.map +1 -0
- package/dist/tools/memory/types.d.ts +171 -0
- package/dist/tools/memory/types.d.ts.map +1 -0
- package/dist/tools/memory/types.js +6 -0
- package/dist/tools/memory/types.js.map +1 -0
- package/dist/tools/pipeline/composer.d.ts +29 -0
- package/dist/tools/pipeline/composer.d.ts.map +1 -0
- package/dist/tools/pipeline/composer.js +225 -0
- package/dist/tools/pipeline/composer.js.map +1 -0
- package/dist/tools/pipeline/composer.test.d.ts +2 -0
- package/dist/tools/pipeline/composer.test.d.ts.map +1 -0
- package/dist/tools/pipeline/composer.test.js +162 -0
- package/dist/tools/pipeline/composer.test.js.map +1 -0
- package/dist/tools/pipeline/index.d.ts +8 -0
- package/dist/tools/pipeline/index.d.ts.map +1 -0
- package/dist/tools/pipeline/index.js +102 -0
- package/dist/tools/pipeline/index.js.map +1 -0
- package/dist/tools/pipeline/planner.d.ts +10 -0
- package/dist/tools/pipeline/planner.d.ts.map +1 -0
- package/dist/tools/pipeline/planner.js +147 -0
- package/dist/tools/pipeline/planner.js.map +1 -0
- package/dist/tools/pipeline/planner.test.d.ts +2 -0
- package/dist/tools/pipeline/planner.test.d.ts.map +1 -0
- package/dist/tools/pipeline/planner.test.js +96 -0
- package/dist/tools/pipeline/planner.test.js.map +1 -0
- package/dist/tools/pipeline/preconditions.d.ts +14 -0
- package/dist/tools/pipeline/preconditions.d.ts.map +1 -0
- package/dist/tools/pipeline/preconditions.js +65 -0
- package/dist/tools/pipeline/preconditions.js.map +1 -0
- package/dist/tools/pipeline/preconditions.test.d.ts +2 -0
- package/dist/tools/pipeline/preconditions.test.d.ts.map +1 -0
- package/dist/tools/pipeline/preconditions.test.js +74 -0
- package/dist/tools/pipeline/preconditions.test.js.map +1 -0
- package/dist/tools/pipeline/types.d.ts +105 -0
- package/dist/tools/pipeline/types.d.ts.map +1 -0
- package/dist/tools/pipeline/types.js +6 -0
- package/dist/tools/pipeline/types.js.map +1 -0
- package/dist/tools/repair/index.d.ts +8 -0
- package/dist/tools/repair/index.d.ts.map +1 -0
- package/dist/tools/repair/index.js +384 -0
- package/dist/tools/repair/index.js.map +1 -0
- package/dist/tools/repair/repairer.d.ts +67 -0
- package/dist/tools/repair/repairer.d.ts.map +1 -0
- package/dist/tools/repair/repairer.js +257 -0
- package/dist/tools/repair/repairer.js.map +1 -0
- package/dist/tools/repair/repairer.test.d.ts +6 -0
- package/dist/tools/repair/repairer.test.d.ts.map +1 -0
- package/dist/tools/repair/repairer.test.js +159 -0
- package/dist/tools/repair/repairer.test.js.map +1 -0
- package/dist/tools/semantic/chunker.d.ts +23 -0
- package/dist/tools/semantic/chunker.d.ts.map +1 -0
- package/dist/tools/semantic/chunker.js +244 -0
- package/dist/tools/semantic/chunker.js.map +1 -0
- package/dist/tools/semantic/embedder.d.ts +16 -0
- package/dist/tools/semantic/embedder.d.ts.map +1 -0
- package/dist/tools/semantic/embedder.js +88 -0
- package/dist/tools/semantic/embedder.js.map +1 -0
- package/dist/tools/semantic/index.d.ts +8 -0
- package/dist/tools/semantic/index.d.ts.map +1 -0
- package/dist/tools/semantic/index.js +144 -0
- package/dist/tools/semantic/index.js.map +1 -0
- package/dist/tools/semantic/store.d.ts +31 -0
- package/dist/tools/semantic/store.d.ts.map +1 -0
- package/dist/tools/semantic/store.js +168 -0
- package/dist/tools/semantic/store.js.map +1 -0
- package/dist/tools/semantic/store.test.d.ts +6 -0
- package/dist/tools/semantic/store.test.d.ts.map +1 -0
- package/dist/tools/semantic/store.test.js +240 -0
- package/dist/tools/semantic/store.test.js.map +1 -0
- package/dist/tools/spec/generator.d.ts +32 -0
- package/dist/tools/spec/generator.d.ts.map +1 -0
- package/dist/tools/spec/generator.js +278 -0
- package/dist/tools/spec/generator.js.map +1 -0
- package/dist/tools/spec/generator.test.d.ts +6 -0
- package/dist/tools/spec/generator.test.d.ts.map +1 -0
- package/dist/tools/spec/generator.test.js +208 -0
- package/dist/tools/spec/generator.test.js.map +1 -0
- package/dist/tools/spec/index.d.ts +11 -0
- package/dist/tools/spec/index.d.ts.map +1 -0
- package/dist/tools/spec/index.js +426 -0
- package/dist/tools/spec/index.js.map +1 -0
- package/dist/tools/spec/store.d.ts +24 -0
- package/dist/tools/spec/store.d.ts.map +1 -0
- package/dist/tools/spec/store.js +104 -0
- package/dist/tools/spec/store.js.map +1 -0
- package/dist/tools/spec/store.test.d.ts +6 -0
- package/dist/tools/spec/store.test.d.ts.map +1 -0
- package/dist/tools/spec/store.test.js +173 -0
- package/dist/tools/spec/store.test.js.map +1 -0
- package/dist/tools/spec/types.d.ts +61 -0
- package/dist/tools/spec/types.d.ts.map +1 -0
- package/dist/tools/spec/types.js +6 -0
- package/dist/tools/spec/types.js.map +1 -0
- package/dist/tools/state/index.d.ts +11 -0
- package/dist/tools/state/index.d.ts.map +1 -0
- package/dist/tools/state/index.js +386 -0
- package/dist/tools/state/index.js.map +1 -0
- package/dist/tools/state/migrate.d.ts +39 -0
- package/dist/tools/state/migrate.d.ts.map +1 -0
- package/dist/tools/state/migrate.js +242 -0
- package/dist/tools/state/migrate.js.map +1 -0
- package/dist/tools/state/migrate.test.d.ts +2 -0
- package/dist/tools/state/migrate.test.d.ts.map +1 -0
- package/dist/tools/state/migrate.test.js +265 -0
- package/dist/tools/state/migrate.test.js.map +1 -0
- package/dist/tools/state/store.d.ts +107 -0
- package/dist/tools/state/store.d.ts.map +1 -0
- package/dist/tools/state/store.js +365 -0
- package/dist/tools/state/store.js.map +1 -0
- package/dist/tools/state/store.test.d.ts +5 -0
- package/dist/tools/state/store.test.d.ts.map +1 -0
- package/dist/tools/state/store.test.js +293 -0
- package/dist/tools/state/store.test.js.map +1 -0
- package/dist/tools/state/types.d.ts +90 -0
- package/dist/tools/state/types.d.ts.map +1 -0
- package/dist/tools/state/types.js +6 -0
- package/dist/tools/state/types.js.map +1 -0
- package/dist/tools/testing/analyzer.d.ts +44 -0
- package/dist/tools/testing/analyzer.d.ts.map +1 -0
- package/dist/tools/testing/analyzer.js +280 -0
- package/dist/tools/testing/analyzer.js.map +1 -0
- package/dist/tools/testing/generator.d.ts +57 -0
- package/dist/tools/testing/generator.d.ts.map +1 -0
- package/dist/tools/testing/generator.js +478 -0
- package/dist/tools/testing/generator.js.map +1 -0
- package/dist/tools/testing/generator.test.d.ts +6 -0
- package/dist/tools/testing/generator.test.d.ts.map +1 -0
- package/dist/tools/testing/generator.test.js +285 -0
- package/dist/tools/testing/generator.test.js.map +1 -0
- package/dist/tools/testing/index.d.ts +8 -0
- package/dist/tools/testing/index.d.ts.map +1 -0
- package/dist/tools/testing/index.js +373 -0
- package/dist/tools/testing/index.js.map +1 -0
- package/dist/utils/embedder.d.ts +7 -0
- package/dist/utils/embedder.d.ts.map +1 -0
- package/dist/utils/embedder.js +13 -0
- package/dist/utils/embedder.js.map +1 -0
- package/dist/utils/execution.d.ts +68 -0
- package/dist/utils/execution.d.ts.map +1 -0
- package/dist/utils/execution.js +467 -0
- package/dist/utils/execution.js.map +1 -0
- package/dist/utils/graph.d.ts +26 -0
- package/dist/utils/graph.d.ts.map +1 -0
- package/dist/utils/graph.js +32 -0
- package/dist/utils/graph.js.map +1 -0
- package/dist/utils/guards.d.ts +32 -0
- package/dist/utils/guards.d.ts.map +1 -0
- package/dist/utils/guards.js +40 -0
- package/dist/utils/guards.js.map +1 -0
- package/dist/utils/ids.d.ts +5 -0
- package/dist/utils/ids.d.ts.map +1 -0
- package/dist/utils/ids.js +7 -0
- package/dist/utils/ids.js.map +1 -0
- package/dist/utils/languages.d.ts +34 -0
- package/dist/utils/languages.d.ts.map +1 -0
- package/dist/utils/languages.js +153 -0
- package/dist/utils/languages.js.map +1 -0
- package/dist/utils/lazy.d.ts +17 -0
- package/dist/utils/lazy.d.ts.map +1 -0
- package/dist/utils/lazy.js +35 -0
- package/dist/utils/lazy.js.map +1 -0
- package/dist/utils/project.d.ts +41 -0
- package/dist/utils/project.d.ts.map +1 -0
- package/dist/utils/project.js +82 -0
- package/dist/utils/project.js.map +1 -0
- package/dist/utils/responses.d.ts +27 -0
- package/dist/utils/responses.d.ts.map +1 -0
- package/dist/utils/responses.js +72 -0
- package/dist/utils/responses.js.map +1 -0
- package/dist/utils/vectors.d.ts +33 -0
- package/dist/utils/vectors.d.ts.map +1 -0
- package/dist/utils/vectors.js +80 -0
- package/dist/utils/vectors.js.map +1 -0
- package/dist/utils/vectors.test.d.ts +6 -0
- package/dist/utils/vectors.test.d.ts.map +1 -0
- package/dist/utils/vectors.test.js +96 -0
- package/dist/utils/vectors.test.js.map +1 -0
- package/package.json +69 -0
- package/scripts/init.js +142 -0
- package/templates/CLAUDE.md.template +96 -0
- package/templates/agents/architecture-concept.md +237 -0
- package/templates/agents/checkpoint-concept.md +218 -0
- package/templates/agents/code-analysis-concept.md +171 -0
- package/templates/agents/compete-control.md +44 -0
- package/templates/agents/compete-evaluator.md +87 -0
- package/templates/agents/compete-treatment.md +55 -0
- package/templates/agents/context-concept.md +254 -0
- package/templates/agents/debate-advocate.md +127 -0
- package/templates/agents/debate-critic.md +119 -0
- package/templates/agents/debate-synthesis.md +160 -0
- package/templates/agents/documentation-concept.md +294 -0
- package/templates/agents/implementation-concept.md +165 -0
- package/templates/agents/quality-concept.md +299 -0
- package/templates/agents/research-concept.md +169 -0
- package/templates/agents/security-concept.md +255 -0
- package/templates/agents/story-concept.md +207 -0
- package/templates/agents/verification-concept.md +456 -0
- package/templates/agents/version-concept.md +163 -0
- package/templates/anchors/directory.anchor.yaml.template +53 -0
- package/templates/anchors/rules.anchor.yaml.template +70 -0
- package/templates/anchors/safety.anchor.yaml.template +96 -0
- package/templates/claude-md-managed.template +105 -0
- package/templates/commands/cache.md.template +439 -0
- package/templates/commands/checkpoint.md.template +121 -0
- package/templates/commands/classify.md.template +138 -0
- package/templates/commands/compete.md.template +90 -0
- package/templates/commands/costs.md.template +111 -0
- package/templates/commands/estimate.md.template +196 -0
- package/templates/commands/explore.md.template +186 -0
- package/templates/commands/feature.md.template +216 -0
- package/templates/commands/forget.md.template +104 -0
- package/templates/commands/global-recall.md.template +250 -0
- package/templates/commands/global-remember.md.template +187 -0
- package/templates/commands/health.md.template +107 -0
- package/templates/commands/help.md.template +253 -0
- package/templates/commands/observe.md.template +211 -0
- package/templates/commands/pr-review.md.template +164 -0
- package/templates/commands/predict-cost.md.template +251 -0
- package/templates/commands/profile.md.template +142 -0
- package/templates/commands/reasoning.md.template +228 -0
- package/templates/commands/recall.md.template +197 -0
- package/templates/commands/remember.md.template +148 -0
- package/templates/commands/replay.md.template +449 -0
- package/templates/commands/restore.md.template +87 -0
- package/templates/commands/retrospective.md.template +47 -0
- package/templates/commands/slo.md.template +286 -0
- package/templates/commands/spec.md.template +164 -0
- package/templates/commands/status.md.template +53 -0
- package/templates/commands/sync.md.template +321 -0
- package/templates/commands/task.md.template +86 -0
- package/templates/commands/trace.md.template +86 -0
- package/templates/commands/visualize.md.template +216 -0
- package/templates/commands/workflow.md.template +375 -0
- package/templates/concepts/README.md +329 -0
- package/templates/concepts/architecture.md.template +74 -0
- package/templates/concepts/code-analysis.md.template +186 -0
- package/templates/concepts/context-compactor.md.template +393 -0
- package/templates/concepts/context.md.template +62 -0
- package/templates/concepts/documentation.md.template +452 -0
- package/templates/concepts/estimator.md.template +214 -0
- package/templates/concepts/exploration.md.template +257 -0
- package/templates/concepts/global-memory.md.template +222 -0
- package/templates/concepts/implementation.md.template +62 -0
- package/templates/concepts/pr-review.md.template +277 -0
- package/templates/concepts/project-profile.md.template +358 -0
- package/templates/concepts/quality.md.template +63 -0
- package/templates/concepts/react-fallback.md.template +286 -0
- package/templates/concepts/research.md.template +221 -0
- package/templates/concepts/retrospective.md.template +93 -0
- package/templates/concepts/security.md.template +442 -0
- package/templates/concepts/slo.md.template +274 -0
- package/templates/concepts/spec.md.template +71 -0
- package/templates/concepts/story.md.template +50 -0
- package/templates/concepts/tool-router.md.template +289 -0
- package/templates/concepts/verification-synthesizer.md.template +279 -0
- package/templates/concepts/version.md.template +61 -0
- package/templates/config.yaml.template +347 -0
- package/templates/examples/README.md +77 -0
- package/templates/examples/architecture/api-design.yaml.template +286 -0
- package/templates/examples/architecture/oauth-authentication.yaml.template +305 -0
- package/templates/health/status.yaml.template +120 -0
- package/templates/hooks/concept-complete.sh.template +45 -0
- package/templates/hooks/lib/common.sh.template +160 -0
- package/templates/hooks/post-commit.sh.template +37 -0
- package/templates/hooks/post-concept-action.template +39 -0
- package/templates/hooks/post-tool-structure-check.sh.template +138 -0
- package/templates/hooks/post-tool-use.sh.template +51 -0
- package/templates/hooks/pre-compact.sh.template +48 -0
- package/templates/hooks/pre-tool-grounding.template +148 -0
- package/templates/hooks/session-exit-checkpoint.sh.template +35 -0
- package/templates/hooks/session-start.sh.template +67 -0
- package/templates/hooks/statusline.sh.template +148 -0
- package/templates/hooks/stop.sh.template +45 -0
- package/templates/hooks/subagent-stop.sh.template +40 -0
- package/templates/hooks/sync-blocked.sh.template +45 -0
- package/templates/hooks/timeout.sh.template +48 -0
- package/templates/hooks/user-prompt-submit.sh.template +68 -0
- package/templates/koan/README.md +58 -0
- package/templates/memory/index.yaml.template +48 -0
- package/templates/memory/procedural/debugging.yaml.template +24 -0
- package/templates/memory/procedural/workflows.yaml.template +22 -0
- package/templates/memory/semantic/architecture.yaml.template +21 -0
- package/templates/memory/semantic/conventions.yaml.template +18 -0
- package/templates/memory/semantic/patterns.yaml.template +21 -0
- package/templates/memory/semantic/preferences.yaml.template +18 -0
- package/templates/prompts/architecture.yaml.template +349 -0
- package/templates/prompts/context.yaml.template +384 -0
- package/templates/prompts/implementation.yaml.template +365 -0
- package/templates/prompts/planning.yaml.template +303 -0
- package/templates/prompts/quality.yaml.template +345 -0
- package/templates/prompts/retrospective.yaml.template +231 -0
- package/templates/prompts/slo.yaml.template +360 -0
- package/templates/prompts/story.yaml.template +236 -0
- package/templates/prompts/tree-of-thoughts.yaml.template +299 -0
- package/templates/prompts/verification.yaml.template +286 -0
- package/templates/prompts/version.yaml.template +279 -0
- package/templates/schemas/agent-schema.json +98 -0
- package/templates/schemas/architecture.schema.json +69 -0
- package/templates/schemas/config-schema.json +165 -0
- package/templates/schemas/implementation.schema.json +75 -0
- package/templates/schemas/planning.schema.json +243 -0
- package/templates/schemas/provenance.schema.json +111 -0
- package/templates/schemas/retrospective.schema.json +174 -0
- package/templates/schemas/review.schema.json +284 -0
- package/templates/schemas/slo.schema.json +443 -0
- package/templates/schemas/story.schema.json +68 -0
- package/templates/schemas/sync-schema.json +196 -0
- package/templates/schemas/task.schema.json +127 -0
- package/templates/schemas/tree-of-thoughts.schema.json +175 -0
- package/templates/schemas/verification.schema.json +106 -0
- package/templates/settings.full.json.template +135 -0
- package/templates/settings.minimal.json.template +68 -0
- package/templates/settings.standard.json.template +135 -0
- package/templates/skills/acceptance-criteria-generation.md.template +330 -0
- package/templates/skills/accessibility-checking.md.template +341 -0
- package/templates/skills/api-design-patterns.md.template +395 -0
- package/templates/skills/batch-processing.md.template +605 -0
- package/templates/skills/branch-strategy.md.template +362 -0
- package/templates/skills/changelog-generation.md.template +403 -0
- package/templates/skills/code-coverage-analysis.md.template +362 -0
- package/templates/skills/code-style-enforcement.md.template +294 -0
- package/templates/skills/code-template-patterns.md.template +419 -0
- package/templates/skills/concept-development.md.template +159 -0
- package/templates/skills/context-prioritization.md.template +306 -0
- package/templates/skills/cost-optimization.md.template +482 -0
- package/templates/skills/cross-project-knowledge.md.template +316 -0
- package/templates/skills/dependency-impact-analysis.md.template +263 -0
- package/templates/skills/documentation-generation.md.template +409 -0
- package/templates/skills/effort-estimation.md.template +350 -0
- package/templates/skills/error-classification.md.template +709 -0
- package/templates/skills/error-messages.md.template +339 -0
- package/templates/skills/ide-diagnostics.md.template +480 -0
- package/templates/skills/incremental-loading.md.template +574 -0
- package/templates/skills/output-caching.md.template +524 -0
- package/templates/skills/performance-estimation.md.template +325 -0
- package/templates/skills/performance-testing-patterns.md.template +341 -0
- package/templates/skills/phase2-optimizations-summary.md.template +458 -0
- package/templates/skills/progressive-disclosure-pattern.md.template +190 -0
- package/templates/skills/project-structure.md.template +372 -0
- package/templates/skills/provenance-analysis.md.template +609 -0
- package/templates/skills/react-executor.md.template +366 -0
- package/templates/skills/refactoring-patterns.md.template +422 -0
- package/templates/skills/release-management.md.template +373 -0
- package/templates/skills/requirement-prioritization.md.template +357 -0
- package/templates/skills/schema-validation.md.template +321 -0
- package/templates/skills/security-design-patterns.md.template +692 -0
- package/templates/skills/security-vulnerability-scanning.md.template +663 -0
- package/templates/skills/semantic-memory.md.template +266 -0
- package/templates/skills/semantic-versioning.md.template +371 -0
- package/templates/skills/smart-retry.md.template +676 -0
- package/templates/skills/smart-summarization.md.template +358 -0
- package/templates/skills/story-decomposition.md.template +278 -0
- package/templates/skills/synchronization-patterns.md.template +303 -0
- package/templates/skills/test-generation-strategy.md.template +247 -0
- package/templates/skills/workflow-replay.md.template +478 -0
- package/templates/skills/wysiwid-principles.md.template +364 -0
- package/templates/skills-manifest.yaml.template +526 -0
- package/templates/stubs/agents/architecture-concept.md +20 -0
- package/templates/stubs/agents/checkpoint-concept.md +19 -0
- package/templates/stubs/agents/code-analysis-concept.md +36 -0
- package/templates/stubs/agents/context-concept.md +37 -0
- package/templates/stubs/agents/debate-advocate.md +12 -0
- package/templates/stubs/agents/debate-critic.md +12 -0
- package/templates/stubs/agents/debate-synthesis.md +12 -0
- package/templates/stubs/agents/documentation-concept.md +39 -0
- package/templates/stubs/agents/implementation-concept.md +41 -0
- package/templates/stubs/agents/quality-concept.md +41 -0
- package/templates/stubs/agents/research-concept.md +35 -0
- package/templates/stubs/agents/security-concept.md +40 -0
- package/templates/stubs/agents/spec-concept.md +35 -0
- package/templates/stubs/agents/story-concept.md +36 -0
- package/templates/stubs/agents/verification-concept.md +39 -0
- package/templates/stubs/agents/version-concept.md +37 -0
- package/templates/stubs/commands/cache.md.template +2 -0
- package/templates/stubs/commands/checkpoint.md.template +2 -0
- package/templates/stubs/commands/classify.md.template +2 -0
- package/templates/stubs/commands/compete.md.template +2 -0
- package/templates/stubs/commands/costs.md.template +2 -0
- package/templates/stubs/commands/estimate.md.template +2 -0
- package/templates/stubs/commands/explore.md.template +2 -0
- package/templates/stubs/commands/feature.md.template +2 -0
- package/templates/stubs/commands/forget.md.template +2 -0
- package/templates/stubs/commands/global-recall.md.template +2 -0
- package/templates/stubs/commands/global-remember.md.template +2 -0
- package/templates/stubs/commands/health.md.template +2 -0
- package/templates/stubs/commands/help.md.template +2 -0
- package/templates/stubs/commands/observe.md.template +2 -0
- package/templates/stubs/commands/pr-review.md.template +2 -0
- package/templates/stubs/commands/predict-cost.md.template +2 -0
- package/templates/stubs/commands/profile.md.template +2 -0
- package/templates/stubs/commands/reasoning.md.template +2 -0
- package/templates/stubs/commands/recall.md.template +2 -0
- package/templates/stubs/commands/remember.md.template +2 -0
- package/templates/stubs/commands/replay.md.template +2 -0
- package/templates/stubs/commands/restore.md.template +2 -0
- package/templates/stubs/commands/retrospective.md.template +2 -0
- package/templates/stubs/commands/slo.md.template +2 -0
- package/templates/stubs/commands/spec.md.template +2 -0
- package/templates/stubs/commands/sync.md.template +2 -0
- package/templates/stubs/commands/task.md.template +2 -0
- package/templates/stubs/commands/trace.md.template +2 -0
- package/templates/stubs/commands/visualize.md.template +2 -0
- package/templates/stubs/commands/workflow.md.template +2 -0
- package/templates/synchronizations/archive/adaptive-learning.yaml.template +595 -0
- package/templates/synchronizations/archive/code-understanding-flow.yaml.template +533 -0
- package/templates/synchronizations/archive/collaboration-flow.yaml.template +521 -0
- package/templates/synchronizations/archive/context-folding.yaml.template +353 -0
- package/templates/synchronizations/archive/dead-letter-queue.yaml.template +530 -0
- package/templates/synchronizations/archive/documentation-flow.yaml.template +560 -0
- package/templates/synchronizations/archive/error-recovery-flow.yaml.template +1031 -0
- package/templates/synchronizations/archive/execution-loop.yaml.template +336 -0
- package/templates/synchronizations/archive/exploration-flow.yaml.template +369 -0
- package/templates/synchronizations/archive/feature-development.yaml.template +2145 -0
- package/templates/synchronizations/archive/learning-loop.yaml.template +657 -0
- package/templates/synchronizations/archive/multi-verify.yaml.template +346 -0
- package/templates/synchronizations/archive/planning-flow.yaml.template +312 -0
- package/templates/synchronizations/archive/retrospective-flow.yaml.template +277 -0
- package/templates/synchronizations/archive/security-flow.yaml.template +477 -0
- package/templates/synchronizations/archive/slo-monitoring.yaml.template +209 -0
- package/templates/synchronizations/archive/task-routing.yaml.template +489 -0
- package/templates/synchronizations/archive/test-driven.yaml.template +291 -0
- package/templates/synchronizations/archive/tool-routing.yaml.template +326 -0
- package/templates/synchronizations/archive/verification-flow.yaml.template +407 -0
- package/templates/synchronizations/error-policy.yaml.template +188 -0
- package/templates/synchronizations/main.sync.template +319 -0
- package/templates/synchronizations/slo-registry.yaml.template +229 -0
- package/templates/tasks/task.yaml.template +67 -0
- package/templates/zen-profile.yaml.template +14 -0
|
@@ -0,0 +1,657 @@
|
|
|
1
|
+
# Learning Loop Synchronization Rules
|
|
2
|
+
# Enables continuous learning from every workflow execution
|
|
3
|
+
#
|
|
4
|
+
# Based on research:
|
|
5
|
+
# - Darwin Gödel Machine: Self-improving agents
|
|
6
|
+
# - Continuous Learning: Every iteration improves the system
|
|
7
|
+
# - Self-training from prior execution
|
|
8
|
+
|
|
9
|
+
version: "1.0.0"
|
|
10
|
+
|
|
11
|
+
# Global SLO defaults for learning operations
|
|
12
|
+
slo_defaults:
|
|
13
|
+
expected_duration_ms: 3000
|
|
14
|
+
max_duration_ms: 15000
|
|
15
|
+
expected_cost_usd: 0.002
|
|
16
|
+
max_cost_usd: 0.008
|
|
17
|
+
expected_context_tokens: 1500
|
|
18
|
+
success_rate_target: 0.95
|
|
19
|
+
on_timeout:
|
|
20
|
+
action: "skip"
|
|
21
|
+
fallback: "Continue without storing learning"
|
|
22
|
+
on_cost_exceeded:
|
|
23
|
+
action: "alert"
|
|
24
|
+
continue: true
|
|
25
|
+
|
|
26
|
+
synchronizations:
|
|
27
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
28
|
+
# Success Pattern Extraction
|
|
29
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
30
|
+
|
|
31
|
+
# Extract pattern from every successful completion
|
|
32
|
+
- id: "success-to-pattern"
|
|
33
|
+
description: "Extract reusable patterns from successful workflows"
|
|
34
|
+
when:
|
|
35
|
+
concept: "quality"
|
|
36
|
+
action: "review"
|
|
37
|
+
status: "completed"
|
|
38
|
+
where:
|
|
39
|
+
query: "review.status == 'approved' AND review.rework_cycles == 0"
|
|
40
|
+
then:
|
|
41
|
+
- concept: "retrospective"
|
|
42
|
+
action: "extract_pattern"
|
|
43
|
+
model: "sonnet"
|
|
44
|
+
inputs:
|
|
45
|
+
source: "workflow"
|
|
46
|
+
workflow_id: "${workflow.id}"
|
|
47
|
+
story: "${story.summary}"
|
|
48
|
+
architecture: "${architecture.summary}"
|
|
49
|
+
implementation: "${implementation.summary}"
|
|
50
|
+
pattern_type: "success"
|
|
51
|
+
|
|
52
|
+
slo_expectations:
|
|
53
|
+
expected_duration_ms: 4000
|
|
54
|
+
max_duration_ms: 15000
|
|
55
|
+
expected_cost_usd: 0.002
|
|
56
|
+
max_cost_usd: 0.008
|
|
57
|
+
expected_context_tokens: 2000
|
|
58
|
+
on_timeout:
|
|
59
|
+
action: "skip"
|
|
60
|
+
fallback: "Pattern extraction deferred"
|
|
61
|
+
on_cost_exceeded:
|
|
62
|
+
action: "alert"
|
|
63
|
+
continue: true
|
|
64
|
+
|
|
65
|
+
provenance:
|
|
66
|
+
flow_id: "${flow.id}"
|
|
67
|
+
reason: "Learn from successful first-try workflow"
|
|
68
|
+
category: "learning"
|
|
69
|
+
|
|
70
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
71
|
+
# Failure Learning
|
|
72
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
73
|
+
|
|
74
|
+
# Extract learning from failures
|
|
75
|
+
- id: "failure-to-learning"
|
|
76
|
+
description: "Extract learnings from failed or reworked implementations"
|
|
77
|
+
when:
|
|
78
|
+
concept: "quality"
|
|
79
|
+
action: "review"
|
|
80
|
+
status: "completed"
|
|
81
|
+
where:
|
|
82
|
+
query: "review.status == 'needs_changes' OR review.rework_cycles > 0"
|
|
83
|
+
then:
|
|
84
|
+
- concept: "retrospective"
|
|
85
|
+
action: "extract_learning"
|
|
86
|
+
model: "sonnet"
|
|
87
|
+
inputs:
|
|
88
|
+
source: "workflow"
|
|
89
|
+
workflow_id: "${workflow.id}"
|
|
90
|
+
failure_type: "${review.failure_type}"
|
|
91
|
+
issues_found: "${review.issues}"
|
|
92
|
+
rework_cycles: "${review.rework_cycles}"
|
|
93
|
+
learning_type: "failure"
|
|
94
|
+
|
|
95
|
+
slo_expectations:
|
|
96
|
+
expected_duration_ms: 5000
|
|
97
|
+
max_duration_ms: 20000
|
|
98
|
+
expected_cost_usd: 0.003
|
|
99
|
+
max_cost_usd: 0.01
|
|
100
|
+
expected_context_tokens: 2500
|
|
101
|
+
on_timeout:
|
|
102
|
+
action: "skip"
|
|
103
|
+
fallback: "Failure learning deferred"
|
|
104
|
+
on_cost_exceeded:
|
|
105
|
+
action: "alert"
|
|
106
|
+
continue: true
|
|
107
|
+
|
|
108
|
+
provenance:
|
|
109
|
+
flow_id: "${flow.id}"
|
|
110
|
+
reason: "Learn from workflow that required rework"
|
|
111
|
+
category: "learning"
|
|
112
|
+
|
|
113
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
114
|
+
# Learning Injection
|
|
115
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
116
|
+
|
|
117
|
+
# Inject relevant learnings before implementation
|
|
118
|
+
- id: "pre-impl-inject-learnings"
|
|
119
|
+
description: "Inject relevant past learnings before starting implementation"
|
|
120
|
+
when:
|
|
121
|
+
concept: "implementation"
|
|
122
|
+
action: "generate"
|
|
123
|
+
status: "starting"
|
|
124
|
+
then:
|
|
125
|
+
- concept: "retrospective"
|
|
126
|
+
action: "retrieve_relevant_learnings"
|
|
127
|
+
model: "sonnet"
|
|
128
|
+
inputs:
|
|
129
|
+
task_description: "${implementation.task}"
|
|
130
|
+
story_type: "${story.type}"
|
|
131
|
+
technology: "${architecture.technology}"
|
|
132
|
+
max_learnings: 5
|
|
133
|
+
|
|
134
|
+
slo_expectations:
|
|
135
|
+
expected_duration_ms: 2000
|
|
136
|
+
max_duration_ms: 8000
|
|
137
|
+
expected_cost_usd: 0.001
|
|
138
|
+
max_cost_usd: 0.005
|
|
139
|
+
expected_context_tokens: 1000
|
|
140
|
+
on_timeout:
|
|
141
|
+
action: "skip"
|
|
142
|
+
fallback: "Proceed without learnings"
|
|
143
|
+
on_cost_exceeded:
|
|
144
|
+
action: "proceed"
|
|
145
|
+
|
|
146
|
+
provenance:
|
|
147
|
+
flow_id: "${flow.id}"
|
|
148
|
+
reason: "Inject learnings to prevent past mistakes"
|
|
149
|
+
category: "optimization"
|
|
150
|
+
|
|
151
|
+
# Apply learnings to implementation context
|
|
152
|
+
- id: "apply-learnings-to-impl"
|
|
153
|
+
description: "Apply retrieved learnings to implementation prompt"
|
|
154
|
+
when:
|
|
155
|
+
concept: "retrospective"
|
|
156
|
+
action: "retrieve_relevant_learnings"
|
|
157
|
+
status: "completed"
|
|
158
|
+
where:
|
|
159
|
+
query: "learnings.count > 0"
|
|
160
|
+
then:
|
|
161
|
+
- concept: "implementation"
|
|
162
|
+
action: "augment_prompt"
|
|
163
|
+
model: "sonnet"
|
|
164
|
+
inputs:
|
|
165
|
+
learnings: "${learnings.items}"
|
|
166
|
+
format: |
|
|
167
|
+
## Learnings from Past Work
|
|
168
|
+
|
|
169
|
+
Consider these insights from similar past implementations:
|
|
170
|
+
|
|
171
|
+
${learnings.items.map(l => '- ' + l.summary).join('\n')}
|
|
172
|
+
|
|
173
|
+
Avoid these past mistakes:
|
|
174
|
+
${learnings.failures.map(f => '- ' + f.mistake + ': ' + f.lesson).join('\n')}
|
|
175
|
+
|
|
176
|
+
slo_expectations:
|
|
177
|
+
expected_duration_ms: 1500
|
|
178
|
+
max_duration_ms: 5000
|
|
179
|
+
expected_cost_usd: 0.001
|
|
180
|
+
max_cost_usd: 0.003
|
|
181
|
+
expected_context_tokens: 800
|
|
182
|
+
on_timeout:
|
|
183
|
+
action: "skip"
|
|
184
|
+
fallback: "Continue without augmentation"
|
|
185
|
+
on_cost_exceeded:
|
|
186
|
+
action: "proceed"
|
|
187
|
+
|
|
188
|
+
provenance:
|
|
189
|
+
flow_id: "${flow.id}"
|
|
190
|
+
reason: "Augment implementation with past learnings"
|
|
191
|
+
category: "optimization"
|
|
192
|
+
|
|
193
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
194
|
+
# Decision Pattern Learning
|
|
195
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
196
|
+
|
|
197
|
+
# Learn from exploration decisions
|
|
198
|
+
- id: "exploration-to-learning"
|
|
199
|
+
description: "Store exploration decision patterns for future reference"
|
|
200
|
+
when:
|
|
201
|
+
concept: "exploration"
|
|
202
|
+
action: ["branch_explore", "backtrack"]
|
|
203
|
+
status: "completed"
|
|
204
|
+
then:
|
|
205
|
+
- concept: "retrospective"
|
|
206
|
+
action: "store_decision_pattern"
|
|
207
|
+
model: "sonnet"
|
|
208
|
+
inputs:
|
|
209
|
+
exploration_id: "${exploration.id}"
|
|
210
|
+
problem_type: "${exploration.problem_type}"
|
|
211
|
+
selected_path: "${exploration.selected_path}"
|
|
212
|
+
rejected_paths: "${exploration.rejected_paths}"
|
|
213
|
+
backtrack_reason: "${exploration.backtrack_reason}"
|
|
214
|
+
|
|
215
|
+
slo_expectations:
|
|
216
|
+
expected_duration_ms: 3000
|
|
217
|
+
max_duration_ms: 12000
|
|
218
|
+
expected_cost_usd: 0.002
|
|
219
|
+
max_cost_usd: 0.008
|
|
220
|
+
expected_context_tokens: 1500
|
|
221
|
+
on_timeout:
|
|
222
|
+
action: "skip"
|
|
223
|
+
fallback: "Decision pattern not stored"
|
|
224
|
+
on_cost_exceeded:
|
|
225
|
+
action: "alert"
|
|
226
|
+
continue: true
|
|
227
|
+
|
|
228
|
+
provenance:
|
|
229
|
+
flow_id: "${flow.id}"
|
|
230
|
+
reason: "Learn from exploration decisions"
|
|
231
|
+
category: "learning"
|
|
232
|
+
|
|
233
|
+
# Learn from tool routing outcomes
|
|
234
|
+
- id: "routing-to-learning"
|
|
235
|
+
description: "Store tool routing effectiveness"
|
|
236
|
+
when:
|
|
237
|
+
concept: "tool-router"
|
|
238
|
+
action: "learn_from_outcome"
|
|
239
|
+
status: "completed"
|
|
240
|
+
then:
|
|
241
|
+
- concept: "retrospective"
|
|
242
|
+
action: "update_tool_patterns"
|
|
243
|
+
model: "sonnet"
|
|
244
|
+
inputs:
|
|
245
|
+
task_type: "${routing.task_type}"
|
|
246
|
+
tools_effective: "${routing.tools_used}"
|
|
247
|
+
tools_ineffective: "${routing.tools_failed}"
|
|
248
|
+
outcome: "${routing.outcome}"
|
|
249
|
+
|
|
250
|
+
slo_expectations:
|
|
251
|
+
expected_duration_ms: 2000
|
|
252
|
+
max_duration_ms: 8000
|
|
253
|
+
expected_cost_usd: 0.001
|
|
254
|
+
max_cost_usd: 0.005
|
|
255
|
+
expected_context_tokens: 1000
|
|
256
|
+
on_timeout:
|
|
257
|
+
action: "skip"
|
|
258
|
+
fallback: "Tool patterns not updated"
|
|
259
|
+
on_cost_exceeded:
|
|
260
|
+
action: "proceed"
|
|
261
|
+
|
|
262
|
+
provenance:
|
|
263
|
+
flow_id: "${flow.id}"
|
|
264
|
+
reason: "Learn tool effectiveness patterns"
|
|
265
|
+
category: "intelligence"
|
|
266
|
+
|
|
267
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
268
|
+
# Pattern Maintenance
|
|
269
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
270
|
+
|
|
271
|
+
# Periodic pattern consolidation
|
|
272
|
+
- id: "daily-pattern-consolidation"
|
|
273
|
+
description: "Consolidate and prune learnings daily"
|
|
274
|
+
when:
|
|
275
|
+
schedule: "daily"
|
|
276
|
+
where:
|
|
277
|
+
query: "learnings.count > 50"
|
|
278
|
+
then:
|
|
279
|
+
- concept: "retrospective"
|
|
280
|
+
action: "consolidate_patterns"
|
|
281
|
+
model: "sonnet"
|
|
282
|
+
inputs:
|
|
283
|
+
max_patterns: 100
|
|
284
|
+
prune_threshold: 0.3 # Remove patterns used <30% of relevant cases
|
|
285
|
+
merge_similar: true
|
|
286
|
+
|
|
287
|
+
slo_expectations:
|
|
288
|
+
expected_duration_ms: 10000
|
|
289
|
+
max_duration_ms: 60000
|
|
290
|
+
expected_cost_usd: 0.005
|
|
291
|
+
max_cost_usd: 0.02
|
|
292
|
+
expected_context_tokens: 5000
|
|
293
|
+
on_timeout:
|
|
294
|
+
action: "skip"
|
|
295
|
+
fallback: "Consolidation deferred to next run"
|
|
296
|
+
on_cost_exceeded:
|
|
297
|
+
action: "alert"
|
|
298
|
+
continue: true
|
|
299
|
+
|
|
300
|
+
provenance:
|
|
301
|
+
flow_id: "${flow.id}"
|
|
302
|
+
reason: "Daily pattern maintenance"
|
|
303
|
+
category: "maintenance"
|
|
304
|
+
|
|
305
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
306
|
+
# Effectiveness Tracking
|
|
307
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
308
|
+
|
|
309
|
+
# Track learning effectiveness
|
|
310
|
+
- id: "track-learning-impact"
|
|
311
|
+
description: "Track whether learnings actually help"
|
|
312
|
+
when:
|
|
313
|
+
concept: "quality"
|
|
314
|
+
action: "review"
|
|
315
|
+
status: "completed"
|
|
316
|
+
where:
|
|
317
|
+
query: "implementation.learnings_applied.count > 0"
|
|
318
|
+
then:
|
|
319
|
+
- concept: "retrospective"
|
|
320
|
+
action: "update_learning_effectiveness"
|
|
321
|
+
model: "sonnet"
|
|
322
|
+
inputs:
|
|
323
|
+
learnings_applied: "${implementation.learnings_applied}"
|
|
324
|
+
outcome: "${review.status}"
|
|
325
|
+
rework_needed: "${review.rework_cycles > 0}"
|
|
326
|
+
|
|
327
|
+
slo_expectations:
|
|
328
|
+
expected_duration_ms: 2000
|
|
329
|
+
max_duration_ms: 8000
|
|
330
|
+
expected_cost_usd: 0.001
|
|
331
|
+
max_cost_usd: 0.005
|
|
332
|
+
expected_context_tokens: 1000
|
|
333
|
+
on_timeout:
|
|
334
|
+
action: "skip"
|
|
335
|
+
fallback: "Effectiveness tracking skipped"
|
|
336
|
+
on_cost_exceeded:
|
|
337
|
+
action: "proceed"
|
|
338
|
+
|
|
339
|
+
provenance:
|
|
340
|
+
flow_id: "${flow.id}"
|
|
341
|
+
reason: "Track whether applied learnings helped"
|
|
342
|
+
category: "intelligence"
|
|
343
|
+
|
|
344
|
+
# Share high-value learnings globally
|
|
345
|
+
- id: "high-value-to-global"
|
|
346
|
+
description: "Promote high-value learnings to global memory"
|
|
347
|
+
when:
|
|
348
|
+
concept: "retrospective"
|
|
349
|
+
action: "update_learning_effectiveness"
|
|
350
|
+
status: "completed"
|
|
351
|
+
where:
|
|
352
|
+
query: "learning.effectiveness > 0.8 AND learning.use_count > 5"
|
|
353
|
+
then:
|
|
354
|
+
- concept: "global-memory"
|
|
355
|
+
action: "store"
|
|
356
|
+
model: "sonnet"
|
|
357
|
+
inputs:
|
|
358
|
+
pattern: "${learning.pattern}"
|
|
359
|
+
category: "${learning.category}"
|
|
360
|
+
effectiveness: "${learning.effectiveness}"
|
|
361
|
+
source_project: "${project.name}"
|
|
362
|
+
|
|
363
|
+
slo_expectations:
|
|
364
|
+
expected_duration_ms: 2000
|
|
365
|
+
max_duration_ms: 8000
|
|
366
|
+
expected_cost_usd: 0.001
|
|
367
|
+
max_cost_usd: 0.005
|
|
368
|
+
expected_context_tokens: 1000
|
|
369
|
+
on_timeout:
|
|
370
|
+
action: "skip"
|
|
371
|
+
fallback: "Global promotion deferred"
|
|
372
|
+
on_cost_exceeded:
|
|
373
|
+
action: "proceed"
|
|
374
|
+
|
|
375
|
+
provenance:
|
|
376
|
+
flow_id: "${flow.id}"
|
|
377
|
+
reason: "Share effective learning globally"
|
|
378
|
+
category: "learning"
|
|
379
|
+
|
|
380
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
381
|
+
# Auto-Improvement
|
|
382
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
383
|
+
|
|
384
|
+
# Auto-update prompts based on learnings
|
|
385
|
+
- id: "auto-prompt-improvement"
|
|
386
|
+
description: "Suggest prompt improvements based on accumulated learnings"
|
|
387
|
+
when:
|
|
388
|
+
schedule: "weekly"
|
|
389
|
+
where:
|
|
390
|
+
query: "learnings.failure_patterns.count >= 3"
|
|
391
|
+
then:
|
|
392
|
+
- concept: "retrospective"
|
|
393
|
+
action: "suggest_prompt_improvements"
|
|
394
|
+
model: "opus"
|
|
395
|
+
inputs:
|
|
396
|
+
failure_patterns: "${learnings.failure_patterns}"
|
|
397
|
+
current_prompts: "${prompts.current}"
|
|
398
|
+
improvement_goal: "reduce_failure_rate"
|
|
399
|
+
|
|
400
|
+
slo_expectations:
|
|
401
|
+
expected_duration_ms: 15000
|
|
402
|
+
max_duration_ms: 60000
|
|
403
|
+
expected_cost_usd: 0.015
|
|
404
|
+
max_cost_usd: 0.05
|
|
405
|
+
expected_context_tokens: 5000
|
|
406
|
+
on_timeout:
|
|
407
|
+
action: "skip"
|
|
408
|
+
fallback: "Prompt improvement suggestions deferred"
|
|
409
|
+
on_cost_exceeded:
|
|
410
|
+
action: "alert"
|
|
411
|
+
continue: true
|
|
412
|
+
|
|
413
|
+
provenance:
|
|
414
|
+
flow_id: "${flow.id}"
|
|
415
|
+
reason: "Auto-suggest prompt improvements"
|
|
416
|
+
category: "intelligence"
|
|
417
|
+
|
|
418
|
+
# Learn from verification disagreements
|
|
419
|
+
- id: "verification-disagreement-learning"
|
|
420
|
+
description: "Learn from cases where verification agents disagreed"
|
|
421
|
+
when:
|
|
422
|
+
concept: "verification-synthesizer"
|
|
423
|
+
action: "resolve_disagreement"
|
|
424
|
+
status: "completed"
|
|
425
|
+
then:
|
|
426
|
+
- concept: "retrospective"
|
|
427
|
+
action: "store_disagreement_pattern"
|
|
428
|
+
model: "sonnet"
|
|
429
|
+
inputs:
|
|
430
|
+
issue_type: "${disagreement.issue_type}"
|
|
431
|
+
positions: "${disagreement.positions}"
|
|
432
|
+
resolution: "${disagreement.resolution}"
|
|
433
|
+
correct_agent: "${disagreement.correct_agent}"
|
|
434
|
+
|
|
435
|
+
slo_expectations:
|
|
436
|
+
expected_duration_ms: 3000
|
|
437
|
+
max_duration_ms: 12000
|
|
438
|
+
expected_cost_usd: 0.002
|
|
439
|
+
max_cost_usd: 0.008
|
|
440
|
+
expected_context_tokens: 1500
|
|
441
|
+
on_timeout:
|
|
442
|
+
action: "skip"
|
|
443
|
+
fallback: "Disagreement pattern not stored"
|
|
444
|
+
on_cost_exceeded:
|
|
445
|
+
action: "alert"
|
|
446
|
+
continue: true
|
|
447
|
+
|
|
448
|
+
provenance:
|
|
449
|
+
flow_id: "${flow.id}"
|
|
450
|
+
reason: "Learn from verification disagreements"
|
|
451
|
+
category: "learning"
|
|
452
|
+
|
|
453
|
+
# Learn from context folding
|
|
454
|
+
- id: "context-fold-learning"
|
|
455
|
+
description: "Learn which context is actually needed"
|
|
456
|
+
when:
|
|
457
|
+
concept: "context"
|
|
458
|
+
action: "fold_trajectory"
|
|
459
|
+
status: "completed"
|
|
460
|
+
then:
|
|
461
|
+
- concept: "retrospective"
|
|
462
|
+
action: "analyze_context_usage"
|
|
463
|
+
model: "sonnet"
|
|
464
|
+
inputs:
|
|
465
|
+
folded_content: "${fold.summary}"
|
|
466
|
+
preserved_artifacts: "${fold.artifacts}"
|
|
467
|
+
subsequent_references: "${fold.references_after}"
|
|
468
|
+
|
|
469
|
+
slo_expectations:
|
|
470
|
+
expected_duration_ms: 3000
|
|
471
|
+
max_duration_ms: 12000
|
|
472
|
+
expected_cost_usd: 0.002
|
|
473
|
+
max_cost_usd: 0.008
|
|
474
|
+
expected_context_tokens: 1500
|
|
475
|
+
on_timeout:
|
|
476
|
+
action: "skip"
|
|
477
|
+
fallback: "Context analysis skipped"
|
|
478
|
+
on_cost_exceeded:
|
|
479
|
+
action: "proceed"
|
|
480
|
+
|
|
481
|
+
provenance:
|
|
482
|
+
flow_id: "${flow.id}"
|
|
483
|
+
reason: "Learn context importance patterns"
|
|
484
|
+
category: "optimization"
|
|
485
|
+
|
|
486
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
487
|
+
# Retrospective-Driven Improvement Loop
|
|
488
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
489
|
+
#
|
|
490
|
+
# Connects retrospective analysis back to workflow improvements
|
|
491
|
+
|
|
492
|
+
# Workflow completion triggers retrospective analysis
|
|
493
|
+
- id: "workflow-complete-retrospective"
|
|
494
|
+
description: "Analyze complete workflow for improvements"
|
|
495
|
+
when:
|
|
496
|
+
concept: "version"
|
|
497
|
+
action: "commit"
|
|
498
|
+
status: "completed"
|
|
499
|
+
then:
|
|
500
|
+
- concept: "retrospective"
|
|
501
|
+
action: "analyze_workflow"
|
|
502
|
+
model: "sonnet"
|
|
503
|
+
inputs:
|
|
504
|
+
flow_id: "${flow.id}"
|
|
505
|
+
story_id: "${story.id}"
|
|
506
|
+
total_cost: "${flow.total_cost}"
|
|
507
|
+
total_duration: "${flow.duration}"
|
|
508
|
+
rework_cycles: "${quality.rework_cycles || 0}"
|
|
509
|
+
context_peak: "${context.peak_usage}"
|
|
510
|
+
|
|
511
|
+
slo_expectations:
|
|
512
|
+
expected_duration_ms: 5000
|
|
513
|
+
max_duration_ms: 20000
|
|
514
|
+
expected_cost_usd: 0.003
|
|
515
|
+
max_cost_usd: 0.01
|
|
516
|
+
expected_context_tokens: 2000
|
|
517
|
+
on_timeout:
|
|
518
|
+
action: "skip"
|
|
519
|
+
fallback: "Post-commit retrospective skipped"
|
|
520
|
+
on_cost_exceeded:
|
|
521
|
+
action: "alert"
|
|
522
|
+
continue: true
|
|
523
|
+
|
|
524
|
+
provenance:
|
|
525
|
+
flow_id: "${flow.id}"
|
|
526
|
+
reason: "Post-commit retrospective analysis"
|
|
527
|
+
category: "core"
|
|
528
|
+
|
|
529
|
+
# Retrospective insights feed into learning loop
|
|
530
|
+
- id: "retrospective-to-learning"
|
|
531
|
+
description: "Convert retrospective insights to learnings"
|
|
532
|
+
when:
|
|
533
|
+
concept: "retrospective"
|
|
534
|
+
action: "analyze_workflow"
|
|
535
|
+
status: "completed"
|
|
536
|
+
where:
|
|
537
|
+
query: "retrospective.insights.count > 0"
|
|
538
|
+
then:
|
|
539
|
+
- concept: "retrospective"
|
|
540
|
+
action: "store_insights"
|
|
541
|
+
model: "sonnet"
|
|
542
|
+
inputs:
|
|
543
|
+
insights: "${retrospective.insights}"
|
|
544
|
+
workflow_metrics:
|
|
545
|
+
cost_efficiency: "${flow.total_cost / story.complexity}"
|
|
546
|
+
time_efficiency: "${flow.duration / story.estimated_duration}"
|
|
547
|
+
quality_score: "${quality.score}"
|
|
548
|
+
recommendations: "${retrospective.recommendations}"
|
|
549
|
+
|
|
550
|
+
slo_expectations:
|
|
551
|
+
expected_duration_ms: 3000
|
|
552
|
+
max_duration_ms: 12000
|
|
553
|
+
expected_cost_usd: 0.002
|
|
554
|
+
max_cost_usd: 0.008
|
|
555
|
+
expected_context_tokens: 1500
|
|
556
|
+
on_timeout:
|
|
557
|
+
action: "skip"
|
|
558
|
+
fallback: "Insights storage deferred"
|
|
559
|
+
on_cost_exceeded:
|
|
560
|
+
action: "alert"
|
|
561
|
+
continue: true
|
|
562
|
+
|
|
563
|
+
provenance:
|
|
564
|
+
flow_id: "${flow.id}"
|
|
565
|
+
reason: "Store retrospective insights for learning"
|
|
566
|
+
category: "learning"
|
|
567
|
+
|
|
568
|
+
# Apply retrospective learnings to future workflows
|
|
569
|
+
- id: "retrospective-inject-pre-story"
|
|
570
|
+
description: "Inject relevant retrospective learnings before story creation"
|
|
571
|
+
when:
|
|
572
|
+
concept: "story"
|
|
573
|
+
action: "create"
|
|
574
|
+
status: "starting"
|
|
575
|
+
then:
|
|
576
|
+
- concept: "retrospective"
|
|
577
|
+
action: "get_relevant_insights"
|
|
578
|
+
model: "sonnet"
|
|
579
|
+
inputs:
|
|
580
|
+
context: "${user.request}"
|
|
581
|
+
insight_types: ["cost_optimization", "quality_improvement", "common_pitfalls"]
|
|
582
|
+
max_insights: 3
|
|
583
|
+
|
|
584
|
+
slo_expectations:
|
|
585
|
+
expected_duration_ms: 2000
|
|
586
|
+
max_duration_ms: 8000
|
|
587
|
+
expected_cost_usd: 0.001
|
|
588
|
+
max_cost_usd: 0.005
|
|
589
|
+
expected_context_tokens: 1000
|
|
590
|
+
on_timeout:
|
|
591
|
+
action: "skip"
|
|
592
|
+
fallback: "Proceed without insights"
|
|
593
|
+
on_cost_exceeded:
|
|
594
|
+
action: "proceed"
|
|
595
|
+
|
|
596
|
+
provenance:
|
|
597
|
+
flow_id: "${flow.id}"
|
|
598
|
+
reason: "Apply past retrospective insights"
|
|
599
|
+
category: "optimization"
|
|
600
|
+
|
|
601
|
+
# Track retrospective-driven improvements
|
|
602
|
+
- id: "track-retrospective-impact"
|
|
603
|
+
description: "Measure whether retrospective insights improved outcomes"
|
|
604
|
+
when:
|
|
605
|
+
concept: "version"
|
|
606
|
+
action: "commit"
|
|
607
|
+
status: "completed"
|
|
608
|
+
where:
|
|
609
|
+
query: "flow.retrospective_insights_applied.count > 0"
|
|
610
|
+
then:
|
|
611
|
+
- concept: "retrospective"
|
|
612
|
+
action: "measure_insight_impact"
|
|
613
|
+
model: "sonnet"
|
|
614
|
+
inputs:
|
|
615
|
+
insights_applied: "${flow.retrospective_insights_applied}"
|
|
616
|
+
predicted_improvement: "${insights.predicted_delta}"
|
|
617
|
+
actual_metrics:
|
|
618
|
+
cost: "${flow.total_cost}"
|
|
619
|
+
duration: "${flow.duration}"
|
|
620
|
+
quality: "${quality.score}"
|
|
621
|
+
|
|
622
|
+
slo_expectations:
|
|
623
|
+
expected_duration_ms: 2000
|
|
624
|
+
max_duration_ms: 8000
|
|
625
|
+
expected_cost_usd: 0.001
|
|
626
|
+
max_cost_usd: 0.005
|
|
627
|
+
expected_context_tokens: 1000
|
|
628
|
+
on_timeout:
|
|
629
|
+
action: "skip"
|
|
630
|
+
fallback: "Impact tracking skipped"
|
|
631
|
+
on_cost_exceeded:
|
|
632
|
+
action: "proceed"
|
|
633
|
+
|
|
634
|
+
provenance:
|
|
635
|
+
flow_id: "${flow.id}"
|
|
636
|
+
reason: "Track retrospective insight effectiveness"
|
|
637
|
+
category: "intelligence"
|
|
638
|
+
|
|
639
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
640
|
+
# Learning Loop Summary
|
|
641
|
+
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
642
|
+
#
|
|
643
|
+
# Categories:
|
|
644
|
+
# - learning: Pattern extraction and storage
|
|
645
|
+
# - optimization: Applying learnings to improve performance
|
|
646
|
+
# - intelligence: Self-improvement and adaptation
|
|
647
|
+
# - maintenance: Pattern consolidation and cleanup
|
|
648
|
+
# - core: Primary workflow integration
|
|
649
|
+
#
|
|
650
|
+
# Key Flows:
|
|
651
|
+
# 1. Success → Extract Pattern → Store
|
|
652
|
+
# 2. Failure → Extract Learning → Store
|
|
653
|
+
# 3. Before Impl → Retrieve Learnings → Inject
|
|
654
|
+
# 4. After Review → Track Effectiveness → Update Confidence
|
|
655
|
+
# 5. High Value → Promote to Global Memory
|
|
656
|
+
#
|
|
657
|
+
# Expected costs per workflow: ~$0.01-0.02 for learning operations
|