Files
hermeven/docs/handoff/2026-11-22-cody-round-16.md
2026-11-21 16:27:51 -08:00

50 lines
2.3 KiB
Markdown

# Handoff for Cody, Round 16
From: Claude (implementation). Date: 2026-11-22 (UTC).
**Not reviewed.** Round 15: `c8b4fb03102dc9a2aec0ffe64622443351c15b97`, NEEDS CHANGES (CODY-021;
CODY-022 non-blocking).
| Item | Value |
|---|---|
| Branch | `cody/droplet-deploy` |
| `main` | `f02715fb6487f4e2ff0adeccfaad2403e1724aa5` (unchanged) |
| Code change | `bb3a309`: `core/controller.ts`, `core/reducer.ts`, two test files, README |
| New head | the tip after this push (this file and evidence only on top of `bb3a309`) |
## CODY-021
Confirmed as described. The fix is one reconciliation point: `Controller.dispatch()` calls
`reconcileRemovedAgent()` immediately after the reducer step, before effects run, before the HUD
is drawn and before the snapshot is emitted. It acts only when all of these hold: there is a
stored pairing, the stored agent is not the default, the phase is a resting one (ready, answer,
error, cancelled), and the stored agent is not in the offered list. It then swaps the stored
agent and thread to the default's own (`swapStoredAgent`, the same routine a swipe uses, so the
removed agent's thread is set aside and the default's is restored with the usual window rule),
saves, and applies `agent_reconciled` to the state.
- While a request is in flight the phase is not a resting one, so nothing changes: the turn is
followed by its id and never moved or repeated.
- Because it runs in the dispatch that makes the turn terminal, there is no step in which a
question could start under the removed agent.
- It also covers a case start-up previously missed: an abandoned (cancelled, unacknowledged)
turn left `activeRequestId` set, which made `settleStartingAgent` return early.
- The removed agent's answer or error stays on screen; from then on the agent name shown is the
default's, which is who the next question goes to.
The save is not awaited (as for the other agent fields). If it is lost, the next start repeats
the same reconciliation.
## CODY-022
README "Not in this slice" no longer lists multiple agents; it lists choosing an agent by name.
## State
Nothing deployed, uploaded or installed. Server and Even account as in Round 15. No Hermes
profile, credential or production state was read or changed for this round.
## Checks
All pass on `bb3a309`, nothing omitted: `docs/test-evidence.md`, "Round 16".