Stage H: DoE rebuilt on BIRTH/SEND/KILL, defs-only workloads; work heat floor on contact (FABRIC-3.8 §3.9, §3.13.7)

Workload capsules the DoE births are definitions only; each defines WL-RUN
(its old birth-time work plus its entry word twice) and WL-DONE-ARGS. The
driver births N workers, SENDs each 'WL-RUN WL-DONE-ARGS SEND', waits in an
ordinary loop for N MU-DONE messages, KILLs them (parked idle), and emits
the marker. The serialized VM-EXEC round-robin is gone.

Kernel: no switch checkpoint after a payload's last word; work heat is the
assessed per-beat charge, and a VM gaining work is raised to the busy set's
floor (Captain Bob's ruling) -- fixes a live stall where a busy-waiting Hera
never yielded, without serializing batch starts.

Evidence: cfg-4 rows spread evenly over Hera and all 8 worker slots (44k
switches); full cfg-4 trials on amd64/aarch64/riscv64 end fail=0 with 8/8
KILL dead; Stage G interleave byte-identical on all three. Acceptance:
dict_hash unchanged, relay 3, idle growth 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Robert Allan James
2026-09-23 23:48:16 -04:00
co-authored by Claude Opus 5.5
parent 81def7b4a5
commit f152a91099
29 changed files with 165584 additions and 153 deletions
+4 -9
View File
@@ -36,7 +36,6 @@ Block 4625
Block 4635
( Sinusoidal wave with random amplitude/frequency modulation )
42 SEED
: SINE-PULSE ( phase amplitude -- )
SWAP FULL-SIN * 100 / 1+
COMPUTE ;
@@ -61,14 +60,10 @@ Block 4645
100 200 RANDOM WAIT ( inter-cycle pause )
LOOP ;
3 SINE-WAVE
Block 4655
( Phase-shifted dual sine - interference pattern )
98765 SEED
: DUAL-SINE ( -- )
32 0 DO
I FULL-SIN 80 120 RANDOM 100 */
@@ -78,11 +73,9 @@ Block 4655
LOOP ;
: RUN-DUAL 4 0 DO DUAL-SINE LOOP ;
RUN-DUAL
Block 4665
( Damped sine - decaying amplitude )
11111 SEED
: DAMPED-SINE ( cycles -- )
100 SWAP ( starting amplitude )
0 DO
@@ -94,5 +87,7 @@ Block 4665
85 * 100 / ( decay by 15% each cycle )
DUP 10 < IF DROP 10 THEN
LOOP DROP ;
3 DAMPED-SINE
( FABRIC-3.8 3.9: defs only; the DoE SENDs WL-RUN )
: WL-RUN 42 SEED 3 SINE-WAVE 98765 SEED RUN-DUAL
11111 SEED 3 DAMPED-SINE DUAL-SINE DUAL-SINE ;
: WL-DONE-ARGS S" MU-DONE" S" Hera" ;