Round 13 handoff and evidence (documentation only)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
# Handoff for Cody, Round 13
|
||||||
|
|
||||||
|
From: Claude (implementation). Date: 2026-11-21.
|
||||||
|
|
||||||
|
**Not reviewed.** Round 12 (`3d0edeb`): REVIEW BLOCKED on CODY-019 and the section F gate.
|
||||||
|
|
||||||
|
| Item | Value |
|
||||||
|
|---|---|
|
||||||
|
| Branch | `cody/droplet-deploy` |
|
||||||
|
| `main` | `f02715fb6487f4e2ff0adeccfaad2403e1724aa5` (unchanged) |
|
||||||
|
| Reviewed in Round 12 | `3d0edebd131df974563ac13bc9f35c48bf221dcf` |
|
||||||
|
| Code fix | `d8582e9` (`core/controller.ts` and one test file only) |
|
||||||
|
| New head | the tip after this push (this file and evidence only on top of `d8582e9`) |
|
||||||
|
|
||||||
|
## Section F gate
|
||||||
|
|
||||||
|
Still open. Dan was asked directly for a yes or no on each of F1 to F5 and had not answered
|
||||||
|
when this was pushed. The contract text is unchanged and still calls section F a proposal.
|
||||||
|
|
||||||
|
## CODY-019
|
||||||
|
|
||||||
|
`Controller` keeps an `activityEpoch`, incremented every time the normal countdown is
|
||||||
|
(re)started, which is every gesture, every dispatched state change and every phone-page touch.
|
||||||
|
`leaveGlasses()` captures it before calling the host and, on an unconfirmed result, schedules no
|
||||||
|
retry if it has moved. The reducer-generation comparison is gone; a dispatch always moves the
|
||||||
|
epoch, so nothing it covered is lost.
|
||||||
|
|
||||||
|
Consequence to check: an attempt overtaken by activity is not counted as a failure, so after
|
||||||
|
activity the host can be asked up to four more times (tested: five calls in total, then none).
|
||||||
|
|
||||||
|
Tests, the control and its one limitation are in `docs/test-evidence.md`, "Round 13".
|
||||||
|
|
||||||
|
## State
|
||||||
|
|
||||||
|
0.1.1 is not uploaded, not installed, not deployed. Server unchanged at `d90cd89`. Idle exit has
|
||||||
|
never run on the glasses.
|
||||||
@@ -565,3 +565,46 @@ after one swipe the app logs "leaving the glasses: idle on ready", the simulator
|
|||||||
`shutDownPageContainer(0)` answers true, the app logs "left the glasses", and the display is
|
`shutDownPageContainer(0)` answers true, the app logs "left the glasses", and the display is
|
||||||
empty (`docs/evidence/simulator/08-after-idle-exit.png`). This shows what the simulator does. It
|
empty (`docs/evidence/simulator/08-after-idle-exit.png`). This shows what the simulator does. It
|
||||||
is not evidence of what the Even app or the glasses do.
|
is not evidence of what the Even app or the glasses do.
|
||||||
|
|
||||||
|
## Round 13: CODY-019 (2026-11-21)
|
||||||
|
|
||||||
|
Run on `d8582e9`.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm ci exit 0
|
||||||
|
$ npm run typecheck exit 0
|
||||||
|
$ npm test Tests 257 passed (257)
|
||||||
|
$ vitest --project integration idleExitHost + client-bridge + clientSecurity + entryPoint
|
||||||
|
Tests 85 passed (85)
|
||||||
|
$ npm run client:build built
|
||||||
|
$ HERMEVEN_BRIDGE_ORIGIN=https://hermeven.xylo.gg npm run -w @hermeven/even-client pack
|
||||||
|
Stamped hermeven.ehpk (99934 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 3d0edeb..HEAD clean
|
||||||
|
```
|
||||||
|
|
||||||
|
No check was omitted.
|
||||||
|
|
||||||
|
Six new tests in `tests/integration/idleExitHost.test.ts` ("activity during a pending exit
|
||||||
|
keeps its full countdown"), production adapter, default times, fake clock. In each, the first
|
||||||
|
exit call (30 s after Ready) is held by the stand-in host, then:
|
||||||
|
|
||||||
|
| Activity while held | Host then | Proven |
|
||||||
|
|---|---|---|
|
||||||
|
| swipe at Ready (generation asserted unchanged) | answers false | no call for 29.8 s after the swipe; then one call, which succeeds; left once |
|
||||||
|
| swipe at Ready | call rejects | same |
|
||||||
|
| swipe at Ready | never answers in time | no "will try again" is logged; after the full countdown the retry waits on the same call; late success: one host call ever, left once |
|
||||||
|
| touch on the phone page | answers false | no call for 149.5 s (120 s grace plus 30 s); one call by 150.5 s; left once |
|
||||||
|
| swipe at Ready | refuses every time | four further attempts, then "staying until the next activity", no more |
|
||||||
|
| none (control) | answers false | retried after 3 s |
|
||||||
|
|
||||||
|
Calls in flight never exceed one in any of them, and no unhandled rejection is raised.
|
||||||
|
|
||||||
|
Negative control: with the activity-epoch guard removed, four of the six fail (the three swipe
|
||||||
|
cases and the bounded case). The phone-activity case does **not** fail without the guard: the
|
||||||
|
timer callback's own phone-grace check already protected it. It is kept as a regression test,
|
||||||
|
not claimed as a control.
|
||||||
|
|||||||
Reference in New Issue
Block a user