fix(selling): 兑现 action=create 资源意图,修复 VPC 创建意图未落实 - #192
Open
ruanzhengxin-zhuxing wants to merge 1 commit into
Open
fix(selling): 兑现 action=create 资源意图,修复 VPC 创建意图未落实#192ruanzhengxin-zhuxing wants to merge 1 commit into
ruanzhengxin-zhuxing wants to merge 1 commit into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
针对 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 意图被静默降级。变更
action=create资源必须在每个 candidate 中兑现为新建资源,禁止降级为 use_existing/reference/参数或丢弃;无法兑现时 rollback 回 intent_parsing;补充"创建 VPC + VSwitch"正向示例。resource_intents中所有action=create资源必须全部出现在 ROSResources,缺失视为模板与意图不一致。create,与已有 use_existing 规则对称;补充"创建一个 VPC 和一个 VSwitch"示例。create-vpc-and-vswitch-both-fulfilled。测试
uv run pytest tests/pipeline/selling/ -n auto→ 351 passed;ruff check通过。