Skip to content

refactor(harness-ops): simplify lane-launcher.sh (part 2 of 2) - #15269

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-14570-42962460253-1
Nov 11, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-14570-42962460253-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Closes #14570

Summary

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

Simplified the second half of plugins/harness-ops/skills/lanes/scripts/lane-launcher.sh (lines 1121-2240 at the start, load_execution_target through main) without changing its outputs, exit codes, files written or flags. I chose to factor out repeated code into small helpers inside that range: et_note for the six 'execution-target:' notes, repo_data_dir for the five per-repo data-dir paths, lane_telemetry_field for three telemetry reads, print_dry_run_lane for the dry-run preview shared by launch_lane and _run_once_one, and print_unlaunched_target for the cloud-routine/cloud-project branch shared by _start_one and _restart_one. I also collapsed the duplicated untrusted-stage refusal in plan_lane_target and the duplicated record write in launch_cloud_lane, and dropped the pass-through rc variables in action_start/action_restart. Every function name another file or doc cites is unchanged.

Not verified

  • lane-launcher.test.sh suite not run: the lane has no test-runner wrapper; left to the PR's CI
  • ci-status green is left to the PR's CI
  • cant-fail-scan not applied: it scans test files, and this change touches none
  • tidy: passes 1-3 ran with no edits; one comment-deletion proposal left in place: '# The lane's linked worktree.' above lane_worktree_path restates the name, but a COMMENT-ONLY proof needed a scratch copy of the whole file and no copy tool was available. Passes 4-5 (markdown) were skipped because…
  • the lane_telemetry_bodies issue read keeps its own jq call: switching it to lane_telemetry_field would drop its tostring, which formats very large numbers differently

Fix

  • plugins/harness-ops/skills/lanes/scripts/lane-launcher.sh: second-half simplification (74 added, 83 removed). New private helpers et_note, repo_data_dir, lane_telemetry_field, print_dry_run_lane and print_unlaunched_target replace duplicated code; plan_lane_target, launch_on_target…
  • .changes/harness-ops/work-resolve-issue-issue-14570-42962460253-1-97824c8f.md: patch fragment created by new-changelog-fragment, body '### Changed' plus 'Internal simplification, no behavior change.'

Verification

The runner ran each check from the base copy against f24d113:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 22 fragments valid (run before and after the review fixes)
  • check-changed-skills: CHECK-SKILL lanes PASS, 0 errors, 3 warnings about SKILL.md size that this change did not touch
  • check-affected: 13 passed, 6 skipped over 2 changed files (run before and after the review fixes)
  • fresh-context review subagent over the full diff: found one behavior difference (in a dry run, wc's stderr on an unreadable prompt file printed after the DRY-RUN lines instead of before) and one misplaced doc comment; both fixed, and print_unlaunched_target now ends in an explicit return 0 like the…
  • grep across the repo: no test, doc or other script references the changed source text; the function names cited in docs/contracts/invocation-mode/README.md are unchanged
  • diff stat: 1 code file, 157 changed lines, within the issue's 400-line limit
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42962460253

Left out: the items under Not verified.

Related

#14570

Merge-Risk: max=MEDIUM demote=false head=f3aedffe020c4e56353f314f1441e09fbfd41207 rubric=8.4.1 rater=claude-opus-5-5 checker=claude-opus-5-5

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of f3aedffe020c4e56353f314f1441e09fbfd41207: no file of this pull request changed since the review of 2623af9.

Security review: PR #15269, incremental (f24d113 → 2623af9)

No security issues found.

Scope: this push changes one file, plugins/harness-ops/skills/lanes/scripts/lane-launcher.sh, and I read its whole change in .claude-lane/incremental.diff. The file matches no trusted-path glob. This lane already reviewed an earlier head, so this review reports blocking findings only.

What I checked

  • The untrusted-stage refusal in plan_lane_target (L1770-L1774):
    • The push puts back an explicit return 1 after untrusted_skip and an explicit return 0 at the end of the function.
    • On a cloud host (cloud-session, cloud-routine or cloud-project), a stage that may read untrusted input now fails closed on its own return 1. It no longer relies on the exit status of untrusted_skip. The function returns the same status as before, and the refusal is now stated in the function itself.
    • The guard in the ET_REFUSED branch above it (L1758-L1761) is unchanged.
    • Targets that are not cloud hosts still return 0 early through *) return 0.
  • This push widens no trust control and touches no workflow, plugin manifest or instruction surface.

Notes

  • The settled thread on this file points to this same fix, and nothing here reopens it.
  • The PR context, settled-threads and prior-findings files contain no embedded instructions.
  • I did not consult the instruction-exception register because this push removes or softens no standing instruction.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of f3aedffe020c4e56353f314f1441e09fbfd41207: no file of this pull request changed since the review of 2623af9.

Code review (incremental, blocking only): no findings

This lane already reviewed an earlier head, so this pass posts blocking findings only. It covers what changed since f24d113e, which is one hunk in plugins/harness-ops/skills/lanes/scripts/lane-launcher.sh. I read all of it.

What changed. plan_lane_target now has an explicit return 1 after untrusted_skip and an explicit return 0 at the end (lane-launcher.sh#L1770-L1774).

  • The exit status is the same as before. untrusted_skip already ended in return 1.
  • The refusal guard no longer depends on what that helper returns.
  • The new code follows the same pattern as the ET_REFUSED branch just above it (#L1758-L1761).
  • Behaviour is unchanged, which meets Simplify the lane-launcher.sh harness-ops plugin code (part 2 of 2) #14570's "Behavior is unchanged" criterion. I confirmed that by reading the code; I did not run lane-launcher.test.sh.

I didn't re-raise the settled thread on this file. It is marked lines changed since resolution: no, and this hunk is the fix it describes.

No manifest files changed, and no embedded instructions appeared in the PR context or the thread files. The PR body's test and check results are the author's claims, and I did not verify them.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM62Cb10
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 2623af9.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on 2623af9.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 11, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the merge gate refuses this head verify:earlier-fail, and the lane found every note of that earlier pr-verify FAIL already addressed by the diff, so it pushed nothing; only a session can move the head for the verifier to judge again. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 2623af9587c7254b29acc8eec0471445ebb03e24. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 11, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of max 4 on f3aedff.

@melodic-automation-lanes melodic-automation-lanes Bot added needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. and removed needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. labels Nov 11, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f3aedffe020c4e56353f314f1441e09fbfd41207, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for f3aedff

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-15269-f3aedffe020c4e56353f314f1441e09fbfd41207, expires on 2026-12-11.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 9fb64c9 Nov 11, 2026
132 of 133 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14570-42962460253-1 branch November 11, 2026 07:17
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.

Simplify the lane-launcher.sh harness-ops plugin code (part 2 of 2)

1 participant