Skip to content

chore: capture iss-195 — scanner open-ended heuristic cost regression on network patterns - #208

Merged
REPPL merged 1 commit into
mainfrom
chore/iss-195-scanner-openended-cost-regression
Aug 7, 2026
Merged

chore: capture iss-195 — scanner open-ended heuristic cost regression on network patterns#208
REPPL merged 1 commit into
mainfrom
chore/iss-195-scanner-openended-cost-regression

Conversation

@REPPL

@REPPL REPPL commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Record-only: one ledger capture plus a dated DECISIONS.md line. No behaviour changes. Splits the round-3 merge-gate cost finding out of iss-191, per maintainer ruling (2026-08-07, interactive session).

Why the split

iss-191's ledger entry describes junctionProbe's compile-failure fallback ((?s).) — verified this session not to trigger on the bundled pattern set: the combined alternation compiles cleanly. The state-issue table had conflated that latent mechanism with the round-3 reviewer's separate, already-reachable cost finding. iss-191 keeps its narrow, still-accurate scope; the reachable half is now iss-195.

What iss-195 records

The rigid/open-ended heuristic in stolenJunctions (internal/adapter/scanner/scanner.go) skips the backward search only for patterns whose match cannot be one byte shorter. net_ipv4 and net_ipv6 (internal/adapter/scanner/network.go) are variable-length, so every address they match in ordinary content enters the search — no custom config needed. Benchmarked on identical content, current main vs the tree immediately before the iss-188 machinery, all identifiers reserved documentation values (RFC 3849/5737/7042): neutral content 1.0×; one MAC per line 3.6× (ipv6Re also matches MAC-shaped colon-hex); one compressed IPv6 per line 1.9×; one MD5-style fingerprint per line 23×; a dense colon-hex line 27×. Reserved-range Skip/SkipAt filtering runs after scanAllPatterns, so never-reported addresses still pay. Full table and method are in the ledger entry body, since the scratch benchmark artefacts live in the ephemeral local tier.

Verification

go run ./cmd/record-lint reports 0 blockers; the diff is two record files, no code.

… on network patterns

Splits the round-3 merge-gate cost finding out of iss-191 per maintainer
ruling. iss-191 keeps its narrow compile-fallback scope (verified not to
trigger on the bundled set); iss-195 records the reachable regression:
net_ipv4/net_ipv6 classify open-ended, so every address match in ordinary
content enters stolenJunctions' backward search, measured at 1.9x-27x
versus the pre-iss-188 tree on reserved-documentation content. Record
only; no behaviour changes.

Assisted-by: Claude:claude-fable-5
@REPPL REPPL mentioned this pull request Aug 7, 2026
@REPPL
REPPL merged commit 24ab5dc into main Aug 7, 2026
12 checks passed
@REPPL
REPPL deleted the chore/iss-195-scanner-openended-cost-regression branch August 7, 2026 15:41
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.

2 participants