Keep terminal live status accurate - #349
Merged
Merged
Conversation
…urate","authority":"manual"}
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.
Summary
runningonly when liveness evidence is real: live process, active thread, or active work-protocol execution.succeededas rawattempt_statuswhile surfacing a still-live child as operatorstatus=running.thread/archiveand completed-turn bookkeeping from making old failed/interrupted lanes appear active.Root cause
Operator status previously treated recent protocol activity too broadly for terminal-looking attempts. A post-run maintenance event such as
thread/archivecould refreshlast_protocol_activity_atand make landed/manual-handled lanes show up asrunning. Separately, asucceededattempt with a still-live marker was hidden because terminal promotion skipped succeeded attempts.Verification
npm ciinsite/cargo test -p decodex operator_status_snapshot_excludes_terminal_thread_archive_from_running_lanes -- --nocapturecargo test -p decodex operator_status_snapshot_keeps_succeeded_status_live_process_in_running_lanes -- --nocapturecargo test -p decodex operator_lane_interrupt_api_force_hard_fallbacks_after_succeeded_status_with_live_process -- --nocapturecargo make checkgit diff --checktarget/debug/decodex status --config /Users/x/.codex/decodex/projects/decodex --live --jsonreturnedactive_count 0for the current local ghost-lane repro.unavailable, not stale operator-status contract text.