Skip to content

fix(package): trim shipped docs and legacy replay flags - #5071

Merged
thymikee merged 4 commits into
0.22from
fix/0.22-trim-packaged-docs-and-replay-flags
Nov 24, 2026
Merged

thymikee merged 4 commits into
0.22from
fix/0.22-trim-packaged-docs-and-replay-flags

Conversation

@thymikee

@thymikee thymikee commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Keep the root README as the only README in the 0.22 core tarball. Remove the unused compatibility branches for --backend VALUE and -c from replay snapshot parsing. Repair two rental restart test imports left stale by the host-kit environment split.

Before / after

  • The npm pack list drops the 14,442-byte snapshot bridge developer README. It retains the bridge sources and the root README.
  • In a replay script, snapshot --backend --raw now preserves --raw under the existing unknown-token rules. The interactive CLI snapshot parser is unchanged.

Validation

  • Exact affected validation at 5c397b8d7b on Node 26.8.1 and pnpm 11.17.0, receipt run-lJjaD1: 43 passed, 29 skipped.
  • The consolidated pack guard checks README basenames and all required bridge sources and headers in the existing dry run. Both guard suites passed (14 tests).
  • On Node 24.13.0, six symlink, ancestry, and upload cases failed at be11e9ac4b and reproduced at its unchanged parent. All 80 tests in those four files passed at be11e9ac4b with Node 26.8.1.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 5.07 MB 5.05 MB -14.5 kB
Package (unpacked) 5.07 MB 5.05 MB -14.5 kB
Package (download) 1.55 MB 1.54 MB -5.3 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 15.6 ms 27.0 ms +11.4 ms
CLI --help 26.5 ms 38.8 ms +12.3 ms

@apex-sentinel-staging

This comment has been minimized.

@thymikee

Copy link
Copy Markdown
Member Author

The code looks right at be11e9a, but evidence is still pending. npm pack and the new tests were not run here, so the result rests on green CI at this head. Not verified here: whether any saved replay script in the wild still uses the removed legacy flag tokens; the safety claim rests on the parser and on no in-repo writer of those tokens.

Body rules was cancelled on two runs, not failed. It checks PR body text and the diff touches no body-rule route, so it is likely unrelated. The other 23 checks passed. There are no conflicts. Before merge, Body rules needs a re-run to finish green.

Not blocking, and fine to take or leave: the new test in npm-package-scripts.test.ts repeats the core npm dry-run that packedPaths(repoRoot) already does in macos-helper-package-contents.test.ts, and its .m probe passes with a single bridge file even if headers are missing. Its README filter at line 156 matches only readme.md, so a nested README.txt in the bridge directory would pass. Matching README basenames with any extension and requiring the result to equal ['README.md'] would close that.

Could the existing core pack-content guard own the root-only README assertion, using its current pack list and the existing assertSnapshotBridgeAssets check for source retention?

@thymikee

Copy link
Copy Markdown
Member Author

Addressed the pack guard suggestion in 5c397b8d7b. The root dry-run pack list now checks for only README.md across README basenames and calls assertSnapshotBridgeAssets for the full bridge source and header set. It keeps the existing macOS-helper exclusion assertion. Both guard suites passed (14 tests), and exact affected validation passed (43 passed, 29 skipped, run-lJjaD1).

Body rules had already passed at be11e9a (job). The new commit has its own hosted checks.

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 5c397b8

Since the review of be11e9a: 0 new · 0 still open · 0 no longer raised

No open findings.

Reviewed with this repository's own Sentinel configuration (8a29aea9a820).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee

Copy link
Copy Markdown
Member Author

The README assertion placement and the duplicate pack probe from the earlier review (be11e9a) are fixed at 5c397b8. The code looks ready to me as read, and no further findings remain. The only check not passing is Body rules, which was cancelled rather than failed. It passed at be11e9a, and this change does not touch the PR body text, so it is likely unrelated. There are no conflicts. Not verified here: the guard was not run locally. This review relied on reading the code and on the reported 14 passing guard tests and the affected validation run.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 24, 2026
@thymikee

Copy link
Copy Markdown
Member Author

The current head 5c397b8 has a successful Body rules check. All 22 checks are green at this head.

@thymikee
thymikee merged commit 2062cbe into 0.22 Nov 24, 2026
22 of 23 checks passed
@thymikee
thymikee deleted the fix/0.22-trim-packaged-docs-and-replay-flags branch November 24, 2026 13:59
thymikee added a commit that referenced this pull request Nov 24, 2026
* Remove legacy replay snapshot handling

* Fix rental restart environment imports

* test(package): run pack list check across hosts

* test(package): consolidate core pack contents checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant