ekp/.phrase/phases/phase-kp-overhaul-20260726/plan_auto_spacing_signature_20260728.md
Kinneyzhang fd1210e557 fix: close repository audit findings
Complete task002 through task016 across cache correctness, editor lifecycle, C boundaries, build and release governance, dictionary provenance, performance, interactive workflows, tests, documentation, and final cleanup.
2026-07-28 22:43:10 +08:00

1011 B

Plan: Complete Automatic Spacing Cache Identity

Scope

Finish issue001 by fixing the auto-CWS paragraph-cache defect only. Preserve the completed DP signature work in task002.

Resolution Path

  1. Prove the paragraph hash and same-string fast path both reuse stale automatic spacing after ekp-default-cws-stretch-pixel changes.
  2. Give paragraph preprocessing one spacing-signature owner shared by both lookup paths.
  3. Keep automatic font-derived values represented by the existing font/display-context identity; add the remaining CJK default explicitly.
  4. Prove an unchanged signature still hits instead of disabling caching.
  5. Run focused and full ERT, fuzz, warning-clean compilation, and checkdoc.

Non-goals

  • No variable watcher for the CJK default.
  • No DP-key or C ABI change.
  • No editor-integration changes.

Rollback

Revert the spacing-signature helper, the two lookup uses, and the three regression tests. Caches are process-local, so no data migration is needed.