Skip to content

fix: integrate reviewed renderer and CLI maintenance into dev - #441

Merged
tt-a1i merged 23 commits into
devfrom
codex/pr418-dev-integration
Sep 16, 2026
Merged

tt-a1i merged 23 commits into
devfrom
codex/pr418-dev-integration

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Problem and result

This dev integration batch brings together five reviewed PRs while retaining their original commits and authorship:

Integration and impact

Base: dev b98a414. Source changes merged without conflicts; competing archive snapshots were resolved by rebuilding one canonical ZIP from the final combined source. This avoids repeatedly rebasing the same independently reviewed fixes over binary package conflicts. No version, schema, rendered appearance, or geometry acceptance rule changes. #396 remains a separate diagnostic-classification change.

Original author PRs are preserved and will become merged when this batch is merged with a merge commit. #418 could not be pushed by the maintainer, which is why its integration lives here.

Validation

Candidate da85751, official Node22.23.2/macOS:145 focused tests passed,0 failures/skips across compiler import/call isolation, diagnostic boundary, brand capture, geometry, output checker, and README contracts. Installed dependencies from lockfile; rebuilt archify.zip from combined source; git diff --check passes. The brand boundary regressions were observed failing before correction. Existing authored diagram and CLI contracts are retained.

Earlier per-PR CI results belong to their original heads. Final full CI and three-platform package smoke for this combined candidate are pending. Integration targets dev; actual-use acceptance and a separate promotion PR are required before main.

tt-a1i and others added 11 commits August 27, 2026 10:50
…page

Fixes #102. `readLimited(page.response, MAX_HTML_BYTES)` counted the
entire HTML response against the 256 KiB cap, so a page with a tiny
<head> (a handful of icon <link> tags) failed with "brand asset is too
large" whenever its total body -- content the icon scan never even
looks at -- pushed past the cap. Confirmed against the issue's own
repro: `brands capture https://xquik.com` failed on main, succeeds
after this change.

Replace the html-page read with readHtmlHead(): stream the response
and stop as soon as `</head>` appears in what's been read so far,
before ever counting or downloading the rest of the body. Only fails
closed with the existing "brand asset is too large" error if the byte
budget runs out before a head close is seen -- same failure mode as
before for pages whose head itself is huge or missing, per the issue's
explicit requirement to keep that path failing closed. readLimited
itself is unchanged and still guards image bytes.

Regression coverage (three CLI-level tests, per CONTRIBUTING's
"behavioral fixes need a failing regression test" -- verified failing
on main via `git stash` before writing the fix):
- a small head followed by a >256 KiB body now captures its icon;
- a `</head>` split across two response chunks is still found;
- a head that alone exceeds the cap (no `</head>` within budget)
  still fails closed with the same error and exit code.

`npm test` (archify/): 729 passed, 0 failed, 16 skipped (real-Chrome
visual-check tests, gated behind ARCHIFY_CHROME which isn't set here).
archify/renderers/shared/brand-marks.mjs changed in the previous
commit, but archify.zip -- the distributable Skill package -- was not
rebuilt, so it still shipped the old whole-page-capped readLimited()
call. Installed Skill users would not have received the fix.

Rebuilt with the canonical Node 22 toolchain via scripts/build-zip.sh.
Verified:
- scripts/build-zip.sh /tmp/fresh.zip; cmp -s /tmp/fresh.zip archify.zip
  -- exact byte match (the same comparison the zip-freshness CI job
  runs), confirming the build is both fresh and reproducible.
- npm run check:brand-marks / check:validators -- clean, so the
  archive isn't stale because of an unrelated generated-artifact drift.
- npm test (archify/) -- 841 passed, 0 failed, 27 skipped (unchanged).
- package-smoke equivalent: unzipped archify.zip and ran
  scripts/package-smoke.mjs against the extracted package directly,
  matching the CI package-smoke job -- passed.

Also rebased this branch onto the current main (several commits had
landed, including the zip determinism work in #99-era commits this
rebuild depends on) before rebuilding, so the archive reflects both
this fix and everything else currently on main.
Replace the spread-based minimum calculation with a one-pass reduction so large renderer receipts cannot exceed JavaScript's argument limit. Add a 200,000-measurement regression and rebuild the deterministic package.
@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 750735af-6577-4893-8d7f-ed5816ce5680

📥 Commits

Reviewing files that changed from the base of the PR and between b98a414 and da85751.

⛔ Files ignored due to path filters (1)
  • archify.zip is excluded by !**/*.zip
📒 Files selected for processing (11)
  • README.md
  • README_EN.md
  • README_ZH.md
  • archify/renderers/shared/brand-marks.mjs
  • archify/renderers/shared/cli.mjs
  • archify/renderers/shared/geometry.mjs
  • archify/scripts/check-render-output.mjs
  • archify/test/brand-marks.test.mjs
  • archify/test/geometry.test.mjs
  • archify/test/renderer-import-isolation.test.mjs
  • archify/test/workflow-compiler-call-contract.test.mjs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tt-a1i tt-a1i changed the title fix(renderer): isolate compiler imports from CLI diagnostics fix: integrate reviewed renderer and CLI maintenance into dev Sep 16, 2026
@tt-a1i
tt-a1i merged commit e1c27ee into dev Sep 16, 2026
13 checks passed
@tt-a1i
tt-a1i deleted the codex/pr418-dev-integration branch September 17, 2026 09:24
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.

5 participants