Repository navigation
#702 Turn the test suite into a defect detector: honest suppressions, a covering array, and harnesses that can express the unreachable bug classes - #714
Merged
Conversation
… a nightly tier, and a rule-coverage audit that can fail F1 of epic #702. The suite found ~6 of the last 74 bugs; this is the part that stops it hiding failures, so the rest of the epic builds on something honest. Part 1 — suppressions become typed, issue-referenced and expiring. [Ignore] meant five different things (blocked on a bug / flaky / slow / a manual tool / unstable), so nothing could lint it and nothing revisited it. One meaning per marker now, enforced by scripts/lint-test-suppressions.py in the merge gate's free-runner invariants job: [Ignore] requires an OPEN issue and may not mean cost or instability; Quarantine requires an open issue; [Explicit] requires a tier that actually runs it; Manual must say in source why CI cannot. All 31 [Ignore] and 24 [Explicit] sites triaged, none left unclassified. Ten tests move from [Ignore] to Sensitive — a tier that already existed and is documented verbatim as "flaky under parallel CPU load; runs in the gate's serial quiet pass", which is word for word what those [Ignore] reasons said. They go from never running to running in the quiet pass. shards.json named ChaosStressTests and Runtime.CheckerboardTests, both class-level [Ignore]d: the gate budgeted a shard slot, ran zero tests and reported green. NUnit applies [Ignore] unconditionally so no filter can reveal it, which is why shard.py now checks RESULTS — any class the plan names that produced no executed test fails the gate. The lint catches the same shape statically, including a class that moved to a gate-excluded tier. Both checks are themselves tested against planted violations. nightly-suppressed.yml is the tier that runs the [Explicit] set, with --blame-hang because NUnit's DefaultTimeout cannot stop a CPU-bound spin, and it fails if the filter selects zero tests — a tier that runs nothing while reporting success is the same false green one level up. Part 2 — a rule verifier must prove it can fail. scripts/audit-rule-coverage.py cross-checks claude/rules against [VerifiesRule] in both directions and blocks on a duplicate rule id, a verified: naming a test that does not exist, an attribute naming a rule that does not exist, or any decrease in coverage. RuleMutants.AssertDetects requires a mutant's failure to carry the verifier's OWN message marker, mirroring run-tlc.sh's three-state rule: "not green" is not evidence that the invariant was evaluated and violated. Mutant coverage lands as a ratchet from zero plus three deep exemplars (the differential oracle's assertion, LOG-07 order discrimination, the RB-01 index shortfall) rather than fifteen written to satisfy a gate, which would move the dishonesty from [VerifiesRule] to [RuleMutant]. The remaining eleven are reported every run and the count may only go up. LOG-06 retired from both cited verifiers: it constrains what the EMITTER puts on the wire, and both fixtures are "Pure — no engine, no recovery" and round-trip bytes they wrote themselves, so neither can observe an emitter defect. The rule now records NOT COVERED and why. Two bugs surfaced, both hidden behind [Ignore] reasons that misdescribed them: #709 DirtyBitmap.Set loses a dirty bit (its Interlocked.Or targets the array the thread captured, which Grow/Snapshot may already have swapped out), and #708 concurrent Transient spawn hands out colliding slots, 3/3 in isolation. Also filed #706 and #707 for suppressions with no live issue. ChaosStressTests re-confirmed on main: one deterministic failure (#696) and one hang (#695). Suite green at 4324 passed / 0 failed under the gate filter; 56 script self-tests; audit exits clean with the mutant debt ratcheted. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MuoGAeaJVpnqz6qcoxQ8Df
…nstead of one hand-picked cell The suite had 4,015 tests and 309 parameterisation points: ~93% of tests were a single hand-picked scenario, and the axes were never crossed. #702 measured the consequence — the suite caught ~6 of 74 recent bugs. This makes the axes first-class and lets coverage grow with CI-hours. EngineAxes.Cell goes from 4 axes to 7, adding Discipline, Collection and Spatial. Pairwise stays at 23 cases because the count is bounded by the product of the two largest axes, not all of them; triplewise is 81 over 1,161 valid cells. IsValid() now encodes the impossible combinations with the evidence for each rather than skipping them silently — and it no longer excludes PureTransient+Index, which is #655's explicit subject. PairwiseWith<T> folds a fixture-local axis (a query terminal) into the same greedy pass instead of multiplying every other fixture's cell count. AxisArchetypes is the reusable half: 13 component structs and 28 archetype compositions behind Register/Spawn/Update/AssertRoundTrip/Dispatch, absorbing per-mode components each fixture used to declare privately. StorageMode is a compile-time attribute, so a storage-shape cell needs a distinct CLR type — that is why no fixture was parameterised over it, and why the kit had to exist before any conversion could. Five families converted, each narrowing its axes explicitly and stating in its docstring which axes it does not cover and why: storage core, index, query terminal, spatial, collection. An unsupported cell throws naming the cell, because a silently skipped cell counts as coverage in the test count and is not. Three P0s found by cells nobody had written: - #710 crash + unique index + SingleVersion leaves the database permanently unopenable - #711 mutate-then-destroy on an archetype mixing publication timings corrupts the secondary index, silently for AllowMultiple - #297 reopened — the OLC B+Tree loses a present key on a concurrent read, ~0.8% of Add iterations, 3/3 in isolation. It was closed in May on "50 standalone runs passed" with its harness then untiered. Part 2 replaces literal seeds with TestSeed: one run seed derives every per-test seed through FNV-1a, so a single printed number reproduces the run. string.GetHashCode() is randomised per process and cannot be used for this — five fixtures were already naming their crash-artefact database from it, so a crash artefact could not be found twice by the same name. The gate stays deterministic with TYPHON_TEST_SEED unset; the nightly runs three random seeds. scripts/axis-mutation-probe.py is the standing check that the array still explores: it plants a fault in src/, requires the named matrix cell to fail AND the pre-existing hand-written tests to stay green, and always reverts and rebuilds. Requiring the hand-written tests to pass is what makes it evidence that the array caught it rather than the fixture. It refuses to run on a dirty src/ tree. Suite 4978 passed / 0 failed / 15 skipped. Budget +654 gate cases against a 1,200 ceiling and ~+20s against +90s. Net test LOC is +3,834 rather than neutral — about 2,300 of that is one-time scaffolding, and the "this should shrink the source" expectation only holds for the conversion half. One mutation ships, not three. A qualifying mutation must be caught by the array and missed by every hand-written fixture, which makes finding one the same search as finding a real defect in that region — a search that already returned #710, #711 and #297. Reasoning recorded in test-strategy.md. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MuoGAeaJVpnqz6qcoxQ8Df
…e new axes reached The recovery harness could not express its two worst bugs, and the reason was the interface signature rather than a shortage of tests. IRecoveryWorkload had exactly one execution member; every workload built its entities in a List<EntityId> local inside Execute, so no workload could accept pre-existing ones and the two windows of RecoverWithMidCheckpoint always touched disjoint entity sets. RecoveryOracle had zero Spawn</OpenMut/Destroy call sites, so nothing wrote after recovery at all. Adding a thousand workloads through that interface would have produced neither bug. Both interface changes reproduced their bug on the first run. Resume(uow, shadow) is a post-recovery write phase, default-implemented so the seven existing workloads compile unchanged. That is only safe because the harness requires the shadow to have GROWN across the call — a silently no-op Resume would report post-recovery-write coverage it never performed, which is the trap #704 hit when a widened axis produced case names a fixture body never exercised. It re-issued Entity(Key=1, Arch=1), byte-for-byte the id in #697's transcript. #697 is fixed. The rebuild paths already raise NextEntityKey, but they run over the checkpointed base; entities inserted afterwards by RecoveryApplier during WAL replay carry higher keys and bumped nothing, so with no checkpoint the counter stayed 0 while recovery inserted keys 1..N. RecoveryApplier now tracks the max entity key per archetype and RecoveryDriver raises the watermark beside where it already raises NextFreeTSN. One trap for the next person: _archetypeStates is indexed by the per-process catalog id while EntityId.ArchetypeId carries the per-DB routing id, and indexing the wrong array is a silent no-op — the fix looked applied and changed nothing for a round. RecordSpawn had to stop overwriting on a duplicate id first. It was an indexer assignment documented as "idempotent for re-spawn-of-same-id (never happens — keys are unique)", and keys being unique is exactly the premise #697 violates, so the shadow silently dropped the first-generation entity. An oracle that has forgotten an entity cannot report it lost; the harness built to catch #697 would have false-greened on it. CrossFrontierUpdateWorkload takes the previous phase's alive-set and spawns nothing, so the two WAL windows finally touch the same entities. All eight recovered with their spawn values instead of the window's. #569 is fixed, Option A. ApplySlotToExisting on the cluster and flat paths, routed from RecoveryDriver's !agg.HasSpawn branch — the aggregation always produced exactly the right value, so the only thing missing was somewhere to put it. Each home goes through the same primitive the live write path uses: AddCompRev appends to the existing chain for Versioned, SingleVersion content is overwritten in place, a cluster entity's SoA HEAD is written at the slot its record already names. Appending rather than re-rooting matters, because Phase-4 scrub collapses each chain to its highest-TSN element and frees the rest, where a fresh root would orphan the old chain's chunks. Two corrections: the design doc called this "~20 lines" and it is ~150 across two storage homes, and the defect is not SingleVersion-specific despite #569's title — the branch keys on "no Spawn in this window", so flat Versioned archetypes lost their updates identically. The crash sweep was exploring about 15% of what it claimed. A checkpoint cycle performs 87-145 page writes; the boundary set reached 13, and #704's seeded extras drew from [1,17), so no seed could ever reach past write 16 and the entire tail of every cycle had never been crashed at. ChaosPageIO.HasCrashed existed and nothing asserted it, while this file's own comment described a boundary past the write count — which injects no crash and tests a clean checkpoint under a crash-at-N name — as robustness. Every boundary now proves a crash fired, the seeded range spans the cycle, and an exhaustive nightly cell sweeps 1..79 per workload. 395/395 green: the checkpoint-abort path is sound across the whole cycle, not just its first eight writes. The payload axes land with an oracle that dereferences them. Diff compared ReadRaw(slot), which for a ComponentCollection field is a buffer DESCRIPTOR — wrong in both directions, and the recorded #389 symptom is a collection going 5 elements to 0 while Diff returned 0 mismatches. The shadow now captures element sequences and refuses to capture a collection-bearing archetype without a projector, because leaving that optional puts the false-green one forgotten argument away on the very test written to catch it. The refusal is derived from schema metadata, not trusted to the caller. T5 runs a sequential reference model against the engine under CsCheck.SampleParallel on DurabilityMode.Deferred with parallel transactions on one shared UnitOfWork — the production default the suite avoids 4:1, and the only mode where the ChangeSet is shared. The model is a multiset of live values rather than a map keyed by EntityId: a model that had to predict entity ids would be re-implementing the allocator and would then agree with the engine for the same reason the engine agrees with itself. The DEBUG concurrent-mutation guard on ChangeSet is deliberately not the owner-thread assert #705 asks for. A ChangeSet is shared across a UoW's transactions by design, so it has no owner thread and that assert would fire on correct code; the guard tracks residency instead, so sequential hand-off stays legal and only overlap is rejected. It fires on the first concurrent workload, which is #400 reproducing in milliseconds — and it reddens nothing else in 5,003 tests. That is a sharper measure of the selection bias than the 188:48 ratio: no existing test has ever put two threads on one shared Deferred UnitOfWork at all. Two new defects, both found by the new axes and both filed rather than fixed. #712 (P0): a crash-recovered engine restarts its WAL LSN sequence at 1, below the frontier the recovery it just performed replayed, so every commit it then acknowledges collides with an already-used LSN and the next recovery discards it — frontier 16, LastAppendedLsn 9, DurableLsn 16, next open scans 8 and applies 0, all 12 entities lost. LOG-08's failure mode on the crash path; the clean-reopen half is green because its test shuts session 1 down cleanly. #713: Commit discipline plus spawn-and-write in one transaction NREs at commit, while TickFence with the identical sequence passes. RB-06 pins the general rule the two fixes are instances of — recovery restores every allocation watermark, not only the TSN — with the audit #697 asked for. Two of its five rows are open: the WAL LSN allocator is #712 and the VSBS free-list is #389. scripts/linearizability-probe.py has a three-way verdict, and the third status is the point. It requires a green baseline AND a red mutated build; today the baseline is red because the model rejects the real #400, so it reports BASELINE_RED rather than a pass or a probe failure. A probe that checked only the mutated half would report success on a model that fails on everything. Suite 5003 passed / 0 failed / 15 skipped, +25 gate cases and ~0s against a 400-case / +60s budget; 395 nightly. Seven cases quarantined against #712, #389 and #400 with their evidence. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MuoGAeaJVpnqz6qcoxQ8Df
…le that hid it The first gate run of this epic failed on its own shard-integrity check: WorkbenchFixtureGenerator is named by shards.json and ran zero tests. All 5,017 tests passed; the plan check is what said FAIL, which is exactly the false green #703 built it to catch — a shard that budgets a slot for a class that runs nothing. #703 re-tagged that fixture correctly. It is a developer tool that generates base-tests.typhon for the Workbench and asserts nothing about the engine, so its single [Test] became [Explicit] + [Category("Manual")] — the right marker for "CI genuinely cannot run it". What it did not do was drop the class from shards.json, so the name outlived the tests behind it. The more interesting half is why the static lint said clean. SHARD_ZERO_TESTS looked at CLASS-level markers only: a class-level [Ignore], or a class-level tier the gate excludes. WorkbenchFixtureGenerator has neither — nothing is suppressed at class level, only on its method — so the lint saw a healthy fixture while shard.py's run-time check saw an empty one. Checking only the class level encodes an assumption the suite does not honour, that a fixture is suppressed wholesale or not at all, and the cost of the assumption is that the failure surfaces on the expensive gate runner after a full suite run instead of in three seconds locally. check_shards now also flags a fixture whose EVERY [Test] is individually excluded, by [Explicit], an excluded tier, or [Ignore]. It reports only when the class-level checks would not, so a wholesale-excluded fixture still yields one violation rather than two, and it stays silent for a class with no [Test] members at all rather than guessing about helpers. The first attempt at this gated the method-level scan on "the class has no class-level attribute group", which fired on nothing whatsoever: [TestFixture] is itself a class-level attribute, so essentially every fixture has one. Five self-tests, and the complement matters as much as the positive: one runnable test among excluded ones must clear the class, or the check becomes noise and the first response to noise is to delete the check. The complement's own fixture needed a tier on its [Explicit] member — without one it trips EXPLICIT_NO_TIER, and a fixture that violates two rules cannot demonstrate which one the test is about. Lint clean, 82 script self-tests pass, suite 5003 passed / 0 failed / 15 skipped. Shard 0 remains a negative-filter catch-all, so the class is still reachable by the gate if it ever becomes runnable — nothing escapes by being unnamed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MuoGAeaJVpnqz6qcoxQ8Df
…decoration
The self-test I added for the new method-level shard check passed locally and failed on the runner, and the reason had nothing to do with the behaviour under test.
It asserted out.count("Doubled is named by a CI shard") == 1. The lint reported exactly one violation in both environments — but under GitHub Actions the reporter prints each violation TWICE, once in the human listing and once as a ::error:: annotation, gated on the GITHUB_ACTIONS env var. So the count was 1 locally and 2 on the runner while the violation count was 1 throughout.
A test that asserts on rendered output including CI-only decoration is green on the author's machine and red on the runner for a reason the author cannot see, which is the environment-sensitivity this epic exists to remove, written while removing it.
It now asserts on the violation COUNT in the summary line and on the ABSENCE of the method-level message, both of which are independent of how many times the reporter chooses to print a thing. Verified by running the whole self-test suite with GITHUB_ACTIONS unset and set: 82 pass both ways, where the old assertion goes 1 -> 2 across the same two runs.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MuoGAeaJVpnqz6qcoxQ8Df
… whole test tiers Four of the six red checks on this PR were one cause. bench/aws/nightly.runsettings, added by #703, contains a comment explaining the hang guard — and it spells the flag with its two leading dashes. An XML comment may not contain a double hyphen, so the file is not well-formed, dotnet test rejects the settings outright, and the run selects ZERO tests. Both the seeded cells and the suppressed job pass --settings bench/aws/nightly.runsettings, so both have been running nothing at all since #703 while looking fully configured. The only thing that noticed was #703's own "the tier must select tests" assertion, which reported the symptom as `Category=Seeded selected ZERO tests` — accurate about the outcome, misleading about the cause, since the filter was never the problem. The prose describing the guard against silent nightly failure is what caused one. The comment now spells it `blame-hang`, and says why in place — a future editor writing the flag out in full would reintroduce this exactly. scripts/check-runsettings.py is the standing check. It parses every .runsettings in the repo, skipping bin/obj, and it diagnoses the double-hyphen case SPECIFICALLY rather than inferring it: expat reports a bare "not well-formed (invalid token)" with a column and says nothing about the cause, so the check scans comment bodies itself and names the offending line. A hint that is guessed at would be worse than none. Finding zero files is a failure rather than a pass, because a scan that matches nothing is misconfigured and reporting "clean" there is the false green the check exists to remove. Wired into the merge gate's invariants job, next to the suppression lint. It belongs there because it sits one layer BELOW that lint: the suppression checks reason about which tests are SELECTED, and a settings file that was never parsed means nothing is selected, for a reason no test-level check can see. Six self-tests, including the exact defect that shipped, an unclosed tag, bin/obj being skipped, and the misconfigured-scan case. 88 script self-tests pass, with GITHUB_ACTIONS both set and unset. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MuoGAeaJVpnqz6qcoxQ8Df
…cs repo's main rule-coverage and tla both check out Typhon-Claude at ref: main. A change that adds a RULE and the test verifying it spans both repos, and the two halves travel on branches of the same name — so the gate was comparing this PR's code against rules that do not contain its changes. #705 hit it head-on: RB-06 and its [VerifiesRule] test, reported as "names a rule that does not exist", plus the CX-05 and SL-07 duplicates that #703's docs commit already removed on the branch. The consequence is worse than one red check. It makes a cross-repo pair un-mergeable in either order: the code PR stays red until the docs PR merges, and the docs PR has no gate of its own to show it is safe to merge first. The only way through was to merge one on faith. Both jobs now prefer a same-named branch in the docs repo when one exists, and fall back to main when it does not. The fallback ANNOUNCES which ref it used — "rules: typhon-claude branch 'x' @ sha" or "rules: typhon-claude main @ sha". A silent fallback would make a green run ambiguous about what it actually audited, which is the same defect one level up: a check whose result you cannot attribute. tla gets the identical treatment though it is currently green. It has the same pin and the same failure mode — model-checking an old spec against new code — and it has not bitten only because no PR has yet changed a spec and its implementation together. Fixing one and leaving the other would leave a trap that fires on the first PR that does. Verified by running the audit against this branch's rules directly, which is what CI will now do: 0 blocking findings, and the 12 that remain are the pre-existing non-blocking VERIFIER_WITHOUT_MUTANT backlog the ratchet already tracks. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MuoGAeaJVpnqz6qcoxQ8Df
This was referenced Aug 8, 2026
This was referenced Aug 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #703, closes #704, closes #705. Epic #702.
74 bugs from the last period were classified by how they were actually found. The 4,015-test suite found ~6 — fewer than 1 in 10. It was a regression lock installed after something else found the bug, not a detector.
Three commits, in the order they had to happen: stop the suite lying, make it explore, then make the unreachable classes expressible.
What landed
#703 — green means green (
286ae846)[Ignore]meant five different things, so nothing could lint it and nothing revisited it. One meaning each now, enforced byscripts/lint-test-suppressions.pyin the gate.The cost of the old ambiguity, measured:
ChaosStressTestswas[Ignore("Too long…")]when it in fact livelocked (#695), and[Ignore]is unconditional in NUnit — no--filtercould reach it — whilebench/aws/shards.jsonstill named the fixture. CI allocated a shard slot, ran zero tests, and reported green. A shard resolving to 0 tests for a class it names now fails.Also: the Nightly tier, the rule-coverage audit + ratchet, and
[RuleMutant]— a verifier that has never rejected anything is not evidence, so each[VerifiesRule]gets a companion that must make it fail.Found #708 (concurrent Transient spawn hands out colliding slots) and #709 (
DirtyBitmap.Setloses a dirty bit), both hidden behind[Ignore]reasons that misdescribed them.#704 — explore the matrix (
cfa4c766)93 % of tests were one hand-picked scenario; amplification ≈ 1.08 scenarios per authored test.
EngineAxeswidened 4 → 7 axes;AxisArchetypesis the shape kit (13 components × 28 compositions) that made a storage-mode axis expressible at all —StorageModeis a compile-time attribute, so a cell needs a distinct CLR type, which is why no fixture had ever been parameterised over it.Five fixture families converted.
TestSeedmakes seeds replayable from one printed number.Found #710 (crash + unique index + SingleVersion → database permanently unopenable), #711 (silent secondary-index corruption), and reopened #297 — closed in May on "50 standalone runs passed", with its harness then
[Explicit]and untiered, so nothing re-checked it for five months.#705 — detector harnesses (
15920222)The recovery harness could not express its two worst bugs, and the reason was the interface signature:
IRecoveryWorkloadhad one execution member, every workload built its entities in a local insideExecute, andRecoveryOraclehad zero write call sites. Adding a thousand workloads would have produced neither bug.Both interface changes reproduced their bug on the first run, and both bugs are fixed here:
ApplySlotToExisting, cluster + flat. Every entity that existed at the last checkpoint was losing every value update in the window — for a steady-state workload, effectively all of them. The ≤1-tick promise in ADR-057 was really the 30 s checkpoint interval.Plus the T5 model (
CsCheck.SampleParallelon the production default) and a[Conditional("DEBUG")]concurrent-mutation guard onChangeSet.Found #712 (P0 — a crash-recovered engine restarts WAL LSNs at 1 and discards every commit it then acknowledges) and #713.
Numbers
Three measurements worth the reviewer's attention
The crash sweep was exploring ~15 % of what it claimed. A checkpoint cycle performs 87–145 page writes. The boundary set reached 13, and the seeded extras drew from
[1,17)— so no seed could ever reach past write 16, and the tail of every cycle had never been crashed at.ChaosPageIO.HasCrashedexisted and nothing asserted it, while the file's own comment described a boundary past the write count — which injects no crash and tests a clean checkpoint under a crash-at-N name — as robustness. Now: every boundary proves a crash fired, the range spans the cycle, and the exhaustive nightly is 395/395 green.The
ChangeSetguard reddens nothing in 5,003 tests. §3.2 measured the selection bias as a 188:48 preference forImmediate(the one mode where each transaction owns itsChangeSet, so the one mode that cannot exhibit #400). This is stronger: no existing test has ever put two threads on one sharedDeferredUnitOfWork at all. Not under-tested — untouched.An oracle that has forgotten an entity cannot report it lost.
RecordSpawnwas an overwriting assignment documented as "idempotent for re-spawn-of-same-id (never happens — keys are unique)". Keys being unique is exactly the premise #697 violates, so the shadow silently dropped the first-generation entity. The harness built to catch #697 would have false-greened on it.Deliberate deviations
ChangeSetguard is residency, not ownership. F3 — Detector harnesses: make unreachable bug classes expressible #705 asks for an owner-thread assert; a ChangeSet is shared across a UoW's transactions by design, so it has no owner thread and that assert would fire on correct code. Sequential hand-off stays legal; only overlap is rejected. Both directions unit-tested.Quarantined, with evidence
12 cases across #712 (write-after-recovery), #389 (collections recover empty behind an intact descriptor), #400 (the model on the default config), #710, #711. Every one carries a
QUARANTINE.mdrow and an open issue;lint-test-suppressions.pyis clean.Note on suite health
~1 failure per 3 runs, a different test each time. I stashed the branch and ran the baseline twice — it flakes identically (
Stress_MoveCrossLeaf,SlotReuseUnderCachePressure…,ParallelSpawn_SameArchetype_AllEntitiesUnique). Pre-existing, not from this branch. The last of those looks like #708 escaping its quarantine and deserves its own look.Companion
Documentation and rules land in
log2n-io/typhon-claude, branchepic/702-defect-detector—test-strategy.md(T1/T2/T3/T5/T6 marked landed with measured yield) andrules/durability.md(new RB-06: recovery restores every allocation watermark, with the audit #697 asked for; two of its five rows are open, as #712 and #389).🤖 Generated with Claude Code
https://claude.ai/code/session_01MuoGAeaJVpnqz6qcoxQ8Df