Skip to content

fix(session-flow): worker exports carry a no-idle-wait line - #8044

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-6413-39098756955-1
Oct 19, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-6413-39098756955-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #6413

Summary

Opened by the work-resolve-issue lane. The run's own summary:

/session-flow:orchestrate worker and worker compact exports now include a Waiting line: poll in the foreground with a bounded loop, or return what you have; never end the turn to wait on your own background job. Compact no longer drops it; handoff exports are unchanged.

Not verified

  • No eval case added for the Waiting line (reviewer suggested one); outside the issue's acceptance criteria.

Fix

  • plugins/session-flow/skills/orchestrate/SKILL.md: export-modes section inserts the Waiting line in worker and worker compact exports, and states compact keeps it
  • .changes/session-flow/issue-6413-a3f9c2e1.md: patch changelog fragment for session-flow

Verification

The run reports:

Left out: the items under Not verified.

Related

#6413

Refs #6413

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 19406bb22e18eacdd63a93d2e02b7108029e562b: 0 finding(s), 0 as inline comments.

No security issues found in the incremental change (92ccb4c..19406bb).

The diff touches only eval fixtures under plugins/session-flow/evals/: a new oc-worker-compact-export-rails case with its samples, and a new waiting-line grader plus sample for oc-worker-export-rails.

  • Instruction surface: nothing is deleted, narrowed or softened. The eval additions tighten the expected output, so the instruction-exception register did not apply.
  • Agent grant: Agent is granted to the eval only so that a max: 0 check can fail on a spawn. allowed_tools is read-only otherwise (Read, Grep, Glob).
  • Secrets and machine data: the samples are synthetic text. They hold no secrets, tokens, credentials or machine-specific data, and no raw session transcripts.
  • Regex graders: these run on model output in an eval harness, not across a trust boundary. The chained lazy (?:(?!…)[\s\S])*? groups could backtrack on large input, but that is not exploitable here.

I did not read the instruction-exception register, because the diff removes no standing instruction.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 19406bb22e18eacdd63a93d2e02b7108029e562b: 0 finding(s), 0 as inline comments.

No findings in the incremental change since 92ccb4c. I checked the new oc-worker-compact-export-rails eval case and its four samples, and the waiting-line-before-imperatives grader and sample added to oc-worker-export-rails.

What I checked

  • Spec match: the new graders and expected_outcome text match the export shape in plugins/session-flow/skills/orchestrate/SKILL.md:312-319. That shape puts the did-not-inherit line first, then the Waiting line, then the numbered items. worker compact keeps both lines.
  • Closing issue session-flow: spawned workers stall waiting on their own background work #6413: the worker-export Waiting-line criteria are covered. The PR body said no eval case existed for the Waiting line, and these two cases add one for the full and compact exports. handoff stays unchanged.
  • Grader patterns, read by hand: the new waiting-line-before-headlines and waiting-line-before-imperatives patterns require a background job mention between the top rail and 1.. Each pass sample matches and each fail sample (line dropped, or line only after the bottom rail) does not.
  • Grader patterns, read by hand: the compact worker-line-first pattern matches its pass sample. It does not match the fail sample, where the first line after the top rail is ORCHESTRATION BRIEF. The rails-not-fenced and no-agent-spawned graders and samples follow the existing pattern in oc-worker-export-rails.
  • Sample coverage: each regex grader in both cases has a samples file named after it, so every grader has at least one pass and one fail sample.

What I did not do

  • I could not run the regexes against the samples. The sandbox denied both the helper-script write and the inline Python run, so the grader checks above are from reading the patterns, not from executing them.
  • The PR's own verification claims are the author's and I did not independently confirm them.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on 92ccb4c.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 18, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: 92ccb4c4f7b75e6d0ba4c5c6b2941b7649125a06 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8044 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=8044 -f activity=address-feedback

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: risk MED at head 92ccb4c4f7b75e6d0ba4c5c6b2941b7649125a06. Only LOW merges without a human; this pull request waits for one.

MED findings:claude-review: 1 open

…compact

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of 3 on 19406bb.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a fix the lane recorded did not reach the branch, so none of its review replies was posted.

  • Reason: feedback-not-landed
  • Resume key: 19406bb22e18eacdd63a93d2e02b7108029e562b (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8044 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=8044 -f activity=address-feedback

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit 30b3691 Oct 19, 2026
20 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-6413-39098756955-1 branch October 19, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

session-flow: spawned workers stall waiting on their own background work

1 participant