Files
codewhale/crates
Hunter Bown 494988118c feat(prompts): Constitution of CodeWhale — tiered prompt architecture
- Replace flat base.md with Constitutional hierarchy: Preamble + 7 Articles
- We begin with Brother Whale — founding intelligence, not personality
- Dynamic model identity: {model_id} template injected at runtime
- Article VII: Hierarchy of Law — 9-tier conflict resolution
- Goal mode: remove read-only claim, add Goal Loop + Wakeup Check
- Personality (calm.md): Tier 8 subordination, cannot override constitution
- Memory: Tier 7 enforcement, imperatives treated as preferences
- Handoff: Tier 9 staleability, subordinate to evidence and user
- Approval prompts: Tier 2 Statute markers
- Authority recap appended at end of system prompt
- model_id threaded through PromptSessionContext → engine + UI
- 9 new tests: constitutional order, model injection, goal correctness
2026-05-24 12:07:30 -05:00
..