Skip to content

规格:#822册子冻结实施(34格+4族+1共用件+主体命名+扁平目录) #848

Closed

Description

@FeatherHunter

Part of #820

Problem Statement

As the maintainer of the memo skill map, I have 30 help scenes that must each produce openable HTML, but the booklet is not frozen: the earlier 64-cell count double-counts 10 read scenes, one wake word maps to two scenes and collides, timestamped instances cannot be matched by a frozen full filename, and 8 domain tickets plus the acceptance wall are all waiting on names and counts. Without a frozen booklet every ticket re-derives names, links die, and the 82 small touch targets ride into 34 new pages.

Solution

Freeze 34 cells (30 result pages plus 4 wizard process pages), merge them into 4 shape families plus 1 shared piece, freeze the filename-stem algorithm plus the timestamp rule with a single definition, keep the existing flat product directory, and freeze only the What in this ticket while the How stays with the visual-baseline ticket. Downstream tickets then read names and families instead of re-deciding them.

User Stories

  1. As a map maintainer, I want every wake word to have exactly one openable product, so that no scene is left without HTML.
  2. As a map maintainer, I want the 64-cell miscount voided, so that read scenes do not produce two near-identical products.
  3. As a map maintainer, I want the 20 collection pages excluded, so that prompt fill-in work is not rebuilt as pages.
  4. As a domain implementer for basic records, I want the generic receipt family for my 3 write scenes, so that I implement parameters only, not a new layout.
  5. As a domain implementer for category adjustment, I want the single-versus-batch collision resolved by stems, so that my two products never share a filename.
  6. As a domain implementer for search, I want the list-query family for my 7 read scenes, so that all reads share one definition.
  7. As a domain implementer for reminders, I want to know collection needs no page, so that I do not build fill-in tables.
  8. As a domain implementer for wishes, I want the wizard family for plan and complete process pages, so that checking then confirming shares one shape.
  9. As a domain implementer for check-in, I want delete-by-update misrouting called out, so that I route deletes to removal with confirmation.
  10. As a domain implementer for mood, I want the generic receipt family despite no legacy baseline, so that I have a shape without inventing one.
  11. As a domain implementer for sync, I want the report family for the reconciliation report, so that status cards plus data panels share one definition.
  12. As a domain implementer for init, I want the wizard-plus-report split for first-use, so that the guide process and the setup report are separate cells.
  13. As a wall operator, I want the manifest to store stems only once, so that timestamped instances match by stem prefix instead of exact names.
  14. As a wall operator, I want stem collisions to be impossible by construction, so that the wall self-check never reports a missing file caused by naming.
  15. As a link-table operator, I want one flat product namespace, so that every row links with a single prefix rule.
  16. As a link-table operator, I want prompt, wake word, command, params, page type and absolute product path columns fixed, so that maintainers navigate without guessing.
  17. As a visual reviewer, I want the copy-button row plus its caption as one shared piece, so that one fix clears the repeated separator hits everywhere.
  18. As a visual reviewer, I want 4 families plus 1 shared piece as the only style carriers, so that the touch-target fix lands in 5 places and 34 cells follow.
  19. As a quality gatekeeper, I want collection excluded from page count, so that scoring effort covers 34 cells, not 54 or 64.
  20. As a quality gatekeeper, I want the lowest-page score reported alongside family averages, so that a weak generic receipt cannot hide behind averages.
  21. As a future migrator, I want the transliteration plus timestamp rules in the same single place as stems, so that publisher and wall never compute names separately.
  22. As a future migrator, I want the existing 216 products untouched in place, so that old links keep working while 34 new products sit alongside.
  23. As the final acceptor, I want only end-effect acceptance (every row clickable, wall check passes, per-page score at bar), so that process details stay delegated.

Implementation Decisions

  • Freeze 34 cells: 30 result pages (one per scene) plus 4 wizard process pages for the 4 scenes whose help declares a wizard. The 64-member-sum algorithm is voided. The 20 collection pages are excluded because collection completes in the same prompt fill-in for memo scenes.
  • Merge into 4 shape families plus 1 shared piece: list-query family for the 10 read scenes; wizard family for the 4 process pages (the two wish templates are the same shape parameterized); report family for sync and init reports (status card plus data panel); generic receipt family for the 16 scenes with no legacy page baseline (parameterized title and fields only, no bespoke layouts). The shared piece is the copy-action row plus its caption, defined once.
  • Freeze the filename-stem algorithm, not instance names: 28 stems equal the transliterated wake word; the single colliding pair takes a shape suffix (plain versus batch). The transliteration rule and the timestamp rule live with the stem algorithm in the single definition place. The manifest stores stems; the wall matches timestamped instances by stem prefix. The 5-line prefix-match change to the wall checker is recorded under the acceptance-shape ticket, not this one.
  • Keep the existing flat memo product directory alongside the existing 216 products, no extra layer. New stems follow the existing Chinese-prefix habit so prefix scans stay clean. Manifest plus generators stay in the warehouse; wall and link-table outputs stay in scratch space.
  • Split What versus How: this spec freezes counts, stems, directory and family membership. Style implementation (public-layer versus self-held stylesheets) stays with the visual-baseline ticket; the family table marks the rendering path as pending that ticket. No ticket writes the same shared definition twice.
  • Seams for verification: one seam only, the manifest self-check (manifest rows versus files on disk, missing-file naming, exit nonzero plus per-row naming). The link-table dead-link check reuses the same stem rule. No new seams. If confirmation ever needs its own page per the command-surface ruling, it counts as a wizard process page, never as a new collection class.

Testing Decisions

  • What makes a good test here: only external behavior (a manifest row resolves to a file on disk; a link-table row opens; no duplicate stems), never implementation details of any single page.
  • The manifest self-check is the single gate: positive runs pass with zero missing across both wall widths; a renamed stem fails nonzero with the exact row named; restoring the name returns the run to byte-identical green. The link-table dead-link check mirrors it.
  • Shape conformance is referenced, not re-implemented: the separator probe must read zero at node and row level; the responsive measure must read zero cross-width overflow at all three widths; touch targets below 44px are counted only at the two narrow widths; the per-page bar is at least 90 with every dimension at least 80 percent of its full weight, reporting family averages and the lowest page.
  • Prior art reused unchanged in shape: the calorie wall generator four-mode rehearsal (two widths plus check plus counter-example), the static link-table skeleton with dead-link exit codes, the separator probe, the responsive measure, the layout reader, and the five-dimension scorer. The only delta is the stem-prefix match noted above.

Out of Scope

  • Style implementation itself (belongs to the visual-baseline ticket).
  • Command-surface rulings: first-use placement, time-range semantics, set-reminder channel, delete confirmation source.
  • Route-table cleanup: authorization wording, deprecated reminder placement, alias listing, stats command disposal.
  • Source-tree reordering by 8 domains, command registration gates, line-count gates.
  • The 8 domain end-to-end implementations and the final acceptance run.
  • Help content rewrite, settings pages, other skills, release publishing, any change to the legacy skill warehouse.
  • Moving or renaming the existing 216 products.

Further Notes

  • The 82 small touch targets plus zero public-layer block hits are the reason the How must follow quickly; this spec merely stops them from multiplying from 8 samples to 34 cells.
  • Collection exclusion rests on two measured facts: only 5 scenes truly miss slots while 20 declare collection, and one of those 5 hits only by alias substring luck. Collection demand is slot-driven, not label-count-driven.
  • The colliding wake-word pair is the only stem exception; every other stem needs no suffix.

进度:100%

freeze(What)已落盘并自检全绿;端效应(逐行点得开/墙自检/逐页打分)归下游 #825+8 张域票+#834/#835,本票按 Out of Scope 不承接。

实施记录

下一步:#825 消费行字段并落墙前缀匹配;8 张域票按 bookletFileStem 取主体施工;#849/#851 定族与共用件实现。

Activity

  1. added
    ready-for-agent
    on Sep 21, 2026
  2. FeatherHunter commented on Sep 21, 2026

    @FeatherHunter
    OwnerAuthor

    决议:册子冻结(What)已实施落盘,可关。

    落点(唯一定义地):packages/skill-memo-ilife/src/help/booklet.ts——34 行(seq 1-30 结果页+31-34 过程页)、4 族(通用回执 19/列表查询 9/报告 2/向导 4)、1 共用件(复制区按钮排加说明行)、bookletFileStem(sceneId[, kind]) 查询;经 src/help/index.ts 公开接口转出,包根与 package.json 未动。

    自检:test/booklet-848.test.mjs 5/5 绿(runId 37d4e7e2);编译 runId 3a9f4e70 exit 0;回归抽查 16/17,唯一红是 src/health.ts 既有债务(本票未碰,归 #823)。证据见 docs/skills/skill-memo-ilife/t848-册子实施-证据.md。

    对抗式更正两处:批量结果页主体为 备忘改分类-批量(t822 表格行误作备忘改分类,会撞单条);列表查询族 9 格(同步归报告族)。

    下游:#825 消费行字段并落墙前缀匹配;8 张域票按 booklet 取主体施工;#849/#851 定族与共用件实现。端效应验收(逐行点得开/墙/打分)随下游,不在本票。

  3. FeatherHunter commented on Sep 21, 2026

    @FeatherHunter
    OwnerAuthor

    按验收标准自查通过:34 主体冻结、族归属冻结、扁平目录与单一定義,定义级自检 5/5 绿。关票,下游见票面下一步。

  4. 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

ready-for-agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions