fix(agents): relocate provenance sources.md outside agents/ dir #64
Reference in New Issue
Block a user
Delete Branch "fix/63-relocate-agent-sources-provenance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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