Address Cody review round 8: CODY-014 start-up status; add acceptance contract

CODY-014 The page is no longer blank while it looks for the Even app. The
         static HTML carries an accessible status (#startup, role=status)
         visible from first paint; boot() keeps it until the real page is
         mounted, then removes it. Start-up moved from main.ts to boot.ts so
         the entry-point wiring can be exercised in a DOM. No eager browser
         fallback: the preview is chosen only after the host wait expires.

tests/integration/entryPoint.test.ts loads the real index.html and runs the
real boot() and the real Even Hub SDK in happy-dom: prompt status, preview
after timeout, real Even mode when a callable host appears during the wait
(SDK bridge initialised, HUD page created).

docs/contracts/: acceptance contract, written by the implementer on Dan's
instruction and tied to his quoted requests.
docs/evidence/device/2026-11-21.md: first run on a physical G2, as reported
by Dan plus the bridge log.

Not reviewed. This commit is not deployed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-21 12:50:45 -08:00
co-authored by Claude Fable 5.2
parent 09e21f6368
commit 7f055d490f
8 changed files with 605 additions and 64 deletions
+20
View File
@@ -7,8 +7,28 @@
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
/>
<title>Hermeven</title>
<style>
/* Shown from the first paint, before any script or stylesheet has loaded. */
#startup {
font-family: system-ui, sans-serif;
max-width: 40rem;
margin: 0 auto;
padding: 20px 16px;
}
#startup h1 {
font-size: 1.4rem;
margin: 0 0 8px;
}
</style>
</head>
<body>
<!-- Visible immediately, so the page is never blank while it looks for the Even app.
Removed by the script once the real page is mounted. -->
<div id="startup" role="status" aria-live="polite">
<h1>Hermeven</h1>
<p data-startup-status>Starting. Looking for the Even app…</p>
<noscript><p>Hermeven needs JavaScript to run.</p></noscript>
</div>
<div id="app"></div>
<div id="preview" hidden></div>
<script type="module" src="/src/main.ts"></script>