Skip to content

refactor(cron): privatize task history helpers - #106950

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/cron-private-dead-exports
Jul 14, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/cron-private-dead-exports

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Removes two internal cron task-history declarations from the repository's unused-export baseline. They were exported despite having no consumers outside their owning modules, which made the apparent module surface broader than the runtime contract.

Why This Change Was Made

Keep both helpers named and owner-local, but stop exporting them. Their existing callers remain unchanged, and the dead-export baseline drops by two entries.

User Impact

No user-visible behavior changes. This narrows internal API surface and makes future dead-code checks more accurate.

Evidence

  • Exhaustive symbol search found only each declaration and its existing owner-local use; no imports, barrels, docs, or reflective consumers.
  • pnpm test:serial src/cron/task-run-history.test.ts: 7/7 passed.
  • pnpm deadcode:exports: baseline matched 1,189 entries.
  • pnpm plugin-sdk:api:check: generated SDK baseline unchanged.
  • pnpm check:changed -- scripts/deadcode-exports.baseline.mjs src/cron/task-run-event-codec.ts src/cron/task-run-history.ts: passed.
  • Blacksmith Testbox: tbx_01kxf1yah8vdzm20qwj935sg1t.
  • Fresh gpt-5.6-sol medium branch review: 0.98, no findings.

AI-assisted: yes. No transcript attached.

@vincentkoc vincentkoc self-assigned this Jul 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Jul 14, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 14, 2026 01:04
@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready proof:

  • Exact PR head: 7a96c240dea7d04a23b8e61fb7a39726ffbb2402.
  • Scope: privatizes resolveCronRunEndedAt and CronTaskRunHistoryPage; removes their two stale dead-export baseline entries. No runtime logic or wire shape changes.
  • Source proof: exact repository search finds only each declaration and its owner-local consumer; no imports, barrels, docs, SDK, or reflective consumers.
  • pnpm test:serial src/cron/task-run-history.test.ts: 7/7 passed.
  • pnpm deadcode:exports: 1,189-entry baseline matched.
  • pnpm plugin-sdk:api:check: passed; generated SDK baseline unchanged.
  • pnpm check:changed -- scripts/deadcode-exports.baseline.mjs src/cron/task-run-event-codec.ts src/cron/task-run-history.ts: passed.
  • Blacksmith Testbox: tbx_01kxf1yah8vdzm20qwj935sg1t.
  • Fresh gpt-5.6-sol medium branch review: 0.98, no findings.
  • scripts/pr review-validate-artifacts 106950: READY FOR /prepare-pr, 0 findings.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 106950: hosted exact/recent gates passed; prep and PR heads are identical.

Known proof gaps: none material for this visibility-only patch.

@vincentkoc
vincentkoc merged commit dbf48c0 into main Jul 14, 2026
119 of 125 checks passed
@vincentkoc
vincentkoc deleted the refactor/cron-private-dead-exports branch July 14, 2026 01:04
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant