Skip to content

feat(pr-unblock): dark-launch test-scope declarations from the selection trace - #18460

Merged
kyle-sexton merged 14 commits into
mainfrom
feat/pr-unblock-declare-test-scope
Nov 23, 2026
Merged

kyle-sexton merged 14 commits into
mainfrom
feat/pr-unblock-declare-test-scope

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs: melodic-software/architecture#194

Summary

A pull request whose only red lane is Test Selection's "Trace the changed suites" step needs test-scope: lines a person writes by hand. This PR adds a lane activity that builds those lines from the failed trace. It ships dark: test-scope.apply is false, so the select job validates the trace, builds the patch and uploads it, and nothing is pushed. The existing pr-unblock dispatcher starts it on its existing cron and push triggers. This PR adds no workflow_run trigger, no trusted-dispatcher change and no broker change.

Fix

  • apply-patch api-only row. The new test-scope row is api-only. The write runner holds only the trusted base checkout (checkout: base). apply-patch reads each patched file's head blob over the API and verifies its id, applies the patch in a scratch index, and builds the tree from the head's tree over the API. It checks each patched path in the built tree, then moves the branch with force: false from the observed head SHA. It refuses a Dependabot PR and a head that already carries the Lane-Activity: pr-unblock/fix-test-scope trailer, the trailer the write runner fills from patch-activity.
  • Content rule test-scope-lines and predicate test-suites. The content rule admits only inserted lines matching ^(#|//) test-scope: [A-Za-z0-9._@+/-]+$. Each line must use the suite type's comment character and the file's line ending, sit inside the leading block scope_declarations reads, and repeat no declared path. The mode must not change. The predicate admits suites outside .github/ only. The shared parser is .github/scripts/pr-unblock/test-scope.mjs, and its test checks it line for line against the real scope_declarations.
  • declare-test-scope.mjs, run by the select job as base code. It locates the PR's pull_request run of pr-require-checks whose only failed job is Test Selection, failed first at the trace step. It reads the trace as untrusted data:
    • It refuses a not-traced suite, a not checked verdict, and any gap verdict outside ^(selects |unmapped: ), deleted included.
    • It declares only in suites the PR changes, for reads present at the base and the head.
    • It builds a declaration only when every gap can be declared; otherwise it builds nothing.
    • It stops when the head is the lane's own commit, or the PR already carries two lane commits.
  • pr-unblock.yml jobs. fix-test-scope-select and fix-test-scope-not-run post the check on every outcome, so each head is sent once. apply-test-scope runs only when apply is true. The dispatcher's own filter requires a same-repository, ready PR into main, not opened by Dependabot, with no do-not-merge or needs-session label and no adoption idle wait.
  • Registrations. Write-runner escalation enums at both sites, escalation routes (fail, no label), wired into report-stop-status and report-escalation, lane grants, lane registry, artifact retention (30 days), and the config schema's test-scope.apply.
  • Dark stops. While test-scope.apply is not true, every select-side stop gives skip-reason: lane-stopped and no escalation reason. The check run is the only write, so no failing status and no comment are posted. With apply true, the same stops escalate, so the flip needs no workflow edit.
  • Merge-holds floor. test-scope.mjs and declare-test-scope.mjs decide what the bot writes unattended, so they get floor rows with author-lift: false, regenerated by scripts/sync-hold-floor.py. In the three workflows the regeneration touched, only those two paths were added.
  • Deviation from the plan. The activity is named fix-test-scope. The actions vocabulary has no declare verb, and the config reader refuses declare-test-scope. The script keeps its name, declare-test-scope.mjs.

Verification

Each file was run alone under nice -n 19 node --test:

  • apply-patch.test.mjs: 443 pass (12 new).
  • test-scope.test.mjs: 5 pass, including the parity check against scripts/affected-tests.sh.
  • declare-test-scope.test.mjs: 7 pass.
  • fix-ci-dispatch.test.mjs, declare-test-scope.test.mjs and dispatch.test.mjs together: 180 pass.
  • .github/actions/resolve-config/*.test.mjs (callers, live-config, resolve, lane-grants, api-budget-coverage and the rest), workflow-gates.test.mjs, gate-source.test.mjs, check-kill-switch.test.mjs, lane-registry.test.mjs and collect-base-activity.test.mjs, with the files above: 2069 pass, 0 fail.
  • After the last edits: live-config.test.mjs 67 pass.

Other suites, all with 0 failures:

  • run-title: 6 pass.
  • credential-legs: 3 pass.
  • report-check-run: 48 pass.
  • log-api-budget: 83 pass.
  • clear-escalations: 128 pass.
  • refire-refused: 48 pass.
  • merge-holds: 76 pass.
  • check-trusted-trigger: 488 pass.

Shell suites, all passing:

  • report-escalation.test.sh: 0 failures.
  • check-artifact-retention.test.sh: 52 pass.
  • check-convention-yaml.test.sh: 51 pass.
  • pr-unblock-trusted-base.test.sh: 33 pass.
  • read-runner-dispatcher-gate.test.sh: 10 pass.
  • check-read-caller-keys.test.sh: 76 pass.
  • write-runner-never-rules.test.sh: 75 pass.

Flip criterion

test-scope.apply stays false until both of these are true:

  • 5 real gaps where the uploaded patch-pr-unblock-fix-test-scope-* patch equals the human fix that landed.
  • The CI cost of each bot head has been measured.

The flip is its own PR and carries those numbers. Before the flip, also:

  • Ask the owner again about an event-started dispatcher. It is deferred today, so a bot start can take up to 30 min.
  • Defer fix-ci on a head that fix-test-scope handles.
  • Give the new dispatcher the dispatch limits the others get.
  • Tell the authoring sessions that a red Test Selection may get a bot commit, so they fetch before pushing.

Independent review

Code and security review ran at c5f7aa3. Two Important findings were fixed in fcffa74:

  • The trailer constant did not match the commit's trailer, so the 2-commit cap never fired.
  • The test-scope reasons were not wired into report-escalation.

The content rule now refuses a line above a shebang and any path that is not exact. The re-review at 8ea0167 found no Critical or Important finding and no security finding at P1-P3. Open suggestions: pin the write runner's PATCH_ACTIVITY input in a test, and assert that both reporters' if: is false in the dark context. Remaining P5: the check that the PR changed the suite is enforced only on the select side; the apply-side exact-path check narrows it.

Related

Baseline from the .work measurements of human fixes for Test Selection gaps:

  • Human red to push: median 7.4 min.
  • Red to green: median 15.4 min.
  • Fix-head CI: 39.1 job-min.

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 23, 2026 09:37
A test-scope patch row lets the lane add `test-scope:` lines to suites a
PR changed, and nothing else. It is the first api-only row: the write
runner keeps only the trusted base checkout (checkout: base), and
apply-patch reads each patched file's head blob over the API, verifies
its id, applies the patch in a scratch index, builds the tree from the
head's over the API, checks each patched path in the built tree, and
moves the branch with force: false from the observed head. No PR code is
checked out or run in the job that holds the lane token.

The test-scope-lines content rule admits only inserted lines matching
^(#|//) test-scope: <one exact path>$ with the suite type's comment
character and the file's line ending, inside the leading comment block
scripts/affected-tests.sh scope_declarations reads, repeating no declared
path, with the mode unchanged. The parser lives in
.github/scripts/pr-unblock/test-scope.mjs, which the write runner now
stages beside apply-patch, and its test checks it line for line against
the real scope_declarations. The test-suites predicate admits suites
outside .github/ only. The api-only path also refuses a Dependabot PR
and a head that already carries the row's Lane-Activity trailer.

Refs: melodic-software/architecture#194

Co-Authored-By: Claude Opus 5.5 <[email protected]>
declare-test-scope.mjs is the base-code select step for the new
declare-test-scope activity. `locate` re-reads the pull request (head SHA,
same-repository head, not a draft, not Dependabot), stops with
test-scope-gaps-remain when the head is the lane's own trailer commit or the
PR already carries two of them, and names the pull_request run of
pr-require-checks whose only failed job is Test Selection, failed first at
"Trace the changed suites".

`build` treats the uploaded trace as untrusted. gaps.tsv, suites.tsv and
verdicts.tsv must be regular files of at most 1 MiB with exact tab fields
and no CR. A not-traced suite, a "not checked" verdict, or a gap verdict
not matching ^(selects |unmapped: ) (a deleted read included) refuses the
whole trace as test-scope-not-all-gaps. Each gap's suite must be a suite
the PR changes, outside .github/, regular at the head; each read must be
one exact path present at the base and the head and not yet declared. Any
gap the lane cannot answer refuses them all, so no partial fix is built.
The patch is built from blobs in a scratch index, never by running PR
code, and keeps the suite's line endings.

Refs: melodic-software/architecture#194

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The existing pr-unblock dispatcher (pr-unblock-dispatch.yml, on its cron
and push triggers) now also sends fix-test-scope for an open pull request
into main that is ready, from this repository, not Dependabot's, carries
no do-not-merge or needs-session label, whose ci-lanes failed and whose
pr-require-checks run failed only at Test Selection's "Trace the changed
suites" step. It has no adoption idle wait, and sends a head once: any
fix-test-scope check on the head records it.

pr-unblock.yml runs fix-test-scope-select (base code only: it reads the
head, resolves the slot, locates the trace run, downloads its artifact,
checks out the head without credentials as data, and runs
declare-test-scope.mjs), fix-test-scope-not-run, which posts the check on
every decided outcome, and apply-test-scope, which calls the write runner
with patch-prepare test-scope. The new test-scope config section's apply
key is false, and apply-test-scope runs only when it is true: until then
the select job validates, builds and uploads the patch (kept 30 days so
each can be compared with the human fix) and nothing is pushed.

apply-test-scope is a checkout: base activity, so the write runner holds
only the trusted base and apply-patch takes its api-only path. Its hold
labels include the activity's labels-absent list, needs-session among
them, read again before the push. The write runner admits the five
test-scope-* reasons at both enum sites; they route to fix-test-scope as
fail with no label and are not wired into report-escalation, so during
the dark launch a refusal shows only as the check's skip reason.

The activity is fix-test-scope, not declare-test-scope: the actions
vocabulary (.github/standards/github-actions-conventions/vocabulary.json)
has no `declare` verb and the config reader refuses the name.

Refs: melodic-software/architecture#194

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
kyle-sexton and others added 3 commits November 23, 2026 09:55
…its stops

- declare-test-scope.mjs TRAILER is now Lane-Activity: pr-unblock/fix-test-scope,
  the value apply-test-scope's commit carries (patch-activity: fix-test-scope,
  filled into patch-rules.json's {lane}/{activity}). locate's own-head check
  and two-commit cap read the wrong trailer before. A callers test builds the
  trailer from the workflow's apply-test-scope inputs and patch-rules.json,
  and the locate test builds its fixture the same way, so a drift fails.
  apply-patch.mjs compares against the message it built itself and needs no
  change; its test fixtures now pass the activity production passes.
- report-stop-status and report-escalation consume fix-test-scope-select's and
  apply-test-scope's escalation-reason, head and clear, as for shared-copies,
  so the test-scope routes in escalation-routes.json reach a person.
  pr-pipeline.yaml's report-escalation needs lists both activities.
  The comment above report-escalation's if: is removed rather than edited
  (the comment lint refuses rewritten lines). What it said, now with the new
  source: a reply job that failed with no reason (its lane token, a script
  error) stops as feedback-publish-failed, derived from its result; when
  report-stop-status withheld that stop's status, because the feedback sweep
  sends a workflow-modified refusal again, no comment posts either, and a
  skipped or failed report-stop-status leaves the output empty, so the comment
  posts. escalation-reason is set only by the write runner's own steps, the
  base's reply, verdict and apply-patch scripts, and the base scripts of
  resolve-conflicts-select, check-conflict-scan-refusal,
  address-feedback-select, review-dependency-select, fix-ci-context,
  sync-shared-copies-select and fix-test-scope-select. At most one escalates:
  one activity runs per dispatch, a reply, verdict or push job runs only after
  a select job proceeded, and a select job, or fix-ci-context, escalates only
  before any model turn. A rung-up stop escalates too unless
  apply-patch-rung-up applied the retry's patch cleanly: its own reason, else
  ci-fix-escalated. On a cancelled run the always() branch fires, but the
  write workflow's run job skips, so no label is applied and ci-status stays
  red.
- test-scope-lines refuses a declaration inserted above a shebang and a path
  that is not one exact path (an empty, . or .. segment). exactPath moves to
  test-scope.mjs, which planDeclarations imports. The `../a.sh x` case, which
  was refused for its second word, is split into separate cases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test-scope.mjs (the apply-side content rule) and declare-test-scope.mjs (the
select job's script) decide what the lanes App may push, so they join
merge.diff-check.floor-paths as gate rows with author-lift: false, like the
prompt-text rows. scripts/sync-hold-floor.py regenerated merge-holds.mjs,
the review callers' hold-paths and ci-status's hold_patterns. The floor pins
in test_floor_paths.py, test_diff_risk.py and test_merge_holds_sync.py move
by the two rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ly is off

A dark activity makes no new unattended writes. While the base config's
test-scope.apply is not true, declare-test-scope.mjs turns a locate or build
stop into skip-reason=lane-stopped (escalation-routes.mjs stopSkip), so the
fix-test-scope check posts as before and report-stop-status and
report-escalation, which read only escalation-reason, post no failing status
and no comment. With apply on, the same stops emit escalation-reason, so the
flip needs no workflow edit. apply is read once per run through
loadTestScope from BASE_DIR, now passed to the locate step too; the select
job's proceed and skip-reason outputs carry the build step's skip.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
Main added its own hold-floor row. pr-pipeline.yaml merged cleanly with
main's row and this branch's two test-scope rows. scripts/sync-hold-floor.py
regenerated pr-require-checks.yml's hold_patterns, and the floor pins in
test_floor_paths.py, test_diff_risk.py and test_merge_holds_sync.py are
computed from the merged floor: 164 classes (gate 74), 99 high, 24
author-review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 15:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T15:19:20.786682Z c604ba6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18460 at 0b6caa32

No security issues found. I read every hunk of all 38 changed files in .claude-lane/pr.diff. For each file on a trusted path, I also read what it gates. This lane already reviewed an earlier head (0da0a46f), so this review was blocking only: it reports CRITICAL and IMPORTANT findings only. The one prior entry is a summary with no findings, so nothing is restated.

Trust controls I checked

  • Token broker grants. I read lane-grants.json and docs/conventions/pr-pipeline.yaml.

    • fix-test-scope gets read. apply-test-scope gets mutate-branch. That is the same pinned grant the other mutate-branch activities hold ({contents: write, pull-requests: read, issues: read}, asserted in live-config.test.mjs), so no token gains scope.
    • The write token is used only by base-tip apply-patch.mjs under checkout: base. No model turn holds it.
    • apply-test-scope runs only when the select job's apply output is 'true' (pr-unblock.yml#L2210 in the diff). apply comes from testScopeFromBase, which reads the default-branch tip with a strict === true (resolve-config.mjs#L649-L651). The tip ships test-scope: apply: false (pr-pipeline.yaml#L1179-L1180), so the write token is never minted today.
  • Kill switch. In fix-test-scope-select, the step that reads the PR head runs only when check-kill-switch says proceed, and every later step depends on that read. apply-test-scope is added to the kill-switch-ok caller list, so the write runner checks the switch again.

  • Merge holds. These only gain two gate rows, test-scope.mjs and declare-test-scope.mjs (author-lift: false), so holds get wider, not narrower:

    • merge-holds.mjs
    • the generated hold_patterns in pr-require-checks.yml
    • the hold-path lists in the two review workflows
    • the merge floor rows in pr-pipeline.yaml

    Escalation routes are added and none drops a label from an existing route. The comment block removed from report-escalation in pr-unblock.yml is YAML commentary only, with no change to if: logic.

  • Not touched: the trusted-trigger check, the signer's load path, and the other actions under .github/actions/.

Untrusted input paths I checked

  • Selection trace artifact. The PR's pull_request run writes it, so it is attacker-controlled. Base code reads it under a read-only github.token.
    • table() refuses symbolic links, files over the size limit, CR/NUL bytes and wrong field counts. Suite rows are checked by regex.
    • Every gap path must pass exactPath (no .., ., empty segments or glob characters). It must name a suite the PR changes, outside .github/ and not CODEOWNERS or lane-grants, and the file it reads must exist at both base and head.
    • Every log line uses a fixed prefix plus either cleaned text (logText) or a validated path, so there is no workflow-command injection.
  • PR head checkout. It uses persist-credentials: false, and no PR code runs.
    • gitIn disables hooks, fsmonitor, the attributes file, the external diff tool and autocrlf.
    • hash-object --no-filters and diff --no-ext-diff --no-textconv keep the PR's .gitattributes from running drivers.
  • apply-patch pushApiOnly.
    • Each head blob read over the API is re-hashed and checked against its tree entry id. The built tree is checked again before the commit.
    • It runs the row's refusals: workflows, CODEOWNERS, .gitmodules, settings, lane-grants, symlinks and gitlinks, plus ALWAYS.
    • It also checks credential leaks, max-files, the test-suites allow predicate (outside .github/) and the test-scope-lines content rule. That rule allows only exact inserted # test-scope: / // test-scope: lines inside the leading comment block, with the file's mode unchanged.
    • It refuses a Dependabot PR, a held label, a moved head and a head that is the activity's own commit. It pushes with force: false.
    • An added line can only make more suites run, never fewer.
  • Dispatcher. testScopeSkip requires a ready, same-repository PR into the base, not opened by Dependabot and with no hold label. The select job checks again that the PR is same-repository and that Dependabot did not open it. Fork heads never reach the activity.

Spend

The new activity runs with no model turn, on the existing pr-unblock cron and push triggers, on standard ubuntu-24.04 runners. It spends Actions minutes only, with no paid-plan or runner-size change. This is not a hold.

The instruction-surface lens does not apply: no CLAUDE.md, AGENTS.md, rules, skill or agent body is changed. There is no plugin manifest change, so there are no manifest lines.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on c604ba65f45ffe27b923d48d8c7a2de33a252303; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread .github/workflows/pr-unblock.yml Resolved
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18460 at 0b6caa32, blocking findings only

This lane already reviewed four earlier heads (c604ba65, 0f9b008b, 56d2c139, 0da0a46f), so this review reports blocking findings only. The new head merges origin/main into the branch again. I read every hunk of all 38 changed files in the full diff.

No blocking findings.

Earlier findings

  • suites.tsv width (blocking, discussion_r4668805960): still fixed.
    • readTrace reads the file at SUITE_COLUMNS = 4 and checks each row against SUITE_ROW (declare-test-scope.mjs#L67-L84).
    • The tests run the real scripts/selection-audit.sh trace and pin the width of both row writers.
  • Deleted report-escalation invariant comment (advisory, discussion_r4667896596): still applies. The comment is still deleted at this head. Blocking-only mode drops advisory findings, so I did not post it again.

Checked, nothing to report

  • Dispatcher call. The new dispatchTestScope calls api.readRequiredRun(sha, DEFAULTS.requiredWorkflow). The real client method returns { run, jobs } (dispatch.mjs#L722-L734), which is the shape traceOnlyFailure reads.

  • Dispatcher limits. It is capped at 2 dispatches per run. It marks a head handled once its check run exists, and it skips a head whose run is still in flight.

  • Dark launch. While test-scope.apply is not true:

    • Every select-side stop gives skip-reason: lane-stopped and no escalation reason.
    • fix-test-scope-not-run still posts the check, so each head is sent once.
    • apply-test-scope runs only when apply == 'true', and the live config sets apply: false.
  • apply-patch pushApiOnly. Before any write it:

    • checks each head blob's id;
    • applies the patch in a scratch index;
    • runs the refusals, the test-suites allow and the test-scope-lines content rule;
    • drops Dependabot and held pull requests;
    • checks every patched path in the built tree.

    It then moves the branch with force: false.

  • Row check. checkRow refuses api-only on any row that is not a pull request row that skips a moved head and names a refusing content rule.

  • Escalation wiring. The new reasons reach all of these, and the tests cover each:

    • the write runner's allow-lists at both sites;
    • escalation-routes.json;
    • report-stop-status;
    • report-escalation.

Closing issue. The PR closes no issue; it only says Refs: melodic-software/architecture#194. There are no acceptance criteria to check.

Loosened checks. I found no loosening:

  • The new write-runner escalation reasons are paired with the new test-scope row only.
  • gate-source.test.mjs adds the new activity to its allowed list.
  • The hold-floor count and digest changes are pin updates.
  • The callers.test.mjs change replaces one assertion with stronger ones.

Loosened checks would be marked: fail. That is the default, because the prompt had no loosened_check_verdict: or loosened_check_patterns: lines; patterns: 0. The prompt had no decision-record line either, so I did not check the citation requirement.

Spend. This spends only standard-runner Actions minutes and API calls (up to 2 extra pr-unblock dispatches per dispatcher run) plus a 30-day patch artifact. It adds no paid resource, so there is no hold.

Verification. I ran nothing. The test counts in the PR body are the author's claims, and I did not verify them.

No verifier subagent ran, because no candidate finding met the blocking bar.

Verifier dropped 0 of 0 candidates.

Keep main's trusted-actors.mjs trust row and this branch's two
test-scope gate rows in the merge-holds floor, regenerate the floor
copies with scripts/sync-hold-floor.py, and repin the babysit floor
tests to the combined counts and digests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7MnPkm1aG9ivrZ2Enp
@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 23, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

The pr-unblock lane stopped resolve-conflicts on this pull request: a conflicted path is a workflow, submodule config or a settings file, which the lane does not resolve. 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/conflict 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=18460 -f activity=resolve-conflicts

kyle-sexton and others added 2 commits November 23, 2026 11:26
…lare apply-patch's reads

- workflow-gates.test.mjs: the report-stop-status HEAD_SHA case lists
  fix-test-scope-select beside sync-shared-copies-select, so its head-sha
  resolves in the fixture and the test asserts the stop status posts on
  the test-scope select head.
- apply-patch.test.mjs: declare test-scope on .github/scripts/lib/* and
  .github/scripts/apply-patch/*. The staged-layout test copies both
  directories whole, so the trace saw 55 reads the selector did not map;
  the same declaration covers the same copy in publish-feedback.test.mjs.
- Changelog fragments: pr-pipeline minor for the test-scope.apply schema
  key; source-control none, test pins only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7MnPkm1aG9ivrZ2Enp

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 0f9b008b3b4f2a83d61e505495f69c3f8ebbc296; the summary is in this lane's pull request comment.

claude-lane: claude-review

kyle-sexton and others added 2 commits November 23, 2026 11:39
The fix-test-scope jobs were written against v0.81.0, and main has since
re-pinned every ci-workflows action to v0.82.1 (#18487). callers.test.mjs
requires one pin across the tip steps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7MnPkm1aG9ivrZ2Enp
…sh writes

scripts/selection-audit.sh writes each suites.tsv row as suite, exit code
or not-traced, seconds and read count, but readTrace read it at two
columns, so every real trace was refused as test-scope-invalid. readTrace
now reads four columns and checks each row's shape, which also covers the
exit-code check traceGaps carried.

The tests built their traces by hand at the wrong width. A new test runs
selection-audit.sh trace on a throwaway repository with only strace and
the selector stubbed, and reads the trace it writes; another fails when
a suites.tsv printf in the script changes width.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7MnPkm1aG9ivrZ2Enp
@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 23, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 23, 2026
Keep main's floor rows from #18434 and this branch's two test-scope
gate rows in the merge-holds floor, regenerate the floor copies with
scripts/sync-hold-floor.py, and repin the babysit floor tests to the
combined counts and digests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7MnPkm1aG9ivrZ2Enp
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 23, 2026
Keep main's merge-holds floor rows and this branch's two test-scope
gate rows, regenerate the floor copies with scripts/sync-hold-floor.py,
and repin the babysit floor tests to the combined counts and digests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7MnPkm1aG9ivrZ2Enp
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 37de48f Nov 23, 2026
80 of 81 checks passed
@kyle-sexton
kyle-sexton deleted the feat/pr-unblock-declare-test-scope branch November 23, 2026 20:18
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant