From fba59e91c477d86f202e0373eaa31ed8d95b2bb6 Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 12 Aug 2025 19:42:08 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/.claude/commands/verify/README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/task-1755027646.json | 1 + .claude/commands/verify/README.md | 128 +++++++++++++++++++++++ 2 files changed, 129 insertions(+) create mode 100644 .claude/checkpoints/task-1755027646.json create mode 100644 .claude/commands/verify/README.md diff --git a/.claude/checkpoints/task-1755027646.json b/.claude/checkpoints/task-1755027646.json new file mode 100644 index 0000000000..1336c09fb1 --- /dev/null +++ b/.claude/checkpoints/task-1755027646.json @@ -0,0 +1 @@ +{"checkpoint": "task-20250812-194045", "task": "review ./claude/commands and create an missing subfolders and files based on new capabilties. 🔍 ", "timestamp": "2025-08-12T19:40:46Z", "commit": "773e646f7b0f5ac61cdee08b9310e783d6d32322", "github_release": "true"} diff --git a/.claude/commands/verify/README.md b/.claude/commands/verify/README.md new file mode 100644 index 0000000000..097ff3eb3e --- /dev/null +++ b/.claude/commands/verify/README.md @@ -0,0 +1,128 @@ +# 🔍 Verification Commands + +Truth verification system for ensuring code quality and correctness with a 0.95 accuracy threshold. + +## Overview + +The verification system provides real-time truth checking and validation for all agent tasks, ensuring high-quality outputs and automatic rollback on failures. + +## Subcommands + +### `verify check` +Run verification checks on current code or agent outputs. + +```bash +claude-flow verify check --file src/app.js +claude-flow verify check --task "task-123" +claude-flow verify check --threshold 0.98 +``` + +### `verify rollback` +Automatically rollback changes that fail verification. + +```bash +claude-flow verify rollback --to-commit abc123 +claude-flow verify rollback --last-good +claude-flow verify rollback --interactive +``` + +### `verify report` +Generate verification reports and metrics. + +```bash +claude-flow verify report --format json +claude-flow verify report --export metrics.html +claude-flow verify report --period 7d +``` + +### `verify dashboard` +Launch interactive verification dashboard. + +```bash +claude-flow verify dashboard +claude-flow verify dashboard --port 3000 +claude-flow verify dashboard --export +``` + +## Configuration + +Default threshold: **0.95** (95% accuracy required) + +Configure in `.claude-flow/config.json`: +```json +{ + "verification": { + "threshold": 0.95, + "autoRollback": true, + "gitIntegration": true, + "hooks": { + "preCommit": true, + "preTask": true, + "postEdit": true + } + } +} +``` + +## Integration + +### With Swarm Commands +```bash +claude-flow swarm --verify --threshold 0.98 +claude-flow hive-mind --verify +``` + +### With Training Pipeline +```bash +claude-flow train --verify --rollback-on-fail +``` + +### With Pair Programming +```bash +claude-flow pair --verify --real-time +``` + +## Metrics + +- **Truth Score**: 0.0 to 1.0 (higher is better) +- **Confidence Level**: Statistical confidence in verification +- **Rollback Rate**: Percentage of changes rolled back +- **Quality Improvement**: Trend over time + +## Examples + +### Basic Verification +```bash +# Verify current directory +claude-flow verify check + +# Verify with custom threshold +claude-flow verify check --threshold 0.99 + +# Verify and auto-fix +claude-flow verify check --auto-fix +``` + +### Advanced Workflows +```bash +# Continuous verification during development +claude-flow verify watch --directory src/ + +# Batch verification +claude-flow verify batch --files "*.js" --parallel + +# Integration testing +claude-flow verify integration --test-suite full +``` + +## Performance + +- Verification latency: <100ms for most checks +- Rollback time: <1s for git-based rollback +- Dashboard refresh: Real-time via WebSocket + +## Related Commands + +- `truth` - View truth scores and metrics +- `pair` - Collaborative development with verification +- `train` - Training with verification feedback \ No newline at end of file