Skip to content

Samskara modal: explain when the injected prompt actually changes#3

Merged
sysread merged 1 commit intomainfrom
claude/samskara-prompt-investigation-O9NZq
May 9, 2026
Merged

Samskara modal: explain when the injected prompt actually changes#3
sysread merged 1 commit intomainfrom
claude/samskara-prompt-investigation-O9NZq

Conversation

@sysread
Copy link
Copy Markdown
Owner

@sysread sysread commented May 9, 2026

Synopsis

Two of the panels in the Samskara diagnostics modal correspond to text that lands in the chat-loop's per-turn system-prompt appendix, but they update on completely different cadences and the modal never said so. Add short help paragraphs under both relevant section headers so the natural reader question "does this change between turns?" has an on-screen answer.

Description

Compound summary panel. Labelled "always on in system prompt", but silent on when it changes. It's a cached prose row, regenerated only by the samskara worker's compound-regen phase once enough new samskaras have been minted since the last regen. So it's static for a whole conversation, and drifts between conversations rather than mid-thread. The new help paragraph says exactly that, and points the reader down to the Cohort fires section so the "there's a per-turn fire list too" detail isn't buried.

Cohort fires panel. Showed historical fires per cohort but didn't say those fires are also what got injected into that turn's prompt alongside the compound summary. New help paragraph names the relationship: one cohort per user turn, top-scoring samskaras appended to that turn's appendix, then resolved against whatever the user said next.

Styling. New .pane-help rule tucks the help paragraphs tight to their headings (margin: -0.2rem 0 0.6rem) so they read as subtitles rather than first paragraphs of body content. The uppercase pane-section heading above already carries the visual break.

Notes:

  • No behavioural changes; documentation-only.
  • Help text is ASCII-only with single-hyphen asides per the repo style guide.

Generated by Claude Code

Two of the panels in this modal correspond to text that lands in the
chat-loop's per-turn system-prompt appendix, but they update on
completely different cadences and the modal never said so. Result was
the natural reader question "does this change between turns?" had no
on-screen answer.

Add short help paragraphs under both relevant section headers:

- Compound summary: static for a whole conversation. The samskara
  worker's compound-regen phase rebuilds it once enough new samskaras
  have been minted since the last regen, so it drifts between
  conversations rather than mid-thread.
- Cohort fires: one cohort per user turn; each turn's bullets were
  appended next to the compound summary in that turn's prompt and
  resolved against whatever the user said next.

The first paragraph also points the reader at the second so the
"there's a per-turn fire list too" detail isn't buried.
@sysread sysread merged commit 507a9fe into main May 9, 2026
1 check passed
@sysread sysread deleted the claude/samskara-prompt-investigation-O9NZq branch May 9, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants