Skip to content

release v0.0.151 - #1446

Merged
nc9 merged 15 commits into
mainfrom
release/v0.0.151
Oct 31, 2026
Merged

nc9 merged 15 commits into
mainfrom
release/v0.0.151

Conversation

@nc9

@nc9 nc9 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Release v0.0.151: stacked release PR (cherry-picks with -x, authorship and sign-offs preserved, released CHANGELOG sections untouched), then notes and version bump (## v0.0.151 (2026-11-01), apps/cli/package.json and npm/package.json 0.0.150 -> 0.0.151). Rebase-merge, then the originals are closed with the new SHAs.

Included PRs (approved head sha; refs only, no auto-close)

PR Approved head What
#1434 e1da605b tests: pin the cut [[ignore]] timeout notice in the report, isolate controller test spies (William; commits 5777f304, e1da605b, authorship intact; refs #1419)
#1439 e4d3c03c tests and docs: cut-empty sync guard, html and console output, allowlist header note
#1433 33fe7e76 tech-detect: search literal for every detector, share extras across hints, reserve the tail, never cut a long span after an odd backslash run (refs #1420)
#1443 d0bf4528 crawler: seed order keys on the typed start URL only (refs #1405)
#1442 d8bcc2fe tech-detect: read only the script elements of a Next.js flight payload, with 11 real-build fixtures (refs #1437)

Validation of #1433: the detection corpus run on v0.0.151's #1433 head shows about 2,100 more detections than v0.0.150, 10 losses (all real installs), no false firebase, supabase or clerk, and all 13 previous losers recovered.

Notes for review

Local gates

tsgo clean in tech-detect, audit-engine, crawler and cli; cli format:check and lint clean; detect-secrets clean including the 11 committed real-build fixtures; docs make validate; tech-detect tests directory (394 pass); ignore-timeout-cut-1419, max-duration, audit-probe-wiring and the controller-level cut test together by path; crawler seed tests; audit-deep-url-1369 e2e; check-released-changelog.sh clean.

WilliamK112 and others added 14 commits November 1, 2026 01:02
Signed-off-by: Ching-Wei Kang <[email protected]>
(cherry picked from commit 5777f30)
Signed-off-by: Ching-Wei Kang <[email protected]>
(cherry picked from commit e1da605)
…e empty-section renders; note budget timeout is script-limit #1408

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit e6c2dc5)
…he extras across hints round by round, reserve the tail #1420

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit f8cfd44)
Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 9856d17)
… fold U+0130, pick selective literals, skip escape arguments #1420

Review fixes for the derived-literal sampler:
- an inCode detector's window qualifies only when its match starts in code (whole-file string, regex and comment spans), so string mentions no longer use up the 8 windows kept per hint
- declared hints get their first 2 windows before any derived hint's first
- U+0130 is folded to I before lower-casing, so one dotted capital I no longer disables every case-insensitive literal
- the most selective required run is used, not the longest; common words (config, init, account...) are never a literal (GA4 gtag(, Yandex ym(, MailerLite ml()
- \x, \u, \c, \k, \p and digit escapes no longer leak their arguments into the literal
- soundness test generates strings from every pattern and checks the literal against them
- CHANGELOG and docs no longer claim every detector has a literal or a 256 KB start

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 962b370)
…st of a small script whole, merge the tail span #1420

#1433 corpus losses (tiktok, facebook, posthog loaders in small scripts):
- the tail is a span merged with the windows, so nothing between them is dropped and a rest that fits is sent whole
- a hit or cut inside a long string, regex or comment is no longer skipped or jumped past: the cut stays and carries the opener, so the scan reads the span as the whole file does
- tests: three corpus shapes at cloud and 24 KB caps, whole-rest, single tail, and an inlined-script string that must not match

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 5fb1418)
…kip long regex literals instead of reopening them #1420

Review of #1433: the opener put before a cut inside a long string or regex let quoted text read as code (an escaped quote at the cut closed the reopened string; a / inside a regex class ended it). A cut backs up one char after an odd backslash run, and a long regex is skipped as before. Tests per exploit, tail merge test, harness separator fixed to a real NUL.

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 4447b39)
…o in-code pattern #1420

Review of #1433: the opener is a quote and the matcher reads a quote as code, so a cut on the first char after a quote inside a long string completed a quote-initial in-code pattern (Supabase, Firebase, Clerk) with quoted text. Every opener cut (window and tail) now moves on, past an escape pair whole, up to 16 starts, and is dropped when none is clean. Tests: every alignment for a quoted URL, authDomain and publishableKey in ', " and template strings; tail-cut escape, regex and budget cases that kill the surviving mutants.

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 9cb84fc)
…400 chars #1420

Review of #1433 round 5: the in-code patterns have whitespace runs of any length, so a config padded past 400 chars after a quote hid from the opener check. settle() now probes up to the window end, or the end of the file for the tail. Tests: whitespace-padded Firebase, Clerk and Supabase text with the tail cut on it (1 to 800 spaces, ' and " strings), window moves on instead of dropping.

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit 33fe7e7)
…t is also a sitemap URL still counts as pending #1405

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit d0bf452)
…cript, not its whole text #1437

Signed-off-by: Nik Cubrilovic <[email protected]>
(cherry picked from commit d8bcc2f)
@claude

claude Bot commented Oct 31, 2026

Copy link
Copy Markdown

Reviewed the diff available to me: CHANGELOG, version bumps, isEmptyCutTechnologies extraction in cloud.ts and its use in audit.ts, the new and changed CLI tests, and the docs edits. I found no issues.

The extraction preserves the old condition exactly (items.length === 0 && truncated). The version bump is consistent across apps/cli/package.json and npm/package.json. The CHANGELOG adds a v0.0.151 section and leaves an empty [Unreleased] section above it.

Limits of this review: the diff I could read did not include the tech-detect or crawler source changes from #1433, #1442 and #1443. I could not check those, and I did not run any tests or CI gates myself.

@claude

claude Bot commented Oct 31, 2026

Copy link
Copy Markdown

Review of the v0.0.151 release PR. I read the source diffs (flight.ts, the crawler seed-order change, the cloud.ts/audit.ts refactor, CHANGELOG and version bumps). I did not run the tests or CI myself.

No blocking findings.

  • (low) packages/tech-detect/src/flight.ts flightLoaderText: MAX_NODES is checked only inside the per-row walk, and a return out.join("\n") on cap exit is silent. A hostile payload can truncate detection without any signal. That is acceptable for untrusted input, but a debug log on cap hit would help when someone reports a missed vendor.
  • (low) flight.ts isScriptComponent: a bare typeof props.strategy === "string" or any src on a $L component marks it as next/script. Other components with a src prop, such as an image or iframe wrapper, would have their src read as a loader URL. This is the exact vendor-only-mentioned false positive tech-detect: a Next.js flight script re-opens the prose, link and metadata false-positive classes for script-url signatures #1437 targets. The 11 fixtures cover the main shapes, so consider one negative fixture with a $L image component pointing at a vendor URL.
  • (nit) flight.ts: isObject is a const declared after isScriptComponent, which uses it. It is safe at call time, but moving it above the function reads better.
  • (nit) crawler.ts: seedAlsoInSitemap normalizes every sitemap URL again with normalizeAndCheckScope on large sitemaps. It runs only when earlySeedPending is true, so the cost is bounded, but a Set lookup over the already-normalized URLs would avoid the second pass if they are available.
  • (nit) The cloud.ts isEmptyCutTechnologies extraction is a clean, testable refactor with no behaviour change.

The PR description and CHANGELOG are consistent with the code, and the version bumps match in apps/cli and npm.

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.

3 participants