@claude-flow/cli 3.7.0-alpha.8 → 3.7.0-alpha.80
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.
- package/.claude/agents/github/release-manager.md +2 -2
- package/.claude/agents/github/release-swarm.md +1 -1
- package/.claude/agents/github/repo-architect.md +2 -2
- package/.claude/agents/github/swarm-pr.md +1 -1
- package/.claude/agents/github/workflow-automation.md +2 -2
- package/.claude/commands/github/code-review-swarm.md +1 -1
- package/.claude/commands/github/issue-tracker.md +3 -3
- package/.claude/commands/github/release-manager.md +5 -3
- package/.claude/commands/github/release-swarm.md +1 -1
- package/.claude/commands/github/repo-architect.md +2 -2
- package/.claude/commands/github/swarm-issue.md +4 -1
- package/.claude/commands/github/swarm-pr.md +6 -3
- package/.claude/commands/github/sync-coordinator.md +3 -1
- package/.claude/commands/github/workflow-automation.md +2 -2
- package/.claude/helpers/github-safe.js +95 -60
- package/.claude/helpers/github-setup.sh +26 -9
- package/.claude/helpers/hook-handler.cjs +12 -4
- package/.claude/helpers/statusline.cjs +31 -2
- package/.claude/helpers/statusline.js +35 -4
- package/.claude/settings.json +1 -1
- package/.claude/skills/dual-mode/README.md +71 -0
- package/.claude/skills/dual-mode/dual-collect.md +103 -0
- package/.claude/skills/dual-mode/dual-coordinate.md +85 -0
- package/.claude/skills/dual-mode/dual-spawn.md +81 -0
- package/.claude/skills/flow-nexus-neural/SKILL.md +0 -11
- package/.claude/skills/flow-nexus-platform/SKILL.md +2 -5
- package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -6
- package/.claude/skills/github-code-review/SKILL.md +2 -17
- package/.claude/skills/github-multi-repo/SKILL.md +4 -16
- package/.claude/skills/github-project-management/SKILL.md +18 -33
- package/.claude/skills/github-release-management/SKILL.md +4 -21
- package/.claude/skills/github-workflow-automation/SKILL.md +8 -26
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +2 -2
- package/.claude/skills/sparc-methodology/SKILL.md +2 -11
- package/.claude/skills/stream-chain/SKILL.md +0 -3
- package/.claude/skills/swarm-advanced/SKILL.md +2 -5
- package/.claude/skills/swarm-orchestration/SKILL.md +1 -1
- package/.claude/skills/verification-quality/SKILL.md +120 -78
- package/README.md +57 -38
- package/bin/cli.js +15 -2
- package/bin/mcp-server.js +1 -1
- package/dist/src/__probe.d.ts +2 -0
- package/dist/src/__probe.d.ts.map +1 -0
- package/dist/src/__probe.js +5 -0
- package/dist/src/__probe.js.map +1 -0
- package/dist/src/commands/agent-wasm.js +2 -2
- package/dist/src/commands/agent-wasm.js.map +1 -1
- package/dist/src/commands/benchmark-cosign.d.ts +29 -0
- package/dist/src/commands/benchmark-cosign.d.ts.map +1 -0
- package/dist/src/commands/benchmark-cosign.js +222 -0
- package/dist/src/commands/benchmark-cosign.js.map +1 -0
- package/dist/src/commands/benchmark-verify.d.ts +21 -0
- package/dist/src/commands/benchmark-verify.d.ts.map +1 -0
- package/dist/src/commands/benchmark-verify.js +202 -0
- package/dist/src/commands/benchmark-verify.js.map +1 -0
- package/dist/src/commands/daemon.d.ts +20 -0
- package/dist/src/commands/daemon.d.ts.map +1 -1
- package/dist/src/commands/daemon.js +366 -7
- package/dist/src/commands/daemon.js.map +1 -1
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +224 -46
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/embeddings.d.ts.map +1 -1
- package/dist/src/commands/embeddings.js +18 -9
- package/dist/src/commands/embeddings.js.map +1 -1
- package/dist/src/commands/hive-mind.d.ts.map +1 -1
- package/dist/src/commands/hive-mind.js +25 -7
- package/dist/src/commands/hive-mind.js.map +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +56 -29
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +21 -1
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/memory.d.ts.map +1 -1
- package/dist/src/commands/memory.js +128 -3
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/commands/start.js +1 -1
- package/dist/src/commands/start.js.map +1 -1
- package/dist/src/commands/swarm.js +1 -1
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/commands/task.d.ts.map +1 -1
- package/dist/src/commands/task.js +8 -4
- package/dist/src/commands/task.js.map +1 -1
- package/dist/src/config-adapter.js +1 -1
- package/dist/src/config-adapter.js.map +1 -1
- package/dist/src/index.d.ts +5 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +61 -18
- package/dist/src/index.js.map +1 -1
- package/dist/src/init/claudemd-generator.d.ts.map +1 -1
- package/dist/src/init/claudemd-generator.js +1 -0
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +133 -0
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/helpers-generator.d.ts +1 -0
- package/dist/src/init/helpers-generator.d.ts.map +1 -1
- package/dist/src/init/helpers-generator.js +19 -2
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/mcp-generator.js +4 -4
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +84 -19
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.d.ts.map +1 -1
- package/dist/src/init/statusline-generator.js +75 -31
- package/dist/src/init/statusline-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +30 -0
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +18 -5
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/mcp-client.d.ts.map +1 -1
- package/dist/src/mcp-client.js +12 -0
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +38 -5
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/agent-execute-core.d.ts +3 -2
- package/dist/src/mcp-tools/agent-execute-core.d.ts.map +1 -1
- package/dist/src/mcp-tools/agent-execute-core.js +157 -83
- package/dist/src/mcp-tools/agent-execute-core.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +119 -11
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/agentdb-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/agentdb-tools.js +101 -24
- package/dist/src/mcp-tools/agentdb-tools.js.map +1 -1
- package/dist/src/mcp-tools/analyze-tools.js +6 -6
- package/dist/src/mcp-tools/analyze-tools.js.map +1 -1
- package/dist/src/mcp-tools/autopilot-tools.js +10 -10
- package/dist/src/mcp-tools/autopilot-tools.js.map +1 -1
- package/dist/src/mcp-tools/browser-session-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/browser-session-tools.js +18 -7
- package/dist/src/mcp-tools/browser-session-tools.js.map +1 -1
- package/dist/src/mcp-tools/browser-tools.js +23 -23
- package/dist/src/mcp-tools/browser-tools.js.map +1 -1
- package/dist/src/mcp-tools/claims-tools.js +12 -12
- package/dist/src/mcp-tools/claims-tools.js.map +1 -1
- package/dist/src/mcp-tools/config-tools.js +6 -6
- package/dist/src/mcp-tools/config-tools.js.map +1 -1
- package/dist/src/mcp-tools/coordination-tools.js +7 -7
- package/dist/src/mcp-tools/coordination-tools.js.map +1 -1
- package/dist/src/mcp-tools/daa-tools.js +8 -8
- package/dist/src/mcp-tools/daa-tools.js.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.js +10 -10
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
- package/dist/src/mcp-tools/github-tools.js +5 -5
- package/dist/src/mcp-tools/github-tools.js.map +1 -1
- package/dist/src/mcp-tools/guidance-tools.js +21 -21
- package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
- package/dist/src/mcp-tools/hive-consensus-runtime.d.ts +149 -0
- package/dist/src/mcp-tools/hive-consensus-runtime.d.ts.map +1 -0
- package/dist/src/mcp-tools/hive-consensus-runtime.js +296 -0
- package/dist/src/mcp-tools/hive-consensus-runtime.js.map +1 -0
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +53 -9
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts +2 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +179 -46
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/managed-agent-tools.d.ts +22 -0
- package/dist/src/mcp-tools/managed-agent-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/managed-agent-tools.js +357 -0
- package/dist/src/mcp-tools/managed-agent-tools.js.map +1 -0
- package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/memory-tools.js +499 -68
- package/dist/src/mcp-tools/memory-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.js +6 -6
- package/dist/src/mcp-tools/neural-tools.js.map +1 -1
- package/dist/src/mcp-tools/performance-tools.js +6 -6
- package/dist/src/mcp-tools/performance-tools.js.map +1 -1
- package/dist/src/mcp-tools/progress-tools.js +4 -4
- package/dist/src/mcp-tools/progress-tools.js.map +1 -1
- package/dist/src/mcp-tools/ruvllm-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/ruvllm-tools.js +27 -11
- package/dist/src/mcp-tools/ruvllm-tools.js.map +1 -1
- package/dist/src/mcp-tools/security-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/security-tools.js +34 -9
- package/dist/src/mcp-tools/security-tools.js.map +1 -1
- package/dist/src/mcp-tools/session-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/session-tools.js +130 -6
- package/dist/src/mcp-tools/session-tools.js.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.d.ts +28 -0
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.js +80 -9
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -1
- package/dist/src/mcp-tools/system-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/system-tools.js +91 -18
- package/dist/src/mcp-tools/system-tools.js.map +1 -1
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/task-tools.js +55 -7
- package/dist/src/mcp-tools/task-tools.js.map +1 -1
- package/dist/src/mcp-tools/terminal-tools.js +5 -5
- package/dist/src/mcp-tools/terminal-tools.js.map +1 -1
- package/dist/src/mcp-tools/transfer-tools.js +11 -11
- package/dist/src/mcp-tools/transfer-tools.js.map +1 -1
- package/dist/src/mcp-tools/wasm-agent-tools.js +11 -11
- package/dist/src/mcp-tools/wasm-agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/workflow-tools.js +118 -10
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -1
- package/dist/src/memory/ann-router-registry.d.ts +61 -0
- package/dist/src/memory/ann-router-registry.d.ts.map +1 -0
- package/dist/src/memory/ann-router-registry.js +72 -0
- package/dist/src/memory/ann-router-registry.js.map +1 -0
- package/dist/src/memory/diskann-registry.d.ts +56 -0
- package/dist/src/memory/diskann-registry.d.ts.map +1 -0
- package/dist/src/memory/diskann-registry.js +88 -0
- package/dist/src/memory/diskann-registry.js.map +1 -0
- package/dist/src/memory/memory-bridge.d.ts +4 -0
- package/dist/src/memory/memory-bridge.d.ts.map +1 -1
- package/dist/src/memory/memory-bridge.js +49 -8
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/memory/memory-initializer.d.ts +12 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -1
- package/dist/src/memory/memory-initializer.js +98 -19
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/src/memory/sona-optimizer.d.ts.map +1 -1
- package/dist/src/memory/sona-optimizer.js +3 -0
- package/dist/src/memory/sona-optimizer.js.map +1 -1
- package/dist/src/parser.d.ts +9 -0
- package/dist/src/parser.d.ts.map +1 -1
- package/dist/src/parser.js +11 -0
- package/dist/src/parser.js.map +1 -1
- package/dist/src/plugins/store/discovery.d.ts +15 -4
- package/dist/src/plugins/store/discovery.d.ts.map +1 -1
- package/dist/src/plugins/store/discovery.js +40 -18
- package/dist/src/plugins/store/discovery.js.map +1 -1
- package/dist/src/ruvector/agent-wasm.d.ts.map +1 -1
- package/dist/src/ruvector/agent-wasm.js +4 -1
- package/dist/src/ruvector/agent-wasm.js.map +1 -1
- package/dist/src/ruvector/coverage-tools.js +6 -6
- package/dist/src/ruvector/coverage-tools.js.map +1 -1
- package/dist/src/services/headless-worker-executor.d.ts +6 -0
- package/dist/src/services/headless-worker-executor.d.ts.map +1 -1
- package/dist/src/services/headless-worker-executor.js +63 -6
- package/dist/src/services/headless-worker-executor.js.map +1 -1
- package/dist/src/services/worker-daemon.d.ts +80 -2
- package/dist/src/services/worker-daemon.d.ts.map +1 -1
- package/dist/src/services/worker-daemon.js +372 -11
- package/dist/src/services/worker-daemon.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -8
- package/.claude/agents/core/coder.md +0 -453
- package/.claude/agents/core/researcher.md +0 -369
- package/.claude/agents/core/reviewer.md +0 -520
- package/.claude/agents/core/tester.md +0 -512
- package/.claude/agents/goal/goal-planner.md +0 -73
- package/.claude/agents/v3/adr-architect.md +0 -184
- package/.claude/agents/v3/memory-specialist.md +0 -995
- package/.claude/agents/v3/security-auditor.md +0 -771
- package/.claude/agents/v3/sparc-orchestrator.md +0 -182
- package/.claude/commands/flow-nexus/app-store.md +0 -124
- package/.claude/commands/flow-nexus/challenges.md +0 -120
- package/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/.claude/commands/flow-nexus/payments.md +0 -116
- package/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/.claude/commands/flow-nexus/swarm.md +0 -87
- package/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/.claude/commands/flow-nexus/workflow.md +0 -115
- package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
- package/.claude/skills/aidefence-scan.md +0 -151
- package/.claude/skills/aidefence.yaml +0 -297
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
- package/.claude/skills/performance-analysis/SKILL.md +0 -563
- package/.claude/skills/secure-review.md +0 -181
- package/.claude/skills/worker-benchmarks/skill.md +0 -135
- package/.claude/skills/worker-integration/skill.md +0 -154
- package/dist/src/ruvector/flash-attention.d.ts +0 -195
- package/dist/src/ruvector/flash-attention.d.ts.map +0 -1
- package/dist/src/ruvector/flash-attention.js +0 -643
- package/dist/src/ruvector/flash-attention.js.map +0 -1
- package/dist/src/ruvector/moe-router.d.ts +0 -206
- package/dist/src/ruvector/moe-router.d.ts.map +0 -1
- package/dist/src/ruvector/moe-router.js +0 -626
- package/dist/src/ruvector/moe-router.js.map +0 -1
- package/dist/src/services/event-stream.d.ts +0 -25
- package/dist/src/services/event-stream.d.ts.map +0 -1
- package/dist/src/services/event-stream.js +0 -27
- package/dist/src/services/event-stream.js.map +0 -1
- package/dist/src/services/loop-worker-runner.d.ts +0 -16
- package/dist/src/services/loop-worker-runner.d.ts.map +0 -1
- package/dist/src/services/loop-worker-runner.js +0 -34
- package/dist/src/services/loop-worker-runner.js.map +0 -1
- package/dist/src/services/runtime-capabilities.d.ts +0 -22
- package/dist/src/services/runtime-capabilities.d.ts.map +0 -1
- package/dist/src/services/runtime-capabilities.js +0 -45
- package/dist/src/services/runtime-capabilities.js.map +0 -1
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sparc-methodology
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
category: development
|
|
6
|
-
tags:
|
|
7
|
-
- sparc
|
|
8
|
-
- tdd
|
|
9
|
-
- architecture
|
|
10
|
-
- orchestration
|
|
11
|
-
- methodology
|
|
12
|
-
- multi-agent
|
|
13
|
-
author: Claude Flow
|
|
3
|
+
description: |
|
|
4
|
+
SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration
|
|
14
5
|
---
|
|
15
6
|
|
|
16
7
|
# SPARC Methodology - Comprehensive Development Framework
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: stream-chain
|
|
3
3
|
description: Stream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
category: workflow
|
|
6
|
-
tags: [streaming, pipeline, chaining, multi-agent, workflow]
|
|
7
4
|
---
|
|
8
5
|
|
|
9
6
|
# Stream-Chain Skill
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: swarm-advanced
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
category: orchestration
|
|
6
|
-
tags: [swarm, distributed, parallel, research, testing, development, coordination]
|
|
7
|
-
author: Claude Flow Team
|
|
3
|
+
description: |
|
|
4
|
+
Advanced swarm orchestration patterns for research, development, testing, and complex distributed workflows
|
|
8
5
|
---
|
|
9
6
|
|
|
10
7
|
# Advanced Swarm Orchestration
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "Verification & Quality Assurance"
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
category: "quality-assurance"
|
|
6
|
-
tags: ["verification", "truth-scoring", "quality", "rollback", "metrics", "ci-cd"]
|
|
3
|
+
description: |
|
|
4
|
+
Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.
|
|
7
5
|
---
|
|
8
6
|
|
|
9
7
|
# Verification & Quality Assurance Skill
|
|
@@ -19,26 +17,70 @@ This skill provides a comprehensive verification and quality assurance system th
|
|
|
19
17
|
- **CI/CD Integration**: Export capabilities for continuous integration pipelines
|
|
20
18
|
- **Real-time Monitoring**: Live dashboards and watch modes for ongoing verification
|
|
21
19
|
|
|
20
|
+
> **Shipped vs. aspirational.** The *concrete, in-CI* verification stack — the 6 regression-guard jobs + the witness manifest + the tool-discoverability audit — is real and runs on every push. The truth-scoring / auto-rollback / WebSocket-dashboard surface described later in this doc is partly shipped (`ruflo verify` runs the witness checks) and partly design — treat the "CI Guards" section below as the authoritative current state.
|
|
21
|
+
|
|
22
|
+
## CI Guards — what's actually shipped (current state)
|
|
23
|
+
|
|
24
|
+
Ruflo's regression protection is three layers, all gated before publish. Authoritative reference: [`verification/README.md`](../../../verification/README.md).
|
|
25
|
+
|
|
26
|
+
| Layer | What | CI job(s) in `.github/workflows/v3-ci.yml` | ADR |
|
|
27
|
+
|---|---|---|---|
|
|
28
|
+
| **1 — install/behavioral smoke** | Exercise user-visible failure modes against a real build | `smoke-install-no-bsqlite` (npm install on platforms w/o prebuilds), `plugin-hooks-smoke` (#1859/#1862 — hook flag parsing), `mcp-protocol-smoke` (#1874 — HTTP MCP wire format), `memory-import-smoke` (#1883/#1884 — WSL path + key sanitization), `mcp-roundtrip-smoke` (#1889 paired-tool round-trip + #1863 cli-no-crash + ADR-095 G2 consensus-transport) | ADR-102 |
|
|
29
|
+
| **1 — discoverability gate** | Every MCP tool description must answer "use this over native when?" | `tool-descriptions-audit` — `scripts/audit-tool-descriptions.mjs`, baseline at `verification/mcp-tool-baseline.json` (monotone-decreasing: noGuidance / tooShort / duplicates) | ADR-112 |
|
|
30
|
+
| **2 — cryptographic witness** | Every documented fix's load-bearing marker must still be present in dist; Ed25519-signed, per-OS bundles | `witness-verify` (ubuntu/macos/windows) — `plugins/ruflo-core/scripts/witness/verify.mjs` against `verification/<os>/manifest.md.json` | ADR-103 |
|
|
31
|
+
| **3 — temporal history** | When was a regression introduced | `verification/<os>/history.jsonl` + `history.mjs` (`summary` / `regressions` / `timeline`) | ADR-103 |
|
|
32
|
+
|
|
33
|
+
### Run the guards locally
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Tool-description discoverability audit (ADR-112)
|
|
37
|
+
node scripts/audit-tool-descriptions.mjs # fails if any baseline count rises
|
|
38
|
+
node scripts/audit-tool-descriptions.mjs --update-baseline # lock the new floor after a fix lands
|
|
39
|
+
|
|
40
|
+
# Behavioral smokes (each builds what it needs; safe to run individually)
|
|
41
|
+
node plugins/ruflo-core/scripts/test-hooks.mjs "node $PWD/v3/@claude-flow/cli/bin/cli.js"
|
|
42
|
+
node plugins/ruflo-core/scripts/test-mcp-protocol.mjs
|
|
43
|
+
node plugins/ruflo-core/scripts/test-memory-import.mjs
|
|
44
|
+
node plugins/ruflo-core/scripts/test-mcp-roundtrips.mjs # #1889 paired-tool round-trip
|
|
45
|
+
node plugins/ruflo-core/scripts/test-cli-no-crash.mjs # #1863 unhandled-exception class
|
|
46
|
+
node plugins/ruflo-core/scripts/test-consensus-transport.mjs # ADR-095 G2 consensus transport
|
|
47
|
+
|
|
48
|
+
# Witness manifest — regenerate + verify
|
|
49
|
+
node scripts/regen-witness.mjs
|
|
50
|
+
node plugins/ruflo-core/scripts/witness/verify.mjs --manifest verification/macos/manifest.md.json
|
|
51
|
+
|
|
52
|
+
# Temporal history
|
|
53
|
+
node plugins/ruflo-core/scripts/witness/history.mjs --history verification/macos/history.jsonl summary
|
|
54
|
+
node plugins/ruflo-core/scripts/witness/history.mjs --history verification/macos/history.jsonl regressions
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Adding a new guard
|
|
58
|
+
|
|
59
|
+
1. **Behavioral smoke** → write `plugins/ruflo-core/scripts/test-<name>.mjs`. Pattern: static dist-scan first (fast, always completes), behavioral probe second with an internal timeout + a process-level watchdog so CI never hangs. Add a step to the relevant job in `v3-ci.yml`.
|
|
60
|
+
2. **Static gate with a baseline** → write `scripts/audit-<name>.mjs` that scans, counts violations, and fails if the count exceeds a monotone-decreasing baseline in `verification/<name>-baseline.json`. Support `--update-baseline`. Add a CI job; wire it into `witness-verify` `needs[]` if it should gate `publish`.
|
|
61
|
+
3. **Documented-fix marker** → append `{ id, desc, file, marker }` to `verification/witness-fixes.json`, run `node scripts/regen-witness.mjs`. The marker must be a substring the fix specifically creates (not a generic pattern like `'function'`).
|
|
62
|
+
|
|
22
63
|
## Prerequisites
|
|
23
64
|
|
|
24
|
-
-
|
|
65
|
+
- Ruflo installed (`npx ruflo@alpha`)
|
|
25
66
|
- Git repository (for rollback features)
|
|
26
67
|
- Node.js 18+ (for dashboard features)
|
|
68
|
+
- `@noble/ed25519` (for the witness verifier — a single runtime dep, `npm i @noble/ed25519`)
|
|
27
69
|
|
|
28
70
|
## Quick Start
|
|
29
71
|
|
|
30
72
|
```bash
|
|
31
73
|
# View current truth scores
|
|
32
|
-
npx
|
|
74
|
+
npx ruflo@alpha truth
|
|
33
75
|
|
|
34
76
|
# Run verification check
|
|
35
|
-
npx
|
|
77
|
+
npx ruflo@alpha verify check
|
|
36
78
|
|
|
37
79
|
# Verify specific file with custom threshold
|
|
38
|
-
npx
|
|
80
|
+
npx ruflo@alpha verify check --file src/app.js --threshold 0.98
|
|
39
81
|
|
|
40
82
|
# Rollback last failed verification
|
|
41
|
-
npx
|
|
83
|
+
npx ruflo@alpha verify rollback --last-good
|
|
42
84
|
```
|
|
43
85
|
|
|
44
86
|
---
|
|
@@ -54,40 +96,40 @@ Display comprehensive quality and reliability metrics for your codebase and agen
|
|
|
54
96
|
**Basic Usage:**
|
|
55
97
|
```bash
|
|
56
98
|
# View current truth scores (default: table format)
|
|
57
|
-
npx
|
|
99
|
+
npx ruflo@alpha truth
|
|
58
100
|
|
|
59
101
|
# View scores for specific time period
|
|
60
|
-
npx
|
|
102
|
+
npx ruflo@alpha truth --period 7d
|
|
61
103
|
|
|
62
104
|
# View scores for specific agent
|
|
63
|
-
npx
|
|
105
|
+
npx ruflo@alpha truth --agent coder --period 24h
|
|
64
106
|
|
|
65
107
|
# Find files/tasks below threshold
|
|
66
|
-
npx
|
|
108
|
+
npx ruflo@alpha truth --threshold 0.8
|
|
67
109
|
```
|
|
68
110
|
|
|
69
111
|
**Output Formats:**
|
|
70
112
|
```bash
|
|
71
113
|
# Table format (default)
|
|
72
|
-
npx
|
|
114
|
+
npx ruflo@alpha truth --format table
|
|
73
115
|
|
|
74
116
|
# JSON for programmatic access
|
|
75
|
-
npx
|
|
117
|
+
npx ruflo@alpha truth --format json
|
|
76
118
|
|
|
77
119
|
# CSV for spreadsheet analysis
|
|
78
|
-
npx
|
|
120
|
+
npx ruflo@alpha truth --format csv
|
|
79
121
|
|
|
80
122
|
# HTML report with visualizations
|
|
81
|
-
npx
|
|
123
|
+
npx ruflo@alpha truth --format html --export report.html
|
|
82
124
|
```
|
|
83
125
|
|
|
84
126
|
**Real-time Monitoring:**
|
|
85
127
|
```bash
|
|
86
128
|
# Watch mode with live updates
|
|
87
|
-
npx
|
|
129
|
+
npx ruflo@alpha truth --watch
|
|
88
130
|
|
|
89
131
|
# Export metrics automatically
|
|
90
|
-
npx
|
|
132
|
+
npx ruflo@alpha truth --export .claude-flow/metrics/truth-$(date +%Y%m%d).json
|
|
91
133
|
```
|
|
92
134
|
|
|
93
135
|
#### Truth Score Dashboard
|
|
@@ -143,40 +185,40 @@ Execute comprehensive verification checks on code, tasks, or agent outputs.
|
|
|
143
185
|
**File Verification:**
|
|
144
186
|
```bash
|
|
145
187
|
# Verify single file
|
|
146
|
-
npx
|
|
188
|
+
npx ruflo@alpha verify check --file src/app.js
|
|
147
189
|
|
|
148
190
|
# Verify directory recursively
|
|
149
|
-
npx
|
|
191
|
+
npx ruflo@alpha verify check --directory src/
|
|
150
192
|
|
|
151
193
|
# Verify with auto-fix enabled
|
|
152
|
-
npx
|
|
194
|
+
npx ruflo@alpha verify check --file src/utils.js --auto-fix
|
|
153
195
|
|
|
154
196
|
# Verify current working directory
|
|
155
|
-
npx
|
|
197
|
+
npx ruflo@alpha verify check
|
|
156
198
|
```
|
|
157
199
|
|
|
158
200
|
**Task Verification:**
|
|
159
201
|
```bash
|
|
160
202
|
# Verify specific task output
|
|
161
|
-
npx
|
|
203
|
+
npx ruflo@alpha verify check --task task-123
|
|
162
204
|
|
|
163
205
|
# Verify with custom threshold
|
|
164
|
-
npx
|
|
206
|
+
npx ruflo@alpha verify check --task task-456 --threshold 0.99
|
|
165
207
|
|
|
166
208
|
# Verbose output for debugging
|
|
167
|
-
npx
|
|
209
|
+
npx ruflo@alpha verify check --task task-789 --verbose
|
|
168
210
|
```
|
|
169
211
|
|
|
170
212
|
**Batch Verification:**
|
|
171
213
|
```bash
|
|
172
214
|
# Verify multiple files in parallel
|
|
173
|
-
npx
|
|
215
|
+
npx ruflo@alpha verify batch --files "*.js" --parallel
|
|
174
216
|
|
|
175
217
|
# Verify with pattern matching
|
|
176
|
-
npx
|
|
218
|
+
npx ruflo@alpha verify batch --pattern "src/**/*.ts"
|
|
177
219
|
|
|
178
220
|
# Integration test suite
|
|
179
|
-
npx
|
|
221
|
+
npx ruflo@alpha verify integration --test-suite full
|
|
180
222
|
```
|
|
181
223
|
|
|
182
224
|
#### Verification Criteria
|
|
@@ -217,7 +259,7 @@ The verification system evaluates:
|
|
|
217
259
|
|
|
218
260
|
```bash
|
|
219
261
|
# Get structured JSON output
|
|
220
|
-
npx
|
|
262
|
+
npx ruflo@alpha verify check --json > verification.json
|
|
221
263
|
|
|
222
264
|
# Example JSON structure:
|
|
223
265
|
{
|
|
@@ -249,25 +291,25 @@ Automatically revert changes that fail verification checks.
|
|
|
249
291
|
**Basic Rollback:**
|
|
250
292
|
```bash
|
|
251
293
|
# Rollback to last known good state
|
|
252
|
-
npx
|
|
294
|
+
npx ruflo@alpha verify rollback --last-good
|
|
253
295
|
|
|
254
296
|
# Rollback to specific commit
|
|
255
|
-
npx
|
|
297
|
+
npx ruflo@alpha verify rollback --to-commit abc123
|
|
256
298
|
|
|
257
299
|
# Interactive rollback with preview
|
|
258
|
-
npx
|
|
300
|
+
npx ruflo@alpha verify rollback --interactive
|
|
259
301
|
```
|
|
260
302
|
|
|
261
303
|
**Smart Rollback:**
|
|
262
304
|
```bash
|
|
263
305
|
# Rollback only failed files (preserve good changes)
|
|
264
|
-
npx
|
|
306
|
+
npx ruflo@alpha verify rollback --selective
|
|
265
307
|
|
|
266
308
|
# Rollback with automatic backup
|
|
267
|
-
npx
|
|
309
|
+
npx ruflo@alpha verify rollback --backup-first
|
|
268
310
|
|
|
269
311
|
# Dry-run mode (preview without executing)
|
|
270
|
-
npx
|
|
312
|
+
npx ruflo@alpha verify rollback --dry-run
|
|
271
313
|
```
|
|
272
314
|
|
|
273
315
|
**Rollback Performance:**
|
|
@@ -284,31 +326,31 @@ Create detailed verification reports with metrics and visualizations.
|
|
|
284
326
|
**Report Formats:**
|
|
285
327
|
```bash
|
|
286
328
|
# JSON report
|
|
287
|
-
npx
|
|
329
|
+
npx ruflo@alpha verify report --format json
|
|
288
330
|
|
|
289
331
|
# HTML report with charts
|
|
290
|
-
npx
|
|
332
|
+
npx ruflo@alpha verify report --export metrics.html --format html
|
|
291
333
|
|
|
292
334
|
# CSV for data analysis
|
|
293
|
-
npx
|
|
335
|
+
npx ruflo@alpha verify report --format csv --export metrics.csv
|
|
294
336
|
|
|
295
337
|
# Markdown summary
|
|
296
|
-
npx
|
|
338
|
+
npx ruflo@alpha verify report --format markdown
|
|
297
339
|
```
|
|
298
340
|
|
|
299
341
|
**Time-based Reports:**
|
|
300
342
|
```bash
|
|
301
343
|
# Last 24 hours
|
|
302
|
-
npx
|
|
344
|
+
npx ruflo@alpha verify report --period 24h
|
|
303
345
|
|
|
304
346
|
# Last 7 days
|
|
305
|
-
npx
|
|
347
|
+
npx ruflo@alpha verify report --period 7d
|
|
306
348
|
|
|
307
349
|
# Last 30 days with trends
|
|
308
|
-
npx
|
|
350
|
+
npx ruflo@alpha verify report --period 30d --include-trends
|
|
309
351
|
|
|
310
352
|
# Custom date range
|
|
311
|
-
npx
|
|
353
|
+
npx ruflo@alpha verify report --from 2025-01-01 --to 2025-01-31
|
|
312
354
|
```
|
|
313
355
|
|
|
314
356
|
**Report Content:**
|
|
@@ -328,16 +370,16 @@ Run interactive web-based verification dashboard with real-time updates.
|
|
|
328
370
|
|
|
329
371
|
```bash
|
|
330
372
|
# Launch dashboard on default port (3000)
|
|
331
|
-
npx
|
|
373
|
+
npx ruflo@alpha verify dashboard
|
|
332
374
|
|
|
333
375
|
# Custom port
|
|
334
|
-
npx
|
|
376
|
+
npx ruflo@alpha verify dashboard --port 8080
|
|
335
377
|
|
|
336
378
|
# Export dashboard data
|
|
337
|
-
npx
|
|
379
|
+
npx ruflo@alpha verify dashboard --export
|
|
338
380
|
|
|
339
381
|
# Dashboard with auto-refresh
|
|
340
|
-
npx
|
|
382
|
+
npx ruflo@alpha verify dashboard --refresh 5s
|
|
341
383
|
```
|
|
342
384
|
|
|
343
385
|
**Dashboard Features:**
|
|
@@ -392,13 +434,13 @@ Set verification preferences in `.claude-flow/config.json`:
|
|
|
392
434
|
**Adjust verification strictness:**
|
|
393
435
|
```bash
|
|
394
436
|
# Strict mode (99% accuracy required)
|
|
395
|
-
npx
|
|
437
|
+
npx ruflo@alpha verify check --threshold 0.99
|
|
396
438
|
|
|
397
439
|
# Lenient mode (90% acceptable)
|
|
398
|
-
npx
|
|
440
|
+
npx ruflo@alpha verify check --threshold 0.90
|
|
399
441
|
|
|
400
442
|
# Set default threshold
|
|
401
|
-
npx
|
|
443
|
+
npx ruflo@alpha config set verification.threshold 0.98
|
|
402
444
|
```
|
|
403
445
|
|
|
404
446
|
**Per-environment thresholds:**
|
|
@@ -428,14 +470,14 @@ jobs:
|
|
|
428
470
|
verify:
|
|
429
471
|
runs-on: ubuntu-latest
|
|
430
472
|
steps:
|
|
431
|
-
- uses: actions/checkout@
|
|
473
|
+
- uses: actions/checkout@v4
|
|
432
474
|
|
|
433
475
|
- name: Install Dependencies
|
|
434
476
|
run: npm install
|
|
435
477
|
|
|
436
478
|
- name: Run Verification
|
|
437
479
|
run: |
|
|
438
|
-
npx
|
|
480
|
+
npx ruflo@alpha verify check --json > verification.json
|
|
439
481
|
|
|
440
482
|
- name: Check Truth Score
|
|
441
483
|
run: |
|
|
@@ -457,7 +499,7 @@ jobs:
|
|
|
457
499
|
verify:
|
|
458
500
|
stage: test
|
|
459
501
|
script:
|
|
460
|
-
- npx
|
|
502
|
+
- npx ruflo@alpha verify check --threshold 0.95 --json > verification.json
|
|
461
503
|
- |
|
|
462
504
|
score=$(jq '.overallScore' verification.json)
|
|
463
505
|
if [ $(echo "$score < 0.95" | bc) -eq 1 ]; then
|
|
@@ -477,13 +519,13 @@ Run verification automatically during swarm operations:
|
|
|
477
519
|
|
|
478
520
|
```bash
|
|
479
521
|
# Swarm with verification enabled
|
|
480
|
-
npx
|
|
522
|
+
npx ruflo@alpha swarm --verify --threshold 0.98
|
|
481
523
|
|
|
482
524
|
# Hive Mind with auto-rollback
|
|
483
|
-
npx
|
|
525
|
+
npx ruflo@alpha hive-mind --verify --rollback-on-fail
|
|
484
526
|
|
|
485
527
|
# Training pipeline with verification
|
|
486
|
-
npx
|
|
528
|
+
npx ruflo@alpha train --verify --threshold 0.99
|
|
487
529
|
```
|
|
488
530
|
|
|
489
531
|
#### Pair Programming Integration
|
|
@@ -492,10 +534,10 @@ Enable real-time verification during collaborative development:
|
|
|
492
534
|
|
|
493
535
|
```bash
|
|
494
536
|
# Pair with verification
|
|
495
|
-
npx
|
|
537
|
+
npx ruflo@alpha pair --verify --real-time
|
|
496
538
|
|
|
497
539
|
# Pair with custom threshold
|
|
498
|
-
npx
|
|
540
|
+
npx ruflo@alpha pair --verify --threshold 0.97 --auto-fix
|
|
499
541
|
```
|
|
500
542
|
|
|
501
543
|
### Advanced Workflows
|
|
@@ -506,13 +548,13 @@ Monitor codebase continuously during development:
|
|
|
506
548
|
|
|
507
549
|
```bash
|
|
508
550
|
# Watch directory for changes
|
|
509
|
-
npx
|
|
551
|
+
npx ruflo@alpha verify watch --directory src/
|
|
510
552
|
|
|
511
553
|
# Watch with auto-fix
|
|
512
|
-
npx
|
|
554
|
+
npx ruflo@alpha verify watch --directory src/ --auto-fix
|
|
513
555
|
|
|
514
556
|
# Watch with notifications
|
|
515
|
-
npx
|
|
557
|
+
npx ruflo@alpha verify watch --notify --threshold 0.95
|
|
516
558
|
```
|
|
517
559
|
|
|
518
560
|
#### Monitoring Integration
|
|
@@ -521,18 +563,18 @@ Send metrics to external monitoring systems:
|
|
|
521
563
|
|
|
522
564
|
```bash
|
|
523
565
|
# Export to Prometheus
|
|
524
|
-
npx
|
|
566
|
+
npx ruflo@alpha truth --format json | \
|
|
525
567
|
curl -X POST https://pushgateway.example.com/metrics/job/claude-flow \
|
|
526
568
|
-d @-
|
|
527
569
|
|
|
528
570
|
# Send to DataDog
|
|
529
|
-
npx
|
|
571
|
+
npx ruflo@alpha verify report --format json | \
|
|
530
572
|
curl -X POST "https://api.datadoghq.com/api/v1/series?api_key=${DD_API_KEY}" \
|
|
531
573
|
-H "Content-Type: application/json" \
|
|
532
574
|
-d @-
|
|
533
575
|
|
|
534
576
|
# Custom webhook
|
|
535
|
-
npx
|
|
577
|
+
npx ruflo@alpha truth --format json | \
|
|
536
578
|
curl -X POST https://metrics.example.com/api/truth \
|
|
537
579
|
-H "Content-Type: application/json" \
|
|
538
580
|
-d @-
|
|
@@ -544,16 +586,16 @@ Automatically verify before commits:
|
|
|
544
586
|
|
|
545
587
|
```bash
|
|
546
588
|
# Install pre-commit hook
|
|
547
|
-
npx
|
|
589
|
+
npx ruflo@alpha verify install-hook --pre-commit
|
|
548
590
|
|
|
549
591
|
# .git/hooks/pre-commit example:
|
|
550
592
|
#!/bin/bash
|
|
551
|
-
npx
|
|
593
|
+
npx ruflo@alpha verify check --threshold 0.95 --json > /tmp/verify.json
|
|
552
594
|
|
|
553
595
|
score=$(jq '.overallScore' /tmp/verify.json)
|
|
554
596
|
if (( $(echo "$score < 0.95" | bc -l) )); then
|
|
555
597
|
echo "❌ Verification failed with score: $score"
|
|
556
|
-
echo "Run 'npx
|
|
598
|
+
echo "Run 'npx ruflo@alpha verify check --verbose' for details"
|
|
557
599
|
exit 1
|
|
558
600
|
fi
|
|
559
601
|
|
|
@@ -585,13 +627,13 @@ echo "✅ Verification passed with score: $score"
|
|
|
585
627
|
**Low Truth Scores:**
|
|
586
628
|
```bash
|
|
587
629
|
# Get detailed breakdown
|
|
588
|
-
npx
|
|
630
|
+
npx ruflo@alpha truth --verbose --threshold 0.0
|
|
589
631
|
|
|
590
632
|
# Check specific criteria
|
|
591
|
-
npx
|
|
633
|
+
npx ruflo@alpha verify check --verbose
|
|
592
634
|
|
|
593
635
|
# View agent-specific issues
|
|
594
|
-
npx
|
|
636
|
+
npx ruflo@alpha truth --agent <agent-name> --format json
|
|
595
637
|
```
|
|
596
638
|
|
|
597
639
|
**Rollback Failures:**
|
|
@@ -600,7 +642,7 @@ npx claude-flow@alpha truth --agent <agent-name> --format json
|
|
|
600
642
|
git status
|
|
601
643
|
|
|
602
644
|
# View rollback history
|
|
603
|
-
npx
|
|
645
|
+
npx ruflo@alpha verify rollback --history
|
|
604
646
|
|
|
605
647
|
# Manual rollback
|
|
606
648
|
git reset --hard HEAD~1
|
|
@@ -609,10 +651,10 @@ git reset --hard HEAD~1
|
|
|
609
651
|
**Verification Timeouts:**
|
|
610
652
|
```bash
|
|
611
653
|
# Increase timeout
|
|
612
|
-
npx
|
|
654
|
+
npx ruflo@alpha verify check --timeout 60s
|
|
613
655
|
|
|
614
656
|
# Verify in batches
|
|
615
|
-
npx
|
|
657
|
+
npx ruflo@alpha verify batch --batch-size 10
|
|
616
658
|
```
|
|
617
659
|
|
|
618
660
|
### Exit Codes
|
|
@@ -625,10 +667,10 @@ Verification commands return standard exit codes:
|
|
|
625
667
|
|
|
626
668
|
### Related Commands
|
|
627
669
|
|
|
628
|
-
- `npx
|
|
629
|
-
- `npx
|
|
630
|
-
- `npx
|
|
631
|
-
- `npx
|
|
670
|
+
- `npx ruflo@alpha pair` - Collaborative development with verification
|
|
671
|
+
- `npx ruflo@alpha train` - Training with verification feedback
|
|
672
|
+
- `npx ruflo@alpha swarm` - Multi-agent coordination with quality checks
|
|
673
|
+
- `npx ruflo@alpha report` - Generate comprehensive project reports
|
|
632
674
|
|
|
633
675
|
### Best Practices
|
|
634
676
|
|