Skip to content

T-2LBP-mc-typed-cell-rewire-touchpoints

Status: planning/backlog · Impact: high · Complexity: medium

Once W1 (T-2YLD-mc-structured-cells-upstream) ships typed cells and typed row read-back, the touchpoint parsers stop re-splitting raw rows and instead read typed rows straight off the contract — making the contract the single source for both the table shape AND the kind classification. Three files lose their hand-rolled splitting/casting layers:

  • plugin/lib/model/entities/task/ops/parse-touchpoints.ts — delete splitTableRow (~226-232), stripBackticks (~325-331), and the rawTableShape fallback (the rawTableShape helper ~153-182 plus the raw row-walk fallback inside parseTableRows ~280-322) once the typed projection supplies cells with their verbatim Location backticks and a typed Kind.
  • plugin/lib/model/entities/task/ops/resolve-touchpoints.ts — remove the as unknown as { … rows: ParsedRow[] } casts on the parseToday / parseFilesToTouch results (248-286) and the parallel ParsedRow interface (:74) once the op returns typed rows.
  • plugin/lib/model/entities/task/ops/gap-report.ts — collapse the separate four-way *_kind classification it sources from parse-touchpoints (the today_kind / files_to_touch_kind plumbing ~294-295, 535-536 and the classification branches ~204-216) so the contract — not a parallel classifier — is the source for both shape and kind.
  • AC-1: Touchpoint rows are read as typed rows (row.Location / row.Kind) off the W1 projection; no positional string[] re-indexing or re-splitting remains in the three files.
  • AC-2: splitTableRow, stripBackticks, and the rawTableShape fallback are deleted from parse-touchpoints.ts; the as unknown as casts and the ParsedRow interface are removed from resolve-touchpoints.ts; gap-report’s separate four-way *_kind classification is collapsed onto the contract.
  • AC-3: Behavior preserved — sdlc task gap-report output, the four-way table/prose/missing/bulleted-legacy classification, and every pinned row-error message (cell-count mismatch, row before separator, invalid kind, symbol-on-glob) are byte-identical; the touchpoint op/gate tests stay green.

T-2YLD-mc-structured-cells-upstream


← Back to Tasks