10341 Commits
Author SHA1 Message Date
rUv 745737aaaf Merge pull request #4931 from ruvnet/chore/release-3.75.0
chore(release): 3.75.0
v3.75.0
2026-11-09 20:33:56 -05:00
randRuFlo d8f8b59da6 chore(release): 3.75.0
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 19:37:54 -05:00
rUv a24b51bde6 Merge pull request #4929 from ruvnet/chore/codex-3.0.8
chore(codex): release 3.0.8; CLI and root pin codex 3.0.8
2026-11-09 19:36:43 -05:00
r d5cffcba75 Merge remote-tracking branch 'origin/main' into chore/codex-3.0.8
# Conflicts:
#	package-lock.json
#	package.json
#	v3/@claude-flow/cli/package.json
2026-11-09 19:00:12 -05:00
rUv 8976d98ad7 Merge pull request #4928 from ruvnet/fix/2633-project-root-anchor
fix(cli,cli-core): anchor durable state to the project root, not raw cwd (#2633)
2026-11-09 18:59:21 -05:00
randRuFlo 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>
2026-11-09 18:34:18 -05:00
rUv 95358c00ce Merge pull request #4927 from ruvnet/chore/swarm-3.0.5
chore(swarm): release 3.0.5 (QueenCoordinator failover config, #4902)
2026-11-09 18:32:51 -05:00
rUv f959311cc5 Merge pull request #4925 from ruvnet/feat/2638-2640-init-single-source
feat(init): AGENTS.md as the single dual-mode source (#2638); defer to installed plugins (#2640)
2026-11-09 18:32:47 -05:00
rUv 9d2a99552b Merge pull request #4924 from ruvnet/feat/4712-tiered-memory-inventory
feat(memory): tiered-memory inventory (#4712) + learning-bridge reopen (#4884); memory 3.3.0
2026-11-09 18:32:43 -05:00
randRuFlo c56f57c42d chore(cli): pin @claude-flow/cli-core 3.7.7 (published)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 18:05:01 -05:00
randRuFlo c9b87db61d fix(cli,cli-core): anchor durable state to the project root, not raw cwd (#2633)
Under an agent the Bash tool cwd is sticky, and MCP servers and hooks inherit
it, so process.cwd() is often a subdirectory of the project. Memory, autopilot,
neural and metrics state keyed to it was written under the subdirectory and
never read again: loadState() returned defaults and the learning state
silently started over.

- Extract the #2877 daemon marker walk (nearest Ruflo marker, `.git` hard
  stop, start dir when nothing matches, read-only) into
  cli/src/services/project-root.ts; resolveDaemonProjectRoot and
  isRufloProject delegate to it unchanged.
- getProjectRoot()/anchorToProjectRoot() add the home/filesystem-root guard
  cli-core already applies, so a ~/.claude/settings.json claudeFlow key never
  makes $HOME the project.
- getMemoryRoot(), `memory backup` and `memory distill` resolve memory
  against the project root.
- autopilot-state resolves its state, log, swarm-tasks and checklist paths
  against the project root per call (exported constants stay relative).
- neural checkpoints/patterns, `.claude-flow/memory` patterns, LoRA weights,
  EWC fisher and swarm-activity metrics use the project root.
- cli-core: export isRufloProject/resolveProjectRoot from mcp-tools/types;
  getProjectCwd() keeps CLAUDE_FLOW_CWD precedence, else walks up from
  process.cwd(), falling back to process.cwd() when no marker is found or
  the walk lands on home / a filesystem root. Bump cli-core to 3.7.7.

The CLI pins cli-core 3.7.6, which lacks these exports, so the CLI carries a
copy of the walk; a parity test pins both copies together.

Fixes #2633

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 18:01:12 -05:00
randRuFlo 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>
2026-11-09 17:49:12 -05:00
r 981adf7acf Merge remote-tracking branch 'origin/main' into feat/2638-2640-init-single-source 2026-11-09 17:46:20 -05:00
r 7e9e263ea6 Merge main (incl. #4926) into the memory 3.3.0 branch
Co-Authored-By: RuFlo <ruv@ruv.net>

# Conflicts:
#	v3/@claude-flow/cli/package.json
#	v3/@claude-flow/cli/src/mcp-tools/agentdb-tools.ts
#	v3/@claude-flow/cli/src/memory/memory-bridge.ts
2026-11-09 17:45:58 -05:00
rUv 65db110751 Merge pull request #4926 from ruvnet/feat/4707-agentdb-inventory-tools
feat(cli): read-only AgentDB pattern/skill inventory MCP tools (#4707)
2026-11-09 17:44:41 -05:00
rUv b27598f730 Merge pull request #4921 from ruvnet/feat/2854-host-plugin-installer
feat(cli): plugins host — dual-host Claude Code + Codex marketplace installer (#2854)
2026-11-09 17:44:37 -05:00
rUv 6f44e533bd Merge pull request #4919 from ruvnet/fix/2305-embedding-config
fix(cli): memory path honours .claude-flow/embeddings.json (#2305)
2026-11-09 17:44:33 -05:00
rUv f2fe699728 Merge pull request #4918 from ruvnet/fix/3153-1177-tool-names-start-all
fix(codex): registered tool names in AGENTS.md (#3153); feat(cli): start all (#1177)
2026-11-09 17:44:29 -05:00
rUv 7dfce96333 Merge pull request #4915 from ruvnet/fix/4715-core005-compact-boundary
fix(aidefence): CORE-005 compact matching flags sentence-ending "you are now" (#4715)
2026-11-09 17:44:25 -05:00
rUv 6bfdd25f08 Merge pull request #4920 from ruvnet/fix/4861-pii-guard-toggle
feat(plugins): separate piiGuard option from the secret guard (#4861)
2026-11-09 17:44:19 -05:00
randRuFlo b18d051526 chore(swarm): release 3.0.5 for the QueenCoordinator failover config fix (#4902)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 16:45:48 -05:00
randRuFlo be63552467 chore(cli): pin @claude-flow/memory 3.3.0 (published)
memory 3.3.0 carries #4712 (tiered-memory inventory) and #4884 (learning
bridge reopen, merged in from #4910).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 16:44:58 -05:00
randRuFlo 7047eedb1b Merge main into the memory 3.3.0 branch
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 16:42:18 -05:00
randRuFlo 7a28c86cb6 Merge #4910 (learning-bridge reopen) into the memory 3.3.0 branch
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 16:42:18 -05:00
randRuFlo 102296b080 chore(cli): pin @claude-flow/aidefence 3.1.2 (published)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 16:42:09 -05:00
rUv f6fe4199f7 Merge pull request #4923 from ruvnet/feat/1227-memory-scopes
feat(memory): wire AgentMemoryScope into memory store/retrieve/search (#1227)
2026-11-09 16:38:52 -05:00
rUv a4c5303848 Merge pull request #4922 from ruvnet/feat/4852-4851-automemory
fix(helpers): auto-memory resolves @claude-flow/memory itself (#4851); read --all, read-id, dedupe (#4852)
2026-11-09 16:38:48 -05:00
rUv b3e474e512 Merge pull request #4917 from ruvnet/fix/3215-agent-spawn-model-id
fix(cli): let agent_spawn take an exact model id (#3215)
2026-11-09 16:38:43 -05:00
rUv 76ab3a37ca Merge pull request #4914 from ruvnet/fix/4862-aidefence-learn-pii
fix(cli): aidefence_learn no longer records PII feedback as a missed injection (#4862)
2026-11-09 16:38:39 -05:00
randRuFlo 8e79004422 test(cli): assert inventory tools are adjacent, not last (#4712)
PR #4926 also appends tools to agentdbTools; requiring these two to be last would fail whichever PR merges second.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 15:20:07 -05:00
randRuFlo 18ccd1097d test(cli): match agentdb's real CrudValidationError code in #4707 fixtures
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 15:19:00 -05:00
randRuFlo 4f4920b6d4 feat(cli): read-only AgentDB pattern/skill inventory MCP tools (#4707)
Adds agentdb_pattern-list (ReasoningBank.listPatterns), agentdb_skill-list
(SkillLibrary.listSkills), agentdb_skill-get (SkillLibrary.getSkill) and the
count-only agentdb_hierarchical-stats (TieredMemoryStore.getTierStats +
countPersisted). They read through the existing memory-bridge registry under
the bridge operation lease. A missing controller or method returns
success:false, code:'unsupported' naming the method, never an empty list;
native errors (page validation, graph-adapter refusal) keep their own code.

Fixes #4707

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 15:17:48 -05:00
randRuFlo 9590c151ee test(ci): keep the new piiGuard kit tests off the root vitest run (#4861)
plugins/ruflo-{federation,intelligence}/tests/pii-guard.test.ts import
claude-code/testing and run under claude plugin test, like the other kit
tests in scripts/ci-test-excluded.txt.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 15:17:42 -05:00
randRuFlo e894a8b93c chore(catalog): regenerate command catalog after the #2640 command renames
`ruflo catalog generate` + copy to the ruflo-console catalog (their digests
must match). Picks up memory-neural, stream-chain-run and swarm-orchestrate.
The committed catalog was already stale on main (243 entries; now 290: new
mod registrations and plugins since the last regeneration), so this also
carries that drift. The host-specific engine report is left as committed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 15:14:28 -05:00
randRuFlo 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>
2026-11-09 15:14:28 -05:00
randRuFlo 1f6ac3efbd chore(aidefence): bump to 3.1.2 for the CORE-005 compact-boundary fix
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 15:11:04 -05:00
randRuFlo f33f481069 chore(memory): bump @claude-flow/memory to 3.3.0 for #4884 source change
Satisfies the plugin package install-safety check; same version as PR #4924 so both ship in one memory release. CLI pin unchanged.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 15:10:27 -05:00
rUv 8d7866a9bb Merge pull request #4916 from ruvnet/fix/4714-pattern-search-zero-match
fix(cli): report a healthy pattern-search zero-match as a no-match, not degraded (#4714)
2026-11-09 14:38:19 -05:00
rUv 024bb49a7b Merge pull request #4913 from ruvnet/fix/4880-4876-persist-and-search
fix(cli): report failed pattern persistence and unified-search namespace errors (#4880, #4876)
2026-11-09 14:38:15 -05:00
rUv 55df93a644 Merge pull request #4912 from ruvnet/fix/tool-schema-limits
fix(cli): advertise the real input limits in aidefence_scan, hierarchical-store and post-task schemas
2026-11-09 14:38:10 -05:00
rUv 861ae9e3c8 Merge pull request #4909 from ruvnet/fix/4888-atomic-short-write
fix(cli): write every byte in writeFileAtomic before rename (#4888)
2026-11-09 14:38:05 -05:00
rUv bdcf37c3fa Merge pull request #4908 from ruvnet/fix/4902-queen-failover-config
fix(swarm): honor enableFailover and maxDelegationAttempts in QueenCoordinator (#4902)
2026-11-09 14:38:01 -05:00
randRuFlo 0f1bbe88a5 feat(init): skip what installed ruflo plugins already ship (#2640)
With the ruflo Claude Code plugins installed (ruflo-core@ruflo installed and
not switched off in enabledPlugins), `ruflo init` copied a full shadow copy of
the agents, commands and skills those plugins ship, and registered a second,
standalone `claude-flow` MCP server next to the plugin's.

- init/plugin-dedup.ts: read-only detection via Claude Code's own records
  (installed_plugins.json through mods/plugin-resolve installedState, plus
  enabledPlugins in local/project/user settings). It lists the agents,
  commands and skills of every installed *@ruflo plugin. A missing or
  malformed record means "no plugin": today's behaviour.
- executor: skips those agents/commands/skills (per file inside category
  dirs; a dir left empty is not created) and the standalone `claude-flow`
  MCP entry, keeping any other server the preset asks for. The skip list is
  returned as result.pluginDedup; `ruflo init` prints it with the reason and
  the opt-out.
- `deferToPlugins` is on in the default/minimal presets and off in
  FULL_INIT_OPTIONS, so `init --full` keeps today's full copy.
- Renamed the 3 init commands whose names collided with plugin commands:
  memory/neural -> memory-neural (ruflo-intelligence), stream-chain/run ->
  stream-chain-run (ruflo-ruos), swarm/swarm -> swarm-orchestrate
  (ruflo-swarm).
- smoke-init-bundle-invariants: assertion 4, no init/plugin command-name
  collision.
- Two existing init tests now pin CLAUDE_CONFIG_DIR so the plugins installed
  on the machine running them cannot change what init writes.

Fixes #2640

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:55:18 -05:00
randRuFlo 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>
2026-11-09 12:46:42 -05:00
randRuFlo 105033d1f2 feat(memory,cli): persisted inventory + exact-ID reads for TieredMemoryStore (#4712)
TieredMemoryStore exposed store/recall/remove/count but no way to enumerate
what is persisted or read an entry back by id. recall() scores the hydrated
maps, which cap each tier and the archive at 5,000 rows and collapse same-key
rows, so the in-memory view cannot establish the persisted population.

@claude-flow/memory 3.3.0:
- TieredMemoryStore.listEntries({ tier, status = 'active', limit = 100, cursor })
  reads the tiered_memory table with keyset pagination on ts DESC, id DESC.
  status is active | expired | superseded | archived | all, derived by one
  function with fixed precedence (superseded > archived > expired > active;
  not-yet-valid rows count as expired, matching recall's includeExpired).
  limit is clamped to 1..1000. The cursor is base64url JSON bound to the
  tier/status filter; altered, malformed or foreign cursors throw
  TieredMemoryCursorError. totalEstimate is an exact COUNT for all /
  superseded / archived and omitted for the temporal filters.
- TieredMemoryStore.getEntry(id, { includeInactive = false }) is an exact
  stable-id read returning the entry plus its status, or null.
- Both throw TieredMemoryUnsupportedError ("unsupported: volatile store") on a
  store without a SQLite handle, never write, and let SQL errors propagate.
- Logic lives in tiered-memory-inventory.ts with injected decode/isValid, so
  there is no runtime import cycle.

CLI: read-only MCP tools agentdb_hierarchical-list and agentdb_hierarchical-get,
appended at the end of agentdbTools from a new module. Bridge helpers are
appended to memory-bridge.ts and run inside one bridge operation; they refuse
with a reason on a native agentdb controller, an older @claude-flow/memory
without the API, a volatile store, or a read failure.

Fixes #4712

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:44:17 -05:00
randRuFlo c7a6241947 chore(helpers): re-sign the helpers manifest for the auto-memory hook change
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:41:20 -05:00
randRuFlo f72eb46280 feat(memory): wire AgentMemoryScope into memory store/retrieve/search (#1227)
A scope is a namespace prefix in the same store:
agent-memory:<scope>:<agentId>:<namespace>. memory_store, memory_retrieve
and memory_search take an optional scope (project|local|user) plus the
agentId the memory package keys each scope by; the CLI gets matching
--scope/--agent flags. Without a scope nothing is prefixed, so existing
data and unscoped calls behave exactly as before. New read-only tool
memory_list_scopes reports each scope's agents, namespaces and counts.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:39:44 -05:00
randRuFlo 439b498814 feat(cli): plugins host — dual-host Claude Code + Codex marketplace installer (#2854)
Adds `ruflo plugins host <install|update|uninstall|enable|disable|sync|status>`.
Each host's own plugin CLI is driven via execFile with a literal argv; host
executables are resolved by a PATH/PATHEXT scan with fs.access (no `which`,
no shell). Windows npm .cmd shims are run as `node <bin.js>` only after the
owning package's name and bin are verified. Plugin names are validated
against a strict pattern before reaching any argv. Results are reported per
host; any failed host makes the exit code non-zero.

sync: union of enabled plugins, additive, never removes, keeps explicit
disables, refuses a foreign-source marketplace of the same name.

Fixes #2854

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:39:16 -05:00
randRuFlo b7e4ce9d8e feat(helpers): auto-memory read --all, read-id and dedupe for duplicate keys (#4852)
`read <ns> <key>` refused a key held by several entries with AMBIGUOUS_KEY
and no ids, so there was no way to see the duplicates or repair them.

- The AMBIGUOUS_KEY refusal now lists every matching id with its
  createdAt and updatedAt, and names the commands below.
- `read --all <ns> <key>` returns {multiplicity, entries[]}; `read-id <id>`
  returns one entry by id. Both are read-only: no package load, no
  directory, no lock, no write.
- `dedupe <ns> <key> [--keep <id>] [--apply]` is a dry run by default and
  reports which entry would be kept (newest updatedAt, then createdAt;
  ties broken by ascending id) and which removed. With --apply it plans
  again from a fresh read under the store lock, removes only the other
  entries of that namespace+key through the atomic write, and verifies
  the result by readback. --keep must name an entry of that key, or the
  command is refused and the store is left as it was.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:37:16 -05:00
randRuFlo 724f06e442 fix(helpers): auto-memory hook resolves @claude-flow/memory without a sidecar (#4851)
SessionStart runs auto-memory-hook.mjs directly, and the hook only found
@claude-flow/memory through the sidecar that init / upgrade / doctor write.
A fresh worktree has no sidecar (.claude-flow/ is gitignored), so imports
were DISABLED there.

The hook now tries, in order: its own sidecar; the main checkout's sidecar
when it runs in a git worktree; the in-repo dist; require.resolve from the
helper's install root and from the helper's own directory; and the CLI's
own dependencies (@claude-flow/cli, directly or under ruflo / claude-flow),
which is where recordMemoryPackagePath() resolves from. Candidates come
from MODULE_ROOT or the helper's directory only, never CLAUDE_PROJECT_DIR.
A candidate is used only if it exports AutoMemoryBridge. import and sync
record the found path in the sidecar, so the next run is fast; status
reports where it resolved but writes nothing. When nothing resolves, the
existing DISABLED warning now lists every place searched and why each
failed. No network, no install.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:35:05 -05:00