agent-orchestrator/backend/internal/storage/sqlite/wiring
harshitsinghbhandari 27fb82dbeb feat(backend): wire Session Manager into the daemon (real tmux + gitworktree, stub Agent)
Constructs a live *session.Manager in main alongside the LCM, sharing the
exact same SessionStore + LCM dependencies the lifecycle stack already
holds.

Refactor: storeAdapter moves from package main to a new internal
package, wiring.Adapter, so the daemon's composition root and any
in-process integration tests can share a single bridge.

Stubbed for now: ports.Agent has no production adapter on main; a loud
*noopAgent returns sentinel AO_AGENT_HARNESS_NOT_WIRED and logs a
warning once on first call, so a future Spawn through this lane fails
at the runtime layer with a clear breadcrumb rather than starting a
broken session quietly. ports.Notifier and ports.AgentMessenger remain
stubbed alongside the LCM.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-31 20:12:38 +05:30
..
adapter.go feat(backend): wire Session Manager into the daemon (real tmux + gitworktree, stub Agent) 2026-05-31 20:12:38 +05:30