Repository navigation
fix(bin): keep GitHub readers paused across re-registration - #5286
Open
connectwithclayton wants to merge 3 commits into
Open
connectwithclayton wants to merge 3 commits into
connectwithclayton wants to merge 3 commits into
Conversation
Author
|
Maintainer action requested for exact head |
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
Treat the non-durable no-GitHub-read pause as a Firstmate safety bug and route the smallest owner-side fix. Start from the operator-visible reproduction: while a no-GitHub-read credential-safety pause is active, startup or later PR registration can silently re-arm contribution observation or merge polling. Separate trigger, masking condition, and visible symptom; compare the re-arming paths with the supported local-only retirement path; inspect relevant history; test the smallest counterfactual and disconfirming evidence. Implement only if the cause is proven, turning both startup and PR-registration reproductions into regression tests. Preserve PR/head metadata, contribution records, and sidecars needed for later resumption. Do not release or weaken the pause, perform GitHub or Vault operations, touch the currently retired live observers, publish, or merge. Use the project standard validation path when credentials become safely available; until then preserve a clean implementation and report the evidence.
What Changed
Risk Assessment
✅ Low: The requested status mode removal is complete, and the remaining change is a well-bounded durable pause implementation with no newly substantiated material issues beyond the previously reviewed and explicitly ignored finding.
Testing
Live isolated CLI registration and startup confirmed that no GitHub reader was armed, no GitHub CLI was available, and PR/head metadata plus resumable sidecars remained intact. The focused six-scenario regression passed but was not live product validation, so its adversarial and scope-boundary scenario is untested under this contract.
Evidence: Live durable GitHub-read pause transcript
Source: Live durable GitHub-read pause transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 2 issues found → auto-fixed ✅
bin/fm-github-read-pause.sh:93- The pause classifies a runnable check solely from the adjacent.pr-pollsidecar. A stale GitHub sidecar can coexist with a later custom check registered under the same task ID, causing pause to delete that non-GitHub check. Concurrent GitLab registration can likewise replace a GitHub poll after classification and then be deleted. Serialize with the task publication/control locks and validate that the current registered artifacts still form the GitHub poll before unregistering.bin/fm-github-read-pause.sh:43- The newstatusmode is not required by the stated durable-pause fix and expands the command's user-facing surface beyond the required pause owner. The smallest implementation can omit this mode; remove it unless separate status behavior is explicitly desired.🔧 Fix applied.
✅ Re-checked - no issues remain.
bash tests/fm-github-read-pause.test.shLive isolatedbin/fm-pr-check.sh delivery https://github.com/o/r/pull/8with an active pause andghabsent from PATHLive isolatedbin/fm-bootstrap.shwithFM_BOOTSTRAP_NETWORK=skip, an active pause, andghabsent from PATHInspected persisted observer, PR-poll, registration, metadata, and pause-marker state before and after startup✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.