Round 16 handoff and evidence (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# 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".
|
||||
@@ -706,3 +706,44 @@ suite's isolated gateway serves one profile. What exists instead is one manual r
|
||||
server (`docs/evidence/droplet/2026-11-21.md`): Wendy's profile answered through `/p/wendy` with
|
||||
her own key, an identical resubmit returned the same run, and the keys were refused crosswise.
|
||||
The simulator suite runs with one agent; the agent screens have not been drawn in the simulator.
|
||||
|
||||
## Round 16: CODY-021, CODY-022 (2026-11-22)
|
||||
|
||||
Run on `bb3a309`.
|
||||
|
||||
```
|
||||
$ npm ci exit 0
|
||||
$ npm run typecheck exit 0
|
||||
$ npm test Test Files 15 passed; Tests 299 passed (299)
|
||||
$ vitest --project integration agents + idleExitHost + client-bridge + clientSecurity + entryPoint + bridge
|
||||
Tests 176 passed (176)
|
||||
$ npm run client:build built
|
||||
$ HERMEVEN_BRIDGE_ORIGIN=https://hermeven.xylo.gg npm run -w @hermeven/even-client pack
|
||||
Stamped hermeven.ehpk (100903 bytes); not uploaded
|
||||
$ npm run test:real-stt Tests 11 passed (11)
|
||||
$ npm run test:real-hermes Tests 9 passed (9)
|
||||
$ npm run test:simulator Tests 8 passed (8)
|
||||
$ bash -n deploy/install.sh tests/deploy/runbook-proof.sh ok
|
||||
$ tests/deploy/runbook-proof.sh exit 0 (Caddy "Valid configuration"; systemd-analyze verify ok)
|
||||
$ git diff --check f02715f...HEAD ; git diff --check c8b4fb0..HEAD clean
|
||||
```
|
||||
|
||||
No check was omitted.
|
||||
|
||||
CODY-021, two integration tests in `tests/integration/agents.test.ts` and one reducer test:
|
||||
|
||||
| Step | Asserted |
|
||||
|---|---|
|
||||
| Pepper is asked once; Wendy is chosen; a turn that never finishes is started with her | executions: default, wendy |
|
||||
| Wendy is removed from the list, the bridge restarts, the page is reopened | the app re-attaches to the same request id |
|
||||
| Her turn settles | `outcome_unknown` on screen; still exactly one execution at Wendy |
|
||||
| At that moment | state `agentId` is `default`; storage `agentId` becomes `default` |
|
||||
| Back to Ready | HUD `Pepper\n\nReady.` |
|
||||
| Another question | goes to the default agent in the default agent's OWN conversation (turn 2, containing the first Pepper question); executions: default, wendy, default; one POST ever under Wendy's prefix |
|
||||
| Variant: the next question is asked straight from her result screen | same routing; the conversation created names `default` |
|
||||
| Reducer | the fallback applies on a resting screen and keeps what is on it; ignored while listening or in flight |
|
||||
|
||||
Negative controls, each run against those tests: reconciliation removed (the reviewed
|
||||
behaviour): 2 failed, 63 passed of 65. Reconciling while her turn is still in flight: 2 failed.
|
||||
Relabelling her conversation as the default's instead of restoring the default's own: 2 failed.
|
||||
Reducer applying the fallback while busy: 1 failed.
|
||||
|
||||
Reference in New Issue
Block a user