jgrusewski
c06169136c
docs(sp4): implementation plan for signal-driven magnitude control
Comprehensive 3-layer implementation plan for the SP4 spec at
docs/superpowers/specs/2026-04-30-sp4-signal-driven-magnitude-control-design.md.
Layer A — additive infrastructure (Tasks A1-A18, no behavior change):
- A1: 40 ISV slot index constants in new sp4_isv_slots.rs module
- A2: wiener_state_buf (141 floats) + clamp_engage_per_block_buf (2048 ints)
- A3: Pearls A+D shared helper (sp4_wiener_ema.rs) + 5 unit tests
- A4: linear-histogram p99 device function (sp4_histogram_p99.cuh) + GPU test
- A5-A9: 5 producer kernels (target_q + atom_pos × 4 branches + param_group_oracle
× 8 groups + grad_norm + h_s2 = 15 fused producers per Pearl B)
- A10-A11: wire 4 captured-graph + 10 cold-path launch sites
- A12: 181 StateResetRegistry entries (40 ISV + 141 Wiener-state float +
2048 Pearl C int)
- A13: retrofit 7 existing pre-SP4 producers with Pearls A+D
- A14-A15: Pearl C engagement counter in 5 Adam kernels + host-side
rate-deficit EMA + force-bump trigger
- A16-A18: 40-test integration validation + L40S regression smoke + audit
doc draft
Layer B — atomic consumer migration (Task B1, ONE coordinated commit):
- Mech 1, 2, 5, 6, 9, 10 consumers flip simultaneously to ISV-driven
- Adam kernels' weight_decay arg from ISV[WD_RATE[group]]
- L1 lambda from ISV[L1_LAMBDA_TRUNK_INDEX]
- HyperParams config fields removed
- Per `feedback_no_partial_refactor`
Layer C — validation + cleanup (Tasks C1-C5):
- C1: retire grad_norm_slow_ema infrastructure (Mech 6 migrated away)
- C2: remove dead Mech 5 fused-kernel parameters
- C3: L40S smoke validation against spec pass criteria
- C4: comprehensive Invariant 7 audit-doc entry
- C5: 5 new pearl memory entries + SP4 close-out project entry
Estimated effort: 3500-4500 LOC across ~25 commits, 1.5-2 weeks of focused
work, 1 L40S smoke validation. Bite-sized TDD tasks with exact file paths,
complete code blocks, and exact build/test commands per task.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 21:48:03 +02:00
..
2026-03-13 11:51:58 +01:00
2026-03-14 19:41:40 +01:00
2026-03-16 16:11:48 +01:00
2026-03-16 21:01:28 +01:00
2026-03-17 22:27:56 +01:00
2026-03-17 15:13:04 +01:00
2026-03-18 19:36:41 +01:00
2026-03-18 07:26:56 +01:00
2026-03-18 13:31:35 +01:00
2026-03-21 10:26:11 +01:00
2026-03-21 11:23:09 +01:00
2026-03-21 15:33:00 +01:00
2026-03-21 16:29:32 +01:00
2026-03-21 23:22:58 +01:00
2026-03-22 20:35:57 +01:00
2026-03-22 00:39:34 +01:00
2026-03-23 09:03:19 +01:00
2026-03-23 20:42:08 +01:00
2026-03-24 21:48:38 +01:00
2026-03-24 23:57:04 +01:00
2026-03-24 22:00:45 +01:00
2026-03-24 23:57:04 +01:00
2026-03-25 19:43:26 +01:00
2026-03-25 09:01:12 +01:00
2026-03-25 23:58:30 +01:00
2026-03-25 01:49:53 +01:00
2026-03-25 23:02:39 +01:00
2026-03-26 00:43:58 +01:00
2026-03-26 01:06:28 +01:00
2026-03-27 23:39:43 +01:00
2026-03-27 19:52:44 +01:00
2026-03-27 20:42:37 +01:00
2026-03-27 19:52:44 +01:00
2026-03-27 19:52:44 +01:00
2026-03-27 07:56:50 +01:00
2026-03-27 00:47:34 +01:00
2026-03-27 08:16:51 +01:00
2026-03-29 20:23:51 +02:00
2026-03-29 23:24:10 +02:00
2026-03-29 23:32:12 +02:00
2026-03-31 01:35:04 +02:00
2026-03-30 12:38:33 +02:00
2026-04-02 09:06:23 +02:00
2026-03-31 23:35:47 +02:00
2026-03-31 10:56:20 +02:00
2026-04-01 21:41:21 +02:00
2026-04-02 21:26:24 +02:00
2026-04-02 09:06:23 +02:00
2026-04-02 13:49:26 +02:00
2026-04-02 23:29:04 +02:00
2026-04-02 23:29:04 +02:00
2026-04-04 08:56:44 +02:00
2026-04-04 08:56:44 +02:00
2026-04-03 08:46:30 +02:00
2026-04-04 11:49:13 +02:00
2026-04-04 11:12:47 +02:00
2026-04-04 09:36:10 +02:00
2026-04-04 01:02:00 +02:00
2026-04-05 21:45:51 +02:00
2026-04-06 11:15:24 +02:00
2026-04-07 13:58:11 +02:00
2026-04-06 11:15:24 +02:00
2026-04-07 23:14:40 +02:00
2026-04-07 23:14:40 +02:00
2026-04-08 01:26:09 +02:00
2026-04-07 23:14:40 +02:00
2026-04-08 20:05:22 +02:00
2026-04-08 02:25:58 +02:00
2026-04-08 10:03:54 +02:00
2026-04-08 14:12:12 +02:00
2026-04-08 20:05:22 +02:00
2026-04-08 22:23:19 +02:00
2026-04-08 20:26:40 +02:00
2026-04-09 22:05:46 +02:00
2026-04-09 20:04:01 +02:00
2026-04-10 20:36:03 +02:00
2026-04-10 18:52:21 +02:00
2026-04-10 10:33:36 +02:00
2026-04-10 22:23:16 +02:00
2026-04-11 12:27:56 +02:00
2026-04-11 11:28:59 +02:00
2026-04-11 22:40:47 +02:00
2026-04-11 23:10:25 +02:00
2026-04-11 13:35:15 +02:00
2026-04-12 07:58:02 +02:00
2026-04-12 14:33:56 +02:00
2026-04-13 14:56:27 +02:00
2026-04-13 11:32:23 +02:00
2026-04-14 21:42:57 +02:00
2026-04-14 23:26:13 +02:00
2026-04-14 22:30:29 +02:00
2026-04-15 20:33:03 +02:00
2026-04-15 19:43:50 +02:00
2026-04-15 08:40:09 +02:00
2026-04-16 22:46:54 +02:00
2026-04-16 01:32:16 +02:00
2026-04-16 17:34:14 +02:00
2026-04-17 00:02:02 +02:00
2026-04-17 00:48:18 +02:00
2026-04-16 21:49:19 +02:00
2026-04-17 23:58:32 +02:00
2026-04-18 16:07:06 +02:00
2026-04-18 21:26:40 +02:00
2026-04-19 23:47:04 +02:00
2026-04-19 12:15:04 +02:00
2026-04-19 23:21:24 +02:00
2026-04-19 00:06:05 +02:00
2026-04-20 19:12:41 +02:00
2026-04-20 14:36:03 +02:00
2026-04-22 11:18:28 +02:00
2026-04-21 21:06:33 +02:00
2026-04-24 18:29:34 +02:00
2026-04-24 19:04:56 +02:00
2026-04-25 09:15:43 +02:00
2026-04-25 11:53:10 +02:00
2026-04-24 10:06:25 +02:00
2026-04-27 08:10:42 +02:00
2026-04-27 08:10:42 +02:00
2026-04-29 17:26:22 +02:00
2026-04-27 08:10:42 +02:00
2026-04-27 18:22:40 +02:00
2026-04-29 23:21:26 +02:00
2026-04-30 08:49:36 +02:00
2026-04-30 21:48:03 +02:00