Skip to content

refactor(ci): give lane scripts one GitHub client module in scripts/lib - #18310

Merged
kyle-sexton merged 7 commits into
mainfrom
refactor/lane-github-client
Nov 23, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
refactor/lane-github-client

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: candidate 2 (stage 1) of an /architecture:improve deepening pass over the CI lanes, run in a local session.

Summary

The GitHub client most lane scripts use (createGitHub, its retry, pagination, GitHubError, the GraphQL readers) lived inside the trigger trust-gate action, .github/actions/check-trusted-trigger/check-trusted-trigger.mjs, so 72 lane scripts imported their client from a trust gate. Any client change edited the trust gate's file. This PR gives the client its own module in .github/scripts/lib.

Fix

  • New .github/scripts/lib/github-client.mjs holds the client code. With comments stripped, it is byte-identical to the moved region: the retry delays, timeouts, errors and rate-guard routing do not change.
  • check-trusted-trigger.mjs keeps only the trust verdict and imports the client from lib.
  • 68 static and 4 dynamic importers now import from lib. Nothing re-exports the client from the action file, and no repository outside this one imports it (org-wide code search).
  • Trust paths: github-client.mjs gets its own class: trust floor row in docs/conventions/pr-pipeline.yaml, the same class as the action, and sync-hold-floor.py regenerated HOLD_PATH_FLOOR, the review callers' hold-path lists and the ci-status hold patterns. Every base sparse-checkout list that holds the trust gate now also holds the client: intake-triage, pr-dispatch-feedback, pr-require-checks (two lists) and both pr-review hosted callers. Every job still loads both from the same base checkout.
  • The moved comments were trimmed to the necessary posture (ADR 0108, 0110): 25 deleted, 15 shortened to doc comments on public declarations, 1 kept. The commit message keeps the 15 reasons those comments recorded.
  • retry-fetch.mjs stays separate: pr-run-activity-write.yml copies it alone into $RUNNER_TEMP/lib, where the client's rate-guard import would not resolve.

Left for stage 2: converging the four createGitHubApi copies, fetchGitHub, actionsClient, enable-auto-merge's retry, collect.mjs's client, budgetedClient and retryFetch on this module.

Verification

  • node --test --test-concurrency=4 over the 60 suites the change touches plus every rewired importer's suite: 5529 pass, 0 fail, after merging current main.
  • Shell suites ci-rerun-ci-status, ci-lanes-pr-hold, ci-review-lanes, ci-hold-human-gated and ci-hold-lifted-by: 1138 checks pass.
  • sync-hold-floor.py --check passes. A scan after the merge finds no importer that still takes the client from the trust gate.
  • test_merge_holds_sync.py: the floor-count pin is updated from 89 to 90, plus an assert that the import closure includes the client. Its 18 TheCostDecisionIsTheGates cases failed locally the same way on base inputs; CI's Python lane is the authority there.

Reasons kept from deleted comments

The squash commit takes this body, so the reasons the deleted comments recorded are kept here (docs/review/comments.md):

  • Every sparse checkout of check-trusted-trigger must list github-client.mjs, which it imports statically.
  • appCloseKind imports done-evidence.mjs at call time so a job whose sparse checkout lacks it still runs the gate.
  • GitHubError keeps responseDetail's line in detail, not the message, so callers that log only the message log what they did before.
  • A retry line names only an error's name and cause code because undici puts whole header values, the token included, in some messages.
  • With 20 s attempts and the 60 s budget a retried call adds at most about 46 s, inside the shortest step that runs one (3 minutes: pr-merge.yml report-gate-checks and clear-escalations).
  • The latch's wait comes before an attempt's timeout and clock start, so it neither aborts the attempt nor counts against the retry budget.
  • Only idempotent requests are timed out: a write GitHub accepted slowly must not look failed.
  • The RESEND flag tells the rate guard a refused attempt will be resent, so it fails nothing for it; the latch waits out the reset on its own budget.
  • An empty success body is a 204 or the 201 a workflow re-run answers.
  • A list keeps its Link header for merge-holds.mjs branchActivity's cursor paging; an answer keeps its ETag for verifyRecordedRerun's conditional re-read.
  • COMMIT_PULLS_QUERY is the fallback because GET /commits/{sha}/pulls answered 200 with an empty body while this query read the PR (2026-10-22).
  • A missing GraphQL list is incomplete so a lane may hold on it (resolve-pr.mjs closing); another page is not, since every re-read meets it again.
  • REST spells an App's login app[bot], GraphQL app, so the GraphQL login gains [bot].
  • A document can hold several operations and a request pick one by name, so graphqlQuery needs all three conditions.
  • isFault is element 2 of the outage posture; a lost permission or missing label is no fault because a retry meets it again.

Related

Next PRs in this series build on this module (stage 2, then the lane-run reader and the carry store).

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 22, 2026 22:13
Move createGitHub, retryServerErrors, paginate, GitHubError and the rest of the client out of check-trusted-trigger.mjs into .github/scripts/lib/github-client.mjs, a sibling of github-rest.mjs so it keeps the trust floor class without raising budgetedClient's, and point 68 static and 4 dynamic importers at it. Every sparse checkout of the trust gate lists the module from the same base checkout; the floor gains a trust row synced by sync-hold-floor.py. retry-fetch.mjs stays separate: pr-run-activity-write copies it alone, where the client's rate-guard import cannot resolve. The moved comments meet the necessary posture: public declarations carry JSDoc, the rest are deleted.

Reasons kept from deleted comments:
- Every sparse checkout of check-trusted-trigger must list github-client.mjs, which it imports statically.
- appCloseKind imports done-evidence.mjs at call time so a job whose sparse checkout lacks it still runs the gate.
- GitHubError keeps responseDetail's line in `detail`, not the message, so callers that log only the message log what they did before.
- A retry line names only an error's name and cause code because undici puts whole header values, the token included, in some messages.
- With 20 s attempts and the 60 s budget a retried call adds at most about 46 s, inside the shortest step that runs one (3 minutes: pr-merge.yml report-gate-checks and clear-escalations).
- The latch's wait comes before an attempt's timeout and clock start, so it neither aborts the attempt nor counts against the retry budget.
- Only idempotent requests are timed out: a write GitHub accepted slowly must not look failed.
- The RESEND flag tells the rate guard a refused attempt will be resent, so it fails nothing for it; the latch waits out the reset on its own budget.
- An empty success body is a 204 or the 201 a workflow re-run answers.
- A list keeps its Link header for merge-holds.mjs branchActivity's cursor paging; an answer keeps its ETag for verifyRecordedRerun's conditional re-read.
- COMMIT_PULLS_QUERY is the fallback because GET /commits/{sha}/pulls answered 200 with an empty body while this query read the PR (2026-10-22).
- A missing GraphQL list is `incomplete` so a lane may hold on it (resolve-pr.mjs closing); another page is not, since every re-read meets it again.
- REST spells an App's login `app[bot]`, GraphQL `app`, so the GraphQL login gains `[bot]`.
- A document can hold several operations and a request pick one by name, so graphqlQuery needs all three conditions.
- isFault is element 2 of the outage posture; a lost permission or missing label is no fault because a retry meets it again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 03:17
@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-23T03:20:05.346884Z ce10d48 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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs

Run 45105262997, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 45105262997

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Chunk 1 of 3 (40 files)

Code review: chunk 1 of 3 (40 files)

No blocking findings in this chunk. This lane already reviewed an earlier head (e859f323), so this review reports blocking findings only, as the prior-findings file directs. The one earlier post has no line anchor and reported nothing, so there was nothing to carry forward.

What I checked at this head:

  • The new client matches the code it replaces. I compared .github/scripts/lib/github-client.mjs with the region removed from check-trusted-trigger.mjs. Only comments differ, plus responseDetail's now-empty catch {}. These are unchanged:
    • the retry delays (2 s and 4 s)
    • the ATTEMPT_TIMEOUT_MS attempt timeout and the SERVER_RETRY_BUDGET_MS budget
    • RESEND and RESEND_ONCE
    • the latch's waitOut and guard calls
    • the Link and ETag properties on answers
    • commitPulls and commitPullsFromGraphQL
    • graphQLReader and paginate
  • The trust gate has no dangling names. check-trusted-trigger.mjs still uses names that were removed from it, but only the ones it now imports from lib: commitPulls, createGitHub, ETAG, GitHubError, graphQLReader, isFault and paginate. A grep finds none of the names it dropped (errorLabel, RESEND, refusedForLimit, rateLimitLatch, ATTEMPT_TIMEOUT_MS, responseDetail and the rest).
  • No importer was missed. Every importer of check-trusted-trigger.mjs that is left takes only trust-gate names: loadTrustedList, REPOSITORY, readPull, appCloseKind, isTrustedClose, readRerunner, RECONCILER_ATTEMPT_CAP, rerunRecordName, readDefaultBranchTip and requireBehindTip. A multi-line grep finds no import of a moved client name from the trust gate. The dynamic paginate imports in read-status.mjs and write-status.mjs now point at lib.
  • A source-reading test still passes. reset-tick.test.mjs:39 reads WINDOW_MS from the trust gate's source. That constant stays in the file.
  • The callers.test.mjs import walker now resolves imports from the repository root and turns a non-action file into its own /path entry. So the sparse-checkout assertion now requires /.github/scripts/lib/github-client.mjs in every workflow that uses resolve-config. Chunk 3 holds those workflow lists.

Context:

  • No closing issue. The PR names none, so there were no acceptance criteria to check.
  • Embedded text. The PR context and prior-findings files hold no instruction aimed at this review.
  • Author's test results. The PR reports 5529 Node tests and 1138 shell checks passing. I could not run anything, so those results are the author's claim and I have not verified them.
  • Spend. The change spends nothing and calls for no hold.
  • Loosened checks. The prompt supplied no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: lines. I used the defaults (fail, no consumer entries) and did not check the citation requirement. Loosened checks would be marked: fail (built-in default). This chunk loosens no test or check: the test edits change only import paths and add test-scope: header lines.
  • Plugin manifests. This chunk changes no plugin manifest. Both changelog fragments are bump: none, which fits a move that changes no behavior.

Verifier dropped 0 of 0 candidates.

Chunk 2 of 3 (40 files)

Code review: chunk 2 of 3 (40 files)

No blocking findings in this chunk. This lane already reviewed an earlier head, and the prior-findings file says blocking only: yes, so this review reports blocking findings only. The one earlier post has no line anchor and carried no finding from this chunk, so nothing was carried forward.

What I checked at this head:

  • Every moved import resolves. I compared each name these 40 files now import from .github/scripts/lib/github-client.mjs against that module's exports. All are there: createGitHub, paginate, GitHubError, errorLabel, responseDetail, detailSuffix, commitPulls, graphQLReader, graphqlQuery, isFault and retryServerErrors.
  • The trust-gate imports still resolve. The names still imported from check-trusted-trigger.mjs are all still exported there: loadTrustedList, REPOSITORY, readRerunner, readDefaultBranchTip, requireBehindTip and isTrustedClose.
  • The dynamic imports work where they run.
    • report-outcome.mjs baseStatus builds the path .base/.github/actions/../scripts/lib/github-client.mjs. Every .base checkout of pr-run-activity-write.yml is a full checkout.
    • report-outcome.mjs findPriorMain is run in place from the full .base checkout of pr-run-activity-read.yml (--find-prior, lines 998 and 2469). The new relative import resolves there.
    • For staged scripts, collect-base-activity copies all of .github/scripts/lib/ to $RUNNER_TEMP/lib, so a ../lib/ import from base-script resolves.
    • address-feedback.mjs linkedSpec now loads the client from lib and loadTrustedList from the gate.
  • The hold-path list. merge-holds.mjs adds [".github/scripts/lib/github-client.mjs", "trust"] beside the gate's row. That matches the PR's floor-row claim. The YAML source and the sync test are in chunk 3.
  • Test-only edits. Two test files lose only a comment that named the old module: lane-hold-timelines.test.mjs and request-budget.test.mjs. Neither changes a test or an assertion.

Context:

  • No closing issue. The PR states none, so there were no acceptance criteria to check.
  • Embedded text. The PR context and prior-findings files hold no instruction aimed at this review.
  • Author's test results. The PR reports 5529 Node tests and 1138 shell checks passing. I could not run them, so those results are the author's claim and I have not verified them.
  • Spend. The change spends nothing and calls for no hold.
  • Loosened checks. The prompt supplied no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: lines. I used the defaults (fail, no consumer entries) and did not check the citation requirement. Loosened checks would be marked: fail (built-in default). This chunk loosens no test or check: it changes only import paths and comments.
  • Plugin manifests. This chunk changes no plugin manifest.

Verifier dropped 0 of 0 candidates.

Chunk 3 of 3 (20 files)

Code review: chunk 3 of 3 (20 files)

No blocking findings in this chunk. This lane already reviewed an earlier head (e859f323), so this review reports blocking findings only. The one earlier post has no line anchor and reported 0 findings, so there was nothing to carry forward.

What I checked at this head:

  • Import rewires. The rewires in sweep-gap.mjs, sync-status.mjs and verdict-carry.mjs take createGitHub from ../lib/github-client.mjs. sync-status.mjs still takes REPOSITORY from the trust gate, which exports it.

  • Sparse checkouts. These lists now carry /.github/scripts/lib/github-client.mjs next to the trust gate:

    • intake-triage.yml
    • pr-dispatch-feedback.yml
    • pr-require-checks.yml (both lists)
    • pr-review-hosted.yml
    • pr-review-security-hosted.yml
  • Lists this PR does not touch. I searched the workflows for other sparse lists that hold check-trusted-trigger. The only one is post-merge-test-mutation.yml:2074, and it already checks out all of /.github/scripts/lib/, so it loads the client. I spot-checked two of the workflows that run the gate from ./.base: pr-verify.yml and maintenance-measure-skill-edit.yml. Neither has a sparse list on the base checkout that runs the gate.

  • Hold floor. These all move together:

    • the new class: trust row in docs/conventions/pr-pipeline.yaml
    • the regenerated hold_patterns in pr-require-checks.yml
    • the review callers' trusted-path lists
    • the test pins: trust 23→24, total rows 153→154, high 89→90, and the new FLOOR.high digest

    The new assertIn in test_merge_holds_sync.py pins the client into the import closure. I did not recompute the digests, so the CI Python lane is the authority for them.

  • test-scope: header lines. The engine-*.test.sh and Python test edits add the client to these lines. engine-d.test.sh also declares the demotion-record vectors, and engine.test.sh and test_merge_holds_sync.py declare the credential-leg files. Both match what the head commit says it adds.

  • Docs. The updates to docs/conventions/pr-pipeline/README.md and docs/outage-posture-audit.md name the client where it now lives.

Context:

  • No closing issue. The PR states none, so there were no acceptance criteria to check.
  • Embedded text. The PR context and prior-findings files hold no instruction aimed at this review.
  • Author's test results. The PR reports 5529 Node tests and 1138 shell checks passing, and sync-hold-floor.py --check passing. I could not run them, so those results are the author's claim and I have not verified them.
  • Spend. The change spends nothing and calls for no hold.
  • Loosened checks. The prompt supplied no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: lines, so I used the defaults (fail, no consumer entries) and did not check the citation requirement. Loosened checks would be marked: fail (built-in default). This chunk loosens no check. The pin changes follow the added floor row, and the one new assertion tightens a test.
  • Plugin manifests. This chunk changes no plugin manifest.

Verifier dropped 0 of 0 candidates.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Chunk 1 of 3 (40 files)

Security review: chunk 1 of 3 (40 files)

I found no security issues in the 40 files of this chunk. This lane already reviewed an earlier head, so this review is blocking only: it reports only CRITICAL and IMPORTANT findings, and there are none. The only earlier post is a summary comment with no line anchor, and it held no finding to restate.

What this chunk changes. The lane GitHub client moves out of the trust-gate action into a new module, .github/scripts/lib/github-client.mjs. The other files in this chunk mostly change only where they import from. The rest are:

  • comment edits in rate-guard.mjs, retry-fetch.mjs, read-status.mjs and apply-verdict.mjs;
  • two change fragments with bump: none;
  • test-scope header lines in three tests;
  • the sparse-checkout import walker in resolve-config/callers.test.mjs, which now also follows imports outside .github/actions/.

Trust controls checked

  • Trusted-trigger check (check-trusted-trigger.mjs#L13): I compared the removed region (base L98–L463, L547–L559) with the new module line by line. Apart from comments, the code is the same, including:

    • the Authorization: Bearer and API-version headers;
    • the graphqlQuery idempotency test (no operationName, no mutation or subscription word), so a mutation is never retried as if it were a read;
    • RESEND_ONCE, which applies to first-attempt writes only and never resends a 4xx;
    • the retry delays and the SERVER_RETRY_BUDGET_MS cap;
    • the latch guard, waitOut and waits routing;
    • the ETag and Link handling;
    • paginate.

    The trust-verdict code is unchanged apart from one comment that became a doc comment. The action file still defines defaultSleep (L96) for its own callers, and it no longer uses any rate-guard symbol it stopped importing. Nothing widens who passes the check.

  • Token handling: errorLabel still logs only an error's name and cause code, never its message. responseDetail still JSON-quotes the body and escapes % before it goes into an annotation. No new line logs the token or the request headers.

  • Which copy of the client loads: every importer uses a relative path (../../scripts/lib/github-client.mjs or ../lib/github-client.mjs). The client therefore always loads from the same checkout as its caller, never from the pull request's head. If a sparse checkout leaves the file out, the import fails at load time and the step fails closed. The sparse-list additions are in chunk 3.

  • Leftover imports: I searched the head tree for any client symbol still imported from check-trusted-trigger.mjs. There are none outside CHANGELOG prose.

  • Trusted-text filter (select-trusted-text.mjs), signed-commits check and reconciler record: only the imports are split. isListed, loadTrustedActors, readPull, REPOSITORY, loadTrustedList and reconcilerRecordVouches still come from the trust gate, and their logic is unchanged.

  • New trusted-path file: .github/scripts/lib/github-client.mjs is on this run's trusted-path list, so a later edit to the client still gets trust-path scrutiny.

Instruction surface: this chunk deletes and trims code comments only. No standing instruction (CLAUDE.md, a skill or agent body, a hook's block list or allowlist) is narrowed.

PR context: it holds no embedded directive aimed at the review lane.

Chunk 2 of 3 (40 files)

Security review: chunk 2 of 3 (40 files)

I found no security issues in the 40 files of this chunk. This lane already reviewed an earlier head, so this review was blocking only: it reports CRITICAL and IMPORTANT findings, and there are none. The only prior post is a summary comment with no line anchor, and it holds no finding to restate.

What this chunk changes. In 39 of the 40 files, the only code change is where the GitHub client is imported from. Those files now take createGitHub, paginate, GitHubError, graphqlQuery, retryServerErrors, isFault, errorLabel, responseDetail, detailSuffix, commitPulls and graphQLReader from .github/scripts/lib/github-client.mjs instead of the trust-gate action. Two test files also drop a comment each.

The trust-verdict helpers (loadTrustedList, REPOSITORY, readRerunner, isTrustedClose, readDefaultBranchTip, requireBehindTip) are still imported from check-trusted-trigger.mjs. I compared the export lists at head: every name now imported from lib is exported by github-client.mjs, and every name still imported from the gate is exported by check-trusted-trigger.mjs. An import that failed to resolve would stop the script at load time, so a missed name fails closed.

Trust controls checked

  • Merge holds (merge-holds.mjs#L316): the one logic change is a new HOLD_PATH_CLASSES row, [".github/scripts/lib/github-client.mjs", "trust"]. This widens the trust-path hold to cover the moved client, so a later edit to the client is still held as a trust change. Nothing is narrowed.
  • enable-auto-merge.mjs, superseded.mjs, clear-escalations.mjs, release-eval-hold.mjs, refire-refused.mjs, who.mjs: only the imports change. Each still loads loadTrustedList (and REPOSITORY / readRerunner where used) from the trust gate, so who counts as trusted is unchanged.
  • Where the client loads from:
    • Every static importer uses a relative path (../lib/github-client.mjs), so the client loads from the same checkout as the script.
    • The dynamic imports in address-feedback.mjs linkedSpec and report-outcome.mjs findPriorMain also resolve relative to the script.
    • report-outcome.mjs baseStatus (L2483) builds its path from resolve(env.BASE_PATH || ".base", ".github", "actions") plus ../scripts/lib/github-client.mjs, so it still loads from the base checkout and never from the pull request's head. If the file is missing there, the call throws, as the function's doc comment says, so it fails closed.
  • Token handling: no changed line logs a token, a header or a response body. errorLabel and detailSuffix are only imported from their new home.

No new or changed instruction surface, plugin manifest, workflow permission or token request is in this chunk.

Chunk 3 of 3 (20 files)

Security review: chunk 3 of 3 (20 files)

I found no security issues in this chunk's 20 files. This lane already reviewed an earlier head, so this review reports only blocking findings (CRITICAL and IMPORTANT), and there are none. The only prior post is a summary comment with no line anchor. It held no finding to restate.

What this chunk changes

  • Importers: work-unblock/sweep-gap.mjs, sync-status.mjs and verdict-carry.mjs now import createGitHub from ../lib/github-client.mjs. REPOSITORY still comes from the trust gate. Both are relative imports, so the client loads from the same checkout as the caller.
  • Base sparse-checkout lists: .github/scripts/lib/github-client.mjs is added in intake-triage.yml, pr-dispatch-feedback.yml, both lists in pr-require-checks.yml, pr-review-hosted.yml and pr-review-security-hosted.yml. Each one sits next to the existing check-trusted-trigger entry. These lists only add a file the gate needs to load. They do not move any code onto the pull request's head. If the file were missing, the static import would fail at load time and the gate would fail closed.
  • Hold-path inputs: both review callers (pr-review-hosted.yml and pr-review-security-hosted.yml) add the new file to their hold-path inputs.
  • Trust floor: docs/conventions/pr-pipeline.yaml adds a class: trust floor row for the new file.
  • Hold patterns: the generated hold_patterns array in pr-require-checks.yml gains .github/scripts/lib/github-client.mjs in the position after .github/actions/check-trusted-trigger/*. No other entry changed. The [ "$AUTHOR_ID" = 49699333 ] || hold_patterns=() scoping line is unchanged context.
  • Docs, tests and lane plan:
    • Doc updates in pr-pipeline/README.md and outage-posture-audit.md.
    • test-scope header additions in the engine shell tests.
    • Count and digest pins in test_diff_risk.py, test_floor_paths.py and test_merge_holds_sync.py: trust 23→24, floor 153→154, high 89→90.
    • A new import-closure assertion in test_merge_holds_sync.py.
    • A lane-plan path addition in scripts/plan-test-lanes.sh.

Trust controls checked

  • Merge hold / trust floor: every change adds the moved client to a hold or floor list. Nothing is removed or narrowed, so no hold is weakened. The client is now held at the same trust class as the action it came from.
  • Trusted-trigger check: only an import path changes here. The verdict code was checked in chunk 1.
  • Token scope, kill switch and token broker: no permissions: block, token request or kill-switch use is touched in this chunk.
  • Untrusted text reaching a lane: no new input from the pull request reaches a credentialed step.

Spend: none beyond normal CI. No changed line here adds a run, a model or a schedule.

critical-findings: 0

kyle-sexton and others added 2 commits November 22, 2026 22:49
callers.test.mjs follows imports outside .github/actions by their repository path instead of reading them as action directories, so it checks the intake-triage sparse list for lib/github-client.mjs. The floor pins in test_floor_paths.py and test_diff_risk.py count the new trust row, and four touched suites declare the files their strace showed they read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…client

# Conflicts:
#	.github/workflows/pr-review-hosted.yml
#	.github/workflows/pr-review-security-hosted.yml
@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=18310 -f activity=resolve-conflicts

@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
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation

Run 45111125626, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 45111125626

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@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 failed status checks Nov 23, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

The unattended merge path is about to ask GitHub to enqueue this pull request at head e859f32303381cf1221496a9a4cec9143b25c490. GitHub can still refuse it after accepting the request.

@melodic-automation-lanes
melodic-automation-lanes Bot 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 failed status checks Nov 23, 2026
kyle-sexton and others added 2 commits November 23, 2026 01:11
…files the babysit suites read

Main's new credential-leg scripts and demotion-record vectors are read by test_merge_holds_sync.py, engine.test.sh and engine-d.test.sh, which this branch's change selects; their test-scope lines now name them so Test Selection rule R8 holds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit c42389b Nov 23, 2026
113 of 114 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/lane-github-client branch November 23, 2026 07:39
@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