Skip to content

fix(yield): refuse a completion marker that exists before the wait starts - #140

Merged
mergify[bot] merged 1 commit into
mainfrom
fix/adopt-stale-rc
Oct 14, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
fix/adopt-stale-rc

Conversation

@mairp

@mairp mairp commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Why

Measured live 2026-10-14 (feature 004, phase 4): an adopted regression chain's yield named an exit_code_file that an earlier job had already left on disk. The wait ended after 0 s ("yield satisfied after 0s (job rc unknown)"), and the next pass was told the job had ended while the chain was still running and taking the lab down.

What changes

A yield whose explicit exit_code_file or file_exists path already exists when it is accepted is refused with yield_invalid ("completion marker already exists: …"). The agent is told to remove the file first, name a fresh path, or use resume_when.kind: pid. Specstride's own rc file for a launched job is unaffected, because it is removed before launch.

Tests

2 new tests in lib/test_proposer_yield.py: a stale marker is refused, and a fresh marker path still resumes. python -m pytest lib/ -q -n 16: 1289 passed.

…arts

Measured live 2026-10-14 (feature 004, phase 4): an adopted regression
chain's yield named an exit_code_file that an earlier job had already left
on disk. The wait ended after 0 s ("yield satisfied ... job rc unknown") and
the next pass was told the job had ended while the chain was still running
and taking the lab down.

A yield whose explicit exit_code_file / file_exists path already exists when
it is accepted is now refused (yield_invalid "completion marker already
exists"), and the agent is told to remove it first, name a fresh path, or
wait on the pid. specstride's own rc file for a launched job is unaffected
(it is removed before launch).

Signed-off-by: mairp <oec.valle.art@gmail.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@mergify

mergify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Merge Queue Status

  • ✅ Entered queue — 2026-10-14 13:46 UTC · Rule: default · triggered by merge protections
  • ✅ Checks passed · on draft merge queue: checking #140 on main (ac65515) #141
  • ✅ Merged — 2026-10-14 13:55 UTC · at 07f123017d58285058abe70e1bd906e5174ee2ad · squash

This pull request spent 8 minutes 43 seconds in the queue, including 7 minutes 56 seconds running CI.

Required conditions to merge

@mergify mergify Bot added the queued label Oct 14, 2026
@mergify mergify Bot mentioned this pull request Oct 14, 2026
28 of 36 tasks
@mergify
mergify Bot merged commit 07f1230 into main Oct 14, 2026
6 checks passed
@mergify
mergify Bot deleted the fix/adopt-stale-rc branch October 14, 2026 13:55
@mergify mergify Bot removed the queued label Oct 14, 2026
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