Skip to content

refactor(autonomy): simplify resolve-prerequisites probe results - #15017

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-14419-42771245039-1
Nov 10, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-14419-42771245039-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Refs: #14419

Summary

Opened by the work-resolve-issue lane; a session then added one commit by hand. This PR is the first chunk of #14419, which stays open for a second chunk: the items under Follow-ups are not done here.

The run's own summary:

resolve-prerequisites.mjs gains a probeOutcome(result, fields) helper that builds each probe's {result, ran, provenance} record. Every existing record already had ran set to true unless its result was unresolvable, and kind: "probe" first in provenance, so the helper keeps the JSON output byte-identical, key order included. The tracker, CI, dependency-manifest, ecosystems, source-tree, activity-signal and merge-path probes and the unknown-need fallback now use it, and the ecosystems loop became a filter count. The file is 208 lines shorter.

The hand commit (734ff19) also moves probeMcp's presence and enablement records onto probeOutcome, drops the ran field its enablement accumulator no longer needs, and puts probeDependencyManifests' absent return on one line to stay within the cap. The PR is now 400 changed lines in 2 files (87 insertions, 313 deletions against the merge base), at the issue's 400-line cap.

Fix

  • plugins/autonomy/skills/setup/scripts/resolve-prerequisites.mjs: added the probeOutcome helper and the TRACKER_PROBE and TOOLCHAIN_PROBE field sets; rewrote the probe returns, probeMcp's included, as helper calls; folded probeMergePath's nested if into one condition; replaced the ecosystems counting loop with a filter count.
  • .changes/autonomy/work-resolve-issue-issue-14419-42771245039-1-15c9695f.md: patch fragment, '### Changed' / 'Internal simplification, no behavior change.'

Verification

Run locally on 734ff19:

  • node --test --test-concurrency=4 plugins/autonomy/skills/setup/scripts/resolve-prerequisites.fixtures.test.mjs: pass (25 checks, including byte-identical consecutive runs and all 8 fixture grades)
  • bash plugins/autonomy/skills/setup/scripts/resolve-prerequisites.fixtures.test.sh: pass (25 checks)
  • bash plugins/autonomy/skills/setup/scripts/check-prerequisite-resolution-slice.test.sh: pass (7 passed, 0 failed)
  • bash plugins/autonomy/skills/setup/scripts/generate-identity-prerequisites.test.sh: pass (6 passed, 0 failed)
  • pre-push check-affected: passed

The lane's runner ran each check from the base copy against 7cf93d1:

Not verified: ci-status green is left to the PR's CI. Two changed lines run past 120 characters (probeMcp's enablement call and probeDependencyManifests' absent return); wrapping them would push the PR past the 400-line cap. Tidy was skipped: the change is over the 300-line tidy cutoff.

Follow-ups

Left for the second chunk of #14419:

  • resolve-prerequisites.mjs: move probeDocumentationCorpus, probeAdvisoryDatabase and probeUpstreamChangelog onto probeOutcome.
  • resolve-prerequisites.mjs: share resolveNeed's repeated declaration-provenance literals.
  • check-signal-envelope.mjs, fixture-harness.mjs and generate-identity-prerequisites.mjs: the simplifications Simplify the setup autonomy plugin code (2 of 2) #14419 lists for them; this PR leaves all three unchanged.

Related

#14419

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7Lxjpv5B3uwhpRpD7N

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

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 734ff190c5453e3e51b58e4a7df078e2195f2152: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15017 (incremental, head 734ff19)

I found no security issues in the change since 7cf93d1.

critical-findings: 0

Blocking only. This lane already reviewed an earlier head, so this pass reports only CRITICAL and IMPORTANT findings. It found none at any severity.

Scope. The incremental list has one file, plugins/autonomy/skills/setup/scripts/resolve-prerequisites.mjs, and I read all three of its hunks:

  • probeDependencyManifests. The absent return was joined onto one line. Its fields are unchanged.
  • probeMcp enablement accumulator. The ran field was dropped from it.
  • probeMcp return. The presence and enablement records are now built with probeOutcome.

The file matches no trusted-path glob. The change touches no trust control, merge hold, token request, kill switch, plugin manifest or instruction surface.

What I checked.

  • The helper. probeOutcome (resolve-prerequisites.mjs#L156-L158) sets ran: result !== "unresolvable" and puts kind: "probe" first in provenance, followed by the fields it is given.
  • presence. The result is always present or absent, so ran is true, the same as the base literal.
  • enablement. In the base code, ran was true exactly on the two branches that set the result to present or absent, and stayed false while the result was unresolvable. The helper's rule gives the same values, so dropping the accumulator's ran loses nothing.
  • Key order. The provenance keys keep the base order: kind, probe_class, seam, path, detail.
  • File reads. No file-read or path-handling behavior changed.

PR context. The description has no embedded directives aimed at the review lane.

Spend. The change spends nothing: it is local script logic only.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 734ff190c5453e3e51b58e4a7df078e2195f2152: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental): PR #15017, changes since 7cf93d12 to 734ff190

Scope: this is an incremental review of one file, plugins/autonomy/skills/setup/scripts/resolve-prerequisites.mjs. I read every hunk of its change. The lane already reviewed an earlier head, so this review reports blocking findings only.

No blocking findings. I checked the commit that moves probeMcp onto probeOutcome against the code it replaces:

  • presence: the result is still present or absent, so ran is still true. The provenance is still {kind: "probe", probe_class: "harness-context", path: ".mcp.json"}, in the same key order (probeOutcome at L156 puts kind first).
  • enablement: the old enablement.ran was set to true exactly when the result became present or absent, and stayed false when it was unresolvable. That is the same rule as ran: result !== "unresolvable", so removing the accumulator's ran field loses nothing. The provenance key order (kind, probe_class, seam, path, detail) and the detail strings are unchanged.
  • Callers: the only reader is the output block at L697-L700. It reads only .result and .provenance, never .ran.
  • probeDependencyManifests: the absent return was only joined onto one line; its content is identical.

Two lines now run past 120 characters. That is a formatting matter, and the PR body already discloses it as a trade-off against the line cap, so it is not reported as a finding.

Earlier whole-PR finding (Follow-ups / Closes): it is resolved in the PR body. The body now opens with Refs: #14419 instead of Closes, and has a ## Follow-ups section listing the remaining probes, resolveNeed's repeated literals, and the three untouched scripts. The settled thread on the fragment agrees.

Verification: I ran nothing; this lane has no interpreter. The PR's local test runs are the author's claim and are unverified here.

Other checks: no plugin manifest changed, so no manifest lines apply. No embedded instructions were found in the PR context, settled-threads or prior-findings files.

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 7cf93d128543613ee62c1c85dd3104674ec4fb1e. 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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 7cf93d1.

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so no lane resolves it and a session builder takes it. 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=15017 -f activity=address-feedback

@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 10, 2026
probeMcp now builds its presence and enablement outcomes with probeOutcome,
which derives `ran` from the result, so the enablement accumulator no
longer tracks `ran` itself. JSON output keeps its keys and key order.
probeDependencyManifests' absent return fits on one line.

Refs: #14419

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on 734ff19.

@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 10, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 734ff19

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-15017-734ff190c5453e3e51b58e4a7df078e2195f2152, expires on 2026-12-10.

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 10, 2026
Merged via the queue into main with commit 6a45786 Nov 10, 2026
85 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-14419-42771245039-1 branch November 10, 2026 13:34
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