Merge PR #2951 from LeoAlex0: explain visibility="internal" in Runtime Policy Reference

Clarifies that the runtime_prompt tag is internal instruction, not user input, and that modes should not be announced. Related #2922.
This commit is contained in:
Hunter Bown
2026-06-09 20:06:46 -07:00
committed by GitHub
+5 -1
View File
@@ -721,7 +721,11 @@ pub(crate) fn render_runtime_policy_reference() -> String {
approval policy. When you see this tag, look up the corresponding \
rules below and apply them for the current turn.\n\n\
The tag format is:\n\
`<runtime_prompt visibility=\"internal\" mode=\"<mode>\" approval=\"<approval>\"/>`\n\n",
`<runtime_prompt visibility=\"internal\" mode=\"<mode>\" approval=\"<approval>\"/>`\n\n\
The `visibility=\"internal\"` attribute means this tag is a runtime \
instruction for the model, not user input. Do not announce the \
current mode or restate the tag content to the user — just apply \
the referenced rules silently.\n\n",
);
// ── Mode reference ─────────────────────────────────────────────────