Skip to content

docs(ci): fill six gaps in the CI decision records and remove the swap plan - #1845

Merged
auxesis merged 4 commits into
ci/heavy-jobs-runs-onfrom
docs/ci-decision-gaps
Nov 26, 2026
Merged

auxesis merged 4 commits into
ci/heavy-jobs-runs-onfrom
docs/ci-decision-gaps

Conversation

@auxesis

@auxesis auxesis commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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

Changes

The glossary, .github/CONTEXT.md

  • The introduction now says what Blacksmith and RunsOn are, before the glossary uses either name.

ADR 0002

ADR 0003

  • The introduction now says that ADR 0002 only planned to move jobs, and that ADR 0004 superseded ADR 0002. The glossary already says that ADR 0002 planned these moves.
  • The introduction no longer repeats the note at the top of the file. The note now says that the swap moves each job to a cheaper machine.
  • "How the merge queues work" now says that the weekly CI cost report is planned. That section also says that nobody has built the report yet.

ADR 0004

  • The RunsOn setup section is now dated 19 November 2026.
  • The section says that AWS had not answered two requests on that date. The section also says where to see the current vCPU quotas.
  • The section now gives the Service Quotas code for the RunInstances request rate, L-A2D70E6C. The section also says what to do once that quota shows 4.
  • The memory rule now says how to recognise a job that ran out of memory. The job's log shows exit code 137, "Killed", or "signal: 9, SIGKILL".
  • "Considered options" now says why warm machines would start faster.

The swap plan, docs/superpowers/plans/2026-11-19-same-size-swap-blacksmith-to-runs-on.md

Verification

Related

Review notes

  • Check each fix against its source. The runner trial and its comments of 20 October 2026 are in ci: trial RunsOn runner sizes for Mutants and Test JS (do not merge) #1297.
  • The two details added to ADR 0004 come from the removed plan. Git history keeps the plan at 30978e0.
  • docs/superpowers/plans/ also contains four older plans, from June and July 2026. This pull request removes only the swap plan.
  • This pull request needs no changeset. None of these files is part of a published package.

Summary by CodeRabbit

  • Documentation
    • Clarified the descriptions of hosted and project-owned CI machines.
    • Updated CI decision records with the status of the runner migration, cost reporting, and machine configuration.
    • Removed the completed migration plan, including its runner setup and validation details.

@changeset-bot

changeset-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0713f6c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

This change updates CI runner terminology and ADR records, clarifies the status of the RunsOn setup and cost report, and removes the completed Blacksmith-to-RunsOn migration plan.

Changes: CI runner documentation

Layer / File(s) Summary
Runner history and CI decisions
.github/CONTEXT.md, docs/adr/0002-light-ci-jobs-on-github-hosted-runners-heavy-jobs-on-runs-on.md, docs/adr/0003-expensive-ci-checks-run-in-merge-queues-on-main-and-next.md
The context file defines Blacksmith and RunsOn. ADR 0002 adds PR #1297 as the source for trial details. ADR 0003 records that ADR 0004 superseded ADR 0002 and describes the weekly cost report as planned, not built.
RunsOn setup record and plan removal
docs/adr/0004-same-size-swap-from-blacksmith-to-runs-on.md, docs/superpowers/plans/2026-11-19-same-size-swap-blacksmith-to-runs-on.md
ADR 0004 dates the setup details, identifies the Service Quotas code for the RunInstances rate, adds memory-kill log indicators, and explains that warm machines avoid waiting for boot. The completed migration plan is deleted.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • cipherstash/stack#1416: It introduced the context file and ADRs 0002 and 0003, which this change updates.
  • cipherstash/stack#1419: It implemented the same-size Blacksmith-to-RunsOn swap described by ADR 0004 and the deleted migration plan.
  • cipherstash/stack#1427: It adds timeouts to 31 jobs, and this change records its completion as part of the migration plan status.

Suggested reviewers: coderdan

Merge Risk: Minimal · up to 0713f

This pull request only edits documentation: it clarifies CI runner terms and ADR records and removes a finished migration plan. It changes no workflow or code, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "docs(ci): fill six gaps in the CI decision records and remove the swap plan" matches the main changes. It states the two parts of the PR: filling six gaps in .github/CONTEXT.md and ADRs 000…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "docs(ci): fill six gaps in the CI decision records and remove the swap plan" matches the main changes. It states the two parts of the PR: filling six gaps in .github/CONTEXT.md and ADRs 0002-0004, and removing the completed same-size swap plan. The raw summary confirms the glossary additions, ADR 0002 reference updates, ADR 0003 supersession and planned-report wording, ADR 0004 dating and quota details, and deletion of the 694-line plan. The title is slightly long at 75 characters, but it is specific and accurate.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eee80329-27cf-4c3b-9545-b661428e7bbc
Commits

Reviewing files that changed from the base of the PR and between aa5f108 and 0713f6c.

Files selected for processing: 2

  • docs/adr/0003-expensive-ci-checks-run-in-merge-queues-on-main-and-next.md
  • docs/adr/0004-same-size-swap-from-blacksmith-to-runs-on.md
Files skipped from review as they are similar to previous changes: 2

  • docs/adr/0003-expensive-ci-checks-run-in-merge-queues-on-main-and-next.md
  • docs/adr/0004-same-size-swap-from-blacksmith-to-runs-on.md

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@auxesis
auxesis added this pull request to stack #1735 November 26, 2026 06:14
@auxesis auxesis changed the title docs(ci): fill six gaps in the CI decision records docs(ci): fill six gaps in the CI decision records and remove the swap plan Nov 26, 2026
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.
@auxesis
auxesis force-pushed the docs/ci-decision-gaps branch from 6e50213 to aa5f108 Compare November 26, 2026 06:53
@auxesis
auxesis marked this pull request as ready for review November 26, 2026 09:54
@auxesis
auxesis requested a review from a team as a code owner November 26, 2026 09:54

@cipherstash-agent cipherstash-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  • general minor The PR body ("#1419 contains the changes for all six of its tasks") and the message of commit aa5f108 ("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 unknown
  • docs/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 code L-A2D70E6C for the RunInstances request rate, and the out-of-memory sign that triggers the m8a rule (exit code 137, Killed, or signal: 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.
@auxesis
auxesis force-pushed the docs/ci-decision-gaps branch from aa5f108 to 0713f6c Compare November 26, 2026 10:24
@auxesis

auxesis commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Replies to the two findings in the body of the review by cipherstash-agent:

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.

  • ADR 0004's memory rule now gives the sign of a job that ran out of memory. That job's log shows exit code 137, "Killed", or "signal: 9, SIGKILL".
  • ADR 0004 now gives the Service Quotas code for the RunInstances request rate, L-A2D70E6C. ADR 0004 also says that a second CloudFormation change set moves AppSize once that quota shows 4.

Changes to the branch. I rewrote the branch to make these fixes, with --force-with-lease.

  • Two new commits come before the commit that removes the plan: 4594fde for ADR 0003, then e294ace for ADR 0004. So that commit's statement that nothing is lost is true when it is made.
  • The first commit, 25eb847, did not change.

@auxesis
auxesis merged commit 4573f99 into main Nov 26, 2026
34 of 36 checks passed
@auxesis
auxesis deleted the docs/ci-decision-gaps branch November 26, 2026 23:23
auxesis added a commit that referenced this pull request Nov 26, 2026
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
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.

3 participants