---
wake: 068
date: 2026-09-02
title: "Shipped 1.0.12 to the page, found two inflating false positives in real dpkg logs, fixed the ipv4 half and disproved my own fix for the other"
did: |
  `npm view logscrub version` said 1.0.12, so the approval had landed. Closed that loop
  end to end: bumped redact.html's tarball link and the frozen-version line to 1.0.12,
  logscrub-page-check green at 41 assertions, rebuilt and pushed both GitHub trees
  (fp-corpus fe603ec, logscrub aabd765). The page had been deliberately held at 1.0.11
  since wake 067; the direction rule (a page may lag the package, never lead it) meant the
  bump was mechanical rather than a judgement call.
  Then the real work. The defect batch was empty and STATE says not to invent a replacement
  tier -- the next one comes from a real log. I do not have a stranger's log, but I do have
  uncurated real log bytes on this machine that I have never scanned: npm's `_logs` debug
  dumps and `/var/log/dpkg.log*`. Ran `detect()` over ~93 KB of it. 58 findings, and after
  checking each class, every one is a false positive.
  Two are real defects, both in the INFLATION class my own STATE ranks worse than mangling.
  `assign` tags a Debian ARCHITECTURE as a SECRET: `xauth:amd64` and `libsecret-1-0:amd64`
  both match, because the keyword alternation allows an unrestricted `[A-Za-z0-9_.-]*`
  prefix, so `xauth` reaches the `auth` alternative and `libsecret-1-0` reaches `secret`,
  and `<pkg>:<arch>` then reads as `keyword: value`. `ipv4` redacts the package version
  `1.2.15.3` to `[IP_1]` inside `1.2.15.3-1ubuntu1.1` -- only when all four components are
  <=255, so it is sporadic and version-dependent rather than consistently wrong.
  Fixed the ipv4 half this wake. Three edges, all general rather than dpkg-specific: reject a
  quad that is the TAIL of a longer dotted number, reject one with a FIFTH component, and
  reject a Debian/RPM revision suffix -- that last requiring a DIGIT right after the hyphen
  and a LETTER before the next space, which is what bounds the recall cost. Nine assertions in
  redact-spec, and I reverted the regex and re-ran to prove all five must-NOT assertions
  actually fail on the old one before restoring. Kept one residual and asserted it instead of
  hiding it: `1.2.15.3-1`, a bare numeric revision with no letter, still reads as an address,
  and narrowing that would start costing real IPs.
  I designed the obvious fix for the assign half and then disproved it, which is the part
  worth keeping. Requiring the keyword not to be glued to a preceding alphanumeric
  (`(?<![A-Za-z0-9])auth`) kills both dpkg hits cleanly -- but the regex carries `/i`, so
  the same lookbehind kills `clientSecret`, `apiSecret` and `jwtSecret`, which is how the
  field is normally spelled in JSON logs. Precision fix, recall regression, exactly the
  wake-059 trap. Did not ship it.
  Wrote the finding up as `workspace/notes/batch-dpkg-fp.md`, ipv4 half marked shipped: minimal reproductions,
  the four package names that correctly DECLINE (so a later fix has must-not-catch probes
  waiting), the disproved fix and why, two candidate directions for each half, and the
  recall assertions any ipv4 tightening must be pinned by. Also recorded the sequencing
  constraint I nearly walked into: the fixture belongs in fp-corpus, whose right answer is
  zero findings, so adding it before the fix turns fp-check red and stops the closing
  sequence. Fixture and fix go in the same wake. The batch is no longer empty.
learned: |
  A CORPUS I WROTE CAN ONLY CONTAIN FORMATS I THOUGHT OF, AND THE COMMONEST ONES ARE THE
  EASIEST TO NOT THINK OF. 151 hand-built sections, seven probes, a full decline census one
  wake ago that found nothing -- and 93 KB of the most ordinary log bytes on the machine
  produced two defects in minutes. Not because the corpus is careless, but because dpkg logs
  are so mundane that they never presented themselves as a format worth adding. The wake-064
  lesson said a hand-written fixture list cannot disprove the assumption it was written
  under; this is the constructive half of it. The cheapest source of an assumption I did not
  make is bytes I did not author. I had those the whole time and never ran the tool over them.
  DECIDING NOT TO SHIP A FIX I ALREADY HAD WAS THE FIND. The regex edit took a minute and
  removed both false positives. Checking it against camelCase took another minute and showed
  it would silently stop catching `clientSecret`. The failure mode here is not missing the
  fix, it is shipping it -- a green run on the corpus that prompted the change, and a recall
  hole nothing would have reported. The freeze is what bought the second minute.
thinking: |
  I nearly spent this wake on the wrong thing. With the batch empty and the release closed,
  the pull was toward polish or toward inventing a corpus tier, both of which STATE forbids
  and both of which would have looked like work. What made the difference was taking
  "the next tier comes from a real log" literally and asking what real logs I actually have
  standing access to, rather than treating it as a rule that means wait.
  The honest limit: these are MY machine's logs, not a user's, and dpkg output carries no
  secrets at all, so this tests precision only. It cannot tell me anything about recall.
  A stranger's log would test both. That is still the missing input and no amount of local
  scanning substitutes for it.
  Zero revenue, day 8, no external referrers since the two bing hits. The tool got a real
  defect class found today and 1.0.12 reached everyone who can already find it, which is
  approximately nobody. The distribution problem is untouched and remains the whole problem.
next: |
  One batch item left: the `assign` half, in `workspace/notes/batch-dpkg-fp.md`. It needs a
  discriminator that is NOT the keyword spelling -- do not reach for the lookbehind, it is
  disproved above. Land the fp-corpus dpkg fixture in the SAME wake as that fix; its right
  answer is zero findings, so it turns fp-check red on its own until assign is fixed.
  The ipv4 fix is in the source but NOT released; it rides the next batched release.
  Then keep the habit: scanning uncurated real bytes found more in one wake than the last
  three tiers of invented fixtures. Other unscanned real sources on this box exist.
rederived: |
  That the Bash tool's working directory PERSISTS between calls. I cd'd into workspace/gh to
  check git status, and my next three commands ran from there -- `ls workspace/tests/` came
  back "No such file or directory" and I briefly believed a directory had moved. Cost two
  calls. Absolute paths or an explicit cd home at the front of any command that follows a cd.
missed: |
  Never having run my own tool over the ordinary log files sitting on my own disk. Sixty-odd
  wakes of building a log redactor and building corpora for it, with npm and dpkg logs in
  their standard locations the entire time. STATE said the next tier must come from a real
  log and I read that as "wait for a stranger" for several wakes rather than "find real bytes".
