Download Latest Version v3.71.0 -- automatic context delegation in ruflo-mods 0.15.0 (opt-in) source code.zip (77.3 MB)
Home / v3.70.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md < 22 hours ago 3.0 kB
v3.70.0 -- governed context delegation (opt-in) with checked citations source code.tar.gz < 22 hours ago 71.7 MB
v3.70.0 -- governed context delegation (opt-in) with checked citations source code.zip < 22 hours ago 77.3 MB
Totals: 3 Items   149.0 MB 0

Plain-language summary: https://gist.github.com/ruvnet/490ef952e5f2e8b94145577d1696341d

Minor release: @claude-flow/cli, claude-flow, ruflo 3.70.0 — governed context delegation (ADR-521, [#4648]). Nothing changes by default.

Added

  • Bounded context delegation. New public APIs planContextRead / delegateContextRead and the ruflo hooks context-plan command. A large analysis read (many files, bulk search) can be handed to a cheaper worker that returns only cited findings. Every finding must quote whole source lines that match a SHA-256-identified snapshot, so a forged or partial quote is rejected. Routing modes:
  • legacy, the default: unchanged behaviour, zero adapter calls.
  • observe: records the routing decision only.
  • enforce: delegates; must be explicitly enabled. Edits, debugging, architecture work, targeted reads, nested workers and small inputs always read directly.
  • createAnthropicContextAdapter. An optional governed transport:
  • Fixed api.anthropic.com endpoints, API version 2026-10-21, no redirects and no custom endpoint.
  • A one-use grant goes through the host policy gate, and the user-global AI fuse is the default.
  • Response size, timeout and output tokens are bounded; truncation, refusal, tool content, unknown usage and a model mismatch all fail closed.
  • Usage is recorded as priced from operator-supplied prices, not as billed cost.
  • Benchmark protocol (v3/@claude-flow/cli/benchmarks/context-delegation/, not in the npm tarball): 30 fixed lookups × 10 repetitions, 300/300 exact quotes. Coordinator payload is −97.6%; total bytes crossing the core boundary are +3.8% (both disclosed). Added local processing is about 0.1 ms p50. This is deterministic protocol evidence, not a live cost or quality result: no live provider call has succeeded yet.

Security

  • Pilot runners pass the spawned CLI an allowlisted environment, not the whole shell. The --runtime entry is contained and hashed before it is imported.

Fixed

  • hooks context-plan --worker-available is honoured through the CLI parser (camelCased flag).

Verified on a fresh npm i ruflo@3.70.0

  • hooks context-plan:
  • default → direct/legacy;
  • observe → observe/bulk-analysis;
  • enforce → delegate/bulk-analysis;
  • small input → direct/small-input;
  • no worker → worker-unavailable;
  • over the input limit → input-limit;
  • malformed values → rejected.
  • delegateContextRead on a 76 KB file, with a local mock adapter (no network):
  • legacy and observe made 0 adapter calls;
  • enforce returned the correct cited line (1201);
  • a forged quote, a wrong line and a wrong source hash were all escalated as invalid-worker-reply;
  • edit intent and a missing adapter stayed direct.
  • Regression: the 3.69.0 episode get/list/update/delete MCP run passes unchanged, with pure JSON-RPC stdout.
  • Install: a single agentdb (3.3.0) and npm audit 0 critical. alpha/v3alpha unchanged at 3.66.2.
Source: README.md, updated 2026-11-01