Repository navigation
docs: correct stale away worker-cap comment - #59
Merged
Merged
Conversation
The away spend entry records the live worker count plus headroom, so the comment above spawn_refuse_if_away_spend_cap no longer claims that live-workers is the recorded cap.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Q2011 Y (2026-11-12): "offer it upstream. use deepseek and grok if safe". The upstream offer of the away worker-cap fix (kunchenguid#8387) got a no-mistakes documentation commit 6093b0a that removes a now-stale clause from the comment above spawn_refuse_if_away_spend_cap in bin/fm-spawn.sh: "which is also the count its entry records as the cap". Since PR 57 the entry records the live count plus 5 headroom, so that clause is wrong. This fork's main still carries it.
What Changed
bin/fm-spawn.shthat the away entry records the live-worker count as its cap.Risk Assessment
✅ Low: The change only edits a comment in bin/fm-spawn.sh. It removes the stale claim that the away entry records the live-workers count as the cap. fm_afk_contract_entry_spend_default actually records live+headroom, never below the default. The comment that remains still matches the refusal logic (live >= cap, with relaunches and secondmates exempt), so the change does what the intent asks.
Testing
Manual inspection confirmed a comment-only correction consistent with the existing headroom policy. No runtime tests or visual artifacts apply; no files were changed.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
git diff 79338f297fd3324fcebbf3d34ea0da8cc67e5fcc 95ac0a371c1bf467576869830947197ae2f462e4 --Manually inspected the corrected comment and the documented live-count-plus-five default inbin/fm-afk-contract.sh.git status --shortconfirmed no working-tree changes.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.