Skip to content

fix(inactive-reconcile): withhold terminal outcome while the agent is alive - #259

Merged
trillium merged 1 commit into
mainfrom
fm/port-8085-inactive
Nov 3, 2026
Merged

trillium merged 1 commit into
mainfrom
fm/port-8085-inactive

Conversation

@trillium

@trillium trillium commented Nov 2, 2026

Copy link
Copy Markdown
Owner

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.sh passes.

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 in fm-crew-state.sh, which the scan already skips (only done/failed qualify), 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
Loading

@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b2075ecc-846d-422d-8644-97aaf7f178b3
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@trillium
trillium merged commit f043557 into main Nov 3, 2026
98 of 102 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