Commit graph

2409 commits

Author SHA1 Message Date
rUv
2db17a5b2d fix(rvf-wasm): fix Node.js CJS/ESM glue and add rvf-node CI
- Fix WASM glue: detect Node.js properly instead of relying on fetch()
  (fetch on file:// URLs fails in Node.js 18-21)
- Support both CJS require() and ESM import via exports map
- Add .mjs ESM wrapper for dual-format support
- Remove "type": "module" for CJS compatibility
- Bump rvf-wasm to 0.1.5
- Add build-rvf-node.yml CI workflow for cross-platform NAPI builds
  (linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc)
- Fix wasm-dedup-check CI: use --ignore-scripts --omit=optional to avoid
  EBADPLATFORM errors from platform-specific workspace packages

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 21:33:14 +00:00
rUv
f6c37cd785 fix(rvf-wasm): fix Node.js CJS/ESM glue and add rvf-node CI
- Fix WASM glue: detect Node.js properly instead of relying on fetch()
  (fetch on file:// URLs fails in Node.js 18-21)
- Support both CJS require() and ESM import via exports map
- Add .mjs ESM wrapper for dual-format support
- Remove "type": "module" for CJS compatibility
- Bump rvf-wasm to 0.1.5
- Add build-rvf-node.yml CI workflow for cross-platform NAPI builds
  (linux-x64-gnu, linux-arm64-gnu, darwin-x64, darwin-arm64, win32-x64-msvc)
- Fix wasm-dedup-check CI: use --ignore-scripts --omit=optional to avoid
  EBADPLATFORM errors from platform-specific workspace packages

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 21:33:14 +00:00
rUv
f57bc32d8d fix(rvf): populate backend binaries and fix SDK API wiring
- Build NAPI native addon (linux-x64-gnu, 1.3MB) and WASM binary (42KB)
- Fix NodeBackend to use RvfDatabase class instance methods instead of module-level functions
- Fix WasmBackend to use C-ABI store functions with integer handles
- Add platform loader (index.js) and TypeScript declarations (index.d.ts)
- Create JS glue and type declarations for WASM package
- Set up platform-specific npm packages for all 5 targets
- Bump rvf-node/rvf-wasm to 0.1.4, SDK to 0.1.6
- Fix version pins from 0.1.0 to ^0.1.4

Resolves: rvf-node and rvf-wasm published as empty stubs with no binaries
Verified: E2E test passes (create -> ingest -> query -> status -> close)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 20:24:51 +00:00
rUv
978a0e0d5a fix(rvf): populate backend binaries and fix SDK API wiring
- Build NAPI native addon (linux-x64-gnu, 1.3MB) and WASM binary (42KB)
- Fix NodeBackend to use RvfDatabase class instance methods instead of module-level functions
- Fix WasmBackend to use C-ABI store functions with integer handles
- Add platform loader (index.js) and TypeScript declarations (index.d.ts)
- Create JS glue and type declarations for WASM package
- Set up platform-specific npm packages for all 5 targets
- Bump rvf-node/rvf-wasm to 0.1.4, SDK to 0.1.6
- Fix version pins from 0.1.0 to ^0.1.4

Resolves: rvf-node and rvf-wasm published as empty stubs with no binaries
Verified: E2E test passes (create -> ingest -> query -> status -> close)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 20:24:51 +00:00
github-actions[bot]
ad2e3d301c chore: Update NAPI-RS binaries for all platforms
Built from commit 2102136e91

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-16 15:41:53 +00:00
github-actions[bot]
f2f58e0355 chore: Update NAPI-RS binaries for all platforms
Built from commit 2102136e91

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-16 15:41:53 +00:00
rUv
44b015b6aa docs(rvf): remove redundant sections from crate README
- Fix "20 segment types" → "24 segment types" in ASCII anatomy
- Remove duplicate "Category Shift" table (restated capability table)
- Remove duplicate "Where It Runs" table (restated capability table)
- Remove "What You Can Ship" table from Sealed Cognitive Engines
- Remove "What This Enables" 6-item list (restated format capabilities)
- Remove duplicate "Cognitive Containers" and "Security & Trust"
  sub-tables from Features section
- Remove "File Structure with KERNEL_SEG" diagram (duplicated segment tree)
- Convert "Security Hardening" verbose table to compact "Security Modules"
  reference table

Net: -119 lines of redundant content, +13 lines of concise replacements.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 15:37:35 +00:00
rUv
2102136e91 docs(rvf): remove redundant sections from crate README
- Fix "20 segment types" → "24 segment types" in ASCII anatomy
- Remove duplicate "Category Shift" table (restated capability table)
- Remove duplicate "Where It Runs" table (restated capability table)
- Remove "What You Can Ship" table from Sealed Cognitive Engines
- Remove "What This Enables" 6-item list (restated format capabilities)
- Remove duplicate "Cognitive Containers" and "Security & Trust"
  sub-tables from Features section
- Remove "File Structure with KERNEL_SEG" diagram (duplicated segment tree)
- Convert "Security Hardening" verbose table to compact "Security Modules"
  reference table

Net: -119 lines of redundant content, +13 lines of concise replacements.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 15:37:35 +00:00
github-actions[bot]
41115cca39 chore: Update NAPI-RS binaries for all platforms
Built from commit 281c98f611

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-16 14:59:15 +00:00
github-actions[bot]
ce7df8179c chore: Update NAPI-RS binaries for all platforms
Built from commit 281c98f611

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-16 14:59:15 +00:00
rUv
052c206a8c feat(rvf): add platform-specific scripts for Linux, Windows, Node, browser, Docker
- rvf-quickstart.sh / .ps1 — 7-step RVF workflow (create, ingest, query, branch, verify)
- rvf-claude-appliance.sh / .ps1 — build & boot the 5.1 MB Claude Code Appliance
- rvf-mcp-server.sh / .ps1 — start stdio or SSE MCP server for AI agents
- rvf-node-example.mjs — full Node.js API walkthrough
- rvf-browser.html — browser WASM vector search demo
- rvf-docker.sh — containerized RVF CLI for CI/CD

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:55:15 +00:00
rUv
281c98f611 feat(rvf): add platform-specific scripts for Linux, Windows, Node, browser, Docker
- rvf-quickstart.sh / .ps1 — 7-step RVF workflow (create, ingest, query, branch, verify)
- rvf-claude-appliance.sh / .ps1 — build & boot the 5.1 MB Claude Code Appliance
- rvf-mcp-server.sh / .ps1 — start stdio or SSE MCP server for AI agents
- rvf-node-example.mjs — full Node.js API walkthrough
- rvf-browser.html — browser WASM vector search demo
- rvf-docker.sh — containerized RVF CLI for CI/CD

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:55:15 +00:00
github-actions[bot]
fed11adf41 chore: Update NAPI-RS binaries for all platforms
Built from commit 0316a0d82d

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-16 14:54:43 +00:00
github-actions[bot]
f301a19f09 chore: Update NAPI-RS binaries for all platforms
Built from commit 0316a0d82d

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-16 14:54:43 +00:00
github-actions[bot]
803bdfecf2 chore: Update NAPI-RS binaries for all platforms
Built from commit d9a6741df1

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-16 14:52:40 +00:00
github-actions[bot]
7e534d710f chore: Update NAPI-RS binaries for all platforms
Built from commit d9a6741df1

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-16 14:52:40 +00:00
rUv
20e527150d docs(rvf): improve Security & Trust sections, add live_boot_proof example
- Add introductory paragraph explaining RVF's structural security model
- Expand Security & Trust tables with TEE attestation, KernelBinding,
  adversarial hardening details
- Upgrade Security Hardening from bullet list to defense table
- Add live_boot_proof as example #45, update counts to 46

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:49:52 +00:00
rUv
0316a0d82d docs(rvf): improve Security & Trust sections, add live_boot_proof example
- Add introductory paragraph explaining RVF's structural security model
- Expand Security & Trust tables with TEE attestation, KernelBinding,
  adversarial hardening details
- Upgrade Security Hardening from bullet list to defense table
- Add live_boot_proof as example #45, update counts to 46

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:49:52 +00:00
rUv
5ba910c5ed feat(rvf): add WASM_SEG (0x10) for self-bootstrapping RVF files
feat(rvf): add WASM_SEG (0x10) for self-bootstrapping RVF files
2026-02-16 09:47:49 -05:00
rUv
d9a6741df1 feat(rvf): add WASM_SEG (0x10) for self-bootstrapping RVF files
feat(rvf): add WASM_SEG (0x10) for self-bootstrapping RVF files
2026-02-16 09:47:49 -05:00
rUv
afe6a00eb9 docs: update READMEs with self-booting instructions, bump npm versions
- Add Claude Code Appliance walkthrough and 5.1 MB self-boot line to
  crate, examples, npm, and root READMEs
- Add missing live_boot_proof example to table (45→46 examples)
- Update segment count references from 20→24
- Improve rvf-node npm README with full API reference
- Expand AGI Cognitive Container documentation
- Bump npm packages: rvf-node 0.1.3, rvf-wasm 0.1.3,
  rvf-mcp-server 0.1.3, rvf 0.1.5
- Include verified claude_code_appliance output files

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:43:04 +00:00
rUv
d9da216182 docs: update READMEs with self-booting instructions, bump npm versions
- Add Claude Code Appliance walkthrough and 5.1 MB self-boot line to
  crate, examples, npm, and root READMEs
- Add missing live_boot_proof example to table (45→46 examples)
- Update segment count references from 20→24
- Improve rvf-node npm README with full API reference
- Expand AGI Cognitive Container documentation
- Bump npm packages: rvf-node 0.1.3, rvf-wasm 0.1.3,
  rvf-mcp-server 0.1.3, rvf 0.1.5
- Include verified claude_code_appliance output files

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:43:04 +00:00
rUv
89b87d1bec chore: bump rvf-types/rvf-crypto/rvf-runtime to 0.2.0 for new features
Breaking changes from 0.1.0:
- rvf-types: new Security/QualityBelowThreshold error variants, new
  quality module, AGI container types, WASM bootstrap types, Ed25519
  signing, witness/attestation types, QR seed types
- rvf-crypto: new witness chain, attestation, lineage modules
- rvf-runtime: new AGI authority/coherence, QR seed, witness bundles,
  safety net, adversarial detection, domain expansion bridge

Also updates all internal dependency version references.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:04:23 +00:00
rUv
3e4513f784 chore: bump rvf-types/rvf-crypto/rvf-runtime to 0.2.0 for new features
Breaking changes from 0.1.0:
- rvf-types: new Security/QualityBelowThreshold error variants, new
  quality module, AGI container types, WASM bootstrap types, Ed25519
  signing, witness/attestation types, QR seed types
- rvf-crypto: new witness chain, attestation, lineage modules
- rvf-runtime: new AGI authority/coherence, QR seed, witness bundles,
  safety net, adversarial detection, domain expansion bridge

Also updates all internal dependency version references.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:04:23 +00:00
rUv
f4f7e0fa11 fix: resolve build breaks from new rvf-types fields in rvf-launch, rvf-node
- rvf-launch: add missing retrieval_quality field to SearchResult
- rvf-node: add match arms for new Security/QualityBelowThreshold error variants
- rvf-node: use struct update syntax for new QueryOptions fields
- rvf-runtime: add missing domain_expansion_present field in tests

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:03:29 +00:00
rUv
dce2411882 fix: resolve build breaks from new rvf-types fields in rvf-launch, rvf-node
- rvf-launch: add missing retrieval_quality field to SearchResult
- rvf-node: add match arms for new Security/QualityBelowThreshold error variants
- rvf-node: use struct update syntax for new QueryOptions fields
- rvf-runtime: add missing domain_expansion_present field in tests

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-16 14:03:29 +00:00
Claude
4e5e83882a feat(domain-expansion): add meta-learning engine with five AGI learning improvements
Closes five architectural gaps in the learning pipeline:

1. RegretTracker — cumulative regret tracking per context bucket.
   Measures optimality gap (O(√T) = learning, O(T) = not).
   Enables convergence detection and learning speed measurement.

2. DecayingBeta — exponential forgetting for non-stationary environments.
   Old evidence decays by configurable factor per observation.
   Effective window ≈ 1/(1-decay). Prevents calcification on stale data.

3. PlateauDetector — detects learning stalls with escalating responses:
   Continue → IncreaseExploration → TriggerTransfer → InjectDiversity → Reset.
   Compares accuracy windows and tracks consecutive plateau events.

4. ParetoFront — multi-objective optimization replacing single-scalar fitness.
   Tracks non-dominated solutions across [accuracy, -cost, robustness].
   Includes hypervolume indicator, spread metrics, and per-objective queries.

5. CuriosityBonus — UCB-style exploration bonus for under-visited contexts.
   Bonus = c * sqrt(ln(N) / n_i). Directs exploration toward novel
   bucket/arm combinations rather than relying solely on Thompson variance.

All five compose into MetaLearningEngine, wired into DomainExpansionEngine:
- record_decision() feeds regret + curiosity + decaying beta on every arm pick
- evolve_population() records kernels into Pareto front before evolution
- select_arm_curious() adds curiosity bonus to Thompson Sampling
- check_plateau() monitors cost curves for learning stalls
- meta_health() provides unified diagnostics

Performance (optimized hot paths avoid HashMap clone on existing entries):
- RegretTracker: 84ns/record (1k decisions in 84µs)
- DecayingBeta: 3ns/update
- PlateauDetector: 4.1ns/check
- ParetoFront: 67ns/insert, 146ns/hypervolume
- Full cycle: 199ns/decision (18% faster after optimization)

82 tests pass. 6 new benchmarks added.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 04:40:34 +00:00
Claude
d8268c7324 feat(domain-expansion): add meta-learning engine with five AGI learning improvements
Closes five architectural gaps in the learning pipeline:

1. RegretTracker — cumulative regret tracking per context bucket.
   Measures optimality gap (O(√T) = learning, O(T) = not).
   Enables convergence detection and learning speed measurement.

2. DecayingBeta — exponential forgetting for non-stationary environments.
   Old evidence decays by configurable factor per observation.
   Effective window ≈ 1/(1-decay). Prevents calcification on stale data.

3. PlateauDetector — detects learning stalls with escalating responses:
   Continue → IncreaseExploration → TriggerTransfer → InjectDiversity → Reset.
   Compares accuracy windows and tracks consecutive plateau events.

4. ParetoFront — multi-objective optimization replacing single-scalar fitness.
   Tracks non-dominated solutions across [accuracy, -cost, robustness].
   Includes hypervolume indicator, spread metrics, and per-objective queries.

5. CuriosityBonus — UCB-style exploration bonus for under-visited contexts.
   Bonus = c * sqrt(ln(N) / n_i). Directs exploration toward novel
   bucket/arm combinations rather than relying solely on Thompson variance.

All five compose into MetaLearningEngine, wired into DomainExpansionEngine:
- record_decision() feeds regret + curiosity + decaying beta on every arm pick
- evolve_population() records kernels into Pareto front before evolution
- select_arm_curious() adds curiosity bonus to Thompson Sampling
- check_plateau() monitors cost curves for learning stalls
- meta_health() provides unified diagnostics

Performance (optimized hot paths avoid HashMap clone on existing entries):
- RegretTracker: 84ns/record (1k decisions in 84µs)
- DecayingBeta: 3ns/update
- PlateauDetector: 4.1ns/check
- ParetoFront: 67ns/insert, 146ns/hypervolume
- Full cycle: 199ns/decision (18% faster after optimization)

82 tests pass. 6 new benchmarks added.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 04:40:34 +00:00
Claude
743b357c21 docs(adr): update ADRs with implementation details from rvf-types
- ADR-029: Add complete segment type registry (23 variants) with source references
- ADR-030: Phase 1 complete — KernelHeader (128B), EbpfHeader (64B), WasmHeader (64B),
  all enums and flag constants implemented with 32+ tests. Updated GOAP world state.
- ADR-032: Add WASM bootstrap types implementation section (WasmHeader, WasmRole,
  WasmTarget, 8 feature flags, 10 tests)
- ADR-036: Status updated to Partially Implemented. Documented AGI container
  implementation (972 lines, 24 tests) including AgiContainerHeader, ExecutionMode,
  AuthorityLevel, ResourceBudget, CoherenceThresholds, ContainerSegments, and
  22 TLV tags with domain expansion integration (0x0112-0x0115)

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 02:58:43 +00:00
Claude
9cff4e46f2 docs(adr): update ADRs with implementation details from rvf-types
- ADR-029: Add complete segment type registry (23 variants) with source references
- ADR-030: Phase 1 complete — KernelHeader (128B), EbpfHeader (64B), WasmHeader (64B),
  all enums and flag constants implemented with 32+ tests. Updated GOAP world state.
- ADR-032: Add WASM bootstrap types implementation section (WasmHeader, WasmRole,
  WasmTarget, 8 feature flags, 10 tests)
- ADR-036: Status updated to Partially Implemented. Documented AGI container
  implementation (972 lines, 24 tests) including AgiContainerHeader, ExecutionMode,
  AuthorityLevel, ResourceBudget, CoherenceThresholds, ContainerSegments, and
  22 TLV tags with domain expansion integration (0x0112-0x0115)

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 02:58:43 +00:00
Claude
bc2d92fb62 feat(domain-expansion): integrate with RVF format — segment serialization, witness chains, AGI packaging
Connects the domain expansion engine to the RuVector Format (RVF) wire
protocol, closing all integration gaps:

- Add SegmentType::TransferPrior (0x30), PolicyKernel (0x31), CostCurve (0x32)
  to rvf-types for domain expansion segment packaging
- Add AGI_HAS_DOMAIN_EXPANSION flag and AGI_TAG_TRANSFER_PRIOR/POLICY_KERNEL/
  COST_CURVE/COUNTEREXAMPLES TLV tags to AGI container types
- Create rvf_bridge module (feature-gated behind "rvf") with:
  - RVF segment round-trip serialization for all three core types
  - SHAKE-256 witness chain integration via rvf-crypto
  - AGI container TLV packaging and encoding/decoding
  - SolverPriorExchange bridge for rvf-solver-wasm prior transfer
  - Multi-segment file assembly for standalone domain expansion archives
- Wire-format wrappers (WireTransferPrior, WirePolicyKernel) handle
  HashMap<ContextBucket, _> → Vec<(K,V)> conversion for JSON safety
- Add RVF export methods to WASM crate (WasmRvfBridge) for browser-side
  segment serialization, witness hashing, and solver prior exchange
- 59 tests pass with rvf feature, 49 without — feature gate clean

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 02:44:09 +00:00
Claude
227c46db4f feat(domain-expansion): integrate with RVF format — segment serialization, witness chains, AGI packaging
Connects the domain expansion engine to the RuVector Format (RVF) wire
protocol, closing all integration gaps:

- Add SegmentType::TransferPrior (0x30), PolicyKernel (0x31), CostCurve (0x32)
  to rvf-types for domain expansion segment packaging
- Add AGI_HAS_DOMAIN_EXPANSION flag and AGI_TAG_TRANSFER_PRIOR/POLICY_KERNEL/
  COST_CURVE/COUNTEREXAMPLES TLV tags to AGI container types
- Create rvf_bridge module (feature-gated behind "rvf") with:
  - RVF segment round-trip serialization for all three core types
  - SHAKE-256 witness chain integration via rvf-crypto
  - AGI container TLV packaging and encoding/decoding
  - SolverPriorExchange bridge for rvf-solver-wasm prior transfer
  - Multi-segment file assembly for standalone domain expansion archives
- Wire-format wrappers (WireTransferPrior, WirePolicyKernel) handle
  HashMap<ContextBucket, _> → Vec<(K,V)> conversion for JSON safety
- Add RVF export methods to WASM crate (WasmRvfBridge) for browser-side
  segment serialization, witness hashing, and solver prior exchange
- 59 tests pass with rvf feature, 49 without — feature gate clean

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 02:44:09 +00:00
Claude
66ca5ff07b feat(domain-expansion): cross-domain transfer learning engine with WASM bindings
Implements a complete cross-domain transfer learning system proving that
kernels trained on Domain 1 can improve Domain 2 faster than training
Domain 2 alone — demonstrating true generalization.

Core engine (ruvector-domain-expansion):
- Three specialized domains: Rust program synthesis, structured planning,
  tool orchestration — each with task generation, evaluation, and 64-dim
  shared embedding space
- Meta Thompson Sampling with Beta-posterior priors across domains and
  contextual bandits (difficulty_tier × category buckets)
- Population-based PolicyKernel search: evolutionary optimization with
  elite selection (top 25%), mutation, crossover over 8 tunable knobs
- Speculative dual-path execution triggered by posterior variance
- Cost curve compression tracking + acceleration scoreboard verifying
  progressive generalization (target: 95% accuracy, ≤0.01 cost)
- Cross-domain transfer protocol with dampened prior initialization
  (sqrt scaling) and non-regression verification

WASM bindings (ruvector-domain-expansion-wasm):
- WasmDomainExpansionEngine, WasmThompsonEngine, WasmPopulationSearch,
  WasmScoreboard — full JS interop via serde-wasm-bindgen
- Optimized for edge: opt-level "z", LTO, panic=abort, strip

49 tests passing, 8 Criterion benchmarks (Thompson select: 266ns,
embedding: 2.86µs, population evolve: 7.4µs, cost curve AUC: 768ns).

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 01:41:47 +00:00
Claude
b11a3c5d2c feat(domain-expansion): cross-domain transfer learning engine with WASM bindings
Implements a complete cross-domain transfer learning system proving that
kernels trained on Domain 1 can improve Domain 2 faster than training
Domain 2 alone — demonstrating true generalization.

Core engine (ruvector-domain-expansion):
- Three specialized domains: Rust program synthesis, structured planning,
  tool orchestration — each with task generation, evaluation, and 64-dim
  shared embedding space
- Meta Thompson Sampling with Beta-posterior priors across domains and
  contextual bandits (difficulty_tier × category buckets)
- Population-based PolicyKernel search: evolutionary optimization with
  elite selection (top 25%), mutation, crossover over 8 tunable knobs
- Speculative dual-path execution triggered by posterior variance
- Cost curve compression tracking + acceleration scoreboard verifying
  progressive generalization (target: 95% accuracy, ≤0.01 cost)
- Cross-domain transfer protocol with dampened prior initialization
  (sqrt scaling) and non-regression verification

WASM bindings (ruvector-domain-expansion-wasm):
- WasmDomainExpansionEngine, WasmThompsonEngine, WasmPopulationSearch,
  WasmScoreboard — full JS interop via serde-wasm-bindgen
- Optimized for edge: opt-level "z", LTO, panic=abort, strip

49 tests passing, 8 Criterion benchmarks (Thompson select: 266ns,
embedding: 2.86µs, population evolve: 7.4µs, cost curve AUC: 768ns).

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 01:41:47 +00:00
Claude
10d994eb83 docs(rvf-solver-wasm): add detailed README with architecture, API tables, and usage examples
https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 00:51:21 +00:00
Claude
fe8ae37328 docs(rvf-solver-wasm): add detailed README with architecture, API tables, and usage examples
https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 00:51:21 +00:00
Claude
da85be9ffa feat(rvf): rvf-solver-wasm — self-learning AGI engine compiled to WASM
Compiles the complete three-loop adaptive solver to wasm32-unknown-unknown
(160 KB, no_std + alloc). Preserves all AGI capabilities:

- Thompson Sampling two-signal model (safety Beta + cost EMA)
- 18 context buckets with per-arm bandit stats
- Speculative dual-path execution
- KnowledgeCompiler with signature-based pattern cache
- Three-loop architecture (fast/medium/slow)
- SHAKE-256 witness chain via rvf-crypto

12 WASM exports: create/destroy/train/acceptance/result/policy/witness.
Handle-based API supports 8 concurrent solver instances.

ADR-039 documents the integration architecture.
Benchmark binary validates WASM against native solver.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 00:43:12 +00:00
Claude
0bd75e31b8 feat(rvf): rvf-solver-wasm — self-learning AGI engine compiled to WASM
Compiles the complete three-loop adaptive solver to wasm32-unknown-unknown
(160 KB, no_std + alloc). Preserves all AGI capabilities:

- Thompson Sampling two-signal model (safety Beta + cost EMA)
- 18 context buckets with per-arm bandit stats
- Speculative dual-path execution
- KnowledgeCompiler with signature-based pattern cache
- Three-loop architecture (fast/medium/slow)
- SHAKE-256 witness chain via rvf-crypto

12 WASM exports: create/destroy/train/acceptance/result/policy/witness.
Handle-based API supports 8 concurrent solver instances.

ADR-039 documents the integration architecture.
Benchmark binary validates WASM against native solver.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 00:43:12 +00:00
Claude
367a1b3815 docs(adr): ADR-038 npx ruvector & rvlite witness verification integration
Plans the integration path for .rvf acceptance test verification into
the npm ecosystem:

- npx ruvector rvf verify-witness <file.rvf> (N-API + WASM fallback)
- npx rvlite verify-witness <file.rvf> (WASM via cli-rvf.ts)
- rvlite SDK verifyWitnessChain() for browser-side verification
- MCP tool rvf_verify_witness for Claude Code agents
- 5-phase implementation plan, each independently shippable

Bridges the rvf_witness_verify WASM export (ADR-037) to end users
without requiring the Rust toolchain.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 00:17:00 +00:00
Claude
4bffe12e2b docs(adr): ADR-038 npx ruvector & rvlite witness verification integration
Plans the integration path for .rvf acceptance test verification into
the npm ecosystem:

- npx ruvector rvf verify-witness <file.rvf> (N-API + WASM fallback)
- npx rvlite verify-witness <file.rvf> (WASM via cli-rvf.ts)
- rvlite SDK verifyWitnessChain() for browser-side verification
- MCP tool rvf_verify_witness for Claude Code agents
- 5-phase implementation plan, each independently shippable

Bridges the rvf_witness_verify WASM export (ADR-037) to end users
without requiring the Rust toolchain.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 00:17:00 +00:00
Claude
21f0c13e52 feat(rvf): integrate publishable acceptance test with native SHAKE-256 witness chain
Replace standalone SHA-256 chain with rvf-crypto SHAKE-256, add native .rvf
binary output (WITNESS_SEG + META_SEG), and wire witness verification into
rvf-wasm microkernel.

Key changes:
- Feature-gate ed25519 in rvf-crypto for WASM compatibility (sha3 no_std)
- Rewrite WitnessChainBuilder to use shake256_256 + parallel rvf_crypto::WitnessEntry
- Add export_rvf_binary() with WITNESS_SEG (0x0A) + META_SEG (0x07) segments
- Add rvf_witness_verify/rvf_witness_count exports to rvf-wasm
- Add verify-rvf subcommand to acceptance-rvf CLI
- Write ADR-037 documenting architecture and AGI benchmark integration
- Update rvf-crypto, rvf-wasm, and rvf READMEs

86 tests pass (66 lib + 20 integration). rvf-crypto 49 tests pass.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 00:13:44 +00:00
Claude
5a9c899f29 feat(rvf): integrate publishable acceptance test with native SHAKE-256 witness chain
Replace standalone SHA-256 chain with rvf-crypto SHAKE-256, add native .rvf
binary output (WITNESS_SEG + META_SEG), and wire witness verification into
rvf-wasm microkernel.

Key changes:
- Feature-gate ed25519 in rvf-crypto for WASM compatibility (sha3 no_std)
- Rewrite WitnessChainBuilder to use shake256_256 + parallel rvf_crypto::WitnessEntry
- Add export_rvf_binary() with WITNESS_SEG (0x0A) + META_SEG (0x07) segments
- Add rvf_witness_verify/rvf_witness_count exports to rvf-wasm
- Add verify-rvf subcommand to acceptance-rvf CLI
- Write ADR-037 documenting architecture and AGI benchmark integration
- Update rvf-crypto, rvf-wasm, and rvf READMEs

86 tests pass (66 lib + 20 integration). rvf-crypto 49 tests pass.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-16 00:13:44 +00:00
Claude
707f737730 chore: update Cargo.lock for sha2 dependency
https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-15 23:51:51 +00:00
Claude
1ecdab5899 chore: update Cargo.lock for sha2 dependency
https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-15 23:51:51 +00:00
Claude
676916d6b6 feat(ablation): publishable RVF acceptance test with SHA-256 witness chain
Add self-contained acceptance test artifact that external developers can
run offline and reproduce identical graded outcomes:

- SHA-256-linked witness chain: every puzzle decision (skip_mode,
  context_bucket, steps, correct) hashed into a tamper-evident chain.
  Changing any single bit invalidates everything downstream.

- Deterministic replay: frozen seeds → identical puzzles → identical
  solve paths → identical chain_root_hash. Two runs with the same
  config produce the same hash, proven by test.

- JSON manifest: config, per-mode scorecards (A/B/C), all six ablation
  assertions with measured values, full witness chain, chain root hash.

- Verifier: re-runs with same config, recomputes chain, compares root
  hash. Mismatch means non-identical outcomes.

- CLI binary: `acceptance-rvf generate -o manifest.json` to produce,
  `acceptance-rvf verify -i manifest.json` to verify.

66 lib tests + 20 integration tests pass.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-15 23:51:04 +00:00
Claude
515a996530 feat(ablation): publishable RVF acceptance test with SHA-256 witness chain
Add self-contained acceptance test artifact that external developers can
run offline and reproduce identical graded outcomes:

- SHA-256-linked witness chain: every puzzle decision (skip_mode,
  context_bucket, steps, correct) hashed into a tamper-evident chain.
  Changing any single bit invalidates everything downstream.

- Deterministic replay: frozen seeds → identical puzzles → identical
  solve paths → identical chain_root_hash. Two runs with the same
  config produce the same hash, proven by test.

- JSON manifest: config, per-mode scorecards (A/B/C), all six ablation
  assertions with measured values, full witness chain, chain root hash.

- Verifier: re-runs with same config, recomputes chain, compares root
  hash. Mismatch means non-identical outcomes.

- CLI binary: `acceptance-rvf generate -o manifest.json` to produce,
  `acceptance-rvf verify -i manifest.json` to verify.

66 lib tests + 20 integration tests pass.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-15 23:51:04 +00:00
Claude
6846b8a588 feat(ablation): Thompson Sampling two-signal model, speculative dual-path, constraint propagation
Replace epsilon-greedy with two-signal Thompson Sampling (safety Beta
posterior + cost EMA) for Mode C learned policy. Score = safety_sample
- lambda * cost_ema provides principled exploration-exploitation.

Add speculative dual-path for Mode C only: when Beta variance > 0.02
and top-2 arms within delta 0.15, run both arms (60/40 budget split)
to resolve uncertainty faster while keeping Mode A/B ablation clean.

Add constraint propagation pre-pass as PolicyKernel-controlled mode
(Off/Light/Full, defaults to Off). Light handles InMonth+DayOfMonth
direct solves; Full adds DayOfWeek pruning for ranges ≤60 days.
PrepassMetrics tracks pruned_candidates, prepass_steps, scan_steps_saved.

Beta sampling via Marsaglia-Tsang Gamma method + Box-Muller normal.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-15 23:40:05 +00:00
Claude
0cd418062c feat(ablation): Thompson Sampling two-signal model, speculative dual-path, constraint propagation
Replace epsilon-greedy with two-signal Thompson Sampling (safety Beta
posterior + cost EMA) for Mode C learned policy. Score = safety_sample
- lambda * cost_ema provides principled exploration-exploitation.

Add speculative dual-path for Mode C only: when Beta variance > 0.02
and top-2 arms within delta 0.15, run both arms (60/40 budget split)
to resolve uncertainty faster while keeping Mode A/B ablation clean.

Add constraint propagation pre-pass as PolicyKernel-controlled mode
(Off/Light/Full, defaults to Off). Light handles InMonth+DayOfMonth
direct solves; Full adds DayOfWeek pruning for ranges ≤60 days.
PrepassMetrics tracks pruned_candidates, prepass_steps, scan_steps_saved.

Beta sampling via Marsaglia-Tsang Gamma method + Box-Muller normal.

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-15 23:40:05 +00:00
Claude
ba1777cda6 refine(ablation): flip sign, wire penalty, expand buckets
Fixed policy sign flip (Mode A):
  risk_score = R - 30*D (was R + 30*D)
  Distractors now reduce effective range, making Mode A conservative
  under distractors. This is the defensible control arm: a rational
  fixed agent should be more cautious when distractors are present.
  Mode C must learn to outperform this baseline.

EarlyCommitPenalty wired into bandit reward:
  SkipModeStats now tracks early_commit_penalty_sum per arm.
  reward() includes robustness_penalty = 0.2 * avg_penalty.
  This means Mode C can actually learn to avoid early wrong commits
  in distractor-heavy contexts. Previously the penalty was only
  printed, not optimized.

Context buckets expanded to 18:
  3 range (small/medium/large) × 3 distractor (clean/some/heavy)
  × 2 noise (clean/noisy) = 18 buckets.
  Previous: 4 range × 2 distractor = 8 (too coarse for bandit).
  Noise flag now flows through AdaptiveSolver.noisy_hint.

New ablation assertion:
  c_penalty_better_than_b: Mode C EarlyCommitPenalty must be ≤90%
  of Mode B penalty. Proves robustness improvement is explicit,
  not just noise_accuracy-based.

Acceptance test noise plumbing:
  solver.noisy_hint set to true for noisy puzzles in both training
  and holdout evaluation. Context buckets now correctly distinguish
  clean vs noisy conditions.

81 tests passing (61 lib + 20 integration).

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-15 23:19:43 +00:00
Claude
9be0f4749b refine(ablation): flip sign, wire penalty, expand buckets
Fixed policy sign flip (Mode A):
  risk_score = R - 30*D (was R + 30*D)
  Distractors now reduce effective range, making Mode A conservative
  under distractors. This is the defensible control arm: a rational
  fixed agent should be more cautious when distractors are present.
  Mode C must learn to outperform this baseline.

EarlyCommitPenalty wired into bandit reward:
  SkipModeStats now tracks early_commit_penalty_sum per arm.
  reward() includes robustness_penalty = 0.2 * avg_penalty.
  This means Mode C can actually learn to avoid early wrong commits
  in distractor-heavy contexts. Previously the penalty was only
  printed, not optimized.

Context buckets expanded to 18:
  3 range (small/medium/large) × 3 distractor (clean/some/heavy)
  × 2 noise (clean/noisy) = 18 buckets.
  Previous: 4 range × 2 distractor = 8 (too coarse for bandit).
  Noise flag now flows through AdaptiveSolver.noisy_hint.

New ablation assertion:
  c_penalty_better_than_b: Mode C EarlyCommitPenalty must be ≤90%
  of Mode B penalty. Proves robustness improvement is explicit,
  not just noise_accuracy-based.

Acceptance test noise plumbing:
  solver.noisy_hint set to true for noisy puzzles in both training
  and holdout evaluation. Context buckets now correctly distinguish
  clean vs noisy conditions.

81 tests passing (61 lib + 20 integration).

https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G
2026-02-15 23:19:43 +00:00