P10 G2 — test traceability¶
Each T-ID of ADR 0018 §13 against the tests that exercise it. "Open" lists what the ADR names and no test covers yet.
| T-ID | Tests | Open |
|---|---|---|
| T109 | contextdb-team/tests/frontend.rs (7 tests: local batches stay local, portable translation accepted by accept, rules/bases/tags/Rebind, expected values from the team, MixedTeamBatch, two teams, TeamDepOutside, Unpublished, a hidden mirror keeps Unauthorized(Read)); contextdb-testkit/tests/p10_admission.rs (reserved namespaces on every channel, A8); ops.rs unit tests (CXTB round trip); accept.rs (team kinds) |
— |
| T110 | contextdb-team/tests/import.rs (every row of §8.2, restart and torn log, partial clone, batched reads equal single reads, replace refs and grafts ignored, a rejected entry decides proposals only when its author signed it); contextdb-cli/tests/p10_team_cli.rs (import through the real hooks on two clones; a blobless clone joins and a plain fetch leaves nothing missing) |
— |
| T111 | contextdb-team/tests/publish.rs (lost race rebuilds; egress turned off after enqueue: nothing reaches the remote, by object enumeration; a policy change between steps 5 and 7 stops the entry; confirm publishes exactly the listed set; published but never pushed is queued again; the local layer hides what its author cannot read and refuses adopt_as_base without the curator role; an entry over the op limit is split and the rest waits; a dependent of a deferred proposal waits too, an oversized proposal is refused at enqueue); p10_team.rs (a client_txn_id is idempotent across proposals and local commits, across a restart); contextdb-cli/tests/p10_team_cli.rs (git push -n, an alias for push -n and a push to another remote publish nothing; a real push publishes; signing under an OpenPGP global git config; a push whose command line cannot be read publishes nothing, with a warning); githooks.rs unit test (--dry-run, --dry, -nv, --no-dry-run, --, -o values, aliases); PROP18 (several proposals in one entry decided one by one) |
— |
| T112 | contextdb-team/tests/golden.rs (tests/team-chains/v1, 41 chains); accept.rs (rejected entries keep their position, roles, expected values, team status) |
— |
| T113 | contextdb-cli/tests/p10_fence.rs (real hooks, lag_check off: hooks disabled reads CERTIFIED until a sync, lost committed notify lags at once, ctxd down during the fetch, a ctxd that never acknowledges fails the fetch); contextdb-daemon/tests/p10_team.rs (announce lags reads until resolved; kept while its process lives; withdrawn; dropped for a dead process only after a fresh ref read); t116_certs.rs (lag over the closure, direct reads); p10_team.rs t113_g_lag_holds_at_every_step (G-LAG as a property: random root entries, hook fetches with the notify delivered or lost, aborts, hooks killed after the announce, fetches bypassing the hooks and lag_check; after every step an actual tip not mirrored never reads CERTIFIED; it fails when pending announces are ignored) |
— |
| T114 | contextdb-daemon/tests/p10_team.rs (t114_every_publish_crash_row_recovers: every row of §7.4 with restarts; a recorded leave finished at the next start); import.rs (torn decision log); p10_team_cli.rs (a crash between the compaction steps, then --resume); import.rs (a checkpoint join that crashed before its anchor, an interrupted rebuild put back) ; prop19.rs t114_a_catch_up_killed_after_any_batch_recovers_on_restart (§8.4's "replica ahead of a branch's mirrors" and "some branches written" rows: the catch-up of every open branch killed after each of its batches, the committed batches kept as durable, then run again; every branch equals the uninterrupted run digest for digest) |
the kill is in process (a writer that stops), not a killed ctxd; the start-up catch-up path that resumes it runs in t114_every_publish_crash_row_recovers |
| T115 | contextdb-daemon/tests/p10_team.rs (t115_…: Pin and Cur dependents on two branches through retraction, restore, supersede and back); leave tests |
— |
| T116 | contextdb-team/tests/t116_certs.rs (8 tests, every case against the oracle) |
— |
| T117 | contextdb-testkit/tests/p10_team_lanes.rs (absent section keeps P9 bytes; resolution in engine and oracle); publish.rs (local layer); frontend.rs (hidden mirror); p10_team.rs (t117_…: team shred, local shred, Q6 order; a team shred keeps bytes a local artifact payload or resolution note holds; t117_a_mirror_is_unavailable_…: with [team_lanes] naming bob only, carol's read of a mirror is UNAVAILABLE and bob's is not) |
— |
| T118 | contextdb-team/tests/compaction.rs (follower and joiner agree; entries after Compact ignored; bad Compacts rejected; > 8 MiB; the reserve is exact); import.rs (real objects, offline edge, joiner, rebuild from the checkpoint anchor); p10_team_cli.rs (compact, crash, a squatted g1 not replaced by --resume and replaced by --resume --force-ref, follow, prune) |
two admins resuming at once, as a real race: declared. Its two halves are tested apart: a --resume whose push is refused (the squat case) and an edge that follows a valid successor already on the remote (follower and joiner) |
| T119 | contextdb-store/tests/p10_migrate.rs; p10_team_cli.rs (a chained user reference-transaction veto stands) |
— |
| T120 | contextdb-testkit/tests/p10_attach.rs, p10_merge.rs, p10_admission.rs |
— |
| T121 | Q1 p10_team.rs (merge catches up first); Q2 accept.rs (a rejected proposal's bytes must be sent again); Q3 compaction.rs; Q4 t115; Q6 t117; Q11 p10_team.rs (ProposalTooLarge) and p10_team_cli.rs (alias); Q12 leave tests |
— |
| PROP17–19, PROP13 | prop17.rs, prop18.rs, prop19.rs, contextdb-testkit/tests/p6_prop13.rs (gate runs 10,000 seeds) |
— |