agentic-flow 1.5.13 → 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 (72) hide show
  1. package/CHANGELOG.md +199 -0
  2. package/README.md +42 -23
  3. package/dist/cli-proxy.js +195 -1
  4. package/dist/config/quic.js +6 -0
  5. package/dist/transport/quic.js +43 -0
  6. package/dist/utils/cli.js +5 -0
  7. package/docs/.claude-flow/metrics/performance.json +80 -2
  8. package/docs/.claude-flow/metrics/task-metrics.json +3 -3
  9. package/docs/INDEX.md +55 -9
  10. package/docs/INTEGRATION-COMPLETE.md +291 -0
  11. package/docs/QUIC_FINAL_STATUS.md +399 -0
  12. package/docs/README_QUIC_PHASE1.md +117 -0
  13. package/docs/integration-docs/CLAUDE-FLOW-INTEGRATION-ANALYSIS.md +653 -0
  14. package/docs/integration-docs/INTEGRATION-QUICK-SUMMARY.md +249 -0
  15. package/docs/integration-docs/INTEGRATION-STATUS-CORRECTED.md +488 -0
  16. package/docs/integration-docs/README.md +61 -0
  17. package/docs/quantum-goap/DEPENDENCY_GRAPH.mermaid +133 -0
  18. package/docs/quantum-goap/EXECUTION_SUMMARY.md +199 -0
  19. package/docs/quantum-goap/GOAP_IMPLEMENTATION_PLAN.md +2406 -0
  20. package/docs/quantum-goap/QUICK_START.md +301 -0
  21. package/docs/quantum-research/QUANTUM_RESEARCH_LITERATURE_REVIEW.md +2071 -0
  22. package/docs/quantum-research/README.md +94 -0
  23. package/docs/reasoningbank/MEMORY_VALIDATION_REPORT.md +417 -0
  24. package/docs/reasoningbank/README.md +43 -0
  25. package/docs/reasoningbank/REASONINGBANK_ARCHITECTURE.md +663 -0
  26. package/docs/releases/v1.5.14-QUIC-TRANSPORT.md +201 -0
  27. package/docs/validation-reports/BENCHMARK_AND_OPTIMIZATION_REPORT.md +470 -0
  28. package/docs/validation-reports/NPM-PACKAGE-ANALYSIS-FINAL.md +543 -0
  29. package/docs/validation-reports/README.md +43 -0
  30. package/docs/validation-reports/V2.7.0-ALPHA.10_FINAL_VALIDATION.md +817 -0
  31. package/docs/validation-reports/V2.7.0-ALPHA.9_VALIDATION.md +546 -0
  32. package/docs/validation-reports/v1.6.0-QUIC-CLI-VALIDATION.md +558 -0
  33. package/docs/version-releases/README.md +82 -0
  34. package/package.json +4 -2
  35. package/validation/docker-quic-test.sh +42 -0
  36. package/validation/docker-quic-validation.sh +60 -0
  37. package/validation/quic-deep-validation.ts +304 -0
  38. package/validation/test-quic-wasm.ts +94 -0
  39. package/wasm/quic/README.md +75 -0
  40. package/wasm/quic/agentic_flow_quic.d.ts +37 -0
  41. package/wasm/quic/agentic_flow_quic.js +779 -0
  42. package/wasm/quic/agentic_flow_quic_bg.wasm +0 -0
  43. package/wasm/quic/agentic_flow_quic_bg.wasm.d.ts +19 -0
  44. package/wasm/quic/package.json +20 -0
  45. package/wasm/reasoningbank/reasoningbank_wasm_bg.js +2 -2
  46. package/wasm/reasoningbank/reasoningbank_wasm_bg.wasm +0 -0
  47. /package/docs/{PACKAGE_STRUCTURE.md → architecture/PACKAGE_STRUCTURE.md} +0 -0
  48. /package/docs/{MODEL-ID-MAPPING.md → guides/MODEL-ID-MAPPING.md} +0 -0
  49. /package/docs/{ONNX-PROXY-IMPLEMENTATION.md → guides/ONNX-PROXY-IMPLEMENTATION.md} +0 -0
  50. /package/docs/{STANDALONE_PROXY_GUIDE.md → guides/STANDALONE_PROXY_GUIDE.md} +0 -0
  51. /package/docs/{AGENT-BOOSTER-INTEGRATION.md → integration-docs/AGENT-BOOSTER-INTEGRATION.md} +0 -0
  52. /package/docs/{CLI-INTEGRATION-COMPLETE.md → integration-docs/CLI-INTEGRATION-COMPLETE.md} +0 -0
  53. /package/docs/{IMPLEMENTATION_SUMMARY.md → integration-docs/IMPLEMENTATION_SUMMARY.md} +0 -0
  54. /package/docs/{INTEGRATION_COMPLETE_SUMMARY.md → integration-docs/INTEGRATION_COMPLETE_SUMMARY.md} +0 -0
  55. /package/docs/{WASM_ESM_FIX.md → integration-docs/WASM_ESM_FIX.md} +0 -0
  56. /package/docs/{WASM_INTEGRATION_COMPLETE.md → integration-docs/WASM_INTEGRATION_COMPLETE.md} +0 -0
  57. /package/docs/{REASONING-AGENTS.md → reasoningbank/REASONING-AGENTS.md} +0 -0
  58. /package/docs/{REASONINGBANK-BENCHMARK-RESULTS.md → reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md} +0 -0
  59. /package/docs/{REASONINGBANK-BENCHMARK.md → reasoningbank/REASONINGBANK-BENCHMARK.md} +0 -0
  60. /package/docs/{REASONINGBANK-CLI-INTEGRATION.md → reasoningbank/REASONINGBANK-CLI-INTEGRATION.md} +0 -0
  61. /package/docs/{REASONINGBANK-DEMO.md → reasoningbank/REASONINGBANK-DEMO.md} +0 -0
  62. /package/docs/{REASONINGBANK-VALIDATION.md → reasoningbank/REASONINGBANK-VALIDATION.md} +0 -0
  63. /package/docs/{REASONINGBANK_BACKENDS.md → reasoningbank/REASONINGBANK_BACKENDS.md} +0 -0
  64. /package/docs/{REASONINGBANK_FIXES.md → reasoningbank/REASONINGBANK_FIXES.md} +0 -0
  65. /package/docs/{REASONINGBANK_IMPLEMENTATION_STATUS.md → reasoningbank/REASONINGBANK_IMPLEMENTATION_STATUS.md} +0 -0
  66. /package/docs/{REASONINGBANK_INTEGRATION_PLAN.md → reasoningbank/REASONINGBANK_INTEGRATION_PLAN.md} +0 -0
  67. /package/docs/{REASONINGBANK_INVESTIGATION.md → reasoningbank/REASONINGBANK_INVESTIGATION.md} +0 -0
  68. /package/docs/{DOCKER_VALIDATION_RESULTS.md → validation-reports/DOCKER_VALIDATION_RESULTS.md} +0 -0
  69. /package/docs/{NO_REGRESSIONS_CONFIRMED.md → validation-reports/NO_REGRESSIONS_CONFIRMED.md} +0 -0
  70. /package/docs/{PUBLICATION_REPORT_v1.5.11.md → version-releases/PUBLICATION_REPORT_v1.5.11.md} +0 -0
  71. /package/docs/{v1.5.9-DOCKER-VERIFICATION.md → version-releases/v1.5.9-DOCKER-VERIFICATION.md} +0 -0
  72. /package/docs/{v1.5.9-RELEASE-SUMMARY.md → version-releases/v1.5.9-RELEASE-SUMMARY.md} +0 -0
@@ -0,0 +1,301 @@
1
+ # Quantum Research Project - Quick Start Guide
2
+
3
+ ## 🎯 Goal
4
+ Test whether consciousness affects quantum measurement outcomes using the Observer-Agnostic Measurement theorem.
5
+
6
+ ## 📊 Project Status
7
+
8
+ **Current Phase**: Planning Complete ✅
9
+ **Next Action**: 1.1 Formalize Theorem
10
+ **Completion**: 0% (47 actions remaining)
11
+
12
+ ## ⚡ Quick Commands
13
+
14
+ ### Initialize Project
15
+ ```bash
16
+ # Create project structure
17
+ mkdir -p observer-invariance/{src,tests,docs,examples,data}
18
+ cd observer-invariance
19
+
20
+ # Initialize Rust project
21
+ cargo init --lib
22
+ git init
23
+
24
+ # View full GOAP plan
25
+ cat /workspaces/agentic-flow/docs/quantum-goap/GOAP_IMPLEMENTATION_PLAN.md
26
+ ```
27
+
28
+ ### Start Phase 1: Theory (Week 1-2)
29
+ ```bash
30
+ # Initialize coordination hooks
31
+ npx claude-flow@alpha hooks pre-task \
32
+ --description "Phase 1: Theoretical Foundation"
33
+
34
+ # Begin theorem formalization
35
+ # (Human task: Convert research.md to formal LaTeX)
36
+ ```
37
+
38
+ ### Start Phase 2: Simulation (Week 2-4)
39
+ ```bash
40
+ # Set up Rust project
41
+ cat > Cargo.toml << 'EOF'
42
+ [package]
43
+ name = "observer_invariance"
44
+ version = "0.1.0"
45
+ edition = "2021"
46
+
47
+ [dependencies]
48
+ nalgebra = "0.32"
49
+ num-complex = "0.4"
50
+ rand = "0.8"
51
+ statrs = "0.16"
52
+ clap = { version = "4.5", features = ["derive"] }
53
+ csv = "1.3"
54
+ EOF
55
+
56
+ # Create module structure
57
+ mkdir -p src tests
58
+ touch src/{lib.rs,math.rs,eraser.rs,duality.rs,cli.rs}
59
+ touch tests/{invariance_tests.rs,duality_tests.rs}
60
+
61
+ # Start development
62
+ cargo test
63
+ ```
64
+
65
+ ## 📁 Project Structure
66
+
67
+ ```
68
+ observer-invariance/
69
+ ├── Cargo.toml # Rust dependencies
70
+ ├── src/
71
+ │ ├── lib.rs # Module exports
72
+ │ ├── math.rs # Quantum math primitives
73
+ │ ├── eraser.rs # Delayed-choice eraser logic
74
+ │ ├── duality.rs # Visibility-distinguishability
75
+ │ └── cli.rs # Command-line interface
76
+ ├── tests/
77
+ │ ├── invariance_tests.rs # Singles invariance tests
78
+ │ └── duality_tests.rs # Duality bound tests
79
+ ├── docs/
80
+ │ ├── theorem_formal.tex # Formal theorem statement
81
+ │ ├── GOAP_IMPLEMENTATION_PLAN.md
82
+ │ └── EXECUTION_SUMMARY.md
83
+ ├── data/ # Generated CSV data
84
+ └── examples/ # Usage examples
85
+ ```
86
+
87
+ ## 🚀 Execution Phases
88
+
89
+ ### Phase 1: Theory (Weeks 1-2) - Cost: 9
90
+ - [ ] 1.1 Formalize theorem in LaTeX
91
+ - [ ] 1.2 Verify proof rigorously
92
+ - [ ] 1.3 Define falsifiable predictions
93
+
94
+ ### Phase 2: Simulation (Weeks 2-4) - Cost: 19
95
+ - [ ] 2.1 Initialize Rust project
96
+ - [ ] 2.2 Implement math.rs (quantum primitives)
97
+ - [ ] 2.3 Implement eraser.rs (DCQE logic)
98
+ - [ ] 2.4 Implement duality.rs (V² + D² ≤ 1)
99
+ - [ ] 2.5 Build CLI tool
100
+
101
+ ### Phase 3: Testing (Weeks 3-5) - Cost: 15
102
+ - [ ] 3.1 Write unit tests (95% coverage target)
103
+ - [ ] 3.2 Write invariance tests (verify singles flat)
104
+ - [ ] 3.3 Write duality tests (verify bound)
105
+ - [ ] 3.4 Run comprehensive test suite
106
+
107
+ ### Phase 4: Validation (Week 5) - Cost: 3
108
+ - [ ] 4.1 Generate phase sweep data (1000 steps)
109
+ - [ ] 4.2 Visualize results (plots)
110
+ - [ ] 4.3 Document simulation findings
111
+
112
+ ### Phase 5: Experimental Design (Weeks 6-8) - Cost: 23
113
+ - [ ] 5.1 Design photonic apparatus (CAD)
114
+ - [ ] 5.2 Write calibration protocol
115
+ - [ ] 5.3 Design statistical analysis plan
116
+ - [ ] 5.4 Create pre-registration document
117
+
118
+ ### Phase 6: Lab Setup (Weeks 9-16) - Cost: 34
119
+ - [ ] 6.1 Secure funding ($280k)
120
+ - [ ] 6.2 Procure hardware (SPDC, APDs, etc.)
121
+ - [ ] 6.3 Build optical setup
122
+ - [ ] 6.4 Calibrate apparatus
123
+
124
+ ### Phase 7: Data Collection (Weeks 17-20) - Cost: 17
125
+ - [ ] 7.1 Run pilot study (10⁵ events)
126
+ - [ ] 7.2 Collect full dataset (15M events)
127
+
128
+ ### Phase 8: Analysis (Weeks 21-22) - Cost: 14
129
+ - [ ] 8.1 Unblind data
130
+ - [ ] 8.2 Perform statistical tests
131
+ - [ ] 8.3 Interpret results
132
+
133
+ ### Phase 9: Publication (Weeks 23-24) - Cost: 17
134
+ - [ ] 9.1 Draft paper
135
+ - [ ] 9.2 Publish code + data
136
+ - [ ] 9.3 Disseminate results
137
+
138
+ ## 📈 Key Metrics
139
+
140
+ | Metric | Target | Current |
141
+ |--------|--------|---------|
142
+ | Actions Complete | 47 | 0 |
143
+ | Test Coverage | 95% | N/A |
144
+ | Singles Invariance | \|p(y) - 0.5\| < 10⁻¹² | N/A |
145
+ | Duality Bound | V² + D² ≤ 1.0 | N/A |
146
+ | Funding Secured | $280,000 | $0 |
147
+ | Events Collected | 15M | 0 |
148
+
149
+ ## 🎓 Required Skills
150
+
151
+ - **Quantum Mechanics**: Expert (theorem, experimental design)
152
+ - **Rust Programming**: Intermediate (simulation)
153
+ - **Quantum Optics**: Expert (apparatus, calibration)
154
+ - **Statistics**: Advanced (analysis plan, tests)
155
+ - **Technical Writing**: Advanced (paper, documentation)
156
+
157
+ ## 💰 Budget Breakdown
158
+
159
+ | Category | Amount |
160
+ |----------|--------|
161
+ | Personnel | $70,000 |
162
+ | SPDC Source | $30,000 |
163
+ | Detection System | $50,000 |
164
+ | Optical Components | $15,000 |
165
+ | Motion Control | $20,000 |
166
+ | Optical Table | $25,000 |
167
+ | Lab Operations | $15,000 |
168
+ | Publication | $5,000 |
169
+ | Contingency (20%) | $50,000 |
170
+ | **TOTAL** | **$280,000** |
171
+
172
+ ## 📚 Documentation
173
+
174
+ - **[GOAP_IMPLEMENTATION_PLAN.md](GOAP_IMPLEMENTATION_PLAN.md)**: Full 15,000-word detailed plan
175
+ - **[EXECUTION_SUMMARY.md](EXECUTION_SUMMARY.md)**: Quick reference guide
176
+ - **[DEPENDENCY_GRAPH.mermaid](DEPENDENCY_GRAPH.mermaid)**: Visual dependency diagram
177
+ - **[Research Document](../../examples/Observer-Agnostic%20Measurement%20and%20No-Retrocausal%20Marginals%20Theorem/research.md/research.md)**: Original theorem & research
178
+
179
+ ## 🔗 Visual Dependency Graph
180
+
181
+ ```mermaid
182
+ graph LR
183
+ A[START] --> B[Formalize Theorem]
184
+ B --> C[Verify Proof]
185
+ C --> D[Define Predictions]
186
+ D --> E[Design Apparatus]
187
+ E --> F[Pre-registration]
188
+ F --> G[Secure Funding]
189
+ G --> H[Procure Hardware]
190
+ H --> I[Build Setup]
191
+ I --> J[Calibrate]
192
+ J --> K[Data Collection]
193
+ K --> L[Statistical Analysis]
194
+ L --> M[Draft Paper]
195
+ M --> N[END]
196
+
197
+ style A fill:#ffd43b
198
+ style N fill:#51cf66
199
+ style G fill:#ff6b6b
200
+ style K fill:#ff6b6b
201
+ ```
202
+
203
+ **Legend**:
204
+ - 🟡 Yellow: Start/End
205
+ - 🔴 Red: Critical bottlenecks (Funding, Data Collection)
206
+ - ⚪ White: Standard actions
207
+
208
+ ## ⚠️ Critical Risks
209
+
210
+ | Risk | Probability | Impact | Mitigation |
211
+ |------|-------------|--------|------------|
212
+ | Funding not secured | 40% | 🔴 HIGH | Apply to multiple sources |
213
+ | Hardware lead times | 30% | 🟡 MEDIUM | Order early, backup vendors |
214
+ | Apparatus won't align | 20% | 🟡 MEDIUM | Hire expert, allow extra time |
215
+ | Insufficient statistics | 15% | 🟡 MEDIUM | Power analysis, extend collection |
216
+
217
+ ## 🎯 Success Criteria
218
+
219
+ ### Simulation (Weeks 1-5)
220
+ ✅ All tests pass with 95%+ coverage
221
+ ✅ Singles invariance verified to machine precision
222
+ ✅ Duality bound V² + D² ≤ 1.0 confirmed
223
+ ✅ CLI generates publication-quality data
224
+
225
+ ### Experiment (Weeks 6-20)
226
+ ✅ Apparatus achieves V > 0.98, S > 2.5
227
+ ✅ 15M events collected across 3 controllers
228
+ ✅ Drift logs show stability < 0.1%/hour
229
+ ✅ Blinding protocol maintained
230
+
231
+ ### Analysis (Weeks 21-22)
232
+ ✅ Equivalence confirmed: |Δp| < 5×10⁻⁴
233
+ ✅ No controller-dependent effects detected
234
+ ✅ All systematics ruled out
235
+ ✅ Results match simulation predictions
236
+
237
+ ### Publication (Weeks 23-24)
238
+ ✅ Paper submitted to peer-reviewed journal
239
+ ✅ Code + data published with DOIs
240
+ ✅ Preprint on arXiv
241
+ ✅ Reproducibility documentation complete
242
+
243
+ ## 🚦 Getting Started Checklist
244
+
245
+ **Today**:
246
+ - [x] Read research document
247
+ - [x] Review GOAP implementation plan
248
+ - [ ] Assemble team (PI, postdoc, lab tech)
249
+ - [ ] Identify lab space and equipment access
250
+
251
+ **Week 1**:
252
+ - [ ] Begin theorem formalization in LaTeX
253
+ - [ ] Set up Rust development environment
254
+ - [ ] Create project repository on GitHub
255
+ - [ ] Draft preliminary budget for funding proposal
256
+
257
+ **Week 2**:
258
+ - [ ] Complete formal theorem statement
259
+ - [ ] Implement math.rs module
260
+ - [ ] Start experimental apparatus design
261
+ - [ ] Identify funding opportunities
262
+
263
+ **Week 4**:
264
+ - [ ] Simulation code complete with tests passing
265
+ - [ ] Apparatus design finalized with BOM
266
+ - [ ] Statistical analysis plan drafted
267
+ - [ ] Submit first grant proposal
268
+
269
+ ## 📞 Support & Resources
270
+
271
+ **Documentation**:
272
+ - Full GOAP Plan: `/workspaces/agentic-flow/docs/quantum-goap/GOAP_IMPLEMENTATION_PLAN.md`
273
+ - Research Paper: Original theorem and motivation
274
+ - Rust Book: https://doc.rust-lang.org/book/
275
+
276
+ **Tools**:
277
+ - Rust: https://www.rust-lang.org/
278
+ - nalgebra: Linear algebra library
279
+ - Mermaid: https://mermaid.live (visualize dependency graph)
280
+ - LaTeX: Theorem formalization
281
+
282
+ **Community**:
283
+ - Quantum Foundations: arXiv.org/list/quant-ph/recent
284
+ - Rust Community: https://users.rust-lang.org/
285
+ - Experimental Quantum Optics: Physics forums
286
+
287
+ ---
288
+
289
+ **Status**: Planning complete. Ready to begin Phase 1. 🚀
290
+
291
+ **Next Steps**:
292
+ 1. Assemble team
293
+ 2. Initialize Rust project
294
+ 3. Begin theorem formalization
295
+ 4. Start funding applications
296
+
297
+ **Estimated Timeline**: 28-40 weeks from start to publication
298
+ **Estimated Budget**: $280,000
299
+ **Success Probability**: 85% (with proper resources)
300
+
301
+ Let's test whether consciousness affects quantum mechanics! 🔬⚛️