First vertical slice: Even client, bridge, contract v1, tests, docs

Client (apps/even-client): pure interaction reducer with generation-based
stale-result rejection, HUD renderer, measured pagination, Even Hub SDK
0.0.16 adapter, bridge HTTP client, phone pairing/status/diagnostics page.

Bridge (services/bridge): device pairing and revocable expiring credentials,
turn engine with idempotent submit, cancel, deadlines and restart recovery,
Hermes Runs API adapter, OpenAI-compatible STT adapter, operator CLI.

Contract (packages/contracts): versioned schemas, types and error codes.

Tests: 122 unit/integration (fakes), 6 simulator scenarios (Even Hub
simulator 0.9.5), 9 scenarios against a real Hermes v0.23.1 gateway with a
stub model. No real STT, real model or physical device has been exercised;
see docs/test-evidence.md and docs/device-test-plan.md.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-18 18:21:49 -08:00
co-authored by Claude Fable 5.2
commit 4687cc0114
79 changed files with 11685 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
# Compatibility matrix
Recorded 2026-11-18. Versions are pinned in `package-lock.json`; the Even packages are pinned
exactly in `apps/even-client/package.json`.
## Repository baseline
| Item | Value |
|---|---|
| Remote | `git@git.xylo.gg:Xylo-Digital/hermeven.git` |
| State when work began | Empty repository: `git ls-remote` returned no refs, so there was no base branch, no base SHA and no repository instructions to follow. |
| Working branch | `feat/vertical-slice-1` (local; nothing has been pushed) |
## Even
| Component | Version | How it was used |
|---|---|---|
| `@evenrealities/even_hub_sdk` | 0.0.16 | Client runtime. Declares minimum Even app 2.2.10. |
| `@evenrealities/pretext` | 0.1.4 | Text measurement for pagination. |
| `@evenrealities/evenhub-simulator` | 0.9.5 (linux-x64) | Simulator tests. |
| `@evenrealities/evenhub-cli` | 0.2.0 | `evenhub pack` accepted the generated manifest and stamped `min_app_version 2.2.10`. |
| Even phone app | not tested | Must be 2.2.10 or later per the SDK. |
| G2 firmware, R1 ring | not tested | No device was available. |
## Hermes
| Component | Version | How it was used |
|---|---|---|
| hermes-agent | v0.23.1 (2026.9.24), commit `3b42157` | Docs and source read; a real gateway run in a throwaway `HERMES_HOME` with a stub model. |
| API surface used | `GET /health`, `POST /v1/runs`, `GET /v1/runs/{id}`, `POST /v1/runs/{id}/stop` | See `docs/decisions/0002-hermes-runs-api.md`. |
| Dan's target Hermes deployment | **not inspected** | No access. Version and configuration unverified. |
## Toolchain
| Component | Version |
|---|---|
| Node.js | 22.23.2 (requires 22.13 or later) |
| TypeScript | 5.9.3 |
| Vite / Vitest | 8.3.8 / 5.1.1 |
| Fastify / @fastify/cors | 5.12.8 / 11.4.3 |
| better-sqlite3 | 13.2.0 |
| @sinclair/typebox | 0.34.52 |
| pino | 10.4.0 |
## Known version hazards
- The official `everything-evenhub` skills describe SDK 0.0.12 and simulator 0.7.1 in places and
are stale against 0.0.16. They name two functions (`setBackgroundState`,
`onBackgroundRestore`) that SDK 0.0.16 does not export. See `docs/feasibility.md` item 8.
- `evenhub pack` reads the SDK's minimum app version from npm `latest` unless `--sdk-ver` is
given. The `pack` script passes `--sdk-ver 0.0.16` so builds are reproducible.
- Hermes keeps a keyed run's idempotency record for 24 hours. The bridge finishes or abandons a
turn within minutes, so the window is not a constraint today.