policy: Shorts_Director entities 契约声明收窄为显式枚举(ADR-0105,IR-0007) - #483
Conversation
|
ⓘ Your Qodo trial ends soon. Ask your workspace admin to set up billing to keep reviews running after the trial. Manage billing |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by Qodo枚举 Shorts_Director 实体契约以支持 ADR-0105 退役
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can describe a rule in plain language on the Rules page and Qodo drafts it for you |
There was a problem hiding this comment.
Pull request overview
将 Shorts_Director 的实体 JSON Schema 契约声明从 schema/entities/** 的 glob 收窄为显式枚举,以配合 ADR-0105 / IR-0007 的契约退役流程,避免契约门引擎对声明路径下文件删除的无条件失败。
Changes:
- 将
Shorts_Director的 entities 契约声明从 glob 改为 7 个 schema 文件的显式枚举。 - 增补注释解释收窄声明的动机与代价(新增 schema 需手工登记)。
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| # ADR-0105(IR-0007 契约退役,archive/adr):entities 声明由 glob 收窄为 | ||
| # 显式枚举——契约门引擎对声明路径下的文件删除(CONTRACT_REMOVED)无条件红 | ||
| # 且无 ADR 豁免通道,合法退役的唯一通道即同步收窄本声明(引擎注释认可)。 | ||
| # 代价(有意接受):新增实体 schema 不再被 glob 自动纳管,须在此登记一行; | ||
| # 漏登由 review + archive/adr/INDEX.yaml 追溯。 |
ADR-0105
schema/entities/**收窄为现存 7 张 schema 显式枚举;contracts/common 两处 glob 不变。