Repository navigation
Description
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
- As a map maintainer, I want every wake word to have exactly one openable product, so that no scene is left without HTML.
- As a map maintainer, I want the 64-cell miscount voided, so that read scenes do not produce two near-identical products.
- As a map maintainer, I want the 20 collection pages excluded, so that prompt fill-in work is not rebuilt as pages.
- 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.
- 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.
- As a domain implementer for search, I want the list-query family for my 7 read scenes, so that all reads share one definition.
- As a domain implementer for reminders, I want to know collection needs no page, so that I do not build fill-in tables.
- 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.
- As a domain implementer for check-in, I want delete-by-update misrouting called out, so that I route deletes to removal with confirmation.
- 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.
- 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.
- 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.
- 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.
- 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.
- As a link-table operator, I want one flat product namespace, so that every row links with a single prefix rule.
- 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.
- 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.
- 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.
- As a quality gatekeeper, I want collection excluded from page count, so that scoring effort covers 34 cells, not 54 or 64.
- As a quality gatekeeper, I want the lowest-page score reported alongside family averages, so that a weak generic receipt cannot hide behind averages.
- 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.
- 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.
- 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 不承接。
实施记录
- 唯一定义地:
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.mjs5 例全绿(34 格连续/主体 34 两两不同/30 场景与 HELP 官方源逐字对齐/族计数复算/28 原样+撞名对后缀+4 向导后缀)。 - 对抗式更正两处:批量结果页主体按 §二后缀规则落实为
备忘改分类-批量(t822-册子冻结.md§五第 6 行误作备忘改分类,会撞单条);列表查询族为 9 格(同步归报告族,票面“10 读场景”系未拆同步前的计数)。 - 未碰:
cmd_read.ts旧主体名(归 8 张域票)、墙前缀 5 行小改(归 规格:验收形制(链路总表 + 双端墙 + 册子 + 机审判据,各照仓内哪一件) #825)、样式实现(归 规格:备忘录视觉基准与手机端数值表(#824 结论固化) #849/公共层小票:视觉基准三件(判分引擎/六列机审/共用形状件) #851);时间戳只引用base-paint/save-html,目录只引用src/help/manifest.ts(memo_html扁平,216 件原地不动)。 - 证据:
docs/skills/skill-memo-ilife/t848-册子实施-证据.md(编译 runId3a9f4e70exit 0;自检 runId37d4e7e25/5;回归抽查 runId7b1e7f8616/17,唯一红为src/health.ts既有债务,本票未碰,归 规格:src 按 8 域重排的形状(域目录、共用位、命令登记机器门、行数门) #823)。
下一步:#825 消费行字段并落墙前缀匹配;8 张域票按 bookletFileStem 取主体施工;#849/#851 定族与共用件实现。
Activity
FeatherHunter commentedon Sep 21, 2026
决议:册子冻结(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.mjs5/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 定族与共用件实现。端效应验收(逐行点得开/墙/打分)随下游,不在本票。
FeatherHunter commentedon Sep 21, 2026
按验收标准自查通过:34 主体冻结、族归属冻结、扁平目录与单一定義,定义级自检 5/5 绿。关票,下游见票面下一步。
#848 册子冻结实施:34格主体与族归属唯一定义地加定义级自检