感谢你对 AI Task Board 的兴趣!
git clone https://github.com/andersyin/ai-task-board.git
cd ai-task-board
pip install pytest
# or: pip install -e ".[test]"- Python 3.9+,只用标准库(零外部依赖是核心设计原则)
- 4 空格缩进
- 所有公共函数应有 docstring
- 禁止 bare
except:,必须捕获具体异常 - 禁止
print做调试输出(用logging或结构化输出)
# 运行所有测试(契约 + 隔离目录下的真实 create/claim/submit/review)
pytest tests/ -v
# 运行单个测试文件
pytest tests/test_contract.py -v
pytest tests/test_lifecycle.py -v提交前确保所有测试通过。
- Fork 仓库
- 创建分支:
git checkout -b feature/your-feature - 提交改动:
git commit -m "描述" - 推送:
git push origin feature/your-feature - 创建 Pull Request
- 在
board/board_contract.py的AGENT_CONTRACTS中添加注册 - 在
board/board-wake.py中添加唤醒通道(如需) - 添加测试用例
- 更新 README
- 确定性优先:脚本不做 LLM 推理,只做确定性状态转换
- 文件系统即数据库:不引入数据库依赖
- 只读审计:审计脚本不修改任何文件
- 执行端不自评:验收必须由非执行端完成
- 幂等性:同一请求重试不产生副作用
提交即表示你同意将代码以 MIT 许可发布。