fix(m89): gate duplicated ledger ids and register the shared-style debt
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
|
||||
| 2026-09-18 | **M84-A Guild 委托板文字落纸面 + 状态行对比(正式 attempt PASS)** | `fix(m84a)` `44c775aa` + `docs(m84a)` `91be8fb9` | `m84-guild-board` `20260917T232824Z-61564` | runtime_verified | artifact `/private/tmp/aetherbound-guild-test-evidence/m84-guild-board/20260917T232824Z-61564`;markers 各 1(`ABG_M84_GUILD_BOARD_OK`/`ABG_M53_GUILD_INK_OK`);`strict_diagnostics=[]`、`workspace_removed=true`、`process_group_removed=true`;监督方独立复算:copy area 884..1170/186..344 全落纸面(838..1172/144..347)且与红帷幔(y≤181)零相交,四行 glyph 对比 **6.06 / 5.21 / 5.08 / 4.66:1**(原 market 1.47、notice 1.00);`GuildNotice` 由纸外移回纸面;`M84-I01`(语义色暂缺)与 `M84-I02`(worker 模型阻塞)登记 OPEN。**⚠ 产品结论自 `M84-E` 起生效**:该 attempt 的几何/对比读数是打在**同名隐藏副本**上的(页面自建 4 标签被 `visible=false`,真正渲染的是同名共享模块),M84-E 修正单一来源后同批断言才真正覆盖渲染文字 |
|
||||
|
||||
| 2026-09-18 | **M84-D GuildNotice 语义告警红与对比度口径(正式 attempt PASS)** | `fix(m84d)` `d901f796` | `m84-notice-semantic` `m84-notice-semantic` | runtime_verified | 共享令牌 `COLOR_DANGER_DEEP #8c2f2f`(对四角暗边 5.67 / 文字带 P95 6.65:1);notice 字号 8→11、框收窄;探针语义断言 + `ABG_M84_CONTRAST_RATIOS` 证据行(四行 12.76/12.68/6.06/6.65:1);markers 各 1、strict 0、cleanup 完成 |
|
||||
| 2026-09-18 | **M84-D GuildNotice 语义告警红与对比度口径(正式 attempt PASS)** | `fix(m84d)` `d901f796` | `m84-notice-semantic` `20260918T002539Z-5109` | runtime_verified | 共享令牌 `COLOR_DANGER_DEEP #8c2f2f`(对四角暗边 5.67 / 文字带 P95 6.65:1);notice 字号 8→11、框收窄;探针语义断言 + `ABG_M84_CONTRAST_RATIOS` 证据行(四行 12.76/12.68/6.06/6.65:1);markers 各 1、strict 0、cleanup 完成 |
|
||||
|
||||
| 2026-09-18 | **M85 Market 中文详情行语言混排修复(M82-I04)** | `fix(m85)` `13eb8a40` | `m85-market-locale-copy` `20260918T010937Z-36176` | runtime_verified | zh 行 `…金币 · 队伍 n → n+1`(无拉丁词),en 不变;探针语言纯度断言作用于生产函数输出;markers `ABG_M85_MARKET_COPY_OK`/`ABG_M59_INK_CHECK_OK`/`ABG_M52_MARKET_VISUAL_PROBE_OK` 各 1、strict 0、cleanup 完成 |
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
| 2026-09-18 | **M88 SHP-002 header 对比度补齐(title/price 共享 ink + 三标签断言)** | `fix(m88)` `4d3a9b45` | `m88-shp002-header` `20260918T053148Z-15287` | runtime_verified | marker `ABG_M88_SHP002_HEADER_OK`; zh 5.53/5.43/4.52、en 5.63/5.61/4.52 全部 ≥4.5;marker 恰 1、strict 0、cleanup 完成;1.0 gated / 1.3 记录 |
|
||||
|
||||
| 2026-09-18 | **M89 逐页覆盖矩阵刷新(Goal DoD 1/2)** | `docs(m89)` `02e10a67` | `m89-page-coverage` `m89-page-coverage` | runtime_verified | `ABG_M89_PAGE_COVERAGE_OK views=15 probes=9 uncovered=none battle=driven:m60+m79+battle_ink`;matrix 由工具生成;marker 恰 1、strict 0、cleanup 完成 |
|
||||
| 2026-09-18 | **M89 逐页覆盖矩阵刷新(Goal DoD 1/2)** | `docs(m89)` `02e10a67` | `m89-page-coverage` `20260918T055030Z-28350` | runtime_verified | `ABG_M89_PAGE_COVERAGE_OK views=15 probes=9 uncovered=none battle=driven:m60+m79+battle_ink`;matrix 由工具生成;marker 恰 1、strict 0、cleanup 完成 |
|
||||
|
||||
## 待办工作包(Goal 执行游标)
|
||||
|
||||
|
||||
@@ -37,3 +37,15 @@
|
||||
工具输出 `ABG_M89_PAGE_COVERAGE_OK views=15 probes=9 uncovered=none battle=driven:m60+m79+battle_ink`;
|
||||
矩阵 `docs/runtime/M62_PAGE_CONSISTENCY_MATRIX.md` 由 `--matrix` 生成(StyleBoxFlat grep 实测);
|
||||
三处缺失字面 marker 的账本行(m54/m79/m88)已补,工具由 FAIL 转 PASS。
|
||||
|
||||
## M89-I01(OPEN,指派 M90)
|
||||
|
||||
矩阵实测到**页面私有 `StyleBoxFlat` 未归零**:`guild_page_view` **2** 处、`readiness_page_view` **2** 处
|
||||
(各含一个页面私有 `_flat_style` 助手且在使用:Guild `_overlay_plate`、Readiness focus 样式)。
|
||||
Goal DoD 1 要求归零 → 移交 **M90**(`docs/plans/M90_SHARED_STYLE_CLOSURE.md`)。
|
||||
|
||||
## 第二轮(账本 id 门)
|
||||
|
||||
账本第 4 次出现"label 当 id":已在 `tools/m89_page_coverage.py` 加门——同行 label 重复、或 label
|
||||
紧跟 label 即 `exit 1`(明细打印 `ABG_M89_PAGE_COVERAGE_BADID`)。门上线即抓出并修复
|
||||
`m84-notice-semantic` 行的重复;M89 行亦已改为真 id。重跑 attempt 覆盖该检查。
|
||||
|
||||
@@ -40,6 +40,37 @@ def markers(text: str):
|
||||
return primaries
|
||||
|
||||
|
||||
LABEL_RE = re.compile(r"`(m\d+-[a-z0-9-]+)`")
|
||||
ID_RE = re.compile(r"^\d{8}T\d{6}Z-\d+$")
|
||||
TOKEN_RE = re.compile(r"`([^`]+)`")
|
||||
|
||||
|
||||
def ledger_bad_ids(text: str):
|
||||
"""The recurring defect class: a label used where the artifact id belongs.
|
||||
|
||||
Columns vary across rows, so the gate only fires on unambiguous shapes:
|
||||
the same label twice in one row, or a label immediately followed by
|
||||
another label. A truncated id can never pass silently because every label
|
||||
occurrence is checked against its neighbour.
|
||||
"""
|
||||
bad = []
|
||||
for number, line in enumerate(text.splitlines(), 1):
|
||||
labels = LABEL_RE.findall(line)
|
||||
if not labels:
|
||||
continue
|
||||
counts = {}
|
||||
for label in labels:
|
||||
counts[label] = counts.get(label, 0) + 1
|
||||
for label, count in counts.items():
|
||||
if count > 1:
|
||||
bad.append("line %d: label repeated %d times (%s)" % (number, count, label))
|
||||
tokens = TOKEN_RE.findall(line)
|
||||
for index, token in enumerate(tokens[:-1]):
|
||||
if LABEL_RE.fullmatch("`%s`" % token) and LABEL_RE.fullmatch("`%s`" % tokens[index + 1]):
|
||||
bad.append("line %d: label %s followed by label %s" % (number, token, tokens[index + 1]))
|
||||
return bad
|
||||
|
||||
|
||||
def styleboxflat_count(view_text: str) -> int:
|
||||
return len(re.findall(r"StyleBoxFlat", view_text))
|
||||
|
||||
@@ -85,15 +116,20 @@ def main() -> int:
|
||||
out.append("| `%s` | %s | `%s` | %d | `%s` | %s |" % row)
|
||||
pathlib.Path(args.matrix).write_text("\n".join(out) + "\n", encoding="utf-8")
|
||||
|
||||
ok = not uncovered and not no_marker and not no_ledger
|
||||
bad_ids = ledger_bad_ids(ledger)
|
||||
ok = not uncovered and not no_marker and not no_ledger and not bad_ids
|
||||
detail = "uncovered=%s markers_missing=%s ledger_missing=%s" % (
|
||||
",".join(uncovered) or "none", ",".join(no_marker) or "none", ",".join(no_ledger) or "none")
|
||||
if bad_ids:
|
||||
detail = "%s ledger_bad_ids=%d" % (detail, len(bad_ids))
|
||||
if ok:
|
||||
print("ABG_M89_PAGE_COVERAGE_OK views=%d probes=%d uncovered=none battle=driven:%s" % (
|
||||
len(views), len(probes), BATTLE_DRIVEN))
|
||||
else:
|
||||
print("ABG_M89_PAGE_COVERAGE_FAIL views=%d probes=%d %s" % (len(views), len(probes), detail))
|
||||
print("ABG_M89_PAGE_COVERAGE_DETAIL " + detail)
|
||||
for problem in bad_ids:
|
||||
print("ABG_M89_PAGE_COVERAGE_BADID " + problem)
|
||||
return 0 if ok else 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user