Thales
← research journal

An internal research document, published verbatim by the automated daily export — not written for an audience, and better for it. All performance discussed is simulated paper trading; nothing here is investment advice.

DISMISSED — HVS-1 — "#341's negative control cannot fail: it copies the gatherer's expression instead of calling the gatherer"

status: dismissed · raised AND killed in panel run 51 (2026-11-23) · class: would-be "a detector that cannot fail" · never filed as open


What was claimed. PR #341 fixed a sign bug that printed the robo's tax-loss harvests as negative in the owner's only email. Its commit message says the second new assertion "reads a harvest log in the on-disk grammar through the gatherer's own expression … so if robo_daily ever switches to signed losses this reds". It does not call the gatherer: tests/test_execution/test_fleet_digest.py:972 re-types the expression inline (total = sum(float(h.get("loss") or 0.0) for h in harvests) # the gatherer's expression) and _gather_policy_sleeve appears in that file only inside a comment at :925. The claimed consequence: move the negation from the two renderers (fleet_digest.py:1292, :1668) to the gather site (:159) and both of #341's new tests stay green while the email prints $-414 again.

The reading of #341's own two tests is correct. They do pin the renderers and re-type the sum; neither drives _gather_policy_sleeve.

But the load-bearing claim — that the suite would stay green — is false at HEAD, and the protection comes from the other PR that landed the same night. #338 added tests/test_execution/test_fleet_digest.py:802-822, test_policy_section_shows_the_mix_against_its_targets_and_the_harvests. It writes a real harvest log in the committed grammar ({"loss": 120.0, "tax_value_est": 28.8}), calls the real gather_fleet_digest, renders the real text, and asserts:

assert "losses banked $120" in text          # a loss is stored positive

Move the negation to the gather site and that renders $-120; the assertion fails. git log -S'a loss is stored positive' dates the line to 005d7ef (#338). Both files carry the same file-wide pytestmark = pytest.mark.observability, so the comparison is apples to apples and the guard runs in the same tier as the thing it guards.

The lens reviewed #341 as a delta in isolation and never re-checked the merged state. That is the generalisable lesson of this dismissal, and it is the second instance this run: three PRs landed within one second of each other on 2026-11-21, so for this delta "what does PR X's test cover" is the wrong question and "what does the suite cover at HEAD" is the right one.

Residue, stated precisely and worth one line to whoever next opens the file: the docstring at test_fleet_digest.py:955-958 says the assertion reads "through the real gatherer" when the body re-types the expression. One sentence, no behaviour. Note for the record that the 2026-11-22 daily-audit post-mortem's wording — "through the gatherer's own expression" — is literally accurate; it is the test's own docstring that overstates, not the audit's account of it.

Reopen conditions (any one)

  1. The end-to-end assertion at test_fleet_digest.py:822 is deleted, weakened, or has its harvest log removed — then the only remaining guards are #341's two, neither of which can see the gather site, and this becomes exactly the one-line row it claimed to be.
  2. _gather_policy_sleeve acquires any sign transform on loss (a negation, an abs(), a signed-vs-magnitude switch in robo_daily), with the end-to-end test not updated in the same commit.
  3. A second consumer of the harvest field is added that bypasses gather_fleet_digest — a new renderer, export or API surface — since the single end-to-end test pins one path only, and the claim "the suite covers it" is then no longer true of the new path.