* 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>
The guard already covered task_update results (it screens the whole call), but
team_create/team_update carry shared free text too and were unscreened. Skills now
end with the skill to use next, the three agents say how ruflo agents do the work
the service only records, and two commands cover memory and the board.
Co-authored-by: r <r@x>
Firestore reads without orderBy return document-id order, so capped reads kept an
arbitrary slice: the board showed an arbitrary 100 runs once a tenant had more, and
evidence exports read the first 1000 audit records then filtered, dropping a run's
events on busy tenants. Lists now order newest first; evidence queries audit by
target (30-value in-chunks). package.json still said 0.1.6 so /health could not
identify a deployment. Adds Firestore store tests with a limit-after-order double.
Co-authored-by: r <r@x>
Apply the #2935 explicit-wins gate to the two scalar fields restored in
initializeWorkerStates(): constructor arg > config.json > saved state > default.
Co-authored-by: r <r@x>
* docs(adr): ADR-500 ruRE capability map, trust rules and the acceptance test
One reference for the seven tools, the doors, the trust rules and the CUDA
acceptance test, with a run of the published 3.61.1 against cuobjdump.
Co-Authored-By: RuFlo <ruv@ruv.net>
* docs(adr): ADR-500 explains the sm_120 shared figure and points at ADR-501's eighth tool
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
New read-only tool: per kernel and architecture, theoretical occupancy at several
block sizes, what limits it, the best sizes and flags; optionally the text of a
driver-API harness the person can build to check it on their own GPU. Nothing is
compiled, loaded or run by ruRE.
The model equals NVIDIA's cuda_occupancy.h on 1,770,216 combinations (8 archs,
limiting sets included; fingerprints committed so CI repeats it) and the CUDA
driver on real GPUs: RTX 5080, RTX 3090, RTX 4090, A100, H100. Found on hardware:
from sm_90 the cubin's shared size already includes the driver's 1 KiB reservation.
Also fixes the reader reporting sm_5 for standalone cubins from CUDA 12 (ELF OS ABI
51 keeps the SM number in the low byte of e_flags); real CUDA 12.8 cubins added.
ruflo-rure 0.6.0.
Co-authored-by: r <r@x>
cancel() marked a running WorkerDispatchService worker 'cancelled', but executeWorker() later overwrote it with 'completed' and emitted worker:completed when the in-flight executor returned. The caller saw a successful terminal result for work it had cancelled. cancel() also removed the id from the concurrency set immediately, so another worker could start while the cancelled executor was still running, exceeding maxConcurrent.\n\nKeep the slot until the executor settles in finally, and make executeWorker/catch preserve the cancelled state without emitting completed/failed. Pending cancellation also records the terminal timestamp and phase.\n\nRegression uses maxConcurrent=1: it cancels after the first worker starts, queues a second, and asserts the slot is not released before the cancelled executor settles, status/phase stay cancelled, result is undefined, and no completed/failed event is emitted. Baseline fails because the second worker starts immediately; candidate passes. Full swarm suite 353/353 and tsc --noEmit clean.
WorkerDispatchService returns static placeholder data from all 12 triggers but exposed it as an ordinary successful WorkerResult. The service is re-exported from the published @claude-flow/swarm package, so a direct consumer could present invented counts, recommendations and 'benchmarks' as real analysis (#4410 automation scan).\n\nMark every result from the current placeholder executors with synthetic:true and a reason, and label prompt context derived from those results as synthetic at both the heading and per-worker line. The work-phase comment now states that no real work is performed; the 10ms cap is unchanged.\n\nRegression dispatches all 12 triggers, waits for completion, and asserts the disclosure fields and context labels. Baseline (TS source stashed) fails with synthetic undefined; candidate passes. Full swarm suite 352/352 and tsc --noEmit clean.
Resolve the structural smoke script through CLAUDE_PLUGIN_ROOT.
Bump the browser plugin patch version and align its smoke assertion
to make the fix visible to installed copies.
Both registries rebuild extension caches by calling every surviving plugin's register* methods again on a sibling's unregister/reload. The plugin interface documents that these methods run during initialization; non-idempotent implementations can repeat counters, listeners, timers or allocations tied to unrelated plugin churn (#4410 plugins scan).\n\nCapture the raw values returned by each plugin at initialization (and on hot reload), store them on the entry, and rebuild caches by replaying those values. The enhanced registry still runs conflict resolution on every replay, so first/last/namespace/error semantics and ownership maps are preserved without re-invoking plugin code.\n\nRegression tests count registerMCPTools across unregister for both registries, verify conflict replay, and verify hot reload replaces the snapshot. Baseline (sources stashed) fails all count assertions with 2 calls instead of 1; candidate focused suites pass 52/52. Full plugin suite: 475 passed, 3 skipped, 1 pre-existing Windows safePath failure reproduced on baseline.
New option rureFolders (name=/folder pairs); a sample names one as @name/sub/file.
The preflight resolves the alias after checking the folder and every part below it
for links, and swaps the absolute path into the row's -p JSON. Option writes stay
install-class and always ask. Runner stays at 500 lines (preflight now gets options).
Co-authored-by: r <r@x>
`/plugin marketplace update` compares plugin.json "version" with the installed
copy, so a fix merged without a bump never reaches existing installs (#4436
left ruflo-console at 0.45.1 until #4443 bumped it by chance).
scripts/audit-plugin-version-bump.mjs diffs <base>...HEAD and fails when a
plugin has shipped changes but its plugin.json version did not increase. New
plugins pass. Not counted as shipped: tests/, docs/, README*.md, CHANGELOG*.md,
*.spec.* and *.test.* files, and scripts/smoke*, scripts/test-*, scripts/bench*
(smoke scripts and tests that pin the version are edited together with a bump).
SKILL.md, commands/*.md and agents/*.md do count, since they ship.
.github/workflows/plugin-version-bump.yml runs it on PRs touching plugins/**.
The label skip-plugin-version-check skips the job.
Verified against history: #4436 (43a395435) fails, #4443 (7564f7cef) passes.
The workflow itself has not run on GitHub yet.
Co-authored-by: RuFlo <ruv@ruv.net>
Off by default. Observes Read/Write/Edit/MultiEdit file_path, and at the end of a
main-loop turn appends one fixed-wording line naming up to three validated
project-relative binary/library/asar/CUDA files (12 per session, each once).
Offer only: never runs ruRE, never denies or edits a call. Inert without a ruRE
MCP tool. Harness gains World.tools and $.tool.list.
Co-authored-by: r <r@x>
* fix(deps): zod 4.6.7 in graph-intelligence and browser; time-boxed accepted entries for nested zod 3 (#4442)
GHSA-mrhx-c7xc-m3w5 (zod <4.6.6) turned the supply-chain audit red for every PR.
Both projects' own zod dependency moves ^3.22.4 -> ^4.6.7; the only code change zod 4
needs is a key schema on z.record (7 calls). The regenerated locks are now consistent
with package.json (npm ci works). The audit still names zod because other packages
(@claude-flow/cli|hooks|security|plugin-gastown-bridge, agentic-flow) keep nested zod
3.25.76 copies; two time-boxed accepted entries (expire 2026-11-23, tracked in #4442)
cover those. Needs CODEOWNER review (policy file).
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(deps): pnpm lock follows the browser package's zod 4.6.7
The first commit changed v3/@claude-flow/browser/package.json but not v3/pnpm-lock.yaml,
so every 'pnpm install --frozen-lockfile' job failed with ERR_PNPM_OUTDATED_LOCKFILE.
Minimal edit: the browser importer's zod specifier/version and the /zod@4.6.7 package
block (registry integrity). Proved with a clean 'pnpm install --frozen-lockfile', then
pnpm -r build, browser tsc --noEmit and its tests (231 passed).
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* feat(ruflo-console): CUDA row on the ruRE page, DETECT routes and a hint from the native reader (ADR-497)
dt-re-cuda calls rure_analyze_cuda; cudaLines shows fatbin entries, kernels with
registers/code/constant/shared memory, and PTX, from real captured CLI answers.
DETECT sends .cubin/.fatbin/.ptx to it, and the native reader points a CUDA host
binary at it. Console 0.47.0. Needs a CLI with the tool (after 3.60.1).
Co-Authored-By: RuFlo <ruv@ruv.net>
* test(ruflo-console): CUDA e2e must handle a Node without zstd
CI's Test Suite job runs Node 20.20.2, which has no zstd, so the CLI correctly
reported the CUDA 13 PTX as unread and the test that expected it to be read
failed. The test now expects the read where zstd exists and the explicit
'this Node cannot read zstd' note where it does not. Run under both Node
22.23.2 and 20.20.2.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* feat(rure): rure_analyze_cuda — CUDA fatbin, cubin and PTX static analysis (ADR-0006)
New read-only MCP tool and an original pure-TypeScript reader: fatbin
containers and entries (kind, sm_NN, zstd/LZ4 under size caps), cubin kernels
from the symbol table with registers (EIATTR_REGCOUNT), code size and
constant/shared/local memory, and PTX version/target/kernel names. Parses,
never executes; strings screened by AIDefence; decompression budget charged
per attempt. Checked against real nvcc 12.8 and 13.0 output (sm_75/80/90) and
cuobjdump: committed fixtures with recorded ground truth, plus a live test
that compiles with a local nvcc. ruflo-rure 0.5.0.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(rure): rure_analyze_cuda description carries the ADR-112 'Use when' guidance
The tool-description audit (ADR-112) failed the PR: one tool without guidance.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(rure): linear-time PTX sniff and scan (CodeQL js/redos, plus a quadratic one it did not flag)
looksLikePtx used a lazy comment pattern inside a repeated group, which
backtracks exponentially (CodeQL js/redos); it is now a forward scan. The
directive regexes in scanPtx matched with ^\s*, which rescans a whole run of
blank lines at every line start: 80000 blank lines took 4.6 s and 320000 took
71 s. They now match space and tab only and bound the rest. Tests: pathological
comment structure, and long blank-line and whitespace runs, all under 500 ms.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* feat(ruflo-console): ruRE DETECT, long lists, and a structured view for Claude (ADR-496)
DETECT picks the reader from the folder/file kind and extension (never the
writing one). Long lists wrap onto their own lines (60 items, 120 lines in
all). console_run answers with a ruRE run's lines and console_state carries a
rure block, every string through the model path. preflight may now return
replacement args/label/lab/note/lines. Console 0.46.0.
Co-Authored-By: RuFlo <ruv@ruv.net>
* test(ruflo-console): DETECT e2e must not assume the format line is first
Without AIDefence (CI) the reader puts a 'not screened' caveat first, so the
ELF/PE assertions at index 0 failed on the Ubuntu runner. Look for the format
line anywhere in the result.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
The sample rule was textual (relative, no ..); a link inside the project
that points outside it passed and the rure_* tools opened it. Every ruRE row
now walks the sample on disk before it runs (new ActionSpec.preflight, awaited
by the runner), for the page and for console_run alike. Console 0.45.2.
Also fixes ruRE comments citing ADR-492 (it is ADR-494).
Co-authored-by: r <r@x>
* fix(console): accept Windows paths in the autopilot envelope
#4434 added Windows path parity across the console, but the autopilot
envelope's own path validator still rejected any `\`, and the downstream
`isProtectedPath` and `pathAllowed` guards compared with POSIX-only string
ops. The code is unreachable today because autopilot start is still gated
off on Windows (ap-windows-gate.spec.ts), but it is the next thing a
Windows user will trip on when that gate is lifted — the natural
`C:\work\app` form, and every UNC path, is refused with the opaque "is
not an absolute folder below the root with no .." error.
Four narrow fixes in `hooks/data/ap-envelope.ts`, driven by the
separator-aware helpers already in `hooks/data/paths.ts`:
- `isProtectedPath`: fold `\` to `/` on a drive-lettered or UNC path
before the protected-dir compare.
- `validateEnvelope` path check: drop the unconditional
`path.includes('\')` reject (it contradicted `isAbsolutePath` which
already accepts `C:\x` and `\srv\share`), and tighten the drive-root
regex `/^[A-Za-z]:\/?$/` → `/^[A-Za-z]:[\/]?$/` so `C:\` is still
refused explicitly (was previously caught by the backslash reject).
- `validateEnvelope` output canonicalisation: use `trimTrailing` instead
of `/\/+$/` replace, so a trailing `\` on a Windows path is stripped
the way `/` already is on POSIX.
- `pathAllowed`: use `hasParentSegment`, `samePath` and `below` from
paths.ts. A file at `C:\work\app\file.ts` is now inside envelope path
`C:\work\app` (and `c:\WORK\app\file.ts` is too), while
`C:\work\application\file.ts` still is not.
Semantics on a POSIX envelope are unchanged — the new helpers degrade
exactly to their old string ops when neither side is a Windows path.
New `tests/ap-envelope-windows-paths.spec.ts` pins what should and should
not be accepted (13 cases: backslash drive, forward-slash drive, UNC,
trailing-separator strip, `..`, bare-drive-root, protected-folder,
pathAllowed under case + separator variation, prefix-match rejection).
Verified on Windows 11: new spec 13/13, ap-core.spec.ts 31/31 (no POSIX
regression), 5 envelope-adjacent specs 64/64 combined, full console suite
3444 total · 3399 pass · 13 fail — same pre-existing baseline as #4434's
own run, zero regressions.
Follow-up to #4434 R1 (https://github.com/ruvnet/ruflo/pull/4434#issuecomment-6371423874).
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix: keep the backslash reject for POSIX-rooted envelope paths
#4436 review (@ruvnet): dropping `path.includes('\')` outright also
dropped the refusal for a POSIX-rooted path with backslashes smuggled
in. `/work/app\..\..\other` passes `isAbsolutePath` (POSIX form), and
`hasParentSegment` splits POSIX-only when `isWindowsPath` says the path
is not Windows, so the `..` segments are invisible to it. On a Windows
host, that leading-`/` path then resolves to `\other`, outside the
folder the user named. Unreachable today because autopilot is still
gated off on Windows, but it is the guard that gate's removal depends
on.
Keep the backslash reject, but only for non-Windows paths (POSIX
should never have `\` in its path). The native Windows forms
`C:\work\app` and `\srv\share\app` continue to pass; the mixed
`/work/app\..\..\other` form is refused as before.
Added case to tests/ap-envelope-windows-paths.spec.ts.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: RuFlo <ruv@ruv.net>
The parser stores `--keep-config` and `-k` as `keepConfig`, but cleanup
read `flags['keep-config']`, which is always undefined. So
`cleanup --force --keep-config` deleted claude-flow.config.json and
stripped the hooks and claudeFlow blocks from .claude/settings.json
anyway. Read `keepConfig`, keeping the kebab key as a fallback as
update, init and mods do.
* test(console): fixture file system accepts Windows drive paths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): Windows project folders are project folders (ADRs, export, catalog, mission cost)
Guards that accepted only a path starting with "/" treated a Windows session
folder (C:\Users\x\proj) as "no project folder is known". Adds hooks/data/paths.ts
(pure string helpers: isAbsolutePath, joinPath, samePath, plus hasParentSegment,
normalizePath, below, trimTrailing, isWindowsPath) and uses it at the absolute-path
guards in adr, event-export, wf-file, plugin-catalog, mission-cost (and the ledger
install path), wf-worktrees, skills-lab, wf-drill-io, facts, ap-envelope and
register. Each caller keeps its own ".." refusal; POSIX paths take the same code
path as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): protected autopilot folders match ignoring case on Windows paths
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): find the home folder on Windows (sessions, plugin health, What's new)
Implements homeOf function that checks HOME → USERPROFILE → HOMEDRIVE+HOMEPATH
with comprehensive test coverage. Fixes state.home initialization on Windows
where HOME is unset.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): disk writes work on Windows through the host file API
Windows has none of uname, dd, sh, install, mkdir or cp in Claude Code's process
environment, so every console write (Events, Timeline, autopilot journal, ADRs,
exports, .gitignore) failed there. New write flavor host-fs, chosen on win32 (no
uname is run), carries the enumerated writes through $.fs.read/write/exists via
writeVia. Linux GNU and macOS/BSD argv are unchanged (pinned by test).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): autopilot kill flag can be cleared on Windows; document host-fs create window
Windows has no delete, so clearKill rewrites the KILL flag with a fixed marker and
killSeen treats exactly that content as not set (host-fs only); stopNow rewrites
the flag empty so a second stop is seen. POSIX rm/stat behaviour is unchanged.
write-via and wf-file now say host-fs creates are check-then-write (no O_EXCL).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): no Linux-only process probe on Windows; clear probe timers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): a hive started from the console shows at once
When a start's CLI run exited 0 but its verify fails (the CLI can return
before its state file lands), wait 1 s via host.after, read fresh and verify
once more before reporting the "expected ..." text. No retry when the run
failed; exactly one retry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(console): pin Windows containment, parent-segment and UNC rules in paths.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): workspace keys equal across drive-letter case and trailing separator
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): autopilot start is refused on Windows until atomic appends and Windows-aware path checks exist
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(console): 0.42.2 changelog and version
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(console): read home variables by literal name so the module loads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* post-merge cleanup: finish #4036 integration
The Option B merge commit (4313013cb) landed cleanly against upstream/main
but a batch of merge-resolution edits in the working tree were not persisted
into the commit itself. This commit finishes the integration:
Path-helper consolidation (abs-path.ts → paths.ts):
- hooks/data/wf-drill-io.ts: add missing paths.ts import for below,
hasParentSegment, isAbsolutePath, samePath, trimTrailing (fixes 4
wf-drill-read.spec.ts failures that threw `ReferenceError: isAbsolutePath
is not defined` at runtime).
- hooks/adr.ts: migrate from ./data/abs-path to ./data/paths, pulling in
joinPath which is needed at lines 89/94.
- hooks/register.ts: drop the rootedPath import from the deleted
abs-path.ts; inline the equivalent isAbsolutePath+joinPath expression.
- hooks/data/event-export.ts, hooks/data/wf-file.ts: drop the duplicate
isAbsolutePath import from the deleted ./abs-path (the main-side wider
'./paths' import already covers it).
VERIFY_RETRY_MS lifecycle (ADR-450 interaction with Marius' feature):
- hooks/runner.ts: extend the retry condition — `verified === 'n/a' &&
spec.verify !== undefined` also retries, so a snapshot that hasn't
loaded yet (null, not "no verifier") gets the one-second re-check.
Tests brought in line with the new timing / platform guards:
- tests/tui-actions.spec.ts: settle(600) → settle(1200) at the point the
runner's VERIFY_RETRY_MS one-second re-check has to resolve before the
verdict is drawn.
- tests/windows-drive-path-sites.spec.ts: fsWithDir made separator-agnostic
via a normSeps helper, since joinPath now uses the base path's own
separator (`\` on a Windows base).
Version bump:
- .claude-plugin/plugin.json, hooks/version.ts, scripts/smoke.sh: 0.44.7
→ 0.44.8.
- CHANGELOG.md: prepend 0.44.8 entry crediting #4036 and @socrates6969.
Verified: full console suite 3400 total · 3362 pass · 15 fail · 23 skipped.
Every one of the 15 remaining fails is pre-existing on main or a
platform/env limitation (Windows chmod, fake-timer timing, codex not
installed) — zero merge-caused failures remain.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: Marius Carlsson <109006081+socrates6969@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Mario Jauvin <marioja@users.noreply.github.com>
Co-authored-by: r <r@x>
getUpdateType compared major, minor and patch independently. With 3.60.0
running and 3.59.17 as the registry latest, the minor check failed but
patch(17) > patch(0) returned 'patch', so the startup check auto-installed
3.59.17: a downgrade. It also made 'ruflo init' run npm install in the project
and time out the mods-cli-bin test on the 3.60.0 release PR.
An update is a strictly newer version: guard with semver.gt first.
Co-authored-by: r <r@x>
* feat(ruflo-console): ruRE page in TOOLS — static reverse engineering from the console (ADR-494)
A TOOLS page for the six rure_* tools of ruflo-rure, built the way the Sandbox
page is: six Dev Tools entries (dt-re-*) drawn on a page of their own, so they
share the confirm gate, palette ids and result panel. Five rows are $0 reads;
UNPACK .ASAR writes outside the project and asks first. A new 'sample' field
takes only a project-relative path. Results are the analyzed file's own text
and pass plain() so a hostile binary cannot put an escape on the terminal; a
number that is not a measurement reads n/a. A CLI without the tools says to
update. Enter in a ruRE field runs that page's row.
Tests: rure-page.spec.ts (catalog vs real schemas, readers vs real captured CLI
output, hostile answers, page, guide, palette, Enter routing) and
rure-e2e.spec.ts (every row's argv through the built CLI on real files,
including a hostile ELF; fails with plain() removed). Console 0.44.7 -> 0.45.0;
ruflo-rure 0.4.1 -> 0.4.2 (docs only).
Co-Authored-By: RuFlo <ruv@ruv.net>
* test(ruflo-console): ruRE e2e accepts either AIDefence outcome (CI has no AIDefence)
The .NET e2e asserted a string literal was 'hidden by AIDefence', true only
where the optional package is installed. In CI the tool reports screened:false
and the page says 'not screened: AIDefence was unavailable'. Both are honest;
the test now pins that the screening state is always on screen.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ruflo-console): ruRE EVM result no longer shows a doubled ellipsis
plain() already marks a clipped value; the reader added a second one to the
event topic and the IPFS hash. Test pins it.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* fix(github): stop reporting merge/close/update success when nothing happened
github_pr_manage merge/close and github_issue_track update/close
returned success when nothing happened on GitHub:
- A failed `gh` call (merge conflict, failing checks, auth, unknown
number) fell through to the local JSON store and returned
{ success: true, source: 'local-store' }.
- That fallback matched records with key.includes(String(n)) against
`pr-<Date.now()>` ids. It returned success whether or not anything
matched, and could mark an unrelated record (prNumber 12 vs
pr-1786319612345).
- github_pr_manage validated owner/repo but never passed them to `gh`,
so merge/close acted on the cwd's repository (fixed for issues in
#2963).
Now:
- When `gh` is present, a failed command returns success: false.
- Offline, only a local record whose id is exactly pr-<n> / issue-<n>
is updated; otherwise the call returns success: false.
- A missing number is an error.
- PR actions pass --repo owner/repo.
list/create and their offline local-store behaviour are unchanged.
Fixes#4424
* fix(github): include gh's error text when merge/close/update fails
Per the #4424 triage: a failed `gh` call now reports gh's stderr (or
the error message when there is none) along with the action, e.g.
"gh pr merge 12 failed: X Pull request #12 is not mergeable: ...".
runArgv keeps its string | null contract and is now a thin wrapper over
runArgvResult, which returns { out } or { error }. The four mutating
paths use runArgvResult directly.
Refs #4424
neural_compress prune deleted every pattern whose usageCount was below
targetSize and saved the result. Nothing in the neural store records
usage: patterns are written with usageCount 0 and only max-merged by
distill and import. So any targetSize above 0, including the 0.5
default and a "10% reduction" of 0.1, deleted and persisted every
pattern while reporting success.
Prune now returns success: false with the reason, and never calls
saveNeuralStore(), until usage is actually tracked. This is the same
treatment quantize received in #4195. The targetSize schema description
no longer promises a 0-1 size reduction. neural_optimize's zero-norm
prune is a separate path and is unchanged.
Fixes#4423
daa_agent_adapt read the score as
`(input.performanceScore as number) || 0.8`:
- A failing score of 0 became 0.8, raised successRate, and was sent to
AgentDB as { success: true, quality: 0.8 }.
- A missing score was recorded as the same fabricated 0.8 success.
- Out-of-range scores were accepted, although the schema says 0-1.
A given score must now be a finite number in [0, 1], and an invalid one
returns success: false without touching the agent. An omitted score
records no score: successRate and the AgentDB outcome are left alone,
while the adaptation itself (feedback and the adaptation count) is
still recorded.
Fixes#4426
FallbackEmbeddingService.embed() spawned 'npx agentic-flow@alpha embeddings generate' with execFileSync, so whenever the primary embedder was unavailable each embedding could freeze the process for up to 10 seconds. Swap to async execFile and await the callback; keep the same 10s timeout, shell:false argument array, JSON parsing, cache and hash fallback (#4410 memory scan).\n\nExport the service for a focused regression. The test mocks both execFile and execFileSync: candidate lets a 10ms timer fire while the 60ms child is pending and returns the child's vector; baseline (export-only) blocks the timer and fails.
rescueAgentdbEmbedder() used a process-wide boolean to avoid re-patching. AgentDB registries are keyed by dbPath and each owns a distinct embedder, so after the first store was rescued every later store kept its mock embedder and wrote/searchable vectors from AgentDB's random fallback (#4410 memory scan).\n\nThe per-embedder __ruvectorRescued sentinel already makes the patch idempotent. Remove the global flag, keep the sentinel check, and export the helper for a focused two-store regression. Baseline (export-only, no behavior change) rescues the first embedder and leaves the second false; candidate rescues both.
Move the external agentic-qe-fleet entry from v3.15.11 (221d6de1) to
v3.15.12 (90a91fe3), the current npm latest, and update the README links,
the external-plugins test fixture and ADR-484.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(reasoningbank): count each duplicate removal once
consolidate() built its candidate array once, then kept comparing entries after deleting them. In a 3+-way similarity cluster it removed a tombstoned pattern again and incremented duplicatesRemoved a second time, issuing redundant storage/HNSW deletes and overstating the cleanup metric (#4410 deferred memory finding).\n\nSkip any pattern that is no longer live before starting its outer iteration or comparing it as a candidate. Add a 3-way cluster regression: baseline reports 3 removals for 2 duplicates; candidate reports 2 and leaves one survivor.
* fix(reasoningbank): stop comparing after the outer pattern is removed
Review repro: with lowest-quality-first insertion, the outer candidate could be removed inside its own inner loop, then keep comparing as a tombstone and remove a later live pattern. Break out of the inner loop when toRemove is patterns[i]. Parametrize the regression over high-first, low-first and mid-first insertion orders (3/3 candidate, low-first fails on baseline).
DaemonManager's failure backoff used a bare setTimeout stored only in a local closure. stop() cleared the interval but not that timeout, so an explicit stop could be undone about a second later when the pending restart fired. Repeated failures could also accumulate multiple backoff timers (#4410 automation scan).\n\nTrack backoff timers per daemon, clear them in start() and stop(), supersede an older backoff before scheduling a new one, and re-check stopped/stopping/disabled state inside the timer callback. unref() the timer so it does not keep the process alive. Add a fake-timer regression; baseline restarts after stop (2 attempts), candidate stays stopped (1).
setWorkerEnabled(type, true) called scheduleWorker() without clearing an existing timeout. this.timers kept only the newest handle, so each redundant enable leaked the previous timer; the leaked timer survived stop() (which only clears current map entries) and could run the worker again untracked. Disabling also left the type in pendingWorkers, and an in-flight run rescheduled itself even after disable (#4410 automation scan).\n\nClear any existing timer at schedule time, avoid scheduling when a timer or in-flight run already owns the type, remove disabled types from the pending queue, and only reschedule after a run while the worker is still enabled. Add fake-timer regressions; baseline leaks three timers after three enables and keeps the disabled pending worker.
detectAgntcyRuntime() treated any module that resolved as configured, even though the three AGNTCY commands call createSlimTransport/joinGroup/publishAgentRecord and the real @agntcy/slim-bindings exports a different class-based API (#4376). Users with the package installed and an endpoint set therefore got configured:true and only discovered the mismatch at the command call site.\n\nAdd an optional requiredExports probe to detectAgntcyRuntime, pass each command's actual function names, and report a resolved-but-incompatible SDK as configured:false with the missing exports in the reason. Commands now take the normal not-configured path with an accurate message.\n\nThis does not implement the missing SDK API; it stops the capability check from claiming an API exists when it does not.
Node rejects execFile of .cmd/.bat on Windows, so the npm-global shim read
as 'version unknown'. Probe shims via cmd.exe with a quoted path; skip paths
containing cmd metacharacters.
Co-authored-by: r <r@x>
The Stop hook spawned the CLI with no cwd, so it created a stray
.swarm/memory.db in the session project instead of the MCP data root.
Pass cwd: CLAUDE_FLOW_CWD || process.cwd().
Co-authored-by: r <r@x>
The #2982 ORDER BY fix kept LIMIT 1000, so rows outside the newest 1000
were unfindable (3.38.3 and the sql.js path use 10000). Default is now
10000; CLAUDE_FLOW_SEARCH_WINDOW overrides (clamped 100..100000).
Co-authored-by: r <r@x>