Skip to content

Commit 64ea37d

Browse files
Add Sonic kernel UX pass
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5a06611 commit 64ea37d

20 files changed

Lines changed: 956 additions & 65 deletions

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## v1.9.4 — Sonic Kernel UX (2026-06-09)
4+
5+
Adds high-tempo kernel cockpit feedback, kinetic watch mode, fast-path indicators,
6+
predictive ETA, and ultra-fast operation acknowledgement without changing mutation safety.
7+
8+
### Highlights
9+
10+
- **Ultra-fast ack**`… PATCH accepted — path` flushed before heavy work (<50ms target).
11+
- **Kinetic watch**`/dietcode kernel watch --follow` with spinner, in-place refresh, ANSI colors.
12+
- **Micro-phase suppression** — sub-100ms noise hidden on healthy fast paths.
13+
- **Sonic fast path**`FAST PATH ACTIVE` when drift-free coherence apply runs.
14+
- **Predictive ETA** — history-based remaining time when confidence is sufficient.
15+
- **Event hooks** — optional local shell hooks (`event_hooks_enabled: false` by default).
16+
- **Bench**`scripts/kernel_sonic_bench.py`.
17+
- **Tests**`tests/test_kernel_sonic.py`.
18+
19+
See [docs/releases/v1.9.4.md](docs/releases/v1.9.4.md).
20+
321
## v1.9.3 — Kernel Cockpit Responsiveness (2026-06-09)
422

523
Adds live cockpit views, operation states, next-action hints, heartbeat UX, and

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DietCode Hermes Plugin
22

3-
**v1.9.3 — Kernel Cockpit Responsiveness**
3+
**v1.9.4Sonic Kernel UX**
44

55
DietCode is a standalone Hermes Agent plugin that bundles BroccoliDB, BroccoliQ,
66
JoyZoning governance, JSDP rolling-horizon planning, and an **optional macOS
@@ -88,7 +88,7 @@ Kernel operator checklist:
8888

8989
```text
9090
/dietcode kernel cockpit # one-screen state, gates, next action
91-
/dietcode kernel watch # compact live operation line
91+
/dietcode kernel watch --follow # kinetic live line (spinner, in-place refresh)
9292
/dietcode kernel perf --ux # responsiveness budgets
9393
/dietcode kernel progress # human summary + next phase
9494
/dietcode kernel explain-gate # closed gates and fixes
@@ -136,7 +136,7 @@ Operator guide: [docs/kernel-bridge-operations.md](docs/kernel-bridge-operations
136136

137137
```text
138138
.
139-
|-- plugin.yaml # Hermes manifest (v1.9.3)
139+
|-- plugin.yaml # Hermes manifest (v1.9.4)
140140
|-- hooks.py # Hook registration (kernel + JoyZoning + governance)
141141
|-- install.py # Config defaults, npm bootstrap, kernel build check
142142
|-- health.py # /dietcode status, doctor, kernel status
@@ -165,6 +165,7 @@ Operator guide: [docs/kernel-bridge-operations.md](docs/kernel-bridge-operations
165165
| [kernel/MIGRATION.md](kernel/MIGRATION.md) | Kernel integration phase history |
166166
| [kernel/README.md](kernel/README.md) | Kernel build, validate, RPC reference |
167167
| [CHANGELOG.md](CHANGELOG.md) | Release notes |
168+
| [docs/releases/v1.9.4.md](docs/releases/v1.9.4.md) | v1.9.4 sonic UX release note |
168169
| [docs/releases/v1.9.3.md](docs/releases/v1.9.3.md) | v1.9.3 cockpit release note |
169170
| [docs/releases/v1.9.2.md](docs/releases/v1.9.2.md) | v1.9.2 performance pass |
170171
| [docs/releases/v1.9.1.md](docs/releases/v1.9.1.md) | v1.9.1 release note |

docs/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DietCode Documentation
22

33
Operator and developer documentation for the DietCode Hermes plugin
4-
(**v1.9.3 — Kernel Cockpit Responsiveness**).
4+
(**v1.9.4Sonic Kernel UX**).
55

66
DietCode bundles BroccoliDB, BroccoliQ, JoyZoning, JSDP, and an **optional macOS
77
kernel authority bridge**. The kernel handles physical mutation and verification;
@@ -21,7 +21,8 @@ intent → patch → receipt → journal → verify → verification journal →
2121
| **Understanding the runtime** | [architecture.md](architecture.md) | [tools-reference.md](tools-reference.md) |
2222
| **Working with BroccoliDB** | [broccolidb.md](broccolidb.md) | `/broccolidb status` |
2323
| **Building the kernel binary** | [../kernel/README.md](../kernel/README.md) | `make -C kernel validate` |
24-
| **Upgrading to v1.9.3** | [releases/v1.9.3.md](releases/v1.9.3.md) | [../CHANGELOG.md](../CHANGELOG.md) |
24+
| **Upgrading to v1.9.4** | [releases/v1.9.4.md](releases/v1.9.4.md) | [../CHANGELOG.md](../CHANGELOG.md) |
25+
| **v1.9.3 cockpit** | [releases/v1.9.3.md](releases/v1.9.3.md) | [agent-ergonomics.md](agent-ergonomics.md) |
2526
| **v1.9.2 performance** | [releases/v1.9.2.md](releases/v1.9.2.md) | [agent-ergonomics.md](agent-ergonomics.md) |
2627
| **v1.9.1 observability** | [releases/v1.9.1.md](releases/v1.9.1.md) | [agent-ergonomics.md](agent-ergonomics.md) |
2728
| **v1.9.0 kernel bridge** | [releases/v1.9.0.md](releases/v1.9.0.md) | [kernel-bridge-operations.md](kernel-bridge-operations.md) |
@@ -37,6 +38,7 @@ intent → patch → receipt → journal → verify → verification journal →
3738
| [broccolidb.md](broccolidb.md) | Bundled BroccoliDB package, RPC worker, database location, smoke tests. |
3839
| [broccolidb-native-execution-throughput.md](broccolidb-native-execution-throughput.md) | Native RPC execution model and throughput notes. |
3940
| [agent-ergonomics.md](agent-ergonomics.md) | Kernel progress telemetry, stuck-operator runbook. |
41+
| [releases/v1.9.4.md](releases/v1.9.4.md) | v1.9.4 sonic kernel UX release notes. |
4042
| [releases/v1.9.3.md](releases/v1.9.3.md) | v1.9.3 cockpit responsiveness release notes. |
4143
| [releases/v1.9.2.md](releases/v1.9.2.md) | v1.9.2 performance pass release notes. |
4244
| [releases/v1.9.1.md](releases/v1.9.1.md) | v1.9.1 observability polish release notes. |

docs/agent-ergonomics.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,32 @@ Every cockpit/progress view recommends one of:
198198

199199
Smoke: `python scripts/kernel_cockpit_smoke.py`
200200

201+
## Sonic tempo (Phase 7D)
202+
203+
High-tempo UX — **GOTTA GO FAST (with receipts)**. No mutation semantics changes.
204+
205+
- **Instant ack** — `… PATCH accepted — src/foo.py` flushed before heavy work (<50ms target)
206+
- **Kinetic watch** — `/dietcode kernel watch --follow` — spinner, in-place line refresh, ANSI colors
207+
- **Micro-phase suppression** — sub-100ms noise hidden unless error/stall/recovery/approval
208+
- **Fast path** — `FAST PATH ACTIVE` when `mode: sonic_fast_path`
209+
- **ETA** — `~3s remaining` when history confidence is high (hidden otherwise)
210+
- **Event hooks** — optional local shell hooks (`event_hooks_enabled: false` by default)
211+
212+
```yaml
213+
dietcode:
214+
kernel:
215+
bridge:
216+
event_hooks_enabled: false
217+
event_hooks:
218+
operation_accepted: "echo dietcode ack"
219+
operation_failed: "echo dietcode fail"
220+
verify_passed: "echo dietcode verify ok"
221+
stalled: "echo dietcode stalled"
222+
```
223+
224+
Bench: `python scripts/kernel_sonic_bench.py --compact`
225+
ASCII mode: `DIETCODE_ASCII_ONLY=1`
226+
201227
## Troubleshooting
202228

203229
| Symptom | Likely cause | What to run |

docs/dietcode-plugin.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ BroccoliDB for repository context, BroccoliQ for queue coordination, JoyZoning
55
for mutation lifecycle governance, JSDP for rolling-horizon planning, and an
66
**optional macOS kernel authority bridge** for coherent physical mutation.
77

8-
**Current version:** 1.9.3 — Kernel Cockpit Responsiveness
8+
**Current version:** 1.9.4 — Sonic Kernel UX
9+
10+
## What changed in v1.9.4
11+
12+
High-tempo kernel operator UX without mutation safety changes:
13+
14+
- Ultra-fast operation acknowledgement (`… PATCH accepted — path`)
15+
- Kinetic `/dietcode kernel watch --follow` with spinner and in-place refresh
16+
- `FAST PATH ACTIVE` indicator for drift-free patch apply
17+
- Predictive ETA when history confidence is sufficient
18+
- `scripts/kernel_sonic_bench.py`
19+
20+
See [releases/v1.9.4.md](releases/v1.9.4.md).
921

1022
## What changed in v1.9.3
1123

@@ -58,7 +70,7 @@ See [releases/v1.9.0.md](releases/v1.9.0.md) and [kernel-bridge-operations.md](k
5870

5971
```yaml
6072
name: dietcode
61-
version: 1.9.3
73+
version: 1.9.4
6274
kind: standalone
6375
auto_enable: true
6476
```
@@ -105,6 +117,7 @@ intent → patch → receipt → journal → verify → verification journal →
105117
| 7 | Readiness cache, workspace reuse, batching, mutation lock, perf telemetry |
106118
| 7B | Ack, heartbeats, watch mode, pre-stage, keep-warm, perf UX |
107119
| 7C | Cockpit, operation states, next-action hints, UX budgets |
120+
| 7D | Sonic pass — kinetic watch, fast ack, ETA, event hooks |
108121

109122
Details: [../kernel/MIGRATION.md](../kernel/MIGRATION.md)
110123

docs/kernel-bridge-operations.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ python scripts/kernel_bridge_e2e.py
128128
/dietcode kernel explain-gate # closed gates, fixes, raw-write behavior
129129
```
130130

131-
Smoke (no live socket required): `python scripts/kernel_cockpit_smoke.py`
131+
Smoke (no live socket required): `python scripts/kernel_cockpit_smoke.py`
132+
Sonic bench: `python scripts/kernel_sonic_bench.py --compact`
132133

133134
Progress is emitted automatically for `dietcode_kernel` patch, verify, status,
134135
and search. Logs live under `~/.dietcode/session/` (see [agent-ergonomics.md](agent-ergonomics.md)).

docs/releases/v1.9.4.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# dietcode-plugin v1.9.4 — Sonic Kernel UX
2+
3+
**Release date:** 2026-06-09
4+
5+
## One-line summary
6+
7+
Adds high-tempo kernel cockpit feedback, kinetic watch mode, fast-path indicators,
8+
predictive ETA, and ultra-fast operation acknowledgement without changing mutation safety.
9+
10+
## What shipped
11+
12+
High-tempo operator UX — the full arc from safe → kinetic. No mutation semantics changes.
13+
14+
| Surface | Command / artifact |
15+
| --- | --- |
16+
| Ultra-fast ack | `… PATCH accepted — src/foo.py` (<50ms target) |
17+
| Kinetic watch | `/dietcode kernel watch --follow` |
18+
| Fast-path indicator | `FAST PATH ACTIVE` when `mode: sonic_fast_path` |
19+
| Predictive ETA | `~Ns remaining` when history confidence is high |
20+
| Sonic bench | `python scripts/kernel_sonic_bench.py` |
21+
| Optional event hooks | `event_hooks_enabled` + shell `event_hooks` map |
22+
23+
### Visual states
24+
25+
UTF-8: `` `` `!` `` `` ``
26+
ASCII: `DIETCODE_ASCII_ONLY=1``RUN` / `OK` / `WARN` / `FAIL` / `WAIT` / `STALL`
27+
28+
### Optional config
29+
30+
```yaml
31+
dietcode:
32+
kernel:
33+
bridge:
34+
event_hooks_enabled: false
35+
event_hooks:
36+
operation_accepted: "your-local-hook.sh"
37+
```
38+
39+
## Upgrade notes
40+
41+
- Patch release on v1.9.3 — no config migration required.
42+
- All mutation safety gates, receipts, journaling, and verify authority unchanged.
43+
44+
Docs: [agent-ergonomics.md](../agent-ergonomics.md) · [tools-reference.md](../tools-reference.md)

docs/tools-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Integration console.
2828
| `kernel perf --last 10` | Phase timing breakdown (p50/p95 per bucket). |
2929
| `kernel perf --ux --last 10` | Perceived responsiveness (ack latency, silent gaps). |
3030
| `kernel watch` | Compact single-line live operation summary. |
31-
| `kernel watch --follow` | Auto-refresh summary every ~1.5s (up to 30s). |
31+
| `kernel watch --follow` | Kinetic in-place refresh (~1s), spinner + ANSI when supported. |
3232
| `kernel cockpit` | One-screen summary: state, gates, last patch/verify, next action. |
3333

3434
### `/broccolidb`

health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def validate_runtime_contract(**kwargs): # type: ignore[misc]
5151
kernel perf --last 10 Phase timing breakdown (p50/p95 by bucket)
5252
kernel perf --ux --last 10 Perceived responsiveness metrics (ack, silent gaps)
5353
kernel watch Compact single-line live operation summary
54-
kernel watch --follow Auto-refresh summary every ~1.5s (up to 30s)
54+
kernel watch --follow Kinetic in-place refresh (~1s, spinner when TTY)
5555
kernel cockpit One-screen operator summary (gates, state, next action)
5656
"""
5757

install.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def apply_seamless_defaults(*, save: bool = True) -> dict[str, Any]:
154154
"keep_warm": False,
155155
"keep_warm_idle_timeout_ms": 120000,
156156
"keep_warm_ping_interval_ms": 30000,
157+
"event_hooks_enabled": False,
157158
}
158159
for key, value in perf_defaults.items():
159160
if key not in bridge_cfg:

0 commit comments

Comments
 (0)