claude plugin validate --strict auto-discovers every .md file directly under a plugin's agents/ directory and treats it as an agent definition requiring frontmatter. The plugin-scope provenance file (agents/sources.md, per ADR-0005) is not an agent and has no frontmatter by design, so it always fails --strict. This first broke plugins/git/agents/sources.md and was stopgapped with fake agent frontmatter in 0239b00.
Tested both options from #63 empirically on a scratch copy of the git plugin:
Excluding via an explicit agents manifest array — does not work. The validator still scans and fails on any unlisted .md in agents/, regardless of what's declared in plugin.json.
Relocating the file out of agents/ — works cleanly.
This PR relocates the provenance file to <plugin-root>/sources.md:
Adds ADR-0010, partially superseding ADR-0005's agents/sources.md claim (rest of ADR-0005 is unaffected).
Fixes real path-construction logic in new-agent.sh (SOURCES_DIR) and validate-provenance.sh (sources_md_path), not just doc references.
Updates agent-author/agent-audit SKILL.md, README.md, both provider templates, and bats fixtures.
Moves plugins/git/agents/sources.md → plugins/git/sources.md, reverting the 0239b00 frontmatter workaround.
Patch-bumps both git (1.3.1→1.3.2) and kyberforge (1.2.0→1.2.1) manifests.
## Summary
`claude plugin validate --strict` auto-discovers every `.md` file directly under a plugin's `agents/` directory and treats it as an agent definition requiring frontmatter. The plugin-scope provenance file (`agents/sources.md`, per ADR-0005) is not an agent and has no frontmatter by design, so it always fails `--strict`. This first broke `plugins/git/agents/sources.md` and was stopgapped with fake agent frontmatter in `0239b00`.
Tested both options from #63 empirically on a scratch copy of the git plugin:
- **Excluding via an explicit `agents` manifest array** — does not work. The validator still scans and fails on any unlisted `.md` in `agents/`, regardless of what's declared in `plugin.json`.
- **Relocating the file out of `agents/`** — works cleanly.
This PR relocates the provenance file to `<plugin-root>/sources.md`:
- Adds ADR-0010, partially superseding ADR-0005's `agents/sources.md` claim (rest of ADR-0005 is unaffected).
- Fixes real path-construction logic in `new-agent.sh` (`SOURCES_DIR`) and `validate-provenance.sh` (`sources_md_path`), not just doc references.
- Updates `agent-author`/`agent-audit` SKILL.md, README.md, both provider templates, and bats fixtures.
- Moves `plugins/git/agents/sources.md` → `plugins/git/sources.md`, reverting the `0239b00` frontmatter workaround.
- Patch-bumps both `git` (1.3.1→1.3.2) and `kyberforge` (1.2.0→1.2.1) manifests.
Fixes #63.
## Test plan
- [x] `claude plugin validate --strict plugins/git` passes
- [x] `claude plugin validate --strict plugins/kyberforge` passes
- [x] `bats` suites for `validate-provenance.bats` (16), `new-agent.bats` (22), `validate.bats` (12) — 50/50 pass
- [x] Pre-push hooks (test suite, plugin manifest checks, plugin validation, marketplace validation) pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
`claude plugin validate --strict` auto-discovers every .md under a
plugin's agents/ directory as an agent requiring frontmatter, so the
provenance file there always needs fake agent frontmatter to pass
validation. Confirmed empirically that an explicit `agents` manifest
array can't suppress this discovery. Move the file to <plugin-root>/
sources.md instead, and update agent-author/agent-audit accordingly.
Adds ADR-0010, partially superseding ADR-0005's `agents/sources.md`
convention. Fixes#63.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Independent skill-audit clean-check surfaced that the dimension-mapping
list and manual-fallback checklist both skipped the counterpart-missing
case, which validate.sh already treats as a hard FAIL.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Defame1297
requested review from Defame1297 2026-07-05 09:12:30 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
claude plugin validate --strictauto-discovers every.mdfile directly under a plugin'sagents/directory and treats it as an agent definition requiring frontmatter. The plugin-scope provenance file (agents/sources.md, per ADR-0005) is not an agent and has no frontmatter by design, so it always fails--strict. This first brokeplugins/git/agents/sources.mdand was stopgapped with fake agent frontmatter in0239b00.Tested both options from #63 empirically on a scratch copy of the git plugin:
agentsmanifest array — does not work. The validator still scans and fails on any unlisted.mdinagents/, regardless of what's declared inplugin.json.agents/— works cleanly.This PR relocates the provenance file to
<plugin-root>/sources.md:agents/sources.mdclaim (rest of ADR-0005 is unaffected).new-agent.sh(SOURCES_DIR) andvalidate-provenance.sh(sources_md_path), not just doc references.agent-author/agent-auditSKILL.md, README.md, both provider templates, and bats fixtures.plugins/git/agents/sources.md→plugins/git/sources.md, reverting the0239b00frontmatter workaround.git(1.3.1→1.3.2) andkyberforge(1.2.0→1.2.1) manifests.Fixes #63.
Test plan
claude plugin validate --strict plugins/gitpassesclaude plugin validate --strict plugins/kyberforgepassesbatssuites forvalidate-provenance.bats(16),new-agent.bats(22),validate.bats(12) — 50/50 pass🤖 Generated with Claude Code