Every ruflo-core plugin hook runs the CLI, and the CLI auto-starts a daemon
whenever none is alive, so a daemon the user stopped came back within minutes.
daemon stop now writes .claude-flow/daemon.stopped (only in a Ruflo project or
an existing .claude-flow/; stop --all marks every stamped workspace).
ensureDaemonRunning declines to spawn while the marker exists. An explicit
daemon start clears it. The start that auto-start spawns carries
RUFLO_DAEMON_AUTOSTARTED=1: it never clears the marker and re-checks it, so a
stop that lands after the hook checked still wins.
Co-authored-by: r <r@x>
agentdb 0.4.11, observability 0.3.6, rag-memory 0.3.8: the tool summarizes
validated task episodes; ordinary memories and trace spans get no-eligible-
episodes, which the old 'combine memories' guidance made look like missing data.
Co-authored-by: r <r@x>
- hooks_intelligence_learn advertised trajectoryIds but never read it, so a
scoped request ran global learning. The learning path cannot select, so an
explicit selection is now refused before anything is imported or mutated.
- agentdb_context-synthesize summarizes validated task episodes; its description,
the research-synthesize skill (ruflo-goals 0.4.6) and the researcher agent
(ruflo-core 0.2.14) no longer send research documents to it.
Co-Authored-By: RuFlo <ruv@ruv.net>
agent.spawn routing for Claude Code 2.1.300+: 'Explore=haiku,general-purpose=sonnet'
sets the model of a spawn whose call chose none, covering built-in and other
plugins' types (definitions a person cannot edit) and workflow agents. A chosen
model, forks and teammates are kept; malformed pairs are dropped; a failing hook
passes the spawn through. Off by default; /ruflo-mods reports it.
Co-authored-by: r <r@x>
- ruflo-mods guard (tool.check): read-only fast path on e.isReadOnly (2.1.304)
that skips the policy-projection stat while a full check found none in the
last 2 s (web tools excluded so the research ask still fires); a chain deny
returns without file reads; decider "person" on every ask ruflo raises;
agentId names the subagent on ruflo's reason; the chain's ceiling survives a
tightening; .catch documented for 2.1.301 semantics, still fails closed.
- ruflo-console: console_state and console_run registered with
isDeferred: false (2.1.293); console_open/console_set stay deferred.
- console + swarm: Text bold -> weight (2.1.299 deprecation), codemodded;
bold: true -> weight: "semibold" (what the host already maps bold to).
Engines before 2.1.299 refuse a tree with an unknown Text prop, so the kit
maps weight back to bold there (text-weight.ts, via $.session.version()).
- tests for 2.1.318's kit: $.tool.call now raises tool.check first
(guidance test); stub answers are validated (swarm prompt.fill stub);
stale expectations fixed (probe session.compact, learning-loop handshake).
- console kit tests: timeoutMs 30_000 (the 5 s default timed out 19-58
end-to-end tests under load, on 2.1.289 and 2.1.318 alike), and the mock
clock advanced past runner.ts's VERIFY_RETRY_MS in actions/settings tests.
Co-authored-by: r <r@x>
Rows are measured in terminal columns (emoji are two), a part that does not
fit is left out whole with a dim +N count instead of being cut mid-word, the
longest parts are shortened first so a wide band keeps the rest in full, and
the open button sizes to its label ('open' below 64 columns; the mark alone
below 40).
Co-authored-by: r <r@x>
nested-leaf and nested-queen-leaf get effort: low and omitClaudeMd: true.
Measured on Claude Code 2.1.318 in this repo: ~64k fewer input tokens per
leaf spawn; a one-leaf run cost $0.081 instead of $0.153. README gains the
2.1.292 one-command 'claude plugin install --marketplace' form.
Co-authored-by: r <r@x>
- headless claude -p argv gets --permission-mode auto unless the caller set a
mode or --dangerously-skip-permissions (2.1.302 starts -p in manual mode on
third-party providers, telemetry off, or fresh installs; workers would stall).
RUFLO_HEADLESS_PERMISSION_MODE overrides; none passes no flag.
- parse credential_expires_at from the -p JSON result (2.1.318), carry it on
the execution result and emit 'credential-expiring' within 10 days.
- onFailure: "block" on the pre-bash safety gate in init-generated and repo
settings (2.1.295): a gate that can't start or times out blocks instead of
letting the command through. Older Claude Code ignores the key (checked on
2.1.289).
Co-authored-by: r <r@x>
* fix(ruflo-console): treat a mission with only done and cancelled tasks as over (0.49.9)
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ruflo-console): leave the mission context out of Claude's prompt for a cancelled mission (0.49.9)
The active mission stays active until another is created, so after a cancel every new goal's guidance reached Claude with 'The mission is cancelled. Do not start new work.' before the create step could make the new mission. contextSection already returned null for a finished mission; it now does the same for a cancelled one.
---------
Co-authored-by: RuFlo <ruv@ruv.net>
The Decision Transformer 'should train under performance target' check
times the very first train() call in a fresh worker. That cold call is
several times slower than steady state (17ms vs 4ms locally), and on a
loaded 2-worker CI runner it alone crossed the 100ms bound: 110-154ms
on #4653, #4655, #4657, #4663 and #4521. Run one train() on a throwaway
instance with the same config first, then time. The PPO update check has
the same shape and gets the same warm-up. Bounds are unchanged.
Co-authored-by: r <r@x>
bridgeListEntries() and the sql.js listEntries() fallback selected full content and embedding columns before ORDER BY updated_at DESC LIMIT/OFFSET, so metadata-only pages sorted large payloads that were then discarded (#4686).\n\nUse a rowid subquery to order/limit row identities first, then fetch the page's payload columns. The original full-row query remains as a fallback for legacy WITHOUT ROWID tables. Filters (status/TTL/namespace/provenance/tags), total count, embedding cap, page membership, order and returned fields are unchanged.\n\nAdds a sql.js fixture test for descending offset pages, full content, total and limit 0. Existing sql.js list/provenance/tag and ADR-472 embedding tests pass 12/12 locally; tsc reports only the pre-existing missing workspace packages.
* fix(providers): account for Anthropic prompt-cache tokens
Anthropic reports input_tokens separately from cache_creation_input_tokens and cache_read_input_tokens, with cache writes priced at 1.25x and reads at 0.1x base input. The provider ignored both fields: promptTokens undercounted every cache hit/write and promptCost used the full base rate for all input (#4597 performance/security scan).\n\nAdd optional cache fields to LLMResponse.usage, compute total prompt tokens from all three, apply the cache multipliers in cost accounting, and carry the same fields through the streaming done event. Non-cached responses are unchanged.\n\nTwo tests mock the Anthropic REST/SSE responses: a non-streamed response (100 ordinary + 200 write + 800 read -> 1100 prompt tokens, .00129 prompt cost) and a streamed response (60 prompt, 5 output, .000114 prompt). Baseline returns 100/10 prompt tokens and omits the cache fields; candidate passes 2/2. Full provider unit tests pass (the integration suite is skipped locally: missing dotenv); tsc only reports the pre-existing missing @ruvector/ruvllm.
* test(providers): keep non-cached Anthropic usage unchanged
Add a compatibility control proving the new cache accounting leaves a response with no cache tokens byte-identical: 100 prompt, 50 completion, 150 total, \.0003 prompt cost.
The parser stores --memory-only as flags.memoryOnly and --no-include-memory
(or --include-memory false) as flags.includeMemory = false, but session
save, restore and export read only the kebab-case keys, which are never
set. `session restore <id> --memory-only` overwrote the agent and task
stores, and `session save` / `session export` with --no-include-memory
still wrote the memory entries.
Read the camelCase keys and keep the kebab ones as a fallback, as init and
mods do.