SOUL cannot override the prompt invariants #539

Closed
opened 2026-10-27 13:36:43 +00:00 by sam · 0 comments
Owner

Enforce the boundary that makes SOUL safe to hand to users: it supplies identity and style, and cannot reach the instruction hierarchy, core rules, tool inventory or env block.

Acceptance Criteria

A test renders a hostile SOUL that attempts to countermand core_rules and asserts the invariant sections are still present and intact. The boundary is documented where the layering rule already lives so the next person editing the template does not quietly relax it.

Close reason

Wrapped SOUL/Persona in an XML-escaped, trust=data block rendered before the invariant tags; added TestBuildSystemPromptSoulCannotOverrideInvariants; documented the enforcement in identity.md


Imported from beads archie-core-1786637490097-12-bf415ffb · GitHub #33 · type task · priority P2 · created 2026-08-08 · closed 2026-09-02

Enforce the boundary that makes SOUL safe to hand to users: it supplies identity and style, and cannot reach the instruction hierarchy, core rules, tool inventory or env block. ### Acceptance Criteria A test renders a hostile SOUL that attempts to countermand core_rules and asserts the invariant sections are still present and intact. The boundary is documented where the layering rule already lives so the next person editing the template does not quietly relax it. ### Close reason Wrapped SOUL/Persona in an XML-escaped, trust=data <soul> block rendered before the invariant tags; added TestBuildSystemPromptSoulCannotOverrideInvariants; documented the enforcement in identity.md --- _Imported from beads `archie-core-1786637490097-12-bf415ffb` · GitHub #33 · type task · priority P2 · created 2026-08-08 · closed 2026-09-02_
sam added the mediumtask labels 2026-10-27 13:36:43 +00:00
sam self-assigned this 2026-10-27 13:36:43 +00:00
sam closed this issue 2026-10-27 13:36:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#539