1- # AGENTS.md - FateCat Skill Repo
1+ # AGENTS.md - FateCat Enterprise Repo
22
33## 目录用途
44
5- 当前根目录就是单 skill 仓库根:对外暴露标准 skill 入口;真实源码与生命周期资产统一收进 ` scripts/project/ ` ,保持根目录卫生。
5+ 当前根目录是 FateCat 企业级系统仓库真相源:结构采用 ` apps ` 、` ai ` 、` domains ` 、` platform ` 、` infra ` 、` contracts ` 、` catalog ` 、` governance ` 、` shared ` 、` tools ` 、` docs ` 、` scripts ` 、` tests ` canonical roots;运行、测试、导出和治理入口全部从企业根解析。
6+
7+ 项目主旨:整理综合全部预测流派,首先完善中国传统主流和有效开源仓库,复用先于自写。
68
79## 目录结构
810
911``` text
1012fatecat/
1113├── AGENTS.md
14+ ├── DEBUG.md
1215├── README.md
1316├── REVIEW.md
1417├── SKILL.md
18+ ├── apps/
19+ ├── ai/
20+ ├── domains/
21+ │ ├── fate-analysis/
22+ │ │ └── services/fate-core/
23+ │ │ ├── src/
24+ │ │ └── tests/
25+ │ └── experience-delivery/
26+ │ └── services/fatecat-delivery/
27+ │ ├── src/
28+ │ ├── scripts/
29+ │ └── tests/
30+ ├── platform/
31+ ├── infra/
32+ ├── contracts/
33+ ├── catalog/
34+ ├── governance/
35+ ├── shared/
36+ ├── tools/
37+ ├── docs/
38+ ├── tests/
1539├── .github/
1640│ ├── AGENTS.md
1741│ └── workflows/
@@ -20,8 +44,9 @@ fatecat/
2044│ ├── commands.md
2145│ ├── execution-playbook.md
2246│ └── troubleshooting.md
23- ├ ── scripts/
47+ └ ── scripts/
2448│ ├── acceptance.sh
49+ │ ├── check-structure.sh
2550│ ├── check-export-hygiene.sh
2651│ ├── check-source-hygiene.sh
2752│ ├── clean-runtime.sh
@@ -31,32 +56,35 @@ fatecat/
3156│ ├── production-readiness.sh
3257│ ├── preflight.sh
3358│ └── vendor-health.sh
34- └── scripts/project/
35- ├── AGENTS.md
36- ├── pyproject.toml
37- ├── assets/
38- │ └── docs/
39- │ └── lifecycle/
40- ├── modules/
41- ├── runtime/
42- ├── scripts/
43- └── tests/
4459```
4560
4661## 职责边界
4762
4863- ` SKILL.md ` :标准 skill 入口说明。
64+ - ` DEBUG.md ` :当前调试证据、根因和回归验证记录;只承载已复现问题的诊断闭环。
4965- ` REVIEW.md ` :当前仓库审计结果与 release gate 结论;只记录证据、风险与交接,不承载业务源码。
66+ - ` apps/ ` :用户体验入口和渠道壳层。
67+ - ` ai/ ` :Agent、skill、Prompt、评估和 AI 监管相关入口。
68+ - ` domains/ ` :领域服务根;当前承载 ` fate-core ` 与 ` fatecat-delivery ` 两个生产候选服务源码、契约和测试入口。
69+ - ` platform/ ` :Golden Path、CI/CD、供应链和开发者平台能力。
70+ - ` infra/ ` :环境、容器、数据库、运行准入、安全和观测期望状态。
71+ - ` contracts/ ` :API、数据集、capability、profile、evidence 和策略契约。
72+ - ` catalog/ ` :组件发现、owner、生命周期和依赖关系。
73+ - ` governance/ ` :标准、流程、ADR、风险、门禁、baseline evidence、任务和迁移账本。
74+ - ` shared/ ` :真实复用后的薄共享库,不作为 common 垃圾桶。
75+ - ` tools/ ` :迁移工具、参考仓和供应链快照。
76+ - ` docs/ ` :人类文档入口,不替代机器契约和治理证据。
77+ - ` tests/ ` :仓库级结构、契约、导出和跨服务测试入口。
5078- ` .github/ ` :GitHub Actions 远端验收配置;只调用仓库脚本,不保存业务代码或 secret。
5179- ` references/ ` :长文档、阶段门禁、输入输出契约、迁移与排障材料;其中 ` execution-playbook.md ` 是统一执行顺序真相源。
52- - ` scripts/ ` :skill 包装脚本、生命周期脚手架与导出脚本;其中 ` preflight.sh ` 是默认预检入口,` acceptance.sh ` 是发布门禁入口,` delivery-smoke.sh ` 负责可回收启动验证,` check-source-hygiene.sh ` 负责源仓 raw/运行态/个人路径门禁,` check-export-hygiene.sh ` 负责导出包卫生门禁,` check-privacy-fixtures.sh ` 负责示例数据与 vendor web 隔离门禁,` vendor-health.sh ` 负责 vendor 快照健康检查,` live-bot-smoke.sh ` 负责真实 Telegram token 验收,` production-readiness.sh ` 负责生产配置与 live 验收总门禁。
53- - ` scripts/project/ ` :FateCat 项目的真实源码根、运行时骨架与项目文档真相源。
54- - ` scripts/project/assets/docs/lifecycle/ ` :生命周期模板、治理资产与可沉淀的 agent 运维材料。
80+ - ` scripts/ ` :本地可重复执行入口;其中 ` preflight.sh ` 是默认预检入口,` acceptance.sh ` 是发布门禁入口,` check-structure.sh ` 是企业结构门禁。
5581
5682## 依赖方向
5783
58- - ` README.md -> SKILL.md + references/* + scripts/project/assets/docs/lifecycle/* `
84+ - ` apps/ai -> domains + contracts `
85+ - ` domains/experience-delivery -> domains/fate-analysis + contracts + infra `
86+ - ` domains/fate-analysis -> contracts + tools/reference-repos `
87+ - ` catalog -> domains + contracts + governance `
5988- ` .github/workflows/* -> scripts/acceptance.sh `
60- - ` scripts/* -> scripts/project/* `
61- - ` SKILL.md -> scripts/preflight.sh + scripts/delivery-smoke.sh + references/execution-playbook.md `
62- - 禁止在根目录重新散落与 ` scripts/project/ ` 平行的第二套业务源码目录
89+ - ` scripts/* -> domains + contracts + infra + governance `
90+ - 禁止新增旧路径 fallback;退役路径只允许出现在迁移账本、历史证据、负例测试和防回潮规则中。
0 commit comments