Commit Graph

5 Commits

Author SHA1 Message Date
ruvnet e332689b8c fix(release): harden hooks, statusline, security, and plugin MCP integration 2026-07-16 23:06:29 -04:00
Reuven 76bd35943a feat: ADR-103 witness temporal history + plugin-distributed toolkit (#1868)
Closes the gap that ADR-102 left open: snapshot-only manifests can't
answer "when did this fix regress?" Adds a JSONL temporal log + extracts
the witness toolkit into ruflo-core as an optional plugin asset that
any project can adopt — not just ruflo's own monorepo.

What's new
──────────

1. verification-history.jsonl — one append-only line per regen with
   { commit, issuedAt, manifestHash, summary, fixes: { id: {sha256,
   markerVerified} } }. Format choices: JSONL for cheap appends and
   minimal git diffs; per-fix object for O(1) lookup.

2. plugins/ruflo-core/scripts/witness/ — project-agnostic toolkit
   - lib.mjs       shared regen + history primitives
   - init.mjs      bootstrap empty manifest into any repo
   - regen.mjs     sign + append history
   - verify.mjs    validate signature + markers (no ruflo CLI dep)
   - history.mjs   query temporal log (summary, regressions, timeline)

3. plugins/ruflo-core/{skills,commands,agents}/witness*
   Slash command + skill doc + curator agent — Claude Code surface area.

4. scripts/regen-witness.mjs — thin wrapper, delegates to plugin lib.
   Reads project-specific NEW_FIXES from a committed witness-fixes.json
   instead of inline literals. Single source of truth in the plugin.

5. .github/workflows/v3-ci.yml — witness-verify job gains a follow-on
   `history.mjs summary` step that surfaces transitions since the last
   snapshot (newly regressed / passing / added / removed fixes).

Empirically verified
────────────────────

Before refactor:  81/81 verified, 1 history entry
After refactor:   81/81 verified, 1 history entry, signature reproducible
                  signature, marker, sha256 all match across the move.

Plugin scripts run standalone without ruflo CLI installed — only
@noble/ed25519 required. Adopters get full witness capability by
copying plugins/ruflo-core/scripts/witness/ into their repo.

Refs #1868 — implementation issue
ADR-103 — design + rationale + residual risk

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-08 21:03:31 -04:00
rUv 47704f83d8 fix(agents): coder agents now read docs/adr/*.md alongside docs/SPEC.md (#1749) (#1752)
* fix(agents): coder agents now read docs/adr/*.md alongside docs/SPEC.md (#1749)

Issue #1749 (Coder agents ignore ADRs and only reference docs/SPEC.md)
documents real architectural drift in spec-driven workflows: the
Architect agent generates ADRs under docs/adr/, then Backend / Frontend
coders are spawned and only consult docs/SPEC.md, ignoring the ADRs
entirely. Code ends up out of sync with the architectural contract.

This change updates three coder agent definitions to declare ADRs as
authoritative inputs alongside SPEC.md:

- .claude/agents/core/coder.md (the Task-tool default `coder` subagent)
- .claude/agents/templates/implementer-sparc-coder.md (SPARC Refinement
  / Completion phase coder template)
- plugins/ruflo-core/agents/coder.md (the plugin form)

Each now contains an "Authoritative project documents" section that:

1. Mandates reading docs/SPEC.md AND docs/adr/*.md before
   architecture/scope-affecting work
2. States the contract explicitly: SPEC describes WHAT, ADRs describe
   HOW. ADRs are *binding* unless superseded by a newer Accepted ADR.
3. Calls out the multi-agent case explicitly: ADRs are the cross-agent
   contract that prevents bounded-context drift between parallel
   backend / frontend / tester implementations.
4. Tells coders that on conflict, they MUST surface it (propose either
   following the ADR or drafting a successor) rather than silently
   diverging.

No code generation behavior change — only the prompts spawned coder
agents see. Closes #1749.

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

* fix(agents): also wire ADR-awareness into sparc-coder template + ruflo-core/agents/coder.md (#1749)

Companion to the previous commit on this branch. The first commit only
landed for .claude/agents/core/coder.md because the Edit tool requires
Read first for the other two files. This commit adds the same
"Authoritative project documents" section to:

- .claude/agents/templates/implementer-sparc-coder.md (SPARC coder)
- plugins/ruflo-core/agents/coder.md (plugin form)

Closes #1749 — all three coder agent variants now mandate reading
docs/adr/*.md alongside docs/SPEC.md.

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

---------

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-05-05 09:46:31 -04:00
Reuven f25bcf2073 feat: add 10 new ruflo plugins, optimize all 32, add READMEs and user guide
New plugins: ruflo-adr (ADR lifecycle), ruflo-ddd (domain-driven design),
ruflo-sparc (SPARC methodology), ruflo-neural-trader (trading strategies),
ruflo-ruvector (vector embeddings), ruflo-knowledge-graph (entity graphs),
ruflo-market-data (OHLCV ingestion), ruflo-migrations (schema management),
ruflo-observability (logging/tracing), ruflo-cost-tracker (token budgets).

Optimizations across all 32 plugins:
- All pass `claude plugin validate` (removed invalid manifest arrays)
- 51/51 skills have argument-hint frontmatter
- Model routing: 4 haiku, 24 sonnet, 2 opus (cost-optimized)
- Neural learning hooks on 25/30 agents
- Cross-references between 6 related plugin pairs
- Pathfinder graph traversal algo for researcher agent
- READMEs for all 32 plugins + plugins/README.md catalog
- discover-plugins skill updated with full 32-plugin catalog

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 23:46:54 -04:00
Reuven 81418649c6 feat: add 19 Claude Code native plugins with 64 skills, 25 commands, 21 agents
Complete plugin marketplace for Ruflo with validated Claude Code plugin format:

- ruflo-core: MCP server, status, doctor, plugin discovery
- ruflo-swarm: swarm coordination, Monitor, worktree isolation
- ruflo-autopilot: autonomous /loop completion with learning
- ruflo-intelligence: SONA neural patterns, trajectory learning, routing
- ruflo-agentdb: AgentDB controllers, HNSW vector search, RuVector
- ruflo-aidefence: AI safety scanning, PII detection, prompt defense
- ruflo-browser: Playwright browser automation, testing, scraping
- ruflo-jujutsu: git diff analysis, risk scoring, reviewer recs
- ruflo-wasm: sandboxed WASM agents and gallery sharing
- ruflo-workflows: workflow templates, orchestration, lifecycle
- ruflo-daa: Dynamic Agentic Architecture, cognitive patterns
- ruflo-ruvllm: local LLM inference, MicroLoRA, SONA, chat format
- ruflo-rvf: RVF portable memory, session persistence, transfer
- ruflo-loop-workers: background /loop workers, CronCreate
- ruflo-security-audit: CVE scanning, dependency checks
- ruflo-rag-memory: simple store/search/recall interface
- ruflo-testgen: test gap detection, TDD workflow
- ruflo-docs: doc generation, drift detection
- ruflo-plugin-creator: scaffold, validate, publish new plugins

All 19 pass `claude plugin validate`. Skills auto-discovered from
directory structure (not declared in plugin.json). Each skill wires
to ruflo MCP tools via allowed-tools frontmatter.

Includes: marketplace.json, GitHub Pages storefront, CI validation
workflow, minimalist README with USERGUIDE split.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-27 23:07:33 -04:00