From 9555525a7d55f18af7014a6b38aa29bca4e63c7c Mon Sep 17 00:00:00 2001 From: kshitij Date: Mon, 3 Aug 2026 18:34:49 +0530 Subject: [PATCH] docs(system_prompt): fix stale reconstruct_static_prefix docstring example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- agent/system_prompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/system_prompt.py b/agent/system_prompt.py index ea352ef301af2..8407a896893f8 100644 --- a/agent/system_prompt.py +++ b/agent/system_prompt.py @@ -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.