Commit d7162ef
Sync reflection-mined runtime improvements from ~/.pai/PAI/Algorithm/v3.7.0.md
and ~/.claude/CLAUDE.md into Releases/v4.0.3+/.claude/. Runtime had accumulated
~14KB of new content since PR #101 that never reached the release tree, leaving
fresh installs bootstrapping with an outdated Algorithm.
Algorithm v3.7.0.md (+117 / -15 lines)
- Voice mechanism: inline curl replaced with self-gating `bun Notify.ts` CLI
(Notify.ts reads settings.json and auto-silences subagents)
- New Directive Compliance Gate (branch, target dir, user directives, sticky
constraints) inserted before OBSERVE
- OBSERVE additions: Request Comprehension Check, Context Disambiguation
(TARGET DECLARATION), Scope Gate (HARD BLOCK)
- FAST-PATH Classifier decision table for Standard tier
- Agent Prompt Requirements (boundaries, exemplar, schema) in Capability
Selection
- OBSERVE Exit Gate — External Assumption Verification (5 hard-block checks)
- Dependency Analysis Micro-Phase (MANDATORY) in PLAN
- Pre-Read Sweep Gate (MANDATORY HARD BLOCK before EXECUTE) in BUILD
- VERIFY additions: phantom-capability anti-criterion language, OUTCOME
VERIFICATION block, DOCUMENT LINT GATES block
Fix-on-backport corrections (the runtime edits introduced these; we do NOT
propagate them to the release):
- `~/.claude/PAI/Tools/Notify.ts` -> `~/.pai/PAI/Tools/Notify.ts` (x2)
- `~/.claude/PAI/PRDFORMAT.md` -> `~/.pai/PAI/PRDFORMAT.md` (x2)
- Critical Rules format list `(ALGORITHM, NATIVE, ITERATION, or MINIMAL)` ->
`(ALGORITHM or NATIVE)` — MINIMAL is gone from CLAUDE.md and ITERATION is
a line modifier on NATIVE, not a standalone format
CLAUDE.md (+15 / -20 lines)
- Title de-versioned: `# PAI 4.0.3` -> `# PAI`
- New `$PAI_DIR` preamble explaining the env-var convention
- Routing: `Greetings → MINIMAL` -> `Greetings → None`
- Inline curl voice block removed from NATIVE MODE (replaced by Notify.ts
in the Algorithm)
- Speaker rename: `Assistant:` -> `Viki:`
- Algorithm pointer: `PAI/Algorithm/v3.7.0.md` -> `PAI/Algorithm/LATEST`
- Context Routing path rewritten to use the new `PAI/` prefix convention
- `## MINIMAL — pure acknowledgments` block removed entirely
- `### Critical Rules (Zero Exceptions)` restored as a proper header (runtime
had orphaned the text onto the end of the ALGORITHM MODE paragraph)
- Critical Rules format list matched to Algorithm: `(ALGORITHM or NATIVE)`
Intentionally not in this PR (per issue #111 scope):
- Path tokenization sweep beyond the 4 named typos — see #108
- LATEST marker-vs-symlink paradigm decision — see #108
- `Tools/lint-*.ts` micro-tool scaffolding — punted per issue body
- Ian's personal `@.claude/CLAUDE-USER.md` and `@.claude/marr/MARR-USER-CLAUDE.md`
imports at top of runtime CLAUDE.md — NOT PAI-core content. Release template
must stay clean so fresh installs don't hit ENOENT on first session.
Preservation is an installer responsibility — filed as:
- #126 — Installer: preserve user-added @-imports across install/upgrade
- #127 — Installer: pre-install CLAUDE.md conflict analysis
Closes #111
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 586a7cf commit d7162ef
2 files changed
Lines changed: 132 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | | - | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | | - | |
| 34 | + | |
29 | 35 | | |
30 | | - | |
31 | 36 | | |
32 | 37 | | |
33 | | - | |
34 | 38 | | |
35 | | - | |
| 39 | + | |
36 | 40 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 41 | + | |
47 | 42 | | |
48 | | - | |
| 43 | + | |
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
52 | | - | |
| 47 | + | |
53 | 48 | | |
54 | 49 | | |
55 | 50 | | |
56 | 51 | | |
57 | 52 | | |
58 | 53 | | |
59 | | - | |
| 54 | + | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
| |||
0 commit comments