docs(system_prompt): fix stale reconstruct_static_prefix docstring example

Simplify-pass finding: the safety note still cited 'skills edited' as a stable-tier input whose change mismatches the rebuilt prefix — after this PR a skill edit changes only the volatile tail (that's the point). Swap the example for genuinely stable-tier inputs.
This commit is contained in:
kshitij 2026-08-03 18:34:49 +05:30 committed by kshitij
parent 9b9cbdd7eb
commit 9555525a7d
1 changed files with 2 additions and 2 deletions

View File

@ -616,8 +616,8 @@ def reconstruct_static_prefix(
Safety: the rebuilt stable tier is used ONLY when the stored prompt
literally starts with it (checked here AND re-checked by
``_apply_system_cache_markers``'s ``startswith`` gate). If any
stable-tier input changed since the prompt was persisted (skills
edited, identity changed), the prefix mismatches, the static stays
stable-tier input changed since the prompt was persisted (identity
changed, SOUL.md edited), the prefix mismatches, the static stays
None, and requests fall back to the legacy layout with the stored
prompt bytes untouched — never a rewritten prompt.