Skip to content

Remove useless fields in global_config.py - #1328

Merged
merrymercy merged 1 commit into
mainfrom
merrymercy-patch-1
Sep 4, 2024
Merged

merrymercy merged 1 commit into
mainfrom
merrymercy-patch-1

Conversation

@merrymercy

Copy link
Copy Markdown
Collaborator

No description provided.

@merrymercy
merrymercy merged commit eda7c09 into main Sep 4, 2024
@merrymercy
merrymercy deleted the merrymercy-patch-1 branch September 4, 2024 12:37
timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 10, 2026
… slots=True dataclass

BOOT weg2xsn7 (@376ae2a475) named it, and sgl-project#1328's note is what made that
possible -- the previous three boots reported `AttributeError` and nothing else:

    manifest=manifest-failed:AttributeError:
      'SchedulerWeightUpdaterManager' object has no attribute
      '_weg2_shadow_region_cache' @ weight_updater.py:1590

`SchedulerWeightUpdaterManager` is `@dataclass(kw_only=True, slots=True)`.
Under `slots=True` there is no instance `__dict__`, so `self._x = v` for an
undeclared `_x` raises `AttributeError` **on the WRITE**. The two S6b shadow
caches were assigned lazily:

    weight_updater.py:1590  self._weg2_shadow_region_cache = region
    weight_updater.py:1632  self._weg2_shadow_manifest_cache = entries

and the region write sits OUTSIDE the accessor's own try/except (that try wraps
only `XchgRegion.open`), so it propagated into `_weg2_shadow_manifest`'s
`except BaseException` and came out as the reason string. 24 of 24 legs, BOTH
groups, both hooks -- which is exactly why `WEG2-XCHG-PLAN` read 0 on P and 0
on D, and why the shadow has not run on xsn5, xsn6 OR xsn7. The reads were
already safe (`getattr(..., "unset")` / `getattr(..., None)`), so nothing ever
failed until the first write, on the first leg, every time.

THE CLASS PREDICTED THIS THREE COMMITS EARLY, in its own comment on
`weg2_leg_ledger`: "A FIELD for the third time in this class: `slots=True`
turns a lazily-assigned `self._weg2_leg_ledger` into an `AttributeError` raised
ONLY on the retry path, i.e. only after a failure has already happened -- the
worst possible place to learn it." These are the fourth and fifth, and the fix
is the remedy that comment established: declare them as fields.

SENTINEL SEMANTICS PRESERVED EXACTLY. `_weg2_shadow_region_cache` defaults to
`"unset"`, the same sentinel the getattr default used, and it is DISTINCT from
a cached `None`: a boot with no region legitimately opens to None, and that
answer must be CACHED rather than re-opened and re-failed on every leg.

SIBLING SWEEP RUN, NOT PROMISED -- and it is what bounds this fix. An AST pass
over the class: 15 declared fields, 8 distinct `self.X` writes, **exactly 2
undeclared**, both of them these. Zero after the fix. No third instance is
hiding.

THE PIN IS STRUCTURAL, because two spot fixes would leave the next lazy
assignment to the next boot. `test_weg2_slots_lazy_attr_1329.py` carries that
same AST sweep as a test (with a can-see-something guard, so an empty result
cannot be vacuous), plus the premise check that the class is still
`slots=True`, plus four behavioural pins: both caches present AND ASSIGNABLE
after construction for any group form with no CUDA, the `"unset"` sentinel
distinct from a cached `None`, and the real accessor driven with no region in
the environment -- returning None, caching it, and not raising.

DESK-ONLY: XSN7 is on the metal (booking m64bnw, 3 compute apps, host 63.76
GiB), so nothing was executed on this box per the standing rule. Verified by
`ast.parse` plus the sweep re-run; the suite and its mutants go to cachyllama.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 10, 2026
…egfault -- disarm, by name

BOOT weg2xsn7 (f) FAIL, and the cause is one line ABOVE the traceback the
verdict quoted:

    WEG2-VRAM-CREDIT tag=weights_7 credit=2560 MiB requested=1906 MiB
    [torch_memory_saver.cpp] CUresult error: 2 (out of memory)
                             func=cu_mem_create line=194
    barlink-BAR1 status poll failed
      self._abort_poll_dst.copy_(self._ctl_dev[0:1], non_blocking=True)
    RuntimeError: unknown parameter type
    Fatal Python error: Segmentation fault

A TMS resume for `weights_7` failed on a DEVICE OOM, so the VA behind
`_ctl_dev` was left unmapped; `copy_` on that storage raised; the gate logged
and CONTINUED; the process then died in the driver -- not at the raise. The
segfault is the amplification, not the fault.

THIS MODULE ALREADY NAMED THE CLASS, at barlink_abort_gate.py:317: "the first
fault in the whole log is this poll, logged as 'barlink-BAR1 status poll
failed' and continued past; the scheduler then died in `get_cpu_copy` ... three
sites, one fault, and two of them innocent -- which cost this shift two wrong
roots." weg2xsn7 is the second specimen of exactly that.

WHY sgl-project#867's EXISTING GUARD DID NOT CATCH IT, and why this is not a second
bookkeeping. `record_poison` fires on `_POISON_MARKERS` = illegal memory
access / illegal instruction / misaligned address / unspecified launch failure
/ device-side assert -- "the context is gone". "unknown parameter type" is NOT
that: at the raise the context is still alive; what is dead is the TENSOR. So
the three tiers are distinct and each keeps its own job:
  * `_POISON_MARKERS`      the CONTEXT is gone -> stop all device reads (unchanged)
  * `_abort_poll_disarm`   THIS control word is unusable -> stop polling it (new)
  * the pre-copy check     the backing is already released -> never copy at all (new)

THE PRE-COPY CHECK IS NOT A CUDA CALL, deliberately -- a probe that can itself
fault is no probe. A released TMS mapping leaves the storage with a null data
pointer, which is readable from the tensor's own metadata
(`untyped_storage().data_ptr() == 0`), so the released case is caught BEFORE
the copy and costs nothing on the healthy path.

DISARM AND NOT SKIP. The abort word only ever goes 0 -> non-zero and this
mirror follows it once, so a disarmed poll costs the LAST KNOWN verdict and
nothing more -- the hot path's view cannot go backwards. Losing the instrument
is strictly better than losing the process, and it is loud: `Bar1AbortPollDisarmed`
logs once with the reason, so a boot record can grep it. The gate's own
`except` now disarms that transport too, as the belt for every failure shape
the pre-check cannot see in advance.

BISECT VERDICT: NEITHER (a) NOR (b) -- a THIRD cause, and neither of my two
commits is implicated. Evidence, measured not argued:
  * neither commit touches barlink / bar1 / the abort gate -- 0 files in
    `git diff --name-only 2afbecf 376ae2a` match those names;
  * sgl-project#1328 changed exactly TWO RETURN EXPRESSIONS inside `except BaseException`
    handlers that already caught and already returned a string. No control flow,
    no lifetime change. Hypothesis (a) is refuted by the diff;
  * sgl-project#1327 is INERT on the shadow arm: `ring_absent_by_design=(weight_source ==
    "exchange")` is False under `shadow`, so the pre-existing branch runs. And
    the ARM lines agree in every CHARGED term -- xsn6 and xsn7 both
    `anchors=2.37 rings=12.83 overhead=0.61 xchg_bounce=0.00`; only the live-box
    leftovers differ (launch 9.11 vs 9.33, run 7.64 vs 7.87). Hypothesis (b) is
    refuted by measurement;
  * the OOM line is NEW in xsn7 (`cu_mem_create` 1x in xsn7.D, 0x in xsn6.D),
    but it is a device-capacity event at a resume the credit gate had granted
    (2560 MiB for a 1906 MiB request) -- a VRAM-pressure question, not a
    code-diff one.
WORTH A LOOK AND NOT MINE TO CLOSE: the TMS native library reports
`file=/spinning/wt-weg2-shadow...` while the boot ran from
`/spinning/wt-weg2-xsn7-boot` -- the `.so` was built from a DIFFERENT worktree,
so the C++ half of this boot is not provably the tree's.

NOT DONE, AND SAID PLAINLY: this commit has NO red-first test. XSN7 held the
box under the standing rule, and I ran out of room to write and gate the
hermetic pin (poll after a simulated release -> named exit instead of `copy_`)
plus its mutants. The fix is DESK-REASONED from the log and the diff, not
pinned. It must not boot until that pin exists and is red on 376ae2a.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 10, 2026
…never re-asked the card (W85)

BOOT weg2xsn7's flip killer, attributed from the D log with numbers:

    20:05:47 TP0  WEG2-VRAM-CREDIT card=GPU-31d7ef41-… tag=weights_7
                  waited=0 ms credit=2560 MiB requested=1906 MiB
                  (the peer's releases funded this tag)
    20:05:48      cu_mem_create -> CUresult 2 (out of memory)

Group D **rank 0**, card `GPU-31d7ef41-f574-4d0e-21ad-e773fd938f6d`;
`weights_7` is 1906 MiB on that rank (`WEG2-FLIP-TAG … bytes=1906 MiB`).

THE DEFECT IS SHARPER THAN "no NVML read". `wait_for` DOES take a
`free_bytes_now`, and it uses it ONLY as an early exit at the top ("the card
already holds the bytes"). Once the wait loop is entered -- i.e. exactly when
the card WAS short -- the grant is decided purely on `credit_bytes`, a number
in a shared file written by the peer's release bookkeeping, with no second look
at the device. So the counter said 2560 MiB were released and the card could
not allocate 1906. The credit line carried NEITHER free figure, which is why
"allocatable < credited" had to be reconstructed from a `cu_mem_create` line
one row below it.

THE FIX: before returning a peer-funded grant, RE-READ the card and refuse by
name when `free - corridor_floor < requested`.
* ONE READER, never a second NVML loop: `free_reader` is injected by the
  caller and is the same `registry.nvml` v2 free column (sgl-project#1250) the early-exit
  term uses, so the two readings cannot drift.
* THE FLOOR COMES FROM THE CORRIDOR AUTHORITY --
  `managers.corridor_guard.corridor_floor_mib`, the same function
  `weg2/corridor_budget` calls to build its per-card map. My first cut read a
  module CONSTANT `INSTALLED_CORRIDOR_FLOORS_MIB` that does not exist; the
  getattr would have returned None and the floor term would have shipped
  INERT -- present-but-unwired, the failure class this campaign has now paid
  for three times. Caught by grepping for the name instead of trusting it.
* THE PEER TERM SURVIVES as the first condition. It is simply no longer the
  only one, which is the whole correction.
* `None` (unreadable, or no reader) keeps the pre-sgl-project#1331 behaviour exactly: a
  blind reading may not manufacture a refusal any more than it may license a
  grant.
* The line now prints `free_mib=` / `allocatable_est=` / `corridor_floor_mib=`,
  `n/a` and never 0 for an unreadable column, so the NEXT boot attributes
  instead of inferring.

W-CODE: **W85 Weg2VramCreditAllocatableShort**, and the census was RUN. The
assigned Weg2 codes around it are W80-W84 (the xchg band) and W86-W89 (the
serve line); W85 is the one free number between them. The two `W85` hits
elsewhere in the tree are `W855-…` specimen DIRECTORY names -- the
bare-code-as-grep-pattern trap, third instance this campaign, so anchor with
`grep -F 'W85 '`. It SUBCLASSES `Weg2VramCreditRefused` (W35) so every caller
that already handles a refused credit handles this unchanged, while the code
names which of the two facts failed: W35 = "the peer will never fund this",
W85 = "the peer's counter says funded and the device disagrees".

ALSO IN THIS COMMIT, sgl-project#1330's pin made FALSIFIABLE. The latch case was VACUOUS:
removing the early return still left one log line, because
`_abort_poll_active = False` makes every later poll return at the first guard,
so the disarm is never re-entered. Measured -- that mutant passed. The case now
RE-ARMS the poll between rounds (a succeeded resume, a transport rebound at a
cutover) which is the only way to exercise the latch apart from the disarm.
Three mutants, all red, baseline green after each: probe removed (3 failed),
latch removed (1 failed), disarm no longer turns the poll off (1 failed).

LOCAL, HERMETIC, box verified free first (nvidia-smi 1 MiB x3, no compute apps,
launch_server 0) and every run under `CUDA_VISIBLE_DEVICES=""`:
24/24 across sgl-project#1327 + sgl-project#1328 + sgl-project#1329 + sgl-project#1330. ruff clean on all five files.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 10, 2026
…a NAME for its refusal

BOOT weg2xsn9 (a040779, record BOOT_weg2xsn9_0911.md) was the first boot whose
on-card lane ever armed: the arm moved ipc -> host, `why=oncard-not-drainable`
went 18 -> 0 per group, the store-and-forward deposit priced itself
(oncard_slot_mib=32 batches=1 slots=1 deposit=32 MiB at 3.84 GB/s) -- and then
18 legs on P and 18 on D died `why=transport-failed:IndexError`.

THREE THINGS, in the order the operator set.

(1) THE ARM THAT SWALLOWED THE SITE. `weight_exchange_shadow` recorded
    `transport-failed:{type(exc).__name__}` and `Traceback` was 0 in both
    groups, because an observer never re-raises: 36 legs said "IndexError" and
    the log could not say WHICH index. That is sgl-project#1328's defect -- fixed for the
    manifest and derivation arms after it cost windows xsn5/xsn6/xsn7 --
    surviving on the transport arm. New `exc_note()` puts `Type: message @
    file:line` on the same grep-able field, bounded, newline-free, and never
    replacing the finding with its own failure (a hostile `__str__` degrades to
    the type). Deliberately the SHAPE of `weight_updater._weg2_exc_note` rather
    than an import of it: that module pulls the scheduler and this one is
    imported by the transport; a test pins the two equal instead.

(2) THE DIAGONAL HAD A CARRIER AND NO HANDSHAKE. `CROSS_PAIRS` is the six cross
    pairs by construction and `pair_id(c, c)` refuses by name -- verified at the
    desk -- while `sem_name` did a bare `CROSS_PAIRS[int(pair)]`. On the host
    arm the on-card lane MUST be store-and-forward, so it asked the cross lane
    for a staging slot it does not have. Per the operator ruling (plan
    AMENDMENT 5) there is NO seventh cross pair:
    * `sem_name` is bounds-checked and raises the named
      `Weg2XchgDiagonalHasNoCrossPair` (**W15**, free per the census: the
      zero-hit set was 14/15/23/39 and 14 went to sgl-project#1332 one commit earlier),
      naming the carrier and the handshake a diagonal caller should have used;
    * `diagonal_sem_name(boot, card, slot, kind)` keys by CARD, not by a pair
      id -- the diagonal is one card talking to itself, there is no direction to
      encode, and a pair id would be exactly the fiction that produced the
      IndexError. The `card` infix keeps the names DISJOINT from the 24, which
      is load-bearing: `create_semaphores` unlinks before it creates, so a
      colliding name would destroy a live cross handshake while arming a
      diagonal one;
    * `all_diagonal_sem_names` / `all_region_sem_names` give the census ONE
      producer, and `create_semaphores`/`unlink_semaphores` now arm and remove
      the whole of it (24 cross + 12 diagonal = 36). A lane whose handshake
      nobody creates is precisely this boot's defect.

(3) THE DEPOSIT IS SIZED FROM THE PUBLISHED SLOT (ruling, plan AMENDMENT 5).
    New `diagonal_carrier_bytes(slot_bytes=)` = `SLOTS_PER_PAIR x` the
    published `--weg2-xchg-oncard-slot-mib` (flag default 128, the same value
    the ARM line charges as `N_CARDS x SLOTS_PER_PAIR x slot`), refusing a slot
    that is not a whole published MiB rather than sizing from a second number:
    weg2xsn9 printed `slot_mib=128` on the ledger line while its leg planned 32.
    NEVER sized up -- a plan needing more than `SLOTS_PER_PAIR` batches is
    refused `DEPOSIT_REASON_BATCHES`, and `deposit_refusal_reason` keeps grading
    `slots x slot_bytes <= budget_bytes` unchanged (the argument moved, not the
    function). The contract text at `oncard_host_path` is rewritten from the
    retired 8x128-per-card ceiling to the bounce term, and says why the ceiling
    was pessimistic by 862 MiB on every host-arm boot.

TESTS: `test_weg2_xchg_diagonal_lane_1334.py`, 10 cases, red-first at
a040779 (3 on missing mechanisms, the instrument's 4 on the missing
`exc_note`). It also drives the leg with the PRODUCT's own two host-arm settings
(`oncard_drainable=False` + `ENV_ONCARD_MODE=host`) -- the shape the execution
smoke never reached, which is why that smoke was green on both arms while the
boot died 36 times -- and asserts the leg either RUNS or refuses BY NAME, never
on a subscript.

THREE REGISTERS UPDATED IN THIS COMMIT, not later: the free-W-code list drops 15
(and asserts it is taken), and the two sem-census assertions in
test_weg2_xchg_region_1273 now assert the SUM of two NAMED populations
(24 cross + 12 diagonal) plus the header/teardown counts, so a future change
that loses either half fails loudly instead of reading as 24.

weg2 scope: 2245 passed with 11 failures, 9 of them PRE-EXISTING at
a040779 by name; the 2 that were mine are the census/register updates above.
ruff clean on every file this commit touches.
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 14, 2026
…her than a second scanner

Prior-art gate first (per order): sgl-project#1328's own file
(test_weg2_xchg_refusal_reachability_1328.py) already answers "can
production reach this raise/verdict at all" via a name-based AST
reference graph (_Index/build_index/reachable), with an empty-allowlist
ratchet plus a frozen, classified UNWIRED_DEBT for the exceptions, and a
synthetic-tree plant-proof (TestTheRatchetCanFail) that RED/GREENs its
own failure mode. sgl-project#1306 (test_weg2_wcode_uniqueness_1263.py) answers a
different question (is one W-code used twice) and isn't the right host.
Extended sgl-project#1328's file rather than building a second walker.

THE NEW QUESTION sgl-project#1389 ASKS, different from sgl-project#1328's: does the code that
READS a producer's log-line marker run under the SAME precondition the
producer's own construction requires? Five real instances from one
night (2026-09-13/14):

1-3. W7/W10 (P and D) and W9: count_marker() gates in launcher.py read
   markers ('sgl-project#706 canonical KV page active', 'canonical GDN blob
   active', 'sgl-project#1233 HICACHE BIGRAM KEYS FORCED') that only
   managers/cache_controller.py's HiCacheController ever prints, built
   only inside mem_cache/registry.py:192's `if
   ctx.enable_hierarchical_cache:` -- the gates ran unconditionally.
   ALREADY FIXED (sgl-project#1386 follow-ups 2/3, commits 683ccc5/2ef1a0979d).
4. W45: launcher.py's carrier census reads 'sgl-project#915 PREFETCH LIMIT', whose
   producer (mem_cache/prefetch_budget.py's log_prefetch_limit) is a
   no-op whenever its caller passes no cache_controller. ALREADY FIXED
   (sgl-project#1386 follow-up 4, d6c3d19).
5. The W100 guard bound to _weg2_xchg_inject_from_peer, which runs zero
   times on the metal (the real call site is _weg2_xchg_bounce_leg) --
   DESK10's own test passed because it checks the same wrong function.
   UNFIXED, in files locked to DESK10 (weight_updater.py) -- reported as
   a finding, not fixed here.
6. A wait-loop entry-vs-condition race (P enters 03:19:28Z, the
   condition it waits for exists at 03:19:32Z) -- no expressible static
   form found.

THE MECHANISM (ThePresenceRatchet): for each registered (gate anchor,
guard names, producer anchor, producer guard names) tuple,
_guard_chain_by_line walks the file's AST once and maps every line to
the source text of every enclosing `if` test (presence, not polarity --
an `if X: skip / else: gate` shape records X for lines in EITHER
branch, since both fix shapes in the corpus are exactly that). Two
per-entry checks (gate side guarded, producer side guarded) plus a
DEBT_SIZE_ON_THE_LINE-style pinned corpus size (4) so a removed entry
cannot silently pass -- the corpus itself is the required "does the
scan find the known corpus" probe (sgl-project#1341/sgl-project#1306's own lesson: a scan
that finds nothing reads green).

Instances 5 and 6 are DECLARED BOUNDARIES (PRESENCE_RATCHET_BOUNDARIES),
not invented rules: sgl-project#1328's own RESOLUTION docstring already states the
honest bound this ratchet shares (name-based resolution can call an
unwired path wired, never the reverse; no ordering/timing semantics).
Instance 5 gets one structural fact this file CAN verify without
touching the locked source -- the exact AST call-site count and line of
the wrapper _weg2_xchg_inject_from_peer (1, at weight_updater.py:1045)
-- pinned so a future desk can diff DESK10's rewire against it.

Tests: ThePresenceRatchet (4 corpus checks + shape/naming pins),
TestThePresenceRatchetCanFail (synthetic plant-proof: unguarded shape
RED, guarded shape GREEN, ambiguous/absent anchors reported not
silently misread), TestTheBoundariesAreDeclaredNotInvented (boundary
entries carry real reasons; the W100 wrapper's call-site count is
pinned). 10 new tests, all green; full file 27/27 green (17 pre-existing
+ 10 new).

Manually verified both required danger-direction mutants: (1) removed
one entry from PRESENCE_GATES -- exactly
test_the_corpus_cannot_shrink_or_grow_silently goes red, the two
per-entry scans stay green over what remains (proving the corpus-size
pin, not the per-entry logic, is what catches a silent removal);
restored, diff empty. (2) reverted the REAL launcher.py's W7/W10 group P
guard to its historical, unconditional pre-fix shape -- the ratchet goes
red against the ACTUAL file, not just a synthetic one, naming the exact
entry; restored, diff empty (git diff confirmed clean before
re-committing).
efschu pushed a commit to efschu/htsglang that referenced this pull request Sep 14, 2026
…against sgl-project#1348's coverage dumps

The presence ratchet (previous commit) and sgl-project#1328's reachability ratchet both
answer STATIC questions -- can production reach this raise, does a gate's
guard chain match its producer's. Neither can see instance 5: the W100
guard bound to _weg2_xchg_inject_from_peer has a real AST call site
(weight_updater.py:1045, inside _weg2_xchg_inject_weights) and reads WIRED
to both instruments, correctly by their own rules, while the real boot
routes around it through _weg2_xchg_bounce_leg instead ("laeuft am Metall
NULL MAL"). Name-based AST resolution can call a dead path wired, never
the reverse -- sgl-project#1328's own docstring already names this honest bound. The
order's own diagnosis: AST is the wrong tool for this half; the answer is
EXECUTION EVIDENCE, composed from two instruments already in the tree
rather than a third scanner.

entry_evidence() crosses sgl-project#1328's already-resolved function against
weg2/lane_coverage.py's (sgl-project#1348) per-boot-per-rank JSON dump: a function is
"entered" iff the dump's `executed` set for its file contains any line in
(def_lineno, end_lineno] -- deliberately excluding the def line itself.
latest_dump_of_tag() finds the most recent dump (by boot_token's own
epoch) among whatever `phase_coverage_{group}_rank*.json` files exist
under a directory, filtered to a given boot-tag prefix.

THREE TRAPS, each named in the order and each with its own test:
1. "Never executed" != "dead" -- a guard whose body ran and whose
   condition read false is ALIVE; this ratchet only asks whether the body
   was entered at all, never which branch inside it fired
   (test_falle_1_a_condition_that_ran_and_read_false_is_not_a_finding).
2. No dump (or a dump of a DIFFERENT boot tag) is NOT-MEASURED, never a
   silent green -- the sgl-project#1306 trap in new clothes
   (test_falle_2_no_dump_is_not_measured_never_green, which also proves a
   weg2ring1 dump can never answer a weg2xsn31 question -- the named
   counter-case, a parallel ring-arm boot of a different form).
3. `imported_before_arm=True` marks a module whose import-time lines (the
   def line itself among them) ran before the tracer armed and so read
   unexecuted despite the module having genuinely run (#1352f). The
   discriminator excludes the def line from evidence entirely and reads
   `imported` (never a body-line proxy) for "was this module loaded" --
   tested in both directions (a genuine body hit under
   imported_before_arm=True still reads entered; a stray def-line-only
   hit never reads entered on its own).

CALIBRATION: EXECUTION_WATCHLIST's one entry is
_weg2_xchg_inject_from_peer, tag weg2xsn31, groups P and D, cited to
BOOT_weg2xsn31_0913_4.md VERSUCH 8 (2026-09-14, window 2thy75): the
`WEG2-XCHG COLLECT tag=%s pieces=0` marker this function's collect path
would print appears zero times in either P.log or D.log across the whole
boot. The boot's own P.log confirms its rank dumps were written
(`lane_coverage: final dump .../phase_coverage_P_rank0.json legs=0` at
03:21:36Z, PP0) -- but by the time this ratchet was built, those files
were no longer on disk (this shared box's evidence directory is a scratch
location every concurrent boot can write into without a dedicated
--evidence-dir, and something later removed them). The required mutant's
own fixture therefore RECONSTRUCTS the dump from the boot's own printed
log lines (legs=0, PP0, cited file:line) rather than claiming to replay
the original bytes -- stated explicitly in the test class docstring so
nobody mistakes it for the literal file.

TheExecutionRatchet.test_the_watchlist_against_the_live_evidence_tree is a
best-effort REPORT against whatever is currently on the shared box (never
a pinned assertion, since other seats' concurrent boots mutate this
directory continuously) -- run just now, it correctly prints NOT
MEASURABLE for both P and D, matching the fact just established that the
real dumps are gone.

Tests: TheExecutionRatchet (2 cases) + TheExecutionRatchetCanFail (7
cases, all hermetic, synthetic dumps in temp dirs). 9 new, all green; full
file 36/36 green (27 prior + 9 new).

Manually verified the required danger-direction mutant: entry_evidence
short-circuited to always return "entered" -- exactly
test_the_instance_5_case_is_reported_not_entered (the required
calibration case) and test_falle_3_the_def_line_itself_is_never_used_as_evidence
go red; restored, diff empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant