Files
Bo 8c1076fbca refactor(cli): carve session into internal/commands/session module
Move the session evidence commands (bootstrap, rehydrate) out of package
main into internal/commands/session, delegating filesystem effects to the
new internal/sessionapp seam. The session parent command now lives in the
module; the optional `ao session handoff` writer stays in package main and
is attached to the module-built parent by newSessionCommand.

sessionBootstrapJSON and rehydrateJSON package globals die; flag state is
constructor-scoped in the module. The combined
TestHandoffAndRehydratePreserveCallerTextWithoutLifecycleState is split: the
handoff-writer assertions stay in cmd/ao as
TestHandoffPreservesCallerTextWithoutLifecycleState; the rehydrate read side
moves to the module as TestRehydrateReadsCallerAuthoredBrief plus the
preserved TestRehydrateJSONEmptyStateEmitsEmptyObject and
TestSessionBootstrapOnlyReportsLocalOrientation.

Test-Removal-Reason: TestHandoffAndRehydratePreserveCallerTextWithoutLifecycleState removed; its handoff-writer coverage is preserved in cmd/ao and its rehydrate coverage relocated to the session module (net +2 tests).
2026-07-19 20:13:44 -04:00
..