From efbfe0842fb99b93f37546cce406307c0f5eaec0 Mon Sep 17 00:00:00 2001 From: kshitij Date: Mon, 3 Aug 2026 23:19:42 +0530 Subject: [PATCH] fix(prompt_size): search volatile tier for skills block after the stable->volatile move CI-caught: compute_prompt_breakdown still looked for in the stable tier, but #37117 moved it to volatile. Search volatile first, fall back to stable for older sessions. --- hermes_cli/prompt_size.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hermes_cli/prompt_size.py b/hermes_cli/prompt_size.py index 30c212a429ceb..0629b9346df3c 100644 --- a/hermes_cli/prompt_size.py +++ b/hermes_cli/prompt_size.py @@ -252,8 +252,9 @@ def compute_prompt_breakdown(platform: str = "cli") -> Dict[str, Any]: volatile = parts.get("volatile", "") # Skills index — the block (the largest single block - # when many skills are installed). Measured inside the stable tier. - skills_match = _SKILLS_BLOCK_RE.search(stable) + # when many skills are installed). Lives in the volatile tier (moved from + # stable so skill edits don't invalidate the cached identity prefix). + skills_match = _SKILLS_BLOCK_RE.search(volatile) or _SKILLS_BLOCK_RE.search(stable) skills_index = skills_match.group(0) if skills_match else "" # Memory + user profile live in the volatile tier. We re-derive their