Skip to content

chore(mac): pin swapd to #60, a spent fleet re-checks a passed reset after a minute - #1586

Merged
deathemperor merged 1 commit into
mainfrom
chore/pin-swapd-past-reset
Sep 24, 2026
Merged

deathemperor merged 1 commit into
mainfrom
chore/pin-swapd-past-reset

Conversation

@deathemperor

@deathemperor deathemperor commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

When every account was at its limit and one account's stored reset was already behind the clock, the swapd daemon treated it as "no provable recovery". It slept its five-minute fallback, past the moment the account came back. On 2026-09-24 the live account hit its 5h limit at 16:00:56Z, a minute after death4's reset, and the switch only landed at 16:06:13Z. Every session stayed stopped at the limit in between.

deathemperor/swapd#60 keeps the passed reset, so the next tick runs after the plain interval (60 s) and its fetch lands the switch. This PR moves apps/mac/build-swapd.sh to that merge commit and adds a Mac release-note fragment. The version stays 0.3.2 (unreleased on swapd's side), same as earlier pins.

Verified: INFINITUS_ENGINE_BUILD_ROOT=/tmp/… sh apps/mac/build-swapd.sh builds swapd 0.3.2 at the new rev with --locked. swapd#60 carries the regression test (fails before, switches after).

Claude Opus 5.5 via Claude Code.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • When all accounts are at their usage limits, switching now resumes about one minute after an account’s reset time has passed, rather than waiting five minutes. This can help stopped sessions continue sooner once an account becomes available.

…after a minute (deathemperor/swapd#60)

With every account at its limit and one account's stored reset already
behind the clock, the daemon read that as "no provable recovery" and
slept five minutes, past the moment the account came back. On
2026-09-24 every session stayed stopped at the limit from 16:00:56Z
until the switch at 16:06:13Z. swapd#60 keeps the passed reset, so the
next tick comes after the plain interval and the fetch lands the switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@deathemperor
deathemperor enabled auto-merge (squash) September 24, 2026 16:26
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 effective changed lines (test files excluded in mixed PRs). labels Sep 24, 2026
@coderabbitai

coderabbitai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: deathemperor/infinitus/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 2971adba-57e1-4843-9a16-16271beb6c92

📥 Commits

Reviewing files that changed from the base of the PR and between 616799e and 402eb79.

📒 Files selected for processing (2)
  • apps/mac/build-swapd.sh
  • apps/mac/changelog.d/swapd-past-reset.md

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The Mac build script pins a new swapd revision. A script comment and changelog entry describe a one-minute recheck interval instead of five minutes when an account becomes available after its reset time.

Changes

Mac swapd update

Layer / File(s) Summary
Pin swapd revision and document timing
apps/mac/build-swapd.sh, apps/mac/changelog.d/swapd-past-reset.md
The install command uses a new swapd revision. The script comment and changelog entry describe a one-minute recheck instead of five minutes after an account's reset time has passed.

Estimated code review effort: 2 (Simple) | ~8 minutes

Merge Risk: ⚪ Minimal · up to 402eb

The update addresses the reported delay when an account’s reset has passed, allowing stopped sessions to resume sooner. No actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: pinning swapd to the revision that implements issue #60. It is specific and concise enough for repository history.
Description check ✅ Passed The description clearly explains what changed, why it was needed, the observed behavior, the verification performed, and the unchanged version. It omits the template headings and checklist, but it is …
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@deathemperor
deathemperor merged commit 6970d03 into main Sep 24, 2026
22 checks passed
@deathemperor
deathemperor deleted the chore/pin-swapd-past-reset branch September 24, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant