Commit graph

10 commits

Author SHA1 Message Date
Natalie
3d626a6d88 fix(@projects/@claire): deploy-agent auto-resolves a reachable ssh transport
deploy-agent used bare `ssh <host>` / `rsync <host>:` (→ <host>.lan), which
fails off-LAN or when the direct plum→host WG relay drops — blocking deploys
even though the host is reachable via the black jump host. Now it probes
<host> → <host>-wg → <host>-j and uses the first that answers for the ssh/rsync
legs (remote-run keeps its own routing), keeping the claire host LABEL as
<host>. Override with CLAIRE_SSH_ALIAS. Verified: apricot deployed via apricot-j
while .lan + -wg were timing out.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 02:08:03 -07:00
Natalie
ce6948d6e9 feat(@projects/@claire): rounds skip-gate loop + fleet release tool
Wire the rounds timer to a pure-Python skip gate so claire-serve only wakes
the orchestrator model when worker fleet state changed (not every tick):
- web/rounds.py: fleet_fingerprint() over worker sessions (minus the
  orchestrator's own) + open tasks; should_skip_round() with heartbeat floor.
- web/app.py: _rounds_loop tracks last fingerprint + consecutive skips.
- excludes the orchestrator's own session/chat so a round's self-side-effects
  can't defeat the gate.
Add scripts/release-fleet.sh (test -> deploy apricot+black -> restart plum
services) and harden deploy-agent.sh's cosmetic status check against a SIGPIPE
false-abort. 3 new discriminating tests; 349 pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 22:58:41 -07:00
Natalie
39ccf5a9f5 feat(@projects/@claire): per-host orchestrator service ([<host>] claire)
Peer nodes can run a local orchestrator registered with claude.ai/code as
[<host>] claire, installed uniformly via deploy-agent.sh (not hand-wired).
- agent.orchestrator_enable + orchestrator.mcp_url config (round-trip safe)
- bootstrap points orchestrator MCP at central endpoint when set
- peer lifespan bootstraps + heartbeats the orchestrator (NO rounds loop)
- claire agent enable-orchestrator CLI + deploy-agent.sh wiring

(manual commit via ALLOW_COMMIT=1 — autocommit LLM was timing out on claire)
2026-06-02 20:52:54 -07:00
Natalie
70b09d5a9b feat(@projects/@claire): vault secret management
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-31 21:01:11 -06:00
Natalie
6124e9d139 fix(@projects/@claire): 🔐 secure config file permissions
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-31 19:50:58 -06:00
Natalie
c557774b57 feat(@projects/@claire): add peer sync, supervisor, and telemetry loops
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-31 18:38:10 -06:00
Natalie
2a2e99ab2b feat(@projects/@claire): add systemd agent deployment
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-31 18:23:18 -06:00
autocommit
d26b1a1625 breaking(web): 💥 Migrate frontend components and backend services to TypeScript with full compatibility and documentation updates
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-20 19:54:05 -07:00
autocommit
63a5636484 refactor(scripts): ♻️ Improve error handling and structure in install.sh for partial installations where uv is not on PATH
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-18 07:27:21 -07:00
Natalie
c1e6f7dbe5 feat: initial Clare scaffold — project manager for the Claude agent fleet
Push A (single-machine):
- HLC + event-sourced SQLite (events table is source of truth, projections rebuildable)
- Pydantic v2 domain models (Project, Task, Assignment, Session, Group, Update)
- rclaude subprocess wrapper (local_sessions via _claude-projects --sessions)
- Typer CLI: init, project, task, assign, pull, status, broadcast, serve, sync
- FastAPI + Jinja2 + HTMX dashboard
- 26 unit tests passing

Push B (HTTP API + sync substrate):
- /api/v1/* JSON routes (projects, tasks, assignments, sessions, status, broadcast, sync)
- CLI refactored as thin httpx client over the API — single business-logic codepath
- web/service.py: every business op defined once; HTML routes + API routes both call into it
- sync.py: peer-to-peer sync via /api/v1/sync/events with HLC + uuid-based dedup
- 32 tests passing including two-Clare convergence test

Push C (cross-host deployment):
- apricot install via uv (Python 3.12.12)
- systemd --user unit for clare-serve on apricot
- Cross-host sync demoed plum (10.9.0.3) ↔ apricot (10.9.0.2) over wg
- .local → .lan rename for forge URLs

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 02:20:23 -07:00