ruflo v3.70.0

v3.70.0

v3.70.0 — governed context delegation (opt-in) with checked citations

Added 7
  • Bounded context delegation via new public APIs planContextRead and delegateContextRead and the ruflo hooks context-plan command, letting large analysis reads be handed to a cheaper worker that returns only cited findings
  • Routing modes for context delegation: legacy (default, unchanged behaviour with zero adapter calls), observe (records the routing decision only), and enforce (delegates, must be explicitly enabled)
  • Every delegated finding must quote whole source lines matching a SHA-256-identified snapshot, so forged or partial quotes are rejected
  • Optional governed transport createAnthropicContextAdapter with fixed api.anthropic.com endpoints, API version 2026-10-21, no redirects or custom endpoint, a one-use grant through the host policy gate, and the user-global AI fuse as default
  • Response size, timeout and output tokens are bounded by the Anthropic context adapter, and truncation, refusal, tool content, unknown usage and model mismatch all fail closed
  • Usage is recorded as priced from operator-supplied prices rather than as billed cost
  • Benchmark protocol for context delegation under v3/@claude-flow/cli/benchmarks/context-delegation/ (not included in the npm tarball)
Fixed 1
  • The hooks context-plan --worker-available flag is honoured through the CLI parser (camelCased flag)
Security 2

1 change to check, marked in the notes below

From ruflo

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. behavior changed · vendor-flagged
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.
View original

Upgraded? How did it go?

Discussion