Commit Graph
5271 Commits
Author SHA1 Message Date
rUvandClaude Opus 4.5 378d5464d0 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: optimize/claude-md-governance
- Timestamp: 2026-02-02T04:19:46Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 04:19:46 +00:00
rUvandClaude Opus 4.5 85102f5f4c Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: optimize/claude-md-governance
- Timestamp: 2026-02-02T04:19:37Z
- Changes: 6 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 04:19:37 +00:00
rUvandClaude Opus 4.5 e4110bc4e0 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: main
- Timestamp: 2026-02-02T04:12:13Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 04:12:13 +00:00
rUv bdfdbb334d Merge pull request #1065 from ruvnet/claude/guidance-control-plane-uhmR3
feat: add @claude-flow/guidance control plane package
2026-02-02 05:10:04 +01:00
rUvandClaude Opus 4.5 0d5eeeae0c Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:52:19Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:52:19 +00:00
rUvandClaude Opus 4.5 89342d8ae8 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:52: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-02-02 03:52:12 +00:00
rUvandClaude Opus 4.5 15eaaf8022 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03: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-02-02 03:52:09 +00:00
rUvandClaude Opus 4.5 8f7889de97 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:51:13Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:51:13 +00:00
rUvandClaude Opus 4.5 0f306a13cc Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:51: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-02-02 03:51:09 +00:00
rUvandClaude Opus 4.5 e0113f28a7 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:51:07Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:51:07 +00:00
rUvandClaude Opus 4.5 2b8a60968a Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:51:02Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:51:02 +00:00
rUvandClaude Opus 4.5 420331b1a4 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:50: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-02-02 03:50:45 +00:00
rUvandClaude Opus 4.5 010943b83d Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:50:43Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:50:43 +00:00
rUvandClaude Opus 4.5 5a73c9af58 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:50:40Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:50:40 +00:00
rUvandClaude Opus 4.5 57cfd462cc Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:50:38Z
- Changes: 6 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:50:38 +00:00
rUvandClaude Opus 4.5 9654d471d7 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:48: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-02-02 03:48:48 +00:00
rUvandClaude Opus 4.5 4af75bec42 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:48:42Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:48:42 +00:00
rUvandClaude Opus 4.5 c9b35d3574 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:48:23Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:48:23 +00:00
rUvandClaude Opus 4.5 2e19a09d4f Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:48: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-02-02 03:48:06 +00:00
rUvandClaude Opus 4.5 7504d63488 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:47: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-02-02 03:47:54 +00:00
rUvandClaude Opus 4.5 11f5c09387 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:47: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-02-02 03:47:48 +00:00
rUvandClaude Opus 4.5 9cca2290ab Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:47:42Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:47:42 +00:00
rUvandClaude Opus 4.5 ca0640db10 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:47:35Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:47:36 +00:00
rUvandClaude Opus 4.5 28662fb34d Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:47: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-02-02 03:47:26 +00:00
rUvandClaude Opus 4.5 c1e0627b6f Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:47:19Z
- Changes: 1 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:47:19 +00:00
rUvandClaude Opus 4.5 538abab577 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:47: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-02-02 03:47:16 +00:00
rUvandClaude Opus 4.5 28b5bdd247 Checkpoint: File edits
Automatic checkpoint created by Claude Code
- Branch: claude/guidance-control-plane-uhmR3
- Timestamp: 2026-02-02T03:47:11Z
- Changes: 3 file(s)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 03:47:11 +00:00
Claude 3e5f92ef8b security: eliminate hardcoded HMAC keys, fix timing attacks, remove command injection
- Remove hardcoded DEFAULT_SIGNING_KEY from proof.ts, artifacts.ts, evolution.ts
  Constructors now require explicit signingKey (fail-closed)
- Add timingSafeEqual() XOR-based constant-time comparison to proof.ts,
  artifacts.ts, authority.ts (prevents HMAC timing side-channels)
- Fix command injection in headless.ts: replace execFile('sh', ['-c', cmd])
  with direct arg-array execFile('claude', ['-p', prompt, ...])
- Fix command injection in analyzer.ts: same shell-free pattern
- Remove dead code: unused toLowerCase() in analyzer.ts extractMetrics
  and scoreCompleteness
- Hoist gates.ts GATE_DECISION_SEVERITY to module-level constant
- Add ConformanceRunner signingKey parameter for explicit key propagation
- Update tests: 3 new "should throw without key" assertions
- Add flight build report (docs/reports/flight-build-report.md)

1,331 tests passing.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-02 01:51:26 +00:00
Claude 02df9fd2f3 docs: add badges, links, and SEO-optimized keywords
Adds shields.io badges: npm version, downloads, license, tests,
Node.js, TypeScript, GitHub stars, claude-flow umbrella, ruvbot.

Adds Links section with GitHub, npm packages (@claude-flow/guidance,
claude-flow, ruvbot), ruv.io, issues, API reference, ADR index.

Expands package.json keywords from 7 to 30 for npm discoverability:
claude-code, anthropic, ai-agent, ai-governance, long-horizon,
autonomous-agent, adversarial-defense, wasm, mcp, and more.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 22:33:01 +00:00
Claude fdb11cb89a docs: rewrite README introduction for long-horizon agent guidance
Rewrites the opening to clearly explain the problem (rule drift,
runaway loops, memory corruption, no audit trail), how the package
differs from plain CLAUDE.md and prompt libraries (comparison table),
and the concrete improvements for long-horizon agents.

Adds section introductions throughout: Architecture, WASM Kernel,
Ship Phases, Module Reference, Generators, Analyzer, A/B Benchmark,
Per-Module Impact, Decision Matrix, Failure Modes, Test Suite, ADRs,
and Measurement Plan.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 22:28:54 +00:00
Claude 671831dacd feat: add A/B benchmark harness with 20 tasks, gate simulation, and composite scoring
Implements the Measurement Plan: Config A (no control plane) vs Config B
(Phase 1 guidance) across 20 representative tasks from Claude Flow repo
history spanning 7 task classes (bug-fix, feature, refactor, security,
deployment, test, performance).

KPIs: success rate, tool calls, token spend, violations, human
interventions. Composite score formula:
score = success_rate - 0.1*cost - 0.2*violations - 0.1*interventions

Category shift detection: B beats A by ≥0.2 on composite across ≥3 task
classes. Gate simulation detects destructive commands, hardcoded secrets,
force push, unsafe types, skipped hooks, missing tests, policy violations.

1,328 tests passing across 26 files (38 new AB benchmark tests).

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 22:22:17 +00:00
Claude 2810c8bdc4 docs: update README and API reference with generators, analyzer, and validation suite
Add documentation for all features built in recent sessions:
- Generators module (generateClaudeMd, scaffold, skills, agents)
- Analyzer module (6-dimension scoring, autoOptimize, optimizeForSize)
- Headless benchmarking (claude -p integration with proof chain)
- Empirical validation (validateEffect with Pearson r, Spearman rho,
  Cohen's d, content-aware executors, multi-trial support)
- Update test count: 1,290 tests across 26 files
- Update module count: 31 modules across 9 layers
- Add generators and analyzer to API quick reference import map
- Add full API reference tables for both modules

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 21:54:54 +00:00
Claude 047bd1e562 feat: add content-aware executor, Spearman rho, and Cohen's d to validation suite
Fix fundamental flaw where mock executors were static and produced
identical adherence for before/after phases. The new
IContentAwareExecutor interface receives CLAUDE.md content via
setContext(), allowing executors to vary behavior based on guidance
quality. DifferentialMockExecutor analyzes content for security rules,
enforcement statements, build/test commands, and architecture sections
to produce realistic compliance variation.

Statistical improvements:
- Spearman rank correlation (non-parametric alternative to Pearson)
- Cohen's d effect size with interpretation labels
- Multi-trial averaging with majority-vote pass/fail
- Dual-correlation verdict using average of Pearson r and Spearman rho

1,290 tests passing across 26 files.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 21:28:08 +00:00
Claude 00018ac0dd feat: add empirical validation suite proving score-to-behavior correlation
Add validateEffect() that empirically measures whether score improvements
produce actual agent behavioral improvements:

- 15 compliance tasks covering all 6 scoring dimensions (Structure,
  Coverage, Enforceability, Compilability, Clarity, Completeness)
- Severity-weighted assertion evaluation (critical/major/minor)
- Per-dimension adherence rate computation
- Pearson correlation coefficient between score deltas and adherence deltas
- Per-dimension concordance analysis (did score and behavior move together?)
- Statistical significance testing with critical r-value tables
- Verdict classification: positive-effect, negative-effect, no-effect, inconclusive
- Formatted report with task breakdown, remaining failures, and interpretation
- Proof chain integration for tamper-evident audit trail
- Injectable executor interface for testing without real Claude CLI

1,278 tests passing across 26 test files.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 21:12:54 +00:00
Claude ebf7575af0 feat: add context-size-aware optimizer and headless Claude benchmarking
Add optimizeForSize() with compact/standard/full context presets that
restructure CLAUDE.md content through rule extraction, section splitting,
constitution trimming, and duplicate removal to achieve 88%+ scores.

Add headlessBenchmark() for automated compliance testing via claude -p
with injectable executor interface, proof chain verification, and
formatted before/after reports.

1,252 tests passing across 26 test files.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 21:02:44 +00:00
Claude e06f273a1b feat: add CLAUDE.md generators, analyzer, and auto-optimizer
Generators (src/generators.ts):
- generateClaudeMd() - structured CLAUDE.md from project profile with
  language-specific invariants (TS, JS, Python, Rust, Go, Java) and
  framework rules (React, Next.js, Express, Django, etc.)
- generateClaudeLocalMd() - CLAUDE.local.md for personal overrides
  with machine notes, editor prefs, and experimental rules
- generateSkillMd() - Claude Code skills with YAML frontmatter
- generateAgentMd() - Agent definitions with YAML frontmatter
- generateAgentIndex() - Agent index.yaml grouped by category
- scaffold() - Full .claude/ directory structure generation

Analyzer (src/analyzer.ts):
- 6-dimension scoring (0-100 each, weighted composite):
  Structure (20%), Coverage (20%), Enforceability (25%),
  Compilability (15%), Clarity (10%), Completeness (10%)
- benchmark() - before/after comparison with per-dimension deltas
- autoOptimize() - iteratively applies high-priority suggestions
  with concrete patches, re-scores to verify improvement
- formatReport() / formatBenchmark() - human-readable output

Analysis of existing CLAUDE.md files:
- Root CLAUDE.md: 73/100 (C) -> 77/100 after optimization
- v3/CLAUDE.md: 64/100 (D) -> 78/100 after optimization
- Key findings: low rule density, oversized constitution section,
  missing Architecture section

Tests: 141 new tests (68 generators + 73 analyzer), 1229 total passing

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 20:48:36 +00:00
Claude e5ca9411cd docs: add comprehensive user documentation with guides, tutorials, and diagrams
Ground README and guides in how Claude Code actually loads memory:
- CLAUDE.md as team-shared, committed guidance
- CLAUDE.local.md as private, machine-specific overrides
- Upward directory search and monorepo layering
- @import pattern for git worktree compatibility
- /memory command for verification
- Optimizer lifecycle: local experiments promote to root

README additions:
- "How Claude Code Memory Works" section with audience table
- "How CLAUDE.md Becomes Enforceable Policy" mermaid diagram
- "What Goes Where" section with concrete examples
- Updated test count to 1,088 across 24 files

Getting-started additions:
- Background section explaining memory file loading
- Both files in minimal setup example
- Detailed CLAUDE.md vs CLAUDE.local.md guidance
- @import worktree pattern
- Optimizer promotion workflow
- Verification steps with /memory command

Architecture additions:
- "Starting Point" section explaining the gap raw text leaves
- File discovery diagram showing upward search + @import
- Annotated compile/run/evolve lifecycle

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 20:23:48 +00:00
Claude 176f6ad235 docs: add comprehensive user documentation with guides, tutorials, and diagrams
13 documentation files covering all 20+ modules:

Guides:
- Getting Started: installation, setup, core loop
- Architecture Overview: 7-layer design with mermaid diagrams
- Multi-Agent Security: threats, collusion, quorum, trust
- Capabilities and Trust: permission algebra, trust tiers, authority
- Knowledge Management: uncertainty, temporal, truth anchors
- WASM Kernel: building, using, benchmarking

Tutorials:
- Enforcement Gates: wire gates into hooks
- ContinueGate: prevent runaway agent loops
- Proof & Audit Trail: tamper-evident chains
- CI/CD & Headless Testing: automated compliance

Reference:
- API Quick Reference: all exports, methods, types

Diagrams:
- 10 mermaid diagrams: system overview, enforcement pipeline,
  decision trees, trust flow, capability delegation, memory
  security layers, knowledge stack, proof chain, meta-governance
  lifecycle, compile-retrieve-gate sequence

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 19:55:55 +00:00
Claude 0ffd0e14f3 chore: add .gitignore for Rust build artifacts in wasm-kernel
Excludes target/ directory from version control.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 17:47:14 +00:00
Claude 2dd2bb891f feat: add Rust WASM policy kernel with SIMD128 acceleration
Two-layer architecture: Layer A (Rust→WASM kernel for pure functions) +
Layer B (Node host bridge with transparent JS fallback).

Kernel modules:
- proof: SHA-256, HMAC-SHA256, content hashing, chain verification
- gates: secret scanning (8 patterns), destructive command detection (12 patterns)
- scoring: shard relevance scoring with domain/risk/keyword bonuses
- batch: 9-operation batch API to minimize WASM boundary crossings

Performance (SIMD128 enabled, 10k events):
- SHA-256 throughput: 1.80x faster (910k/s vs 505k/s)
- Secret scan (dirty): 1.96x faster (362k/s vs 185k/s)
- Secret scan (clean): 1.68x faster (676k/s vs 402k/s)
- Proof chain: 1.25x faster (61ms vs 76ms)

Includes:
- Pre-built wasm-pkg/ with SIMD+O2 optimization
- 15 acceptance tests (parity + 10k throughput benchmarks)
- ADR-G025 documenting architecture and performance
- README updated with WASM kernel docs and KPIs
- Wired exports into index.ts and package.json

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 17:44:35 +00:00
Claude 20529c7f6f perf: add 22-benchmark suite with before/after report
Add comprehensive benchmark suite covering 11 modules:
- ContinueGate, ThreatDetector, CollusionDetector, MemoryQuorum
- Gateway, MemoryWriteGate, CoherenceScheduler, TrustAccumulator
- AuthorityGate, IrreversibilityClassifier, MetaGovernor

Key improvements vs commit a57ea60:
- CollusionDetector: +37% (1k interactions, single graph build)
- MemoryQuorum.propose: +73% (O(n) eviction vs O(n log n) sort)
- MemoryQuorum.vote+resolve: +186% (single-pass vote counting)
- Gateway.evaluate: +8% (batch cleanup interval)
- ContinueGate cooldown: -29% (intentional: safety checks added)

Additional optimization: MemoryQuorum.resolve() now counts votes
in a single pass instead of two Array.filter() calls.

Full suite: 23 files, 1073 tests passing.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 17:17:59 +00:00
Claude ce0da62054 fix: security hardening and performance optimization across 4 modules
Security fixes:
- continue-gate: check critical stop conditions (coherence, budget)
  during cooldown to prevent bypass via step timing
- gateway: add maxCacheSize (default 10k) to idempotency cache to
  prevent unbounded memory growth under high-throughput unique calls
- authority: add ReDoS protection to addPattern() — rejects nested
  quantifiers and enforces 500-char max pattern length

Performance fixes:
- adversarial: MemoryQuorum eviction from O(n log n) sort to O(n)
  linear min-find
- adversarial: CollusionDetector.detectCollusion() builds interaction
  graph once and passes to ring/frequency detectors (was rebuilding 3x)
- gateway: batch idempotency cache cleanup on 30s interval instead of
  every evaluate() call

Tests:
- Add 42-test continue-gate.test.ts covering all decision paths,
  cooldown bypass protection, history, stats, slope detection, and
  edge cases
- Full suite: 22 files, 1050 tests passing

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 17:13:00 +00:00
Claude a57ea60aab feat: add ContinueGate, wire all exports, rewrite README
- Add ContinueGate (ADR-G024): step-level gate that evaluates whether
  long-running agents should continue, using budget slope detection,
  rework ratio tracking, and coherence/uncertainty thresholds
- Wire 5 missing wave 3 module exports into index.ts (trust,
  truth-anchors, uncertainty, temporal, authority)
- Add 8 missing sub-export paths to package.json (trust, truth-anchors,
  uncertainty, temporal, authority, adversarial, meta-governance,
  continue-gate)
- Rewrite README with product-oriented introduction, mermaid architecture
  diagram, 28-module reference table, ship phases, acceptance tests,
  decision matrix, and failure modes

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 17:05:45 +00:00
Claude ff4a4b5fd1 docs: add wave 3 ADRs G017-G023 and update README index
- G017: Trust Score Accumulation (tiers, decay, 5:1 penalty/reward)
- G018: Truth Anchor System (immutable HMAC-signed facts, conflict resolution)
- G019: First-Class Uncertainty (confidence intervals, evidence, contested detection)
- G020: Temporal Assertions (bitemporal windows, supersession, reasoning)
- G021: Human Authority and Irreversibility (escalation hierarchy, proof levels)
- G022: Adversarial Model (threat detection, collusion, memory quorum)
- G023: Meta-Governance (constitutional invariants, amendments, optimizer bounds)

README ADR index updated from Proposed to Accepted with file links.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 16:29:38 +00:00
Claude cfcb25b7d0 feat: add wave 3 civilization-grade primitives (trust, truth, uncertainty, time, authority, adversarial, meta-governance)
8 new modules with 4 test suites (332 new tests, 1008 total):
- trust.ts: per-agent trust accumulation, decay, tiers, rate multipliers
- truth-anchors.ts: immutable HMAC-signed external facts, conflict resolution
- uncertainty.ts: first-class belief tracking, confidence intervals, evidence
- temporal.ts: bitemporal assertions, validity windows, supersession chains
- authority.ts: human/institutional authority boundaries, irreversibility
- adversarial.ts: threat detection, collusion analysis, memory quorum
- meta-governance.ts: constitutional invariants, amendment lifecycle
- ruvbot-integration.ts: bridge to ruvbot AIDefence and memory adapter

README updated with all wave 3 modules, impact metrics, and architecture.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 14:32:40 +00:00
Claude 126fbcb6e1 docs: add per-module impact metrics, measurement plan, and ADR G010-G016 index
https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 12:10:53 +00:00
Claude ee3c182b79 feat: complete wave 2 with conformance kit, exports, ADRs, and README
- Add conformance-kit.ts: Memory Clerk acceptance test with SimulatedRuntime,
  MemoryClerkCell, and ConformanceRunner for replay verification
- Add manifest-validator.test.ts: 59 tests for fails-closed admission
- Add conformance-kit.test.ts: 42 tests for cell runtime and replay
- Wire all wave 2 modules into index.ts (capabilities, conformance-kit,
  proof, memory-gate, coherence)
- Add 8 new export paths to package.json (proof, memory-gate, coherence,
  artifacts, capabilities, evolution, conformance-kit)
- Write ADR-G010 through G016 covering capability algebra, artifact ledger,
  manifest validator, evolution pipeline, conformance kit,
  coherence-driven throttling, and agentic container integration
- Add package README with quantified impact, API reference, tutorials,
  architecture diagram, and full test matrix
- 639 tests passing across 17 test files

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 12:04:55 +00:00
Claude db9cedc5ea feat: add manifest validator and evolution pipeline tests
Manifest validator: fails-closed admission checking for agent cell
manifests. Validates digest format, budget sanity, network allowlists,
risk scoring, and lane selection per the Agentic Container Spec v0.1.

Includes ConformanceSuite with golden trace validation and default
test traces for destructive commands, secrets, budget exceeded,
evidence-less writes, and valid operations.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 11:45:12 +00:00
Claude 4d68d8b47a feat: add capability algebra and evolution pipeline
Capability algebra: typed capability objects with grant, restrict,
delegate, expire, revoke, attest operations. Permissions are composable
data, not scattered config. Supports delegation chains, constraint
intersection, and subset checking.

Evolution pipeline: signed change proposals with simulation, replay
comparison, staged rollout, and automatic rollback on divergence.
Every change to rules/policies/tools follows:
propose → simulate → compare → stage → promote/rollback.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 11:44:31 +00:00
Claude c0e708a8d3 feat: add artifact ledger for signed production records
ArtifactLedger with HMAC-signed artifacts, content hashing, lineage
tracking, verification, and search. Every production output (code,
reports, datasets, memory deltas) is signed, versioned, and replayable.

https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf
2026-02-01 11:43:18 +00:00