Commit Graph
8419 Commits
Author SHA1 Message Date
Claude d43d6e1b22 feat: add wave 1 guidance primitives - proof, gateway, memory-gate, coherence, hooks, persistence
Seven concurrent agents built the core guidance control plane primitives:

- hooks.ts: GuidanceHookProvider wiring gates + retriever into
  HookRegistry lifecycle (PreCommand, PreToolUse, PreEdit, PreTask, PostTask)
- proof.ts: ProofChain with hash-chained envelopes, HMAC signing,
  tool call hashes, and memory lineage tracking
- gateway.ts: DeterministicToolGateway with idempotency cache,
  schema validation, and budget metering wrapping EnforcementGates
- memory-gate.ts: MemoryWriteGate with authority scope, rate limiting,
  TTL/decay, confidence scoring, and contradiction detection
- persistence.ts: PersistentLedger with NDJSON event storage,
  compaction, index maintenance, and file locking
- coherence.ts: CoherenceScheduler (drift detection, privilege throttling)
  and EconomicGovernor (token/tool/storage/time/cost budgets)
- Updated index.ts exports and package.json for new modules

Tests: 6 new test files covering all wave 1 components

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 11:29:03 +00:00
Claude fab6d72ff8 feat: add @claude-flow/guidance control plane package
Implements a complete guidance control plane that sits beside Claude Code
to compile, retrieve, enforce, and optimize guidance rules.

Components:
- Compiler: Parses CLAUDE.md into constitution + shards + manifest
  with regex-based rule extraction, risk/intent/domain inference,
  and root/local overlay merging
- Retriever: Intent classifier with weighted pattern matching and
  shard retriever with hash-based embeddings, contradiction resolution,
  and diversity-aware selection
- Gates: 4 enforcement gates (destructive ops, tool allowlist,
  diff size, secrets) with configurable patterns and remediation
- Ledger: Run event logging with 5 built-in evaluators (tests pass,
  forbidden commands, forbidden deps, violation rate, diff quality)
- Optimizer: Weekly optimization loop with violation ranking, rule
  change proposals, A/B testing simulation, ADR generation, and
  promotion tracking (win-twice-to-promote)
- Headless: Test harness for Claude Code headless mode with task
  suites, assertion checking, and compliance testing
- CLI: guidance command with compile/retrieve/gates/status/optimize
  subcommands registered in CLI command index

Tests: 105 passing across 6 test files (compiler, retriever, gates,
ledger, optimizer, integration)

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 10:58:53 +00:00
rUvandClaude Opus 4.5 d572ea14a7 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:39:48Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:39:48 +00:00
rUvandClaude Opus 4.5 649144e45a Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:39:16Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:39:16 +00:00
rUvandClaude Opus 4.5 daeedc3eca Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:31:52Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:31:52 +00:00
rUvandClaude Opus 4.5 47c61f0747 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:31:24Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:31:24 +00:00
rUvandClaude Opus 4.5 d6aa0cfe64 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:31:14Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:31:14 +00:00
rUvandClaude Opus 4.5 f68bc162cf Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:30:57Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:30:57 +00:00
rUvandClaude Opus 4.5 083738b342 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:30:55Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:30:56 +00:00
rUvandClaude Opus 4.5 da209273a3 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:30:44Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:30:44 +00:00
rUvandClaude Opus 4.5 f552079613 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:30:39Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:30:39 +00:00
rUvandClaude Opus 4.5 912608c218 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:30:38Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:30:38 +00:00
rUvandClaude Opus 4.5 baec6fcb58 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:30:36Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:30:36 +00:00
rUvandClaude Opus 4.5 20e940ee79 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-28T19:30:35Z
- Changes: 11 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 19:30:35 +00:00
rUvandClaude Opus 4.5 ccfd876988 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-27T18:21:34Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 18:21:34 +00:00
rUvandClaude Opus 4.5 421b8d60bc Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-27T18:20:17Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 18:20:17 +00:00
rUvandClaude Opus 4.5 151a15d0cb Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-27T18:18:11Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 18:18:11 +00:00
rUvandClaude Opus 4.5 7c83ac1d5b Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-27T18:18:00Z
- Changes: 6 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 18:18:00 +00:00
rUvandClaude Opus 4.5 916cd515c9 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-27T18:16:55Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 18:16:55 +00:00
rUvandClaude Opus 4.5 6eb52cbfa9 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-27T18:16:54Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 18:16:54 +00:00
rUvandClaude Opus 4.5 34993dd675 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: feature/pretrain-self-learning-benchmarks
- Timestamp: 2026-01-27T18:15:53Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 18:15:53 +00:00
rUv c8d51e6143 Merge pull request #1029 from ruvnet/review/memory-vector-system
fix(mcp): Integrate memory tools with sql.js/HNSW backend
2026-01-27 11:52:35 -05:00
rUv e13b657a47 feat(v3): upgrade MCP memory tools to sql.js + HNSW backend
- Rewrite memory-tools.ts to use advanced sql.js + HNSW backend
- Add backward compatibility with auto-migration from legacy JSON store
- Update CLI README with enhanced documentation
- Bump version to 3.0.0-alpha.185
- Regenerate agent configs with updated capabilities

Performance improvements:
- 150x-12,500x faster semantic search via HNSW indexing
- Vector embeddings with cosine similarity
- Persistent SQLite storage (WASM)

Breaking changes: None (backward compatible with migration)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-01-27 16:49:04 +00:00
rUvandClaude Opus 4.5 d676e9ce9e Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: review/memory-vector-system
- Timestamp: 2026-01-27T16:17:09Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 16:17:09 +00:00
rUvandClaude Opus 4.5 eddfda0040 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: review/memory-vector-system
- Timestamp: 2026-01-27T16:15:46Z
- Changes: 6 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 16:15:46 +00:00
rUvandClaude Opus 4.5 060e3dd1cf Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-27T15:55:59Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 15:56:00 +00:00
rUvandClaude Opus 4.5 2c7b49f7f3 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-27T15:52:09Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 15:52:09 +00:00
rUvandClaude Opus 4.5 23526628fa Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-27T15:44:54Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 15:44:54 +00:00
rUvandClaude Opus 4.5 ba0cdda650 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-27T15:43:32Z
- Changes: 6 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 15:43:32 +00:00
rUvandClaude Opus 4.5 a1c8b5d1b2 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:38:28Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:38:28 +00:00
rUvandClaude Opus 4.5 b1d2c45df7 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:38:22Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:38:22 +00:00
rUvandClaude Opus 4.5 d2fe573cb1 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:38:17Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:38:17 +00:00
rUvandClaude Opus 4.5 a15385523a Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:38:12Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:38:12 +00:00
rUvandClaude Opus 4.5 4ed6d82e42 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:38:06Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:38:06 +00:00
rUvandClaude Opus 4.5 f7fc29423a Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:37:26Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:37:26 +00:00
rUvandClaude Opus 4.5 1db1cd71c0 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:37:06Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:37:06 +00:00
rUvandClaude Opus 4.5 0aa6823751 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:37:01Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:37:01 +00:00
rUvandClaude Opus 4.5 57d579302a Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:36:53Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:36:53 +00:00
rUvandClaude Opus 4.5 74ca162535 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:36:47Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:36:47 +00:00
rUvandClaude Opus 4.5 b1381a8dc5 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T22:36:39Z
- Changes: 6 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 22:36:39 +00:00
rUvandClaude Opus 4.5 d6a996a91c Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T19:47:31Z
- Changes: 6 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:47:31 +00:00
rUvandClaude Opus 4.5 64ba132cd6 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T19:41:33Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:41:33 +00:00
rUvandClaude Opus 4.5 504264dc95 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T19:31:03Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:31:03 +00:00
rUvandClaude Opus 4.5 ca885cf007 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T19:30:52Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:30:52 +00:00
rUvandClaude Opus 4.5 c90404951c Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T19:10:39Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:10:39 +00:00
rUvandClaude Opus 4.5 66eaaa9526 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T19:08:45Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:08:45 +00:00
rUvandClaude Opus 4.5 8c6dc98f5c Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T19:08:34Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:08:34 +00:00
rUvandClaude Opus 4.5 37c05a5f39 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T19:03:59Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:03:59 +00:00
rUvandClaude Opus 4.5 a7f010565c Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-01-26T19:03:44Z
- Changes: 1 file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 19:03:44 +00:00
rUv 4faf459a76 Merge pull request #1027 from ruvnet/fix/cli-help-categories
fix: CLI help categorization (v3.0.0-alpha.184)
2026-01-26 13:50:52 -05:00