Skip to content

docs: 2.1.0 notes for the gc report cache and the fixes since the freeze - #6675

Merged
janicduplessis merged 2 commits into
mainfrom
docs/release-notes-2.1.0-gc
Nov 29, 2026
Merged

janicduplessis merged 2 commits into
mainfrom
docs/release-notes-2.1.0-gc

Conversation

@janicduplessis

Copy link
Copy Markdown
Collaborator

Description

The 2.1.0 version commit (981bff9, #6665) is on main but not tagged. Since then #6656, #6670, #6672, #6667, #6623 and #6625 have landed, and the maintainer wants them in 2.1.0. Per RELEASE.md section 4 step 3, this notes pull request names them, and its merge commit becomes the release commit.

Solution

docs/releases/2.1.0.md gains:

--refresh is a new flag, and it ships with #6623's quoted maintainer decision ("could gc defaults to cached, but have refresh flag or smt"). No version change: the package manifests already carry 2.1.0.

Test plan

  • I checked each new claim against main at 1c03227: the --refresh refusal and its STIM_BAD_ARG code and the stale-report note in commands/gc.ts, the phase names in stimd/passes/level-run.ts, the join line in daemon/disk-owner.ts, the engine lines in engine-store/promote.ts, the aapt2 lookup, and the empty easSessionSweep default in commands/gc/report.ts.
  • pnpm run format:check passes. The notes contain no em dashes.

@janicduplessis janicduplessis added the area: docs docs/ and root documents label Nov 29, 2026
@janicduplessis

Copy link
Copy Markdown
Collaborator Author

Fresh review of 70d2d5f (docs/releases/2.1.0.md only). The branch is 0 commits behind main (1c03227).

Result: no confirmed findings. Adding review: ai-approved; not marking ready or merging.

Coverage. All 28 commits in v2.0.0..origin/main other than the version commit 981bff9 have an entry (checked by short SHA). The six that landed after the version commit (#6656, #6670, #6672, #6667, #6623, #6625) are new entries, and each one's Fixes link matches the PR's closing issue: #6645, #6668, #6669, #6664, #6612, #6613. The links added to the internal and test-only lines also match their PRs: #6648 closes #6642, #6650 closes #6649, #6641 closes #6640. The new user-visible breaks (gc no longer keeps the workspace it runs from, orphanedEasSessions always empty) are under "Removed (breaking)" and have migration notes.

Claims checked against main:

  • gc report cache: GC_REPORT_STALE_MS = 15 min and GC_REPORT_IDLE_REFRESH_MS = 60 min (core/state/gc-log.ts). refreshGcReport (daemon/mark-refresh.ts) sweeps when the report is 15 min old with a newer mark, an hour old, or was read at a level other than normal. stimd only starts the refresh at normal pressure with daemon.mode on (stimd/main.ts refreshMarks). The stale note is on stderr and names --refresh. --refresh without --dry-run throws STIM_BAD_ARG. measured: {from, at, parts} is in the payload (commands/gc.ts). --pressure and stim-server behave as feat: stim gc --dry-run answers from the gc report stimd keeps fresh, --refresh measures again #6623 and LLP 0001 describe.
  • Progress: the phase labels level, discover, measure, plan, dormant and ladder (stimd/passes/level-run.ts), the gc summary line, the stderr output in --json mode (commands/gc/progress.ts), the join line (daemon/disk-owner.ts), the engine fetch and self-test lines (engine-store/promote.ts) and the remote wait line (commands/remote-update.ts).
  • orphanedEasSessions: easSessionSweep defaults to orphaned: [] (commands/gc.ts:186). staleEasLedgerEntries is still collected.
  • fix: remove a detached worktree whose HEAD a merged pull request holds #6656 and fix: verify native and plugin APKs with aapt2 #6670 match their PR bodies, including the MERGED, same-repository and equals-or-contains rule, "a failed or missing gh waives nothing", and aapt2 in build-tools 26.0.0 and later.
  • No em dashes. Dropping the (stim) tag on the cross-spawn line is consistent with RELEASE.md section 1, which asks for a package name only when a line is not about the CLI.

Nits (optional):

  1. Line 15: "a request that joins a pass already under way says so and hears it from that point" overstates one case. LLP 0030 says a tick or lane pass prints no phase lines, so a request that joins stimd's own pass gets only the join line and the action lines. Suggested wording: "...says so, then prints that pass's remaining lines (only its actions when stimd started the pass)."
  2. Line 15: the closing line prints as label gc followed by finished: N actions taken, X freed in T. Writing it as `gc` `finished: ...` would match the output better than `gc finished`.
  3. Line 14: "a Desktop report read also carries the parts read so far" leaves out that the partial is dropped from a snapshot that would exceed Desktop's 16 MiB message limit. That is a rare case and probably fine to omit.
  4. Line 43: "Run stim gc knowing it no longer spares the checkout you run it from" tells the reader nothing to do. If there is a supported way to keep a checkout (maintenance.keep is the pin the planner checks), naming it would make the note actionable.

Product and contract points (all already merged, not decided in this PR):

@janicduplessis janicduplessis added the review: ai-approved A fresh AI review found nothing left to fix label Nov 29, 2026
@janicduplessis janicduplessis removed the review: ai-approved A fresh AI review found nothing left to fix label Nov 29, 2026
@janicduplessis

Copy link
Copy Markdown
Collaborator Author

Re-review of c30d190. The only change since 70d2d5f is two sentences in docs/releases/2.1.0.md, and the branch is still 0 commits behind main. No findings. Adding review: ai-approved again.

  • Line 15, joined pass and closing line. This now matches the code:
    • The closing line is phase('gc', passSummary(...)), which prints finished: N actions taken, X freed in T (plus , N failed when some actions failed) (commands/gc.ts).
    • A request that joins a pass prints the join line (daemon/disk-owner.ts), then the lines the pass prints from that point on.
    • LLP 0030 says a pass of the tick or the lane prints no phase lines, so "a pass stimd started on its own prints no phase lines, only its actions" is correct.
  • Line 43, the maintenance.keep note. This is also accurate:
    • maintenance.keep is a project-only setting (core/state/settings-registry.ts), so stim settings set maintenance.keep true run in the checkout writes it there. guide cleanup gives the same command.
    • An acting stim gc respects it on each deletion path:
      • The dormant and idle eligibility check returns pinned by maintenance.keep (daemon/stages.ts:185, policy/idle.ts:135), so the checkout's build outputs and node_modules/Pods are not reduced.
      • Worktree removal skips a pinned worktree (commands/gc/worktrees.ts:333).
      • The ladder keeps a pinned Cargo target (daemon/ladder.ts:658).
    • gc --help says it "never touches a workspace that is ... pinned by maintenance.keep". What a pin does not cover is machine-wide: shared caches and simulator runtimes, plus idle stop, which deletes nothing. That is consistent with "keep a checkout from cleanup".

@janicduplessis janicduplessis added the review: ai-approved A fresh AI review found nothing left to fix label Nov 29, 2026
@janicduplessis
janicduplessis marked this pull request as ready for review November 29, 2026 06:30
@janicduplessis
janicduplessis enabled auto-merge (squash) November 29, 2026 06:30
@janicduplessis
janicduplessis merged commit 604fc53 into main Nov 29, 2026
63 of 65 checks passed
@janicduplessis
janicduplessis deleted the docs/release-notes-2.1.0-gc branch November 29, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs docs/ and root documents review: ai-approved A fresh AI review found nothing left to fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant