Commit 4949881
committed
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 correctness1 parent 37a1d28 commit 4949881
11 files changed
Lines changed: 415 additions & 137 deletions
File tree
- crates/tui/src
- core
- prompts
- approvals
- modes
- personalities
- tui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
| |||
1817 | 1818 | | |
1818 | 1819 | | |
1819 | 1820 | | |
| 1821 | + | |
1820 | 1822 | | |
1821 | 1823 | | |
1822 | 1824 | | |
| |||
0 commit comments