refactor(linkage): simplify runtime task handling - #95
Merged
Conversation
- 精简联动节点常驻状态并统一动作与参数分类 - 复用 JSON 可选字段解析并合并任务树遍历逻辑 - 补充兼容动作、分支遍历和序列化测试 Signed-off-by: Fernandez <yuanhaon81@gmail.com>
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.
Summary
Related issue
Closes #94
Root cause
联动运行时此前保存了完整 workflow 动作对象,但实际只需要四个不可变标识字段;动作类型和兼容参数键又分别在运行时与校验器中重复判断。任务构建、子节点挂接和占用查询也存在单调用方辅助函数及重复遍历框架,增加了状态、分支和兼容规则漂移的风险。
Scope
In scope
LinkAgeBase常驻状态并保持构造时快照语义。Out of scope
Risk tags
Type of change
Area
Candidate identity
1a1cab831ddd4dca2faecc8be6bec76f7ba36365e54ae4f79c46fd0b6c48ecb096f92ee8ae24e8b9be641e8bf1c88021f928b837dae2f7a1fcd00e846be7648ad4ea1eebb1ac07391c6675b88d2d68d605928f3e0073d9f294b28f1352ce4c1272f833bd2e29404e0a075d29b2868a1e8149d36e3bacd49074b5a8a0The candidate was not amended, rebased, or merged after evidence collection.
origin/mainadvanced afterward to213f9202with documentation-only changes; this branch intentionally remains bound to the validated base and CI should revalidate integration with currentmain.Verification
Parent baseline
Candidate checks
Risk-based evidence
BLOCKEDbecause no clearly authorized non-production speaker and repeatable alarm source were available.Documentation impact
Compatibility and deployment impact
Third-party code and assets
Security and release checklist
Signed-off-by:according to the DCO-style requirement inCONTRIBUTING.md.CONTRIBUTING.mdandCODE_OF_CONDUCT.md.Acceptance and cleanup
e54ae4f79c46fd0b6c48ecb096f92ee8ae24e8b9/ package6be7648ad4ea1eebb1ac07391c6675b88d2d68d605928f3e0073d9f294b28f13; real audio playback isBLOCKEDas noted above.[linkage-runtime],[linkage-service],[LinkageHandler]Notes for reviewers