Skip to content

feat: finish first-minute guidance and gate release timing - #1178

Merged
arminazimi merged 3 commits into
mainfrom
feat/389-first-minute-release
Nov 28, 2026
Merged

arminazimi merged 3 commits into
mainfrom
feat/389-first-minute-release

Conversation

@arminazimi

@arminazimi arminazimi commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Refs #389, #533, #918 and #444.

Closes #955
Closes #969
Closes #970
Closes #979
Closes #988

What changed

  • The bare forecast leaves unrelated command modules unloaded, says when there are no offline fixes, and suggests the read-only preview only when it would find a patch.
  • Keep CLI-only declarations out of the npm tarball, with a pack test for the full type closure of all package exports.
  • Require every cold first-minute cell to succeed before the npm publish stage. Weekly and no-publish measurement use the same 10-second threshold and retain the timing artifacts.

Workflow changes

  • Reason: Use the same clean-runner matrix for tagged releases and no-publish drills. It gates the exact release tarball before publication.
  • Budget effect: none

Quality bar

Reviewed docs/QUALITY.md and the review rubric. The public CLI, library, MCP, schemas and existing specification entries remain in the package. This adds no dependency.

Checks CI cannot make

  • Updated tests and snapshots for user-visible behavior and release gating.
  • Changelog fragment added.

Verification

  • npm run check and 20 focused first-run, package and release tests passed locally.
  • Installed the candidate npm tarball offline in a fresh directory. The positive and zero-fix examples printed their expected forecast with network and writes disabled. The advertised preview agreed with the first-run count. The source examples stayed unchanged.
  • Local clean packs moved from 1,449 files and 1,790,892 bytes to 1,269 files and 1,758,254 bytes before a generated release manifest. The bare process took 93–149 ms after skipping the complete command table, down from 174–219 ms in seven launches each on two macOS examples.
  • actionlint and zizmor --offline --persona=regular passed for the touched release and first-minute workflows.
  • The baseline no-publish release run provides all 18 timing rows over the pinned Linux, macOS and Windows runner pairs. The candidate no-publish run measured SHA-256 9411d22b6359ef35670426c6c99504a26eedd01cdbbf3f9e8ed88e41126cc846. Five of six cells passed. One Windows 22 sample took 16.733 seconds and blocked the publish stage. The other two Windows 22 samples took 6.873 and 7.051 seconds. Median post-install startup improved on five cells. Median npm install moved both ways, so first-minute: cut install time found by the measurement, such as lazy grammars, dropped files from the tarball and fewer runtime dependencies #918 stays open for further validation. The final-head repeat uses the same packed code and the updated Quickstart. The preliminary run was cancelled before measurement while correcting an existing test assertion.

Notes for reviewers

For #533 and #389, retain the exact published npm-version check under #444. Published 0.1.1 has no bare forecast. The hosted candidates exercise the same first-run path using local tarballs ahead of publication.

@arminazimi
arminazimi merged commit deedaed into main Nov 28, 2026
32 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment