Skip to content

V0.2.9 - #42

Merged
leondavi merged 2 commits into
masterfrom
v0.2.9
May 15, 2026
Merged

V0.2.9#42
leondavi merged 2 commits into
masterfrom
v0.2.9

Conversation

@leondavi

Copy link
Copy Markdown
Owner

No description provided.

…nation_requests

Three stats bugs fixed:

1. messages_received not incremented for HTTP/stateless and disconnected
   agent delivery in pluto_msg_hub — added inc(messages_received) and
   inc_agent(To, messages_received) to both inbox-queued paths.

2. connected_agents live snapshot only matched status=connected, missing
   recovered and recovered_from_file agents in pluto_stats — switched to
   list comprehension that covers all three active statuses.

3. HTTP listener never called pluto_stats:inc at all — coordination_requests
   and total_requests stayed at zero regardless of HTTP agent activity.
   Added stats increment at top of handle_connection and an
   is_coordination_route/2 classifier for the coordination subset.

TODO run tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…r-slice return

- InboxManager.watch_durable: server-side long-poll with adaptive iteration,
  exponential backoff, and (agent_id, inbox_id) dedupe
- wait_for_messages(drain=False) and watch_durable(drain=False) — peek/signal
  mode that returns a non-consuming snapshot without acking, so a watcher
  subagent sharing the parent's MCP server cannot steal the parent's inbox
- drain() now also clears _new_message_event so peek-mode waiters re-arm
  cleanly after the parent's pluto_recv consumes
- pluto_inbox_watch MCP tool: defaults max_total_s to wait_timeout_s so the
  tool call returns inside one slice (≤ Claude Code's 600 s stream-silence
  watchdog) and exposes the drain kwarg
- pluto_heartbeat: zero-network liveness ping between watch slices
- Notifier: phase-2 seam for MCP resource+log notifications and
  drain-latency telemetry, gated behind PLUTO_MCP_NOTIFICATIONS
- _mcp_inherited() tri-state probe + watcher_available in pluto_session
- Updated watcher prompts: peek mode (drain=false), single-slice return,
  end-of-turn respawn, spec_contract/conv_seq payload conventions
- Stats dashboard: drop maintenance/total request rows
- Tests + docs/technical coverage for all new behaviour

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@leondavi
leondavi merged commit 3da817e into master May 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant