Skip to content

fix: restore AGENTS.md as product showcase + test fixture - #7

Merged
weed33834 merged 1 commit into
mainfrom
fix/restore-agents-md
Aug 10, 2026
Merged

fix: restore AGENTS.md as product showcase + test fixture#7
weed33834 merged 1 commit into
mainfrom
fix/restore-agents-md

Conversation

@weed33834

Copy link
Copy Markdown
Owner

关联 Issue

Relates to #5 (v1.1.0 removal was too aggressive)

问题

v1.1.0 移除了根 AGENTS.md(因为是生成产物),但忽略了两个关键用途:

  1. 产品展示:GitHub 仓库访客通过 AGENTS.md 看到 agentseed 的治理效果
  2. 测试夹具test_audit.py 的 2 个测试用 AGENTS.md 验证引用完整性,移除后 CI 中永久跳过

修复

  • .gitignore:添加 !/AGENTS.md 例外,根文件入库,其他生成产物(CLAUDE.md/GEMINI.md 等)仍过滤
  • AGENTS.md:从当前源码重新生成(coding profile, skeleton 模式)
  • ci.yml:新增 "Check AGENTS.md freshness" 步骤 — 重新生成并 diff,过期则 CI 失败

验证

  • 171 tests passed, 1 skipped(不再有 AGENTS.md 测试跳过)
  • AGENTS.md 新鲜度检查本地通过

Root AGENTS.md was removed in v1.1.0 because .gitignore excludes it,
but it serves two critical purposes:
1. GitHub visitors see it as the project's agent governance showcase
2. test_audit.py uses it as a fixture to validate reference integrity

Changes:
- .gitignore: add !/AGENTS.md exception (root file tracked, other
  generated artifacts like CLAUDE.md/GEMINI.md still gitignored)
- Regenerate AGENTS.md from current source (coding profile, skeleton)
- ci.yml: add freshness check step — regenerates and diffs AGENTS.md,
  fails if committed copy is stale
@weed33834
weed33834 merged commit 876d45e into main Aug 10, 2026
4 checks passed
@weed33834
weed33834 deleted the fix/restore-agents-md branch August 10, 2026 00:56
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