* chore(release): 3.80.0 (codex 3.0.9)
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(cli): bundled OpenRouter alternates are opt-in (#4957)
#5038 loaded the bundled openrouter-alts.json for every npm install, which
changes which OpenRouter models users are billed for. Its PR asked for a
maintainer decision on that default. Until then, the bundled copy loads only
with CLAUDE_FLOW_ROUTER_OPENROUTER_ALTS=bundled; npm installs keep the
previous behaviour (no per-tier alternate). The file still ships.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(release): pin @metaharness/darwin ~0.16.0; codex VERSION 3.0.9
darwin 0.16.0 is npm latest (it fixes the 0.15.0 bug that could leave SIM
journals unreadable), so the metaharness pin-drift gate flags ~0.14.0 as
stale. Bump the CLI dependency, MH_DARWIN_PIN and the plugin helper pin.
The pnpm lock entry is edited by hand to the 0.16.0 integrity; nothing else
in the lock moves. codex's exported VERSION follows the 3.0.9 bump.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(ruflo-metaharness): 0.5.3 for the darwin ~0.16.0 helper pin
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
A room log interleaves envelopes from multiple origins, and each origin numbers its own seq. syncRoomFromPeer stored one room-wide max and sent it as since, so after merging an origin with a high seq, a later envelope from another origin with a lower seq was skipped by the next incremental pull.\n\n- Track per-origin high-water marks in FederationPeer.lastSeqByOrigin and send them as a JSON since cursor.\n- Teach serveFederation to parse that cursor while retaining the numeric since form for older clients; malformed or oversized cursors are rejected with 400.\n- Report acceptedByOrigin from mergeEnvelopes. Duplicates use the stored envelope's origin/seq, so a duplicate cannot move another origin's cursor.\n- Start a legacy peer's first per-origin sync from 0: an old room-wide cursor may already have skipped envelopes and is not a safe baseline.\n- Tests cover interleaved origins, a new origin with no cursor entry, numeric and malformed cursors, and duplicate-origin poisoning.
* fix(cli): resolve openrouter-alts.json from the package (#4957)
loadOpenRouterAlts() probed only process.cwd(), and the file was not in the
CLI's files allowlist, so an npm install never loaded the ADR-148 per-tier
OpenRouter alternates. Resolve it relative to the module (import.meta.url,
as neural-router.ts does), keep the cwd probes as a dev fallback, and ship
the file.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(cli): only one waiter breaks a stale managed-agent ledger lock (#5025)
Breaking a stale lock was lstat -> unlink, so two waiters that saw the same
dead lock could both break it: the second unlinked the fresh lock the first
had just taken, and two writers raced their read-modify-rename. Breakers now
serialise on <lock>.reclaim and re-check the lock's identity and age under
it, as policy-runtime.ts reclaimDeadLock does. Release removes the lock only
if it is still the file this writer created.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
Four seed statusline tips described their commands wrongly:
- `ruflo status watch`: watch is the --watch flag. The positional was
ignored and status printed once. Now `ruflo status --watch`.
- `doctor --fix` "auto-repair": --fix prints suggested commands and
applies nothing. Reworded.
- `hooks route` "3-tier model routing cuts token cost 30-75%": hooks
route suggests an agent type for a task (model tiers are
`hooks model-route`), and the percentage has no source in the docs.
Reworded, number dropped.
- `security scan --depth deep` "audits dependencies and config": the scan
checks dependencies (npm audit), hardcoded secrets and code patterns.
Help examples:
- `memory store -k ... -v "..."`: -v is the global --verbose. The value
only landed through the positional fallback, with verbose switched on.
Now --value.
- `status --json`: not a declared option. The action reads
--format json, so the example printed text. Now --format json.
Message ids and URLs are unchanged. New test
funnel-messages-commands.test.ts resolves every educational tip against
the real Command objects. `adr index` is exempt: there is no `adr` CLI
command, which is left for a separate fix.
Co-authored-by: r <r@x>
parseToml looked up section headers on a plain object, so a [__proto__]
or [constructor] header in an untrusted config.toml resolved to a shared
built-in and the following key = value lines were written onto it. Use
null-prototype maps for the parsed data and its sections, check own
properties only, and replace non-object values instead of writing onto them.
Claude-Session: https://claude.ai/code/session_01MfPHVKgRKN2gU6psLP1NGd
Co-authored-by: Claude <noreply@anthropic.com>
* feat(cli): opt-in signed SIM handoff ingestion (metaharness sim-ingest)
Consumes metaharness.sim.handoff.v2 envelopes (ruvnet/metaharness#524).
An independent Node-crypto verifier checks the Ed25519 signature over
canonical JSON, a trusted key set, the key-to-tenant binding, freshness
and that every record belongs to the tenant. Verified evidence is stored
under sim:<owner>/<repo> in a dedicated .claude-flow/sim/sim-memory.db,
separate from task-agent memory, via the real memory-initializer API.
Disabled until .claude-flow/sim/trusted-keys.json sets enabled:true.
Idempotent on the content-derived event id; revoke-event leaves a
tombstone, revoke-key deletes its events and marks it revoked; reads
re-verify each row; every decision goes to an id/hash-only audit log.
Refs ruvnet/metaharness#524
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(cli): harden sim-ingest revocation, retention and store separation proof
- revoke-key confirms each row's signer before deleting instead of
trusting the store's tag filter (two-keys-one-tenant test with the tag
filter ignored).
- Retention runs from the producer's createdAt; a replay after it has
elapsed is rejected (retention_elapsed) rather than re-stored.
- An insert that collides with a soft-deleted or expired row reclaims it
(tombstones are checked first); covered on the real store by re-signing
revoked-key content with a second trusted key.
- Real-store test now points CLAUDE_FLOW_DB_PATH at a real task-agent db
and proves it holds no sim: rows and that search finds only task notes.
Refs ruvnet/metaharness#524
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(release): absolute README URLs on the ruflo and @claude-flow/cli npm pages
npmjs.com resolves relative README URLs against repository.directory, so on
the ruflo page docs/assets/x.svg became raw.githubusercontent.com/.../HEAD/
ruflo/docs/assets/x.svg: 41 of 51 images and every relative link 404ed. The
@claude-flow/cli page had the same problem. claude-flow publishes from the
root and was unaffected.
The release workflow now stages both subdirectory READMEs through
scripts/readme-absolute-urls.mjs, which rewrites relative images to
raw.githubusercontent.com and relative links to github.com/blob, pinned to
the commit being published. Both prepare-publish scripts use it too. Also
fixes the README's Verification link (verification.md moved to
verification/README.md in May).
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(release): 3.79.1
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* fix(auto-memory): keep Codex Stop hook stdout empty (#3163)
Codex parses a Stop hook's stdout as hook JSON, so the AutoMemory status
prose failed every Stop with "invalid stop hook JSON output". A Codex
hook payload carries a turn_id that Claude Code's does not; under Codex the
helper now sends its status to stderr and leaves stdout empty. Claude Code,
terminal and unparseable-stdin runs keep stdout feedback. Stdin is read only
when it is not a TTY, capped at 500 ms and 1 MiB.
Verified end to end on Codex 0.170: Stop Failed with the old helper,
Completed with the new one.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(release): 3.79.0
First train release published from CI with SLSA provenance (ADR-545).
Bumps the three packages and re-signs the helper manifest for 3.79.0
(auto-memory-hook.mjs changed for #3163).
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* feat(release): publish the train with SLSA provenance (ADR-545)
stable-npm-release publishes with --provenance (id-token: write), checks
repository.url before publishing, defaults to a dry run, publishes only
from main, and promotes to latest only after the registry holds a SLSA v1
attestation for exactly the verified archive built in ruvnet/ruflo.
Only latest moves (ADR-513). ADR-545 records the client review items.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(release): drop the dead root npm ci step that runs security's tsc prepare
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(release): clear x-gateway audit gate; allow HEAD dry runs (ADR-545)
npm audit fix clears the 2 high advisories; a scoped override lifts
rimraf's glob to ^14.0.2 for the remaining glob/minimatch moderates
(0 vulnerabilities, 142/142 gateway tests). tag=HEAD (dry run only)
builds the dispatched commit so a release can be rehearsed before it
is tagged.
Co-Authored-By: RuFlo <ruv@ruv.net>
* docs(adr-545): record RuVector#1516 and the laptop-only package gap
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(release): commit the signed helper manifest for 3.78.1 (ADR-545)
CI verifies the committed manifest; the signing key stays off CI.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(release): npm ls --all warns instead of gating (#5047)
The published 3.78.1 tree already has invalid nested ranges; the
functional smoke checks stay the gate until #5047 aligns the pins.
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(cli): pin init output to the CLI's exact version, add repin and provenance check (ADR-545)
- init writes @claude-flow/cli, claude-flow and ruflo pinned to the running
CLI's version (one specifier helper, src/init/pinning.ts); third-party MCP
refs (ruv-swarm, flow-nexus, agentic-jujutsu) pinned to known versions.
`--channel latest` keeps the previous floating output byte-for-byte.
- `ruflo init repin` / `init --repin`: idempotent rewrite of settings.json,
.mcp.json, CLAUDE.md and .claude/helpers with --dry-run and a per-line
report. Leaves signed helpers, JSON keys and #2448 runaway hook commands
alone and says why.
- Helper refresh never rewrites signed helpers, so pins survive it.
- Provenance check (registry attestations, SLSA v1 predicate, subject digest
== dist.integrity, repo == github.com/ruvnet/ruflo) via
`doctor -c provenance`, after repin, and as a non-fatal warning at init.
Fetch is injectable; tests use recorded registry fixtures.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(release): test the federation WebSocket fallback by removing agentic-flow
The CLI now depends on stable agentic-flow ^3.0.0, so pinning the
alpha no longer forces the fallback; the smoke step was stale.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(cli): pin untagged npx runs in helper scripts; update #2206 CI guard (ADR-545)
`npx @claude-flow/cli hooks …` with no tag floats exactly like @latest.
The generated pre-commit hook and copied unsigned helpers (post-commit,
pre-commit) ran it untagged. Init now pins those runs on copy and in the
generator, and `init repin` pins them in .claude/helpers. Docs copied from
the package and the user's CLAUDE.md are left as is. The --prefix form used
by the signed helpers is not matched.
The wizard-init guard required the literal `ruflo@latest` in
mcp-generator.ts; it now requires the args to run the ruflo wrapper via
ourSpec('ruflo', …).
Co-Authored-By: RuFlo <ruv@ruv.net>
* docs(adr-545): CI-only train publishing in CLAUDE.md; record dry-run findings
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(x-gateway): bump plugin to 0.10.6 for the dependency audit fix
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(adr-545): unambiguous flag regex (CodeQL ReDoS), anchored scope replace, keep doctor help ending in metaharness)
Co-Authored-By: RuFlo <ruv@ruv.net>
* ci: exclude the node:test provenance gate test from the vitest ratchet (runs via node --test in v3-ci)
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
ruflo init and ruflo mods install now enable ruflo-protector@ruflo with
the other ruflo mods (MOD_PLUGINS). It starts in learn mode, graduates
only to notify, and never enables enforce by itself. An explicit false
in enabledPlugins is preserved. ADR-453 §14.1 amended; protector 0.1.3.
Co-authored-by: r <r@x>