Skip to content

[TEST — DO NOT MERGE] verify diff-scoping skip path#14

Closed
bluejayA wants to merge 3 commits into
mainfrom
test/verify-diff-scoping
Closed

[TEST — DO NOT MERGE] verify diff-scoping skip path#14
bluejayA wants to merge 3 commits into
mainfrom
test/verify-diff-scoping

Conversation

@bluejayA
Copy link
Copy Markdown
Owner

@bluejayA bluejayA commented Apr 14, 2026

⚠️ DO NOT MERGE

이 PR은 #13의 diff-scoping 로직을 실 환경에서 검증하기 위한 테스트 전용입니다.
테스트 브랜치는 feat/remote-audit-scope-by-diff에서 파생되었으므로 PR head에 이미 새 워크플로우가 포함되어 있습니다 — GHA는 PR head의 워크플로우를 실행하므로 즉시 새 로직이 동작합니다.

설정

  • skill-security-audit revision: 8b316982cbdfb8
  • 이 사이 커밋들 (add docsd/ + revert docsd/)은 서로 상쇄되어 tree가 완전히 동일
  • 결과: git diff 8b31698..2cbdfb8 -- skills/ = empty

기대 동작

  • Validate revision SHAs 단계 통과 (둘 다 유효한 hex SHA)
  • Audit scope: diff (8b31698..2cbdfb8) 로그
  • No skill code changes detected in 8b31698..2cbdfb8 — audit skipped notice
  • Claude CLI 호출 없음 (큰 시간/토큰 절감 확인)
  • Check run: ✅ PASSED

Test plan

  • Skill Audit (Remote) 워크플로우 실행 결과가 기대 동작과 일치하는지 확인
  • PR 코멘트에 "ℹ️ skill-security-audit / No skill code changes detected in 8b31698..2cbdfb8 — audit skipped" 표시 확인
  • 검증 완료 후 이 PR과 test/verify-diff-scoping 브랜치 삭제

bluejayA and others added 3 commits April 14, 2026 10:42
Large plugin updates were timing out because every skill in the plugin
was re-audited even when only a few actually changed. Use the old/new
revision pair from marketplace.json to `git diff` the plugin repo and
audit only the skills whose files changed. Shared-path (`skills/_*`)
changes fall back to a full audit to preserve correctness. Also add a
300s per-skill timeout so a single hung audit cannot stall the job.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…COPE_KIND enum

Applying reviewer feedback on the diff-scoping patch:

- Validate `revision` / `old_revision` fields as `^[a-f0-9]{7,40}$`
  before they reach `git fetch` / `git diff` (defense-in-depth).
- Tighten awk path filter from `NF>=2` to `NF>=3` so that files sitting
  directly under `skills/` (e.g. `skills/README.md`) no longer pollute
  `CHANGED_DIRS` or `SHARED_CHANGED` detection.
- Split `SCOPE_MODE` into `SCOPE_KIND` (enum for control flow) and
  `SCOPE_DESC` (human-readable label). The old string was used for both,
  so any future label tweak would silently break the full-fallback
  branch. Comparisons now use the enum only.
- Convert `cmd && A || B` DIFF_OK assignment to `if/then/else` for
  readability.
- Replace `wc -l | tr -d ' '` skill count with `grep -c .` for correct
  handling of trailing-newline-less input.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…path

Bump skill-security-audit revision from 8b31698 to 2cbdfb8. The two
commits in between (add docsd/ + revert) cancel out so
`git diff 8b31698..2cbdfb8 -- skills/` is empty. The new workflow
should short-circuit to "No skill code changes detected — audit
skipped" without calling the Claude CLI.

Do NOT merge — this PR exists only to exercise the diff-scoping logic
on feat/remote-audit-scope-by-diff.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

✅ Skill Audit Results (Remote Plugin)

Verdict: PASSED

ℹ️ skill-security-audit

No skill code changes detected in 8b31698..2cbdfb8 — audit skipped.

@bluejayA
Copy link
Copy Markdown
Owner Author

Verification complete — diff-scoping short-circuit works as designed (9s runtime, 0 Claude CLI calls, correct skip message). Closing and cleaning up.

@bluejayA bluejayA closed this Apr 14, 2026
@bluejayA bluejayA deleted the test/verify-diff-scoping branch April 14, 2026 01:59
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.

1 participant