Skip to content

墙与索引产物过不了机审二件+脚手架--check全局61项漂移(来自#808验收现场) #866

Closed

Description

@FeatherHunter

发现(只报事实,不替原图定范围)

本票在执行 #808(物品管理域三,8 场景真页面)时实测到两处机审口径与交付物打架,均不在 #808 写集内(生成器归票 7 #804,判据件归票 6 #803,两票已关),当场补票。

A · 墙与索引三份文件过不了机审二件(必现)

.scratch/808/ 内 8 份域产物全绿(分隔符 8/8、结构块 8/8、墙自检双墙可发),
同目录的生成器产物 3 份(物品管理-3-手机墙.html/物品管理-3-桌面墙.html/总索引.html)恒红:

  1. 分隔符(audit-separators.mjs --dir):两张墙各 1 处重复句——墙格模板写死的
    这一格该确认什么: 每格一行(gen-scene-wall.mjs 的 cellHtml),8 格即重复 8 次,
    prose 口径(长度>6、逐行精确相等)必判 dupe;总索引 17 行英文裸词——生成器
    自己的文案(manifest.json、exit 1)、页族名(photos/photo_wall/…)与
    产物文件名(含 .html 后缀,任何文件名都带);
  2. 结构块(audit-page-blocks.mjs --dir --blocks page-blocks.json):墙与索引各缺 4 条
    默认块(doc-doctype 要 <!DOCTYPE html> 而生成器写 <!doctype html>;
    另缺 shell-page/cmd-line/css-inlined,墙模板里没有这三件)。

结论:11 张域票票面的“整目录跑二件”写法(--dir .scratch/<票号>)对任何一批都过不了——
墙与索引是生成器按票 7 体例出的,与域产物不是同一套壳。域票在自己票内改不了这两处
(改生成器=动票 7 写集,改判据=动票 6 写集)。

B · 脚手架 --check 全局 61 项漂移(#805 关闭后产生)

node packages/skill-home/scripts/new-scene-page.mjs --check 现报 diff=61,
覆盖全部 8 个域(含尚无域票开工的 stats/express/receipt/setup),
其中模板文件本身也在漂移(如 templates/space/suggest_storage.html、
templates/outfit/*.html、templates/express/*.html、templates/family/*.html)。
#808 的 7 族三方对账(附录↔页模块↔登记表,scaffold.test.mjs 逐族)全绿,
故漂移源不在域票填充,而在 #805 关闭后附录或生成器任一侧变过(疑似票 2 补丁流落地未同步)。

影响

建议(怎么改由本图定)

  1. 明确域票机审范围=产物文件(8 份),墙与索引走墙自检(已 exit 0),或
  2. 票 7 给墙与索引加机审友好输出(墙格标签缩到 6 字内、索引命令列 Latin 脱敏、
    墙壳补四条默认块),或
  3. 收口票(收口:端到端+双端墙+链路总览+逐页视觉复核+综合分 ≥90+维护者终审 #817)统一收敛。另查清 B 项漂移源并重跑对账。

复现

node docs/skills/skill-home/gen-scene-wall.mjs --check .scratch/808 物品管理-3-手机墙.html
node tooling/run-locked.mjs --ticket 808 --max-wait-ms 600000 -- node packages/skill-home/scripts/audit-separators.mjs --dir .scratch/808
node tooling/run-locked.mjs --ticket 808 --max-wait-ms 600000 -- node packages/skill-home/scripts/audit-page-blocks.mjs --dir .scratch/808 --blocks packages/skill-home/scripts/page-blocks.json
node packages/skill-home/scripts/new-scene-page.mjs --check

出处

进度:100%

维护者授权 AI 裁决(三问全按诊断裁决落地,无改判),关单前复验全绿,关闭。#808 凭新口径重跑 ③④ 后由其席位关闭(不属本票)。

实施记录(2026-09-21,两笔提交,已关单)

  • 49980a45 票866三裁决落地:双审计加 --manifest 清单作用域(加法式,旧行为不动)+附录 photo_wall status 五串回写+登记表与结构合同派生重跑(759 块)+页模块同步+脚手架门定位(登记表常驻、家族比对单次门)+style-audit 6 例新测+脚手架文档注记。
  • 9cfb3f32 评审跟进:NEED 由 REQUIRED_BLOCKS 派生(杀同文件双常量分叉)+blocks 清单语义注记。
  • 票面同步(tracker,非代码):物品管理域(三)照片、盘点与历史 8 条:各出真页面 #808 ③④ 与 收口:端到端+双端墙+链路总览+逐页视觉复核+综合分 ≥90+维护者终审 #817 ③ 改 --manifest 产物范围;10 张闭票为历史记录未动。
  • 验证读数:scaffold 48/48、items-3 10/10、style-audit 18/18、单接缝 PASS、产物范围双审计 8/8 双 PASS、墙自检双墙 exit 0+反例 exit 1 点名、包内全量 299/300(唯一红为 express 测试并发陈旧目录,他席在途,与本票零交集,已留证据)。
  • code-review:Standards 零硬违规;Spec 三条可行动项已落地(票面同步在 tracker、墙自检无需实现、登记表派生同一已证),分叉消除。

诊断(2026-09-21 实测,只读,未改业务代码)

现象(A 属实,B 部分属实、两处需订正)

影响范围

复现(最小复现,四条均跑通)

票面 ## 复现四条逐条跑通(A 三条、B 一条),另加两条核验:双墙 --check 各 exit 0;items-3.test.mjs 10/10 exit 0(#808 实质要求仍绿)。完整读数见本票评论区诊断记录。

根因候选

分流建议

  • 类别 bug,状态 ready-for-agent:两处均已实测定位,修复路径明确(A 选范围或修生成器;B 回写三方加脚手架门定位),可由 agent 按本票实施;Q1–Q3 为实施细节待确认,不阻塞转派。诊断阶段未改业务代码、未关闭单子、未开始实施。

待确认事项

  • Q1:A 项走“审计范围=产物文件(墙与索引走墙自检)”还是“修生成器机审友好输出”?推荐前者(改 11 张域票票面一句话,收口 收口:端到端+双端墙+链路总览+逐页视觉复核+综合分 ≥90+维护者终审 #817 同步;生成器改动另立小项并行,不卡 物品管理域(三)照片、盘点与历史 8 条:各出真页面 #808 关闭)。回了即按选项写实施 brief。
  • Q2:photo_wall 的 status 原文用“照片类型”还是“照片类型四值”?推荐“照片类型”(页上标题已是此四字,附录与登记表及页模块内另一处常量三处回写对齐)。回了即回写三处并重跑三方对账。
  • Q3:scaffold.test.mjs 的 --check 全绿断言改为单次门说明,还是每次重冻骨架?推荐前者(断言改为文档说明,常驻门为三方对账加域测试,避免域票填内容后恒红)。回了即按选项改测试门。

Activity

  1. added
    needs-triage
    on Sep 21, 2026
  2. FeatherHunter commented on Sep 21, 2026

    @FeatherHunter
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: bug
    Summary: Domain-ticket acceptance runs two page audits over the whole scratch directory, but the wall and index pages use a different shell than domain products, so they always fail; separately the scaffold --check gate is red with 61 diffs plus one real triple mismatch.

    Current behavior:
    A finished domain batch (8 product pages, all green on both audits, wall self-check exit 0 on both walls) still fails the ticket-face commands when they target the whole directory: the separators audit reports the index page (17 English bare-word lines from generator wording, family names and file names) and both wall pages (1 repeated sentence each from the fixed cell template); the structure audit reports the two walls plus the index missing the same 4 default blocks (lowercase doctype shell without the product shell markers). The scaffold --check command reports 61 diffs across all 8 domains after domain tickets filled the generated skeletons with real content, and the scaffold test additionally fails one triple reconciliation (photo_wall status wording differs between the page module and the contract appendix).

    Desired behavior:
    A domain batch passes its acceptance without touching closed tickets' write sets: either the ticket-face audit scope is the product files (walls and index keep going through the wall self-check, already exit 0), or the wall generator outputs audit-friendly shells. The photo_wall status wording is decided once and written back to all three places (contract appendix, registry table, page module) so the triple reconciliation is green. The scaffold --check assertion is repositioned as a one-shot gate (green only at scaffold time), with the triple reconciliation plus domain tests as the standing gates, so filled domain content no longer keeps it red. Pending maintainer confirmation on the three options in the issue body; proceed with the recommended options unless the maintainer overrides.

    Key interfaces:

    • The separators audit behavior contract (which findings count as red: layout-position separators, bare English lines outside payload zones, repeated prose sentences) — scope or whitelist behavior for generator-owned pages
    • The structure audit contract shape (defaults list plus per-family block entries) and how it matches non-product pages
    • The wall generator cell template and index builder output shell (doctype casing, shell markers present or absent)
    • The scaffold generator versus on-disk comparison behavior, and the scaffold test's two assertion groups (whole-tree check vs per-family triple reconciliation)
    • The contract appendix required-blocks entries as the source of truth for family wording

    Acceptance criteria:

    • An 8-product batch with both walls and index passes the ticket-face audits under the decided scope (product files, or whole directory after generator/audit adjustment)
    • Wall self-check stays exit 0 on both walls, and the negative case (renamed manifest entry) still exits 1 naming the file
    • The scaffold per-family triple reconciliation is green for all 46 families
    • The domain test for the reference batch stays 10/10 green
    • No closed ticket's write set is modified from inside this issue (generator changes go through ticket 7 ownership, audit-rule changes through ticket 6, contract wording through ticket 2)

    Out of scope:

    • Changing product page content or commands of any domain batch
    • Relaxing audit rules globally beyond the decided generator-owned pages
    • The unrelated in-flight type error in another family's page (tracked separately)
    • Closing the blocked domain batch ticket (it closes on its own contract after this ruling lands)
  3. added
    bug
    ready-for-agent
    and removed
    needs-triage
    on Sep 21, 2026
  4. FeatherHunter commented on Sep 21, 2026

    @FeatherHunter
    OwnerAuthor

    This was generated by AI during triage.

    裁决(第一性原理重推+对抗式审查,2026-09-21)

    Q1 → 审计范围=产物文件(墙与索引走墙自检),生成器不动。判据工具若缺文件级调用口,经票 6 回写做加法式扩展,不改任何规则;11 张域票票面改一句话,收口 #817 同步。红队两问已挡:墙的 cover 由墙自检正反两面加收口 vision 承担,无真空;(a)+(b) 并行被拒——(b) 原定三改(标签缩字、索引脱敏、补壳标记)是 metric gaming 且伤索引可用性,不碰已关票的输出。

    Q2 → status 用“照片类型”,且四值明列:["照片类型", "普通", "说明书-使用", "说明书-安装", "说明书-保养"]。附录、登记表、页模块内另一处常量、派生 page-blocks.json(重跑生成器,不手改)四处经票 2 ownership 对齐。红队两问已挡:非实现倒逼契约——UX 真值即“类型标题加四 chips”,四值实质由 chips 承载;5-3 域测试不断言 chips(只断“网格加补拍”),故必须明列,否则 coverage 实降。

    Q3 → 家族文件字节比对降为单次门(文档说明,仅脚手架重出时刻有效);常驻门为登记表字节一致加三方对账加真链渲染。红队两问已挡:模板标记破坏由真链 fail-closed 加域测试 cover,不靠 --check;登记表比对保留——落盘零漂移,其 validity domain 仍成立,删了是浪费信号。

    通用原则两条:门-对象错配(Q1 与 Q3 同根——门超出 validity domain 即出噪声,修门的位置不对就该修门的适用范围);单一事实源(Q2——附录为源、页模块派生,禁同一文件双常量分叉)。

    标签不变(bug+ready-for-agent);实施 brief 见上条评论,Q3 细节按本裁决精化(登记表 check 保留)。

  5. FeatherHunter commented on Sep 21, 2026

    @FeatherHunter
    OwnerAuthor

    维护者授权 AI 全权裁决(三问沿诊断裁决,无改判),关单前复验:三件套 76/76、产物范围双审计 8/8 双 PASS、墙自检可发,关闭。三句话版本:审计只审产物文件(墙与索引走墙自检);照片墙状态词取照片类型加四值明列,四处对齐;脚手架全量比对是单次门,常驻门为登记表加三方加真链。#808 凭新口径重跑后由其席位关闭。

  6. removed
    ready-for-agent
    on Sep 21, 2026
  7. added a commit that references this issue on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions