docs/refresh-multi-agent-plan #205

Merged
clawdie merged 2 commits from docs/refresh-multi-agent-plan into main 2026-06-26 02:13:55 +02:00

2 commits

Author SHA1 Message Date
f7d29b6257 feat(store): wire Phase 3 agent presence — host, heartbeat, last_seen
Some checks are pending
CI / rust (pull_request) Waiting to run
CI / markdown (pull_request) Waiting to run
CI / port (pull_request) Waiting to run
CI / agent-jail-pkgs (pull_request) Waiting to run
Agent struct now carries host (where the agent registered from) and
last_seen (last heartbeat/re-register timestamp). The SQL columns
existed since the Phase 3 schema commit but were never read or
written — Rust ignored them.

Changes:
- Agent struct: +host: Option<String>, +last_seen: Option<String>
- register_agent: un-underscore host arg, INSERT/read it
- get_agent / list_agents: SELECT host + last_seen columns
- Store::heartbeat(): UPDATE last_seen + COALESCE host
- ColibriCommand: +Heartbeat variant, +host on RegisterAgent
- cmd_heartbeat: socket dispatch → store heartbeat
- run_migrations: actually execute MIGRATIONS (was defined but never run)
- All test Agent constructions updated

What's still open per the plan: lease/TTL semantics, daemon heartbeat
tick calling the store, offline detection for stale agents.
Those are follow-up slices — the schema + wiring foundation is in.
2026-06-26 02:00:26 +02:00
4e509c3e37 docs(plan): refresh MULTI-AGENT-HOST-PLAN for current state
Phase 3 schema landed (PR #204) — columns exist, wiring pending.
Bridge IP scrubbed, health/status unscrambled. Linux packaging
added (PR #203). Firewall rules live (pf OSA + ufw domedog).
Gap 4 (claim_task atomicity) marked closed. Test count: 256.

Accurate status: Phase 3 is schema-in/logic-pending (not 'deferred'
and not 'done'). Heartbeat/lease/TTL remain open.
2026-06-26 01:49:46 +02:00