Skip to content

T-RFUT-consolidate-small-duplicated-helpers-shared-pyjsondumps

State: closed/done · Impact: low · Complexity: medium

From the Phase-4 audit’s recommended task list (docs/planning/notes/N-OCUK-2026-09-24-sdlc-1-0-audit.md, on origin/sdlc/p4-audit): Consolidate small duplicated helpers: shared pyJsonDumps, rjust/pad to lib/util/strings.ts, dedupe run() build helper, @sdlc:ignore-spawn + writeFileSync in bootstrap.ts.

AreaNote
skills/scan_corpus_assumptions.ts, dedup_search.ts pyJsonDumps
lib/util/strings.ts rjust/pad consolidation
scripts/build-binary.ts, build-npm-wrapper.ts run() helper; compiled/bootstrap.ts touch spawns
  • AC-1: One pyJsonDumps is shared by scan_corpus_assumptions.ts and dedup_search.ts.
  • AC-2: rjust/pad are consolidated in lib/util/strings.ts (or replaced by padEnd).
  • AC-3: build-binary.ts and build-npm-wrapper.ts share one run() helper.
  • AC-4: scripts/compiled/bootstrap.ts’s touch spawns are replaced by writeFileSync, with @sdlc:ignore-spawn markers where a spawn remains necessary.
  • none
  • none

← Back to Tasks