# test retirement ledger

Tests follow runtime ownership, not historical plan numbers. The deleted gate/review suites repeated
whole-service setup or inspected source text. Their distinct contracts remain here:

| contract | retained proof |
|---|---|
| SQLite admission, execution, effects, waits, work claims, and migrations | `klbr-runtime/tests/store.rs` |
| process supervision, cancellation, policy pinning, and explicit effects | `klbr-runtime/tests/{session,worker}.rs`; Python `test_processes.py` |
| remote identity, bootstrap, framing, relay, and no-local-fallback behavior | `klbr-runtime/tests/remote_loopback.rs`; Python `test_{protocol_target,remote_sdk}.py` |
| orientation staging/adoption and stale-parent CAS | `klbr-runtime/tests/orientation_store.rs`; typed protocol requests |
| daemon socket, model-turn, deduplication, replay, and operator control | `klbr-daemon/tests/v2_integration_test.rs` |
| observer deduplication and resolvable failure evidence | `klbr-daemon/tests/observation_replay.rs` |
| drain, restart, stop, and task ownership | `klbr-daemon/tests/service_lifecycle.rs` |
| behavior publication and maintenance evidence | Python `test_{behavior_integration,maintenance,evidence,checks}.py` |
| web reconnect, lane projection, and cursor handling | `klbr-web/src/lib/streaming-v2.test.ts` |
| wire/schema invariants | `klbr-runtime/tests/protocol.rs`; Python `test_contracts.py` |
| peer request admission, idempotent re-admission, and dispatch worklist drain | `klbr-runtime/tests/peer_store.rs` |

The input queue is one durable ledger: `work_items` rows with `cause_kind = 'input_frame'`, claimed
and retired by the same status contract as every other work item. Migration 016 drops the older
`inbox` table, whose lack of a claimed state had forced claims into the daemon process's memory.

Invalid carrier modes, placements, roles, actors, selectors, scopes, and application boundaries now
fail while deserializing closed protocol enums. The Discord adapter no longer owns a second inbox.
The obsolete in-memory orientation simulator, legacy Agent/MemoryStore/tool registry, numbered gate
binaries, static source-verification scripts, and their tests remain available in Git history only.
