Uh oh!
There was an error while loading. Please reload this page.
improvement(ship): pre-flight regenerate artifacts + parallel audit suite - #5927
Conversation
…uite Add a two-phase pre-ship step: (A) regenerate every committed artifact (agent-stream-docs, skills, contract syncs) in parallel so generated files never drift into a CI failure, then (B) run lint plus the full audit suite CI's Lint and Test job enforces, in parallel, aborting ship on any failure. Regenerate the ship command projections.
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview Phase A runs Phase B runs The same step-6 wording is applied in Reviewed by Cursor Bugbot for commit fcab4a2. Configure here. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Greptile SummaryThe PR strengthens the
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Run ship] --> B[Phase A: regenerate artifacts in parallel]
B --> C{All generators passed?}
C -- No --> X[Abort ship]
C -- Yes --> D[Run lint]
D --> E{Lint passed?}
E -- No --> X
E -- Yes --> F[Phase B: run audits in parallel]
F --> G{All audits passed?}
G -- No --> X
G -- Yes --> H[Stage generated and authored changes]
H --> I[Commit and push]
Reviews (4): Last reviewed commit: "fix(ship): gate lint exit in Phase B pre..." | Re-trigger Greptile |
Cursor review: (1) mship:generate is an umbrella over the 9 contract generators and biome-formats the shared generated dir, so running it alongside its constituents races/corrupts; it also reads an external copilot-contract source that ENOENTs in a bare worktree. (2) bare wait swallowed generator exit codes. Narrow Phase A to the always-in-repo generators (agent-stream-docs, skills) and collect each job's exit status in both phases; document domain generators as on-demand only.
waleedlatif1
commented
Jul 24, 2026
waleedlatif1
commented
Jul 24, 2026
@cursor review |
Uh oh!
There was an error while loading. Please reload this page.
Cursor/Greptile: grep && echo ❌ || echo ✅ always exits 0, so a failed generator/audit didn't actually gate ship (regressed the sequential bun-run checks whose non-zero exit agents rely on). Replace both Phase A and Phase B aggregations with an if-grep that exits 1 on any failure.
waleedlatif1
commented
Jul 24, 2026
waleedlatif1
commented
Jul 24, 2026
@cursor review |
Uh oh!
There was an error while loading. Please reload this page.
Cursor: bare bun run lint before the audit grep meant a non-zero lint
was ignored — if audits then passed, the block exited 0 and ship
continued. Gate lint with || { echo …; exit 1; } so an unfixable lint
error aborts before the audits run.waleedlatif1
commented
Jul 24, 2026
waleedlatif1
commented
Jul 24, 2026
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit fcab4a2. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Summary
/shipstep 6 into two phases so generated files never drift into a CI failure (theagent-stream-docsdrift we just hit on the Opus 5 PR)agent-stream-docs:generate,skills:sync, and all the contract*:generatescripts); idempotent, staged into the commitlintthen the full audit suite CI'sLint and Testjob enforces (check:boundaries,check:api-validation:strict,check:utils,check:zustand-v5,check:react-query,check:client-boundary,check:bare-icons,check:icon-paths,check:realtime-prune,skills:check,agent-stream-docs:check) in parallel, aborting ship on any failure.claude/commands/ship.md+.cursor/commands/ship.mdprojectionsType of Change
Testing
skills:syncregenerated the ship projections,skills:checkpasses,bun run lintcleanChecklist