Repository navigation
docs(ci): fill six gaps in the CI decision records and remove the swap plan - #1845
Conversation
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Six statements in the CI glossary and ADRs 0002 to 0004 needed a source, a definition, or a date. Each fix comes from a source: - The glossary now says what Blacksmith and RunsOn are, before it uses either name. The wording follows the description of #1297. - ADR 0002 names the runner trial in #1297 wherever it cites a trial. The trial's comments of 20 October 2026 hold the arm64 results and the job that ran for more than 2 hours. - ADR 0002 compares GitHub-hosted runners with Blacksmith, as the trial did. - ADR 0003 now says that ADR 0004 superseded ADR 0002. - ADR 0003 now says the weekly CI cost report is planned, and that nobody has built it yet. - ADR 0004 dates its RunsOn setup section to 19 November 2026. It says two AWS requests were unanswered on that date, and where to see the current vCPU quotas. It also says why warm machines would start faster.
6e50213 to
aa5f108
Compare
cipherstash-agent
left a comment
There was a problem hiding this comment.
Review attestation
Reviewed aa5f108 · posted from Claude Code · claude-opus-5-5 · code-review effort medium
Sources: code-review · claude-opus-5-5; mattpocock-skills:code-review standards and spec agents · model unknown
Skills: code-review, mattpocock-skills:code-review, company-skills:rust-security (the PR changes no Rust, so it had nothing to check), company-skills:review-cross-check
Findings (4): 4 minor — 2 inline, 2 below.
generalminor The PR body ("#1419 contains the changes for all six of its tasks") and the message of commitaa5f108("Pull request #1419 carries out all of them") give the wrong reason for deleting the plan. The plan says Task 1 was done in #1427 (11db0ef99) and Task 6 in #1416. Say "every task is done, in #1427, #1419 and #1416". Source: mattpocock-skills:code-review spec agent · model unknowndocs/adr/0004-same-size-swap-from-blacksmith-to-runs-on.md:45,:95(outside diff) minor (nit) Deleting the plan removes the only copy of two details: the Service Quotas codeL-A2D70E6Cfor theRunInstancesrequest rate, and the out-of-memory sign that triggers them8arule (exit code 137,Killed, orsignal: 9, SIGKILL). Add both to ADR 0004. Source: mattpocock-skills:code-review standards agent · model unknown
Each finding was checked against aa5f108 before posting. Four other candidate findings were refuted there, and one needs a decision by a maintainer, so this review does not post it.
Generated by Claude Code
ADR 0003 said that ADR 0002 moved jobs to cheaper machines. ADR 0004 superseded ADR 0002 before anyone built it, so no job moved. The glossary in .github/CONTEXT.md already says that ADR 0002 planned these moves. ADR 0003 now says the same. The introduction also repeated the note at the top of the file, which says that the swap moves every Blacksmith job to a RunsOn machine of the same size. The repeated line is gone. Its one extra word, "cheaper", is now in the note.
The plan for the same-size swap held two details that no other file has. The next commit removes the plan, so ADR 0004 now records both: - The sign that a job ran out of memory: its log shows exit code 137, "Killed", or "signal: 9, SIGKILL". Such a job moves to family=m8a. - The Service Quotas code for the RunInstances request rate, L-A2D70E6C. Once Service Quotas shows 4 for that code, a second CloudFormation change set moves AppSize from small to medium.
The plan listed six tasks that move every Blacksmith job to RunsOn. Every task is done. Pull request #1427 did Task 1, #1419 did Tasks 2 to 5, and #1416 did Task 6. No task is left open. A reviewer of #1416 asked whether the file could be removed. Nothing is lost by removing it: - ADR 0004 records the decision, the labels, and the reasons. - ADR 0004 also records the open AWS requests and the Docker Hub secrets that the plan listed as steps outside its tasks. - The previous commit moved the plan's last two unique details into ADR 0004: the sign of a job that ran out of memory, and the Service Quotas code for the RunInstances request rate. - No other file refers to the plan. - Git history keeps the plan for anyone who needs it.
aa5f108 to
0713f6c
Compare
|
Replies to the two findings in the body of the review by The reason for deleting the plan. Fixed in the description and in the commit message.
The two details that only the plan had. Fixed in e294ace.
Changes to the branch. I rewrote the branch to make these fixes, with |
Root `pnpm test` runs `turbo test` over every package at once. protect-ffi's `test:typecheck` began with a plain `tsc`. That command rewrites every file in `lib/`. The builds of @cipherstash/stack and other packages read `lib/*.d.*` at the same time, and nothing in the turbo graph ordered the two. A file tsc is rewriting is briefly empty, so a build sometimes read an empty `lib/types.d.ts` and failed with TS2305. That failed Test JS in run 45801077255 on #1845. The typecheck now runs `tsc --noEmit`, so `test` never writes `lib/`. TypeScript 5.9 still reports declaration errors such as TS4094 under `--noEmit`, so the check loses nothing. The unit tests still need the emitted `lib/index.cjs`, so turbo.json gives protect-ffi's `test` its own task that depends on the package's `build`. A new scripts test checks both rules: no tsc reachable from protect-ffi's `test` emits files, and turbo runs that `test` after its own `build`. Refs #1845
Summary
This pull request fills six gaps in the CI glossary and in architecture decision records (ADRs) 0002, 0003, and 0004. Each fix adds a missing source, definition, or date. The pull request also corrects two lines in ADR 0003.
This pull request also removes the plan for the same-size swap, because every task in it is done. ADR 0004 now records the two details that only the plan had.
The six fixes come from a plain-language review of the documents that #1416 added. #1416 merged before the fixes were ready. A reviewer of #1416 asked whether the plan could be removed. A review of this pull request found the other changes.
Stack
mainon 26 November 2026.ci/heavy-jobs-runs-on, the branch of ci(runners): move every Blacksmith job to a RunsOn machine of the same size #1419. When ci(runners): move every Blacksmith job to a RunsOn machine of the same size #1419 merges, GitHub changes this pull request's base tomain.Changes
The glossary,
.github/CONTEXT.mdADR 0002
ADR 0003
ADR 0004
RunInstancesrequest rate,L-A2D70E6C. The section also says what to do once that quota shows 4.The swap plan,
docs/superpowers/plans/2026-11-19-same-size-swap-blacksmith-to-runs-on.mdVerification
main.git diff 77738fd2d a2c70da41 -- .github/CONTEXT.md docs/adr/is empty.vitest run --config scripts/vitest.config.mjs, the command behindpnpm run test:scripts, passes on 0713f6c. 85 test files passed, with 1,436 tests passed and 3 skipped.git grepfinds the plan's path in no other file.Related
Review notes
docs/superpowers/plans/also contains four older plans, from June and July 2026. This pull request removes only the swap plan.Summary by CodeRabbit