migrate(C2 wave 2b): VM memory/stack/port/control opcodes — cluster C2 complete#540
Merged
Conversation
…2 complete Re-decomposition overturned the ledger's premise. Wave 2b was scoped as "needs an array/linear-memory ABI" -- but reading the sources shows the VM's memory, stack and port buffers are NOT arrays in the brain: VmState.res stores every one as string-keyed dict slots (_mem:N, _s:N, _pin:port). That dict is host-side STATE (the senses); the integer brains are all scalar -- additive value transforms, pointer arithmetic, branch predicates. No array ABI was required; this is the established scalar recipe. 4 kernels covering 9 opcodes, re-decomposed per the brain/senses split: - VmMemory (LOAD/STORE) -- additive reg/mem transform; host owns memory[]. - VmStack (PUSH/POP) -- stack-pointer sp+/-1; host owns the stack slots. - VmPort (RECV/SEND) -- port-pointer +/-1 + additive accumulate. - VmControl(IF_POS/IF_ZERO/LOOP) -- scalar branch/continuation predicates; branch bodies are host-orchestrated, Janus reversibility lives in the host. Reversibility migrated as explicit round-trip exports: load/store/sp/ recv_acc/recv_ptr/send_ptr all round-trip to identity. Four gates green: 4/4 compile, 1568/1568 parity (independent oracles re-deriving each .res transform), G3 n/a (transforms/predicates), 4/4 assail-clean. No-kernel senses (faithfully classified, not migrated): Call (orchestration), CoprocessorCall (tombstone -- never implemented, superseded by SEND/RECV), State/VmState/VM/SubroutineRegistry/ VmStateCoprocessor/InstructionCoprocessor (state containers / bridges). Cluster C2 COMPLETE (wave 1 + 2a + 2b = all reversible-VM opcodes with a separable integer brain). Ledger + migration-map updated; NEXT = C3. https://claude.ai/code/session_01WoKhFQePiRsAj7aqnxbG8s
🔍 Hypatia Security ScanFindings: 87 issues detected
View findings[
{
"reason": "Action perpolymath/standards/.github/workflows/governance-reusable.yml@main\n needs attention",
"type": "unpinned_action",
"file": "governance.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Action ons/checkout@v6\n needs attention",
"type": "unpinned_action",
"file": "publish-jsr.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Action land/setup-deno@v2\n needs attention",
"type": "unpinned_action",
"file": "publish-jsr.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in affine-vscode-publish.yml",
"type": "missing_timeout_minutes",
"file": "affine-vscode-publish.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in casket-pages.yml",
"type": "missing_timeout_minutes",
"file": "casket-pages.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in casket-pages.yml",
"type": "missing_timeout_minutes",
"file": "casket-pages.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in casket-pages.yml",
"type": "missing_timeout_minutes",
"file": "casket-pages.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "missing_timeout_minutes",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "missing_timeout_minutes",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in ci.yml",
"type": "missing_timeout_minutes",
"file": "ci.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
C2 wave 2b — and the array-ABI blocker was never real
The ledger scoped wave 2b as "needs an array/linear-memory ABI." Reading the actual opcode sources overturned that: the VM's memory, stack, and port buffers are not arrays in the brain —
VmState.resstores every one as string-keyed dict slots (_mem:N,_s:N,_pin:port). That dict is host-side state (the senses); the integer brains are all scalar. No array ABI was required — this is the established scalar recipe.4 kernels, 9 opcodes (re-decomposed per brain/senses)
VmMemoryreg ± mem/mem ± reg(host ownsmemory[])VmStacksp ± 1+ register clear (host owns the slots)VmPortptr ± 1+ additive accumulateVmControlReversibility migrated as explicit round-trip exports:
load/store/sp/recv_acc/recv_ptr/send_ptrall round-trip to identity. IF/LOOP carry no value round-trip — their Janus reversibility is host orchestration (reverse run applies the same predicate to the exit register, runs the chosen branch reversed).Four gates green
.restransform)No-kernel senses (faithfully classified, not migrated)
Call(orchestration) ·CoprocessorCall(tombstone — never implemented, superseded by SEND/RECV) ·State/VmState/VM/SubroutineRegistry/VmStateCoprocessor/InstructionCoprocessor(state containers / bridges).Cluster C2 COMPLETE — wave 1 (11 opcodes + taxonomy) + 2a (Mul/Div) + 2b (these 9) = every reversible-VM opcode with a separable integer brain. NEXT = C3.
Staged-only under
proposals/idaptik/migrated/— idaptik write-gate honoured.https://claude.ai/code/session_01WoKhFQePiRsAj7aqnxbG8s
Generated by Claude Code