Skip to content

fix(selling): 兑现 action=create 资源意图,修复 VPC 创建意图未落实 - #192

Open
ruanzhengxin-zhuxing wants to merge 1 commit into
mainfrom
harness/18a4984a
Open

fix(selling): 兑现 action=create 资源意图,修复 VPC 创建意图未落实#192
ruanzhengxin-zhuxing wants to merge 1 commit into
mainfrom
harness/18a4984a

Conversation

@ruanzhengxin-zhuxing

Copy link
Copy Markdown
Collaborator

背景

针对 Session ec63773c4daa458dbd70d490ad068c37(Aone #84541872):intent_parsing 列出 VPC 与 VSwitch 两个 create resource_intent,但 architecture_planning/模板把 VPC 退化为已有参数,只在已有 VPC 内创建 VSwitch,VPC 创建意图未被兑现。

根因

selling 流程的生命周期契约只单向约束了 use_existing/reference/forbid 不得新建,缺少反向约束:action=create 的资源必须在候选与模板中被兑现,导致 VPC 的 create 意图被静默降级。

变更

  • iac-aliyun-architecture/SKILL.md:intent 中每个 action=create 资源必须在每个 candidate 中兑现为新建资源,禁止降级为 use_existing/reference/参数或丢弃;无法兑现时 rollback 回 intent_parsing;补充"创建 VPC + VSwitch"正向示例。
  • iac-aliyun-template-generating/SKILL.md:candidate resource_intents 中所有 action=create 资源必须全部出现在 ROS Resources,缺失视为模板与意图不一致。
  • iac-aliyun-intent/SKILL.md:用户未表达新建语义时不得擅自标 create,与已有 use_existing 规则对称;补充"创建一个 VPC 和一个 VSwitch"示例。
  • 同步契约测试并新增 architecture evals 用例 create-vpc-and-vswitch-both-fulfilled

测试

uv run pytest tests/pipeline/selling/ -n auto → 351 passed;ruff check 通过。

…n candidates and templates

intent_parsing 列出 VPC create 意图后,architecture_planning 可能把 VPC 降级为
已有参数、只在已有 VPC 内创建 VSwitch,导致 VPC 创建意图未被兑现。

- iac-aliyun-architecture: intent 中每个 action=create 资源必须在每个 candidate
  中兑现为新建资源,禁止降级为 use_existing/reference/参数或丢弃;无法兑现时
  rollback 回 intent_parsing;补充"创建 VPC + VSwitch"正向示例
- iac-aliyun-template-generating: candidate resource_intents 中所有 action=create
  资源必须全部出现在 ROS Resources;缺失视为模板与意图不一致
- iac-aliyun-intent: 用户未表达新建语义时不得擅自标 create,与已有的
  use_existing 规则对称;补充"创建一个 VPC 和一个 VSwitch"示例
- 同步契约测试并新增 architecture evals 用例 create-vpc-and-vswitch-both-fulfilled

Ref: Aone #84541872, Session ec63773c4daa458dbd70d490ad068c37
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