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 -8
View File
@@ -12,7 +12,6 @@ Block 4706
Block 4715
( Rising edge with random perturbation )
42 SEED
: RISING-EDGE ( steps -- )
0 DO
I 1+
@@ -41,11 +40,8 @@ Block 4725
TRIANGLE-CYCLE
LOOP DROP ;
3 10 TRIANGLE-WAVE
Block 4735
( Asymmetric triangles - fast rise, slow fall )
7777 SEED
: ASYM-TRIANGLE ( -- )
8 0 DO
I 1+ 80 120 RANDOM 100 */ RAMP-STEP
@@ -56,14 +52,11 @@ Block 4735
80 120 RANDOM WAIT
LOOP ;
: RUN-ASYM 4 0 DO ASYM-TRIANGLE LOOP ;
RUN-ASYM
Block 4745
( Sawtooth variant - all rise, sharp drop )
54321 SEED
: SAWTOOTH ( steps -- )
0 DO
I 1+ 85 115 RANDOM 100 */ RAMP-STEP
@@ -72,4 +65,7 @@ Block 4745
50 WAIT ;
: RUN-SAW 3 0 DO 12 SAWTOOTH LOOP ;
RUN-SAW
( FABRIC-3.8 3.9: defs only; the DoE SENDs WL-RUN )
: WL-RUN 42 SEED 3 10 TRIANGLE-WAVE 7777 SEED RUN-ASYM
54321 SEED RUN-SAW RUN-SAW RUN-SAW ;
: WL-DONE-ARGS S" MU-DONE" S" Hera" ;