Repository navigation
feat(surface): configurable prompt sections, nudge sections, tool prompts, delegate prompt - #395
Merged
Merged
Conversation
added 2 commits
September 12, 2026 20:17
…mpts, delegate prompt (#252) Four new acp.json keys exposing the kernel 0.0.65 surface-config layer: - promptSections: tri-state overrides for the 9 structural ACP system-prompt sections (string=replace, null=remove, omitted=default); the 4 load-bearing compression rules stay under the risk-gated prompts key - nudgeSections: tri-state overrides for guidance-class nudge texts (efficiencyNote, emergencyHeader, t2Guidance, t3Guidance) - toolPrompts: per-tool LLM text (description, paramDescriptions, promptSnippet, promptGuidelines) for compress/decompress/search_context/ acp_status, read synchronously at extension load (tool defs frozen at registration) - delegatePrompt: replace or remove the ACP_DELEGATE_NOTIFICATIONS appendix Default system prompt and delegate appendix are byte-identical to the pre-change output (fixture-pinned). All four fields sanitized at applyUserConfig time; unknown keys and malformed values are dropped.
Contributor
📦 Built Extension ArtifactBranch: Option A — Install from npm PR tag (recommended)pi install npm:billion-context-pi@pr-395Each push to this PR publishes a new version under the Option B — Download artifact
tar xzf billion-context-pi-pr395.tgz
pi install ./packageThis comment is automatically updated on each push. |
Windows runners checked the fixtures out with CRLF (core.autocrlf), breaking the byte-identity assertions. Mark tests/fixtures as -text so git stores and checks out the bytes verbatim.
This was referenced Sep 12, 2026
Closed
Merged
HangxiangMa
pushed a commit
to HangxiangMa/billion-context-pi
that referenced
this pull request
Sep 21, 2026
…face-config feat(surface): configurable prompt sections, nudge sections, tool prompts, delegate prompt
This was referenced Sep 25, 2026
Merged
HangxiangMa
pushed a commit
to HangxiangMa/billion-context-pi
that referenced
this pull request
Sep 29, 2026
Top-level acp.json key removed from the soft-protected recent zone (kernel ranxianglei#395). Recommended remedy for the batch-read fold->re-read loop (upstream billion-context #1198/#1277): remove only 'read', keep decompress/search_context. Unlike the two protection keys an empty array is a VALID max-protection escape hatch, so it is validated separately from cleanProtectionList. Refs ranxianglei#545
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.
Fixes #252
What
Exposes acp-kernel 0.0.65's surface-config layer (kernel #169 + #256) as four new acp.json keys:
promptSectionsnudgeSectionstoolPromptsdelegatePromptSafety
prompts+acknowledgePromptsRisk; new keys are docs/guidance class, not gated.toolPromptsis read once at factory time (mirrors the existing sync userConfigDisabled pattern) because pi freezes tool definitions at registration.Byte-identity
Default system prompt and delegate appendix are fixture-pinned (
tests/fixtures/pi-*.txt) — with no config, output is byte-identical to pre-change builds.Deps
Pins acp-kernel to exact 0.0.65 (published). Local validation ran against kernel master overlay before publish, then re-validated against the registry tarball.
Tests
774 pass / 0 fail / 3 skip (env-dependent). 10 new tests in
tests/surface-config.test.ts: fixture byte-identity, tri-state semantics, sanitizers, paramDescriptions schema rewrite, project-local.pi/acp.jsonpickup, loadUserConfig new keys. Docs: CONFIGURATION.md + CONFIGURATION.zh-CN.md.