mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
722232566ad1fc4e73ba4fefc46d77d380ce61ba
492
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
4afd1aa69a |
feat(mcp): serve MCP 2026-07-28 from the stdio servers (ADR-524)
All three stdio MCP servers (bin/cli.js, bin/mcp-server.js, MCPServerManager) answered initialize with a hardcoded 2024-11-05 and knew nothing of the 2026-07-28 revision. They are now dual-era through one shared module, src/mcp-protocol.ts: - initialize echoes a supported legacy version (else 2025-11-25) and reports the real package version - server/discover answered with or without _meta (stdio probe) - per-request _meta version: -32022 for unknown, -32602 when a modern request lacks clientCapabilities - modern results carry resultType and serverInfo; list results carry ttlMs/cacheScope; legacy responses are unchanged - tools/list sorted by name in both eras (stable prompt caches) - resources/read uses -32602 for modern, -32002 for legacy - validated W3C traceparent/tracestate forwarded into the tool-call context Tasks extension, subscriptions/listen and the HTTP package are Phase 2. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
5f3dacc54b |
feat(mods): automatic context delegation (ruflo-mods 0.15.0, ADR-522) + release 3.71.0 (#4652)
* feat(mods): automatic context delegation (ruflo-mods 0.15.0, ADR-522) + release 3.71.0 New contextDelegation option (off | observe | enforce, default off). A main-loop whole-file Read of a 14-120 KB file for an analysis prompt is answered by a no-tools haiku $.model.complete on the session's own credentials. Every quote is checked against the file and the model sees only the cited passages (the file's own lines) plus how to read the rest. The real Read always runs first, so a later Edit works (spike: answering the Read without next(e) breaks Edit); any failure shows the whole file. Live A/B (real binary, haiku main, 6 repo files 17-83 KB): 6/6 correct both ways, 6/6 delegated, total cost -22.5% incl. worker, main input -21.5%, wall +6.5%. First run delegated 0/6: haiku drops indentation in quotes; the verifier now trims per-line whitespace and relocates up to 3 lines, showing the file's own lines. Tests: 8 plugin tests, 3 real-binary e2e (extract + Edit, forged quote, off), CLI parity test vs DEFAULT_CONTEXT_LIMITS and core verdicts. Smoke step 4 now allows exactly one gated $.model.complete. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01MfPHVHXWyvDvDtYMTsA6MP * ci: keep the claude-code test-kit plugin test out of the vitest ratchet Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01MfPHVHXWyvDvDtYMTsA6MP |
||
|
|
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> |
||
|
|
3c30ee3fa3 |
feat(agentdb): episode CRUD over agentdb 3.3 (ADR-520) + release 3.69.0 (#4642)
* feat(agentdb): episode get/list/update/delete over agentdb 3.3 (ADR-520) agentdb_episode-get, -list, -update and -delete reach agentdb 3.3's ReflexionMemory through one new bridge helper (withReflexionController), so a verified session can be marked success with a critique in place, keeping its id, and recall re-ranks it. Strict integer ids; pre-3.3 builds get a clear error (delete is gated so the old parseInt-ing deleteEpisode is never used). agentdb ^3.3.0 in root and CLI, ruflo override >=3.3.0, both lockfiles; marketplace agentdb plugin -> plugin-v3.3.0. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(agentdb): ADR-112 use-when guidance on episode CRUD tool descriptions Co-Authored-By: RuFlo <ruv@ruv.net> * chore(release): 3.69.0 Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
2b1a392747 |
feat(memory): session episodes through agentdb 3.2 hybrid retrieval; release 3.68.0 (ADR-519) (#4632)
- Session end stores the summary as a ReflexionMemory episode (neutral reward, unverified). The bridge called startEpisode/endEpisode, which ReflexionMemory never had, so no session episode was ever written. - New agentdb_episode-recall MCP tool: retrieveRelevant with agentdb 3.2's keyword + vector fusion by default, opt-in cross-encoder rerank. - agentdb_session-start takes recall/k/hybrid/rerank and returns episodes. - A failing secondary write no longer discards a stored or recalled episode. - agentdb ^3.2.0 in cli and claude-flow, >=3.2.0 in the ruflo override. - scripts/smoke-episode-recall.mjs runs the round trip on real agentdb. Co-authored-by: r <r@x> |
||
|
|
66df9b95e1 |
feat(marketplace): agentdb and agentic-flow external plugins (ADR-518) (#4629)
* feat(marketplace): list agentdb and agentic-flow as external plugins (ADR-518) Adds both upstream Claude Code plugins to the ruflo marketplace as git-subdir entries pinned to their plugin-v3.1.0 merge commits (agentdb 401fcb68, agentic-flow 2c86073b). Each runs its own MCP server pinned to the 3.1.0 package plus a mod guard command. A real-binary e2e checks out the pinned commit and asserts the mod answers its own command with zero model requests, with a negative control the loader refuses. README rows and ADR-518 added. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(marketplace): keep \u escapes so the diff only adds the two entries Co-Authored-By: RuFlo <ruv@ruv.net> * fix(console): give agentdb and agentic-flow a home section (plugin coverage) Co-Authored-By: RuFlo <ruv@ruv.net> * test: run the external-plugin e2e only in the real-binary tier Co-Authored-By: RuFlo <ruv@ruv.net> * chore(console): 0.49.8 — plugin map covers agentdb and agentic-flow Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
56fe4dc604 |
feat: ecosystem convergence — agentdb 3.0.0, agentic-flow 3.0.0, AIMDS packs; release 3.67.0 (#4628)
* fix(aidefence): restore the ADR-118 wider-detection pass to source (3.0.4) @claude-flow/aidefence 3.0.3 (npm latest) was published from an uncommitted tree carrying the ADR-118 / #2004 patterns, so main never had them, and main's #3177 ReDoS bounds never reached npm. 3.0.4 is a true superset: the verb-noun override window, behave-as role hijack and god/root/admin/sudo mode jailbreak markers, on top of main's bounded PII/marker regexes. Parity against the published 3.0.3 dist: 24-input corpus, 0 regressions. Drops publishConfig.tag=alpha. Refs #4625. Co-Authored-By: RuFlo <ruv@ruv.net> * feat(aidefence): merge AIMDS pattern packs into ThreatDetectionService (3.1.0) Vendors the AIMDS pack engine (normalize, decoders, pattern-loader, engine) and its six pattern packs (53 patterns) from midstream AIMDS at abe78d6 into src/domain/services/packs/. Packs are embedded as TS modules, so they load from the published ESM dist with no fs path lookup; the files allowlist is unchanged. ThreatDetectionService.detect() runs the packs in a second pass over the raw input and merges findings into the existing result shape (one threat per type, as before). Built-in patterns, including the ADR-118 extras, stay and their confidences are unchanged. Packs are on by default; disable or select them with createThreatDetectionService({ packs }) or createAIDefence({ packs }). The legacy pattern-array argument still works. - ThreatType gains tool_invocation, data_exfiltration, markup_forgery; Threat gains an optional ruleId (e.g. EX-001) for pack findings. - Packs are validated, compiled and regex-warmed once per process, so isSafe()/checkThreats() no longer pay a compile per call and the first detect() is not charged ~17 ms of lazy regex compilation. - Fixes a quadratic regex in the vendored normaliser (undoLeet): 100 KB of hex digits took 1.8 s; now 6 ms. Decoders cap each blob before decoding. Corpus (55 attacks / 30 legit): built-ins only 8/55, packs on 55/55; false positives F13 and F27 in both modes (built-in encoding_attack), pinned. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(memory): build AgentDB controllers with an embedder and the shared vector backend LearningSystem, NightlyLearner, ExplainableRecall and the graph transformer's CausalMemoryGraph take (db, embedder, ...). The registry passed only the database, so the first predict/discover/recall threw on this.embedder (the #3327 Finding A class, fixed for ReasoningBank only). Real-agentdb test fails on the old source (learningSystem.embedder undefined). memory suite 659/659. Adds ADR-513 (stable versions, convergence) and ADR-516 (aidefence recovery). Co-Authored-By: RuFlo <ruv@ruv.net> * feat(cli): move to agentic-flow ^2.2.0 (main line); stable-only tag policy - agentic-flow ^3.0.0-alpha.1 resolved to the March 3.0.0-alpha.2, which pulled @xenova/transformers -> onnx-proto -> protobufjs 6 (critical). 2.2.0 is agentic-flow's main line (ADR-515). The update validator and the init doc table follow. - neural-tools: computeEmbedding returns a Float32Array, which JSON.stringify writes as {"0":...}; convert to an array before the neural store. - CLAUDE.md: no more alpha/v3alpha/next dist-tags (ADR-513); overrides do not reach users; examples use ruflo@latest. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(cli): pin @claude-flow/aidefence 3.1.0 (AIMDS pattern packs) Co-Authored-By: RuFlo <ruv@ruv.net> * chore(cli): target agentic-flow ^3.0.0 (first stable 3.x, ADR-515) agentic-flow's security defaults change in a breaking way (agents no longer bypass permissions by default, proxies need a token), so the main line ships as 3.0.0 rather than 2.2.0. That also gives the 3.x alpha line a stable head: existing ^3.0.0-alpha.1 installs resolve to it and drop the March alpha's protobufjs 6 (critical). Co-Authored-By: RuFlo <ruv@ruv.net> * fix(memory): capture AgentDB's backend failure reason from stderr too agentdb 3.0.0 moves library diagnostics off stdout (they corrupted stdio MCP JSON-RPC), so the #4622 lock-reason capture patches console.error as well. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-514 agentdb 3.0.0, ADR-515 agentic-flow 3.0.0, ADR-517 AIMDS pattern packs Co-Authored-By: RuFlo <ruv@ruv.net> * chore(memory): 3.2.1 (embedder wiring, stderr reason capture) Co-Authored-By: RuFlo <ruv@ruv.net> * chore(release): 3.67.0 — agentdb 3.0.0, agentic-flow 3.0.0, aidefence 3.1.0, memory 3.2.1 - CLI and the claude-flow umbrella declare agentic-flow ^3.0.0 (root lock and v3 pnpm lock resolve 3.0.0 / agentdb 3.0.0). - CHANGELOG 3.67.0. Co-Authored-By: RuFlo <ruv@ruv.net> * test/docs: dated ADRs 513-517; scope the bracket/DAN timing test to built-ins - ADRs 513-517 gain Date lines (the console ADR parser expects >97% dated) and ADR-513/516 name the versions that shipped (agentic-flow 3.0.0, aidefence 3.1.0). - threat-detection 'bounds the bracket and DAN patterns' measures the built-in regexes it was written for ({ packs: false }); the AIMDS packs have their own 100 KB adversarial timing test. Full detector on that input: 86 ms locally, 301 ms on the CI runner (linear, budget was 200 ms). Co-Authored-By: RuFlo <ruv@ruv.net> * fix(deps): stop pinning ruvector 0.2.27 under agentdb 3.0.0; CLI agentdb ^3.0.0 The root (and ruflo wrapper) overrides pinned ruvector ^0.2.27 from the BEIR work (3.10.29). npm applies overrides inside this repo's tree, so CI ran agentdb 3.0.0 on ruvector 0.2.27, below agentdb's own ^0.2.40: a pairing no user ever installs (published overrides are ignored), and the one where #2226 pattern recall failed on CI. Raised to ^0.2.41. The CLI's agentdb range moves to ^3.0.0 (stable; no alpha ranges, ADR-513), so the v3 pnpm lock resolves 3.0.0 and the v3 test job exercises what users get instead of 3.0.0-alpha.20. 115 agentdb/memory-related CLI test files: 868/868 on 3.0.0. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
189aceca1d |
feat(learning): the verified-outcome learning loop on classic hooks, for every ruflo project (ADR-512) (#4604)
* feat(learning): run the verified-outcome learning loop on classic hooks for every ruflo project (ADR-512) Until now only the opt-in ruflo-mods plugin recorded verified turns and showed lessons. Classic hooks (every `ruflo init` project) now do the same. They replay the session transcript (`transcript_path`) through the mod's own record and lesson code, bundled into .claude/helpers/learning-loop.cjs: - route: records the turns that finished, then prints the lessons that fit the new prompt - session-end: records the rest (PreCompact leaves the open turn open). This runs before the session-id dedup, which otherwise dropped SessionEnd after a PreCompact. It also starts a detached `ruflo hooks verified-ingest --quiet` - one implementation: plugins/ruflo-mods/scripts/build-learning-loop-helper.mjs bundles hooks/loop/transcript.ts; the bundle is committed, checked in mod-guidance CI, and is a signed critical helper that helper-refresh installs (manifest re-signed) - never twice: with its loop on, the mod adds `learning-loop` to RUFLO_MODS_OWNS - opt-out: .claude-flow/config.json learningLoop.enabled=false, or RUFLO_LEARNING_LOOP=0 Tests: mods-learning-loop-classic (replay matches the mod's records, offsets, the hook-handler run as a process, end to end classic record -> real ingest -> lesson in route output) and real-binary contract 6 (pinned claude, mock model, no plugin). ruflo-mods 0.14.0. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-512 cites PR #4604 Co-Authored-By: RuFlo <ruv@ruv.net> * ci: sign and exclude the classic-loop helper and real-binary test where the other helpers are (ADR-512) smoke-helper-signing-security copies the critical helpers into its fixture; it now copies learning-loop.cjs too. The ratchet's default run skips real-binary files, which need the claude binary (mods-real-binary runs them). Co-Authored-By: RuFlo <ruv@ruv.net> * test(mods): give the built-CLI tests the time their children get vitest's 5s default timed out mods-cli-bin on a loaded CI runner and reported only STACK_TRACE_ERROR (the timeout error carries the stack of the it() call). Each test runs the built CLI several times with a 120s child timeout. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
243bc57f0b |
feat(learning): lessons say where the fix goes; reworded tasks learn together (ADR-511) (#4603)
* feat(learning): lessons say where the fix goes; reworded tasks learn together (ADR-511) The §7 evaluation (#4581) showed three limits on what the verified-outcome loop can learn: - a lesson named an agent, nothing the model can act on; - tasks naming different files merged into one lesson; - the same task worded differently never learned (15 reworded verified successes left 15 patterns at one success each, zero lessons). Changes: - mods: a verified turn records its screened edited source files; a lesson names the three its passing fixes edited most and leads with them; pick() weighs rare keywords (IDF) and drops matches far below the best. ruflo-mods 0.13.0. - cli: files are counted per pattern (successes only) into learned-lessons.json; SONA takes them as pattern anchors (never keywords), so reworded tasks that fixed the same file reinforce one pattern; tasks naming disjoint paths never merge. Lesson building moves to verified-lessons.ts. - eval: the harness gains --ablate, --test-index, --concurrency, --lessons, --save-lessons, --eval-sample, --calibrate and --max-turns; scripts/eval-learning-loop-corpus.mjs writes a validated 15+30-task corpus. Proved offline (tests): 15 reworded prompts form 5 lessons, up from 0; the first run's prompts form 5 lessons, up from 1; the right lesson ranks first for 30 of 30 eval prompts, with 1.07 lessons shown per prompt. Paid pilots (haiku, about $6.80) are directional and did not reach the gate: - 8-turn cap: off 2/10, on 4/10, lessons without files 1/10; - uncapped: 6/6 vs 6/6, cost within 1%. ADR-511 §5 has the details. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-511 cites PR #4603 Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
e9248a170e |
feat(security): plugin signing, scan before install, refuse risky project auto-approve keys (ADR-509) (#4593)
* feat(plugins): ADR-509 plugin trust — signing, scan before install, refuse project auto-approve keys - scripts/sign-plugins.mjs signs every marketplace plugin (signature.json: sorted path+sha256 list, version, Ed25519 over canonical JSON) with the existing helpers key (same key resolution as sign-helpers.mjs; never printed). Nothing is signed with the real key here; release step in ADR. - `ruflo plugins verify [name]` and `ruflo mods doctor` check the clone and install cache: verified / modified / unsigned / bad-signature, and write ~/.claude-flow/mods/plugin-verify.json per config dir. - ruflo-mods plugin.register gate: under modTrust refuse-risky, a <name>@ruflo module whose clone is modified or bad-signature is refused (allow-list does not exempt it). Live-validated on Claude Code 2.1.289. - Static scan of .mcp.json, hooks/hooks.json and hook modules before `claude plugin install` (mods install / init mods path) and before a local `plugins install`; a high finding blocks that plugin unless --accept-risk <plugin>, which is recorded in .claude-flow/mods/install.json. - settings-risk-scanner covers enableAllProjectMcpServers, enabledMcpjsonServers, bypassPermissions, blanket Bash/* allows and non-ruflo hooks; `ruflo init` / `init hooks` / `init upgrade --settings` stop before writing anything (--keep-risky-settings / --drop-risky-settings); `ruflo doctor` warns on them in settings.json and settings.local.json. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-509 status names PR #4593 Co-Authored-By: RuFlo <ruv@ruv.net> * fix(init): ADR-509 classify ruflo hooks by exact command; gate project-shipped helpers isRufloHelperCommand no longer reuses pinToUserHelpers as a classifier: it matches the closed set of commands ruflo generates or has generated (each helper, subcommand, scope, platform, plus the legacy forms) by string equality. node -e with extra code, -r/--require, --import, NODE_OPTIONS= and a helper path in a comment are now findings. A project .claude/helpers/<critical helper> that is neither ruflo's shipped copy nor in a ruflo-signed manifest stops init too; --drop-risky-settings replaces it. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mods): ADR-509 a scan-blocked plugin is never left enabled applyMods scans an existing marketplace clone before enabling anything and does not enable what it blocks; a plugin the post-refresh scan blocks has its enabledPlugins key removed and is dropped from the install record. The --no-plugin-install, test/CI and no-claude paths are covered by the pre-enable scan, and say when there is no clone to scan yet. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(plugins): ADR-509 scan the modules hooks.json loads and their imports The pre-install scan now resolves hooks.json `modules` against hooks.json and follows every relative import/export-from/import()/require they reach, with none of the walk's name, directory or size skips. A loaded file that is missing, unreadable, over the size limit, outside the plugin, or loads a computed module name is a high finding instead of being skipped. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mods): ADR-509 signature gate works on Windows and checks the loaded copy The status file key is normalized the same way on both sides (forward slashes, no trailing slash, Windows drive paths lower-cased), and the mod finds the home the CLI used (USERPROFILE on Windows, else HOME). plugins/.gitattributes turns off line-ending conversion so a Windows clone hashes as signed. Every writer now records the install-cache copies too: per plugin the worst of all copies, and each copy by its directory; the mod looks up the plugin.register root first, so a tampered install cache next to a clean clone is refused. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mods): ADR-509 match status path keys normalized; fix-pass notes The mod compares the status file's per-copy path keys normalized, so a key another writer spelled differently still matches the plugin.register root. ADR-509 gains the review fix-pass implementation notes and live validation. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mods): ADR-509 report each blocked plugin once per run Co-Authored-By: RuFlo <ruv@ruv.net> * fix(cli): no env values in sign-plugins errors; RSA-2048 in the rejection test (CodeQL, ADR-509) Co-Authored-By: RuFlo <ruv@ruv.net> * chore(ruflo-mods): 0.12.0 for ADR-509 Co-Authored-By: RuFlo <ruv@ruv.net> * test(mods): make mods-cli-bin failures readable (no more opaque STACK_TRACE_ERROR) execFileSync's error holds Buffers and a process handle that vitest cannot serialize, so a CI failure only said STACK_TRACE_ERROR. Rethrow a plain Error with exit status, signal and the child's stdout/stderr tail. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
5d2be9374a |
feat(cost): budget file, LiteLLM gateway export, per-agent/tool attribution (ADR-508) (#4592)
* feat(cost): ADR-508 budget file, LiteLLM budget export, per-agent/tool attribution - .claude-flow/cost/budget.json (v1): `ruflo cost budget set --daily/--weekly/--monthly` writes it; the ruflo-mods ladder uses its smallest window when costBudgetUsd is 0. Hostile files (negative usd, unknown periods, oversized arrays) are no budget. Validator in both the mod and the CLI with a parity test. - `ruflo cost budget export --gateway litellm` prints budget_limits (and, with --model, model_max_budget + budget_fallbacks) as YAML or the /key/generate body; --apply posts it to https or loopback only, key from --key-env, redirects refused. --gateway meta-llm fails with a pointer to ADR-508 (no documented budget API). - ruflo-mods costLedger option (default on, ruflo projects only): session.measure deltas charged to subagent type and preceding tool, one line per session in .claude-flow/cost/attribution.jsonl, read by `ruflo cost report`; a gateway budget refusal is toasted once and counted. - Live-validated on Claude Code 2.1.289 (fake LiteLLM on loopback + one haiku run). Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-508 status names PR #4592 Co-Authored-By: RuFlo <ruv@ruv.net> * docs(ruflo-mods): ADR-508 costLedger transcript read, open budget-file and default-on notes Co-Authored-By: RuFlo <ruv@ruv.net> * fix(cost): ADR-508 review — --apply host escape via // path, per-call attribution split - keyGenerateUrl: a base path starting with // (or /\) resolved as a protocol-relative URL and sent the LiteLLM master key to another host (http://localhost//evil.example/ -> http://evil.example/key/generate). Refuse such paths, set the path on a copy of the parsed URL, and require the result to keep the given scheme and host. - Attribution: session.measure fires once per main-thread turn, and a foreground subagent runs inside the main Agent call, so last-tool charging put subagent spend on main/Agent. Split each measured delta evenly across the tool calls completed since the last measurement. - Tests in host event order and for the path escape; both fail on the previous code. ADR, README, cost report header state the estimate rule. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-508 live run of the per-call attribution split Co-Authored-By: RuFlo <ruv@ruv.net> * chore(plugins): ruflo-mods 0.11.0, cost-tracker 0.31.0 for ADR-508 Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
828a8d78d9 |
feat(plugins): cut per-turn footprint — user-invoked operational skills, description ceiling, footprint report (ADR-507) (#4588)
* feat(plugins): ADR-507 cut the per-turn plugin footprint - scripts/measure-plugin-footprint.mjs: per-plugin skills/commands/agents, listing characters and estimated tokens, from the tree or a git ref; before/after reports in v3/docs/validation/. - 27 operational skills get disable-model-invocation: true (cost-tracker sub-reports reached by /ruflo-cost, metaharness bench/learn/evolve/mint/ oia-audit, GAIA submission + comparison, init-project, ruflo-status, vector-setup, federation-init, agntcy-status). Each is listed in a "User-invoked skills" table in its plugin README; the choosing rule is in plugins/README.md. - 20 skill descriptions over 300 characters cut to one sentence plus "Use when". - audit-skill-frontmatter: 300-char ceiling on skill and command descriptions (measured unfolded) and a README check for every user-invoked skill. - skillTrim (§2.4) not built: the engine has no skill-listing hook. Listing with every plugin enabled: 47,743 -> 39,402 chars (about 11,936 -> 9,851 tokens per turn). Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-507 status names PR #4588 Co-Authored-By: RuFlo <ruv@ruv.net> * docs(plugins): ADR-507 cost-analyst points users at /ruflo-cost for user-invoked reports The engine's refusal for a disable-model-invocation skill says not to replicate its workflow by other means, so the agent names the subcommand instead of running the report script. After-report now cites the pushed commit. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(scripts): ADR-507 audit runs through symlinked paths; test the gate's wiring The import guard compared argv[1] with import.meta.url, which Node realpaths for the entry module. Run through a symlinked path, main() was skipped and the audit exited 0 having checked nothing. Both scripts now compare realpaths. audit-skill-frontmatter takes --plugins-dir so tests can run the real CLI on a fixture: a 304-char folded description, an unlisted user-invoked skill and a 311-char literal command description must exit 1 with those findings, and adding the README row must clear only the user-invoked one. The repo-wide test now also asserts skillsScanned > 100. Disabling any of the three checks, or restoring either old guard, fails a test. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(plugins): version bumps for ADR-507 footprint changes Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
49fe0b362b |
feat(mods): compactSnapshot — pre-compaction snapshot + post-compaction reload (ADR-505) (#4591)
* feat(mods): compactSnapshot — pre-compaction transcript snapshot + one-shot reload block (ADR-505) New ruflo-mods option compactSnapshot (default on). On a main-loop manual/auto/plugin session.compact it writes the transcript about to be summarized to .claude-flow/sessions/compactions/snapshot-<n>.jsonl (role, text <= 2000 chars, tool names/ids only; each line screened; 400 messages / 2 MiB; ten rotating slots), beside the compaction so it is never blocked, delayed or rewritten. The next non-slash prompt after a compaction that stood gets one [RUFLO_AFTER_COMPACT] context block (<= 2000 chars) from lessons shown this session, the last 5 loop outcomes, open swarm/claim ids and the snapshot path. ruflo doctor warns when snapshots exist and git would commit them. Co-Authored-By: RuFlo <ruv@ruv.net> * test(mods): isolate the ADR-505 doctor test from global git excludes; note precompute inference Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-505 status names PR #4591 Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mods): compactSnapshot screens raw message text before JSON encoding (ADR-505) JSON escaping put a backslash before quotes and encoded newlines, so the key-assignment rule missed "api_key": "..." / password="..." and the line-start role-tag rule missed a \nsystem: line; those were written to the snapshot in plaintext. messageLine now screens the raw cut text and the tool names, plus the encoded line as before. Negative-control test added. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(ruflo-mods): 0.10.0 for ADR-505 --------- Co-authored-by: r <r@x> |
||
|
|
658f0e33bf |
feat(plugins): sensitive userConfig secrets + readSecret + secrets audit (ADR-506) (#4587)
* feat(plugins): sensitive userConfig secrets, readSecret helper, plugin secrets audit (ADR-506) - ruflo-cost-tracker, ruflo-metaharness: `openrouterApiKey`; ruflo-x-gateway: `adminToken`. Each is type string, sensitive, optional, no default. - readSecret(name, envFallbacks): CLAUDE_PLUGIN_OPTION_<NAME> first, then the variables the plugin always read. Copied per plugin (x-gateway in src/, the only folder its Docker image ships); a test keeps the copies identical. - Consumers: openrouter.mjs key/generation, x-gateway checkAdmin (call time, fail closed), redblue child env (OPENROUTER_API_KEY, never argv). - scripts/audit-plugin-secrets.mjs: credential-named option without sensitive: true, or a literal secret (the mods' COMMON_SECRETS, parsed from screen.ts) in plugin.json/hooks.json, fails. Wired into plugin-package-audit. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-506 status points at PR #4587 Co-Authored-By: RuFlo <ruv@ruv.net> * fix(plugins): deliver the ADR-506 secret option, harden the plugin secrets audit Review fixes for #4587: - Delivery: Claude Code gives a plugin option only to the plugin's own hooks and MCP servers, never to the Bash tool that runs openrouter.mjs and the redblue skill path. ruflo-cost-tracker and ruflo-metaharness now carry a SessionStart hook (scripts/_secret-env.cjs) that writes the sensitive openrouterApiKey option to CLAUDE_ENV_FILE as OPENROUTER_API_KEY, only when that variable is unset. Live-verified with Claude Code 2.1.289 (probe plugin and the real cost-tracker): a Bash tool command resolved the key. - ruflo-x-gateway adminToken removed: the gateway is a deployed server that no Claude Code process of the plugin runs, so the option could never arrive. - Audit: a secret used as a JSON key is shown as <redacted-key> and never printed; .mcp.json and .lsp.json are scanned; OpenRouter key shape added; credential-named env/headers entries holding a 16+ char literal fail; ${user_config.*} in command/headersHelper/args fails. - ADR-506 updated with the delivery trade-off and what the bridge does not reach (the metaharness_redblue MCP tool in ruflo-core's server). Co-Authored-By: RuFlo <ruv@ruv.net> * test(plugins): skip the bash-only ADR-506 bridge tests on Windows; hedge env-file mode wording Co-Authored-By: RuFlo <ruv@ruv.net> * chore(plugins): cost-tracker 0.29.0, metaharness 0.3.0 for ADR-506 Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
76845f22d3 |
feat(cli): load ruflo plugins in headless claude -p workers (ADR-510) (#4586)
* feat(mods): load ruflo plugins in headless claude -p workers (ADR-510) claude -p on a fresh config loads no marketplace plugins, so ruflo's own headless workers ran without ruflo-mods' guard, routing and learning loop. - resolvePluginPaths: --source local checkout, then the marketplace clone, then the install cache; a folder without .claude-plugin/plugin.json is reported missing, never returned; honours CLAUDE_CONFIG_DIR. - The daemon's HeadlessWorkerExecutor and `hive-mind work` add --plugin-dir <ruflo-mods> and CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 (unless set), never duplicate a caller's own --plugin-dir, and record a missing plugin (logged once) as missingPlugins on the result. - `ruflo plugins paths [--json]` for Agent SDK callers; README section. - `ruflo doctor --component headless-plugins` runs a real claude -p and checks the init event, plugin_errors and the mod heartbeat (runner injectable; skipped without a model credential). Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-510 status names PR #4586 Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mods): headless plugin paths never come from project settings; stage hive-mind spawn -p (ADR-510) - resolvePluginPaths no longer reads extraKnownMarketplaces from the project's .claude/settings.json or settings.local.json. A cloned repo could point every daemon worker and `hive-mind work` at its own folder, loaded via --plugin-dir with function hooks on and no trust prompt, in place of the user's ruflo-mods. "Local" is now only a directory marketplace in Claude Code's user-level known_marketplaces.json, and a relative path is rejected. - `hive-mind spawn --claude --non-interactive` builds a `claude -p` worker too: it now goes through withHeadlessPlugins (staged before the prompt) and reports missingPlugins on data.claude. Interactive launch unchanged. - Tests: project-scope settings (absolute or ./x) resolve to clone/cache, never the repo; relative path rejected; spawn-mocked hive-mind spawn test. All four new assertions fail on the previous commit. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-510 trust-boundary note records the live resolver check Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
38112e0042 |
feat(mods): learning-loop gaming defences — taints, re-verify, anomaly gate (ADR-503) (#4590)
* feat(learning-loop): gaming defences for verified outcomes (ADR-503) The verified-outcome loop (ADR-502) trusts a verifier's exit status, but the model chooses what that verifier checks. Four downgrade-only layers: - mod: a verified-success record carries taints when the turn edited a test file (edited-tests), a verifier config (edited-verifier-config), or decided on a weakened/narrowed command (narrowed-verifier); a per-process session token is written on every record. The outcome word never changes. - CLI: a success with a taint not listed in .claude-flow/config.json learningLoop.allowTaint is counted under `tainted` and never reaches SONA. - CLI: opt-in re-verify (learningLoop.reverify, off by default) re-runs a rotating allowlisted manifest check in a temp detached git worktree at HEAD with a timeout; failure, timeout or error downgrades to unknown. Only an explicit verified-ingest re-verifies; hot callers defer. - CLI: anomaly gate holds would-be lessons that are perfect-and-tainted, only-narrowed, or from one session, listed as `held: <id> (<reason>)`. Adds scripts/eval-learning-loop.mjs (manual, plan-only unless --run). Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-503 status names PR #4590 Co-Authored-By: RuFlo <ruv@ruv.net> * fix(learning-loop): shell edits of tests taint; test the real re-verify runner (ADR-503) - A Bash command that writes, moves or deletes a test file or verifier config (rm, mv, cp, tee, truncate, sed -i/perl -i, output redirection, git rm/checkout/restore/...) now sets edited-tests / edited-verifier-config like an Edit of that file. Before this change, Edit src/a.ts + `sed -i 's/it(/it.skip(/' src/a.test.ts` + `npm test` produced an untainted verified-success. Downgrade-only: reads and test runs earn nothing. - gitWorktreeRunner is now tested against a throwaway git repo: pass, fail, missing script, timeout (hung script's process verified dead), non-repo error. After each run only the main worktree remains and no ruflo-reverify-* dir is left. A negative control (kill only the direct child) makes the timeout test fail. - ADR-503 implementation notes record both, plus the interpreter-write gap. Co-Authored-By: RuFlo <ruv@ruv.net> * test(learning-loop): give the hung-check re-verify test an 8s budget for cold CI runners Co-Authored-By: RuFlo <ruv@ruv.net> * chore(ruflo-mods): 0.9.0 for ADR-503 Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
5a008a150a |
feat(test): real-binary test tier for ruflo mods (ADR-504) (#4589)
* test(mods): real-binary test tier with a scripted mock model (ADR-504) Runs the real `claude` binary headless against a local mock of the Anthropic Messages API, with ruflo-mods loaded through --plugin-dir in a throwaway project with its own HOME. No API key, no paid model. - mock-model.mjs: scripted Messages server (streaming and not), logs every request; untool'd or unknown requests get a minimal answer. - run.ts: runner with a minimal child environment, PATH recorders for dangerous commands, and readers for events, requests and files. - loads.test.ts (contract 1): with every option on, the heartbeat is written, /ruflo-mods is registered and answered with no model request. Negative control: a #4485-shaped copy (second bare session.start) is refused silently by the real loader and fails those assertions. - contracts.test.ts (contracts 2-5): verified-success record from a scripted fix turn; [RUFLO_LESSONS] reaches the request (and not below the gate); ruflo denies the root delete with its own reason and denies a listed command the engine allows (which runs without the plugin); the route block reaches the request (and not without the plugin). - Excluded from the CLI, v3 and root-ratchet default runs; run with `npm run test:real-binary`. New CI job mods-real-binary pins Claude Code 2.1.289 and fails, naming the step, if the binary will not start. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-504 status names PR #4589 Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
9ec771996a |
docs(adr): ADR-503..510 — mods integration follow-ups (#4581) (#4585)
Learning-loop gaming defences, real-binary test tier, compaction snapshot/reload, plugin userConfig secrets, footprint cut, cost ladder to gateway budgets, plugin signing + scan + project auto-approve refusal, headless/SDK plugin staging. All Proposed. Co-authored-by: r <r@x> |
||
|
|
375e846c66 |
feat(mods): verified-outcome learning loop, on by default (learningLoop, #4581, ADR-502) (#4583)
* feat(mods): verified-outcome learning loop (learningLoop, #4581, ADR-502) ruflo-mods 0.8.0 adds the learningLoop option (default off). Each main-loop turn becomes a trajectory whose outcome is verified-success/verified-failure only when a recognised test/build/typecheck/lint command ran after the turn's last edit and the shell's exit status said so; otherwise unknown. A masked status (|| true, pipes, ;, background, substitution) verifies nothing, and the model's own words are never read. The CLI ingests the records (ruflo hooks verified-ingest, the hooks_intelligence_verified-ingest MCP tool, and automatically from hooks_route and hooks_session-end): only verified records train SONA, unknown ones are counted; each id once; PII-redacted. It writes learned-lessons.json, and the mod adds at most three cited lessons at or above the 0.6 gate to a matching prompt. doctor --component learning-loop reports whether outcomes reach SONA. Stages 5-7 of #4581 (pane, autonomous /loop-run, GEPA self-tuning) are deferred; the on-by-default evaluation has not been run. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mods): learning loop needs an edit to verify; redact e-mails before writing (#4581) A turn that edited nothing is unknown (a verifier verifies a change). The mod replaces e-mail addresses in the stored task; ADR-502 states the privacy limit (broader PII redaction runs at CLI ingest). Co-Authored-By: RuFlo <ruv@ruv.net> * feat(mods): learningLoop on by default (#4581) Maintainer decision: ship the learning loop on by default. Set the learningLoop option to false to turn it off. ADR-502 records that the issue's 30-task evaluation has not been run yet. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(cli): ADR-112 guidance on hooks_intelligence_verified-ingest (#4581) Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x> |
||
|
|
8c0ad74e50 |
chore(marketplace): pin agentic-qe-fleet to v3.15.17 (#4574)
Move the external agentic-qe-fleet entry from v3.15.16 (4edfa469) to v3.15.17 (b177b2315521376b83f2eed40e4994fd7581d067), so its MCP server runs agentic-qe@3.15.17. The plugin folder changed only its version and MCP pin. Updates the README links, the external-plugins test fixture and the ADR-484 evidence section with the re-run install results. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
49f9a313ea |
chore(marketplace): pin agentic-qe-fleet to v3.15.16 (#4560)
Move the external agentic-qe-fleet entry from v3.15.15 (1d0cc766) to v3.15.16 (4edfa469d8f957b45bc0ea25424eb831b134f129), so its MCP server runs agentic-qe@3.15.16. The plugin folder changed only its version and MCP pin. Updates the README links, the external-plugins test fixture and the ADR-484 evidence section with the re-run install results. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
551428e39a |
chore(marketplace): pin agentic-qe-fleet to v3.15.15 (#4533)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
c365d37280 |
chore(marketplace): pin agentic-qe-fleet to v3.15.13 (#4484)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
1b6b7bba2e |
docs(adr): ADR-500 ruRE capability map, trust rules and the acceptance test (#4461)
* 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> |
||
|
|
24450bf9f7 |
feat(rure): rure_cuda_launch_plan — static occupancy plan for CUDA kernels (ADR-501) (#4464)
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> |
||
|
|
d36d72a9ff |
feat(ruflo-console): ruRE can read an outside folder the person allows (ADR-499, console 0.48.0) (#4452)
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> |
||
|
|
cac404c54c |
feat(ruflo-mods): rureOffer — offer ruRE when the model reads a binary (ADR-498) (#4446)
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> |
||
|
|
7564f7cefa |
feat(ruflo-console): CUDA row on the ruRE page, DETECT routes and a hint from the native reader (ADR-497) (#4443)
* 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> |
||
|
|
bb9ab9eee3 |
feat(ruflo-console): ruRE DETECT, long lists, and a structured view for Claude (ADR-496) (#4440)
* 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> |
||
|
|
39f5942c02 |
fix(ruflo-console): ruRE refuses a sample that is a link (ADR-495) (#4439)
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> |
||
|
|
e8c98eb916 |
feat(ruflo-console): ruRE page in TOOLS — static reverse engineering from the console (ADR-494) (#4430)
* 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> |
||
|
|
7d18ee7a03 |
chore(marketplace): pin agentic-qe-fleet to v3.15.12 (#4419)
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> |
||
|
|
3daca8f628 |
docs(adr): ADR-322D — accept the cross-repo anchor record (was stale PROPOSED-EXTENSION) (#3127)
While researching a cross-ecosystem architecture question, found that witness-receipt-contract.md §9 and the ruflo-anchor-record-v1 schema both still say "PROPOSED-EXTENSION... nothing above is decided" — but the two consumers that placeholder was gating (ruvnet/rvm#35, ruvnet/autogenous#10) already merged real implementations against exactly this shape: - ruvnet/rvm#37 (merged): verify and anchor ruflo ADR-322C receipts into the witness chain - ruvnet/autogenous#13 (merged): export promotion evidence in the ruflo ADR-322C receipt shape - ruvnet/ruflo#3066, the PIR tracking issue that scoped this work, is itself closed with a status comment confirming the schema (PR #3067) is canonical on main and both conformance audits cleared No schema or behavior change — this is a documentation-accuracy fix. ADR-322D formally promotes the record from PROPOSED-EXTENSION to Accepted to match what's already shipped and consumed, and explicitly scopes it against a different, still-unwired "RVM" relationship (LatentMesh's own aspiration to have RVF/RVM gate its candidate cognition) so the two aren't conflated in future reads. Claude-Session: https://claude.ai/code/session_01G3Fkc9qcZ2AkwGPce83yTa |
||
|
|
732e9f07c0 |
chore(marketplace): pin agentic-qe-fleet to v3.15.11 (#4390)
Move the external agentic-qe-fleet entry from v3.15.10 (e5814a2f) to v3.15.11 (221d6de15c73bb385961e4e649d8fcc1f5dc2dea). The plugin folder changed only its version and its MCP pin (agentic-qe@3.15.11). Updates the README links, the external-plugins test fixture and ADR-484. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
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>
|
||
|
|
953d8d0018 |
feat: Grok Build host surface + host-agnostic team bus (ADR-402) (#3512)
* feat: Grok Build host surface + host-agnostic team bus (ADR-402) Adds `ruflo init --grok` and nine team_* MCP tools. Together they let a lead agent on Grok Build (or Codex, or Claude) run a named agent team without Claude's SendMessage. The team state lives in the project under .claude-flow/teams/. Team bus (team_create, team_spawn, team_send, team_broadcast, team_inbox, team_plan, team_status, team_on_stop, team_shutdown) - One implementation: templates/grok/scripts/grok-team-bus.mjs (ops, CLI) plus grok-team-store.mjs (storage). The MCP tools import these files, the SubagentStop hook imports them, and init --grok copies them into a project as a CLI with no dependencies. The repo root has no second copy. - Mail is scoped per team: teams/<team>/mailbox/<agent>/. team_inbox requires the team, and team_status counts only that team's mail. - team.json updates take a cross-process lock (team.lock, an O_EXCL file holding an owner token) and are written through a temp file and a rename. A stale lock is broken by renaming it aside and checking the token, never by a blind delete, and release removes only the holder's own token. 30 concurrent spawns from separate processes register all 30. - team_shutdown closes the team. After it, spawn, send, plan and on-stop refuse. team_spawn enforces maxAgents. - A broadcast with no members is refused. priority is an integer from 0 to 999, stored as a zero-padded filename prefix. Symlinked mailbox directories are refused. Concurrent drains claim each message by rename, so no message is delivered twice and no drain throws ENOENT. - The spawn description is <role>:<agent>@<team>. The SubagentStop hook parses it to advance that team's plan. When the hook cannot record a team subagent, or the team is ambiguous, it writes the reason to stderr and exits 1. init --grok - Writes .grok/ (config, rules, four agent profiles, a skill, the SubagentStop hook), scripts/ and docs/grok/README.md in the project, and lists every path it wrote. --dry-run writes nothing. - Pins the project MCP server to the running release (ruflo@<version>, which ships team_*) instead of @latest. From a source checkout it points at that checkout's bin/cli.js. Inserted values are escaped as TOML strings, so Windows paths are valid. - Writes nothing outside the project unless --grok-statusline is passed. With the flag, it installs ~/.grok/ruflo/host-statusline.mjs and merges [ui.status_line] into ~/.grok/config.toml using @iarna/toml. The merge leaves an existing status row alone in any TOML form. It writes only when the re-parsed result keeps every other value, and otherwise prints the snippet to paste. The command is `node "<absolute path>"`, which needs no shell and runs no script from the repo. - The status row expects only the agent-teams-grok skill. Also classifies team_* in the capability brain (swarm-coordination) and adds ADR-402. Tests: __tests__/team-tools.test.ts, __tests__/grok-init.test.ts. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(grok-host): address round-2 review of ADR-402 team bus (#3512) N1 (blocking): root package.json "files" listed cli/dist but not cli/templates, so npm pack (and npx claude-flow) shipped a build that team_create / init --grok couldn't find grok-team-bus.mjs / grok-team-store.mjs from. Added v3/@claude-flow/cli/templates/** and verified with a real npm pack + tar extract (files present with the fix, absent without it). N2: breakStaleLock renamed a stale lock without re-checking it was still the lock it first observed. A waiter that read a stale token could have that exact lock broken by someone else and re-acquired fresh in between, and the rename would steal that live lock out from under its holder, opening a window for a fourth party to grab the vacated slot — two holders at once. Now re-verifies token + mtime immediately before renaming and backs off (no rename at all) if either changed. Added a direct regression test (monkeypatched fs to force the exact interleaving) plus a concurrent-CLI-process test with a pre-seeded stale lock. N3: LOCK_WAIT_MS (10s) was shorter than LOCK_STALE_MS (30s), so any acquire attempted in the ~20s gap between "waiter gives up" and "lock considered stale" failed even with nothing actually stuck — and the SubagentStop hook's own 5s command timeout couldn't survive either value. Lowered stale/wait to 4s/4.5s (wait >= stale, both comfortably under the hook's 5s budget with real critical sections being sub-millisecond JSON r-m-w). Also replaced the synchronous Atomics.wait lock-wait loop with an async setTimeout-based poll (sleepMsAsync), so an MCP server keeps serving other requests while a caller waits for the lock; threaded async/await through withTeamLock/createTeam/spawnMember/runCli/main and the SubagentStop hook and team-tools.ts's dispatcher. sleepMs (sync) stays only for writeJsonAtomic's bounded Windows rename retry. Minor 1: --grok-statusline replaced a symlinked ~/.grok/config.toml with a plain file, destroying the symlink. writeFileAtomic now resolves an existing symlink and writes through it instead. Minor 2: a TOML integer above 2^53 in the user's config parses to a BigInt (@iarna/toml) and crashed JSON.stringify inside the status-line merge, which ran as the LAST step of init — leaving project files already written. Now validated up front, before any file is touched, naming the offending key; init fails clean with nothing written instead of half-done. Minor 3: host-statusline.mjs matched `trusted = true` / `[mcp_servers.x]` via substring/regex, so a commented-out trusted=true read as trusted and an `enabled = false` server still counted as loaded. Can't add a runtime dependency on @iarna/toml here (this script ships as a zero-dependency copy outside any node_modules tree — project scripts/ and ~/.grok/ruflo/host-statusline.mjs). Added a small comment-aware table/key parser instead and used it for grok, and for codex's mcp_servers check too (same bug class). Minor 4: team_create --force reopened a team but left the old incarnation's mailboxes on disk. Now clears mailbox/ when recreating. Minor 5: priority accepted "1e2" and "0x10" (Number() coerces both). Now requires a plain base-10 integer literal string. Minor (stray changes): reverted an incidental .helpers-version bump and a router.js mode change (644->755) picked up from a concurrent session's helper auto-refresh — not part of this PR. Verified: cli build + tsc --noEmit clean; grok-init.test.ts and team-tools.test.ts (41 tests, including 8 new ones) and guidance-brain.test.ts pass; full `npm test` for @claude-flow/cli is green except 20 pre-existing failures across 16 files, all from @claude-flow/memory / @claude-flow/mcp / @claude-flow/codex not being built in this environment (none touch grok/team/statusline code). Co-Authored-By: RuFlo <ruv@ruv.net> * fix(grok-host): address round-3 review nits on the team lock and status line (#3512) A lock whose holder pid is still alive is no longer broken after 4s, so a stalled writer does not lose an update. An existing [ui.status_line] no longer fails init when another value is a BigInt. Quoted trusted-folder keys may contain ]. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(grok-host): keep the TOML parser out of the MCP tool import path (#3512) grokTemplatesRoot moves to init/grok-templates.ts, which has no dependencies. The team_* tools import it from there, so loading the MCP tool table no longer pulls in grok-generator and @iarna/toml. On current main, analyze-json-output.test.ts runs the analyze command from a copied source tree with only cli-core and security beside it, and failed 20 of 20 with "Cannot find package '@iarna/toml'" before this change. grok-generator re-exports grokTemplatesRoot, so its callers are unchanged. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: RuFlo <ruv@ruv.net> |
||
|
|
4401c87d6d |
feat(ruflo-console): separate the nav's menu, groups, search and pages with a bar (0.25.1) (#3664)
The compact nav (ADR 424) ran its groups together with a gap. A dim bar now sits between the menu, each group and the search on the first row, and between the pages on each row below. The width check counts the bars, so the search still moves to its own row when it does not fit. Presentation only: groups, pages, hotkeys and search are unchanged. Co-authored-by: r <r@x> |
||
|
|
df74e536e5 |
docs(adr): record stable leaf semver (ADR-403); update ADR-100 and ADR-378 after 3.48.0 (#3533)
ADR-403 records the alpha-to-stable move for 18 internal leaves: the embeddings exception, files allowlists, publish order, the prefer-workspace-packages lockfile rule, and main-must-contain-releases. ADR-100: cli-core is on stable 3.7.0 by policy; its cold-cache promotion criteria remain unverified. ADR-378: state of stable-npm-release.yml and the leaf step any release automation must now cover. |
||
|
|
920f59c569 | docs: propose ADR-402 for skill catalog and verified model training (#3604) | ||
|
|
6afffb777c |
fix(embeddings): writable model cache dir + retryable degraded state (#3692) (#3831)
A system-prefix global install's default ONNX model cache lives under its own package directory, which is root-owned — an ordinary runtime user hits EACCES the first time any of three independent call sites load the local transformers.js pipeline. The resulting failure also got memoized as permanent mock-embedding state for a worker's entire process lifetime, so fixing cache permissions mid-run never helped an already-running worker. - Resolve a writable cache dir (TRANSFORMERS_CACHE/HF_HOME, else ~/.cache/ruflo/models) and set it before pipeline() init at all three call sites: transformers-loader.ts, memory-initializer.ts, task-embedder.ts. - Distinguish a permanently-missing backend from a retryable environmental failure (EACCES, ENOSPC, transient network) in memory-initializer.ts and task-embedder.ts, so a retryable degraded state re-attempts real initialization after a bounded interval instead of requiring a restart. - Keep ADR-390's truthful backend:'onnx'|'mock' reporting unchanged. See ADR-454 for the full decision record. Co-authored-by: Nicholas Ruest <nicholasruest@Nicholass-MacBook-Pro.local> Co-authored-by: RuFlo <ruv@ruv.net> |
||
|
|
1af3abedd7 |
feat(marketplace): install Agentic QE (agentic-qe-fleet) from the ruflo marketplace (#3950)
* feat(marketplace): list Agentic QE (agentic-qe-fleet) as an external, pinned plugin The ruflo marketplace now lists agentic-qe-fleet by a git-subdir source pinned to agentic-qe v3.15.0 (1363bc7d), so `/plugin install agentic-qe-fleet@ruflo` installs the plugin from its own repository: 11 QE agents, 9 skills, 9 commands, the agentic-qe MCP server pinned to 3.15.0, and the aqe-mod guard. Tooling that assumed every entry is a local ./plugins folder now handles an external one: - validate-marketplace.yml checks an external entry (git-subdir, https url, path without .., full sha, description) instead of failing on it - smoke-all-plugins checks out each external entry at its sha and runs its own scripts/smoke.sh (--skip-external to omit); the workflow also runs when marketplace.json changes - ruflo-console 0.40.9: plugin-map line (Dev Tools), the coverage test requires a line for every external entry, and the Plugin Catalog reads an external plugin from its install path in installed_plugins.json (EXT badge) - README and plugins/README rows; ADR-484 records the decision and evidence * docs(adr-484): record what Claude Code before 2.1.69 does with the external entry, and main's existing floor * fix(ci): fence the external-plugin smoke: github-only sources, realpath containment, scrubbed env and cwd, read-only token Review findings 1 and 2 on #3950: - scripts/external-plugins.mjs: sources must be https://github.com/<owner>/<repo>(.git); the plugin folder, its manifest and smoke.sh must stay inside the checkout after realpath; the external smoke.sh runs with only PATH, LANG, TERM and CI kept (no GITHUB_TOKEN, ACTIONS_*, *_TOKEN, *_KEY, *SECRET*), a temporary HOME, and its checkout (in a temp folder outside the workspace) as cwd; git fetch runs with the same env - validate-marketplace.yml applies the same github-only allowlist and path rule - all-plugins-smoke.yml: permissions contents: read, persist-credentials: false, runs tests/external-plugins.test.mjs - tests/external-plugins.test.mjs: non-github host and lookalikes refused by both validators, symlink escapes refused, child env has no GITHUB_TOKEN and cwd is outside the workspace * ci(all-plugins-smoke): raise the smoke-all timeout from 10 to 15 minutes Review finding 4 on #3950: green runs on main take 9m40-9m50s, so the job sat on the 10-minute cap and was cancelled at 10m16s on this PR. * test(console): an external plugin's description, version, source line and docs are stripped of escapes and bidi controls Review finding 3 on #3950: the catalog reader already passes every external manifest string through plain() (ESC/CSI/OSC sequences, C0/C1 controls, U+202A-202E and U+2066-2069 removed); this test holds it to that. * ci(test-ratchet): tests/external-plugins.test.mjs runs under node --test, not the root vitest all-plugins-smoke.yml runs it with node --test; vitest reported "No test suite found". * feat(marketplace): move the agentic-qe-fleet pin to v3.15.1 (4f0f8412) agentic-qe v3.15.1 changes only the aqe-mod guard (#920: hardened, still tighten-only, same engine API and events as 3.15.0) and pins agentic-qe@3.15.1 in .mcp.json. * docs(adr-484): install evidence re-run at the v3.15.1 pin * feat(marketplace): move the agentic-qe-fleet pin to v3.15.2 (9db36edf) agentic-qe v3.15.2: aqe-mod reports its real version, keeps guard totals and the last refusal across sessions (additive totals/lastRefusal in status.json), and never reads or writes its status file through a symlink (adds $.fs.read and $.fs.stat); guard judging unchanged. .mcp.json pins agentic-qe@3.15.2. ADR-484 evidence re-run at this pin. * fix(marketplace): plain-name paths for external plugins, pin-review note, one marketplace for agentic-qe-fleet - both validators (scripts/external-plugins.mjs, validate-marketplace.yml) require the plugin path to match ^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$ with no . or .. segment: %2e%2e, a\..\b, a//b and a trailing slash are refused; tests cover both validators - ADR-484: every pin bump needs a review of the pinned scripts/smoke.sh - READMEs: install agentic-qe-fleet from the agentic-qe or the ruflo marketplace, not both * feat(marketplace): move the agentic-qe-fleet pin to v3.15.3 (d7e5ffa7) The plugin at v3.15.3 differs from v3.15.2 only in its version and its MCP pin (agentic-qe@3.15.3). ADR-484's evidence records the install re-run at the new pin. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(plugins): pin agentic-qe to v3.15.4 (bec02b13) The plugin at v3.15.4 differs from v3.15.3 only in its version and its MCP pin (agentic-qe@3.15.4). ADR-484's evidence records the install re-run at the new pin. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(plugins): pin agentic-qe to v3.15.5 (d65ede14) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(console): leave the console version bump to the maintainer at merge The console version and CHANGELOG entry collided with every console release on main (four rebases on 2026-10-12, each only plugins/ruflo-console/CHANGELOG.md). plugin.json, hooks/version.ts, scripts/smoke.sh and CHANGELOG.md now match main; ADR-484 and its index row say 'next console release'. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(plugins): pin agentic-qe to v3.15.6 (0fa34d24) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(plugins): pin agentic-qe to v3.15.7 (7f2d091d) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(plugins): pin agentic-qe to v3.15.8 (d9ce98f7) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(plugins): pin agentic-qe to v3.15.9 (d1c33d2b) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(plugins): pin agentic-qe to v3.15.10 (e5814a2f) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: rUv <ruv@ruv.net> |
||
|
|
f18ff4c427 |
fix(policy): authenticate retained ledgers and stream full audits with fenced writers (#4216)
* fix(policy): preserve authenticated ledger receipts across crash recovery * Register operator policy ledger limits in environment precedence audit * test(policy): assert bounded retention work instead of shared-runner latency |
||
|
|
9a9411c26c |
feat(tui): actions by name behind the console's confirm card (ADR-489 phase 6)
The go prompt (: or /) takes an action as well as a page. A name is matched literally against the console's palette entries (id, or name containing the typed words, or a text command keyword), never fuzzily. A read runs at once through Host.run (ruflo CLI by argv only); a change raises the console's own state.pending card, pinned under the page bar, and runs only on a lone y while every row of the card is on screen (state.shownCard). Paste, Enter, "yes", a card too tall for the window or a replaced card run nothing; n/Esc drops it. The console's own verdict on the run is pinned for 20 s. - tui/pinned.ts: the card and result rows - session: palette(), answer(), pending(), cardShown(), pinned() - parity table wording, ADR-489 phase 6, guide; key line says "ask first" - tests/tui-actions.spec.ts with a CLI stand-in recording the argv Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
e7c29326d4 |
feat(tui): every console view opens in ruflo tui, with a menu, a go prompt, Back and opt-in mouse (ADR-489 phase 5)
- tui/parity.ts: a recorded decision for each of the console's views (same / partial / equivalent / claude-only); tests/tui-parity.spec.ts fails when a view in VIEWS has no decision or no row in ADR-489 - 0 opens the main menu (its keys open entries), : or / goes to a page by name, Esc/Backspace is Back, --view takes any page; the console terminal opens the AI page and the Room says on one screen that it needs Claude Code - terminal renderer: a Box's width is honoured (the board's two groups side by side) and the board's entry labels are drawn (they were blank) - --mouse (opt-in, SGR): click a page chip, wheel scrolls; off by default, switched off on exit, report bytes ignored without the flag - CLI: --view validates against the loaded bundle's page list, --mouse flag Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
1e8d37e03a |
feat(tui): ruflo tui draws the console's pictures, looks and motion (console 0.44.0, ADR-489 phase 4)
The standalone terminal UI now leads each page with the same title art and pictures the console draws, as coloured cells (Raster in the terminal kit), in the console's looks (Classic BBS default, Orbital, plain), moving at --fps with only the changed rows redrawn. - tui/ansi.ts: Raster; control/escape/invisible/wide code points become spaces, malformed or oversized cells draw nothing - looks: --look, t key; --boot; --fps, --no-anim, --no-pictures - focus reporting pauses the animation clock; NO_COLOR, dumb terminals, and widths under 44 fall back to the words - guide: flags, looks, the t key; corrects the confirm-card sentence - ADR-489: phase 4 recorded, parity table skeleton - README/guide SVGs regenerated from real frames (leak-checked) Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
dbdceb6184 |
fix(policy): keep unmetered worker ceilings opt-in
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com> |
||
|
|
7718a142b4 |
feat(tui): the AI page: ask Codex (read-only, pinned) or OpenRouter, each question after a card (ADR-489 phase 3)
Page 6. Reuses harness.send and the conversation bridge's sendTo, not a second harness. Host.spawn runs only the pinned Codex 0.162.0 release (never current or PATH), read-only, from a fixed argument allow-list; Host.httpSend sends only https POST to openrouter.ai or a convoTargets host, never follows a redirect, and a key is read by variable name and never drawn. Enter shows a card of exactly what would be sent; a lone y answers it only while it was drawn in full (#3983); spend cap from the provider-reported cost. e2e host matrix gets a tui leg (keyless in CI, live gated). Not in this PR: the workspace-write toggle. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
87e6d32716 |
Merge pull request #4075 from ruvnet/feat/tui-phase2
feat(tui): Swarm, Events and Missions pages, page bar and keys, resize, no Claude-only chrome (ADR-489 phase 2) |
||
|
|
741619b5bf |
Merge pull request #4070 from ruvnet/fix/codex-dual-safe-defaults
fix(codex): safe default .codex/config.toml; permissive mode needs --codex-trust full |
||
|
|
ba6f9273a3 |
feat(tui): Swarm, Events and Missions pages, page bar and keys, resize, and no Claude-only chrome (ADR-489 phase 2)
Five pages (Overview, Cost, Swarm, Events, Missions) with keys 1-5 / o c s e m / Tab / Shift-Tab, a page bar, a key line that shortens with the width, clear-and-redraw on resize, a position bar under 60 columns and a notice under 40. Room is left out on purpose (a message box and Claude sessions this host does not have). state.isStandalone is the capability flag: on this host the shared chrome is not drawn (no tab bar, footer buttons, Launch, Ask Claude, Claude control card); a button nobody can press is not drawn, a state chip and a section title are. Missions reads the ADR-406 record only. Under Claude Code nothing changes. Console 0.42.7. Co-Authored-By: RuFlo <ruv@ruv.net> |