mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
fa4efccb0672f1da431a67ec9202544901eda97a
135
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
52327803a5 |
feat: ruflo phone — pair the RuFlo/Orca phone app with the CLI (opt-in @claude-flow/phone-host 1.0.0) (#5204)
* feat(cli): ruflo phone + phone_* MCP tools over the opt-in @claude-flow/phone-host `ruflo phone setup` installs @claude-flow/phone-host into ~/.ruflo/phone-host (RUFLO_PHONE_HOST_PREFIX, absolute only); it is never a dependency of the CLI. start | daemon start|stop|status | pair | devices | revoke | interfaces run the package bin with inherited stdio; argv is rebuilt from declared options and any other flag is refused. Without the package they point at `phone setup`, exit 1. MCP tools phone_status/setup/daemon/pair/devices/revoke import the package lazily, validate inputs at the boundary, and build results from field whitelists, so no pairing code, link or QR reaches tool output. phone_pair shows the QR in a window or file only. Init CLAUDE.md/AGENTS.md: "Phone (RuFlo / Orca app)" replaces the #5198 ruPro section; agents may now pair phones, including with full access. A subcommand's string --version no longer prints the CLI version. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(cli): phone — keep ^ through cmd.exe, refuse flags on bare 'phone daemon', looser device names Co-Authored-By: RuFlo <ruv@ruv.net> * fix(cli): phone_pair name defaults to "Phone"; tell the bin it runs as `ruflo phone` Co-Authored-By: RuFlo <ruv@ruv.net> * feat(phone-host): full access (terminals, agent tabs), workspace reads, project/workspace scope, orca links Co-Authored-By: RuFlo <ruv@ruv.net> * feat(phone-host): background daemon, agent-safe pairing (QR page), revoke closes terminals, RuFlo bundle ef1e43563, 1.0.0 Co-Authored-By: RuFlo <ruv@ruv.net> * feat(phone-host): print `ruflo phone` in hints when the ruflo CLI runs the bin Co-Authored-By: RuFlo <ruv@ruv.net> * ci(phone-host): own test job (Linux/macOS, Node 20/24); root vitest skips its node:test files Co-Authored-By: RuFlo <ruv@ruv.net> * fix(phone-host): open Codex tabs without the update screen Codex shows "update available" at start when a release is out; choosing update quits it and the phone's next message lands in the shell. Co-Authored-By: RuFlo <ruv@ruv.net> * test(phone-host): wait for pwd's output instead of assuming it came with echo's Co-Authored-By: RuFlo <ruv@ruv.net> * fix(phone-host): phone terminals don't inherit the starting agent's session When Claude Code (or Codex, or ruflo) starts the host, its session markers reached every phone terminal: the phone's Claude ran as a child of that session, with its session id, message socket and token, and transcript saving off. Those variables are now removed; user settings stay. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
87f612cef1 |
chore(release): 3.80.0 (#5056)
* chore(release): 3.80.0 (codex 3.0.9) Co-Authored-By: RuFlo <ruv@ruv.net> * fix(cli): bundled OpenRouter alternates are opt-in (#4957) #5038 loaded the bundled openrouter-alts.json for every npm install, which changes which OpenRouter models users are billed for. Its PR asked for a maintainer decision on that default. Until then, the bundled copy loads only with CLAUDE_FLOW_ROUTER_OPENROUTER_ALTS=bundled; npm installs keep the previous behaviour (no per-tier alternate). The file still ships. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(release): pin @metaharness/darwin ~0.16.0; codex VERSION 3.0.9 darwin 0.16.0 is npm latest (it fixes the 0.15.0 bug that could leave SIM journals unreadable), so the metaharness pin-drift gate flags ~0.14.0 as stale. Bump the CLI dependency, MH_DARWIN_PIN and the plugin helper pin. The pnpm lock entry is edited by hand to the 0.16.0 integrity; nothing else in the lock moves. codex's exported VERSION follows the 3.0.9 bump. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(ruflo-metaharness): 0.5.3 for the darwin ~0.16.0 helper pin Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
69e24c392e |
fix(security): prototype pollution in codex config.toml validator (#5051)
parseToml looked up section headers on a plain object, so a [__proto__] or [constructor] header in an untrusted config.toml resolved to a shared built-in and the following key = value lines were written onto it. Use null-prototype maps for the parsed data and its sections, check own properties only, and replace non-object values instead of writing onto them. Claude-Session: https://claude.ai/code/session_01MfPHVKgRKN2gU6psLP1NGd Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
ebeb58d8cf |
chore(codex): release 3.0.8 (single-source dual init #2638, registered tool names #3153); CLI and root pin 3.0.8
Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
4e249930fc |
chore(ruflo-console): 0.50.1 for the command catalog refresh
The command catalog copy changed (#2640 command renames + catch-up regeneration), so ruflo-console moves 0.50.0 -> 0.50.1 in plugin.json, hooks/version.ts, scripts/smoke.sh and the CHANGELOG. The catalog is regenerated on the merged tree (one entry changed by main) and copied to the console again. The single-host AGENTS.md snapshot follows main's #3153 change (#4918: registered MCP tool names); no other line differs. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
981adf7acf | Merge remote-tracking branch 'origin/main' into feat/2638-2640-init-single-source | ||
|
|
a4fab2b339 |
fix(codex): shared instructions use the codex CLI-invocation convention (#2638)
The Codex integration audit forbids `@claude-flow/cli@latest` anywhere in codex src. The shared-instructions module now takes the CLI prefix as a parameter: codex defaults to its generators' convention (`npx @claude-flow/cli`, unversioned, as AGENTS.md already uses), and the CLI passes its own `@latest` form, so the single-host CLAUDE.md is byte-identical (snapshots unchanged). finalizeDualInstructions checks AGENTS.md for the codex form. Both copies of the module stay byte-identical. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
36188f602c |
feat(init): dual init uses AGENTS.md as the single instruction source (#2638)
`ruflo init --dual` (and `@claude-flow/codex init --dual`) wrote two divergent instruction files. Now AGENTS.md carries the shared sections once plus the Codex-only ones, and CLAUDE.md is Claude Code's `@AGENTS.md` import plus only the Claude-specific sections. - codex/src/generators/shared-instructions.ts: the shared sections (rules, swarm routing, memory & learning, agents, build & test, CLI reference). The CLI keeps a byte-identical mirror (a test compares the files) because it resolves @claude-flow/codex from the registry at the pinned version. - claudemd-generator.ts builds its shared sections from that module; single-host output is byte-identical (snapshot recorded on origin/main). New generateDualClaudeMd keeps only Claude-only sections + template extras. - Existing CLAUDE.md is only replaced when missing, generated by init and unedited, or under --force (backed up); otherwise kept with migration steps. - After the Codex pass, finalizeDualInstructions keeps the import only if AGENTS.md carries every shared section verbatim; else the full CLAUDE.md is written back, so an older codex adapter cannot lose content. - commands/init.ts (outside the lane's file list): pass instructionsSource and dual to the two passes, run the finalize step, never pass --dual to a fetched adapter of unknown version. Fixes #2638 Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
836e890279 |
fix(codex): name only registered MCP tools in generated AGENTS.md (#3153)
The default/full/enterprise AGENTS.md templates told agents to call `task_orchestrate` and `benchmark_run`, neither of which is a registered MCP tool. Replace them with registered tools whose schemas match the examples: `task_create` (assign/track work), `coordination_orchestrate` (task coordination), `performance_benchmark` (benchmarks). Add a CLI test that renders every AGENTS.md and CLAUDE.md template, extracts every backticked snake_case tool-like name (bare or call form, hyphens allowed), and checks each against listMCPTools(). Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
1228287f96 |
fix: move @claude-flow/shared to its own PR; codex VERSION 3.0.7; floor tests survive the root ratchet
- @claude-flow/shared is a registry-resolved leaf of the cli (audit-leaf-package-publish): a shared version bump has to land in the same PR as the cli's pin, which belongs to the release lane. Its zod 4 port moves to a separate PR, and this one leaves shared exactly as on main. - codex exports VERSION; it now matches package.json 3.0.7 (audit-codex-integration). - The repo-root test ratchet runs the v3 plugin tests against the root install, which hoists zod 3. The floor tests now assert the declared range statically, and run their runtime checks only when the resolved zod satisfies it, so they still fail on main's source (both checks red) and skip, rather than test the wrong library, under the root install. Co-Authored-By: claude-flow <ruv@ruv.net> |
||
|
|
f3a5d14414 |
docs(readme): ADR-356 quickstarts for the 18 published packages in this batch
Each README gets the package's one job in its first paragraph, supported environments, a quickstart whose expected output was captured by running it against a freshly installed `npm pack` tarball, a link to the related package, and the ruv.io footer. Packages above 1,000 downloads a month (shared, hooks, mcp, codex, gastown-bridge, hyperbolic-reasoning, perf-optimizer) get an animated SVG of their data flow (CSS keyframes, no scripts, reduced-motion aware). perf-optimizer's README named a package that does not exist on npm (@claude-flow/plugin-performance-optimizer); it now names @claude-flow/plugin-perf-optimizer. Co-Authored-By: claude-flow <ruv@ruv.net> |
||
|
|
ab18c33548 |
fix(deps): zod ^4.6.7 floor, integration agentic-flow ^2.0.14, mcp/codex/shared advisory floors
zod (GHSA-mrhx-c7xc-m3w5): shared, claims, the twelve v3 plugins,
ruvector-upstream, plugins/ruflo-{arena,ai-team,chatgpt-federation,x-gateway}
and goal_ui move to zod ^4.6.7. hooks declared zod but never imported it, so
the dependency is dropped.
gastown-bridge drops uuid/@types/uuid (GHSA-w5hq-g745-h8pq).
integration: peer agentic-flow ^2.0.0-alpha -> ^2.0.14 || ^3.0.0
(GHSA-vcv2-r9jh-99m5). The repo source already matched the published 3.0.2,
so this ships as 3.0.3. A patched agentic-flow leaves a ReasoningBank timer
alive, which made plugins/ruflo-cost-tracker/scripts/compact.mjs print its
result and never exit; compact.mjs now exits after stdout drains, guarded by
scripts/smoke-compact-exit.mjs (hangs on main, passes here) in
cost-tracker-smoke.
Stale ranges outside the cli: mcp ws ^8.21.0 (GHSA-96hv-2xvq-fx4p), express
^4.22.3 (GHSA-qw6h-vgh9-j6wx), ajv ^8.20.0 (GHSA-2g4f-4pwh-qvx6); codex yaml
^2.8.3 (GHSA-48c2-rrv3-qjmp); shared express ^4.22.3 || ^5.1.0. Each package
gets an advisory-ranges test over its own manifest.
ADR-356 metadata on every published manifest: homepage https://ruv.io,
canonical repository with directory, bugs, 8-20 keywords, description
<= 200 characters.
Versions: shared 3.0.8, hooks 3.0.3, claims 3.0.1, integration 3.0.3,
mcp 3.1.7, codex 3.0.7, gastown-bridge 0.1.6, prime-radiant 0.1.7, other
v3 plugins one alpha up. Marketplace plugin.json bumps for the five changed
plugins. The cli, claude-flow and ruflo pins are left for the release lane.
Lockfiles: v3/pnpm-lock.yaml drops the agentic-flow@2.0.0-alpha tree;
standalone plugin locks were regenerated with npm 11 (npm 10 crashed on a
stale optional peer in four of them).
Co-Authored-By: claude-flow <ruv@ruv.net>
|
||
|
|
29b327ee5f |
feat(cli,codex): ecosystem integrations + skills; darwin ^0.13.0, ruvllm ^4.1.0; release 3.72.1 (#4838)
* feat(cli,codex): wire ecosystem packages into real code paths + ecosystem skills
Every integration here has a reachable path (optional dep or lazy import,
graceful fallback) and a test that drives the real package.
- @ruvector/learning-wasm 0.1.29 (new optional dep): it was imported by
ruvector-training.ts, neural.ts and ruvector/index.ts but never declared,
so MicroLoRA always ran on the JS fallback. Now initializeTraining()
reports backend 'wasm'; `neural benchmark` measures ~2 us/adaptation at
256-dim. The benchmark's attention section (broken against
@ruvector/attention 2.x) no longer aborts the MicroLoRA numbers.
- ruvector ^0.2.27 -> ^0.3.11. ruvector 0.3 ships @ruvector/mincut-wasm and
its DynamicMinCut wrapper. New ruvector/mincut-bridge.ts folds duplicate and
reversed edges (the solver rejects them) and backs:
- agentdb_graph-pathfinder `dynamic-mincut`, previously a k-hop stub: exact
min cut of the seed's depth-hop neighbourhood, returns the seed's side
plus cut metadata (cutValue, cutEdges, backend). JS Stoer-Wagner
fallback for neighbourhoods <= 300 nodes.
- graph-analyzer loadRuVector(), which probed a nonexistent
ruvector.hooks_graph_mincut and @ruvector/wasm GraphAnalyzer. Measured
187 ms vs 6 s (JS) at 1,000 nodes, same cut value.
spectral-sparsify / connected-component-churn stay k-hop approximations
and now say so in the response (`implementation`).
- @ruvector/rabitq-wasm 0.1.0 -> 0.1.2: ruvector 0.3.11 declares an optional
peer >=0.1.1, and npm raises ERESOLVE against an exact 0.1.0 pin. Same API.
- agent-booster ^0.2.2 (new optional dep) backs a new hooks_fast-apply MCP
tool: merges a code snippet into a file or string (~ms, no LLM), with
project-root and symlink containment, dryRun and minConfidence. ADR-143
is respected: it is an applier for caller-supplied snippets, not a Tier-1
intent engine. The appliance bridge's tier-1 hint, labelled
'agent-booster' while being two regexes, is now labelled 'codemod' and
points at hooks_codemod. Path-containment helpers move from hooks-tools.ts
to realpath-containment.ts so both tools share them.
- ast-analyzer / diff-classifier / coverage-router imported @ruvector/ast,
@ruvector/diff, @ruvector/coverage, which were never published (npm 404).
ruvector 0.3's ASTParser needs native tree-sitter and is async-only;
parseDiff / parseIstanbulCoverage are plain JS equivalent to the local
parsers. The phantom imports are removed rather than swapped for a no-op hop.
- Skills: six new Claude Code skills (vector-quantization, graph-mincut,
sublinear-solver, injection-defense, fast-code-edits, lora-learning) in a
new SKILLS_MAP.ecosystem group, installed by default `ruflo init`
(`init skills --ecosystem`), and the Codex equivalents bundled in
@claude-flow/codex .agents/skills (built-in, installed by --full).
@claude-flow/codex 3.0.5 -> 3.0.6.
- no-cli-optdep-bloat-2561 guard: CLI_MAX 13 -> 17 and learning-wasm off the
FORBIDDEN list, with cold-install measurements (learning-wasm 0.38 s / 1
pkg / 104K; agent-booster 0.98 s / 67 pkgs / 5.8M).
Evaluated and not wired: sublinear-time-solver as a PPR accelerator (its
computePageRank took 1.2 s at 500 nodes and 68 s at 2,000, vs ms for the
built-in power iteration; 184 deps / 123 MB), strange-loops (pulls the same
tree), @ruvector/kge, @ruvector/cnn, @ruvector/rvlite, @ruvector/graph-wasm,
@ruvector/emergent-time, agentic-jujutsu, @ruvector/pi-brain (no existing
caller doing the job badly); @ruvector/diskann (see the memory PR).
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(deps): bound @ruvector/ruvllm away from the broken 4.0.x; ruvector override to ^0.3.11
@ruvector/ruvllm 4.0.0/4.0.1 were published from the wrong repository: an
ESM-only GPU-loop harness with no main entry and none of SonaCoordinator,
ContrastiveTrainer, TrainingPipeline or LoraAdapter. The open `>=2.6.0`
ranges in the root and ruflo overrides and the v3 pnpm.overrides let it
resolve, and every createRequire('@ruvector/ruvllm') caller (intelligence.ts,
sona-optimizer.ts, native-training.ts) then fell back to JS silently.
- root/ruflo overrides, v3 pnpm.overrides, providers peer:
`>=2.6.0 <4.0.0 || ^4.1.0` (2.6-3.x all export the four classes; 4.1.0 is
the restored runtime). Narrow to ^4.1.0 once it is on the registry.
- root/ruflo overrides: ruvector ^0.2.41 -> ^0.3.11. agentdb 3.3.0 itself
depends on ruvector ^0.3.5 and the CLI now on ^0.3.11, so the old override
forced both below their own ranges inside this repo's tree.
- ruflo overrides: agentdb `>=3.3.0` -> `^3.3.0`, agentic-flow `>=2.0.14` ->
`^2.0.14 || ^3.0.0` (no open-ended ecosystem ranges).
- providers/src/__tests__/ruvllm-runtime-contract.test.ts loads the installed
package through createRequire, asserts the four classes, constructs a
SonaCoordinator the way the CLI does, and checks the resolved version is in
range. Against 4.0.1, require() itself fails (no CJS entry).
Co-Authored-By: claude-flow <ruv@ruv.net>
* test: run ecosystem and ruvllm contract tests where the packages are installed
ci.yml's repo-root npm layout does not install the CLI's optional
dependencies, so those blocks skip there; the pnpm workspace that Test V3
Packages uses installs every one of them, so they run. The probe walks
node_modules only up to the repository root. A @ruvector/ruvllm that is
installed but does not load through require() still fails, and says which
copy and why.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(umbrella): claude-flow carries the CLI's new optional deps; rabitq-wasm 0.1.2
The claude-flow umbrella ships the CLI dist with its own dependency list.
With @ruvector/rabitq-wasm pinned at 0.1.0, npm could not hoist ruvector 0.3
(optional peer rabitq-wasm >=0.1.1) and nested it under agentdb/agentic-flow,
so the umbrella's copy of the CLI could not import('ruvector') and the mincut
path was dead there. rabitq-wasm -> 0.1.2 (same API) puts ruvector back at
the top level; ruvector ^0.3.11, @ruvector/learning-wasm 0.1.29 and
agent-booster ^0.2.2 join the umbrella's optionalDependencies so the WASM
MicroLoRA, min-cut and fast-apply paths are reachable from npx claude-flow too.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(security): @metaharness/darwin ^0.13.0 (GHSA-mjwg-5fm3-fx2p), metaharness ^0.4.20
@metaharness/darwin 0.13.0 fixes a high-severity sandbox bypass
(GHSA-mjwg-5fm3-fx2p); the CLI's `~0.12.0` could never resolve it.
- cli optionalDependencies @metaharness/darwin ~0.12.0 -> ^0.13.0; peer
metaharness ^0.4.1 -> ^0.4.20
- distill-oracle MH_DARWIN_PIN 0.12.0 -> 0.13.0 (npx tier-1 oracle calls)
- ruflo-metaharness helper pins: _darwin.mjs ~0.12.0 -> ~0.13.0,
_harness.mjs ~0.4.1 -> ~0.4.20 (tilde, as check-metaharness-pins requires);
plugin 0.4.0 -> 0.4.1
Checked against 0.13.0 before bumping (0.x minor): same exports
(., ./contrastive, ./gepa), same metaharness-darwin verbs ruflo surfaces
(evolve, evolve-numeric, bench create|verify, security bench), and the gepa
library calls (loadCand6Genome, validateGenome, buildSystemFromGenome)
return identical results to 0.12.0. Tier-2 evolution now runs in an isolated
child process upstream; ruflo already drives darwin as a subprocess. Note:
0.13.0 adds one runtime dependency (@babel/parser), where 0.12 had none.
check-metaharness-pins, metaharness-clean-install-test and the CLI's
metaharness/distill/darwin tests (80) pass.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(deps): @ruvector/ruvllm ^4.1.0 now that the restored runtime is published
4.1.0 is the dual CJS/ESM runtime again. Root and ruflo overrides, v3
pnpm.overrides and the providers peer move from `>=2.6.0 <4.0.0 || ^4.1.0`
to `^4.1.0`; both lockfiles now resolve 4.1.0. The contract test requires
>=4.1 <5 and passed against 4.1.0 (SonaCoordinator, ContrastiveTrainer,
TrainingPipeline, LoraAdapter, DEFAULT_SONA_CONFIG; SonaCoordinator
constructs), as did the CLI's neural-status/trajectory/learning tests.
Co-Authored-By: claude-flow <ruv@ruv.net>
* release: 3.72.1
@claude-flow/cli, claude-flow and ruflo 3.72.1 (ruflo pins cli 3.72.1),
carrying the ecosystem integrations, @claude-flow/memory 3.2.3, codex 3.0.6,
@ruvector/ruvllm ^4.1.0 and @metaharness/darwin ^0.13.0.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(metaharness): tilde-pin darwin ~0.13.0; smoke expects plugin 0.4.1
ruflo-metaharness smoke step 17z73 enforces tilde pins for @metaharness/*
(ADR-150 review: tilde stays on one minor). ~0.13.0 admits the same versions
as ^0.13.0 on a 0.x line and still resolves the GHSA-mjwg-5fm3-fx2p fix.
Smoke step 1 hard-codes the plugin version; it moves to 0.4.1 with the bump
that plugin-version-bump requires. smoke.sh: 128/128 locally.
Co-Authored-By: claude-flow <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
|
||
|
|
d8832d5512 |
fix(security): remove unused toml dependency with unpatched high-severity CVEs (#4357)
toml@3.0.0 was declared as a direct dependency in three manifests (root package.json, @claude-flow/cli, @claude-flow/codex) but never imported anywhere in the codebase — @iarna/toml is the TOML parser actually used (e.g. @claude-flow/codex/src/dual-mode/orchestrator.ts). Confirmed via a real consumer install (`npm install ruflo@3.59.8` in a scratch project) that toml reaches end users through this unused dependency, carrying two unpatched high-severity advisories with no non-breaking fix available: - GHSA-82x6-q7mm-w9cf (Uncontrolled Recursion) - GHSA-v5mp-jgw5-2x6j (Prototype Pollution via __proto__ key-path desynchronization) Since the dependency is dead weight, removing it is strictly safer than bumping to a breaking major version of a package nothing calls. Co-authored-by: r <r@x> |
||
|
|
f6aacd57ea |
feat(codex): inspect helper activity from an existing session (#3962)
* feat(codex): inspect helper activity from an existing session * fix(codex): keep the selected helper visible in small terminals * test(codex): address activity viewer review feedback |
||
|
|
617f1935fa |
docs(codex): fix stray npx invocation of @claude-flow/codex
The package.json bin for this CLI is registered as claude-flow-codex, but the package itself publishes under the scoped name @claude-flow/codex. Several usage examples told a reader to run 'npx claude-flow-codex ...', which resolves to a different (nonexistent) unscoped package rather than this one. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
366ff7a3fb |
chore(release): security 3.0.5 and codex 3.0.5 for #3503/#3522 (bundled leaves, standalone publish)
Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
dbdceb6184 |
fix(policy): keep unmetered worker ceilings opt-in
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> |
||
|
|
212e63ea22 |
Merge main into fix/codex-dual-safe-defaults; record the ADR-490 advisory as resolved
Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
f9e10b90f7 |
chore(codex): sync VERSION const with package.json 3.0.4 (audit-codex-integration)
Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
a6b563c60f |
fix(codex): safe default .codex/config.toml, explicit --codex-trust full opt-in
init, init --dual and @claude-flow/codex init wrote a gitignored .codex/config.toml with sandbox_mode = danger-full-access, approval_policy = never and web_search = live. Default is now standard trust (workspace-write, on-request, cached); the permissive file needs --codex-trust full (or RUFLO_CODEX_TRUST=full). init prints which level it wrote, an existing .codex/config.toml is never rewritten (not even with --force) and a kept permissive file is flagged. Unknown levels are rejected on the CLI and fall back to standard from the environment. Found by the three-host e2e run (ADR-490). @claude-flow/codex 3.0.4 (bundled: ships with the next train). Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
98f2eb5213 |
feat(e2e): three-host integration loop (Claude Code, Codex, OpenRouter); fix MCP resources capability and Codex plugin clone budget
ADR-490 (loop), ADR-491 (mods host integration, Proposed). The loop's first run found two defects, fixed test-first: - ruflo mcp start advertised resources but answered resources/* with -32601 (3 stdio servers). - init --dual's marketplace clone ran under a 20 s budget (17.5 s measured), swallowing the real error. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
35cf4a49ea |
release 3.49.0: bump train to 3.49.0, @claude-flow/security to 3.0.1
security 3.0.1 carries the #3568 policy-ledger truncation fix (bundled into the train and published standalone). codex's security pin relaxes to ^3.0.0 so the workspace keeps linking the local security package; codex source is unchanged. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
643f415db3 |
chore(release): point consumers at the stable internal leaves
All 18 internal @claude-flow/* leaves are now published at stable versions (3.0.0; cli-core 3.7.0; plugin-agent-federation and plugin-iot-cognitum 1.0.0). This moves every consumer onto them: - cli: exact pins to the stable leaves (deps + optionalDeps) - root package.json and codex: same - audit-leaf-package-publish: drop the shared waiver, now resolved - v3/.npmrc: prefer-workspace-packages=true. Without it pnpm replaced link:../cli with registry cli@3.47.1 (released from a branch not on main) and pulled its alpha cli-core/neural/memory deps into the lockfile. - both lockfiles regenerated; only @claude-flow entries change - CLAUDE.md: leaves follow the stable policy (embeddings excepted), the bundled four are dual-distributed, files allowlist / no publishConfig.tag rule, and the lockfile no longer proves a leaf was published Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
8ff8aeb4af | test: ensure worktree status blocks fsmonitor payload | ||
|
|
6250562c51 | security: route worktree git through safe runner | ||
|
|
1bd734e272 |
dream(security): #3102 bind ADR-377 caller-identity verification into live authorizeMcpTool chokepoint (evaluated, ACCEPT-with-caveats) (#3103)
* dream(security): #TBD bind ADR-377 caller-identity verification into live authorizeMcpTool chokepoint (evaluated, ACCEPT-with-caveats)
authorizeMcpTool() trusted the plain, unsigned CLAUDE_FLOW_PRINCIPAL_ID env
var as caller identity with zero verification (OWASP ASI07-class gap).
ADR-377 Phase 3 already implemented Ed25519 issueInvocationToken/
verifyInvocationToken but never wired it into a live dispatch path.
Binds the two: DualModeOrchestrator mints a per-worker signed
InvocationToken at spawn (worker-lifetime TTL, wildcard tool scope --
disclosed reduction from the primitive's original per-call design);
authorizeMcpTool verifies it before trusting identity, failing closed on
missing/forged/expired tokens. Off by default (CLAUDE_FLOW_MCP_CALLER_AUTH).
6 new deterministic Vitest scenarios plus an independent adversarial
critique (fresh session, verdict CONFIRMED-SAFE-WITH-CAVEATS) are recorded
in docs/dream-cycle/dream-gist-2026-08-26.md. Darwin skipped (scope
mismatch -- binary crypto gate, no tunable parameter space).
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_015bfVASxkNXKpZbMSLhVU1L
* fix(ci): register ADR-377 Phase 3 caller-identity env vars as known escape hatches
CLAUDE_FLOW_MCP_CALLER_PUBKEY and CLAUDE_FLOW_MCP_INVOCATION_TOKEN
(DualModeOrchestrator's per-worker Ed25519 credential pair, read by
resolveMcpCallerIdentity()) weren't registered in
audit-env-var-precedence.mjs's KNOWN_ESCAPE_HATCHES, so the audit flagged
CLAUDE_FLOW_MCP_CALLER_PUBKEY as a real violation (exit 1). Same no-CLI-flag
reasoning as the existing CLAUDE_FLOW_PRINCIPAL_ID entry: these are
credentials minted into a spawned worker's own environment, not a value
any caller should be able to select via a flag.
Verified: audit-env-var-precedence.mjs now exits 0. policy-runtime.test.ts
still 18/18.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01RYP825phHMjPRmmjkcAWpq
* fix(ci): regenerate root package-lock.json for codex's new @claude-flow/security dep
The CI Test Suite job runs plain `npm ci` at repo root (no v3 pnpm
install step), so it resolves workspace deps strictly from
package-lock.json — not from v3/pnpm-lock.yaml, which this PR had
already updated. codex/package.json's new @claude-flow/security
dependency was missing from package-lock.json's codex entry, so CI's
npm ci never linked it and every dual-mode test importing
orchestrator.ts failed with "Cannot find package '@claude-flow/security'".
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01RYP825phHMjPRmmjkcAWpq
* fix(ci): build @claude-flow/security before Test Suite runs it
Complements
|
||
|
|
370355015b |
fix(codex): close worker stdin so codex exec doesn't hang waiting for EOF (#2947) (#2997)
DualModeOrchestrator spawned both Claude and Codex workers with stdio: ['pipe', 'pipe', 'pipe'] but never wrote to or closed proc.stdin. Both platforms receive their prompt positionally/via flag, never over stdin — claude -p ignores the open pipe, but codex exec blocks in resolve_root_prompt waiting for stdin EOF that never arrives, hanging every real Codex worker until the orchestrator's own multi-minute timeout kills it. Close stdin immediately after spawn for both platforms. Regression test spawns a real child process standing in for codex exec (waits for stdin EOF before exiting) and asserts the worker completes well under a short configured timeout instead of failing via timeout. |
||
|
|
401e02d511 |
fix: complete reports and consistent initialization for v3.32.37 (#2851)
* fix(metaharness): preserve readiness verdict payloads * test(metaharness): cover blocked genome verdicts * fix(adr): parse bullet metadata and relationships (#2659) * fix(adr): align adr-create with AgentDB schema (#2651) * fix(adr): make index updates idempotent (#2660) * fix(memory): bound session-end graph consolidation (#2628) * fix(memory): align active row visibility (#2652) * fix(memory): honor database path during init * fix(hooks): keep all shim fallback tags aligned * fix(codex): omit unbacked full-template skills * fix(init): generate complete native dual projects * test(memory): isolate path and legacy-row regressions * chore(release): prepare v3.32.37 |
||
|
|
67ff9898c0 |
fix: resolve current runtime and verification defects for v3.32.36 (#2850)
* fix(cli): make runtime status and learning signals truthful * fix(metaharness): accept padded scan severities * fix(codex): make core hooks and status skill native * fix(security): make witness verification hermetic * fix(metrics): expose grounded learning outcomes * fix(hooks): deduplicate project and plugin events * fix(verification): preserve security audit payloads * fix(runtime): stabilize dual memory skills and MCP schemas * fix(cli): harden helper signing and reflexion health * test(release): align helper and container invariants * chore(release): prepare v3.32.36 * test(funnel): align gates with cold-start seed pool * fix(ci): document MCP environment precedence |
||
|
|
ddd27576cb |
fix(release): ship Capability Brain as a self-contained 3.32.30 train (#2829)
* fix(release): bundle policy and Codex runtimes * fix(release): verify self-contained three-package archives |
||
|
|
dbb1f1e1dd |
feat: capability brain and governed federation plane (#2825)
Adds the live Ruflo capability brain, governed federation and Cognitum product planes, source-bound concurrent harness contracts, ADRs 325-329, and the v3.32.28 guarded release train. |
||
|
|
495a451cf6 |
feat: add ADR-324 agentic policy engine (#2822)
* feat(memory): typed provenance in AgentDB (ADR-323) Corrects and implements the 2026-07-28 dream-cycle research proposal (PR #2804, closed as superseded) for typed memory provenance in AgentDB, addressing MemIR/MemSyco-Bench's "provenance-role collapse" and memory-induced sycophancy findings. The dream-cycle PR's proposed schema change targeted the wrong table (`vector_indexes`, which is per-namespace HNSW index metadata, not per-entry) and its filename collided with the already-merged `ADR-322-metaharness-flywheel-integration.md` (#2817) — both corrected here as ADR-323 against `memory_entries`, the real per-record table. - memory-initializer.ts: `provenance_type` column (user_claim | agent_output | system_observation | tool_result | unknown, default unknown) on `memory_entries`, migrated for existing DBs via `ensureSchemaColumns()`. `storeEntry()`/`searchEntries()` accept and validate `provenanceType`/`provenanceFilter`. - memory-bridge.ts: same wiring for the native better-sqlite3 AgentDB v3 path (`bridgeStoreEntry`/`bridgeSearchEntries`). - commands/memory.ts: `memory store --provenance <type>`, `memory search --provenance-filter <types>` (comma-separated, OR semantics). - mcp-tools/memory-tools.ts + cli-core/mcp-tools/memory-defs.ts: `memory_store`'s `provenance_type` param, `memory_search`'s `provenance_filter` param (kept in sync across both tool-def sets). Found and fixed during implementation: an initial design skipped the RaBitQ/HNSW acceleration paths entirely whenever a provenance filter was requested (neither carries provenance_type on their candidates). This reproducibly crashed the CLI process on exit (a libuv assertion on Windows) after printing correct results. Fixed by never skipping those paths — RaBitQ now fetches provenance_type in its existing per-candidate query, HNSW does one batched (namespace, key) lookup afterward — eliminating the crash across repeated runs. See ADR-323's "Implementation note" for detail. 7 new end-to-end tests (adr-323-memory-provenance.test.ts), including a repeated-run regression guard for the crash. Full existing memory suite re-verified with no regressions (one pre-existing, environment- specific #2558 test failure confirmed identical against unmodified main — better-sqlite3's native bridge is unavailable in this dev environment, unrelated to this change). Closes the follow-up from dream-cycle PR #2804 (closed as superseded). Co-Authored-By: claude-flow <ruv@ruv.net> * fix(memory): enforce provenance across retrieval paths * feat: add agentic policy engine * fix: align Codex MCP integration * fix: keep MetaHarness dependencies optional * fix: declare MetaHarness as optional peers * fix: sync workspace lockfile * fix: document policy tool selection guidance * test: cover governed in-process flywheel * ci: make MetaHarness absence drill deterministic |
||
|
|
a158418a8b |
chore(release): @claude-flow/codex 3.0.2 — ships #2801 plugin install
Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
a440546e3d |
fix(codex): install ruflo-core@ruflo plugin on init --codex/--dual (#2801)
Before this, `ruflo init --codex` / `--dual` set up AGENTS.md, skills, config, and the Ruflo MCP server — but never installed the ruflo-core plugin, so Codex got NO Ruflo lifecycle hooks (PreToolUse/PostToolUse/ PreCompact/Stop). Fix: new installRufloCorePlugin() mirrors registerMCPServer()'s proven detect-then-add pattern — idempotently `codex plugin marketplace add ruvnet/ruflo --ref main` + `codex plugin add ruflo-core@ruflo` at user scope (canonical upstream plugin, not a second project-local bundle, to avoid the #2640 double-firing class). Graceful degradation with a manual -install hint when the Codex CLI is absent or the add fails. Because Codex deliberately does NOT auto-trust command hooks, the initializer always emits a prominent ACTION REQUIRED message telling the user to open /hooks in a new Codex session and trust the ruflo-core definitions. Install state is reported as "installed, pending trust review" — never as hook-active. Build: @claude-flow/codex tsc clean. Closes: #2801. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
810b13dcd6 |
fix: tracker-sweep 2026-07-26 (v3.32.10) — 9 bugs + promo seed + follow-ups (#2788)
* fix: tracker sweep 2026-07-26 — 9 bug fixes + promo seed Closes: #2770 #2774 #2776 #2777 #2781 #2782 #2785 #2786 (Codex follow-up) Refs: #2775 (memory upsert semantics) - Statusline promo row blank on new installs — restored cold-start local seed pool that ADR-311 had emptied. Remote Cognitum-served pool (funnel.ruv.io/v1/messages) remains authoritative via eligibleMessagesFromPools (remote wins by id); seed only fills the ≤ 60s cold-start window before first successful remote fetch. - #2777 — ruflo init no longer imports the entire ruvnet/ruflo repo (97 MB, 384 SKILL.md) into .agents/skills/ruflo/. Materializes single platform SKILL.md; detects "bloated" prior install and re-materializes. - #2781 — ruflo-adr adr-index no longer silently drops ADR data: status regex accepts "- **Status**: proposed"; single-line and wrapped relation lines parse fully; CLI_CORE=1 warns and unifies namespace. - #2770 — Windows: browser-session MCP tools + two init execFileSync npx sites now set shell: process.platform === 'win32' so cmd.exe resolves npx.cmd. POSIX behavior unchanged. - #2782 — WorkerDaemon.saveState + autopilot-state.saveState + appendLog no longer race on shared .tmp filename; all three call writeFileAtomic (pid + timestamp + random-suffixed temp). - #2785 — ruflo hooks post-task accepts --task/-t and --store-results flags matching CLAUDE.md-documented usage; routing outcomes finally persist to the namespace hooks_metrics reads. - #2786 — AgentDB no longer silently fails to initialize under CLAUDE_FLOW_ENCRYPT_AT_REST=1. New getAgentDbPath() returns agentdb-memory.db in the same directory as memory.db, so the ControllerRegistry native better-sqlite3 opens a distinct file from the sql.js CRUD writer's encrypted memory.db. - #2776 — Statusline security STALE/IN_PROGRESS branches reachable via local overlay recomputing freshness on every render from .claude/security-scans/scan-*.json. Env: RUFLO_SCAN_STALE_HOURS (24), RUFLO_SCAN_PENDING_CAP_MIN (30). STALE renders dim gray. - #2774 — Codex MCP generator registers dedicated stdio server binary claude-flow-mcp instead of the management CLI ruflo mcp start that never answers initialize. All 7 wrong-command sites fixed (initializer.ts + 6 template sites in generators/config-toml.ts + 2 in migrations/index.ts + generators.test.ts:653 assertion). - #2775 — Memory store to existing key no longer dead-ends: bridgeStoreEntry uses INSERT ... ON CONFLICT with tombstone auto-resurrect; UNIQUE returns typed error instead of null (no more misleading demotion into #2735 guard); bridgeDeleteEntry runs wal_checkpoint(PASSIVE); CLI memory store --upsert default materialized locally (parser.applyDefaults bug). - Stale ruflo-rebrand assertion in codex/tests/generators.test.ts:192 updated Co-Authored-By: claude-flow → ruflo-bot. - #2786 fix-2/3 (hooks_metrics reads dead .claude-flow/memory/store.json; bridgeRecordFeedback calls non-existent agentdb API) — architectural rewire, needs separate PR. - #2775 defect #3 root cause (parser.ts applyDefaults doesn't apply subcommand-declared defaults) — flagged by agent, other subcommands affected too. - #2775 memory-tools.ts MCP tool schema still defaults upsert:false (parity fix flagged). Co-Authored-By: RuFlo <ruv@ruv.net> * fix(parser): applyDefaults now walks subcommand + command options (#2775 follow-up) Previously only `this.globalOptions` were walked. Any subcommand-declared `default: <value>` silently dropped and the action handler received `undefined`. The immediate victim was `memory store --upsert` (per #2775), but the bug is generic — every subcommand that relies on a per-flag default was affected. Fix: applyDefaults now accepts optional command + subcommand, walks all three layers narrow-to-broad (subcommand > command > global), and the first layer to supply a value wins (because it only writes when the flag is `undefined`, so earlier writers stick). Parser tests: 52/52 pass. Build: tsc exit 0. Refs: #2775 (root cause behind the CLI --upsert workaround already in `commands/memory.ts`; the workaround is now redundant but harmless). Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mcp): memory_store defaults upsert=true for CLI parity (#2775 follow-up) The CLI `memory store` command defaults `--upsert=true` (issue #2594, fix |
||
|
|
8f88e6af85 | fix(codex): preserve annotated startup timeouts | ||
|
|
d20f1323b1 | fix(codex): ship stable Windows-safe Ruflo integration | ||
|
|
dc625e8a99 |
feat(init): auto-detect OpenAI Codex CLI and configure its MCP server + skills (#2667)
`ruflo init` only wired up Codex support (AGENTS.md, .agents/, MCP
registration) behind the explicit --codex/--dual flags. A developer with
both `claude` and `codex` on PATH got nothing for Codex from a plain
`ruflo init` unless they already knew the flag existed.
- commands/init.ts: new maybeAutoDetectCodex(), called after a normal
(non---codex/--dual) init succeeds. Silently no-ops if `codex` isn't on
PATH (reusing services/harness-hosts.ts's commandExists detection
convention rather than a fourth ad hoc `which codex` check) or if
@claude-flow/codex isn't installed (prints one hint line). Never fails
the primary init. New --no-codex-detect opt-out; skipped under
--skip-claude and --format json.
- Extracted the three-strategy @claude-flow/codex dynamic-import
resolution (direct import / project node_modules / global node_modules)
out of initCodexAction into a shared resolveCodexInitializer() so both
the explicit-flag and auto-detect paths stay in sync.
- codex/src/initializer.ts: registerMCPServer()'s "already registered"
check now parses `codex mcp list --json` (each entry has a `name`
field — confirmed against OpenAI's current docs) instead of substring
-matching the human-readable table, which false-positived on any
unrelated server whose name/command merely contained "ruflo" and broke
silently on table-format drift. Falls back to the old text check for
older Codex CLI versions without --json support.
- ADR-080 documents the decision, including live verification against
developers.openai.com/codex/{mcp,skills} that the rest of the package's
Codex integration (config.toml [mcp_servers], .agents/skills/ scanning,
AGENTS.md) was already current and did not need revision.
|
||
|
|
402b701a9d |
fix(security): ADR-165 Phase 1 — close 5 critical CVEs + refresh registry + audit CI gate (#2508)
* fix(security): ADR-165 Phase 1 — close all critical CVEs, refresh registry, add CI gate Closes ADR-165 Phase 1. Both workspaces pass `npm audit --audit-level=critical`. ## Before (2026-06-29) | Workspace | Critical | High | Moderate | Total | |-----------|----------|------|----------|-------| | Root | **1** | 6 | 31 | 38 | | v3 | **4** | 33 | 57 | 97 | ## After | Workspace | Critical | High | Moderate | Total | |-----------|----------|------|----------|-------| | Root | **0** | 0 | 31 | 31 | | v3 | **0** | 27 | 58 | 88 | All 5 critical advisories closed (vitest GHSA-5xrq, handlebars prototype-pollution, protobufjs constructor-pollution, plus 2 more in v3). 12 of 39 high advisories closed via overrides; the remaining 27 v3 highs are deeper transitive chains that would require breaking-change major bumps — flagged for ADR-165 Phase 2. ## Changes ### Root workspace overrides (package.json) - `vitest`: `^1.0.0` → `^3.2.6` (closes critical GHSA-5xrq CVSS 9.8) - `hono`: `>=4.11.4` → `>=4.12.25` (closes 6 hono advisories) - `undici`: `>=7.18.0` → `>=8.5.0` (closes 7 undici advisories — bumps the stale pin that ADR-165 flagged as still-in-vulnerable-range) - `vite`: `>=6.4.6` → `>=8.0.16` (closes 2 vite advisories) - NEW `@grpc/grpc-js`: `>=1.14.4` - NEW `form-data`: `>=4.0.6` - NEW `http-proxy-middleware`: `>=3.0.7` - `@hono/node-server`: `>=1.19.10` → `>=1.19.14` ### v3 workspace overrides (v3/package.json + pnpm.overrides) - `vitest`: `^4.0.16` → `^4.1.0` (and `@vitest/coverage-v8` matched) - Top-level + pnpm overrides: `handlebars: >=4.7.9`, `protobufjs: >=8.6.0` - 27 sub-package `package.json` updated to `vitest ^4.1.0` ### CVE registry refresh (v3/@claude-flow/security/src/CVE-REMEDIATION.ts) Rewritten from 5 stale Jan-2026 entries to 16 total: 15 fixed, 1 open (ADR165-OPEN-01 — PII pipeline wiring per ADR-164 §6.1 not yet on dispatch-layer). `SECURITY_SUMMARY` is now computed dynamically from the registry; `validateRemediation()` correctly returns `allFixed: false` with 1 issue. ADR-165 §5 flagged this as THE Phase 2 priority — now closed. ### New CI gate `.github/workflows/cve-audit.yml`: - `audit-root` — `npm audit --audit-level=critical` in root, blocking - `audit-v3` — same in v3, blocking - `audit-high-report` — warn-only summary on high-severity drift - Triggers: PR, push to main, daily cron ### ADR-165 §9 evidence ledger addendum Captures AFTER-remediation `npm audit --json` metadata for both workspaces. The diff between BEFORE (already in §9) and AFTER makes Phase 1 verifiable. Also CORRECTED one prior surprise in §9: the `validate-input.ts` in `mcp-tools/` is NOT a 9-line shim. It's 269 lines of real implementation. (That was an inaccurate findings note from the initial audit.) ### §7.3 research items resolved - `protobufjs` v3 chain confirmed gone after override pins - `handlebars` v3 chain confirmed not user-reachable on the workflow path (toolchain-only; override sufficient) - `validate-input.ts` confirmed real implementation, not a shim (registry entry corrected) - CORS surface check: no `cors()` / `app.use(cors` call sites — the hono CORS-wildcard advisory is not exploitable on the current server - ADR-164 §6.1 PII pipeline NOT wired in current agentbbs dispatch — recorded as ADR165-OPEN-01 (Phase 3 work) ## Gates (all PASS) - `npm audit --audit-level=critical` root: exit 0 (was non-zero) - `npm audit --audit-level=critical` v3: exit 0 (was non-zero) - vitest suites: 105/109 pass (4 skip-conditional — same as before) - ADR-112 audit: 352/352 tools with guidance - business-pods smoke: 11/11 PASS - agentbbs smoke: 8/8 PASS - agenticow smoke: 8/8 PASS - cli build: clean (tsc) ## Phase 2+ deferred The 27 v3 high-severity advisories that remain are transitive chains with no patched-in-range version. ADR-165 §6 Phase 2 picks these up after the `cve-watch.yml` automation in §6 lands (NEW PR — not in scope here). Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01WbBa4nccx5aGhXphoHxcni * chore(lock): regen v3/pnpm-lock.yaml after override updates (PR #2508 CI fix) PR #2508 added handlebars + protobufjs to v3 overrides + bumped vitest pin, but v3/pnpm-lock.yaml wasn't regenerated. CI surfaced ERR_PNPM_LOCKFILE_CONFIG_MISMATCH on every install step. Same pattern as the previous lockfile-drift fixes on PR #2500 and #2503. * fix(ci): cve-audit.yml jq-only + regen witness manifests for #1609 marker drift Two PR #2508 CI failures fixed: 1. Static-regression-guard tripped on cve-audit.yml line 52: the static YAML strict-parser sees `if high > 0:` inside the `run: |` block as a YAML block-mapping key indicator. Refactored all 3 inline-python blocks to use jq (preinstalled on ubuntu-latest) — no embedded `if x > 0:` lines, so the YAML guard passes. 2. Witness marker drift smoke flagged fix-marker #1609 — the Phase 1 vitest bump (4.0.16 → 4.1.0) drifted the cited marker string in v3/@claude-flow/aidefence/package.json. Updated `marker` field in all 3 platform manifests + `desc` to reference ADR-165 Phase 1, then re-signed via plugins/ruflo-core/scripts/witness/regen.mjs. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
7bdcd58dba |
fix(init): #2078 — use no-reply bot email for opt-in Co-Authored-By
The opt-in attribution feature (#1670) used `ruv@ruv.net`, a personal email that GitHub maps to the maintainer's contributor graph. When users opt in (or have legacy `.claude/settings.json` from before #1670), the trailer silently adds ruvnet as a contributor to their repos. Switch to `ruflo-bot <ruflo-bot@users.noreply.github.com>` — GitHub's no-reply convention excludes the address from contributor graphs and maps it to a tool identity rather than a person. The default (no `--attribution` flag) still writes no trailer at all per #1670. This is purely about what's written when the user opts in. Also updates the same trailer format in three sibling locations that hardcoded the personal email: - v3/@claude-flow/cli/.claude/settings.json (this repo's local settings, eating our own dog food) - v3/@claude-flow/codex/src/generators/agents-md.ts (codex AGENTS.md template generator) - v3/@claude-flow/codex/AGENTS.md (the generated AGENTS.md, regenerated to match the template change) Out of scope: the harness portion of #2078 (Claude Code runtime trailer) is a separate concern handled by the Claude Code itself, not by ruflo. Refs #2078 Co-Authored-By: ruflo-bot <ruflo-bot@users.noreply.github.com> |
||
|
|
5b71c7ac13 |
release(alpha.43+44): pin neural→sona@0.1.5, republish modules w/ standalone READMEs, add npm download badges everywhere (#2022)
This commit closes the chain started in |
||
|
|
511b2ac070 |
feat(codex): finish Codex ↔ Ruflo integration — real codex exec, dual run --worker, tests, CI guard (#1909) (#1911)
* fix(codex): correct codex MCP server subcommand + sync package version - mcp-bridge: `@openai/codex mcp serve` → `@openai/codex mcp-server`. `codex mcp` manages *external* MCP servers (list/get/add/remove); `codex mcp-server` is the "start Codex as an MCP server (stdio)" command. `codex mcp serve` errors with "unrecognized subcommand 'serve'", so the `codex` MCP backend never started. Fixed in both ruflo/src/mcp-bridge/index.js and ruflo/src/ruvocal/mcp-bridge/index.js. - @claude-flow/codex: VERSION const was '3.0.0-alpha.8' while package.json is '3.0.0-alpha.9' — `--version`/`info` reported the wrong version. Synced to alpha.9. Verified: `codex mcp serve` → error; `codex mcp-server` is valid. @claude-flow/codex builds clean (tsc), 162 unit tests pass, `claude-flow-codex` CLI (init/validate/doctor/templates/skills/dual) all functional. Co-Authored-By: RuFlo <ruv@ruv.net> * feat(codex): W1 — dual-mode orchestrator spawns real `codex exec` for codex workers Previously `codexCommand` defaulted to `'claude'` ("Both use claude CLI") and every worker — claude or codex — was launched with Claude-CLI flags (`-p`, `--output-format text`, `--max-turns`), so "dual-mode" was two Claude instances. Now: - `codexCommand` defaults to `'codex'` - `executeHeadless` builds platform-specific args: - claude: `-p <prompt> --output-format text [--max-turns N] [--model M]` - codex: `exec --sandbox workspace-write --skip-git-repo-check [-m M] <prompt>` (PROMPT is positional -> last; `codex exec` runs autonomously) Remaining in W1 (next iterations): update `.claude/agents/dual-mode/ codex-worker.md` + `codex-coordinator.md` to invoke `codex exec` instead of `claude -p`; add mocked-spawn smoke test (W4). Tracked: #1909. Co-Authored-By: RuFlo <ruv@ruv.net> * feat(codex): W1 (cont.) — dual-mode agent defs invoke `codex exec`, not `claude -p` codex-worker.md / codex-coordinator.md described "headless Codex workers" but every spawn example was `claude -p "..." --session-id X` with Claude-only flags (--max-budget-usd, --allowedTools, --output-format). Updated to match the W1 orchestrator change: - spawn syntax → `codex exec --sandbox <workspace-write|read-only> --skip-git-repo-check "<prompt>" &` - dropped Claude-only flags; note that mixed-platform runs still use `claude -p` for Claude workers - swarm/memory CLI refs `claude-flow@v3alpha` → `ruflo@latest` - MCP tool refs `mcp__claude-flow__*` / `mcp__ruv-swarm__*` → `mcp__ruflo__*` W1 now complete (orchestrator + agent defs). dual-orchestrator.md left as-is — it correctly documents the mixed Claude+Codex split. Smoke test is W4. Tracked: #1909. Co-Authored-By: RuFlo <ruv@ruv.net> * feat(codex): W2 — `dual run --worker "<platform>:<role>:<prompt>"` + positional template `dual run` only accepted `--template <name>` / `--config <path>`, so the custom-worker syntax documented in CLAUDE.md (`dual run --worker "claude:architect:..." --worker "codex:coder:..."`) didn't exist, and `dual run feature` (positional) silently fell through to "specify --template". Now: - `dual run [template]` — positional alias for `--template` - `-w, --worker "<platform>:<role>:<prompt>"` (repeatable; platform = claude|codex; prompt may contain `:` — split on first two only). Workers chain sequentially (each `dependsOn` the previous) unless `--parallel-workers`. Unique ids derived from role. - `parseWorkerSpecs()` exported for testing; clear errors on malformed specs / bad platform. - improved no-args usage text. build clean (tsc), 162 tests pass. Tracked: #1909 (W2). Tests for parseWorkerSpecs land in W4. Co-Authored-By: RuFlo <ruv@ruv.net> * feat(codex): W3 — standardize CLI ref claude-flow@alpha -> ruflo; fix MCP-server registration The dual-mode orchestrator/CLI shelled out to `npx claude-flow@alpha memory ...`, `claude-flow-codex init` registered the MCP server as `codex mcp add claude-flow -- npx claude-flow mcp start`, and the config.toml / migration generators emitted `[mcp_servers.claude-flow]` with `args = ["-y", "@claude-flow/cli@latest"]` — the wrong package, an inner-package name, and (in config-toml) **missing the `mcp start` subcommand** so the server never actually started. - dual-mode/{orchestrator,cli}.ts: `claude-flow@alpha` -> `ruflo@alpha` - initializer.ts: `codex mcp add claude-flow -- npx claude-flow mcp start` -> `codex mcp add ruflo -- npx ruflo mcp start`; "MCP server (ruflo) registered"; `npx @claude-flow/cli mcp start` -> `npx ruflo mcp start` - generators/config-toml.ts: default server `name: 'ruflo'`, `args: ['-y', 'ruflo@latest', 'mcp', 'start']` (adds the missing subcommand); `[mcp_servers.ruflo]` in all examples; the already-configured check accepts both `ruflo` and legacy `claude-flow` - generators/{agents-md,skill-md}.ts: `npx @claude-flow/cli ...` -> `npx ruflo ...` - migrations/index.ts: default emitted server -> `[mcp_servers.ruflo]` / `args = ["-y", "ruflo@latest", "mcp", "start"]` (user-provided servers pass through unchanged) - validators/index.ts: suggestion text -> `[mcp_servers.ruflo]` - tests: updated generator/migration assertions to the new output `npx vitest run` 162/162 pass. Note: `npm run build` (tsc) currently fails on an UNRELATED uncommitted WIP file `src/loop/index.ts` (exactOptionalPropertyTypes on prompt/command) — not from this change; my files compile clean. Branding-only refs (config-toml header, repo URLs in generated docs, remaining `@claude-flow/cli` in skill-md examples) deferred to W7. Tracked: #1909 (W3). Co-Authored-By: RuFlo <ruv@ruv.net> * test(codex): W4 — dual-mode tests (parseWorkerSpecs, templates, orchestrator leveling, `dual` wiring) New tests/dual-mode.test.ts (18 tests, no real workers spawned): - parseWorkerSpecs: single spec, sequential chaining, --parallel-workers, colons-in-prompt, id dedup, whitespace trim, and the 3 error paths (too-few-colons / empty-prompt / unknown-platform) - CollaborationTemplates: feature/security/refactor pipelines — ids, platforms, dependsOn chains, task interpolation - `dual` command wiring: run/templates/status subcommands; `run` exposes --worker / --parallel-workers / --template and a positional [template] - DualModeOrchestrator: safe defaults (codexCommand === 'codex'), buildDependencyLevels for linear / fan-in / circular cases Full suite: 184/184 pass (162 prior + 18 new + 4 loop). `npm run build` still blocked on the unrelated uncommitted `src/loop/index.ts`. Deferred: a full `CodexInitializer.initialize()` integration test (it shells out `codex mcp add`, which would touch the user's real codex config — needs a mock first). Tracked: #1909 (W4). Co-Authored-By: RuFlo <ruv@ruv.net> * feat(codex): W5 — generated SKILL.md frontmatter gets version/author/tags `claude-flow-codex init` / `generate-skill` produced SKILL.md files with only `name` + `description`, so `claude-flow-codex validate` flagged 3 "Consider adding field: version/author/tags" warnings per skill. - SkillMdOptions: optional `version` ("1.0.0"), `author` ("rUv"), `tags` (defaults to the skill name split on `-`) - generateSkillMd emits `version: "..."`, `author: ...`, `tags: [...]` in the frontmatter; built-in skills (via generateBuiltInSkill) inherit the defaults automatically Verified: a generated built-in skill validates with 0 warnings (was 3); a bare `generate-skill` stub now has 1 warning ("No examples provided", expected for a skill with no commands — out of scope here). `init → validate → doctor` clean on the local build. `npm run build` + 184/184 tests pass. (The ~150 repo `.agents/skills/*/SKILL.md` are generated by @claude-flow/cli, not this generator — out of scope.) Tracked: #1909 (W5). Co-Authored-By: RuFlo <ruv@ruv.net> * ci(codex): W6 — codex-integration-audit guard + workflow `scripts/audit-codex-integration.mjs` — pure-Node static checks for the Codex ↔ Ruflo invariants (issue #1909), exits non-zero on any failure: - `codex` MCP backend uses `mcp-server` (not the invalid `mcp serve`) in both ruflo/src/mcp-bridge and ruvocal/mcp-bridge - @claude-flow/codex VERSION const === its package.json version - dual-mode orchestrator: `codexCommand` defaults to 'codex', codex workers spawn `codex exec --sandbox …`, no 'claude' fallback - dual-mode agent defs reference `codex exec`, no legacy `claude -p … --session-id` worker pattern - no `claude-flow@alpha` / `@claude-flow/cli@latest` left in codex src - `dual run` exposes `--worker <spec>` + positional `[template]`, `parseWorkerSpecs` exported - generateSkillMd emits version/author/tags frontmatter - config.toml generator default MCP server = `ruflo` w/ `mcp start` `.github/workflows/codex-integration-audit.yml` runs it on PRs / pushes touching the codex package, mcp-bridge, dual-mode agents, or the script. No `npm install` needed — build + tests stay in the main CI. Audit passes on current branch. `npm run build` + 184/184 tests pass. Tracked: #1909 (W6). Co-Authored-By: RuFlo <ruv@ruv.net> * feat(codex): claude-flow-codex loop runner — Codex-native /loop equivalent Codex doesn't expose Claude Code's ScheduleWakeup, so this is a process-based runner with the same behaviour: - `loop run [prompt]` — repeated `codex exec` runs (or a custom `--command`), bounded by `--max-iterations`/`--interval`, with `--dry-run`, model/sandbox options, and a completion-marker-file contract - `loop status [--name <name>]` / `loop stop [--name <name>]` - state persisted to `.codex/loop/<name>.json`; stop-file aware - wired into the CLI (`src/cli.ts`), exported (`src/index.ts`), with a `./loop` package export and README docs (Implemented by rUv; landing it here so it isn't sitting dirty in the worktree while the #1909 loop commits around it. `npm run build` + 184/184 tests pass; `git diff --check` clean.) Co-Authored-By: RuFlo <ruv@ruv.net> * chore(codex): W7 — package.json hygiene + repo URLs ruvnet/claude-flow -> ruvnet/ruflo - package.json: drop dead `"templates"` from `files` (no templates/ dir at the package root — templates compile to dist/templates/); repository / homepage / bugs URLs -> ruvnet/ruflo; description -> "Ruflo (claude-flow)" - src/index.ts: PACKAGE_INFO.repository -> ruvnet/ruflo - src/initializer.ts, generators/{agents-md,config-toml}.ts: generated AGENTS.md / config.toml doc URLs -> ruvnet/ruflo (+ "Ruflo:" label) - README.md: badge + footer URLs -> ruvnet/ruflo - tests: assertion for the config.toml Documentation line `npm run build` + 184/184 tests pass; codex-integration audit passes. (Committed `.agents/AGENTS.md` / `.agents/config.toml` in the repo still carry old URLs — generated artifacts; the generators are now fixed so re-init produces ruvnet/ruflo. The published `claude-flow-codex` package name stays as-is.) Tracked: #1909 (W7). Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: Reuven <cohen@ruv-mac-mini.local> |
||
|
|
b9e2eb37e0 |
fix(deps): bump vulnerable vitest pins to ^4.0.16 (#1609) (#1819)
Several @claude-flow/* packages still pinned vitest to ^1.x or ^2.x. That range pulls vite <=6.4.1 → esbuild <=0.24.2, which carries GHSA-67mh-4wv8-2f99 (esbuild dev server exposes arbitrary file reads via network) — npm audit reports 4 moderate-severity vulnerabilities. Fix is to bump every workspace package to vitest ^4.0.16 (which pulls vite >=6.4.2, esbuild >=0.25.0, all clear). Most packages were already on 4.x; this PR bumps the holdouts: - @claude-flow/aidefence ^1.1.0 → ^4.0.16 - @claude-flow/browser ^2.0.0 → ^4.0.16 - @claude-flow/codex ^1.4.0 → ^4.0.16 - @claude-flow/plugin-agent-federation ^1.6.0 → ^4.0.16 - @claude-flow/plugin-iot-cognitum ^1.6.0 → ^4.0.16 - @claude-flow/testing peerDep >=1.0.0 → >=4.0.16 The lockfile regenerated cleanly — net 590 lines smaller as the dual vitest 1.x / 2.x transitive trees collapse into a single 4.x tree. Republish required for the affected packages to land the fix on npm (this only updates source + workspace lockfile). Closes #1609. |
||
|
|
7eb505d22f |
feat: native ruvllm + graph-node intelligence backends (ADR-086, ADR-087)
Wire @ruvector/ruvllm as intelligence coordinator (SonaCoordinator, ContrastiveTrainer, TrainingPipeline) and @ruvector/graph-node as native graph database for agent relationships and causal edges. - Fix ESM/CJS import: use createRequire pattern for CJS packages - Eager loading of all backends during initialization - Wire into neural status, hooks_intelligence, ruvllm_status CLI/MCP - Auto-trigger background learning on trajectory-end - Auto-save LoRA checkpoints after neural train - Graph-node records agents on spawn, causal edges, swarm teams - Fix community issues #1511, #1509, #1507, #1506, #1505 - Real Product Quantization with k-means trained codebooks - SONA native routing with 5-tier fallback - Embedding fallback transparency warnings - Plugin peer dep fixes (semver ranges, removed phantom deps) 32 test files, 1762 tests passing, 0 regressions. Co-Authored-By: claude-flow <ruv@ruv.net> |
||
|
|
c2e3bdec71 |
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: main - Timestamp: 2026-02-07T22:47:32Z - Changes: 4 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|
|
001aa2f9d3 |
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: feature/codex-integration - Timestamp: 2026-02-07T20:53:54Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|
|
19815e2352 |
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: feature/codex-integration - Timestamp: 2026-02-07T20:53:52Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|
|
50d0787e18 |
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: feature/codex-integration - Timestamp: 2026-02-07T20:49:51Z - Changes: 2 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|
|
47e31b69aa |
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: feature/codex-integration - Timestamp: 2026-02-07T20:44:46Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |