fix(判据): prose 要走顶层静态 import(我用了动态 import,被同一条判据第三次抓住)

同一天第三次栽在"读取纪律"上:先是裸 readFileSync,再是新判据里又用一次,
最后是"用了 prose 但没静态 import"。三次都是同一套判据抓的 ——
这正是它存在的意义,也说明"我记得住"确实不成立。
This commit is contained in:
2026-09-14 17:22:19 +08:00
parent 684baf7cc8
commit 06c1a67bb6

View File

@ -20,6 +20,7 @@ import { test } from 'node:test';
import assert from 'node:assert/strict';
import { spawnSync } from 'node:child_process';
import { dirname, join } from 'node:path';
import { prose } from './lib/read.mjs';
import { fileURLToPath } from 'node:url';
const HERE = dirname(fileURLToPath(import.meta.url));
@ -163,7 +164,6 @@ test('自检:分类逻辑对合成输入有分辨力(否则这条判据可
* 所以 **不**在这里假装比对 —— 只把"能测的那笔"钉住。)
*/
export async function debtLedgerStaticMatches() {
const { prose } = await import('./lib/read.mjs');
const src = prose(join(HERE, 'run-all.mjs'));
const registered = JSON.parse(prose(join(HERE, '..', '..', '..', 'docs', 'DEBTS.json')))
.debts.find(d => d.id === 'static-criteria').count;