[v0.8 Prompts P01] preserve typed system-prompt provenance - #1177
Open
sethkarten wants to merge 20 commits into
Open
[v0.8 Prompts P01] preserve typed system-prompt provenance#1177sethkarten wants to merge 20 commits into
sethkarten wants to merge 20 commits into
Conversation
Add an IPYTHON_CONTROL_PROMPT line instructing the agent to never block the kernel with time.sleep() loops or long sleeps to await slow external work (background runs, sandboxes, sub-agents, remote jobs). A blocked cell holds the turn open, wastes wall-clock, and prevents user interaction. The agent should kick off the work, record its handle/output location, end the turn, and check results on a later turn. Update system-prompt.test.ts exact-match block and add a toContain assertion.
7 tasks
Contributor
Author
v0.8 stack checkpoint — 2026-08-11 15:50 UTCThis draft PR remains the GitHub Prompts stack surface and will be kept current.
The current remote tip is historical until that verified successor lands; this is not a readiness claim. |
sethkarten
changed the base branch from
main
to
v080/final-core-main-project-mcp-hardened
August 11, 2026 16:58
|
Macroscope has since reviewed this pull request. An earlier review was skipped by a cost limit; a review has now completed, so that notice no longer applies. |
sethkarten
changed the base branch from
v080/final-core-main-project-mcp-hardened
to
main
August 11, 2026 18:11
sethkarten
marked this pull request as ready for review
August 11, 2026 18:22
sethkarten
requested review from
alexzhang13,
skirsten and
snimu
and removed request for
skirsten
August 11, 2026 18:23
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.
P01 — typed system-prompt provenance
Published main-based head:
1a53c7064c8689f39c56da4639be7df1738fbc8eBase:
main; authoritative integrated main parent47dccfad4c0e71cd357f12d233ac44cc803af8c5.Ordered parents: prior corrected P01
4043f6b2418c636b0d27844af1f34ae0919bc1e3, then main47dccfad4c0e71cd357f12d233ac44cc803af8c5.Incremental scope: exactly nine P01 paths; corrected P01 semantic patch only, with all main-only content preserved.
P01 distinguishes built-in, custom (including present-empty), and unknown prompt provenance; unknown fails closed. Root, rebuild, runtime replacement, and actual child routes are covered. The prior depth-test defect was corrected append-only. Independent Terra review accepted the final main-based tree; neutral focused validation passes 94/94 and root type-check passes.
P02 is the separate child PR #1237 based on
v080/promptsand must merge after P01.Note
Cursor Bugbot is generating a summary for commit 1a53c70. Configure here.
Note
Preserve typed system prompt provenance through session and resource loader assembly
SystemPromptSourcediscriminated union (built_in,custom,unknown) in system-prompt.ts to carry authoritative provenance and content through prompt assembly.DefaultResourceLoaderin resource-loader.ts gains agetSystemPromptSource()method and tracks provenance when resolving system prompts, including asystemPromptSourceOverrideoption with malformed-input diagnostics.buildSystemPromptnow routes on provenance:custompreserves content verbatim (plus context/guidelines appendages),built_inuses default RLM assembly, andunknownreturns an empty string.AgentSessionin agent-session.ts replacesgetSystemPrompt()with a source-aware flow, passingsystemPromptSourcedownstream instead ofcustomPrompt.unknownprovenance now yields an empty system prompt rather than falling back to built-in defaults, which is a failure-closed behavior change for malformed overrides.Macroscope summarized 1a53c70.