docs(rfc): define scope-owned prompt management - #1468
Open
Teingi wants to merge 4 commits into
Open
Conversation
Teingi
marked this pull request as ready for review
September 5, 2026 00:37
Teingi
commented
Sep 5, 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.
Tracks #1465.
Rationale for this change
PowerContext binds seven built-in instruction variants across six inference operation types at Runtime composition.
Customers need Scope-specific operational prompts with immutable history, rollback, and traceable runtime selection.
This proposal reuses Scope and Artifact revision/head semantics: no new database tables and no parallel Prompt CRUD API.
What changes are included in this PR?
family=prompt, registered prompt keys as stable Artifact IDs, and strict content containingschema_version,mode,instructions, and typeddemonstrations(inputplusexpected_output).non-persisting Prompt demonstration generation. Rollback copies an old revision into a new conditional replacement.
the v1 restriction to homogeneous deployment versions.
after head changes and distinguishing edited drafts from unchanged generated content.
exclusion, with explicit adversarial validation requirements.
the six keys and handles empty Scopes, disabled operations, and externally managed components without a discovery API.
and block existing Custom heads after a component switch instead of silently ignoring them.
scenarios, including the narrow amendments to RFC 1396 and RFC 1437.
This PR contains design documentation only. It does not implement the proposed APIs or Runtime behavior.
Are there any user-facing changes?
No released behavior changes in this PR. The proposed implementation retains current behavior for Scopes without
Prompt Artifacts, including injected components. It requires no new SQL tables or content backfill.
Implementing the RFC extends existing capabilities and Handoff request/response/content models, so strict readers,
generated contracts, mappers, and clients must be updated together. Old Handoff payloads without generation metadata
remain valid but do not carry verified Prompt provenance. V1 does not support mixed Definition/compiler versions
within one deployment.
How was this change tested?
Passed:
git diff --checkandgit diff --cached --check.MemoryExtractionInput/MemoryExtractionOutputmodels in strict JSON mode.UV_PYTHON=3.11 uv run --locked prek run -ahooks except the existingty-checkfailure below.website/, using its pinned pnpm 11.13.1:corepack pnpm install --frozen-lockfile,corepack pnpm lint, andcorepack pnpm build.The root
make docs-testinvocation selected pnpm 11.25.0 through Corepack and failed the project's version check;the equivalent install/lint/build commands above passed from
website/. The website does not render RFC files, soRFC examples and links were checked separately.
Repository-wide
ty checkstill reports three existing unresolvedscripts.scope_bindingimports in the Codexintegration hooks (
bind_tools.py,recall.py, andsession_binding.py). This Markdown-only PR does not change thosefiles. The proposed Runtime lifecycle and adversarial tests are implementation requirements, not tests implemented
or claimed as passing by this documentation PR.
AI usage statement
OpenAI Codex assisted with repository and review inspection, drafting and revising the bilingual RFCs, and validation.