Repository navigation
refactor(agents): privatize system prompt helpers - #106965
Merged
Merged
Conversation
vincentkoc
marked this pull request as ready for review
July 14, 2026 01:26
Member
Author
|
Land-ready proof for
No docs or changelog change is required; this narrows internal exports without changing prompt behavior. |
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Removes three system-prompt implementation helpers from the repository's unused-export baseline. Production only calls them inside
buildAgentSystemPrompt, while direct test imports made internal prompt assembly look like a supported module API.Why This Change Was Made
Make the bootstrap context, bootstrap section, and runtime-line builders module-private. Their behavioral assertions now run through
buildAgentSystemPrompt, preserving full/limited/none bootstrap wording, context de-duplication, runtime identity, and isolated-cron cache stability at the public owner boundary.User Impact
No prompt output changes. The public prompt builder keeps the same behavior while the internal API surface and duplicated test seams are smaller.
Evidence
pnpm test:serial src/agents/system-prompt.test.ts: 93/93 passed on Linux.pnpm deadcode:exports: baseline matched 1,164 entries.pnpm plugin-sdk:api:check: generated SDK baseline unchanged.pnpm check:changed -- scripts/deadcode-exports.baseline.mjs src/agents/system-prompt.ts src/agents/system-prompt.test.ts: passed.tbx_01kxf36gajn6ebafpna8gset3y.gpt-5.6-solmedium branch review: 0.99, no findings.AI-assisted: yes. No transcript attached.