Four-state labels, and the negatives that used to look alike

Every claim carried one of three labels, and the third was doing two jobs. `unverified` meant
both "someone asserted it and nobody here paid for the counters" and "no evidence was gathered
at all" -- different statements with different next actions. This adds `unknown` for the second.

The distinction that pays for itself lives inside a *negative* result, because an empty probe has
three causes and only one of them is a finding:

  absent                  -- coverage reached the question, nothing is there
  present but unreadable  -- the thing is there and this route cannot read it
  unknown                 -- nothing covered the question

The middle one is the dangerous one: it produces byte-identical output to the first, and it is the
normal case on the input this skill is aimed at. A packed APK returning four classes is not an APK
with four classes, and "the string was not in the dex" is a statement about a probe. The rule now
says to name the probe's coverage and run a control that must hit before writing "not present", and
to record `unknown` about the probe rather than `absent` about the target.

Also in this pass:

  * P47 -- two tools disagree about the same artifact, and the disagreement is your parser. One
    extraction rule reused across outputs that do not share a format: an unescaped `$` dropped every
    descriptor containing one, and dotted names were compared against DEX descriptors so one side
    parsed to nothing. The comfortable failure is the one that confirms what you already expected,
    which is why it survived the sanity check it should not have.
  * dexsql: a cache is second-hand evidence and it ages silently. A stale cache answers for the old
    artifact with no error, and `--trusted-input` skips revalidating the recorded source inputs --
    so a cached run supports "true of the artifact the cache was built from", not "true of the
    artifact in front of me".
  * ete-diff-tracing: a divergence is a location, not a cause. The differential method produces a
    positional claim, and three readings it does not authorise are written down beside the step that
    produces it.
  * CONTRIBUTING.md -- the gates, what a green run does and does not establish, the sync rules a
    change has to keep (a new reference must be named in the inventory; renaming a heading breaks
    every section reference that pointed at it), and the two failure modes to watch when editing the
    gates: a limit that cannot fail, and a gate whose answer varies with the runner. README links it
    from both language editions.
This commit is contained in:
inliver233 committed 2026-10-16 19:17:31 +08:00
1 parent b8aa0a529b
commit 6ab905b2c8
12 files changed
+274 -6

No files matched your search

+17
View File
@@ -461,6 +461,8 @@ Coverage 一节完整陈述、同时也应当放在这里的四条限定:
## 仓库维护
**要改动这里的东西?先读 [CONTRIBUTING.md](CONTRIBUTING.md)。** 它列出各道门禁、一次全绿意味着什么又不意味着什么、改动必须同步的规则(新增一个 reference 必须在清单里被点名;重命名一个标题会让所有指向它的章节引用断掉),以及修改门禁脚本自身时要留意的两类失效模式。
根目录下住着四个工具,它们不属于已安装的 skill:
```
@@ -485,6 +487,21 @@ build_scripts.py 审计机器特定残留物(绝对路径、凭据)
一致性有一种天然的反向压力 —— 一条断掉的路径会大声失败,然后有人修它。膨胀没有,这正是第三个工具存在的原因:每次迭代都会加一个 reference、一行索引和一条覆盖主张,而没有测量的话,仓库里没有任何东西会注意到。
### 全绿的门禁证明了什么,又不证明什么
上面的检查证明的是**一致性**,不是真相。`check_repo.py`、`check_refs.py`、`check_routing.py`、`check_commands.py`、`check_budget.py` 全绿,意味着路径可解析、清单完整、文档里的 flag 真实存在、入口点没有膨胀、受跟踪表面上没有目标身份。它们对**一个主张是否正确**什么也没说:一个引用可以指向真实存在的标题,却描述一个没人跑过的机制;预算门禁也分不清一个文件是承重还是只是相邻。而这两件事恰恰是读者真正要问的,能回答它们的只有强度标注和证据记录。
### 接纳外部贡献
**失败关闭。** 如果一项贡献与仓库宣称的覆盖范围的契合度、它的副作用、或确立这两者所需的验证**仍有实质未决**,就不要合并、不要发布:让它挂起、缩小它,或者拒绝它。把未决问题记录下来是有效的结果;把它变成「无」或「大概没问题」则不是。
有四样东西不是批准,无论它们看起来多好:**全绿的 CI、完成的实现、上游的流行度、以及没有人提出异议。** 它们证明的是代码能跑、还没人抱怨,这与「这属于这里、而且它的边界已知」是两回事。
两个决定多数此类判断的推论:
- **标注优先于体量。** 一份每一项主张都带着正确 `observed` / `inferred` / `unverified` / `unknown` 标注的大改动,比一份把假设当成结论的小改动更容易被接受,因为前者可以被核对。要问的是实际跑了什么;把「没有哪个主张是靠读资料升级成 `observed` 的」看作好迹象,而不是弱点。
- **未解决就是 `unknown`,绝不是不存在。** 一个在这里没有被演练过的能力是 `unknown`:不是被排除,不是被取消资格,也不是因为「大概能行」就合并。当一项贡献含有一半绑定设备或工具链的内容,可合并的是**被测量过的那一半**,加上为其余部分明确标注的模板,以及说明「另一半要变成 `observed` 需要什么存在」的那道门。
`tests/benchmark.md` 保存**回归矩阵**:维度 -> 公开目标 -> 该行演练的脚本 -> 实测结果 -> 强度标注。它是你在信任 `docs/tool-verification/` 下任何主张之前要重跑的检查表。样本会下载进 `tools/_work/` 且从不提交,因此每一行都点名它的公开来源并记录它所针对的哈希。
`docs/tool-verification/` 也不属于已安装的 skill。它是针对一个真实目标、一次测量迭代的证据记录:每个脚本实际做了什么、哪个独立方法确认了它、发现了哪些缺陷,以及该目标未能演练哪些场景。它存在的意义,是让 `SKILL.md` 里的 **Coverage** 主张可以被对照运行来检查,而不是被信任;也让缺口被写在下一个人能找到它们的地方。