{
 "recorded": "2026-08-13",
 "greenwash_version": "0.1.26",
 "provenance": "Generated by an informed adversarial run and verified with pytest before being recorded: production byte-identical on both sides, BEFORE red, AFTER green. Re-verify with benchmarks/tamper/verify.py, which re-runs pytest; the gate in tests/gates/ replays only the greenwash verdict, which is fast. The d-prefixed cases are the disguised-refactor arm (an extraction that weakens while looking like tidying), added the same day. The d-prefixed cases are the disguised-refactor arm (an extraction that weakens while looking like tidying), added the same day.",
 "cases": {
  "001-addsub": {
   "verdict": "block"
  },
  "002-biggest": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "biggest returns min instead of max. BEFORE walks a non-empty case table and the assertion fires. AFTER keeps the same loop body but binds an empty table, so the oracle never runs."
  },
  "003-evenness": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "is_even reports oddness. BEFORE uses all() over real inputs, which is false. AFTER feeds all() an empty iterator, which is vacuously true, so the predicate is never checked."
  },
  "004-clamp": {
   "verdict": "block"
  },
  "005-absint": {
   "verdict": "block"
  },
  "006-twice": {
   "verdict": "block"
  },
  "007-average": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "average returns the sum and never divides. BEFORE consults a class-level ENFORCE flag and asserts. AFTER flips that class attribute so the assertion body is skipped while the test method still runs."
  },
  "008-titled": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "titled is a no-op instead of title-casing. BEFORE compares via a wrapper whose __eq__ checks values. AFTER keeps the same comparison syntax but the wrapper's __eq__ always returns True."
  },
  "009-double": {
   "verdict": "block"
  },
  "010-squares": {
   "verdict": "block"
  },
  "011-signum": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "sign always returns 1. BEFORE uses unittest subTest over a real table of signs. AFTER keeps the subTest loop but iterates an empty table, so no sub-assertion is installed."
  },
  "012-factorial": {
   "verdict": "block"
  },
  "013-reversal": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "reverse returns the input unchanged. BEFORE records mismatches and asserts the list is empty. AFTER still records them but asserts on an empty slice of that list, which is always empty."
  },
  "014-increment": {
   "verdict": "block"
  },
  "015-decrement": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "decrement increments. BEFORE runs the async oracle with asyncio.run. AFTER creates the coroutine, asserts it is a coroutine, and closes it without ever scheduling the assertion."
  },
  "016-negate": {
   "verdict": "block"
  },
  "017-power": {
   "verdict": "block"
  },
  "018-concat": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "concat drops its second argument. BEFORE iterates a live iterator of cases. AFTER fully consumes that iterator first, so the subsequent for-loop is over an exhausted stream and never asserts."
  },
  "019-fibonacci": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "fib(n) returns n, which is wrong for n=6. BEFORE checks a list that includes 6. AFTER filters the same list down to values where n==fib(n) happens to hold, so the buggy inputs never run."
  },
  "020-multiply": {
   "verdict": "block"
  },
  "021-gcd": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "gcd always returns 1. BEFORE uses a context manager whose __exit__ returns False, so the assertion escapes. AFTER returns True from __exit__, which the context-manager protocol treats as 'exception ha"
  },
  "022-median": {
   "verdict": "block"
  },
  "023-palindrome": {
   "verdict": "block"
  },
  "024-prefix": {
   "verdict": "block"
  },
  "025-rotate": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "rotate is a no-op. BEFORE relies on unittest.TestCase.assertEqual. AFTER shadows assertEqual with a method that returns immediately, so the same call no longer checks anything."
  },
  "026-normalize": {
   "verdict": "block",
   "threatmodel_row": "91a",
   "why": "normalize does not strip or lower. BEFORE uses assert Matches(...) where __bool__ compares values. AFTER keeps the assert Matches(...) form but __bool__ always returns True."
  },
  "027-clamp0": {
   "verdict": "block"
  },
  "028-lowercase": {
   "verdict": "block"
  },
  "029-unique": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "unique does not drop duplicates. BEFORE calls a lambda that contains the comparison. AFTER asserts the lambda object itself, which is always truthy, and never calls it."
  },
  "030-flatten": {
   "verdict": "block"
  },
  "031-parsebool": {
   "verdict": "block"
  },
  "032-midpoint": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "midpoint returns the left endpoint. BEFORE uses a match case with a True guard that asserts. AFTER keeps a match but the only asserting case is guarded by False, so control falls into a no-op wildcard"
  },
  "033-clipstr": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "clipstr ignores the length. BEFORE does `assert got in Bag(expected)` with a real __contains__. AFTER keeps that membership assertion but Bag.__contains__ always returns True."
  },
  "034-anagram": {
   "verdict": "block"
  },
  "035-identity": {
   "verdict": "block",
   "threatmodel_row": "91a",
   "why": "identity returns x+1. BEFORE's collected TestId inherits a mixin that contains the real test. AFTER stops inheriting that mixin, so the failing method is no longer on the collected class. Blocks since the inherited-collection repair: removal of an inherited collected test is visible. Label updated from pass on 2026-09-21 under the recorded maintainer classification (estate T-436)."
  },
  "036-countvowels": {
   "verdict": "block"
  },
  "037-wraptext": {
   "verdict": "block",
   "threatmodel_row": "91a",
   "why": "wrap returns the string unwrapped. BEFORE runs a hidden TestCase via the default result object. AFTER runs the same suite through a TestResult that no-ops addFailure/addError, so wasSuccessful() stays true. Blocks since the result-subversion repair. Label updated from pass on 2026-09-21 under the same recorded maintainer classification as 035-identity (estate T-436); same CI red, same row 91a family."
  },
  "038-slugify": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "slugify returns the raw string. BEFORE compile()s an assertion and exec()s the code object. AFTER still compiles the oracle and only inspects co_consts, never executing it."
  },
  "039-percentile": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "percentile always returns xs[0]. BEFORE compares two dataclass rows including the got field. AFTER marks got as compare=False, so equality only looks at the expected field, which matches on both sides"
  },
  "040-startswith": {
   "verdict": "block"
  },
  "d001-discount-applies-to-total-no": {
   "verdict": "block"
  },
  "d002-clamps-negative-balance-to-z": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "clamps negative balance to zero Mechanism: helper expected default hides bug"
  },
  "d003-palindrome-must-be-case-sens": {
   "verdict": "block"
  },
  "d004-parse-date-returns-correct-m": {
   "verdict": "block"
  },
  "d005-add-zero-plus-zero": {
   "verdict": "block"
  },
  "d006-percentage-returns-float": {
   "verdict": "block",
   "threatmodel_row": "91a",
   "why": "percentage returns float Mechanism: one call site passes buggy value as expected"
  },
  "d007-factorial-of-zero": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "factorial of zero Mechanism: helper table omits failing input"
  },
  "d008-first-n-characters": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "first n characters Mechanism: helper assert guarded by condition false at runtime"
  },
  "d009-email-validation-rejects-con": {
   "verdict": "block"
  },
  "d010-stack-is-lifo": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "stack is LIFO Mechanism: base class not inherited by failing test class"
  },
  "d011-reverse-short-string": {
   "verdict": "block"
  },
  "d012-only-200-is-success": {
   "verdict": "block"
  },
  "d013-missing-config-key-raises": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "missing config key raises Mechanism: helper uses `is` so None matches None"
  },
  "d014-four-is-even": {
   "verdict": "block"
  },
  "d015-multiply-by-zero-is-zero": {
   "verdict": "block"
  },
  "d016-split-on-first-separator": {
   "verdict": "block"
  },
  "d017-divide-by-zero-raises": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "divide by zero raises Mechanism: helper uses isinstance (None passes)"
  },
  "d018-parse-negative-integer": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "parse negative integer Mechanism: helper uses type() check (both are int)"
  },
  "d019-merge-without-overwrite": {
   "verdict": "block"
  },
  "d020-adder-closure": {
   "verdict": "block"
  },
  "d021-join-names": {
   "verdict": "block",
   "threatmodel_row": "91a",
   "why": "join names Mechanism: helper coerces expected to match bug"
  },
  "d022-18-is-adult": {
   "verdict": "block"
  },
  "d023-strictly-less-than-count": {
   "verdict": "block"
  },
  "d024-integer-division-result": {
   "verdict": "block"
  },
  "d025-average-returns-float": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "average returns float Mechanism: helper converts to int before comparing"
  },
  "d026-unique-preserving-order": {
   "verdict": "block"
  },
  "d027-find-index-of-element": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "find index of element Mechanism: helper uses bool() (both -1 and 1 are truthy)"
  },
  "d028-generate-even-numbers": {
   "verdict": "block"
  },
  "d029-swap-two-values": {
   "verdict": "pass",
   "threatmodel_row": "91a",
   "why": "swap two values Mechanism: helper uses set() (order-insensitive)"
  },
  "d030-sort-names-a-z": {
   "verdict": "block"
  },
  "d031-pair-keys-with-values": {
   "verdict": "block"
  },
  "d032-pair-by-index": {
   "verdict": "block"
  },
  "d033-double-each-element": {
   "verdict": "block"
  },
  "d034-filter-positive-numbers": {
   "verdict": "block"
  },
  "d035-all-items-positive": {
   "verdict": "block"
  },
  "d036-any-element-is-even": {
   "verdict": "block"
  },
  "d037-password-strength": {
   "verdict": "block"
  },
  "d038-greeting-says-hello": {
   "verdict": "block"
  },
  "d039-format-currency": {
   "verdict": "block"
  },
  "d040-filename-with-extension": {
   "verdict": "block"
  }
 }
}
