Skip to content

decision_context: single-source the successful-read status set - #8631

Closed
2430468136 wants to merge 5 commits into
loopx-project:mainfrom
2430468136:codex/decision-context-success-status-owner
Closed

2430468136 wants to merge 5 commits into
loopx-project:mainfrom
2430468136:codex/decision-context-success-status-owner

Conversation

@2430468136

Copy link
Copy Markdown
Contributor

What

The successful-read status set {completed, no_change} was restated across seven sites in decision_context: capture.py bound it as _READ_SUCCESS_STATUSES and inlined it once; assembler.py inlined it four times with no name at all. Every site now references the single owner freshness._SUCCESS_STATUSES; the restated name is retired.

Why

Both consumers already import from freshness, so borrowing the owner object adds no import edge and cannot cycle (freshness imports only .sources). The distinct failure set (_READ_FAILURE_STATUSES) and the four-member scan vocabulary (sources._SCAN_STATUSES) are different concepts and are left untouched.

The by-name inventory cannot see this: the owner and the retired capture name are private _-bindings it does not catalogue, they differ by name, and four of the seven sites had no name to key on.

Guard

New tests/architecture/test_decision_context_success_status_owner.py keys on the folded value: whole-tree census (only the owner states the set), identity for both consumers, retirement, the failure/vocabulary neighbours are different sets, and behavioural parity through the owner's source_freshness_row gate (a success attempt does not alert; a failed attempt alerts with its status). Poison-proven across set / frozenset / list / tuple / renamed / nested forms.

Tests

Architecture guard (27 cases) + decision_context behavior suite (193 tests) pass locally. Full architecture suite: failure set byte-identical to the clean base tree (96 = 96, of which 94 are the missing npm/TypeScript dev-dependency environment cause) -- net regression 0.

freshness._SUCCESS_STATUSES decides which scan/attempt statuses count as a
successful read (completed / no_change). The same two-member set was restated
across seven sites: capture bound it as _READ_SUCCESS_STATUSES and inlined it
once, assembler inlined it four times with no name at all. Both consumers
already import from freshness, so borrowing the owner object adds no import
edge and cannot cycle. Every site now references the owner and the restated
name is retired; the distinct failure set and the four-member scan vocabulary
are left untouched.

The by-name semantic inventory cannot see this: the owner and the retired
capture name are private _-bindings it does not catalogue, they differ by name,
and four sites had no name to key on. The new guard keys on the folded value --
a whole-tree census, identity for both consumers, retirement, and behavioural
parity through the owner's source_freshness_row gate.

Refs loopx-project#4447.

Signed-off-by: psychologister <230141834+psychologister@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-12T02:11:25.929773Z
We couldn’t complete this review. Comment @codex review to try again.
bfb2ce1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

评审提交:bfb2ce19d39f48aae9e22a09c6a3128a3f773e98。
[P2] 全仓同值检查会把有序报表键误判为重复的成功判定。 扫描范围

动机 / Motivation

维护 Decision Context 报表和执行架构测试的开发者,以及依赖 source coverage 与 capture freshness 的操作者。 当前改动成功复用原运行时定义。无语义改动的报表分组暴露了新增的全仓失败条件。 只把现有 status_counts 的四个显示键分组,顺序和计数原样保留。三个真实 prepare-evidence 调用仍成功并给出相同结果,但新增架构测试退出 1,把 assembler.py:176 的有序数据当成第二处成功判定。 本机以真实 CLI、文件和 SQLite 验证合成数据。未验证所有外部 provider 或远端 CI;本轮未查询 CI。

把新增硬规则收回已知判定槽位。 词表收敛 RFC 将同值发现作为 advisory;状态成员相同只能供调查,不能证明同一状态槽。 核验项:successful_read_consumers_keep_observable_semantics, same_value_without_same_slot_remains_advisory。

改动思路 / Approach

运行时借用 freshness 的现有不可变集合,不需要第二个类型、provider 或 import edge。语义相同的判断可以同源;报表顺序需保留。 运行时复用限制在 Decision Context 的既有状态判定;报表的有序键和其他领域的同值字面量由自己的用途决定。 把真正的 membership 统一到 freshness 是合适的。硬检查可以直接绑定这两个已知消费者及其状态判断。

具体改动 / Changes

  • freshness owner 仍使用原集合,capture 和 assembler 复用。同一真实 CLI、local-file provider 和独立 SQLite spool 对照:completed 与 no_change 保持完整覆盖和读取时间;文件缺失时组装为 unavailable,采集为 provider_failed,不更新最近成功时间和游标,失败计数从 0 增为 1。关闭采集时不建 spool;capture-status 保持只读。PR 基点 36 项通过,当前提交 63 项通过。
  • 新架构规则 会把 set、list 和 tuple 折叠为同一个集合。将 _source_coverage 的报表顺序写成 (*("completed", "no_change"), "failed", "unavailable"),然后运行真实 prepare-evidence 和新增 pytest:只把现有 status_counts 的四个显示键分组,顺序和计数原样保留。三个真实 prepare-evidence 调用仍成功并给出相同结果,但新增架构测试退出 1,把 assembler.py:176 的有序数据当成第二处成功判定。

对主干的风险 / Risks

当前提交在既有运行时用例中无回归。风险来自新测试的失败范围;它同时检查状态判定与显示数据。现有失败集合、全扫描状态和旧 spool 迁移没有随这两处 Python 文件改写。即使按现有四个状态分组且一个键也没有增删,原有常规架构验证仍会被拦。Ruff、差异、DCO、双语 RFC 和合入模拟通过。

我的整体评价 / Verdict

请求修改。仓库检查把能正常工作的有序报表数据误当成重复定义。 把阻断测试限制在已知的成功状态绑定和 membership 判断,保留捕获真正重复判定的正例,并加上有序报表列表的反例。全仓同值候选可以继续作为 advisory 输出。

English verdict: REQUEST_CHANGES. Head bfb2ce1. The shared runtime predicate preserves capture and coverage. The new whole-package assertion rejects an order-preserving status_counts grouping although all three real prepare-evidence outputs match. Restrict blocking checks to known successful-read decisions and allow ordered report data.

@pytest.fixture(scope="module")
def tree_offenders() -> dict[str, list[int]]:
offenders: dict[str, list[int]] = {}
for path in sorted(PACKAGE_ROOT.rglob("*.py")):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] 只在已知的成功判定位置阻止重述。 将 _source_coverage 的报表顺序写成 (*("completed", "no_change"), "failed", "unavailable") 后,真实 prepare-evidence 的键顺序、计数、覆盖和 freshness 保持一致,新增测试却退出 1,报 assembler.py:176。请把硬检查限定到状态判定,保留有序报表数据的反例。

Review on loopx-project#8631: the whole-tree folded-value census rejected an
order-preserving regrouping of the status_counts report tuple
((*(completed, no_change), failed, unavailable)) although every
observable prepare-evidence output stayed identical. Equal value is not
proof of one concept (semantic-vocabulary-convergence-v0), so the
blocking checks now bind only the two known consumers' status-decision
slots: named bindings and in/not-in membership comparands. The
whole-tree census remains as advisory output, the ordered-report
regrouping is pinned as a counterexample, and _source_coverage's report
order and counts are pinned behaviourally.

Refs loopx-project#4447.

Signed-off-by: psychologister <230141834+psychologister@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

评审提交 05d27cde886ad482128e6bbde6a3fbf5c732e2e8,分叉基线 ea67e68972fc78ed9f5c507df12d5ef2d722f44f。

[P2] 归属检查误把报表列赋值当成成功判定。 把同一组 completed、no_change 的显示列先赋给局部元组,再展开到原有四列中。三个真实 prepare-evidence 返回相同键顺序、计数和覆盖结果,新增架构测试仍退出 1。 阻断断言

动机 / Motivation

配置 Decision Context 来源或处理来源覆盖报表的开发者依赖一致的成功读取判定。 基线由采集、报表组装和新鲜度逻辑各自列成功状态。日后各自维护会使同一次读取在覆盖报表算完成,却不能更新时间,或者反过来。 当前提交复用了完成与无变化的判定。将原来的四个报表键内联分组,真实报表保持顺序,归属检查只给提示。 范围是读取状态、只读覆盖投影、采集新鲜度和已有架构测试。来源写入权限、捕获启用和消费入口沿用原方案。

改动思路 / Approach

采集和组装直接用 freshness 已有的不可变集合。报表顺序、完整状态词表和失败状态仍由自己的处理逻辑持有。 保留已知消费者的 owner 身份和成功、失败及有序报表对照。将硬检查绑定到真正判断 scan 或 attempt 状态的生产用法,普通赋值和未知用法留在提示层。 采集使用当前来源读取状态与 SQLite 旧游标计算持久结果,组装用同一成功定义计算覆盖和最后成功读取时间。显示列以原固定顺序汇总。 词表复用条件

具体改动 / Changes

3 个文件,+364/−9。生产 +13/−9,测试新增 351 行。 采用 ea67e68972fc78ed9f5c507df12d5ef2d722f44f 上的 docs/architecture/rfcs/semantic-vocabulary-convergence-v0.md。本轮核对 successful_read_consumers_keep_observable_semantics 与 same_value_without_same_slot_remains_advisory。同值候选规则 · 运行协议

对照 结果
真实读取与持久状态对照 当前提交复用了完成与无变化的判定。将原来的四个报表键内联分组,真实报表保持顺序,归属检查只给提示。
命名显示列的误拦 把同一组 completed、no_change 的显示列先赋给局部元组,再展开到原有四列中。三个真实 prepare-evidence 返回相同键顺序、计数和覆盖结果,新增架构测试仍退出 1。

对主干的风险 / Risks

真实 local-file 与 SQLite 的基线和候选表现相同。completed 和 no_change 保留覆盖,provider_failed 保留原游标和成功时间、失败计数增至 1,capture-status 只读。关闭自动采集不建 spool,关闭 profile 的现有测试不读取来源。 同值的历史内联报表重排已仅产生提示,测试退出 0。 基线 89 项,候选 122 项通过。 Ruff、diff check、DCO、RFC 双语 diff 与实际主干合并树检查通过。

语义与 CI 对齐

_decision_slot_sites 将任何 Assign 或 AnnAssign 的同值右侧认成状态判定。显示列绑定与真正的成功 membership 被同一硬断言处理。 本轮实际验证本地文件来源和 SQLite。远端来源、恢复后的其他 provider 及托管 CI 未核验。

我的整体评价 / Verdict

请求修改新架构检查。生产复用在已验证的行为中成立。同时重放内联显示分组、命名显示分组和真实 membership 重述。两种报表布局均应通过,真实成功判断副本仍应被拦。 上一轮评审

English verdict: REQUEST_CHANGES at 05d27cd. Capture and report behavior match the base, and the old inline grouping now emits only a warning. Assigning those same display columns to a local tuple still makes the ownership test fail with identical prepare-evidence output.

slots: set[int] = set()
for node in ast.walk(tree):
if isinstance(node, ast.Assign):
slots.add(id(node.value))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] 归属检查误把报表列赋值当成成功判定。 把同一组 completed、no_change 的显示列先赋给局部元组,再展开到原有四列中。三个真实 prepare-evidence 返回相同键顺序、计数和覆盖结果,新增架构测试仍退出 1。 保留已知消费者的 owner 身份和成功、失败及有序报表对照。将硬检查绑定到真正判断 scan 或 attempt 状态的生产用法,普通赋值和未知用法留在提示层。

Second review on loopx-project#8631: assigning the display columns to a local tuple
and expanding them into the report still tripped the hard check, because
any same-value assignment counted as a decision slot. The hard check now
binds only in/not-in membership comparands -- an inline literal folding
to the success set, or a name the same module restates -- so both report
layouts (inline starred grouping and named display columns) pass while
real membership restatements, inline or named, still fail. Bindings alone
and unknown uses stay with the advisory whole-tree census.

Refs loopx-project#4447.

Signed-off-by: psychologister <230141834+psychologister@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

评审提交 1a39fa1,目标分支提交 9ce3a46。与当前主干 c5ff8fd 的合并树检查无冲突。

[P2] 按函数绑定判断成功状态集合。 代码位置

动机 / Motivation

Capture 和 assembler 曾各自声明成功状态。前次评审发现,直接禁止同值绑定会拦住仅供显示的状态列。 调用 decision-context 以及维护证据覆盖和来源时效报告的开发者。 两处调用共用 freshness 的成功状态,同时让架构测试只拦住实际参与成功判定的重复集合。 复审记录

在 _source_coverage 用局部 statuses 保留两列展示顺序,在 _assembly_source_freshness 同样用局部 statuses 指向 _SUCCESS_STATUSES,供原有成员判断使用。 两个函数的局部变量分别绑定。_decision_slot_sites 把前者的名字加入模块级集合,于是把后者当作重复的成功判定。实际 CLI 输出相同,架构测试仍有 1 项失败。 验证使用隔离的本地文件和刻意源码变体。远端 CI 及已安装版本未运行。

改动思路 / Approach

已知消费者中承担共享定义语义的成员判断,展示列、映射键与各 profile 的选择继续独立。

  • 共享定义复用。两处现有入口继续接受 completed 和 no_change。四个 prepare-evidence 输入在基线、提交和两个等价变体上分别输出逐项相同的 JSON,覆盖完成、无变化、来源不可用和配置关闭,游标文件字节一致。 能力协议
  • 回归约束范围。已知决策位置的测试能识别真实副本,又可容纳独立的同值用途。 收敛合同 工作项

具体改动 / Changes

两个现有消费者读取 freshness._SUCCESS_STATUSES。架构测试对包内同值候选发出提示,并对两个已知消费者的决策位置执行硬断言。

对主干的风险 / Risks

  • PASS。250 项源码测试通过,覆盖架构、证据能力和公开 API 测试。 独立重跑前次反例。仅提取并展开显示列时,37 项架构测试通过。把字面集合真正置于成员判断时,归属断言失败。
  • FAIL。合规的 Python 局部重构会被架构测试拦住,开发者需要改动与行为无关的名字才可通过。

我的整体评价 / Verdict

REQUEST_CHANGES。将名称检查限定在能解析到实际绑定的判定位置。保持来源无法解析的同值候选为提示,并继续硬查可确认的直接重复。 用同一 prepare-evidence 输入复跑两个同名局部绑定和实际成员判断使用字面集合的控制。前者应通过架构测试,后者应触发成功状态归属断言。

English verdict: REQUEST_CHANGES at 1a39fa1. The earlier display-only rewrite passes. Two valid local bindings with the same spelling still cause a false positive even though the decision uses the owner object and the CLI outputs are identical. Resolve the actual binding and keep the direct-copy control.

continue
if id(comparand) not in wrapped and _members(comparand) == SUCCESS:
sites.append(comparand.lineno)
elif isinstance(comparand, ast.Name) and comparand.id in restated:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] 按函数绑定判断成功状态集合。 两个函数的局部变量分别绑定。_decision_slot_sites 把前者的名字加入模块级集合,于是把后者当作重复的成功判定。实际 CLI 输出相同,架构测试仍有 1 项失败。 将名称检查限定在能解析到实际绑定的判定位置。保持来源无法解析的同值候选为提示,并继续硬查可确认的直接重复。

…cope

A module-wide name set cannot tell two same-named function locals apart: display columns in one function and an owner alias in another were folded into one restatement. Resolve each membership comparand from the innermost enclosing scope outward, keep imports, parameters, and unknown provenance advisory, and pin the shared-spelling counterexample alongside the direct-copy controls.

Signed-off-by: psychologister <230141834+psychologister@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

评审提交 eb5ec59403dd6dbbea8b4c2a06087cc32aa3062d。原差异基点 9ce3a46bfe525aa2167de6699fc676ce8ef60247。

动机 / Motivation

决策上下文的操作者依赖来源覆盖和新鲜度报告,维护者需要确认何时可以推进扫描游标。 捕获与汇编曾各自写入 completed 和 no_change 两个成功值。未来只改一处时,新鲜度和覆盖可能从同一次读取导出不同结论。 同一份覆盖报告可以按既定顺序显示两列成功结果,实际覆盖判定和游标推进则应使用一个共同的成功集合。 当前候选的生产调用已使用共同集合。实际汇编函数只增一处展示成员判断后,十份报告字节完全一致,架构检查仍失败。同一函数在真实计数后重绑变量时,检查又漏掉了判断中的成功值副本。 远端 provider 的现场请求留待集成验证。

改动思路 / Approach

本次范围是收敛两条生产路径的成功状态判定,并保留能检验这些调用点的回归测试。 复用 freshness 的成功集合可以使覆盖、新鲜度和游标遵守同一个规则。对实际 coverage、freshness 和 cursor 入口用可区分的成功状态验证依赖关系。普通展示成员判断和无法证明的绑定可由现有 advisory 提醒。 架构约定

具体改动 / Changes

差异共 3 文件,新增 547 行、删除 9 行。七处生产判断采用现有集合,新增架构测试占 534 行。

  • shared-status-owner。汇编使用集合计算完整来源,捕获使用同一集合判定扫描成功后才推进游标和最近成功时间。原成功、失败和历史扫描回执均有对照。 覆盖计算 扫描捕获
  • advisory-value-only。新增遍历以 Python AST 的成员比较识别成功状态副本。函数作用域能排除一部分跨函数干扰,仍将相同字面值的成员比较都视为成功判定,并使用函数中最后一次绑定解析名字。 架构检查

对主干的风险 / Risks

[P2] 硬检查应贴合实际成功判定。 在实际计数前把成功集合复写到本地变量,再在计数后把同名变量重绑成共享集合,检查通过。将一个可区分状态加入 owner 后,直接使用集合的覆盖计数为 1,本地副本计数为 0。这个例子把误报之外的漏报也落到了真实结果上。 判断位置

决策上下文基线的 213 例和候选含架构检查的 257 例通过,标准 premerge 的 6 项直接检查和 8 项选定检查通过。独立反例使用实际汇编函数及本地合成扫描回执。

我的整体评价 / Verdict

REQUEST_CHANGES。 保留生产路径的共享集合,用行为对照验证两条实际入口。回归须允许字节一致的展示判断,并能捕捉计数前复写、计数后重绑的变体。

English verdict: REQUEST_CHANGES at eb5ec59. The hard architecture check rejects a byte-identical report-only membership and misses a real duplicate when a later assignment overwrites its binding. Exercise the production decisions directly.


sites: list[int] = []
for compare, scope in _membership_sites(ast.parse(source)):
for op, comparand in zip(compare.ops, compare.comparators):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] 硬检查只约束真实成功判定。 一个只负责列名的筛选也会使架构检查拒绝。真正复写成功状态且在同一函数稍后重绑变量时,检查又会漏掉。同一探针让 owner 认可一个额外状态,透明入口计数为 1,漏过的副本计数为 0。 保留两个真实入口复用 owner。以可区分状态集合直接验证实际 coverage、freshness 和 cursor 调用点,把普通展示 membership 与无法证明的绑定留在既有 advisory。

Static shape matching kept guessing: a display-only column filter was rejected, while a live copy hidden behind a later rebind escaped. Replace it with widened-owner probes at the real decisions -- coverage counts, freshness last_read_at, the legacy spool projection, and a full capture tick -- and leave display-only memberships and unprovable bindings to the advisory census.

Signed-off-by: psychologister <230141834+psychologister@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

评审提交 a6ffe6469eac2e3798b3b1b903c204737bad0009,验证主干 f38fae05bb9a1c2cc54a2641359224cc253d32ac。GitHub 差异分叉点为 ea67e68972fc78ed9f5c507df12d5ef2d722f44f。

[P2] 让回归测试覆盖 provider 健康状态。 生产行为已经等价。新增约束声称覆盖全部成功判定,却漏过真实健康回执的反例。 位置

动机 / Motivation

读取 Decision Context 来源覆盖、新鲜度与 provider 健康结果的操作者,以及维护成功读取判定的开发者。 采集与汇编直接复述成功值。前一头的静态规则会拦截展示列,且会漏掉随后被重绑覆盖的生产判断。 把成功状态的生产定义临时加入可区分状态 unavailable,再只把 assemble_decision_evidence 的健康状态判断改回两值字面集合。 同一真实 prepare-evidence 在未改写判断时输出 healthy,改回字面集合后输出 unavailable。来源覆盖仍为 complete 且最近读取时间相同,新增架构检查与两套已跑调用方测试仍为 78 项通过。

真实 prepare-evidence 中,成功读取、无变化、不可读来源、关闭 profile 的覆盖、新鲜度和健康字段与主干一致。展示列同值重组继续通过,字节保持一致。247 项决策上下文和架构测试通过。 本次范围是成功读取状态的定义和判定。读取授权、原游标写回条件和报表布局沿用既有入口。

改动思路 / Approach

两个生产调用方都能直接复用 freshness。用现有行为探针覆盖实际结果,同时保持同值扫描只输出提示。 保留七处生产复用及既有捕获、覆盖与新鲜度探针,在这次改动补上健康回执的反例。 保留重复集合会让未来规则修改需要同步七处。现有 owner 足以消除重复,给现有探针加输出断言比另写静态绑定分析更直接。

具体改动 / Changes

完整差异为 3 个文件,+506/−9。相较上次评审只改架构测试。字面值扫描变为提示,本地展示列重组继续通过。判定副本的覆盖依赖各生产调用点的可区分探针。 前次评审

docs/reference/protocols/decision-context-architecture-v0.md 在 f38fae05bb9a1c2cc54a2641359224cc253d32ac 的 Invariant 7。已配置来源失败时继续生成供读回的健康状态、证据和游标预览,保留 fail-open 且不取得写回权限。 当前实现 契约

关键代码讲解

  • _source_coverage。计算必需来源计数与遗漏。展示键顺序仍由自己的元组提供。 可区分状态更新共同覆盖计数,展示键重组保持字节一致。 代码
  • assemble_decision_evidence。将扫描状态和精确读取结果写入公共 provider_health。 将该判断改回原集合会改变实际 health,但新测试仍通过。 代码
  • _execute_capture_tick。依据共同的成功集合更新 SQLite 捕获游标和最近成功时间。 读取失败不推进,受控 owner 变化的游标探针能区分两种状态。 代码

对主干的风险 / Risks

247 项候选测试通过。变体在精确头上重跑 78 项成功,证明实际健康投影的错误变体能越过守护。 同一候选只在进程内恢复一处生产字面判断。公开 CLI 输出错开,而该 PR 新增的行为守护仍通过。 现有行为探针

为现有 widened-owner 探针加一项真实 prepare-evidence 的 provider_health 对照。只复写该判断应使测试失败;保留已有展示列的合法变体用例。 复验命令为 uv run --extra test python -m pytest -q tests/architecture/test_decision_context_success_status_owner.py tests/capabilities/test_decision_context_assembler.py tests/capabilities/test_decision_context_runtime.py。

我的整体评价 / Verdict

REQUEST_CHANGES。 生产行为已经等价。新增约束声称覆盖全部成功判定,却漏过真实健康回执的反例。 保留生产复用与 test 的行为探针,将 provider_health 纳入跟随 owner 的输出断言。 变更为 Decision Context 的来源分类和现有输出,不涉及渲染路径。对照已核验 CLI 和现有 API 测试。 真实测试覆盖本地文件、SQLite 和合成输入。未运行远端 provider 或远端 CI。

English verdict: REQUEST_CHANGES at a6ffe64. The runtime owner consolidation preserves baseline behavior. The new guard still misses a concrete duplicate in provider_health. Exercise that published field with the existing distinguishable-owner probe.

"status": (
"healthy"
if scan.status in {"completed", "no_change"}
if scan.status in _SUCCESS_STATUSES

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] 让回归测试覆盖 provider 健康状态。 把成功状态的生产定义临时加入可区分状态 unavailable,再只把 assemble_decision_evidence 的健康状态判断改回两值字面集合。 同一真实 prepare-evidence 在未改写判断时输出 healthy,改回字面集合后输出 unavailable。来源覆盖仍为 complete 且最近读取时间相同,新增架构检查与两套已跑调用方测试仍为 78 项通过。 为现有 widened-owner 探针加一项真实 prepare-evidence 的 provider_health 对照。只复写该判断应使测试失败;保留已有展示列的合法变体用例。 现有行为探针

@NIU-123370 NIU-123370 closed this Nov 16, 2026
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.

4 participants