Skip to content

migration: 17 integer-brain kernels from idaptik logic-directory sweep (cluster C13)#589

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/cool-keller-gr5sl
Jun 14, 2026
Merged

migration: 17 integer-brain kernels from idaptik logic-directory sweep (cluster C13)#589
hyperpolymath merged 1 commit into
mainfrom
claude/cool-keller-gr5sl

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Exhaustive sweep of the eight brain-dense idaptik logic directories (devices, player, combat, enemies, companions, multiplayer, src/shared, utils159 .res files), extracting 17 new Int(...)->Int brains and classifying every remaining file. Brain count 62 → 79.

New brains (17) — independently re-verified G1/G2/G4 green

PlayerSprite (64) · CombatResolve (91) · ThreatClass (77) · GameI18nCore (58) · AlertPalette (219) · PeerPort (68) · AccessClamp (44) · Coprocessor (2207) · Coprocessor_IO (1758) · Kernel_Crypto (170) · Kernel_Quantum (52) · ResourceAccounting (2537) · UmsLevelLoader (229) · MoletaireCoprocessors (82) · MoletaireHunger (133) · LobbyManager (577) · MultiplayerClient (85)

(N = differential-parity cases, all passing against an independent JS oracle.) ~8,450 cases total, every brain assail-clean. Verified by the parent session, not just agent-reported.

Disposition (159 files)

count
New brains 17
Already migrated (earlier clusters) 43
NO_NEW_BRAINS 99

The 99 break down as FFI binding shims (*Coprocessor.res, ~40), render-glue/PixiJS orchestrators (~25), float-physics/geometry cores (~12), string/JSON/wire-protocol cores (~12), and host state/orchestration glue (~10). Full per-file ledger in EVIDENCE-C13-logic-sweep.adoc.

Notes

  • Brains stay Int->Int because the parity harness passes integer args only; floats are carried as ×1000 milli-units where integer-exact, else kept host-side.
  • Several brains are residual sub-brains earlier clusters scoped out as "routing"ThreatClass (from DualAlertBridge), the Coprocessor/Kernel/Resource set (from the shared coprocessor layer) — recovered here as separable pure-integer kernels.
  • Each new brain's exported signature matches an existing *Coprocessor.res host bridge, so the wasm targets drop into the already-written FFI shims.

https://claude.ai/code/session_01WoKhFQePiRsAj7aqnxbG8s


Generated by Claude Code

…p (cluster C13)

Exhaustive sweep of the eight brain-dense logic directories (devices, player,
combat, enemies, companions, multiplayer, src/shared, utils — 159 .res files).
Extracted 17 new Int(...)->Int brains; classified the remainder as host-side
senses, FFI binding shims, float/string-input cores, or already-migrated.

New brains (all G1 compile, G2 parity all-pass vs independent JS oracle, G4
assail clean): PlayerSprite, CombatResolve, ThreatClass, GameI18nCore,
AlertPalette, PeerPort, AccessClamp, Coprocessor, Coprocessor_IO, Kernel_Crypto,
Kernel_Quantum, ResourceAccounting, UmsLevelLoader, MoletaireCoprocessors,
MoletaireHunger, LobbyManager, MultiplayerClient. ~8,450 parity cases total.

Several are residual sub-brains earlier clusters scoped out as "routing"
(ThreatClass from DualAlertBridge; the Coprocessor/Kernel/Resource set from the
shared coprocessor layer). Each new brain's exported signature matches an
existing *Coprocessor.res host bridge.

Full per-file disposition (159 files: 17 new / 43 already / 99 no-brain) recorded
in EVIDENCE-C13-logic-sweep.adoc. Brain count 62 -> 79.

https://claude.ai/code/session_01WoKhFQePiRsAj7aqnxbG8s
@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 40 issues detected

Severity Count
🔴 Critical 2
🟠 High 22
🟡 Medium 16

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Action denoland/setup-deno@v2 needs attention",
    "type": "unpinned_action",
    "file": "publish-jsr.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in scorecard-enforcer.yml",
    "type": "scorecard_publish_with_run_step",
    "file": "scorecard-enforcer.yml",
    "action": "split_scorecard_publish_job",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in instant-sync.yml",
    "type": "secret_action_without_presence_gate",
    "file": "instant-sync.yml",
    "action": "peter-evans/repository-dispatch",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Shell execution -- validate input before passing to shell (1 occurrences, CWE-78)",
    "type": "js_exec_sync",
    "file": "/home/runner/work/affinescript/affinescript/packages/affinescript-cli/mod.js",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  },
  {
    "reason": "Shell execution -- validate input before passing to shell (2 occurrences, CWE-78)",
    "type": "js_exec_sync",
    "file": "/home/runner/work/affinescript/affinescript/packages/affine-vscode/mod.js",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  },
  {
    "reason": "Shell execution -- validate input before passing to shell (1 occurrences, CWE-78)",
    "type": "js_exec_sync",
    "file": "/home/runner/work/affinescript/affinescript/affinescript-vite/src/affine-plugin-improved.js",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  },
  {
    "reason": "expect() in hot path (32 occurrences, CWE-754)",
    "type": "expect_in_hot_path",
    "file": "/home/runner/work/affinescript/affinescript/affinescriptiser/src/codegen/wasm_gen.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "expect() in hot path (29 occurrences, CWE-754)",
    "type": "expect_in_hot_path",
    "file": "/home/runner/work/affinescript/affinescript/affinescriptiser/src/codegen/affine_gen.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "unsafe block -- requires SAFETY comment (2 occurrences, CWE-676)",
    "type": "unsafe_block",
    "file": "/home/runner/work/affinescript/affinescript/runtime/src/panic.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "unsafe block -- requires SAFETY comment (1 occurrences, CWE-676)",
    "type": "unsafe_block",
    "file": "/home/runner/work/affinescript/affinescript/runtime/src/alloc.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

@hyperpolymath hyperpolymath marked this pull request as ready for review June 14, 2026 04:15
@hyperpolymath hyperpolymath merged commit 7f304b4 into main Jun 14, 2026
27 checks passed
@hyperpolymath hyperpolymath deleted the claude/cool-keller-gr5sl branch June 14, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants