mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
@claude-flow/plugins@3.0.1
7782
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
370355015b |
fix(codex): close worker stdin so codex exec doesn't hang waiting for EOF (#2947) (#2997)
DualModeOrchestrator spawned both Claude and Codex workers with stdio: ['pipe', 'pipe', 'pipe'] but never wrote to or closed proc.stdin. Both platforms receive their prompt positionally/via flag, never over stdin — claude -p ignores the open pipe, but codex exec blocks in resolve_root_prompt waiting for stdin EOF that never arrives, hanging every real Codex worker until the orchestrator's own multi-minute timeout kills it. Close stdin immediately after spawn for both platforms. Regression test spawns a real child process standing in for codex exec (waits for stdin EOF before exiting) and asserts the worker completes well under a short configured timeout instead of failing via timeout. |
||
|
|
506264a9d7 |
chore(release): bump to 3.38.5 — .brain skip, --repo passthrough, secret regex
Ships #2994 (#2911 — ruvnet-brain clones no longer poison ADR indexing), #2995 (#2963 — github_issue_track passes --repo to gh), #2996 (#2931 — hardcoded-secret regex catches shorter/embedded Stripe/OpenAI-shaped keys). Co-Authored-By: RuFlo <ruv@ruv.net>v3.38.5 |
||
|
|
7715eb5ea9 |
fix(security): loosen Stripe/OpenAI secret regex boundaries (#2931) (#2996)
The 20-char floor after the sk-/sk_live_/sk_test_ prefix missed shorter-but-real keys, and the quote-adjacency anchor required a quote literally next to the prefix, missing the common `Authorization: "Bearer sk_live_..."` shape where the quote sits next to "Bearer", not the key. Lookaround boundaries match the prefix as a standalone token wherever it appears, with a lower (but still non-trivial) length floor. |
||
|
|
2fd63cf3db |
fix(github-tools): pass --repo to gh in github_issue_track (#2963) (#2995)
owner/repo were validated but never passed to gh, so `gh` silently resolved the target repository from the cwd's git remote instead of the caller-specified one. A caller supplying owner/repo expecting the issue to land there had no guarantee it did, even on the "real" gh-backed success path. |
||
|
|
f9537a240b |
fix(ruflo-adr): skip .brain when walking for ADRs (#2911) (#2994)
* fix(ruflo-adr): skip .brain when walking for ADRs (#2911) ruvnet-brain clones ~50 external repos under .brain/repo/clones/, many carrying their own docs/adr/. Without .brain in SKIP_DIRS, findAdrs() picked up hundreds of foreign ADRs alongside the project's own — and since .brain sorts before docs, the project's ADRs landed dead last in the walk order. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(ruflo-adr): smoke step 22 should not hard-code the test-file count Was `-eq 3`, breaking every time a new *.test.mjs file is added to __tests__/ even when the new tests themselves pass. `-ge 3` keeps the "regression tests exist and run" guarantee without re-breaking on growth — caught by this PR's own new test file (skip-brain-dir-2911). Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
7c738174c1 |
chore(release): bump to 3.38.4 — init flag fix + graph edge race fix
Ships #2989 (init --all-agents/--skip-claude/--only-claude/--cloud-mcp were dead kebab-case flag reads) and #2991 (CLI hooks post-task dropped the ADR-130 reinforced-by graph edge due to an unawaited fire-and-forget write racing process.exit(0)). Co-Authored-By: RuFlo <ruv@ruv.net>v3.38.4 |
||
|
|
d41af6e4d5 |
fix(hooks): await the ADR-130 reinforced-by graph edge write (#2961) (#2991)
`hooks post-task` (CLI) reliably dropped the "reinforced-by" graph edge on every successful call. The write was a fire-and-forget async IIFE the handler never awaited — invisible from the long-running MCP server, but the CLI is a one-shot process that calls process.exit(0) immediately after the command action resolves (#1552), killing the still-pending write before its first tick, every time. |
||
|
|
3d3f6e08cc |
fix(init): read the parser's actual camelCase flag keys (#2952) (#2989)
`--all-agents`, `--skip-claude`, `--only-claude`, and `--cloud-mcp` were silent no-ops. Every long-flag write path in the parser normalizes kebab-case to camelCase before storing (`--all-agents` -> `flags.allAgents`), but `initClaudeAction` read the literal kebab-case keys, which the parser never produces. Same bug class already fixed for `--no-global` (#2098A) five lines above — never applied to these siblings. |
||
|
|
f14453c3b7 |
chore(release): bump to 3.38.3 — hooks intelligence --train fix
Ships #2988: `hooks intelligence --train` now actually distills (#2940) instead of printing a canned success message with no state change behind it. Co-Authored-By: RuFlo <ruv@ruv.net>v3.38.3 |
||
|
|
1e2178f246 |
fix(hooks): make hooks intelligence --train actually train (#2940) (#2988)
`--train` declared a `forceTraining` input on the `hooks_intelligence` MCP tool but never read it — the handler always returned the same read-only status dashboard, and the CLI action's --train branch was a cosmetic 500ms sleep followed by an unconditional "Training cycle completed". `lastAdaptation` (what `--status` reports as "Last Training") never moved, so it could only ever age no matter how many times --train ran. Now `hooks_intelligence` calls the existing `distillLearning()` when `forceTraining` is set and reports what actually happened: patterns distilled, ran with nothing new to distill, or MCP unavailable — so a real training cycle and a no-op are no longer the same output. |
||
|
|
8082fbc0f8 |
chore(release): bump to 3.38.2 — removed-agent restore + mcp http foreground fix
Publishes #2986 (fix(migrate): correct removed-agent install suggestion and add `migrate fix --agents` restore, #2985) and #2987 (fix(mcp): mcp start -t http exits after false-success table + doc drift, #2984). Pure bug fixes, no breaking changes -> PATCH per repo semver policy. @claude-flow/cli, claude-flow, ruflo published in lockstep at 3.38.2, all three dist-tags (latest/alpha/v3alpha) verified against the live registry, published tarball pulled and confirmed to contain both fixes. Co-Authored-By: RuFlo <ruv@ruv.net>v3.38.2 |
||
|
|
87f4f8ab67 |
fix(mcp): mcp start -t http exits after false-success table + doc drift from #2985 (#2987)
* fix(migrate,mcp): unresolvable remediation command + false-success HTTP server exit Two independently-reported, freshly-filed defects: - #2985: `ruflo migrate status`'s ADR-128 removed-agent remediation (shipped today via #2973/ADR-382 Part B) printed a command that cannot succeed twice over: `ruflo plugins install <plugin>` requires -n/--name (not a positional) AND targets the npm-package plugin system, while the gap detector's own registry check (installed_plugins.json) is for the Claude Code marketplace system entirely. Fixed to print the correct `/plugin install <plugin>@ruflo` slash-command flow, with a one-time "run /plugin marketplace add ruvnet/ruflo first" hint. Also corrects three adjacent doc-drift items the reporter found while verifying: README/USERGUIDE's `claude mcp add ruflo` examples (should be the canonical `claude-flow` key per #2206 — the exact stray-key duplicate #2612's healing logic exists to clean up), README's blanket "MCP server registered: No" claim for the plugin path (ruflo-core ships its own .mcp.json and does register one), and a stale comment in executor.ts conflating the CLI-track's mcp__claude-flow__* tool refs with the marketplace plugin binding (mcp__plugin_<plugin>_<server>__*). - #2984: `ruflo mcp start -t http` printed a full "Status: Running" success table — PID, health/RPC URLs — then exited 0 within seconds, never actually leaving the port bound. Root cause: bin/cli.js's "normal CLI mode" branch (which any explicit non-stdio --transport always takes) unconditionally exits once the dispatched command's action() promise resolves (#1552's "one-shot command" assumption). mcp.ts's `start` action returned immediately after printing the table, so the freshly-bound http.Server was torn down within milliseconds of the printed success claim. Fixed by blocking in the foreground after a successful start (SIGINT/SIGTERM-driven graceful shutdown), matching daemon.ts's established `--foreground` pattern — `daemonize` isn't currently wired to fork/detach anywhere in MCPServerManager, so every successful start via this path is a foreground server regardless of the -d flag. Tests: migrate-agent-detection.test.ts updated for the corrected command string; new mcp-http-foreground-2984.test.ts spawns the built CLI exactly like the bug report and asserts the port actually accepts connections after the success table prints (not just that it printed), then confirms SIGTERM still produces a clean exit. Both verified via git-stash A/B: fail against the pre-fix code, pass against the fix. Full suite otherwise unaffected — same 9 pre-existing sandbox-environment failures (ruvector/wasm bindings, embedder model downloads) reproduced identically before this change. Closes #2985. Closes #2984. Co-Authored-By: RuFlo <ruv@ruv.net> * revert: drop migrate-agent-detection changes, superseded by PR #2986 An external contributor (pacphi) independently opened #2986 fixing the same #2985 with the identical installCommand correction plus a real `migrate fix --agents` restore command — strictly more complete than this branch's minimal fix. Dropping the overlapping files here to avoid a duplicate/conflicting PR; reviewed #2986 and recommended it for merge. Remaining on this branch: the #2984 mcp start -t http fix and the doc-drift items #2986 explicitly scoped out (README/USERGUIDE mcp-add key, executor.ts comment). Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
dbd88254e3 |
fix(migrate): correct removed-agent install suggestion and add 'migrate fix --agents' restore (#2985) (#2986)
The suggestion printed by 'migrate status' (ADR-382 Part B) could not succeed: 'ruflo plugins install <plugin>' fails on syntax (--name is required) and targets the npm-package PluginManager, while the owning plugins are Claude Code marketplace plugins (not npm packages). The detection module's own header documents that split. - point installCommand at the marketplace flow the registry check actually verifies: /plugin install <plugin>@ruflo - add 'migrate fix --agents' (with --dry-run): restores missing agents from canonical plugin content — marketplace clone, then repo checkout, then GitHub raw pinned to the CLI's version tag with main fallback — rewriting the plugin-only mcp__plugin_ruflo-core_ruflo__ namespace to the canonical claude-flow server key (#2206) and recording provenance after the frontmatter. Never overwrites existing files. - status now hints at the fix command when gaps are found |
||
|
|
711ca3f6fe |
chore(release): bump to 3.38.1 — memory search truncation + persistence honesty fixes
Publishes the #2983 fixes (#2982/#2976 unordered LIMIT truncation in memory search, #2968 sql.js persistence honesty). Pure bug fixes, no API/behavior additions -> PATCH per repo semver policy. Also corrects package-lock.json's top-level version field, which had drifted to a stale 3.35.0 independent of this bump. @claude-flow/cli, claude-flow, ruflo published in lockstep at 3.38.1, all three dist-tags (latest/alpha/v3alpha) verified against the live registry. Co-Authored-By: RuFlo <ruv@ruv.net>v3.38.1 |
||
|
|
b8c37da8e9 |
fix(memory): unordered LIMIT truncation in search + honest sql.js persistence status (#2983)
Two independently-reported, verified defects in the memory bridge: - #2982/#2976 (duplicate reports): bridgeSearchEntries() and bridgeSearchHNSW() pre-ranked their corpus with `LIMIT 1000`/`LIMIT 10000` and no ORDER BY, so SQLite returned rows in arbitrary storage order (insertion order on a fresh table) before BM25/embedding scoring ever ran. On any corpus over the limit, newest entries were silently excluded from scoring regardless of relevance. bridgeListEntries() already ordered by updated_at DESC for the same reason; both search paths now match it. Verified via a stash A/B: identical repro returns zero results without the fix, recalls the target with it. - #2968: bridgeStoreEntry() swallowed every wal_checkpoint(PASSIVE) failure as "non-fatal" and unconditionally reported store success. On the sql.js fallback driver (engaged when better-sqlite3's native binding never got built — e.g. a skipped optionalDependency postinstall), that PRAGMA throws "Invalid PRAGMA command" every time, and writes may never reach disk. The specific failure signature is now distinguished from ordinary busy/non-WAL pragma failures and surfaced as `persistWarning`, which `memory store` prints instead of an unconditional green "Data stored successfully". Both fixes stay within the CLI's own bridge layer — no changes to the external agentdb/better-sqlite3 packages. Tests: 2 new regression files (3 tests), full CLI suite otherwise unaffected (10 pre-existing failures reproduced identically against a clean baseline with these changes stashed — all in ruvector/wasm/ embedder-model-download paths, unrelated to this change). Closes #2982, #2976. Part of #2968 (root-cause guarded; upstream agentdb sql.js persistence itself is unchanged). |
||
|
|
6b01dc5a68 |
chore(release): bump to 3.38.0 — ADR-382 init scaffold drift remediation
Parts A/B/C: pinned ruflo-core's marketplace-plugin MCP launch path (local-bin-first resolver, mirroring hook-handler.cjs), registered 3 plugins missing from marketplace.json, implemented ADR-128's promised `ruflo migrate` removed-agent detection, and shipped a warn-only CI guard (scripts/smoke-init-scaffold-references.mjs) plus a deterministic remap of 701 dead `npx claude-flow` references across 142 scaffold files. Ref: #2971, ADR-382v3.38.0 |
||
|
|
83e536396f |
fix(scaffold): add dead-reference guard + deterministic CLI remap (ADR-382 Part C) (#2974)
Adds scripts/smoke-init-scaffold-references.mjs (ADR-382 Part C, #2971): four static assertions over v3/@claude-flow/cli/.claude/** and the plugin/marketplace surface, deriving the live MCP tool set and canonical CLI form from source rather than hand-maintaining them. 1. dead `npx claude-flow` (bare) invocation 2. dead `mcp__claude-flow__<tool>` references not in the live registry 3. plugin .mcp.json launches with no local-bin-first resolver (Part A regression guard) 4. plugins/* directories missing from .claude-plugin/marketplace.json Ships warn-only (no --strict) with a documented --strict flag to flip once backlogs clear. Wired into .github/workflows/v3-ci.yml as a new job, gated on plugins/*/.mcp.json, .claude-plugin/marketplace.json, and the script itself (v3/@claude-flow/cli/.claude/** was already a trigger path). Deterministic remap applied: 701 occurrences of bare `npx claude-flow` across 142 files -> `npx @claude-flow/cli@latest` (mechanical, 1:1, verified by rerunning the guard: check 1 701 -> 0, check 2 unchanged at 410). The 386 legacy `npx claude-flow@alpha` / `@v3alpha` occurrences elsewhere in the same tree were left untouched (still-maintained dist-tags). NOT remapped in this PR (tracked follow-up, per ADR-382 Part C's own guidance not to guess): 410 dead `mcp__claude-flow__<tool>` occurrences across 98 files, 54 distinct dead tool names (memory_usage: 53 files, task_orchestrate: 41, sparc_mode: 34, swarm_monitor: 16, plus 50 more at lower counts). Each requires per-call-site judgment about the surrounding example's intent (store vs retrieve vs list, 1-line vs restructured 2-line orchestration calls) that a bulk regex pass cannot make safely. Checks 3-4 are expected-red until ADR-382 Part A merges (plugin/ruflo-core .mcp.json resolver + the 3 missing marketplace entries: ruflo-agntcy, ruflo-bbs-federation, ruflo-business-pods). |
||
|
|
2c8f863583 |
fix(migrate): implement ADR-128's promised removed-agent detection (ADR-382 Part B) (#2973)
ADR-128 Phase 2 deleted 9 forked agent files from the init template (coder.md, researcher.md, reviewer.md, tester.md, memory-specialist.md, security-auditor.md, sparc-orchestrator.md, goal-planner.md, adr-architect.md), making each plugin canonical. Its Consequences section promised "`ruflo migrate` should detect removed agents and print install suggestions" — never implemented until now. Adds detectRemovedAgentGaps() (new sibling module migrate-agent-detection.ts, kept out of the already-783-line migrate.ts per the file-size budget) which, for each of the 9 agents, checks whether the basename is missing from the project's .claude/agents/ tree and whether the owning plugin is installed per Claude Code's global ~/.claude/plugins/installed_plugins.json registry (the only real on-disk signal for marketplace-plugin install state; ruflo's own PluginManager manifest tracks a separate npm-package-based system). Pure filesystem checks, no CLI version comparison, per ADR-382 Part B scope. `ruflo migrate status` now prints a second table naming any such gap, its owning plugin, and the exact `ruflo plugins install <plugin>` command to restore it (JSON output via ctx.flags.format === 'json' gains a removedAgentGaps field, matching this file's existing patterns). See v3/docs/adr/ADR-382-init-scaffold-content-drift-remediation.md (PR #2972) and https://github.com/ruvnet/ruflo/issues/2971. |
||
|
|
8e62a8bd8d |
fix(plugins): pin ruflo-core MCP launch path + register 3 missing marketplace plugins (#2975)
ADR-382 Part A:
- plugins/ruflo-core/.mcp.json launched the MCP server via a bare
`npx -y @claude-flow/cli@latest`, which always re-resolves to the
newest registry version regardless of any local `npm install
@claude-flow/cli` a user separately pinned. Add scripts/mcp-launch.cjs,
a small launcher mirroring hook-handler.cjs's resolveCliBinForHook()
(candidate list + dist/src/index.js existence guard against a
source-only marketplace checkout), and point .mcp.json at it via the
documented ${CLAUDE_PLUGIN_ROOT} substitution. Falls back to the
original npx @latest invocation only when no local install resolves.
- .claude-plugin/marketplace.json listed 35 plugins while plugins/ has
38 directories; register the 3 missing ones (ruflo-agntcy,
ruflo-bbs-federation, ruflo-business-pods), descriptions sourced from
each plugin's own .claude-plugin/plugin.json.
Ref: ADR-382, #2971
|
||
|
|
6ce18b5a7f |
chore(release): bump to 3.37.0 — proxy fixes + new config flags
Minor bump (not patch) because #2927/#2928 add backward-compatible CLI flags (--routing-mode, --passthrough), not just bug fixes: - fix(proxy): bump pinned meta-proxy release 0.4.0 -> 0.7.3 (#2925) - fix(proxy): fall back to tar when Expand-Archive fails on Windows (#2926) - fix(proxy): disclose what enabling cloud routing decides, --routing-mode (#2927) - fix(proxy): make the passthrough plane reachable again after cloud routing (#2928) Co-Authored-By: RuFlo <ruv@ruv.net>v3.37.0 |
||
|
|
6d58837f4f |
fix(proxy): make the subscription plane reachable again after cloud routing (#2928)
* fix(proxy): disclose what enabling cloud routing actually decides, and let users pin a tier Closes the terminal half of cognitum-one/meta-proxy#43 M5b, and adds the `routing_mode` control ruflo never had. meta-proxy ADR-321 rev-2 (shipped v0.6.0, #43 M2) applies tier selection to ALL Cloud traffic. Before it, a deliberately configured Cloud plane forwarded the client's own model name -- and since Claude Code names a frontier model by default, every request was served at the top tier with no ceiling and no proxy daily cap. Difficulty-routing all Cloud traffic is the fix for that defect, not a regression, and it deliberately does not touch Passthrough or Local: those are the user's own subscription and their own backend. But ruflo never told anyone. `ruflo proxy config --cloud` said only that prompts go to api.cognitum.one "and forwarded to the selected provider" -- so a user could enable cloud routing still believing their model choice held. #43 M5a fixed the Developer Console selector; M5b ("equivalent disclosure to any terminal flow that explicitly activates Cloud") is this command, and it was still open. The disclosure now answers the three things activating Cloud actually decides, each of which has a different answer than the plane being left: - who processes the prompt (Cognitum, server-side) - who pays (the Cognitum account -- NOT the user's own Claude subscription, which is what Passthrough uses and is unaffected) - which model runs (the plane picks a tier per prompt rather than honoring the requested model) `--routing-mode <auto|low|mid|high>` is rev-2's escape hatch. The console got a control for it in meta-proxy#52; ruflo had none, so a ruflo user was stuck on auto with no way to disagree -- and the scorer reads prompt SHAPE, not task difficulty, so a short-but-hard prompt can under-escalate. Setting a tier must never activate Cloud (ADR-321 Revision 3 keeps the plane choice and this Cloud-only setting as separate controls), so `--routing-mode` alone writes only `routing_mode`, asks for no consent it does not need, and says the setting is inert until Cloud is on. `--routing-mode` with `--local-only` is refused rather than silently resolved, and an unconfirmed `--cloud` still writes nothing at all. Wire values confirmed against meta-proxy's `RoutingMode` enum (`src/config.rs`, same `#[serde(rename_all = "snake_case")]` treatment as `DataPlane`), and `#[serde(default)]` there means an existing config that omits the field keeps working and reads as auto. An unrecognized value already in the file reports as auto rather than being echoed back, matching the proxy's own degrade-to-safe-default behavior. ADR-304 records both, and drops its inline copy of the disclosure text -- that copy had already fallen behind the shipped string, and a reader could not tell which was real. #43 M3 (a Cloud tier ceiling and daily cap) stays open upstream as a product decision, so the disclosure makes no claim about caps either way. Test: 9 proxy test files, 68 tests, all passing (was 56). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(proxy): make the subscription plane reachable again after cloud routing `--local-only` was the only exit from the cloud plane, and it writes `default_data_plane = "local"` -- the user's own Ollama/vLLM/SGLang backend. `passthrough`, which is meta-proxy's own default AND the plane that uses the user's own Claude subscription, was unreachable from this command by design ("passthrough is never written", ADR-304's 07-16 addendum). So the undo we advertised was wrong. A user on passthrough who followed our own disclosure -- "Disable anytime: ruflo proxy config --local-only" -- landed on a THIRD state they never chose, pointed at a local backend that may not be installed. Two consequences, neither visible: 1. Their Claude subscription stops being used at all. That is the same harm cognitum-one/meta-proxy#51 closed on the login path ("silently switches a user away from Passthrough -- their own Claude subscription"), reached through a different door. 2. Automatic quota failover silently stops applying. meta-proxy gates it on the plane (`src/routing.rs`: `automatic_eligible = cfg.default_data_plane == DataPlane::Passthrough`) because Passthrough is the only plane that sees Anthropic's own rate-limit headers (ADR-320). A user parked on `local` is opted out of ADR-321 entirely and is never told. The no-flag report papered over the difference, printing one line -- "Cloud routing is OFF -- requests never leave this machine (or use your own Claude subscription on Passthrough)" -- for two planes that do not behave alike. `--local-only` keeps its meaning exactly; the flag name and ADR-304 both promise a local backend, and silently retargeting it would just be a second surprise. Instead: - `--passthrough` is added, writing `default_data_plane = "passthrough"` and revoking cloud-routing consent the same way `--local-only` does. - The disclosure names both exits instead of presenting one as THE undo. - `--cloud` reads the plane it is leaving before overwriting it and prints the command to restore it. That read is the only moment ruflo knows where the user was, and it beats persisting a "previous plane" that could go stale against a hand-edited TOML. - `--local-only` now says the Claude subscription is not used on that plane, and how to choose it instead. - The no-flag report describes each plane distinctly and calls out the ADR-321 failover consequence while on `local`. - Plane flags are mutually exclusive -- more than one is refused rather than resolved by precedence, since any precedence would discard something the user explicitly asked for. No default changes: a user who never runs this command is on passthrough, exactly as before. ADR-304 records the decision and supersedes its own "passthrough is never written" claim. Test: 9 proxy test files, 80 tests, all passing (was 68). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(proxy): correct disclosure's who-pays claim (post-merge reapply) Same fix as on #2927 — the disclosure asserted Passthrough "is the plane in effect until you turn this on", which is false whenever the user is already on --local-only. Reapplying after merging main (which already had this fix on the pre-passthrough disclosure text) since this branch's own commit still carried the original wording. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: ruv <ruv@ruv.net> |
||
|
|
e1f7e4a232 |
fix(proxy): disclose what enabling cloud routing decides, and let users pin a tier (#2927)
* fix(proxy): disclose what enabling cloud routing actually decides, and let users pin a tier Closes the terminal half of cognitum-one/meta-proxy#43 M5b, and adds the `routing_mode` control ruflo never had. meta-proxy ADR-321 rev-2 (shipped v0.6.0, #43 M2) applies tier selection to ALL Cloud traffic. Before it, a deliberately configured Cloud plane forwarded the client's own model name -- and since Claude Code names a frontier model by default, every request was served at the top tier with no ceiling and no proxy daily cap. Difficulty-routing all Cloud traffic is the fix for that defect, not a regression, and it deliberately does not touch Passthrough or Local: those are the user's own subscription and their own backend. But ruflo never told anyone. `ruflo proxy config --cloud` said only that prompts go to api.cognitum.one "and forwarded to the selected provider" -- so a user could enable cloud routing still believing their model choice held. #43 M5a fixed the Developer Console selector; M5b ("equivalent disclosure to any terminal flow that explicitly activates Cloud") is this command, and it was still open. The disclosure now answers the three things activating Cloud actually decides, each of which has a different answer than the plane being left: - who processes the prompt (Cognitum, server-side) - who pays (the Cognitum account -- NOT the user's own Claude subscription, which is what Passthrough uses and is unaffected) - which model runs (the plane picks a tier per prompt rather than honoring the requested model) `--routing-mode <auto|low|mid|high>` is rev-2's escape hatch. The console got a control for it in meta-proxy#52; ruflo had none, so a ruflo user was stuck on auto with no way to disagree -- and the scorer reads prompt SHAPE, not task difficulty, so a short-but-hard prompt can under-escalate. Setting a tier must never activate Cloud (ADR-321 Revision 3 keeps the plane choice and this Cloud-only setting as separate controls), so `--routing-mode` alone writes only `routing_mode`, asks for no consent it does not need, and says the setting is inert until Cloud is on. `--routing-mode` with `--local-only` is refused rather than silently resolved, and an unconfirmed `--cloud` still writes nothing at all. Wire values confirmed against meta-proxy's `RoutingMode` enum (`src/config.rs`, same `#[serde(rename_all = "snake_case")]` treatment as `DataPlane`), and `#[serde(default)]` there means an existing config that omits the field keeps working and reads as auto. An unrecognized value already in the file reports as auto rather than being echoed back, matching the proxy's own degrade-to-safe-default behavior. ADR-304 records both, and drops its inline copy of the disclosure text -- that copy had already fallen behind the shipped string, and a reader could not tell which was real. #43 M3 (a Cloud tier ceiling and daily cap) stays open upstream as a product decision, so the disclosure makes no claim about caps either way. Test: 9 proxy test files, 68 tests, all passing (was 56). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(proxy): correct disclosure's who-pays claim for --local-only users The disclosure text asserted "[Passthrough] is the plane in effect until you turn this on" — false whenever default_data_plane is already "local" (i.e. exactly a --local-only user considering re-enabling cloud routing). Reword to state Passthrough is the proxy's default and what the user's Claude subscription is used by, without claiming it's necessarily the plane currently in effect. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: ruv <ruv@ruv.net> |
||
|
|
52f4f33a07 |
fix: sync v3/pnpm-lock.yaml with @claude-flow/memory@^3.0.0-alpha.22
The version-sync commit (
|
||
|
|
d3e647a5dd |
fix(proxy): bump pinned meta-proxy release 0.4.0 -> 0.7.3 (#2925)
* fix(proxy): bump pinned meta-proxy release 0.4.0 -> 0.7.3 `DEFAULT_PROXY_RELEASE` had not moved in six meta-proxy releases, so `ruflo proxy install` shipped a binary predating every fix since v0.4.0: - require explicit Cognitum Cloud routing consent (#60) first in v0.7.0 - handle --help before binding (#74/#76) first in v0.7.2 - --help/--version win from any argv position (#85) first in v0.7.3 - reload live daemon config on login/logout (#28) first in v0.4.1 - pin the Linux glibc floor to 2.28 (#66) first in v0.7.1 The consent one matters most: the install disclosure promises cloud routing is "never enabled by install alone", but the commit that separated authentication from routing consent landed in v0.7.0 — after the pinned build. The --version regression is directly observable on 0.4.0: the binary starts the daemon, writes the token file and binds 127.0.0.1:11435, where meta-proxy's own source documents --version as side-effect-free ("no server, no I/O"). Any probe silently leaves a listener running. Also stop hardcoding the version in proxy.ts's example text. That string was written as a literal rather than interpolating the constant, so the advertised version could — and did — drift from the installed one. Both tests now read the pin from the module for the same reason; asserting a literal means every bump needs hand-edited test expectations. Verified on Windows x64: `ruflo proxy install --release 0.7.3 --yes` installs with signature + checksum verification intact, and `--version` then prints and exits with no process left running and no port bound. Test: 9 proxy test files, 56 tests, all passing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * fix(proxy): surface pin drift to already-installed users Bumping DEFAULT_PROXY_RELEASE only changed what a NEW install receives. Someone who had already run `proxy install` on 0.4.0 got no signal that anything moved: `proxy status` reported installation as a boolean, and `proxy update` required an explicit --release, so reaching a newer binary meant already knowing its version number. The fixes that motivated the bump therefore reached only the users who did not yet have the problem. ProxyStatus now carries `version`, read from the install manifest install.ts already writes. `proxy status` prints it, the console guidance names the gap and the command that closes it, and `proxy update` defaults to the pin the same way `install` does. Updating stays explicit and user-initiated. The version is read from the manifest, never by executing the binary: releases before v0.7.2 start the server and bind a port on ANY invocation, so a `--version` probe against an old build leaves a listener running -- precisely the state this check exists to detect. A missing or malformed manifest reports "unknown", never "up to date". Also corrects two stale claims this change makes load-bearing: - proxy/lifecycle.ts's header asserted as fact that the binary "takes no CLI flags -- no --version/--help, any invocation just starts the server" (confirmed 2026-07-16). v0.7.2 handles --help before binding and v0.7.3 makes --help/--version win from any argv position. Left as-is, the next reader concludes no version handshake is possible. - ADR-307 still described the pin as v0.4.0 -- a fourth copy of the literal this PR is de-duplicating, and the one a reviewer reads to decide what the pin should be. It now names no version at all and points at the constant, plus records the drift-surfacing behavior. Test: 9 proxy test files, 64 tests, all passing (was 56). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
a39a1dccd0 |
fix(proxy): fall back to tar when Expand-Archive fails, and cover extraction (#2926)
`ruflo proxy install` aborted on Windows after the release had already been
downloaded and its Ed25519 signature + sha256 verified:
[ERROR] Install failed
Expand-Archive failed (exit 1): Expand-Archive : The 'Expand-Archive'
command was found in the module 'Microsoft.PowerShell.Archive', but the
module could not be loaded.
`Microsoft.PowerShell.Archive` is a script module reached through PowerShell's
autoloading, so it can fail for environment reasons unrelated to the archive.
The same command succeeded on the same machine minutes later, so this is
intermittent rather than a hard platform break — which makes it worse, not
better: a verified archive was discarded and the install left with nothing.
Windows is the only platform exposed to this. releaseArchiveExtension() sends
`*-windows-msvc` to .zip and every other target to .tar.gz, and the .tar.gz
branch already shells out to tar.
Expand-Archive stays the PRIMARY zip path — bsdtar's zip support is still not
something to lean on by default, per the existing comment. It now falls back to
`tar -xf` (bsdtar ships on Windows 10+) instead of giving up, and only a failure
of BOTH extractors is fatal, reporting each cause. Extraction is split into two
helpers so each path is independently exercisable.
Adds __tests__/proxy-extract-archive.test.ts (10 tests). Extraction was the only
platform-divergent step in the install pipeline and had no direct coverage:
nothing in __tests__ referenced extractArchive, ExtractionError, or
Expand-Archive. The executor is mocked, so routing is asserted on every platform
without needing a real powershell.exe or bsdtar.
`extractArchive` is exported for those tests.
Verified the tests pin the fallback rather than merely the new export: with the
fallback disabled but the export kept, exactly the 5 fallback-specific tests
fail and the other 5 still pass.
Test: 10 proxy test files, 66 tests, all passing. Changed files typecheck clean.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
||
|
|
efd0406e7a |
chore: sync committed versions to already-published 3.36.0 / memory@alpha.22
@claude-flow/cli, claude-flow, and ruflo were published at 3.36.0 (and @claude-flow/memory at 3.0.0-alpha.22, carrying the #2887 durability fix) without the version bump landing back in git — this just reconciles the committed package.json versions with what's actually live on npm, and bumps the cli's @claude-flow/memory floor to the version that has the fix. No code changes. Co-Authored-By: RuFlo <ruv@ruv.net>v3.36.0 |
||
|
|
1d365d4a65 |
fix: silent memory-write loss + daemon lock cwd bypass (#2887, #2878, #2877) (#2966)
Three independent data-integrity/correctness bugs in the memory and daemon subsystems: #2887 — agentdb_hierarchical-store reported success:true for writes that were never persisted. Root cause: agentdb dropped its HierarchicalMemory export at 3.0.0-alpha.17, so every call was silently landing on an in-process-only TieredMemoryStore fallback. The fallback now writes through to a `tiered_memory` SQLite table when given a db handle, and the bridge refuses to report success for a write that isn't durable — it names the fallback controller and reason instead. agentdb_health now reports the real persisted row count so a claimed write vs. an empty table is visible. #2878 — concurrent sql.js writers lost updates while reporting success (measured 10/12 lost in a 12-way concurrent repro), because storeEntry, getEntry, deleteEntry, applyTemporalDecay, and ensureSchemaColumns did unlocked whole-image read-modify-write against memory.db. All five now run under the existing withMemoryDbLock primitive (previously only used by purgeNamespace). Made the lock reentrant via AsyncLocalStorage, since every mutator calls ensureSchemaColumns internally and a plain O_EXCL lock isn't reentrant. Also fixed a path-normalization bug where different callers spelled the same db path differently and so serialized against nothing. #2877 — the daemon lock/PID file was keyed to raw process.cwd(), so `daemon start` from a project subdirectory span its own lock/PID pair instead of contending with one from the project root, bypassing the #2407/#2484 dedup. Added resolveDaemonProjectRoot(), which walks up from cwd to the nearest directory carrying a real Ruflo marker (not just any package.json, so independently-initialized nested sub-projects in a monorepo keep their own daemon), stopping at a .git boundary so the walk can't escape into an unrelated ancestor project. Wired into every daemon command that previously used process.cwd() directly. Tests: 123 passing across affected suites (controller-registry.test.ts, tiered-memory.test.ts, hierarchical-store-durability-2887.test.ts, memory-concurrent-write-loss-2878.test.ts, daemon-autostart.test.ts). Both packages typecheck clean. Pre-existing failures in unrelated suites (ruvector wasm bindings, agenticow, memory-search-recall-2558) reproduce identically with these changes reverted — confirmed not regressions. Fixes #2887, #2878, #2877 |
||
|
|
f35c545fbe |
feat(metaharness): pull in @metaharness/turn-credit + fix stale router/darwin pins (#2958)
* feat(metaharness): pull in @metaharness/turn-credit + fix stale router/darwin pins (post metaharness#176) metaharness#176 shipped @metaharness/turn-credit (ADR-248, recursive turn-level credit assignment) and bumped darwin to 0.9.0 (ADR-249 signal seams) + router to 0.4.0 (calibration module). This brings ruflo's dependency contract back in sync and makes the new package available: - Add @metaharness/turn-credit ~0.1.0 as a new optionalDependency, following the same "must be installable, not peer-only" pattern darwin/flywheel/radio already use (ADR-150) — dependency-free, 64.9K unpacked, zero lifecycle scripts, same profile as the other three. - Bump @metaharness/darwin ~0.8.3 -> ~0.9.0 and the paired MH_DARWIN_PIN constant in distill-oracle.ts (was already out of range: tilde only absorbs patches, and 0.9.0 is a minor bump). - Bump @metaharness/router peer range ^0.3.2 -> ^0.4.0 (still deliberately peer-only + triple-gated behind CLAUDE_FLOW_ROUTER_NEURAL=1, per neural-router.ts — that design choice is unchanged, only the stale range is fixed) and update the matching manual-install hint in neural.ts. - scripts/check-metaharness-pins.mjs + scripts/metaharness-clean-install-test.mjs: add turn-credit to the watched/contract-checked package list. - .github/workflows/no-cli-optdep-bloat-2561.yml: CLI_MAX 10 -> 13. The prior bump (PR #2956) left zero slack (budget == count exactly), which a code review flagged as a latent trap — the very next unrelated optional dep would trip this guard. This bump leaves real headroom (11 declared today, budget 13) instead of repeating that mistake. - Also fixes a live ReferenceError in distill-oracle.test.ts (MH_DARWIN_PIN used but never imported) — a gap from the prior release's test fix that somehow didn't surface in that PR's CI; caught here while touching the same file. Co-Authored-By: RuFlo <ruv@ruv.net> * fix: regenerate v3/pnpm-lock.yaml — was out of sync with package.json edits The previous commit edited v3/@claude-flow/cli/package.json directly (darwin/router/turn-credit pin changes) without regenerating the pnpm workspace lockfile, so every CI job running `pnpm install --frozen-lockfile` failed immediately with ERR_PNPM_OUTDATED_LOCKFILE — cascading into every downstream smoke/test job that depends on that install step. Regenerated with pnpm@8.15.9 (matching CI's pinned version) in an isolated worktree to avoid the lockfile-version drift a newer local pnpm would introduce. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
4af1cfdded |
chore(release): bump to 3.35.0 — MetaHarness dependency-contract fix + ADR-381 sequential-evidence governance (#2957)
Minor bump: this release folds in PR #2956 (MetaHarness hardening — repair the dependency contract, strict sequential promotion evidence, ADR-381) plus a follow-up commit on that PR fixing 3 concurrency/epoch-boundary bugs found during review that could silently violate the <=5% family-wise false-promotion guarantee. All backward-compatible additions (new optionalDependencies, new doctor checks, new CLI/MCP surface) — no breaking changes, hence minor not major. Also fixes a stale test assertion in distill-oracle.test.ts: the darwin bench-run command now embeds the pinned @metaharness/darwin version (MH_DARWIN_PIN) per the #2561 cold-npx regression guard, so the test's bare 'darwin bench run' substring check no longer matched the intentional pinned output ('darwin@0.8.3 bench run').v3.35.0 |
||
|
|
0b3cfb77d6 |
MetaHarness hardening: repair the dependency contract + strict sequential promotion evidence (#2956)
* feat(metaharness): repair dependency contract + strict sequential promotion evidence Item 1 — dependency & compatibility repair (the contract was silently broken): - @metaharness/darwin ^0.8.3, @metaharness/flywheel ^0.1.10, and @metaharness/radio ^0.1.0 are now explicit optionalDependencies of @claude-flow/cli (optional PEER deps are never auto-installed, so a clean ruflo install shipped with zero MetaHarness packages on disk) - check-metaharness-pins.mjs now searches dependencies, optionalDependencies, AND peerDependencies; UNDECLARED and PEER-ONLY (for installable pins) are fatal drift instead of silently passing; radio added to the watch list; --require-installed asserts the real published symbol contracts (RefineMutator, withSequentialEvidence, RadioBus, ...) - new scripts/metaharness-clean-install-test.mjs: installs the declared ranges into a pristine temp dir and asserts every advertised export; wired as a MANDATORY clean-install job in metaharness-ci.yml - doctor: new "MetaHarness declared packages" check FAILS (not warns) when a declared optional dep does not resolve at runtime; --component metaharness now runs upstream + declared-deps + integration checks - MH_DARWIN_PIN bumped 0.8.0 → 0.8.3 in lock-step with the declared range Item 2 — strict promotion evidence at the transaction authority: - receipts now carry task-level pairedOutcomes (taskId + per-task baseline/ candidate scores) behind heldOutDeltas; verifyFlywheelReceipt refuses rows that cannot reproduce their aggregate; evaluateFlywheelCandidate populates them; pre-existing receipts still verify byte-identically - new flywheel-sequential-evidence.ts: anytime-valid e-process over discordant paired outcomes (testing-by-betting) composed with per-candidate alpha allocation (alpha_k = alpha_total * 6/(pi^2 k^2)), so the family-wise false-promotion probability across an ADAPTIVE candidate stream is bounded by alpha_total = 5% - promoteFlywheelCandidate requires paired evidence by DEFAULT — aggregate- only receipts are refused, never silently downgraded (the upstream withSequentialEvidence fallback hole); explicit --allow-aggregate-evidence / allowAggregateEvidence escape hatch for pre-upgrade receipts; alpha spend is persisted per receiptId in the transaction state (looking spends alpha; retries reuse their index) - acceptance test: 1,000 null-improvement streams (20 adaptive candidates x 40 worst-case discordant pairs) — measured family-wise false promotion 0.6%, within the <=5% budget Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01FKWLVWewYaWmcUg2q8Y9wy * chore: gitignore node-compile-cache build artifact Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01FKWLVWewYaWmcUg2q8Y9wy * fix(ci): satisfy #2561 guard, dep-overlap audit, and smoke contract for metaharness optional deps Three CI failures from the dependency-contract repair, three fixes: - tilde-pin @metaharness/{darwin,flywheel,radio} (~0.8.3 / ~0.1.10 / ~0.1.0) per the ADR-150 anti-caret rule enforced by smoke step 17z73 — upstream is unstable, tilde absorbs patches but never minors - remove the three from peerDependencies/peerDependenciesMeta: an entry in BOTH optionalDependencies and peerDependencies crashes npm 11.x arborist on dedupe (#1147/#2018 dep-overlap audit); optionalDependencies alone is the declaration that actually installs - update the #2561 cold-startup guard per its own escape clause: budget 8 → 10 and drop @metaharness/darwin from the forbidden list — that entry dated from the pre-0.8 heavy-tree era; darwin@0.8.3 is 1.8M unpacked with ZERO dependencies and no lifecycle scripts (all three packages combined: 2.3M, 753ms cold install into an empty dir, measured 2026-08-10; the clean-install CI job re-verifies on every pin change) - smoke.sh 17h now accepts the componentMap ARRAY form ('metaharness': [checkMetaharness, ...]) introduced with the declared-packages doctor check Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01FKWLVWewYaWmcUg2q8Y9wy * fix(ci): remove apostrophe that broke the single-quoted guard script The #2561 guard runs as `node -e '...'` inside bash; an apostrophe in a comment ("guard's") terminated the quoted string and bash tried to execute the next // comment line (exit 126, '//: Is a directory'). Verified by executing the extracted run block end-to-end: all three checks OK, exit 0. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01FKWLVWewYaWmcUg2q8Y9wy * feat(flywheel): ADR-381 — alpha-stream governance, reset epochs, accept/v2+seq Completes the sequential-evidence governance PR #2956 opened: ADR-381 (new) records the decisions: - the ADR-322 promotion ledger IS the alpha stream (per project root) — receipt lineageIds default to fresh UUIDs and cannot scope the control - evidence epochs: resetSequentialEvidence({confirm, reason}) archives the spend into an append-only sequentialResets audit trail, EXPIRES every outstanding evaluated receipt (fresh-data enforcement — old-epoch evidence cannot be replayed against a reopened budget), and increments evidenceEpoch; surfaced as `flywheel evidence-reset --reason … --confirm` (CLI) and the metaharness_flywheel MCP op, both behind the same policy gate as promotion - accept/v2+seq: the ADR-176 generations loop now decides each bundle with a third conjunct — the e-process over the bundle's own embedded per-task holdout at alpha_k for its position in the attempts stream — with the full verdict recorded in the bundle and independently replayed by verifyReceiptBundle (v1 bundles keep v1 semantics; versions pin per bundle); flywheelStatus surfaces next test index / threshold / minimum pairs / remaining budget so exhaustion reads as plateau, not mystery - two-layer pre-flight: evaluateFlywheelCandidate annotates (never blocks) when the promotion holdout cannot clear the next threshold on a perfect sweep; promoteFlywheelCandidate refuses size-inviable receipts BEFORE allocating an alpha index — sample size is ancillary, so the refusal looks at no evidence and spends no budget Tests: reset semantics (archive/expire/epoch/fresh-promote), alpha-free size refusal vs alpha-spending e-process refusal, v2 promote/reject/replay including tamper + index-shopping detection, v1 compat, helper math anchors (min pairs = 9 at test 1), budget monotonicity. 82 tests green across the eight affected suites; tsc build clean. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01FKWLVWewYaWmcUg2q8Y9wy * fix(flywheel): close 3 concurrency/epoch gaps in ADR-381 sequential evidence Code review of this PR found three real correctness bugs that can silently violate the <=5% family-wise false-promotion guarantee that is the PR's own core deliverable: - flywheel-transaction.ts: resetSequentialEvidence's "fresh data only" guarantee only expired receipts already registered at reset time; a receipt whose evidence predates a reset but is registered afterward was silently admitted into the new, cheaper epoch (index shopping). Now tracks evidenceEpochStartedAt and promoteFlywheelCandidate refuses any receipt whose payload.issuedAt predates it, before allocating an alpha index. - harness-flywheel-generations.ts: the daemon generations loop computed its sequential-evidence testIndex via an unlocked loadAttempts(root).length+1 read before appending. Two overlapping runFlywheelGeneration calls on the same root could be assigned the same test index and spend the same alpha_k twice. The read-index -> build-bundle -> append critical section now runs under the same O_EXCL lock pattern flywheel-transaction.ts already uses. - harness-flywheel.ts: evaluateFlywheelCandidate's sequentialPreflight (backing the `promotable` flag) was computed from an unlocked snapshot taken before the async retrieval/scoring work, so it could go stale by the time promoteFlywheelCandidate allocates the real index under its own lock. Moved to the latest possible read (after receipt registration) to minimize the window; documented as advisory, since promoteFlywheelCandidate remains the sole authority. Added a regression test for the epoch-boundary refusal and a concurrency test proving two racing generations get distinct sequential test indices. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
913f9eaede |
chore(data): clone snapshot #11 — 0 clones (14d)
Auto-generated by .github/workflows/clone-tracker.yml. Source: GitHub Traffic API (14-day rolling window). Co-Authored-By: ruflo-bot <ruflo-bot@users.noreply.github.com> |
||
|
|
4ac1ab9ff3 |
chore(release): re-sign helpers manifest for v3.34.0
The Stable npm Release workflow's Verify signed helper manifest gate (new in this same AGNTCY release cycle, first real run) caught a stale signed version. Re-signed with scripts/sign-helpers.mjs against the current 3.34.0 package.json (verify-helpers.mjs now passes locally). Co-Authored-By: RuFlo <ruv@ruv.net>v3.34.0 |
||
|
|
9668fd1085 |
chore(release): bump to 3.34.0 — AGNTCY/Outshift runtime integration
Three-package lockstep bump (@claude-flow/cli, claude-flow, ruflo) per CLAUDE.md's Publishing Rules, backed by scripts/audit-umbrella-version-lockstep.mjs. CHANGELOG.md documents ADR-378/379/380 (AGNTCY runtime, npm Trusted Publishing workflow, statusline segments) and the SLIM alpha-pin fix, carried in main since the 3.33.0 release. Co-Authored-By: RuFlo <ruv@ruv.net> |
||
|
|
30d49c6fe2 |
fix(agntcy): pin @agntcy/slim-bindings to the confirmed-working alpha (#2888)
The SLIM maintainers confirmed (agntcy/slim#1916) they've moved off uniffi-bindgen-react-native onto @ubjs/core/@ubjs/node (compiled output, not raw TypeScript) in the alpha dist-tag (2.0.0-alpha.4+), not yet promoted to latest. Verified live: a real server bring-up + client connect + graceful shutdown against @agntcy/slim-bindings@2.0.0-alpha.5 succeeds under plain Node with zero errors — no ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING. Verified detectAgntcyRuntime() itself (not a mock) now returns configured: true when RUFLO_AGNTCY_SLIM_ENDPOINT is set, exactly as its existing graceful-degradation design predicted it would once the upstream bug was fixed — zero logic changes needed to that function. Pinned to the exact alpha version (not a caret range — deliberate for a pre-release channel) rather than latest, until the fix is promoted. Added detectAgntcyRuntime()'s optional packageName parameter so the "package genuinely not installed" fallback path stays covered by a real regression test now that the real package resolves. pnpm-lock.yaml regenerated (scoped to this one dependency). |
||
|
|
791d24b36f |
ADR-380 correction: real @agntcy/slim-bindings package + 2 upstream bugs filed (#2880)
* fix(agntcy): correct SLIM package name to the real @agntcy/slim-bindings ADR-380's original scaffold guessed a placeholder package name (@claude-flow/agntcy) and concluded no SLIM SDK existed anywhere — that check only tried guessed names. The real SLIM Node.js bindings are published as @agntcy/slim-bindings (v1.4.1 stable), documented for exactly this plain-Node use case. It currently fails to load, but for a specific, verified, upstream reason rather than "doesn't exist": a transitive dependency (uniffi-bindgen-react-native) ships raw, uncompiled TypeScript as its package.json "main" with no build output and no exports field — works inside a bundler (Metro, its primary React Native use case), not plain Node require/import. Reproduced and confirmed the exact failure (ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING, not MODULE_NOT_FOUND) via a real install in isolation. Filed upstream: - agntcy/slim#1916 (downstream impact — their own README's plain-Node example is currently broken) - jhugman/uniffi-bindgen-react-native#422 (root cause) detectAgntcyRuntime()'s existing graceful-degradation design already handles this correctly with zero logic changes needed: its catch-all branch (anything other than MODULE_NOT_FOUND) surfaces the real error and falls back to local transport — verified this is exactly what happens today. Once the upstream packaging bug is fixed, this same code path starts succeeding with no changes needed here. Added @agntcy/slim-bindings to optionalDependencies (real package now, matching ADR-150's optional-only rule ADR-380 §1 follows). * docs(adr): ADR-380 update section — correct the false 'no packages exist' claim Documents both real corrections in-place (this repo's convention for a still-Proposed ADR) rather than silently rewriting history: real @agntcy/slim-bindings and agntcy-dir packages exist; Directory is now live-integrated; SLIM is blocked by a specific, filed, upstream packaging bug, not a missing SDK. Synced to the plugin-bundled copy. * fix(ci): regenerate v3/pnpm-lock.yaml for the new @agntcy/slim-bindings optionalDependency 'pnpm install --frozen-lockfile' (what CI actually runs) failed after the previous commit's hand-edit to package.json, since pnpm-lock.yaml was never regenerated: ERR_PNPM_OUTDATED_LOCKFILE, cascading into ~20 unrelated-looking CI job failures (every job that installs deps first). Used a scoped 'pnpm install @agntcy/slim-bindings --lockfile-only --save-optional' (not a full lockfile regeneration) specifically to avoid an unrelated, pre-existing issue: @claude-flow/codex is pinned to 3.0.3 in package.json but only 3.0.2 is actually published, which breaks a full-tree re-resolution but doesn't block a scoped single-package update. Verified 'pnpm install --frozen-lockfile' now succeeds cleanly from the correct v3/ workspace root (the one CI's failing jobs were actually running from — this repo has two separate pnpm workspaces, root and v3/, and I'd initially checked the wrong one). As a side effect, the frozen-lockfile install's postinstall step rebuilt @claude-flow/security's stale dist/, which also cleared the pre-existing 19 unrelated tsc errors noted throughout this session's earlier verification passes — tsc --noEmit is now fully clean, not just clean of agntcy-related errors. |
||
|
|
1e64c2fd3b |
ADR-378/379/380: npm Trusted Publishing, statusline segments, AGNTCY/Outshift runtime integration (#2879)
* docs(adr): ADR-378/379/380 — npm trusted publishing, statusline segments, AGNTCY runtime integration Renumbered from the original 322/323/324 (chosen when this branch was based on an older main) — origin/main has since merged real, Accepted ADRs at those numbers (322=metaharness-flywheel-integration, 323=typed-memory-provenance, 324=agentic-policy-engine-codex-swarm). Content unchanged from the original commit, only the numbers and filenames moved to the next free slot after ADR-377. ADR-378: npm Trusted Publishing (OIDC) for CI/CD release automation, replacing the standing NPM_TOKEN class with per-run short-lived tokens; pairs GCP WIF for the helpers-signing-secret fetch instead of a static service-account key. ADR-379: optional context/session/week usage segments and extra statusline tip lines for .claude/helpers/statusline.cjs, following the existing CONFIG.hideCost toggle precedent; session/week/effort default OFF pending a stdin-schema verification spike. ADR-380: AGNTCY/Outshift runtime integration (SLIM transport, CASA enforcement, IOC Layer 9 coordination events) as an optional, removable augmentation per ADR-150's pattern. Companion to metaharness repo ADR-237 (agent/adr-237-agntcy-outshift-integration branch), which owns the build-time half (identity, OASF export, observability). * feat(agntcy): ADR-380 scaffolding — CASA envelope, SLIM/IOC CLI verbs, Rust crate Renumbered from the original ADR-324 (origin/main has since merged a real, unrelated, Accepted ADR-324 — see the companion docs commit). Content and behavior unchanged; only the ADR number/filename and every in-file reference to it moved to ADR-380. Implements the buildable-now portion of ADR-380 (AGNTCY/Outshift runtime integration) as optional, removable augmentation per ADR-150's pattern. No AGNTCY/SLIM/Outshift npm or crates.io packages exist yet under any plausible name (verified live) — every network touchpoint is a clearly-logged stub gated behind explicit config, never a fake success. - plugins/ruflo-agntcy/: CASA envelope schema (Zod) + deterministic compiler + enforcement gate (checkAuthorization, deny-by-default) + bypass-attempt tests; Ed25519-signed CASA decision receipts (.swarm/casa-receipts.jsonl); AGNTCY OTel span attribute constants this repo owns (coordination.episode, authorization.decision). - v3/@claude-flow/cli/src/commands/agntcy/: `ruflo transport use slim`, `ruflo agent publish`, `ruflo swarm join <namespace>` — wired into the top-level command registry and into agent.ts/swarm.ts's existing subcommand arrays (merged alongside main's concurrently-added pheromoneCommand); all exit 0 with a clear message when AGNTCY/SLIM isn't configured (RUFLO_AGNTCY_SLIM_ENDPOINT unset). - v3/crates/ruflo-agntcy/: Rust CasaEnvelope + check_authorization mirroring the TS enforcement logic exactly, LocalTransport (real, working, in-process) + SlimTransport stub behind a non-default `slim` Cargo feature. Added to the workspace; also fixed a pre-existing `cargo check` blocker (v3/plugins/gastown-bridge's nested [workspace] table conflicting with the parent workspace) by moving it from `members` to `exclude`. Adversarial security review (as ADR-380 §3 requires before trusting this gate) found and this commit fixes two real bugs in the first pass: - enforce.ts trusted the erased TS type instead of validating its own input — a non-array `allow`/`deny` collapsed `.includes()` into JS's substring-match overload, and a malformed `now`/`expires_at` silently skipped the expiry check instead of failing closed. checkAuthorization now runs CasaEnvelopeSchema.safeParse() on entry, requires an explicit timezone offset on all timestamps, and treats any unparseable timestamp as expired. - compile.ts's keyword table matched bare "push"/"publish"/"release"/ "deploy" with no contextual gate, false-permissively granting git.push/deployment.create for objectives like "push notification integration" or "review the release notes". Patterns now require a co-occurring contextual noun (git/commit/branch for push; service/app/production/version/etc. for deploy). Deferred to a follow-up pass (documented, not silently dropped): plugins/ruflo-agntcy has no package.json yet (this repo's plugins/ ruflo-* convention is Claude Code plugin content, not an npm workspace package — unlike @metaharness/agntcy's sibling-package convention on the metaharness side), so no optionalDependencies entry was added anywhere; adding one now would reference a package shape that doesn't exist and break installs. Companion: metaharness repo ADR-237 (agent/adr-237-agntcy-outshift- integration branch) — build-time half of this integration. * docs(agntcy): fix stale companion-ADR cross-reference (metaharness ADR-237 -> ADR-240) Metaharness's own numbering collided too (ADR-237 was already taken by evals-math-live-gsm8k-fast-domain on their main) and got renumbered to ADR-240 — this repo's references to it were stale. * fix(agntcy): add missing allowed-tools frontmatter to agntcy-status skill CI's fleet-wide SKILL.md frontmatter audit correctly flagged this — no implicit 'all tools' is allowed. Scoped to Read since this is a scaffolding stub (not yet implemented) that will only ever need to inspect local package.json/config state, never execute commands.adr-378-380-agntcy-outshift-integration |
||
|
|
491c75a6fa | chore(release): 3.33.0 — ADR-377 AgentDB Retrieval Security Layer (#2876) v3.33.0 | ||
|
|
f074987ea0 |
feat(security): implement ADR-377 — AgentDB Retrieval Security Layer (#2874)
Implements all 3 phases of ADR-377 (ruvnet/ruflo#2516, tracked in #2873): AgentDB's retrieval and write paths had zero certified defenses against memory poisoning — SMSR (arXiv:2606.12703) shows 93-100% undefended attack success. All three phases are off by default; enabling each is opt-in via env flag until independently benchmarked, per the ADR's own gate criteria. Phase 1 — AgentDbRetrievalGuard (@claude-flow/memory) - New `agentdb-retrieval-guard.ts`, wired into `AgentDBBackend.search()` (covers `query()`'s semantic path too, since it calls `search()` internally). Reuses `@claude-flow/security`'s `ToolOutputGuardrail` (ADR-131) for the actual OWASP LLM01/LLM08 pattern scan rather than duplicating it — `@claude-flow/memory` now depends on `@claude-flow/security` (no cycle: security has zero workspace deps). - Size gate + guardrail scan per retrieved chunk. Flag-only by default; `CLAUDE_FLOW_RETRIEVAL_GUARD_STRICT=true` drops unsafe/oversized chunks instead of just annotating them. Both flags off by default (`CLAUDE_FLOW_RETRIEVAL_GUARD=true` to enable scanning at all). Phase 2 — MemoryPoisonForensics (@claude-flow/hooks) - New `workers/memory-poison-forensics.ts`: rolling-window z-score anomaly detection on write-interval and content-length features per (agentId, namespace), reproducing the Forensic Trajectory Signatures (arXiv:2606.30566) shape (behavioral features on write *sequences*, not content). Opt-in `HookEvent.PostToolUse` handler for memory-write tools; `CLAUDE_FLOW_POISON_FORENSICS=0` disables recording. - NOT wired into any of this repo's three separate "worker" dispatch systems (hooks' own workers/index.ts codebase-analyzers, @claude-flow/swarm's worker-dispatch.ts 12-trigger table, or the CLI's scheduled daemon) — @claude-flow/swarm is a deliberately zero-workspace-dependency package and adding hooks there would break that property; picking the wrong one of three ambiguous dispatch tables seemed worse than leaving that integration as an explicit follow-up. See the file header for detail. Phase 3 — McpCallerIdentity (@claude-flow/security) - New `mcp-caller-identity.ts`: per-invocation Ed25519-signed capability tokens (callerId + toolName + nonce + 30s TTL by default), native node:crypto sign/verify following the same pattern already used by `@claude-flow/browser`'s witness-signer.ts (reimplemented rather than cross-imported — a security-primitives module depending on the browser package would be a backwards layering dependency). - Standalone issue/verify API; deliberately NOT wired into `AgentAuthorizationPropagator.checkToolCall` (ADR-144) or any tool dispatcher — this repo has at least 3 distinct `ToolRegistry` implementations and guessing which is authoritative risked silently wiring the wrong path. `CLAUDE_FLOW_MCP_CALLER_AUTH` defaults to disabled, matching the ADR's own text: key distribution needs a follow-on ADR before this ships enabled. Deviations from the ADR's guessed file paths/class names (documented inline where relevant): the ADR was written against aspirational paths (`agentdb/retrieval-guard.ts`, a `BackgroundWorker` interface, `SafeExecutor`) that don't match the real repo layout — implementation targets the actual `AgentDBBackend`, the actual worker systems, and the actual `AgentAuthorizationPropagator`/tool-registries respectively. Tests: 31 new tests across the three packages (9 + 11 + 11), all passing; full existing suites re-run clean (memory 451, hooks 145, security 570 — zero regressions). |
||
|
|
e549cadb11 |
Update README.md
removed SV meetup |
||
|
|
e3a403e9f4 |
docs(adr): add ADR-377 — AgentDB Retrieval Security Layer (#2872)
Recovers a fully-written, never-merged dream-cycle proposal from the abandoned branch dream/2026-07-01-security (issue #2516) — the bot wrote the ADR and SOTA report but never opened a PR for this night, so it sat undiscovered outside the 49-PR backlog cleared in #2871. Six 2026 Grade A papers establish that AgentDB's retrieval and write paths have zero certified defenses: SMSR proves 93-100% poisoning ASR without a certified defense (0% with one); indirect prompt injection achieves near-100% retrieval success once a poisoned entry is written. ADR-165 (CVE-1-5) covers input validation and plugin signing but not this path. Renumbered ADR-180 -> ADR-377 (180 was already reused by the bot's own autopilot once and is not the current next-free slot after #2871). Tracking issue with phased implementation plan: (filled in after merge) |
||
|
|
5f81112467 |
docs(adr): consolidate 49 stale dream-cycle proposals, renumber ADR-334..376 (#2871)
The dream-cycle bot has opened a research proposal draft PR nightly since 2026-05-29. None had ever been merged (tracked in #2324), so each night's run guessed ADR numbers against a stale view of main and collided repeatedly — ADR-147 alone was independently claimed by 4 different proposals (#2304, #2310, #2317, plus a README-only PR #2278), and ADR-179 by another 4 (#2617, #2624, #2631, #2656, plus README-only #2642). This consolidates the SOTA research reports and ADR proposal text from all 49 open dream-cycle drafts into a single reviewable change: - 43 ADR proposals renumbered sequentially into ADR-334 through ADR-376 (first-opened-first-numbered), with self-referencing ADR-N mentions inside each file updated to match - 4 branches that contained only a SOTA report with no ADR proposal (#2368, #2382, #2430, #2607) carried over as-is - 2 branches that only added a README index row for an ADR file they didn't otherwise include (#2278 for ADR-147, #2642 for ADR-179) are superseded by the real ADR-147/179 claimants above and dropped - v3/docs/adr/README.md gets one clean set of index rows instead of 43 individually conflicting ones All ADRs land as Proposed — none of this is an implementation decision, just clearing 2 months of unreviewed nightly research out of PR limbo so it can actually be read. The original 49 PRs are closed with a pointer to this commit. Closes #2224, #2242, #2249, #2255, #2266, #2278, #2304, #2310, #2317, #2333, #2344, #2363, #2368, #2379, #2382, #2394, #2402, #2420, #2430, #2436, #2457, #2463, #2472, #2479, #2486, #2496, #2511, #2527, #2537, #2560, #2577, #2598, #2607, #2617, #2624, #2631, #2642, #2656, #2665, #2702, #2716, #2728, #2740, #2753, #2761, #2764, #2769, #2779, #2793 |
||
|
|
f541d65a06 |
dream(performance): #2862 nightly research — Two Calls Beat Five Agents 7.4× token gap + HalluProp pre-hoc failure inference (ADR-333) (#2863)
Claude-Session: https://claude.ai/code/session_01Li2akoXyZgkFw3guYZtfQB Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
48d532b47e |
fix(hooks): honest routing scores, honest MoE metrics, real transfer (#2869)
#2864 — learned routing patterns needed a 25pp higher score bar (>=0.65) than static patterns (>0.4) to be selected, so a top-scoring learned pattern could lose to a lower-scoring static one that simply cleared the easier bar. Measured 49% agreement with the router's own recorded training labels on a real store; only 1/61 replayed routes were decided by a learned pattern. Both sources now gate on the same score threshold; support/reliability remain the learned-specific quality guard. #2865 — the `hooks intelligence` MoE panel showed a hardcoded "Routing Accuracy: 82.0%" (and Active Experts/Load Balance constants) whenever any local neural data existed, regardless of actual routing quality — the exact "self-confidence presented as accuracy" problem #2809/#2850 already fixed on the `hooks metrics` path. These three fields are now null (and the row omitted) when no real value is reported, instead of a fabricated number. #2859 — `hooks transfer from-project` reported success, a transfer count, and quality stats (avgConfidence, avgAge) without ever reading or writing the destination project's memory store — every number was invented from fixed percentages of the source count. Now performs a real merge: reads the destination store, skips entries below the confidence threshold, skips exact duplicates, skips real conflicts (an existing differing value is never silently overwritten), and actually persists whatever remains. All reported counts and stats (avgConfidence, avgAgeDays) are computed from the entries actually processed, and are null/omitted when nothing qualifies. All three verified against the exact reproductions in their issues, using the built CLI end-to-end (not unit mocks): #2864's routing scenario now selects learned-researcher; #2865's MoE panel no longer shows a fake percentage; #2859's transfer both changes the destination file on disk and correctly skips on a second run. Fixes #2864, fixes #2865, fixes #2859.v3.32.41 |
||
|
|
b52f54beb7 |
docs: NPM_TOKEN publish path restored (granular access token) (#2868)
* docs: NPM_TOKEN publish path restored (granular access token) The prior NPM_TOKEN secret (versions 1/2, classic automation tokens) lost publish rights when npm started restricting 2FA-bypass tokens account-wide. Rotated in a granular access token (version 3, package:write + bypass_2fa:true, scoped to the three release packages) and confirmed it end-to-end: a real npm publish for @claude-flow/cli and dist-tag writes to both a scoped and unscoped package all went through with zero OTP/WebAuthn prompt. Documents the token-first procedure with the WebAuthn dance demoted to a fallback for if/when this token expires or gets narrowed. * docs: mirror NPM_TOKEN into cognitum-20260110 GCP project too Added as version 7 there, alongside ruv-dev version 3+, since the token's scope covers cognitum/cognitum-one orgs as well. Either project's copy is current — use whichever gcloud session is already authenticated. |
||
|
|
76453115a8 |
fix(security): fail closed on unvalidated security scan --depth/--type/--target (#2866)
`security scan` validated none of its three input flags, so a typo was
indistinguishable from a clean result:
- An unknown --type matched none of the three phase guards, so no phase ran at
all and the command still printed "No security issues found!" and exited 0.
The guards are case-sensitive, so `--type CODE` hit this too.
- An unknown --depth fell through the chained ternaries to the shallowest
traversal, so `--depth full` scanned *less* than the default `standard`
(3 levels vs 5). On a tree whose only HIGH finding sat below that budget it
also flipped the critical/high exit-code gate from 1 to 0 — the gate silently
stopped gating.
- A non-existent or non-directory --target read nothing, and the swallowed
dir-read catches turned that into zero findings, the clean banner, exit 0, and
a PERSISTED clean report that getSecurityStatus reports as CLEAN. mkdirSync
with recursive:true even created the tree to hold it. --target names what gets
scanned and is the likelier typo of the three.
All three now fail closed before anything is printed, scanned or written.
`--depth full` is deprecated, NOT rejected. It was never a supported depth, but
the CLI itself emitted that exact string in five places — the statusline insight,
the announcement, the release-notes blurb, the CLAUDE.md that `init` generates,
and two shipped agent definitions — across 21 tracked files. Hard-rejecting it
would break the invocations we told users to run, and would strand the statusline
insight in a loop: it fires on scan status PENDING, tells the user to run
`--depth full`, which would exit 1 and never write a report, leaving status
PENDING forever. It is normalised to `deep` (the depth the word promised) with a
warning, and the emitters we control now say `--depth deep`.
Also in this change:
- Chained ternaries replaced with exhaustive Record<ScanDepth, number> maps
behind real type predicates rather than `as` casts. The casts mattered: an
invalid key yields undefined, and `undefined <= 0` is false while
`undefined - 1` is NaN, so the recursion guard would never fire and the depth
limiter would silently disable itself. The guard now positive-tests its budget
(`!(depthLimit > 0)`) so a bad value stops traversal instead of unbounding it.
- `container` was advertised in --type's help since this command was written but
no phase implements it, so it validated fine, scanned nothing and reported
clean. Rejected explicitly, case-insensitively so `--type Container` gets the
accurate "not implemented" message rather than being called a misspelling.
Breaking for pipelines passing it; noted in CHANGELOG.
- The report path is built as scan-${scanType}-${depth}.json, so an unvalidated
--type could shape it: `--type ../../../escaped` wrote
<target>/.claude/escaped-deep.json. Validating the enums closes it.
Tests: 20 cases, black-box against the built CLI. Beyond the rejection paths they
pin the parts a previous revision of this suite left unconstrained — a level-6
fixture so `deep` is distinguishable from `standard` (a mutant cutting deep from
10 to 4 passed the earlier suite and now fails three tests), stdout/stderr kept
separate so a stdout-redirecting caller is provably not left with an empty
document and no diagnostic, and the --target and deprecation paths.
security-scan-persistence, security-audit, security-verification,
issue-2670-security-defend, fs-secure, funnel and funnel-messages-seed-pool all
pass. tsc error count is 17 with and without the patch, none in security.ts.
Note for anyone re-verifying: bin/cli.js loads dist/, tsconfig has
composite: true, and the build cache lives at dist/tsconfig.tsbuildinfo — an
incremental `npx tsc` will not re-emit after an out-of-band dist edit.
Reported privately via SECURITY.md by an external reporter, with a reproduction
and a proposed patch.
Co-Authored-By: Ruflo & AQE
v3.32.40
|
||
|
|
503b647325 |
docs: confirm npm publish WebAuthn procedure from v3.32.39 release (#2861)
Replaces the speculative OTP/automation-token note with the actual confirmed procedure: the account uses a WebAuthn security key, not TOTP (no --otp code exists to pass). The NPM_TOKEN automation-token secret does not have publish rights to @claude-flow/cli (confirmed twice: 200 on reads, 404 on the publish PUT). What works is disabling "require 2FA for write actions" + a fresh npm login, after which npm publish runs unattended — but npm dist-tag add still needs a fresh browser approval per call regardless (6 individual approvals for a 3-package release, not 1). Also documents that a fresh worktree needs both `npm install` at root and `pnpm install` in v3/ (two separate workspace trees) before prepare-root-publish.mjs's pnpm --filter build steps will succeed. |
||
|
|
6143e1e6ea |
docs: document npm publish OTP/automation-token gotcha (#2860)
Hit this live during the 3.32.39 release: the interactive npm login session has 2FA set to auth-and-writes (needs a fresh OTP per publish, which an agent can't supply unattended), and the NPM_TOKEN automation-token fallback in GCP ruv-dev is not guaranteed valid — one attempt got a 404 on the publish PUT (npm's way of saying permission/scope problem on a scoped package, not "doesn't exist"). Document both paths, the correct test order, and that npm whoami is not a reliable pre-check for the automation token — only a real publish attempt tells you if it works. |
||
|
|
fabcc9261a |
fix(hooks): Codex hooks.json schema + PreToolUse verdict compat (#2857)
Codex's plugin hook-manifest loader accepts only `description` and
`hooks` at the top level and hard-rejects the rest of the manifest on
anything else. plugins/ruflo-core/hooks/hooks.json and
plugins/ruflo-cost-tracker/hooks/hooks.json carried `_note` /
`_platform_note` documentation fields, so a fresh Codex install of
ruflo-core@ruflo (still true as of the currently-published 3.32.38 /
ruflo-core 0.2.5) fails to load the plugin at all with:
failed to parse plugin hooks config .../hooks.json:
unknown field `_note`, expected `description` or `hooks`
Fold the doc content into `description` (content preserved, no hook
commands changed) for both marketplace-listed manifests, and add a
strict top-level-key check to
scripts/audit-plugin-hooks-cross-platform.mjs so this class of
regression fails CI going forward. `.claude-plugin/hooks/hooks.json`
is POSIX-only and not marketplace-distributed (not what Codex fetches
for ruflo-core@ruflo); its doc fields are folded too but its
audit-script flags (`_platform`, `_legacy_unaudited_shim`) are kept.
Second, deeper bug once the manifest loads at all: `modify-bash`/
`modify-file` PreToolUse hooks always echo Cursor's
`{"permission":"allow"}` verdict. Codex's own strict output schema
(additionalProperties: false) rejects that shape outright and reports
"hook returned invalid pre-tool-use JSON output" on every single tool
call — verified directly against the real parser
(codex-rs/hooks/src/engine/output_parser.rs,
codex-rs/hooks/src/events/pre_tool_use.rs) and its generated JSON
schema. Empty stdout is the one input Codex's parser treats as
no-opinion/implicit-allow with no error. `isCodexPluginHost()` (added
for #2816, ruflo-core 0.2.5) already detects Codex via its
PLUGIN_ROOT/PLUGIN_DATA env vars and correctly suppresses the verdict
in that case — harden it with a `turn_id`-based fallback (a documented
Codex-only field always present in Codex's PreToolUse input JSON, per
codex-rs/hooks/schema/generated/pre-tool-use.command.input.schema.json)
so detection doesn't depend solely on those env vars being set.
Bump ruflo-core 0.2.5 -> 0.2.6 and ruflo-cost-tracker 0.26.2 -> 0.26.3
so Codex's per-version plugin cache invalidates and re-fetches the
fixed manifest instead of serving a stale cached copy indefinitely.
Fixes #2855, #2856.
v3.32.39
|
||
|
|
ad8d071d16 |
fix: stop daemon autostart in non-Ruflo projects (#2853)
* fix(daemon): require durable project marker for autostart * chore(release): prepare v3.32.38v3.32.38 |
||
|
|
401e02d511 |
fix: complete reports and consistent initialization for v3.32.37 (#2851)
* fix(metaharness): preserve readiness verdict payloads * test(metaharness): cover blocked genome verdicts * fix(adr): parse bullet metadata and relationships (#2659) * fix(adr): align adr-create with AgentDB schema (#2651) * fix(adr): make index updates idempotent (#2660) * fix(memory): bound session-end graph consolidation (#2628) * fix(memory): align active row visibility (#2652) * fix(memory): honor database path during init * fix(hooks): keep all shim fallback tags aligned * fix(codex): omit unbacked full-template skills * fix(init): generate complete native dual projects * test(memory): isolate path and legacy-row regressions * chore(release): prepare v3.32.37v3.32.37 |