Skip to content

feat(repo-health): add dependency-license-audit skill with eval suite - #814

Merged
potiuk merged 1 commit into
apache:mainfrom
justinmclean:dependency-license-audit
Jul 11, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
justinmclean:dependency-license-audit

Conversation

@justinmclean

Copy link
Copy Markdown
Member

Summary

  • Adds the magpie-dependency-license-audit skill (Triage mode): a read-only audit of a project's direct and transitive dependency tree. It detects the dependency manager(s), resolves each dependency's declared license from ecosystem metadata, classifies each against a configured policy (the ASF three-category A/B/X model or a custom allowlist), and surfaces incompatible, forbidden, and unknown-license dependencies for maintainer review. It never modifies manifests or lock files.
  • Supports pip, npm, cargo, maven, gradle, and trivy; policy selectable via --policy asf|allowlist; scope via --repo owner/name or --path.
  • Ships a four-step eval suite (scope-selection, license-normalization, license-classification, license-report) with 19 cases, including a prompt-injection case and ambiguous / unknown-license cases.
  • Updates the tools/spec-loop/specs/repo-health-family.md spec to describe the new skill.

Type of change

  • Skill change (.claude/skills/<name>/) — eval fixtures updated below
  • Tool / bridge contract (tools/<system>/*.md)
  • Python package (tools/*/ with pyproject.toml)
  • Groovy reference impl
  • Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
  • Documentation (docs/, README.md, CONTRIBUTING.md)
  • Project template (projects/_template/)
  • CI / dev loop (prek, workflows, validators)
  • Other:

Test plan

  • prek run --all-files passes
  • For Python packages touched: uv run pytest / ruff check / mypy passes
  • For Groovy bridges touched: command-line invocation tested end-to-end
  • For skill changes: eval suite passes for the affected skill
    (PYTHONPATH=tools/skill-evals/src python3 -m skill_evals.runner tools/skill-evals/evals/<skill>/)
  • For skill behaviour changes: a new or updated eval fixture is included in this PR
    (a regression test for the bug fixed / the behaviour added — see CONTRIBUTING.md)
  • Other:

@justinmclean justinmclean self-assigned this Jul 11, 2026
@justinmclean

Copy link
Copy Markdown
Member Author

@sebbASF you might be interested in taking a look at this

Adds the dependency-license-audit skill: a read-only license audit of a
project's direct and transitive dependency tree. Detects the dependency
manager(s), resolves each dependency's declared license from ecosystem
metadata, classifies each against a configured policy (ASF three-category
A/B/X model or a custom allowlist), and surfaces incompatible, forbidden,
and unknown-license dependencies for maintainer review. Never modifies
manifests or lock files.

Ships mode: Triage + experimental with a four-step eval suite (scope
selection, license normalization, license classification, license report)
covering compound AND/OR expressions, or-later, classpath exceptions,
category-B binary-only handling, unknown licenses, and prompt-injection
resistance. Registers the skill across docs/modes.md, the capability map,
the repo-health family README, the spec-loop spec, and the adopter-config
scaffold.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@potiuk
potiuk force-pushed the dependency-license-audit branch from df1fec5 to 1f03343 Compare July 11, 2026 15:07
@potiuk

potiuk commented Jul 11, 2026

Copy link
Copy Markdown
Member

Reviewed and merging — the skill and eval suite are solid. I pushed one small doc-only reconciliation on top: the PR shipped the skill but docs/repo-health/README.md, the spec-loop spec, and the config template still described it as "planned / not yet built," and category B was worded three ways. Flipped those to "shipped/experimental" and aligned category-B on the SKILL's own "binary/convenience-binary only" wording. No changes to the skill or evals. Thanks for the skill!

@potiuk
potiuk merged commit 4a3a044 into apache:main Jul 11, 2026
10 checks passed
@potiuk potiuk added capability:triage Sweep + classify + propose disposition family:docs Docs, MISSION.md, READMEs family:repo-health repo-health skills family:setup setup-* skills labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:triage Sweep + classify + propose disposition family:docs Docs, MISSION.md, READMEs family:repo-health repo-health skills family:setup setup-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants