FABRIC-2.md Category B: single-owner heartbeat physical-timer re-arm
Only Hera writes the shared physical timer period now, gated by vm_uuid_is_hera(vm->stadium_vm_id) in vm_tick_inference_engine(). Every other VM's Loop #7 still adapts its own tick_target_ns as before, it just no longer races to re-arm the one physical timer. Includes 3-arch acceptance run (amd64/aarch64/riscv64, all booted clean to ok>) and regenerated capsule/DoE artifacts. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
f75228dda5
commit
bcc72d00bb
@@ -413,7 +413,7 @@ Listed once below.
|
||||
| `ENTROPY@` | `( addr -- n )` | Fetches the execution-heat counter for the `DictEntry` at `addr` (validated against the live dictionary chain). |
|
||||
| `ENTROPY!` | `( n addr -- )` | Sets the execution-heat counter for the `DictEntry` at `addr`. |
|
||||
| `WORD-ENTROPY` | `( -- )` | Prints execution-heat statistics (per word, total, average) for every word in the dictionary. |
|
||||
| `RESET-ENTROPY` | `( -- )` | Resets every word's execution-heat counter and physics metadata (temperature, latency, last-active) to zero. |
|
||||
| `RESET-ENTROPY` | `( -- )` | Resets every word's execution-heat counter and compudynamics metadata (temperature, latency, last-active) to zero. |
|
||||
| `TOP-WORDS` | `( n -- )` | Prints the `n` most frequently executed words, sorted descending by execution heat. |
|
||||
| `(-` | `( -- )` | Comment word: consumes input up to a balanced closing `)` — used for `init.4th` metadata markers. |
|
||||
| `INIT` | `( -- )` | Reads `./capsules/core/init.4th`, remaps and copies its numbered blocks sequentially starting at block 1, executes them via `LOAD`, then zeroes the init blocks for userspace reuse. |
|
||||
@@ -440,7 +440,7 @@ Listed once below.
|
||||
| `ACL-INHERIT` | `( src dst -- )` | Copies `acl_mode` from `src` to `dst`, then clears `dst`'s pin, resets its TTL to 0, and sets `acl_allow` to 1 (optimistic default). |
|
||||
| `ACL-INIT-PRIMITIVES` | `( -- )` | Walks the entire dictionary and resets ACL fields (TTL=0, allow=1, mode=TTL) on every unpinned entry. |
|
||||
|
||||
## Physics: Benchmark (`physics_benchmark_words.c`)
|
||||
## Compudynamics: Benchmark (`physics_benchmark_words.c`)
|
||||
|
||||
| Word | Stack Effect | Description |
|
||||
|---|---|---|
|
||||
@@ -451,7 +451,7 @@ Listed once below.
|
||||
| `PHYSICS-BUILD-INFO` | `( -- )` | Prints the current hot-words cache build configuration and runtime state. |
|
||||
| `PHYSICS-BAYESIAN-REPORT` | `( addr_baseline -- )` | Generates a Bayesian inference report comparing current cache stats against a baseline. |
|
||||
|
||||
## Physics: Pipelining Diagnostics (`physics_pipelining_diagnostic_words.c`)
|
||||
## Compudynamics: Pipelining Diagnostics (`physics_pipelining_diagnostic_words.c`)
|
||||
|
||||
Registers via `vm_create_word()` directly rather than `register_word()` — the only file in
|
||||
the tree that does this (verified by a `vm_create_word(vm, "` sweep of the whole
|
||||
@@ -466,7 +466,7 @@ the tree that does this (verified by a `vm_create_word(vm, "` sweep of the whole
|
||||
| `PIPELINING-STATS` | `( -- )` | Displays aggregate pipelining statistics (transitions, prefetch hit rate) across the whole dictionary. |
|
||||
| `PIPELINING-ANALYZE-WORD` | `( c-addr u -- )` | Comprehensive analysis of one word's transition predictability (entropy/distribution spread) plus prefetch net benefit. |
|
||||
|
||||
## Physics: Freeze/Decay Control (`physics_freeze_words.c`)
|
||||
## Compudynamics: Freeze/Decay Control (`physics_freeze_words.c`)
|
||||
|
||||
| Word | Stack Effect | Description |
|
||||
|---|---|---|
|
||||
@@ -480,7 +480,7 @@ the tree that does this (verified by a `vm_create_word(vm, "` sweep of the whole
|
||||
| `DECAY-RATE@` | `( -- rate )` | Pushes the compile-time base heat decay rate (Q48.16) per microsecond used by Loop #3. |
|
||||
| `FREEZE-CRITICAL` | `( -- )` | Freezes a hard-coded list of 21 system-critical words (`DUP`, `DROP`, `SWAP`, `IF`, `EXECUTE`, etc.) so they never decay out of the hot-words cache. |
|
||||
|
||||
## Physics: General Diagnostics (`physics_diagnostic_words.c`)
|
||||
## Compudynamics: General Diagnostics (`physics_diagnostic_words.c`)
|
||||
|
||||
| Word | Stack Effect | Description |
|
||||
|---|---|---|
|
||||
@@ -666,8 +666,8 @@ through the same path.
|
||||
| `MAMA-VM-ID` | `( -- 0 0 )` | Pushes Mama's (Hera's) own VM ID as a double — always zero. |
|
||||
| `VM-COUNT` | `( -- n )` | Pushes the number of registered VMs. |
|
||||
| `VM-CONSERVED?` | `( -- flag )` | FORTH boolean: true if the fleet heat sum is within epsilon of `Q.1` (conservation check). |
|
||||
| `VM-PHYSICS-STATUS` | `( -- )` | Prints the fleet physics diagnostic report. |
|
||||
| `VM-STEP` | `( c-addr u -- )` | Gives one REPL quantum (prompt, read one line, execute, return) to a named VM — the Compudynamics context-switch primitive. |
|
||||
| `VM-PHYSICS-STATUS` | `( -- )` | Prints the fleet compudynamics diagnostic report. |
|
||||
| `VM-STEP` | `( c-addr u -- )` | Gives one REPL turn (prompt, read one line, execute, return) to a named VM — the Compudynamics context-switch primitive. |
|
||||
| `VM-EXEC` | `( cmd-caddr cmd-u vm-name-caddr vm-name-u -- )` | Injects and immediately executes a command string in a named VM, no readline/blocking. |
|
||||
| `VM-CALL` | `( cmd-caddr cmd-u vm-name-caddr vm-name-u -- n )` | Like `VM-EXEC` but pops one cell from the target's stack afterward and pushes it onto the caller's stack (cross-VM query primitive). |
|
||||
| `CAPSULE-TEST` | `( -- )` | Prints a diagnostic message confirming the capsule system is active. |
|
||||
|
||||
Reference in New Issue
Block a user