Skip to content

feat(toolchain): make the secret scan lint's own surface and freeze it with an eval case - #17879

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-16031-44887646012-1
Nov 21, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-16031-44887646012-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #16031

Summary

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

Part 1 of #15733's split: the security floor. /toolchain:lint now states the gitleaks secret scan in the skill itself (new 'Secret scan' section). With a .gitleaks.toml at the repo root, every check-mode run with changes runs it as a secret-scan row, with or without a record, attended or unattended, and also when no ecosystem runs. Before this change the scan came only from the bundled cross-cutting default, which an unattended run never runs and which a later part deletes. Design choices, based on the code: the command and install hint are copied from the bundled cross-cutting.yaml. The scan runs even when another command already ran gitleaks, because a compound check-cmd exits with its last line's status and can hide a finding. A missing tool reads skip (tool missing: gitleaks), an environment skip that leaves the run INCOMPLETE, following the skill's existing classes. A new frozen eval case, ln-secret-scan-no-record, covers a repo with no cross-cutting record and a .gitleaks.toml. Its graders take a gitleaks call or PATH probe, and a reported secret-scan result, as passing, so the case gives the same result before and after the bundled files are deleted. Only the secret scan is stated here, because this part's done-when names nothing else. The workflow-security scan from step 5 of #15733 is left to a later part.

Not verified

  • The secret-scan eval case was not run on either side (before or after bundled-file deletion): this lane cannot run the eval runner or reach api.anthropic.com. It is left to the eval-runner session or the PR's CI
  • scaffold.sh is created without the executable bit (sibling scaffolds are 100755); this lane has no chmod or git update-index. If the eval runner executes it directly rather than via bash, set the mode with git update-index --chmod=+x plugins/toolchain/evals/ln-secret-scan-no-record/scaffold.sh
  • check-evals-quality wrapper could not check the new case (it expects a JSON eval set and failed to parse case.yaml); evals-quality and eval-cases run in CI only
  • tidy: passes 1-3 (code) found nothing; pass 4 ran write-for-agents on SKILL.md (one restatement cut); pass 5 ai-slop found 0 findings on SKILL.md and the fragment. write-for-humans on the fragment and prompt.md, and ai-slop on prompt.md, skipped for the turn budget. The ai-slop findings file was…
  • Untracked harness files at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) are not part of this change and should not go into the patch
  • Build/test: no build or test suite covers skill markdown or eval cases in this lane; the toolchain eval suite runs in the eval-runner session

Fix

  • plugins/toolchain/skills/lint/SKILL.md: added a Purpose paragraph and a '### Secret scan' section (opt-in .gitleaks.toml, command, unattended logging, report row and skip classes, not run under --fix/--code-fix); the 'no ecosystem runs' early stop now still runs the secret scan when the opt-in holds, and records that run's Overall line (section 5's skip now covers only a no-ecosystem run with no secret scan), so a secret-scan FAIL reaches the Stop hook
  • plugins/toolchain/evals/ln-secret-scan-no-record/case.yaml: new case; graders ran-secret-scan (tool_used Bash, gitleaks call or probe), secret-scan-reported (regex on reply), meets-expectations (llm)
  • plugins/toolchain/evals/ln-secret-scan-no-record/prompt.md: new case prompt /toolchain:lint
  • plugins/toolchain/evals/ln-secret-scan-no-record/scaffold.sh: new fixture: .gitleaks.toml at root, no cross-cutting record, other ecosystems disabled, one changed text file
  • plugins/toolchain/evals/ln-secret-scan-no-record/samples/ran-secret-scan.json: pass/fail samples for the tool_used grader
  • plugins/toolchain/evals/ln-secret-scan-no-record/samples/secret-scan-reported.json: pass/fail samples for the reply regex grader
  • .changes/toolchain/work-resolve-issue-issue-16031-44887646012-1-55041e68.md: minor changelog fragment (### Security)

Verification

The runner ran each check from the base copy against b924aea:

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

The run reports:

  • check-changelog-fragments: all 5 fragments valid (after adding the ### Security section)
  • check-changed-skills: lint skill PASS, 0 errors, 7 warnings (pre-existing size/description/Gotchas/Next warnings plus 'body grew 256 -> 270 lines')
  • check-affected: 15 passed, 8 skipped (typos not installed; comment-hygiene and size-check could not run; validate-plugins sub-checks and changed-skills skipped as they run checked-tree code), 0 failed
  • ai-slop detect.sh on SKILL.md and the fragment: 0 findings
  • fresh-context review subagent over the whole diff: 5 findings (scan unreachable when no ecosystem runs; run-once rule could hide a finding behind a compound command; regex lacked word boundaries; assumed: line format; fragment overstated). All confirmed and fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44887646012

Left out: the items under Not verified.

Related

#16031

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head a233dcf63d5ebbc49a452cad73073e162dd6c469. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17879 (incremental, a233dcf → a1804a3)

No security issues found. I read the whole change to the one file in scope, plugins/toolchain/evals/ln-secret-scan-no-record/scaffold.sh. This lane already reviewed an earlier head, so this review was blocking only: it reports CRITICAL and IMPORTANT findings only.

What changed: the push deletes the two-line header comment at the top of the eval fixture script. That comment described the fixture: a .gitleaks.toml at the root, no cross-cutting record, other ecosystems disabled, one changed text file. The shebang, set -euo pipefail, the eval-repo.sh source line and the unset GIT_DIR GIT_WORK_TREE GIT_CONFIG line are unchanged. No command, input or behavior changed.

Other checks:

  • Instruction-surface lens: the removed lines are a descriptive comment in a test fixture. They are not a standing instruction or a guardrail, so this lens does not apply.
  • Trusted paths and controls: the file matches no trusted-path glob. The push touches no manifest, workflow, token, trusted-actor or merge-hold file, so I wrote no trust-control or manifest lines.
  • PR context: it contains no embedded instructions aimed at this lane.
  • Prior findings: the only prior post is the earlier summary comment, which reported 0 findings. Nothing carries over.

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

claude-lane: claude-review

Comment thread plugins/toolchain/skills/lint/SKILL.md Resolved
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #17879 (incremental, blocking only)

I found no problems in this push. This lane already reviewed an earlier head, so this review looked for blocking findings only.

What changed since a233dcf6: only plugins/toolchain/evals/ln-secret-scan-no-record/scaffold.sh, and I read the whole change. The push deletes the two-line header comment and leaves every command unchanged. The new head also has the file as mode 100755, the same as the sibling scaffolds, which settles the PR's "Not verified" item about the missing executable bit. The fixture builds the same repository as before: a .gitleaks.toml at the root, no cross-cutting record, every other ecosystem disabled and one changed text file. That still matches the case's description and graders.

Closing issue #16031: this push changes nothing the criterion depends on. "The secret-scan case passes on both sides" is still unverified. The author says the eval was not run, and I could not run it either.

Spend: nothing new in this push. The eval case added earlier spends prepaid API credit each time it runs.

Loosened checks: the prompt had no loosened_check_verdict:, loosened_check_patterns: or decision-record lines. I used verdict fail with no consumer entries and did not check the citation requirement. Deleting a comment loosens no check.

Earlier threads: the resolved thread on SKILL.md line 119 is still settled (lines changed since resolution: no), and this push does not touch that file.

The PR context, settled threads and prior findings contain no embedded instructions.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback

Run 44889371181, attempt 1

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

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci

Run 44891366235, attempt 1

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

Failed GitHub API calls

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

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM66Ukvn
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch

Run 44889371181, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed a233dcf
Run 44889371181

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch

Run 44891366235, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed a1804a3
Run 44891366235

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback

Run 44889371181, attempt 1

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

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs

Run 44890255195, attempt 1

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

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head a1804a326725ba4bf34c4636a09b2418ad6731f8, 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=HIGH demote=true head=a1804a326725ba4bf34c4636a09b2418ad6731f8 rubric=10.4.4 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 21, 2026
Merged via the queue into main with commit 01f9ad6 Nov 21, 2026
45 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16031-44887646012-1 branch November 21, 2026 10:13
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 01f9ad66b9e0baa105c8e0baf66a6913f1cd5a45; 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.

Delete toolchain's bundled ecosystem defaults - part 1 of 3

0 participants