Files
ruflo/v3/package.json
T
rUv 66ba809250 feat(neural): training flywheel + @ruvector/ruvllm 2.6.0 (resume, val-split, checkpoint auto-load) (#2557)
* feat(neural): training flywheel — val-split, resume, checkpoint auto-load

Build on v3.19.0's native TrainingPipeline routing with four features that
close the train→route learning loop:

1. `neural train --val-split <frac>` (default 0.1, 0 disables) — passed through
   as validationSplit; surfaces Best Val Loss + Early Stopped in the results
   table when a holdout ran (bestValLoss non-null). Normalizes the pipeline's
   Infinity (validation-off) sentinel to null so the "non-null ⇒ validated"
   contract holds.

2. `neural train --resume <path>` — prefers pipeline.resumeFrom() (>=2.6.0),
   falls back to loadCheckpoint() (2.5.7, weights-only, noted in the table).
   Missing/invalid checkpoint with an explicit --resume is a loud exit-1
   failure (ResumeFailedError), never silent fresh training. Native-only:
   errors on --backend wasm or when the native module is absent.

3. Checkpoint auto-load (the flywheel) — new loadLatestCheckpoint(adapter) in
   lora-adapter.ts finds the newest .claude-flow/neural/lora-checkpoint-*.json
   under cwd, validates the envelope, and loads it via the adapter's existing
   loadCheckpoint. Wired into the routing LoRAAdapter singleton (getLoRAAdapter),
   which constructs lazily on first adaptation use — off the CLI-startup path
   (--help stays ~0.08s). Non-fatal; kill-switch CLAUDE_FLOW_NO_CHECKPOINT_AUTOLOAD=1.

4. `neural status` Training Pipeline row now appends the newest checkpoint
   filename + relative age (truncation-friendly, most-important-info-first).

Tests: extend the #2549 suite (+6) — val-split passthrough, val-off ⇒ null,
resume loud-failure + success, latestCheckpointInfo picks newest, kill-switch.
All 12 green; ruvllm-integration + commands-deep (411) unaffected.

Co-Authored-By: RuFlo <ruv@ruv.net>

* feat(neural): training flywheel + @ruvector/ruvllm 2.6.0 (resume, val-split, auto-load)

Builds on the native training routing (3.19.0) with the 2.6.0 upstream:

- --val-split <frac> (default 0.1): passes validationSplit; surfaces
  bestValLoss + earlyStopped when validation ran
- --resume <checkpoint>: prefers 2.6.0 resumeFrom() (continues from
  restored epoch through config.epochs, LR scheduler fast-forwarded),
  degrades to 2.5.7 loadCheckpoint weight-restore; loud exit 1 on a
  missing checkpoint or --backend wasm combo
- Checkpoint auto-load (the flywheel): getLoRAAdapter()'s lazy init
  loads the newest .claude-flow/neural checkpoint on first adaptation
  use — off the --help hot path (startup stays 0.08s), kill-switch
  CLAUDE_FLOW_NO_CHECKPOINT_AUTOLOAD=1, non-fatal on any failure
- neural status Training Pipeline row shows latest checkpoint + age
- Floors bumped >=2.6.0 (wrapper + root + v3 pnpm overrides); locks
  regenerated; dev tree resolves 2.6.0

E2E: train --val-split → checkpoint; train --resume → 10 native steps
(continued from restored 5, not fresh). Tests 12/12, build clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-07-03 22:09:53 -04:00

76 lines
2.9 KiB
JSON

{
"name": "@claude-flow/v3-monorepo",
"version": "3.0.0-alpha.1",
"private": true,
"type": "module",
"description": "Claude Flow V3 - Modular AI Agent Coordination System",
"workspaces": [
"@claude-flow/*",
"claude-flow"
],
"scripts": {
"build": "pnpm -r build",
"test": "vitest run",
"test:unit": "vitest run __tests__/unit",
"test:integration": "vitest run __tests__/integration",
"test:integration:watch": "vitest watch __tests__/integration",
"test:integration:memory": "vitest run __tests__/integration/memory-integration.test.ts",
"test:integration:swarm": "vitest run __tests__/integration/swarm-integration.test.ts",
"test:integration:mcp": "vitest run __tests__/integration/mcp-integration.test.ts",
"test:integration:plugin": "vitest run __tests__/integration/plugin-integration.test.ts",
"test:integration:workflow": "vitest run __tests__/integration/workflow-integration.test.ts",
"test:coverage": "vitest run --coverage",
"test:coverage:integration": "vitest run __tests__/integration --coverage",
"test:security": "pnpm --filter @claude-flow/security test",
"test:memory": "pnpm --filter @claude-flow/memory test",
"test:swarm": "pnpm --filter @claude-flow/swarm test",
"bench": "pnpm --filter @claude-flow/performance bench",
"bench:attention": "pnpm --filter @claude-flow/performance bench:attention",
"typecheck": "pnpm -r typecheck",
"clean": "rm -rf node_modules @claude-flow/*/node_modules claude-flow/node_modules",
"publish:dry": "pnpm --filter claude-flow publish --dry-run --tag v3alpha --no-git-checks",
"publish:v3alpha": "pnpm --filter claude-flow publish --tag v3alpha --no-git-checks",
"version:patch": "pnpm -r exec npm version patch",
"version:minor": "pnpm -r exec npm version minor",
"version:major": "pnpm -r exec npm version major",
"bun:install": "bun install",
"bun:build": "bun run --filter '*' build",
"bun:test": "bun test",
"bun:dev": "bun run --watch src/index.ts",
"bun:publish:dry": "cd claude-flow && bun publish --dry-run --tag v3alpha",
"bun:publish:v3alpha": "cd claude-flow && bun publish --tag v3alpha"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@vitest/coverage-v8": "^4.1.0",
"typescript": "^5.9.3",
"vitest": "^4.1.0"
},
"engines": {
"node": ">=20.0.0",
"pnpm": ">=8.0.0"
},
"packageManager": "pnpm@8.15.0",
"dependencies": {
"semantic-release": "25.0.2"
},
"overrides": {
"handlebars": ">=4.7.9",
"protobufjs": ">=8.6.0"
},
"pnpm": {
"neverBuiltDependencies": [
"sharp"
],
"overrides": {
"@ruvector/gnn": "0.1.25",
"@ruvector/gnn-linux-x64-gnu": "0.1.25",
"vitest": ">=4.1.0",
"@vitest/coverage-v8": ">=4.1.0",
"handlebars": ">=4.7.9",
"protobufjs": ">=8.6.0",
"@ruvector/ruvllm": ">=2.6.0"
}
}
}