Skip to content

docs: correct stale away worker-cap comment - #59

Merged
peterOC26 merged 1 commit into
mainfrom
fm/fm-spawn-stale-spend-comment-d1
Nov 12, 2026
Merged

peterOC26 merged 1 commit into
mainfrom
fm/fm-spawn-stale-spend-comment-d1

Conversation

@peterOC26

Copy link
Copy Markdown
Owner

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

  • Remove the stale claim in bin/fm-spawn.sh that 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.

  • Live validation: ⚠️ no-surface - 0 of 1 scenarios driven live against the product
Scenario Result Live Evidence
A maintainer reads the spawn comment without the obsolete claim that entry records the live count as its cap ⏸️ untested no This change only edits a shell comment. It has no live-validatable runtime surface; acceptance requires human review of the prose.
  • Outcome: ⚠️ 1 warning across 1 run (42.2s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⚠️ **Test** - 1 warning
  • ⚠️ this change has no live-validatable surface; proceed without live validation? (0 of 1 scenarios were driven live against the product); A maintainer reads the spawn comment without the obsolete claim that entry records the live count as its cap: This change only edits a shell comment. It has no live-validatable runtime surface; acceptance requires human review of the prose.
  • Live validation: ⚠️ no-surface - 0 of 1 scenarios driven live against the product
Scenario Result Live Evidence
A maintainer reads the spawn comment without the obsolete claim that entry records the live count as its cap ⏸️ untested no This change only edits a shell comment. It has no live-validatable runtime surface; acceptance requires human review of the prose.
  • git diff 79338f297fd3324fcebbf3d34ea0da8cc67e5fcc 95ac0a371c1bf467576869830947197ae2f462e4 --
  • Manually inspected the corrected comment and the documented live-count-plus-five default in bin/fm-afk-contract.sh.
  • git status --short confirmed no working-tree changes.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

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.
@peterOC26
peterOC26 merged commit c9d779b into main Nov 12, 2026
30 checks passed
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.

1 participant