mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
v3.78.1
505
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
65194a54b5 | Animate a retry policy from agent planning through review and reporting | ||
|
|
e5b7773607 | Increase workspace type size and reflow agent messages | ||
|
|
4531adb103 | Extend the animated workspace to the full banner height | ||
|
|
0650b3939d | Align workspace with capability list and illustrate project handoffs | ||
|
|
ca4021d8f3 | Restore ruPro homepage copy beside the animated workspace | ||
|
|
b4818d6ccf | Feature the animated ruPro workspace at full banner width | ||
|
|
41793a670b | Match ruPro homepage layout, scenes and playback timing | ||
|
|
8e559aa18c | Add animated ruPro workspace tour | ||
|
|
89a00242b3 |
integrate: dream-cycle memory/neural fixes (#4660, #4973, #4081, #3650, #4983, #5034, #5012) (#5041)
* dream(memory): #3649 restore quantizer config/codebooks across HNSWIndex serialize/deserialize HNSWIndex.serialize()/deserialize() never persisted config.quantization or trained PQ codebooks, so this.quantizer came back null after any save/reload cycle — silently re-breaking the product-quantization distance dispatch fixed 2026-08-25 (#3093/#3094) every time AgentDBAdapter.saveToDisk()/ loadFromDisk() round-trips an index. Added a versioned magic header (v1/v2) so serialize() now writes quantization config + trained codebooks, and deserialize() restores them, while old-format snapshots still read correctly with no quantizer (unchanged pre-existing behavior). Evaluated: pre-serialize recall@10 0.270 -> post-deserialize 0.010 on baseline (bug reproduced) -> ~0.270 on candidate. 557/558 full suite both ways (1 pre-existing unrelated failure), tsc clean. Independent adversarial critic CONFIRMED, including a stronger real pre-fix v1-buffer repro. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01TfsQojjDGj9ZEgPo6qZvPc * docs(dream-cycle): fill candidate commit sha in 2026-10-03 gist witness table Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01TfsQojjDGj9ZEgPo6qZvPc * fix(memory): validate importCodebooks() input, reject malformed shape Addresses ruvnet's review on #3650: deserialize() fed JSON.parse() output straight into this.codebooks with no validation, so a corrupted v2 snapshot could either throw (invalid JSON) or silently adopt a wrong-shaped/non-finite codebooks array, poisoning every subsequent distance computed against it with garbage or NaN. importCodebooks() now validates shape (numSubquantizers sub-arrays, each numCentroids centroids of the expected per-subvector length) and that every value is a finite number, returning false and leaving the quantizer untrained on any mismatch -- same as the existing pre-training bootstrap state, not a new failure mode. deserialize() now guards the JSON.parse() call itself so corrupt JSON degrades to "untrained" instead of throwing. 2 new discriminating tests, both verified to fail against the pre-fix code via git-stash isolation (one throws on corrupt JSON, one silently accepted a wrong-shaped array). Full suite 559/560 (1 pre-existing unrelated failure), tsc --noEmit clean. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01TfsQojjDGj9ZEgPo6qZvPc * docs(dream-cycle): record post-review hardening in 2026-10-03 gist Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01TfsQojjDGj9ZEgPo6qZvPc * dream(intelligence): #4080 wire SONA learning-state persistence into LearningBridge (evaluated, ACCEPT) LearningBridge is the only production path that exercises SONAManager (via auto-memory-hook.mjs's SessionStart/SessionEnd hooks), and every short-lived hook invocation constructed a fresh, empty neural learning state. SONAManager.serialize()/deserialize() already existed but were never called. Wires that round-trip into LearningBridge.loadNeural() (restore) and destroy() (persist, synchronous since destroy() is called unawaited right before process exit), mirroring MoERouter's existing .swarm/moe-weights.json persistence pattern. This supersedes the handed-in candidate for tonight (fixing SONAManager's EWC key-mismatch), which an architecture review proved would be behaviorally inert: SONAManager.loraWeights.A/B are never updated by gradient descent anywhere, so aligning EWC's keys would only change internal telemetry, not real behavior. The persistence gap fixed here is the actual root cause making SONA's learning trigger (EWC included) practically unreachable in the first place. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01K7m7AnVWdCQRydcfxzK6ke * docs(dream-cycle): append 2026-10-12 intelligence ledger row Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01K7m7AnVWdCQRydcfxzK6ke * chore(release): bump neural/memory leaves for #4081's source change v3/@claude-flow/neural and v3/@claude-flow/memory are non-bundled leaf packages resolved from the registry, not shipped with the release train (CLAUDE.md "Publishing Rules") — a source change without a version bump would ship nobody the fix (ruvnet/ruflo#3335, #3390). Minor-bumps both (3.0.0->3.1.0, 3.0.4->3.1.0: backward-compatible additions, no breaking API change) and updates v3/@claude-flow/cli's exact pins + v3/pnpm-lock.yaml to match. Root claude-flow's own @claude-flow/neural dependency resolves from the real npm registry (not a workspace link, confirmed via package-lock.json's resolved tarball URL) — widened to "^3.0.0" rather than bumped to "3.1.0", since 3.1.0 isn't published yet and pinning to it would break `npm ci`. @claude-flow/memory isn't a direct dependency of the root package, so it needed no equivalent change there. Verified: audit-leaf-package-publish.mjs, audit-wrapper-dep-ranges.mjs, audit-plugin-packages.mjs, audit-package-dep-overlap.mjs, and audit-umbrella-version-lockstep.mjs all pass locally; `npm ci` and `pnpm install --frozen-lockfile` (in v3/) both succeed cleanly. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01K7m7AnVWdCQRydcfxzK6ke * fix(cli): widen neural/memory pins to ranges, not an unpublished exact version The previous commit exact-pinned @claude-flow/cli's neural/memory deps to 3.1.0 to match the leaf version bump — but the CLI package is consumed via real npm resolution when packed/installed (npx, or a real `npm install` of the published tarball), not via the pnpm workspace link that made the pin look fine locally. 3.1.0 isn't published, so smoke-cli-npx-install.mjs's real `npm install` of the packed CLI tarball failed: `ETARGET No matching version found for @claude-flow/neural@3.1.0`. Same fix as the prior commit's root package.json change: widen to "^3.0.0" rather than bump to the unpublished version. This still satisfies audit-leaf-package-publish.mjs's range-coverage check (^3.0.0 covers the workspace's 3.1.0) without requiring a real registry publish, and resolves correctly to whatever's actually published (3.0.0) when installed for real. CLAUDE.md documents this exact failure mode happening before (memory@3.0.0-alpha.27, 2026-09-28) — exact-pinning to vaporware breaks installs outright. Verified: ran scripts/smoke-cli-npx-install.mjs locally end-to-end (packs the real tarball, npm installs it, runs `cli --version`) — passes. All other audit scripts + both packages' test suites unchanged/green. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01K7m7AnVWdCQRydcfxzK6ke * fix(cli): restore exact memory pin to satisfy witness-marker guard (#2021/#1825) The previous commit widened @claude-flow/cli's "@claude-flow/memory" dep (both dependencies and optionalDependencies) to "^3.0.0" to avoid the same ETARGET problem neural hit. That broke a different, deliberate guard: `witness marker drift smoke (#2021)` flags any change to a line previously witnessed as a historical fix. #1825's fix (PR #1827) specifically pins this field to an exact "3.x" version after a `workspace:` protocol leak crashed npm's resolver entirely for ALL users — the marker `"@claude-flow/memory": "3.` guards against regressing that. memory doesn't need the same treatment neural got: it's listed in BOTH `dependencies` and `optionalDependencies` (pre-existing, not introduced here), and pnpm/npm treat a dependency declared in both as optional overall — confirmed empirically by running scripts/smoke-cli-npx-install.mjs locally with memory exact-pinned to the unpublished 3.1.0: npm installs the tarball cleanly, because an unresolvable optional dependency doesn't fail the install (unlike neural, which is required and must stay on a range that resolves to what's actually published). Restored the exact "3.1.0" pin (matching the new leaf version, satisfying both the witness marker's "3." substring and audit-leaf-package-publish.mjs's range-coverage) in both package.json fields and the pnpm-lock.yaml specifier; left neural's "^3.0.0" from the prior commit untouched. Verified: smoke-witness-marker-drift.mjs (0 drifted, was 1), smoke-cli-npx-install.mjs, audit-leaf-package-publish.mjs, audit-wrapper-dep-ranges.mjs, audit-plugin-packages.mjs, audit-package-dep-overlap.mjs, audit-umbrella-version-lockstep.mjs all pass; pnpm install --frozen-lockfile (v3/) succeeds; both affected packages' test suites unchanged. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01K7m7AnVWdCQRydcfxzK6ke * fix(memory,neural): harden SONA state persistence found in #4081 review - LearningBridge never follows a symlink at statePath (read or write) and never writes into a symlinked directory: the file lives in the project directory, so it is untrusted input (reproduced: a planted symlink was overwritten). - Atomic write (private 0600 temp file + rename); no torn files. - Persist only when something was learned: no stray .swarm/ in every cwd. - A file from another schema version is preserved, never overwritten. - A rejected restore is rolled back to the pre-restore snapshot; reads are size-capped. - SONAManager.deserialize validates the whole snapshot before assigning any field (reproduced: {"schemaVersion":1} left the manager half-applied and permanently unable to learn or self-heal). Known limitation, documented: concurrent processes are last-writer-wins (8 parallel processes kept 4 of 8 trajectories). Co-Authored-By: RuFlo <ruv@ruv.net> * dream(intelligence): #LOCAL wire ResearchMode.getConsolidationSnapshot() into SONA EWC++ (evaluated, ACCEPT-scoped) Continues 2026-10-27 (#4531/#4532) and 2026-11-01 (#4633 SCAN)'s own disclosed gap: BalancedMode was the only SONA learning mode wired into SONAManager's EWC++ consolidation path. ResearchMode already maintains real per-key gradient-shaped state (adamM/adamV, already read back by its own dormant computeEWCLoss()) so it can be wired honestly using the exact reviewed Balanced-mode delta-since-snapshot pattern, with zero sona-manager.ts changes needed (the hook is mode-agnostic). EdgeMode and RealTimeMode are explicitly NOT wired (no real gradient-shaped state exists to snapshot without fabricating it); BatchMode is also not wired (its accumulatedGradients map is zeroed on an independent 4-step flush cadence, making a direct port semantically ambiguous). 5 new tests (3 discriminating, 2 controls), stash-isolated baseline fails 3/5 exactly as predicted, candidate 5/5 pass. Full @claude-flow/neural suite 153/153 both ways except the 3 discriminating failures, 0 regressions. tsc --noEmit 0 errors both ways. Independent adversarial critique: CONFIRMED-WITH-CAVEATS (one test-strength nit, fixed forward same session). Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH7BxmEedHJQP2wdfCq * docs(dream-cycle): fill in witness stamp for 2026-11-02 gist Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH7BxmEedHJQP2wdfCq * docs(dream-cycle): append 2026-11-02 ledger row (#4659/#4660) Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH7BxmEedHJQP2wdfCq * fix(ci): bump @claude-flow/neural to 3.0.3 for the leaf-package-publish audit CI's audit-leaf-package-publish.mjs correctly flagged this PR: @claude-flow/ neural is a non-bundled leaf (resolves from the registry, not shipped inside the release train tarballs), and this PR changed its publishable source (src/modes/research.ts) without bumping its package.json version — a release now would ship the old copy and the ResearchMode EWC fix would reach nobody. Bumps v3/@claude-flow/neural to 3.0.3 and the CLI's exact pin + lockfile specifier to match (the CLI pins an exact version, not a range, so both must move together). Verified locally: audit-leaf-package-publish.mjs now passes clean against the PR base; @claude-flow/neural suite still 153/153, tsc --noEmit still 0 errors. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH7BxmEedHJQP2wdfCq * fix(ci): bump root claude-flow umbrella's @claude-flow/neural pin to 3.0.3 audit-wrapper-dep-ranges.mjs flagged a second, independent pin: the root claude-flow umbrella's own dependencies block also pins @claude-flow/neural exactly, separately from the CLI's pin fixed in |
||
|
|
e5d024059d |
dream(security): #3834 wire settings.json risk scanner into hooks session-restore (evaluated, ACCEPT-scoped) (#3835)
* dream(security): #3834 wire settings.json risk scanner into hooks session-restore (scoped) The advisory .claude/settings.json risk scanner (settings-risk-scanner.ts, 2026-08-16) was wired into `ruflo init`/`--upgrade` only -- the sole call sites of scanSettingsForRisk()/formatRiskFindingsAsWarnings() in the whole package. hooksSessionRestore's handler now also runs the same, unmodified scan, folding findings into its existing `warnings` field, for an explicit `ruflo hooks session-restore` call or an MCP client calling `hooks_session-restore`. Scoped post-critique: an independent adversarial critic found the original claim ("closes the gap for any later session") overstated reach -- the automatic SessionStart hook Claude Code fires for every real session runs a separate generated/signed helper template (hook-handler.cjs -> session.cjs) this scan isn't wired into. Extending there is a larger, separate-night change; disclosed as a follow-up rather than silently dropped. Also hardened per the critic's minor finding: the try/catch around the scan now only swallows JSON.parse SyntaxErrors, so a real bug in the scanner itself would surface instead of being silently absorbed. 6 new discriminating tests, baseline-fails/candidate-passes via stash isolation (3/6 fail on baseline exactly as predicted, 6/6 pass on candidate). Full @claude-flow/cli suite byte-identical FAIL-line diff (full untruncated logs) baseline vs candidate outside those 3 tests; tsc --noEmit byte-identical (9 pre-existing errors, none in changed files). Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01J8SuGypepNkwYqLMTbnePk * dream(security): #3834 update ledger for 2026-10-06 + backfill 09-22..10-05 note Appends tonight's row and a backfill note for 09-22 through 10-05 (ledger rows only reach main via PR merge, so these were never individually transcribed live). Confirms the 09-26 batch merge and the 09-23/09-25/09-26/ 10-04 no-run gaps via git ls-remote + pull_request_read, not inferred. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01J8SuGypepNkwYqLMTbnePk * dream(security): #3834 guard non-object parsed settings.json (review fix) A .claude/settings.json whose content is valid JSON but not an object -- literally `null`, or a top-level array -- made hooksSessionRestore's new scan crash: `settings.hooks` on `null` throws a TypeError, which the existing catch correctly re-throws (it's not a JSON.parse SyntaxError), so hooks_session-restore failed outright instead of staying advisory-only. Found by ruvnet's backlog-sweep review. Guard: only run the scan when the parsed value is a non-null, non-array object; otherwise treat it the same as "not this scan's concern," matching the existing malformed-JSON behavior. Added discriminating tests for both `null` and `[]`. Reproduced the exact reported crash via stash isolation before fixing: baseline throws "Cannot read properties of null (reading 'hooks')" on the new null-content test; candidate: 8/8 pass. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01J8SuGypepNkwYqLMTbnePk * fix(cli): never let the advisory settings scan abort hooks_session-restore A non-SyntaxError from the scanner was rethrown, failing the whole restore; #4053 hit the same issue on the SessionStart path. Also points the scope comment at #4053 instead of calling it future work. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
28c9d36992 |
dream(swarm): setMaxListeners(0) on ByzantineConsensus/GossipConsensus (evaluated, ACCEPT) #4988 (#4989)
* dream(swarm): setMaxListeners(0) on ByzantineConsensus/GossipConsensus RaftConsensus already guards against Node's default EventEmitter 10-listener cap with setMaxListeners(0), because awaitConsensus() adds one 'consensus.achieved' listener per in-flight proposal. Byzantine and Gossip got the identical per-proposal listener pattern when their awaitConsensus() was converted from busy-polling to event-driven (#4458/#4498), but never got the guard copied over. Confirmed live via direct reproduction (both classes threw a real MaxListenersExceededWarning under >10 concurrent proposals); fixed by mirroring Raft's existing, already-reviewed pattern exactly. Baseline (fix stashed): 2 new discriminating tests fail with the real captured warning. Candidate: 6/6 pass, full @claude-flow/swarm suite 382/382, tsc clean. Independently reproduced by an adversarial critic with no authoring context, including a 50-concurrent-proposal stress test and a 3x flakiness check. Evaluated, ACCEPT. Human review required; no self-merge. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH3UoSH8fGnwoZR4NLQ * docs(dream-cycle): fill in witness stamp for 2026-11-14 gist Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH3UoSH8fGnwoZR4NLQ * docs(dream-cycle): backfill 11-12/11-13 rows, append 2026-11-14 ledger row Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH3UoSH8fGnwoZR4NLQ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
db712a64eb |
dream(intelligence): fix guidance_brain's dead coveragePercent/classifiedToolCount (evaluated, ACCEPT) #5003 (#5004)
* dream(intelligence): fix guidance_brain's dead coveragePercent/classifiedToolCount metrics buildCapabilityBrain() (v3/@claude-flow/cli/src/mcp-tools/capability-brain.ts) hardcoded coveragePercent to 100 and classifiedToolCount to the raw unique-tool count, regardless of how many tools fell back to the generic runtime-services domain -- a declared-but-dead metric reachable through the live guidance_brain MCP tool that CLAUDE.md instructs agents to call before complex work, and a direct violation of ADR-329's own coverage-gate invariant. classifiedToolCount now subtracts the number of distinct fallback-classified tool names, and coveragePercent is computed from it instead of being a constant. An independent adversarial critique found and this session fixed forward a related edge case: a duplicate tool name that also falls back to runtime-services could drive the count negative; fixed by deduping via a Set before subtracting. 3 new discriminating/control tests added to guidance-brain.test.ts. Stash-isolated baseline fails the predicted test; candidate is 11/11, tui-command.test.ts (the other real consumer-adjacent suite) is 13/13 (+3 pre-existing skips), 0 regressions. tsc --noEmit: 0 errors in either changed file. Research: tonight's DEEP=intelligence slot surfaced a stronger-evidenced EWC gradient-accumulator-decay candidate, but an independent architecture review disqualified it from tonight's production_value score (its output is currently discarded by learn(), never reaching a real weight update) -- this SCAN=capabilities finding scored higher and is a disclosed SCAN-override, same precedent as 2026-10-29/2026-11-10. Full research and evaluation receipt in docs/dream-cycle/dream-gist-2026-11-16.md. Also backfills three missing ledger rows (2026-11-12/13/14) that each pushed a real, evaluated, witnessed draft PR but never appended their ledger row -- a genuine STEP 25 gap found during tonight's STEP 1 ledger check. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH5iHMWcLWYvovKagBj * dream(intelligence): finalize witness block and append ledger row for #5003/#5004 Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH5iHMWcLWYvovKagBj --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
44a48fa064 | docs: add opt-in RVF MCP search recipe and package discovery metadata (#4896) | ||
|
|
4592b726fd | docs: prevent legacy badge generator overwriting verified download counter | ||
|
|
aee6532fc9 | docs: refresh evidence-backed claude-directory.svg | ||
|
|
e269d5d11a | docs: refresh evidence-backed downloads.svg | ||
|
|
408302efbd | docs: reproducible honest download and Claude directory badges | ||
|
|
353837654c | docs: add cross-platform ruPro workspace promo | ||
|
|
90ce12dbcf | docs: restore full uncropped ruPro companion image | ||
|
|
96f7c9e15c | docs: add optimized ruPro iPhone companion promo | ||
|
|
6162c80d26 | docs: add ruPro website preview asset | ||
|
|
c1ad3dc511 |
dream(security): #4960 resolve 11-10 hive-mind branch fate in ledger
A fate-check sub-agent (dispatched during tonight's STEP 1) resolved the dream/2026-11-10-hive-mind branch this session flagged as unexplained: it was a disclosed SCAN override (RaftConsensus legacy requestVote() fix, #4937/#4938, MERGED), not an undisclosed deviation. Also surfaced a real supplementary swarm finding (RaftConsensus.appendEntries()'s legacy path still has zero log-contiguity check) that got recorded as a follow-up comment on #4960 for a future night, rather than reopening tonight's already-ACCEPT-evaluated security candidate. |
||
|
|
03b4543e50 | dream(security): #4960 update ledger | ||
|
|
0b4e03a86b |
dream(security): #4960 add witnessed SOTA research gist
Local-only publication (gh CLI auth broken this session, FALLBACK for remote gist publication only -- GitHub MCP tools still used for the issue and PR). Witness computed from this file's final content + the session commit; verifier procedure is in the file itself. |
||
|
|
b6a2004307 | Merge remote-tracking branch 'pr/4932' into release/memory-3.3.1 | ||
|
|
a7a60f7af6 |
docs(dream-cycle): append 2026-11-10 ledger row (#4937/#4938)
Confirms 11-08 (#4910 closed-not-merged) and 11-09 (#4908/#4927 merged) fates, and the already-disclosed 11-03..11-07 no-run gap, before tonight's own row. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH3S4EbKdQdNK4cgQS3 |
||
|
|
dfc87e5c03 |
chore(npm): canonical repository, homepage and keywords for 12 packages; verified quickstarts for memory and security
Package metadata only (ADR-356 distribution lane). No version bumps, no dependency, script or source changes; it ships with each package's next release. - homepage https://ruv.io, repository {url ruvnet/ruflo, directory}, bugs ruvnet/ruflo/issues on @claude-flow/{memory,security,embeddings, swarm,testing,plugins,performance,providers,deployment, plugin-agent-federation,plugin-iot-cognitum} and ruflo-graph-intelligence. Nine of these had no repository field at all, so their npm pages link nowhere. - 10-12 keywords per package, taken from each package's README features. - ruflo-graph-intelligence description trimmed to 160 chars. - memory and security READMEs: one-line job statement, supported environments, a quickstart run against the published 3.3.0 / 3.0.7 with its real output, a link to the next package, and an animated SVG (2.5 KB / 2.1 KB, prefers-reduced-motion aware) that shows that run. Packages in #4897 (aidefence, browser, cli-core, guidance, neural, teammate-plugin) are left alone to avoid conflicting with it. Co-Authored-By: claude-flow <ruv@ruv.net> |
||
|
|
9b46f57c58 |
feat(metaharness): @metaharness/darwin as a regular dependency, used in-process (ADR-526); release 3.74.0
- darwin moves to dependencies (ADR-526 amends ADR-150 rule 2 for darwin only); the smoke gate, doctor check and clean-install test accept it. - src/metaharness/darwin-lib.ts: cached import; metaharness_bench verify and every metaharness_gepa op run in-process with the scripts' exact payloads and exit codes, falling back to the scripts when darwin does not import. - ruflo-metaharness 0.5.0: bench.mjs verify imports darwin directly (bare import, no tool-time install) and falls back to the installed darwin CLI. - Parity test vs the plugin scripts; benchmark script + measured runs. - Version 3.74.0. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
50f6819cbd |
docs: Chinese README quick start + comparison page (#4873)
* docs: add comparison page and update Chinese README quick start TASK A: Update README.zh-CN.md top section to match PR #4869 English version - Replace old intro with "Get started in one command" - Promote `npx ruflo@latest init` as primary install path - Add example task for Claude Code - Update Star badge to point to ruvnet/ruflo (not claude-flow) - Add animated GIF and collapsed "Other ways to install" section TASK B: Create new docs/compare.md comparison page - Comparison table: Ruflo vs Claude Code built-in agents vs CrewAI vs LangGraph vs AutoGen - Rows: what it is, language/runtime, how agents run, persistent memory, install - Strict fact-checking: all competitor info from official docs, "—" for unverified cells - "When to pick which" section with decision criteria - No adjectives, benchmarks, or star counts for Ruflo (facts only) - Under 120 lines with official sources list Link docs/compare.md from: - docs/index.md "Links" section - README.md Documentation table Co-Authored-By: RuFlo <ruv@ruv.net> * docs(compare): correct competitor facts against their own docs AutoGen is archived (Microsoft points to Agent Framework) and its 0.2 install line was stale; Claude Code subagents are not version-gated at 2.1.287 and have an optional memory field; LangGraph is an agent orchestration library, not 'workflow without agents'. Every competitor cell re-checked 2026-11-06, sources listed. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
657a4ff81c |
feat(funnel): count plugin-only users via the ruflo-core MCP launch (#4872)
* feat(funnel): count plugin-only users via the ruflo-core MCP launch Plugin-only users never run init, so no SessionStart hook refreshes the funnel cache and they are invisible in the usage numbers. The ruflo-core launcher now sets RUFLO_LAUNCH_SURFACE=plugin; mcp start (stdio) makes the existing 6h-cached /v1/messages fetch off the start path, gated on resolveFunnelEnabled(), and the User-Agent gains ' surface/plugin' from a closed allowlist. Nothing is written to stdout. LIA updated. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(ruflo-core): keep RUFLO_MCP_SPAWN inside the env-precedence audit window The four-line insertion pushed the existing RUFLO_MCP_SPAWN read past the audit's 20-line function-signature heuristic. Collapse it to one line and move the explanation to the header comment. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
53f95e36e6 |
feat(funnel): honor opt-outs in the messages fetch, wire opt-in telemetry, fix clone tracker
Operational telemetry (ADR-309, legitimate interest): - `hooks refresh-funnel` (SessionStart) checked only the RUFLO_FUNNEL env kill switch. `ruflo funnel disable`, project config, enterprise policy and a declined disclosure all still called funnel.ruv.io every session. It now resolves the full funnel precedence and makes no request when disabled. - The fetch's User-Agent adds the CLI release and OS/CPU family only: `ruflo-funnel/messages ruflo/<v> (<platform>; <arch>)`, sanitized to token characters. The live endpoint accepts it. - docs/privacy/funnel-legitimate-interest-assessment.md is the assessment ADR-309 requires. ADR-309 links it, and ADR-310's acceptance rule now names the one documented default request. Opt-in telemetry (ADR-302/305): - `ruflo funnel telemetry on|off|status` is the only way to grant the telemetry consent domain. Nothing granted it before, so the event queue never left the machine. - With consent, refresh-funnel flushes queued events once per session. - `funnel disable` and `telemetry off` revoke consent and delete the ID and the local queue. Clone tracker: - A failed traffic fetch was recorded as 0 clones (snapshots #15-#18 read 0 while GitHub reported ~258k in 14 days). The script now exits 1 and writes nothing. - The workflow reads TRAFFIC_TOKEN, falling back to GITHUB_TOKEN, because the traffic API needs push access. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
30f6c35946 |
docs: refresh MCP tool, command, and plugin counts in READMEs
Replace the onboarding claims of 314 MCP tools, 26 CLI commands, and 35 plugins with counts taken from the MCP registry, the CLI command loader, and plugins/*/.claude-plugin/plugin.json. List the in-repo plugins the catalogs had dropped. Addresses #4756 Co-authored-by: yuzhou <1991039819@qq.com> |
||
|
|
a3d45e64b9 |
feat(core): governed context delegation with reproducible benchmark proof (#4648)
* feat(core): add bounded context delegation with source-bound benchmark proof * feat(core): add governed Messages adapter and durable resumable live pilot * fix(benchmarks): isolate pilot fixtures and record bounded live timeout proof * fix(context-delegation): review fixes — pilot env allowlist, hash-before-import, real policy root; ADR-521 - subscription-pilot: the spawned claude gets an allowlisted environment (PATH, HOME, locale, XDG, CLAUDE_CONFIG_DIR, plus names in RUFLO_PILOT_CHILD_ENV_PASS) instead of the whole shell; a GH_TOKEN canary test proves it. Policy is evaluated for process.cwd(), not a hardcoded /home/ruv. - provider-pilot: the --runtime entry and policy runtime are contained and hashed before they are imported. - ADR renumbered 520 -> 521 (520 is agentdb episode CRUD on main). - Evidence regenerated for the new snapshot (9301fbfd…, Node 24): 300/300 quotes, coordinator bytes -97.56%, total boundary +3.83%; verify.mjs ok. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(context-delegation): honour --worker-available through the CLI parser; scope evidence hashes to owned files - context-plan read only f['worker-available'], but the parser camelCases flags, so the documented command always planned 'worker-unavailable'. Accept both spellings; new test drives the real CommandParser (fails without the fix). - results.json no longer hashes hooks.ts, index.ts and global-ai-budget.ts. Those files change in unrelated PRs, which would have failed verify.mjs on the next one. Evidence regenerated (20491e6e…, 14 hashes), 163/163 tests, verify ok. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(release): 3.70.0 Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
902f973b36 |
docs(dream-cycle): correct 2026-11-01 reachability framing (post-review) (#4637)
ruvnet's PR #4634 review comment correctly pointed out that an accepted inbound trust-change/topology-change message only reaches a generic eventBus.emit() with no in-repo subscriber (ADR-109's "event emission, not direct callback" design) -- not a live in-repo escalation as the original write-up implied. Verified against source same session. The fix itself, its tests, and the defense-in-depth property are unaffected. Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
1b783e0c98 |
dream(security): gate admin-plane trust-change/topology-change below ATTESTED (evaluated) #4633 (#4634)
* dream(security): #4633 gate admin-plane trust-change/topology-change below ATTESTED (evaluated) PolicyEngine.evaluateMessage()'s getOperationForMessageType() had no case for trust-change/topology-change (the two federation message types that mutate a peer's trust level or the mesh topology itself) — both fell through to the generic 'send' operation, granted from TrustLevel.ATTESTED, the same floor as ordinary data-plane messages. Unlike write/memory/spawn, there was no SecurityPolicy-configurable threshold for this category. Adds a dedicated 'admin-change' CAPABILITY_GATES entry (TRUSTED+ only) and a new minTrustLevelForAdmin SecurityPolicy field (default TRUSTED), mirroring the write/memory/spawn pattern fixed last night (#4619). The hardcoded floor cannot be bypassed by a loosened policy override, matching the existing defense-in-depth shape for remote-spawn/PRIVILEGED. 7 new tests (4 discriminating, 3 controls). Stash-isolated baseline: 4/17 fail exactly as predicted. Candidate: 17/17 pass. Full package suite: 684/684 (677 existing + 7 new), 0 regressions. tsc --noEmit: unchanged 5 pre-existing unrelated module-resolution errors, 0 in changed files. Independent adversarial critique (fresh context, re-ran stash isolation and the full suite itself): CONFIRMED core bug, PASS shippability. Two non-blocking caveats disclosed: (1) claim-event/agent-handoff still fall through the same default branch — pre-existing, already covered by their separate absence from DEFAULT_SECURITY_POLICY.allowedMessageTypes, not in scope tonight; (2) an uncited editorial comment citing "Identiverse 2026" — trimmed in this commit. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf * docs(dream-cycle): 2026-11-01 security gist + ledger row (#4633) Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf * docs(dream-cycle): record PR #4634 in ledger row Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
509aa0f503 |
dream(performance): #4597 AttentionCoordinator embedding-cache never memoized (evaluated, ACCEPT-scoped) (#4598)
* dream(performance): AttentionCoordinator embedding-cache memoization (WIP, evaluation in progress) Memoizes AttentionCoordinator.getOrCreateEmbedding()'s synthetic content-hash embedding per-AgentOutput via an identity-keyed WeakMap, instead of rebuilding it from scratch on every O(n^2)/O(numHeads*n^2) pairwise call across the flash/multi-head/hyperbolic/graph-rope coordination mechanisms. Twice-deferred finding (2026-10-20, 2026-10-25), now closed. 6 new tests (attention-coordinator-embedding-cache.test.ts), stash-isolated baseline fails 3/6 as predicted -> candidate 6/6 pass. Full @claude-flow/swarm suite 367/367 (361+6 new), 0 regressions. tsc --noEmit 0 errors both ways. Standalone wall-clock probe (multi-head, 5-trial median): n=20 25.927ms->1.070ms (~24.2x), n=50 158.119ms->4.655ms (~34.0x), n=100 652.951ms->16.550ms (~39.5x). Research gist + full receipt: docs/dream-cycle/dream-gist-2026-10-30.md. Issue/PR/ledger update to follow once the independent adversarial critique completes. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH484YJNjSdtxKAvbzp * dream(performance): post-critique fixes + final witness for AttentionCoordinator cache Independent adversarial critique: CONFIRMED-WITH-CAVEATS, no blocking issues (reproduced stash-isolated baseline/candidate result and the wall-clock speedup independently, on different hardware; confirmed no production caller exists outside this package's own new test). Fixed forward the one cheap, concrete caveat: documents the identity-keyed WeakMap cache's mutate-and-reuse staleness risk as a KNOWN LIMITATION comment (no current caller triggers it). The other caveat (2 of 6 tests reach into private internals) is disclosed, not fixed -- no other public surface exists to assert an identity-caching implementation detail against. Finalizes the research gist with the critique summary and witness stamp. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH484YJNjSdtxKAvbzp * dream(performance): backfill 2026-10-29 ledger row + append 2026-10-30 2026-10-29's row was never appended last night even though the pipeline really ran (dream/2026-10-29-swarm, #4572, #4573 all exist) -- STEP 25's "ledger update always happens" invariant was missed once. Backfilled from the real issue/PR content, not fabricated. Appended tonight's own row (#4597/#4598, AttentionCoordinator embedding-cache memoization). Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH484YJNjSdtxKAvbzp --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: r <r@x> |
||
|
|
7208f28c0a |
dream(security): enforce SecurityPolicy trust thresholds in PolicyEngine (evaluated) (#4619)
* dream(security): #4618 enforce SecurityPolicy.minTrustLevelFor{Write,Memory,Spawn} in PolicyEngine
PolicyEngine.evaluateMessage() gated federation messages solely via the
hardcoded CAPABILITY_GATES table; SecurityPolicy's minTrustLevelForWrite/
Memory/Spawn fields were declared, defaulted, and accepted as constructor
overrides but never read. By default this let memory-query/memory-response
messages through at TrustLevel.ATTESTED, one level below the policy's own
stated minTrustLevelForMemory: TRUSTED.
Adds a per-message-type policy-category check layered as an additional
restriction on top of CAPABILITY_GATES (never a replacement — a loosened
override cannot bypass that hardcoded floor). 10 new discriminating tests;
677/677 full package suite passes; stash-isolated baseline fails the 3
tests this fix targets.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH4ix1BStZRrZwPT81X
* dream(security): #4618 research gist for 2026-10-31
Local gist (gh gist create unavailable this session — GH_TOKEN invalid for
gh CLI; GitHub MCP tools used for issue/PR instead). Witness stamp computed
against candidate commit
|
||
|
|
7387295568 |
dream(memory): #4549 wire ControllerRegistry.set() — MutationGuard/AttestationLog activation was permanently dead (evaluated, ACCEPT-scoped) (#4550)
* dream(memory): wire ControllerRegistry.set() so MutationGuard/AttestationLog activation stops being dead code
memory-bridge.ts's post-init controller-activation wiring (reasoningBank,
learningSystem, skills, semanticRouter, gnnService, rvfOptimizer,
mutationGuard, attestationLog, guardedVectorBackend) has always gated
registration on `typeof reg.set === 'function'`, falling back to an
unread `reg._controllers` property otherwise. ControllerRegistry never
implemented a public set() method, so every external activation silently
took the dead fallback: registry.get('mutationGuard')/get('attestationLog')
always returned null, permanently disabling write-mutation validation
(fail-open "no guard installed = allow") and audit logging (silent no-op)
on the real store/delete/purge paths. Same bug shape as the already-fixed
#3327 Finding A (reasoningBank.store never existed, so its own
typeof-guard was dead too).
Adds ControllerRegistry.set<T>(name, instance) mirroring the shape
initController() already produces internally. Zero changes needed at any
of the 9 memory-bridge.ts call sites.
5 new discriminating tests reproduce memory-bridge.ts's exact activation
pattern; stash-isolated baseline fails all 5 (TypeError: registry.set is
not a function), candidate passes all 5. Full @claude-flow/memory suite:
650/651 both ways (1 pre-existing environmental failure, byte-identical,
unrelated chmod/root-bypass test). tsc --noEmit: 0 errors.
Evaluated, pending independent adversarial critique.
* dream(memory): close prior instance on ControllerRegistry.set() (post-critique)
Independent adversarial critique of
|
||
|
|
ee75b70201 |
dream(intelligence): #4531 wire real Fisher-information estimation into SONAManager's EWC++ path (evaluated, ACCEPT-scoped) (#4532)
* dream(intelligence): wire real Fisher-information estimation into SONAManager's EWC++ path
SONAManager's EWC++ catastrophic-forgetting mechanism was completely inert:
ewcState.fisher/.means were initialized empty and never written anywhere in
the core @claude-flow/neural package; consolidateEWC() (the only method
touching fisher post-init) only decayed an always-empty map and had zero
callers. Every computeEWCPenalty/computeEWCLoss call across all 5 learning
modes therefore always evaluated to exactly 0, in production (SONAManager
backs NeuralLearningSystem, loaded by @claude-flow/memory's learning-bridge).
Scoped fix (default 'balanced' mode only): BalancedMode now exposes
getConsolidationSnapshot(), deriving Fisher as squared-gradient and means as
the raw gradient from its existing gradientAccumulator (mirroring a working
reference pattern already in this monorepo's
plugins/cognitive-kernel/src/bridges/sona-bridge.ts). SONAManager's
triggerLearning() folds this into ewcState via the existing (unchanged)
consolidateEWC() decay step, then additive accumulation - online-EWC style.
Also removes 6 stale, never-gitignored .js files under
v3/@claude-flow/neural/src/modes/ that shadowed the current .ts sources for
any explicit .js-extension import (Vite/Vitest resolve a literal file on
disk over transforming a sibling .ts) and were themselves circularly broken
- this was blocking any vitest test of SONAManager/mode classes from ever
exercising real logic, confirmed via git-stash to reproduce identically on
the pre-candidate baseline and to be a necessary precondition for tonight's
evaluation, not part of the EWC logic change itself.
Disclosed scope limit: this makes the EWC *state* real and measurable; the
computed penalty is not yet wired into the gradient update itself (same gap
already disclosed as a stub in the reference plugin's own consolidate()).
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3LBmCGHLADvSaqWs2
* dream(intelligence): fix forward per independent adversarial critique
Round-2 fixes from an independent adversarial-critic pass on commit
|
||
|
|
9d854ddb9c |
dream(security): #4503 http_fetch SSRF bypass via IPv4-mapped IPv6 literals (evaluated, ACCEPT) (#4504)
* dream(security): http_fetch SSRF bypass via IPv4-mapped IPv6 literals
isPrivateOrLoopback() (the SSRF guard behind the http_fetch MCP tool's
validateUrl()) never stripped the "[...]" brackets Node's URL parser keeps
in `.hostname` for IPv6 literals. Two consequences:
1. The existing fc00::/7 (ULA) and fe80::/10 (link-local) checks
(`host.startsWith('fc'/'fe80:')`) never matched anything, since `host`
always started with "[" first.
2. There was no handling at all for IPv4-mapped IPv6 literals
(`::ffff:a.b.c.d`, normalized by Node to a canonical `::ffff:xxxx:yyyy`
hex form), so wrapping a loopback/private/link-local/cloud-metadata
IPv4 address in that form bypassed the guard entirely
(e.g. http://[::ffff:127.0.0.1]/, http://[::ffff:169.254.169.254]/).
Strips brackets once up front, then decodes IPv4-mapped-IPv6 forms back to
dotted-decimal and recurses into the existing IPv4 rules instead of adding
a parallel copy. 13 new tests (8 discriminating, verified to fail on the
pre-fix source via a stash-isolated run; 5 non-discriminating controls).
Independent adversarial critique: CONFIRMED-WITH-CAVEATS. Two pre-existing,
out-of-scope gaps disclosed in-source (IPv6 "::" unspecified address and
multicast/NAT64 ranges remain unblocked).
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_013bqQefaQjXhYZX2Acr9Jop
* dream(security): add 2026-10-26 research gist
Full SOTA report for tonight's security deep-dive (http_fetch SSRF
bypass via IPv4-mapped IPv6 literals) plus intelligence/swarm scan
findings and competitor comparison. No gist-publishing tool reachable
this session (same disclosed FALLBACK as every night since 2026-09-30)
— committed to this branch instead.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_013bqQefaQjXhYZX2Acr9Jop
* dream(security): update ledger for 2026-10-26
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_013bqQefaQjXhYZX2Acr9Jop
---------
Co-authored-by: Claude <noreply@anthropic.com>
|
||
|
|
2be0b69d68 |
fix(ci): gate helper sync on import and manifest checks (#4507)
Co-authored-by: Lenin Mookiah <2639584+leninworld@users.noreply.github.com> |
||
|
|
db141ba70e |
feat: managed workflows, unified console runs and verified advisory learning (#4471)
* feat(agent): add bounded managed dynamic workflows and verified lifecycle observation * feat(plugins): integrate managed workflows with mod policy and capability discovery * feat(managed): unify console runs and verified advisory learning * fix(managed): hydrate native recall receipts validated on ruOS * docs(managed): record authenticated console host blocker * docs(managed): qualify installed console and compatible native host * feat(managed): integrate verified cycles and isolate native memory * fix(managed): enforce offline native models and qualify feedback E2E * fix(managed): independent security and correctness review findings - gate managed_agent_interrupt through the managed_agent_control policy; terminate obeys the allowlist and deletes only its own environment when RUFLO_MANAGED_CONTROL=1 - track only events from the acknowledged message so a later poll cannot report the previous turn as finished - require the canonical base64 verifier signature so one receipt cannot fill the ledger - register RUFLO_MANAGED_AGENTS_BASE_URL as a trust-boundary env var (env-precedence audit) and key the credential scope marker with a per-process HMAC (CodeQL) - best-effort local snapshot writes; report messageId when a prompt fails after it was sent - console: rescheduling is running, budget/action-blocked sessions are active, not finished - document the remaining known limits in ADR 0004 Co-Authored-By: RuFlo <ruv@ruv.net> * docs: user guide section for managed cloud agents; correct ruflo-agent README counts Co-Authored-By: RuFlo <ruv@ruv.net> * fix(managed): scope marker is a generation number, never a hash of the API key (CodeQL) Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
e00a82f2fa |
docs: ChatGPT plugin badge in the README and a plugin section in the user guide (#4438)
Co-authored-by: r <r@x> |
||
|
|
c2069ed6f6 |
fix(metaharness): revive the cost dimension and single-source the verdict bands (ADR-152) (#3520)
Reconciling the shipped similarity code against docs/metaharness-user-guide.md
turned up three divergences between what ADR-152 specifies, what the code does,
and what the docs promise.
1. Cost normalization (vector index 8) was inert below $0.999.
ADR-152 Table 1 specified `log10(usd + 0.001) / log10(10)` clamped to [0,1].
`Math.log10(10)` is 1, so the division was a no-op and the expression reduced
to `clamp(log10(usd + 0.001), 0, 1)`. Because log10 is negative for every
usd < 0.999, the clamp flattened that entire range to a constant 0 — including
the $0.048 baseline the plugin README records. Two harnesses differing only in
cost scored `cosine === 1`; the documented 9-dim vector was effectively 8-dim.
Replaced with an explicit log band: $0.001 -> 0, $10 -> 1, log-interpolated
between, monotonic and non-finite-safe. Exported as `normalizeCost()` with the
band in `COST_BAND_USD`.
2. The verdict bands had two encodings, and they disagreed.
`audit-trend.mjs` inlined the bands with a 0.80 `minor-drift` floor while the
user guide documented 0.85; `drift-from-history` prints that verdict, so the
two diverged in the 0.80-0.85 band. The bands now live once as
`VERDICT_THRESHOLDS` + `verdictFor()` in `_similarity.mjs`, `audit-trend.mjs`
imports them, and `similarity()` returns `verdict` beside `overall`. The
documented 0.85 floor is canonical.
Deliberate user-visible change: structural similarity in [0.80, 0.85) now
reports `moderate-drift` instead of `minor-drift`. `--threshold` comparison is
unaffected (it tests `overall`), but consumers branching on the verdict string
should be re-checked.
3. The user guide's weight table said 0.4/0.3/0.3; ADR-152 and the code both say
0.6/0.25/0.15. Corrected the guide, which was the outlier.
The ADR gains a dated Revision section recording both fixes and the behaviour
change. The §Spike-result figures are unchanged (the LEGAL/SUPPORT fixtures are
near-identical on the cost axis), so test-similarity.mjs Phase 8 keeps pinning
the original anchors; new Phase 7b/7c/7d coverage pins the corrected semantics.
Note this does NOT address the coarse-cosine limitation ADR-152 itself flags
("numerical cosine alone is too coarse"): uniform quality degradation still
reads as high similarity. Drift gates that must catch absolute loss should pair
structural similarity with the absolute gates rather than rely on --threshold.
Verification:
node plugins/ruflo-metaharness/scripts/test-similarity.mjs -> 128 passed, 0 failed (was 102)
node plugins/ruflo-metaharness/scripts/_spike-similarity.mjs -> both invariants hold
Co-authored-by: longxinjun-ai <longxinjun-ai@users.noreply.github.com>
Co-authored-by: rUv <ruv@ruv.net>
|
||
|
|
9cf2ad57ba |
dream(memory): #4137 wire delete-sync into AutoMemoryBridge.importFromAutoMemory() (evaluated, ACCEPT) (#4138)
* dream(memory): #4137 AutoMemoryBridge was additive-only, never delete-synced removed/vanished source content
importFromAutoMemory() diffed new content against AgentDB by content-hash
to insert/skip, but never detected or deleted an entry whose source
heading (or whole source file) was removed — deleted memory content
stayed retrievable via semantic search indefinitely. Adds a per-source-
file key diff (reusing the existing single bulk query, zero schema
change) plus a second pass for files removed entirely from disk, each
with a false-full-wipe guard. Evaluated: 7 new discriminating tests,
baseline-fails/candidate-passes via stash isolation; full suite and tsc
clean modulo pre-existing/unrelated flakes. Adversarial critique found
and this session fixed forward the whole-file-removed gap and a vacuous
test assertion before this commit.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01UkpQrJUNdFzDJVnY2FzXh8
* dream(memory): #4137 append 2026-10-13 ledger row
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01UkpQrJUNdFzDJVnY2FzXh8
* fix(memory): #4137 bump @claude-flow/memory to 3.0.5 for the delete-sync change
CI's leaf-package-publish audit caught this: @claude-flow/memory is a
non-bundled leaf that resolves from the registry for the release train,
so a publishable source change (auto-memory-bridge.ts) must bump the
leaf's own version or the fix silently never reaches a release. Bumps
the leaf's package.json, the CLI's exact pin (dependencies +
optionalDependencies), and the matching pnpm-lock.yaml specifier.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01UkpQrJUNdFzDJVnY2FzXh8
* fix(memory): #4137 scope delete-sync to the writing memoryDir, avoid version collision with #4183
Review finding: the backend can be shared across multiple memory dirs
(e.g. the SessionStart hook's main dir vs. a worktree dir from
worktreeMemoryDir()). Without recording which memoryDir wrote an entry,
importing one dir could see another dir's same-named file/heading as
"gone" and delete it. Entries now carry metadata.memoryDir, and both
delete-sync passes (per-heading diff and whole-file-removed) only
consider entries whose memoryDir matches the importing bridge's own —
legacy entries written before this field existed (no memoryDir at all)
are therefore never delete-sync eligible. Two new discriminating tests
cover cross-dir isolation and the legacy-entry case; all 9 existing
delete-sync fixtures updated to carry memoryDir so they still exercise
the intended "same dir" path rather than being silently excluded.
Also bumps @claude-flow/memory to 3.0.6 (CLI pins + lockfile specifier)
since #4183 independently claimed 3.0.5 for the same leaf — whichever
of the two PRs lands second needs a version past the other's.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01UkpQrJUNdFzDJVnY2FzXh8
* fix(memory): #4137 revert stray codex/security/shared lockfile drift
An earlier `pnpm install` run in this session (unrelated to this PR's
own change) left pnpm-lock.yaml recording codex/security/shared at
specifier 3.0.6 while v3/@claude-flow/cli/package.json still pins them
at 3.0.5 — a mismatch that got swept into a prior commit by staging the
whole lockfile file. `pnpm install --frozen-lockfile` (what CI runs)
fails on that drift regardless of this PR's actual content. Reverted
those three specifiers back to 3.0.5 to match package.json; the memory
specifier bump to 3.0.6 (this PR's real change) is untouched. Verified
locally: `pnpm install --frozen-lockfile` now succeeds.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01UkpQrJUNdFzDJVnY2FzXh8
* chore(memory): untrack test-generated agentdb.rvf.idmap.json
Swept into the previous merge commit by running the test suite to
verify the merge; it's a fresh-run artifact (empty idToLabel/labelToId
maps), not source. Added to .gitignore alongside the other *.rvf
test-pollution exclusions in this package.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(memory): bump @claude-flow/memory to 3.0.7 for the delete-sync fix
AutoMemoryBridge.importFromAutoMemory()'s delete-sync fix in this PR
changed v3/@claude-flow/memory/src/auto-memory-bridge.ts without
bumping the package version. @claude-flow/memory is not bundled into
the release tarballs — it resolves from the registry — so publishing
the three train packages without this bump would ship the old 3.0.6
copy and the fix would reach nobody (ruvnet/ruflo#3335, #3390).
Will publish @claude-flow/memory@3.0.7 standalone once this merges.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(memory): #4137 bump CLI pins + lockfile specifier to match memory@3.0.7
|
||
|
|
16507b171a |
dream(swarm): #4173 TaskOrchestrator.getQueuePosition() priority-map key typo (evaluated, ACCEPT) (#4174)
* dream(swarm): #4173 TaskOrchestrator.getQueuePosition() priority-map key typo getQueuePosition()'s local priorityOrder map used keys critical/high/normal/low/background, but TaskPriority is critical/high/medium/low. createTask() defaults unspecified priority to 'medium', so the lookup always fell through to 0, ranking default-priority tasks behind even 'low' in the taskQueuedEvent position field. Real dispatch (getNextTask/getPriorityQueue) uses a separate, already-correct map and was unaffected. Fixed the map to Record<TaskPriority, number>, which also gives compile-time exhaustiveness against this regression recurring. Evaluated: ACCEPT. Stash-isolated baseline 278/280 (2 discriminating failures) -> candidate 280/280, zero other regressions. tsc clean both ways. Independent adversarial critique: CONFIRMED. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01FpoMprTZKfkjhytxvLpyTT * dream(swarm): #4173 append 2026-10-14 ledger row Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01FpoMprTZKfkjhytxvLpyTT --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: r <r@x> |
||
|
|
df2dd4bfd6 |
dream(security): #4312 hooks_codemod path-containment bypass (CWE-22) (evaluated, ACCEPT) (#4313)
* dream(security): hooks_codemod path-containment bypass (CWE-22)
resolveTargets()'s containment check (hooks-tools.ts) used an unanchored
abs.startsWith(cwd) string-prefix comparison. An absolute path.resolve()
result is returned unchanged for an already-absolute input, so a sibling
directory whose name merely starts with the project directory's name
(e.g. cwd=/home/user/ruflo, target=/home/user/ruflo-staging/notes.ts)
passed containment and let this live, CLAUDE.md-recommended Tier-1 MCP
tool read+write outside the project root.
Anchors both call sites (file/files[] and glob-match branches) at a
path-separator boundary, matching the already-correct pattern used in
@claude-flow/security's isWithinPrefix(), @claude-flow/hooks/workers,
and @claude-flow/plugins/security elsewhere in this codebase.
4 new tests (2 discriminating, real temp-dir fs I/O; 2 non-discriminating
controls). Stash-isolated: both escape tests fail on baseline (file
genuinely written outside root), 4/4 pass on candidate. Related suites
(mcp-tools-deep, validate-input-*, codemod-engine/routing/corpus):
229/229 unchanged. tsc --noEmit byte-identical (9 pre-existing
environmental errors, unbuilt sibling packages).
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_0171ELk4aJ9SPhudJw3UnjgL
* dream(security): disclose symlink containment gap (follow-up)
Independent adversarial critique of
|
||
|
|
a02d8aca6d |
docs(dream-cycle): append 2026-10-19 swarm ledger row
Records tonight's #4285/#4286 (TopologyManager queen/coordinator failover fix, ACCEPT) plus GitHub-verified fates for 10-16..10-18 (none transcribed as rows, none stale) and the trailing-7-night merge status, per STEP 25 of the nightly Dream Cycle routine. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01Ch1XkuxbE8ALBoXqZyiA8A |
||
|
|
db71baa436 |
dream(swarm): #4285 TopologyManager never promotes a replacement queen/coordinator after death (evaluated, ACCEPT)
removeFromRoleIndex() nulled the cached queenNode/coordinatorNode on removal with no replacement; electLeader()'s hierarchical/centralized branches then silently fell through to generic mesh-style ranking, electing a leader without ever promoting its role. failoverEnabled (default true) was read nowhere in the package. After exactly one queen/coordinator death, getQueen()/getCoordinator() returned undefined forever, contradicting CLAUDE.md's "queen controls workers directly" guarantee. Adds TopologyManager.promoteToRole(), gated behind failoverEnabled, called from electLeader()'s hierarchical/centralized branches before the generic fallthrough. 3 new discriminating tests: 2/3 fail on stash- isolated baseline exactly as predicted, 1/3 (failoverEnabled:false preserves old behavior) is a correct non-discriminating control. Full @claude-flow/swarm suite 335/335 both ways, tsc clean both ways. Independent adversarial critique: CONFIRMED-WITH-CAVEATS, no blocking issues. Caveats disclosed in-source (promotion doesn't rewire connections/adjacency itself; self-healing under the default autoRebalance: true) and in the issue/gist. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01Ch1XkuxbE8ALBoXqZyiA8A |
||
|
|
fa7846d19b |
docs: update dream-cycle ledger for 2026-10-18 (memory)
Appends the 2026-10-18 row (issue #4270, PR #4271) and a verified trailing-fate note for 10-16/10-17 plus the now-confirmed 7/7 merge rate across the last 7 nights. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_016nZstVChPSSNBwmMUJW8tE |