Repository navigation
fix(inactive-reconcile): withhold terminal outcome while the agent is alive - #259
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
What changed
Ports upstream kunchenguid#8085 ("fix(inactive-reconcile): withhold terminal outcome while the agent is alive") into this fork. Cherry-picked and squashed upstream commits 8a36467, d7d1e43, 099498b, 2379f3b, 8de2e01, 202444e; the only adaptation was resolving a one-line docs conflict in
docs/architecture.md(fork added a reaper sentence next to the edited line).Files:
bin/fm-inactive-reconcile.sh,docs/architecture.md,tests/fm-inactive-reconcile.test.sh.tests/fm-inactive-reconcile.test.shpasses.Audit proposal 4 (robots-nic7y): the scan no longer marks a live worker failed. Spec item 2 needed nothing extra: a worker with an open
paused:/needs-decision:key reads as paused infm-crew-state.sh, which the scan already skips (onlydone/failedqualify), and a live busy or relaunched worker is now withheld by the ported code. An idle live worker with a genuine terminal status still reports, by upstream design.What a human sees differently
No command output changes. The supervisor no longer gets an "inactive terminal outcome" wake or a failed record for a worker whose agent is still running.
Evidence
flowchart LR subgraph Before A1[status quiet 15min, crew-state says failed] --> B1[outcome recorded + supervisor woken] end subgraph After A2[status quiet 15min, crew-state says failed] --> C2{agent alive?} C2 -- busy or newer incarnation --> D2[withheld, no wake] C2 -- idle same incarnation / dead / unreadable --> E2[outcome recorded + supervisor woken] end