Skip to content

ci: pass STANDARDS_DIR to resolve-config from the lane scripts and check-wip-cap - #18730

Closed
melodic-automation-lanes[bot] wants to merge 2 commits into
mainfrom
work-resolve-issue/issue-18720-45332218908-1
Closed

melodic-automation-lanes[bot] wants to merge 2 commits into
mainfrom
work-resolve-issue/issue-18720-45332218908-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #18720

Summary

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

declare-test-scope.mjs, post-merge-demotion-alert/merge-path.mjs and report.mjs, branch-cleanup/cleanup.mjs, pr-refine/write-pass-plan.mjs and check-wip-cap.mjs now pass STANDARDS_DIR to the resolve-config readers they call (testScopeFromBase, postMergeFromBase, redMainFromBase, branchCleanupFromBase, configFromBase, wipFromBase), the same way dispatch.mjs and fix-ci-context.mjs already do. The check-wip-cap action gains a standards-path input (default empty) that sets STANDARDS_DIR on its check step, so its config read and its Work status listing read the standards checkout when one is given. An unset or empty STANDARDS_DIR still reads everything under base-path (resolve-config's pathsOf maps it to undefined), so behavior is unchanged until the workflows pass the checkout, which is the sibling parts' workflow work.

Not verified

  • Node test suites (declare-test-scope.test.mjs, check-wip-cap.test.mjs, callers.test.mjs and the post-merge-demotion-alert, branch-cleanup and pr-refine suites) were not run here because the lane allows no interpreter; left to the PR's CI.
  • tidy: not run, because every changed file is under .github/, a listed shared path.
  • actionlint and zizmor on check-wip-cap/action.yml: CI only per check-affected; left to the PR's CI.
  • comment-hygiene in check-affected could not run: its fetch of ci-workflows' check-comment-markers action was denied by the sandbox network policy. The diff adds no code comment.
  • No workflow passes STANDARDS_DIR or standards-path to these steps yet (work-resolve-issue.yml, pr-refine.yml, pr-unblock.yml, post-merge-file-demotion-issues.yml, maintenance-delete-stale-branches.yml). That wiring is the workflow done-when items of #18717, which the size split gave to sibling…

Fix

  • .github/actions/check-wip-cap/action.yml: new standards-path input (required false, default "", same description as resolve-config's) wired to STANDARDS_DIR on the check step.
  • .github/actions/check-wip-cap/check-wip-cap.mjs: baseConfig takes the standards dir and passes STANDARDS_DIR to wipFromBase; main passes env.STANDARDS_DIR.
  • .github/scripts/branch-cleanup/cleanup.mjs: branchCleanupFromBase gets STANDARDS_DIR.
  • .github/scripts/post-merge-demotion-alert/merge-path.mjs: loadConfig takes the standards dir and passes STANDARDS_DIR to postMergeFromBase; both the label and rollup callers pass env.STANDARDS_DIR.
  • .github/scripts/post-merge-demotion-alert/report.mjs: redMainFromBase gets STANDARDS_DIR.
  • .github/scripts/pr-refine/write-pass-plan.mjs: configFromBase gets STANDARDS_DIR from the environment.
  • .github/scripts/pr-unblock/declare-test-scope.mjs: testScopeFromBase takes the standards dir and passes STANDARDS_DIR; main's loader call passes env.STANDARDS_DIR.
  • .github/scripts/pr-unblock/declare-test-scope.test.mjs: new test that the build path's test-scope read receives BASE_DIR and STANDARDS_DIR.

Verification

The runner ran each check from the base copy against 312b6c3:

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

The run reports:

  • check-changelog-fragments: all 3 changelog fragments under .changes/ valid.
  • check-changed-skills: no changed skills under plugins/*/skills/, nothing to gate.
  • check-affected: 13 passed, 11 skipped over 8 changed files (comment-hygiene skipped: its ci-workflows fetch was denied by the sandbox; size-check skipped: script absent; typos not installed).
  • fresh-context review subagent over the whole diff: no correctness findings; confirmed every reader call in the six scripts passes STANDARDS_DIR, no other caller of the changed functions breaks, and the new test reaches loadTestScope through the deleted-verdict stop.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/45332218908

Left out: the items under Not verified.

Related

#18720

Lane-Activity: work-resolve-issue/resolve-issue

@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 312b6c350e10ef2a3932c75b25a1e2b3665d87f5; the summary is in this lane's pull request comment.

claude-lane: claude-review

const repo = env.GITHUB_REPOSITORY ?? "";
const basePath = env.BASE_PATH || ".base";
const { limits, wip, configError } = await baseConfig(basePath, log);
const { limits, wip, configError } = await baseConfig(basePath, env.STANDARDS_DIR, log);

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.

Done-when item met, but only one of its seven parts is tested. The #18720 criterion is: "declare-test-scope.mjs, post-merge-demotion-alert/merge-path.mjs and report.mjs, branch-cleanup/cleanup.mjs, pr-refine/write-pass-plan.mjs and check-wip-cap.mjs pass STANDARDS_DIR to resolve-config. check-wip-cap has a standards-path input."

Only declare-test-scope.mjs gets a test (declare-test-scope.test.mjs:218). No test file in .github mentions STANDARDS_DIR or standards-path for the other call sites. If any of these were reverted to { BASE_PATH }, every suite would still pass:

  • .github/actions/check-wip-cap/check-wip-cap.mjs:380 (and baseConfig at :41)
  • .github/scripts/branch-cleanup/cleanup.mjs:329
  • .github/scripts/post-merge-demotion-alert/merge-path.mjs:306, :315, :329
  • .github/scripts/post-merge-demotion-alert/report.mjs:324
  • .github/scripts/pr-refine/write-pass-plan.mjs:18
  • .github/actions/check-wip-cap/action.yml:24: the standards-path → STANDARDS_DIR wiring

The default empty value behaves the same as before, so a dropped pass-through would go unnoticed until the sibling workflow parts depend on it.

Suggested fix: add a test like the declare-test-scope one for each loader. Inject the loader, or point STANDARDS_DIR at a fixture standards dir whose trusted list differs from base-path's, then assert the value arrives. For check-wip-cap, cover main with env.STANDARDS_DIR set.

claude-lane: claude-review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

pr-unblock / address-feedback: UNCERTAIN, left open

Evidence: .github/actions/check-wip-cap/check-wip-cap.test.mjs:855, .github/actions/check-wip-cap/check-wip-cap.test.mjs:660, .github/scripts/branch-cleanup/cleanup.mjs:329, .github/scripts/post-merge-demotion-alert/merge-path.mjs:306, .github/scripts/post-merge-demotion-alert/report.mjs:324, .github/scripts/pr-refine/write-pass-plan.mjs:18

The finding holds: before this round only declare-test-scope had a test showing STANDARDS_DIR reaches resolve-config. I fixed the part in this thread's scope. check-wip-cap.test.mjs now has a test that runs main against a base-path with no vocabulary or trusted-actor list. With STANDARDS_DIR pointing at a standards checkout that holds them under components/, the base config is read (held false, pause_basis read, pause-from taken from the config). With STANDARDS_DIR empty, the config is unreadable (held true, admission_basis config-unreadable). So dropping the pass-through at check-wip-cap.mjs:380 or :358 now fails a test. The same test asserts that action.yml declares the standards-path input with an empty default and that the check step sets STANDARDS_DIR from it. runMain takes an optional base file list for this. The other instances are not fixed because the review-thread tool refuses each test file they need as outside this thread's scope: branch-cleanup/cleanup.test.mjs (cleanup.mjs:329), post-merge-demotion-alert/merge-path.test.mjs (merge-path.mjs:306, :315, :329), post-merge-demotion-alert/report.test.mjs (report.mjs:324) and a new pr-refine test for write-pass-plan.mjs:18. Those still need a person or a follow-up change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

pr-unblock / adjudicate-feedback: the finding stands

A fresh-context adjudicator read the review comment, the locations both sides cited and the code at 312b6c350e10ef2a3932c75b25a1e2b3665d87f5, without the fixing lane's reasoning, and found that the finding holds. The next address-feedback round fixes it; a round that leaves this thread open again ends the lane in a failing status.

Evidence: .github/actions/check-wip-cap/check-wip-cap.test.mjs:855, .github/actions/check-wip-cap/check-wip-cap.test.mjs:660, .github/scripts/branch-cleanup/cleanup.mjs:329, .github/scripts/post-merge-demotion-alert/merge-path.mjs:306, .github/scripts/post-merge-demotion-alert/report.mjs:324, .github/scripts/pr-refine/write-pass-plan.mjs:18

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

pr-unblock / address-feedback: UNCERTAIN, left open

Evidence: .github/actions/check-wip-cap/check-wip-cap.test.mjs:855, .github/scripts/branch-cleanup/cleanup.mjs:329, .github/scripts/post-merge-demotion-alert/merge-path.mjs:306, .github/scripts/post-merge-demotion-alert/report.mjs:324, .github/scripts/pr-refine/write-pass-plan.mjs:18

The finding still holds, and the adjudicator agreed. The part this thread's scope allows is already fixed in the checkout. check-wip-cap.test.mjs:855 runs main with STANDARDS_DIR set and with it empty, and it checks that action.yml declares the standards-path input and passes it to STANDARDS_DIR. This round made no new edit, because every other file the fix needs is still outside the thread's scope. I ran check-paths again this round and it refused each of these: .github/scripts/branch-cleanup/cleanup.test.mjs and cleanup.mjs (cleanup.mjs:329), .github/scripts/post-merge-demotion-alert/merge-path.test.mjs (merge-path.mjs:306, :315, :329), .github/scripts/post-merge-demotion-alert/report.test.mjs (report.mjs:324), and a new .github/scripts/pr-refine/write-pass-plan.test.mjs (write-pass-plan.mjs:18). This thread sits on check-wip-cap.mjs, and the pull request's .github files are not in its scope. So the lane cannot add these tests. A person needs to add them here, or name those test files in a fix request so they enter the scope, or open a follow-up change for them.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18730, incremental (312b6c35 → 77102e7f)

The prior-findings file says blocking only: yes, so this review reports only blocking findings. Advisory findings are dropped.

Scope. One file changed in this push: .github/actions/check-wip-cap/check-wip-cap.test.mjs. I read its whole change in .claude-lane/incremental.diff. I checked it against the test file's own helpers (runMain, pastConfig, yamlAt) and against action.yml. I also checked how resolve-config.mjs handles the standards path: pathsOf turns an empty STANDARDS_DIR into undefined, and the standards layout uses components/... paths.

What changed. runMain gets a new baseFiles parameter, and its default keeps every earlier call working as before. A new test does three things:

  • It copies the vocabulary and trusted-actor list into a temporary standards checkout that uses the components/... layout, and leaves them out of base-path.
  • It runs main with STANDARDS_DIR pointing at that checkout and asserts the config is read: the run is not held and pause_basis is read. With STANDARDS_DIR: "" it asserts the config is unreadable and the run is held.
  • It asserts that action.yml declares standards-path with an empty default and wires STANDARDS_DIR: ${{ inputs.standards-path }} on the check step.

This matches the real action.yml (lines 26–33 and 83). The test would fail if either pass-through were dropped. I found no correctness defects.

Prior finding (discussion_r4675919082, about the untested done-when criterion). This push adds the check-wip-cap test, which covers check-wip-cap.mjs and the action.yml wiring. Four call sites still have no test that would fail if the pass-through broke:

  • branch-cleanup/cleanup.mjs
  • post-merge-demotion-alert/merge-path.mjs
  • post-merge-demotion-alert/report.mjs
  • pr-refine/write-pass-plan.mjs

That finding is advisory: the criterion is met, only some of it is untested. Under blocking-only rules it is not raised again here. Its thread stays open as posted.

Closing issue #18720. The done-when item is still met; nothing in this push changes that.

I did not run the Node test suites. CI results are the author's claim and I have not checked them.

No loosened check: this push only adds a test. 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. With no loosened_check_decision_record: line, I did not check the citation requirement.

No plugin manifest changes. No embedded instructions in the PR context or the prior-findings file.

Verifier dropped 0 of 0 candidates.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18730 (incremental since 312b6c3)

No security issues found. This lane already reviewed an earlier head, so this pass reports blocking (CRITICAL and IMPORTANT) findings only.

What changed since the last review: one file changed, .github/actions/check-wip-cap/check-wip-cap.test.mjs, and it is test code only:

  • The runMain test helper takes a new baseFiles parameter, which defaults to BASE_FILES. Callers that don't pass it behave as before.
  • One new test copies the vocabulary and the trusted-actor list into a temporary standards directory laid out the way a standards checkout is (components/...). It then makes three checks:
    • When STANDARDS_DIR points at that directory, main reads the config from there.
    • When STANDARDS_DIR is empty, the read fails closed: the test expects held: "true" and admission_basis: "config-unreadable".
    • In action.yml, the standards-path input defaults to "", and the check step's STANDARDS_DIR env is exactly ${{ inputs.standards-path }}.

Trust-control check: nothing in the change runs in a lane. It does not touch the trusted-actor list, the trusted-trigger check, token scope, the kill switch, signer grants or merge holds. The test copies the repository's own trusted-actor file into a temporary directory and only reads it. The new test also asserts that the read fails closed when STANDARDS_DIR is empty, which backs up the previous review's conclusion that the action-side change does not widen the trusted-actor read. The PR text and the closing issue contain no text aimed at the review lane.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 312b6c350e10ef2a3932c75b25a1e2b3665d87f5, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=312b6c350e10ef2a3932c75b25a1e2b3665d87f5 rubric=10.10.3 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 77102e7.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Run 45339929657

pr-unblock/publish-feedback, attempt 1

Field Value
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded

Failed GitHub API calls

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

pr-unblock/report-escalation, attempt 1

Field Value
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded

Failed GitHub API calls

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

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 77102e7ff58b9eeef9204f387f3922433f1b89f5. 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): a review finding stood
  at adjudication and the lane left it open again (feedback-stood-open), so the pull request's
  owning session settles that thread: fix it, or answer it with evidence

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on 77102e7.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: an adjudicator found a review finding stands, and the next round left it open again. The lane sets no label: 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=18730 -f activity=address-feedback

@kyle-sexton

Copy link
Copy Markdown
Member

Superseded by #18719 (D2 P4, session-owned), which passes STANDARDS_DIR to these same resolve-config callers (declare-test-scope, merge-path, report, cleanup, check-wip-cap, write-pass-plan) as part of repointing the workflows to one standards commit per run. Closing to avoid a conflicting second implementation; reopen if #18719 is abandoned.

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.

ci: workflows read the trusted list and policies from a standards checkout at one commit - part 1 of 3

1 participant