Skip to content

fix(perf): mark facts stress preload entry as public - #198677

Merged
steipete merged 1 commit into
mainfrom
steipete/fix-facts-stress-preload-export
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/fix-facts-stress-preload-export

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Problem

check:changed is red on main since #194519 (72f90dd). Knip's script unused-export scan reports prepareTranscriptFactsBackfillStress in scripts/perf/transcript-facts-backfill-stress-preload.mjs. Perf lanes branching from main inherit the failure.

Why the export stays

No in-repo module imports this function by design. The module header explains the contract: a task-local --gateway-preload module imports it and passes the campaign root plus the operator's original TMPDIR. These paths can't reach the stress Gateway any other way:

  • createGatewayBenchEnv builds the Gateway env from an allowlist, so extra env vars are dropped.
  • team-shape-stress creates its output directory fresh (mkdirSync without recursive), so a pre-written options file is impossible.

Change

Tag the export @public with that reason, following the existing precedent for out-of-repo consumers in scripts/lib/docs-markdown.mjs. No runtime change.

Evidence

  • node scripts/check-deadcode-exports.mts with main's file: the script unused-export scan reports scripts/perf/transcript-facts-backfill-stress-preload.mjs: prepareTranscriptFactsBackfillStress.
  • Same command with this change: Knip script unused-export scan passed with 0 entries.
  • The remaining dead-export finding on main is extensions/workboard/src/store-evidence.ts: MAX_COMPLETION_CLAIMS from feat(workboard): record optional claims, observations, and verification #197471. It is unrelated and routed separately.
  • oxfmt --check clean. Codex autoreview: scoped-clean.

The facts backfill stress preload is imported by a task-local --gateway-preload wrapper that embeds the campaign and temporary roots, because the bench Gateway env allowlist cannot carry them. Knip's script export scan saw no in-repo importer and failed check:changed on main.
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T05:22:57.053471Z 6667b66 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 14, 2026
@steipete
steipete merged commit f439b77 into main Nov 14, 2026
16 of 19 checks passed
@steipete
steipete deleted the steipete/fix-facts-stress-preload-export branch November 14, 2026 05:21
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
The facts backfill stress preload is imported by a task-local --gateway-preload wrapper that embeds the campaign and temporary roots, because the bench Gateway env allowlist cannot carry them. Knip's script export scan saw no in-repo importer and failed check:changed on main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant