Skip to content

test(discipline): extract seeded_repo in the setup-apply test - #17606

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
chore/tidy-adhoc-plugins-discipline-2026-11-20
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
chore/tidy-adhoc-plugins-discipline-2026-11-20

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #12894

Summary

Ad hoc tidy sweep over plugins/discipline/** (no lane; anchor commit: none (ad hoc); base 890a15d8fc). The prose surface came back clean: markdownlint-cli2 found 0 issues in 29 files, every relative link and in-plugin anchor resolves, and every /discipline:<skill> reference names a skill that exists. The one tidying is in skills/setup/scripts/setup-apply.test.sh, where six cases built a test repository holding a settings file with the same four setup lines.

Fix

Diff: 1 file, 19+/30- plus the fragment.

Verification

  • bash skills/setup/scripts/setup-apply.test.sh: 123 ok, 0 FAIL, before and after. The output is identical once the random mktemp suffixes are normalized.
  • shellcheck setup-apply.test.sh: clean.
  • Not run: shfmt (not installed on the runner). The edit keeps the file's existing 2-space style.

Related

  • Scope-budget deferrals: none.
  • Considered and not taken: about 14 if ...; then pass 'X'; else fail 'X'; fi lines repeat their label. Folding them into check would need an eval or wrapper function, because [[ cannot be passed as a command.
  • Out of scope and left alone: the generated shared copies (lib/*, scripts/fetch-docs.sh, scripts/docs-cache.sh, scripts/html2md.py, reference/docs-lookup-procedure.md, reference/plugin-reconfiguration.md, skills/setup/scripts/parse-concern-value.sh, skills/setup/scripts/yaml-subset.awk) and CHANGELOG.md.
  • Lifted HARD exclusions: none.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

No blocking findings since 63f2d820. This lane already reviewed an earlier head, so this review covers blocking findings only.

What changed since the last review. Commit 0a6a615a changes only plugins/discipline/skills/setup/scripts/setup-apply.test.sh, in two ways:

  • settings() is back in its base position. The helper is again defined right after SCRIPT_DIR (now lines 18–23). That undoes the "Reading Order" move from the earlier head, and the definition is unchanged.
  • seeded_repo() lost its usage comment. The trailing # seeded_repo <content>: ... comment is gone. The function body is the same.

Correctness.

  • settings() is still defined before its first caller, so the test runs the same way.
  • seeded_repo behaves as reviewed at the earlier head: it still assigns repo and f without local, so inside shape_case it writes to that function's own variables.
  • No assertion, label or expected value changed in this push.

PR description. The body still lists "Beck #5, Reading Order: the settings() helper moves down". After this push that is no longer true; this is a description mismatch, not a code defect. The changelog fragment, which mentions only seeded_repo, is still accurate.

Closing issue. The PR closes no issue; it only refers to #12894, so there are no acceptance criteria to check.

Verification. The author reports the test passing and shellcheck clean for an earlier head. I had no shell, so I did not confirm either claim.

Loosened-check verdict: pass. The prompt supplied no loosened_check_verdict: or loosened_check_patterns: lines, so I used fail with no consumer entries. No decision-record line was supplied either, so I did not check the citation requirement. This push neither removes nor relaxes any check.

Spend: none; this change does not affect lane runs, models or schedules.

Verifier dropped 0 of 0 candidates.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

No security issues found in the change since 63f2d82. This was a blocking-only review, so it reports CRITICAL and IMPORTANT findings only.

I read the whole incremental change to its one file, plugins/discipline/skills/setup/scripts/setup-apply.test.sh. That file matches no trusted path.

  • The settings() helper moved. It now sits between SCRIPT_DIR and SUT again, the same place it held in the base. Its body did not change: one awk filter over a single quoted file argument.
  • A comment was dropped. The one-line usage comment on seeded_repo() is gone. The function body did not change.

This is a test-only reorder. It touches no trust control, token, credential, workflow, manifest or standing instruction, so it has no security-relevant surface (skip-gate item 2).

My earlier summary comment on this pull request (no line anchor) reported no findings, so I have nothing to restate.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44684132453

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 0a6a615
Run 44684132453

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 0a6a615a9842a722112b124c87f9b6e4bc1be8f8, 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=LOW demote=false head=0a6a615a9842a722112b124c87f9b6e4bc1be8f8 rubric=10.4.2 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 5c2b4c3 Nov 20, 2026
45 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the chore/tidy-adhoc-plugins-discipline-2026-11-20 branch November 20, 2026 06:42
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 5c2b4c3843d4b33258d27cd903f1b049ce7d0239; later checks count it verified from this comment.

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.

0 participants