Skip to content

v0.247.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 17:57
· 349 commits to main since this release
9740463

v0.247.0 adds an experimental, opt-in session kernel for execute_code, lets operators bridge MCP tools into scripts, and fixes console sign-in and live-update problems after a token change. It also lands the Phase 1 proof work for Conversations in Work. That work is dormant: no console surface or switch turns it on, and only tests exercise it. Scheduling moves to croniter 7.

Added

  • execute_code can keep state across a session's runs (experimental, off by default) (#5431). Turn on execute_code.session_state and later calls in a session reuse the same Python kernel, so variables, imports and functions carry over. Pass fresh=true for a clean slate. A timeout restarts the kernel and drops its state.
  • Session kernels are bounded and tear down with the chat (#5433). An idle kernel stops after execute_code.kernel_idle_ttl seconds (default 600). Starting one past execute_code.max_kernels (default 4) stops the least recently used one. Deleting or clearing a chat, or closing its tab, stops its kernel.
  • Bridge MCP tools into scripts (#5437). Operators can name MCP tools (or mcp:<server>/*) to bridge into execute_code. Scripts look up names and signatures with tools.help() and tools.help(name).
  • Scripts can return structured data (#5420). Assign a top-level result to return JSON alongside stdout.
  • Stateful kernel benchmark (#5434). An opt-in two-turn benchmark compares fresh and kernel runs against pre-registered thresholds, to inform the ADR 0134 default-on decision.
  • Conversations in Work, Phase 1 proof slices (dormant). These add the server-side mechanisms for private operator steering, but nothing user-reachable: verified principal kind separate from trust tier (#5415); signed principal delegation through the fleet proxy and loopback (#5423); private partitions on task records (#5421); private intake for idle and parked steering (#5429); durable one-audience-per-segment scheduling (#5432); automatic result delivery to the original requester (#5436); private result envelopes and files (#5439); honest content-free exits on error, cancel and timeout (#5440); public-only gist and digest (#5425), harvest, archives and facts (#5427), fleet export (#5424), and traces and prompt capture (#5438). Conversations with no private partition behave as before.

Changed

  • Memory delivery follows the caller's principal (#5430). A federation-token peer no longer receives a prior-session digest or the recall_session and session_search tools. The operator bearer, the fleet service token, paired devices, verified API keys, open mode and local or self calls are unchanged.
  • Session kernels check policy against the running call (#5435). A bridged tool call that arrives while no execute_code call is active is refused with Blocked by policy: no execute_code call is active and audited as failed.
  • Bridged tool calls from one script can run in parallel (#5418), up to eight at a time, each with its own policy check and audit record.
  • Model role chains show as a one-line summary with an Edit button (#5417, #5419) in Settings ▸ Model. Only the chain you choose opens its editor.
  • Scheduling uses croniter 7 (#5398). See Upgrading.
  • Dependency updates: langchain 1.5.0 and related ai-stack packages (#5396); fastapi 0.162.7, filelock, zeroconf, pypdf, markdown-it-py and regex (#5397).

Fixed

  • Cron step expressions that start at a field's maximum are rejected (#5412). Creating or editing a schedule like 59/15 now fails with a rewrite hint, because croniter 7 changed its meaning. Startup warns about stored ones without changing them.
  • Live updates reconnect as soon as you sign back in (#5407). The event stream and the chat's attendance signal no longer wait out a 30-second backoff after a token change.
  • Desktop self-sign-in reloads every panel (#5410), and a rejection for an already-replaced token no longer reopens the sign-in prompt.
  • The phone Work handle has a 44px tap area (#5404) without moving the composer.
  • Security: members no longer inherit the hub's delegation signing key (#5423).

Docs

Conversations in Work proposal, Phase 0 outcome, design revision and Josh's decisions (#5368, #5406, #5409, #5413, #5422, #5426); ADR 0131 amendment for audience partitions and scheduling (#5414); ADR 0134 for session-long execute_code state and MCP bridging (#5428). A flaky desktop self-auth unit test was stabilised (#5416).

Upgrading

  • Cron schedules: a schedule written like 59/15 or 23/6 now matches only the maximum value. If you meant "every 15 minutes", change it to */15. Check the startup log for warnings about stored schedules. Ordinary schedules are unchanged.
  • Python: langchain 1.5 needs Python 3.11 or later, which protoAgent already requires.
  • Nothing else to do. The new execute_code session kernel is off unless you set execute_code.session_state.

What's Changed

  • feat: Proposal: bring original conversations into Work with private steering and active-work retention by @mabry1985 in #5368
  • chore(deps): bump the python-routine group with 6 updates by @dependabot[bot] in #5397
  • fix(console): phone Work handle gets a 44px tap area; gated e2e mock accepts the attend SSE token (#5389, #5386) by @mabry1985 in #5404
  • feat: Phase 0 decision write-up for Conversations in Work by @mabry1985 in #5406
  • fix(console): SSE clients reconnect the moment the bearer changes (#5405) by @mabry1985 in #5407
  • fix(console): desktop self-auth refetches every query; stale 401s don't re-open the gate (#5408) by @mabry1985 in #5410
  • feat: Conversations in Work: design revision after Phase 0 REVISE by @mabry1985 in #5409
  • chore(deps): bump croniter from 6.2.4 to 7.0.0 by @dependabot[bot] in #5398
  • feat: Scheduler: reject ambiguous max/step cron expressions (croniter 7 changed their meaning) and warn about stored ones by @mabry1985 in #5412
  • chore(deps): bump the ai-stack group across 1 directory with 4 updates by @dependabot[bot] in #5396
  • feat: Flaky web unit test: auth.test.ts 'desktop self-auth … refetches every query' fails intermittently on main by @mabry1985 in #5416
  • feat: Model roles: each chain shows as a read-only summary with an Edit button (behaviour and tests) by @mabry1985 in #5417
  • feat: P1a.1 Conversations in Work: verified principal kind, separate from trust tier by @mabry1985 in #5415
  • feat: Model roles: lay out the read-mode chain summary (wrapping ids, arrows, Edit button) by @mabry1985 in #5419
  • feat: execute_code: bridged tool calls from one script run in parallel instead of one at a time by @mabry1985 in #5418
  • feat: Conversations in Work: record Josh's answers to the five Questions for Josh by @mabry1985 in #5413
  • feat: ADR 0131 amendment: audience partitions and audience scheduling for Conversations in Work by @mabry1985 in #5414
  • feat: execute_code: a script can return a structured result instead of only printing by @mabry1985 in #5420
  • feat: P1b.1 Conversations in Work: private partition and public projection on task records by @mabry1985 in #5421
  • feat: Conversations in Work proposal: record Josh's Q1/Q2 decisions and align design text and proof gate with auto delivery by @mabry1985 in #5422
  • feat: Conversations in Work: date Josh's Q1/Q2 answers and Phase 1 go 2026-11-16 (his local date) in the proposal and ADR 0131 by @mabry1985 in #5426
  • feat: P1a.2 Conversations in Work: principal through the fleet proxy and loopback by @mabry1985 in #5423
  • feat: P1f.2 Conversations in Work: public-only harvest, archives and facts by @mabry1985 in #5427
  • feat: ADR 0134 (docs only): execute_code keeps state across a session's runs, and operators can bridge MCP tools into it by @mabry1985 in #5428
  • feat: P1f.1 Conversations in Work: public-only projection for gist and digest by @mabry1985 in #5425
  • feat: P1g.2 Conversations in Work: public-only fleet trace export by @mabry1985 in #5424
  • feat: P1b.2 Conversations in Work: private intake for idle and parked steering by @mabry1985 in #5429
  • feat: ADR 0134 S1a: execute_code session kernel behind execute_code.session_state by @mabry1985 in #5431
  • feat: Memory delivery follows the caller's principal by @mabry1985 in #5430
  • feat: ADR 0134 S1b: execute_code kernel limits and teardown (idle TTL, kernel cap, chat delete and close) by @mabry1985 in #5433
  • feat: P1c Conversations in Work: durable one-audience-per-segment scheduling by @mabry1985 in #5432
  • feat: ADR 0134 S2: execute_code kernel binds policy to the running call, refuses bridged calls between calls by @mabry1985 in #5435
  • feat: ADR 0134 S4: ptc_bench kernel lane, a two-call stateful task with pre-registered thresholds by @mabry1985 in #5434
  • feat: P1d Conversations in Work: auto delivery to the original requester after private steering by @mabry1985 in #5436
  • feat: ADR 0134 S3: execute_code bridges operator-named MCP tools, and scripts look up signatures with tools.help by @mabry1985 in #5437
  • feat: P1g.1 Conversations in Work: no private content in traces or prompt capture by @mabry1985 in #5438
  • feat: P1e.1 Conversations in Work: private files and structured output at finalization by @mabry1985 in #5439
  • feat: P1e.2 Conversations in Work: private tool output, error and cancel cleanup by @mabry1985 in #5440

Full Changelog: v0.246.1...v0.247.0