# Live model override T1 evidence, #1317

Task #808 implements person-owned desired model state and supported next-turn
selection. This is source and fake-transport work. No model, real account,
native profile, deployed daemon, release or machine trust was changed.

## Contract and scope

- Overrides live in the project hub.db and survive daemon restart. Runtime reset
  clears them; retained state is bound by recovery feature/integrity admission.
- CLI model set/clear/list is person-only, including agent-shell/live-test refusal.
  Dashboard writes use verified settings-session identity, preview and confirmation;
  expiry alone is not treated as a session identity.
- The desired revision and an active turn's captured model are separate. Captures
  happen before asynchronous preparation; acknowledgements bind their actual
  adapter owner and turn, not a future turn id or a model string alone.
- Conductor ruling on 2026-11-08 admits both CodexPeer app-server turn/start
  paths. An explicit native client model wins, turn/steer is unchanged, and a
  turn/start model becomes the native thread default. Clear removes the hub
  override but does not invent an earlier native default.
- T1 does not add ACP setters or native TUI authority. The supported factories
  are host-marked; public capability text alone cannot claim a live setter.
- Tier 3 instance/model/command/provider rules, native reviewer tool/isolation
  fences and local budget/campus/observer safeguards remain in force.

## Checks

The worktree began at b97ee5af976e92b97d2eb55b8a1147908a83fac7. Local dependency
preparation used pinned Bun 1.4.2 with a frozen lockfile (99 packages), with no
pin or lock change. A bounded DGX structural query found ripwire unavailable in
the image, so planning used the inspected source call sites instead. That query
was not a compilation or test gate. Committed-head checks are recorded below
when their results are available; no test pass is claimed yet.

## Remaining evidence

Focused fakes, canonical DGX and exact-head hosted CI remain unverified until
recorded. No native/provider/model-backed run is claimed by those checks.


## Initial committed checks

- `c0640100a3ff4bf2ab583351ba6a2f26eb2290e0`: frozen DGX install then TSC
  stopped at one possibly undefined model-boundary access. Inventory and tests
  did not run. The guard now requires existence before comparing the owner.
- `7ae86fcc726a70505107b11e445e8373321b8001`: the separate DGX inventory check
  identified seven new keys. This is a failed inventory run, not a green gate.
  No key was added to the baseline.

The new thread-model cache cap, stored override count, pending preview count and
confirmation TTL are operational limits on the hub's own retained state. Pending
native RPC records, CLI response rows and incoming confirmation-token length
are safety floors at input/proof-reader boundaries. The existing #844 token
representation is reused unchanged in a pure leaf module; native adapters do
not import the registry through instances, avoiding an initialization cycle.


At `69974c37b53cc74bb6656b63648f6b8b07818754`, DGX typecheck,
inventory and all 559 exact seed anchors passed. Runtime tests had 383 pass,
3 existing platform skips and 1 failure across twenty files (3,821 assertions;
124 s). The new Codex test requested steering after the RPC response but before
its actual native `turn/started` observation. Its fake now supplies that barrier
and asserts the steer uses the observed native turn id. No ownership guard,
assertion or timeout was relaxed. The three existing #845 skips do not provide
Linux-native sandbox evidence.

Additional boundary checks before submission cover a saved override whose audit
append fails (explicit saved-but-failed reply and readback/repair guidance), an
older hub that advertises no model support (refusal before any model request),
and model listings with retained removed peers. The model view has a display-only 512-row ceiling, with bounded collection
of builtin, configured, external, active local and retained ids. Legacy native
peer admission has no universal 64-peer cap, so a complete inventory is not
assumed to fit. Overflow explicitly refuses list, marks model data unavailable in
status/snapshot without breaking other fields, and leaves single-peer set/clear
usable. No peer admission is narrowed and no truncated list is called complete. This does not raise the
storage cap or change any existing timeout.


The display path caches a scalar launch model only when a trusted supported
factory registers its owner. Periodic model views do not call unsupported
owners' recovery hooks or scan task history. The unavailable flag has fixed
CLI/UI cause and repair guidance, and disables stale model controls.

At `29f3be831399c0125ad9ea5bd4f117894505a760`, the new real fake-WebSocket
ACK-order test reproduced a product defect: an older explicit-client ACK arrived
after a newer hub model acceptance and incorrectly emitted `client-older` as the
native choice. The named assertion failed normally (one case, seven assertions,
4 s), without setup/compiler/timeout failure. This red checkpoint intentionally
contained the new test and unchanged Codex source; other pending refinements were
not claimed tested. Its eventual fix and green evidence are recorded separately.


At `4e10add8e7f6ad446aaf42278ea46ceb86fc77df`, typecheck, inventory and
all 559 anchors passed. The Codex ACK-order regression was green (139 ms),
including unknown-default cases, with its original failing assertion preserved.
The selected seven files had 125 pass and one new fixture failure (1,700
assertions; 61 s): a counter included legacy status recovery-hook calls rather
than isolating the new model view. The correction checks the model-list path
immediately and executes the actual cached fallback projection separately.
The legacy status behavior is not rewritten or counted as a model regression.

A second named red test at `d92ea42aa1d0de528dba014b771895b672e2ad44`
used the real authenticated fake Pi bridge and an owned process signature. It
held the public setter return after a successful native ACK, withdrew roster
ownership, then observed an incorrect `applied` callback before the existing
epoch guard (expected zero, observed one; five assertions, 4 s). The source moves
that callback after the existing post-ACK guard. Cancellation/shutdown precede
the fixture's delivery join; the owned process is confirmed exited. This is
synthetic host/protocol evidence, not a native account or model qualification.

The new Codex steer test also uses the fake's existing file gate to hold turn
completion until its native-id/model assertions finish, replacing a 100 ms
completion race without changing any product timeout or shared fake behavior.
Final unavailable banners describe bounded-read failure generically, because
store-read failure and catalog overflow must not be confused.


At `ded9db733f0a0b7b8fea70934d41d051afd1da94`, DGX typecheck, inventory
and all 559 anchors passed; all 122 selected Codex/Pi/controller/CLI/UI tests
passed (1,475 assertions, five files; exit 0 in 53 s). This includes the prior
ACK-order red test and the invalidated Pi ACK red test. Other adapter, tier 3,
reset and HTTP-auth tests passed in the earlier wider run; no earlier failed
whole run is relabelled as green.

Final state/UI edges add a captured-revision check for clear before its first
ACK, and per-component draft/request generations for model confirmation. Editing
the draft or beginning a new preview invalidates old tokens and all late success,
error and finally effects. Preview metadata must match the exact set value or
null clear. Server refusals retain bounded plain error/repair text through the
existing text-only surface; unsafe or malformed replies use fixed fallbacks.
The UI error-text ceiling is a safety floor, not a new authority or model bound.


At `8333ffcdfe05f373a7c58fa192a4efd7123c138e`, typecheck and inventory
passed; all 25 changed state/UI tests passed (237 assertions, two files;
39 s). This covers pending clear before first ACK, strict draft/token binding,
late preview/confirmation success/error/finally, and specific safe server repair
text without claiming native application.

Main `6da56c7a3cc697d9401903b827897148e05826e9` was merged cleanly for
integration, including the #1318 macOS typecheck heap fix. The model runtime,
adapter, CLI/UI, package, lock and generated bundle bytes are unchanged from the
passing source checkpoint; incoming changes are Orca O2 and the CI fix. No
unmerged fix branch is imported. Two new seeded guards target person-only model
control and the reproduced accepted-ACK ordering defect, using existing named
Linux tests. Their actual seeded results follow separately.


## Integration checkpoint and remaining gate

At `15cb959eab3b7e5796e3df4c50046d8447fe801c`, all 561 anchors matched.
Seed shards 48/64 and 49/64 passed all 18 original-green / named-mutant-detected
pairs, including both new model guards (46 s total). The separate existing
Office/role/pet/motion/UI integration tests passed 101/0, with 140,310 assertions
across five files (17 s). Logs: scratchpad `temp/task808-seeds.log` and
`temp/task808-ui-integration.log`. These are focused shards, not a claim that
all 561 mutants ran.

The initial 44-file independent source/test/doc review had no confirmed
Important finding; its CLI 30-second timeout nit was corrected to the repository
20-second ceiling. Subsequent delta reviews covered all nongenerated changes
and confirmed the model ACK, cached metadata and UI fences. The unavailable
cause nit is fixed. The generated bundle is checked by the gate rather than
claimed manually reviewed. A provisional token-newline alert was retracted
against the actual pinned runtime and ECMAScript semantics, with no source change
or pass claim based on it.

The final report-only head starts canonical `scripts/check.sh --changed` on
DGX. Its result and exact-head hosted CI remain unverified until recorded. The
known inherited Herdr `/home/dev` fixture defect (#807) is outside this feature.
No test is excluded or weakened for it. Native/provider-backed model acceptance,
real UI browser interaction and installed-hub rollout remain unrun. No release,
upgrade, restart or model change was performed on the person's running hub.


## Unchanged covering contracts

The parent agent-hub goal spec is unchanged: this refines existing native
adapters and person-owned control without changing task/peer authority,
account ownership or the deployment boundary. The owning adapter and
architecture specs carry the new model state, turn and evidence contract.
The bus spec is unchanged: reset clears an additional independent runtime table,
while message addressing, queue/journal disposition, receipts, TTL, broker and
reset admission semantics remain as before. Model selection is not a task or
delivery effect.

This acknowledgement was omitted from the first board completion. The final
document-only correction carries the same runtime and test bytes. Canonical
verification continues at parent `2f311bf61c6c77636aeb54a5ad249838b8ea0ee5`;
it is not an exact-head canonical pass for the corrected document head. Hosted
CI must verify the final head before merge. No duplicate canonical run or empty
retry commit is introduced for this bookkeeping correction.

## Reviewer regression corrections

Review of `54546e9d` found two regressions the earlier focused set missed:
the generic reviewer factory supplied a model getter to unsupported Claude and
Kimi reviewer surfaces, and a client-forwarded Codex start rejected before any
turn began retained its captured model choice. Both are operational regressions,
not unavailable evidence. The corrected fixtures exercise actual daemon reviewer
starts and rejected proxy requests followed by a corrected desired model.

The original canonical run at `2f311bf6` reproduced the Claude reviewer failure
in `reviewer-pool-daemon.test.ts`. It also reported a `#733` catch-up test failure.
After those failures and this review, the owner interrupted that obsolete run
with SIGINT; it exited 130 after 592 seconds. It is cancelled, not a full-suite
pass, and no test failure is erased or counted as fixed merely by cancellation.

The correction also acknowledges Pi selections only after prompt acceptance,
and identifies a cleared Codex override retained by the native thread as
`native thread default (was override)`. The latter describes known accepted
history; clear still cannot reconstruct a previous thread model. Unsupported
reviewer surfaces keep their original no-override review behavior and do not
gain a model-setting capability.

Concurrent definitive rejections drain a single bounded retirement candidate,
including when an explicit client-model request is the last one to reject.
Native acceptance or a native start protects the current boundary. Reused RPC
ids remain ambiguous: their tombstone is retained until client reattachment,
rather than treating the first response as proof all duplicate requests failed.
No retirement callback grants model authority or overwrites an explicit client
choice.

The first correction check at `f7e84a200a494c4566f71915260f96dbf0318e5a`
passed typecheck, inventory and bundle comparison, then reported 172 pass and
1 fail (2,100 assertions, ten files; remote exit 1 in 76 s). The failure was in
the new Pi acceptance fixture: its synthetic settlement omitted the required
native generation, so the existing fence correctly ignored it. Commit
`8f8c9794f0b71d52bca6a8983598e34968edd134` supplies the actual generation-bound
start/settled lifecycle. It changes only that fixture, preserving every existing
assertion, deadline and production lifecycle check.

Committed-head DGX verification at `8f8c9794f0b71d52bca6a8983598e34968edd134`
passed typecheck, inventory (3,496 entries; 2,491 classified; unchanged 1,005
baseline entries), bundle comparison, and all 173 tests across ten files
(2,103 assertions). This includes the original failing reviewer daemon suites,
the actual proxy correction, concurrent rejection cases and Pi acceptance and
rejection. Seed shards 48/64 and 49/64 passed all 18 original-green /
named-mutant-detected pairs, including both model guards. The combined remote
command exited 0 in 109 seconds; log: `scratchpad/temp/task808-review-final-focused.log`.

The independent correction review covered all 16 nongenerated changed files
and found the explicit-last rejection gap before verification; it was corrected
and reread with no further finding. The generated bundle is verified by
comparison. The final report-only head has identical runtime, test and script
bytes to that focused-tested commit. Its canonical changed-scope gate and
hosted exact-head CI remain separate, unverified gates until their results are
recorded; neither the focused pass nor the interrupted earlier run substitutes
for them. Native/provider-backed acceptance and real dashboard interaction
remain unrun.
