feat(miracle): 明确定义策略状态与正式 IG 合同 - #21
Draft
thugongheng wants to merge 1 commit into
Draft
Conversation
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.
变更内容
这是
24_miracle的堆叠 PR A,基于 PR #18 当前 head。z = (s, m):Judge observation 与显式、连续、可序列化的 if-else 策略状态。MIRACLE_*配置,并为每个决策点绑定完整 canonicalA(s)。KL(new || old)、epsilon = 0.01、自然对数、新策略 occupancy,主值为逐决策 KL trace 的算术平均,单位为nats / decision。null/incomplete,不补零;从有序 decision records 重算 tracking/report 汇总。原因
为
24_miracle建立唯一、可复现、可审计的决策空间和信息增益口径,避免策略内部状态、合法动作空间或上传汇总造成不可验证的指标漂移。范围边界
本 PR 不包含:
这些内容将分别通过后续堆叠 PR B、C 交付。
验证
320 passed,10 subtests passed,0 failed,0 skipped。compileall src tests tools:通过。git diff --check:通过。299,956 bytes,低于350,000 bytes限制。