feat(dbt+ai): build out cubedbt and cubeai packages (Package 4, PDF §549/§551)

cubedbt: DBT runtime that reads CZYX-stored translation rules and patches
them into a code cache to execute mimicked behavior. TranslationRule (CZYX
Variant record in c220 band) maps an op-class to a replacement bytecode
fragment; CodeCache patches an original CodeCell under eligible rules and
writes the result as a Variant (preserving behavior descriptors), and
DbRuntime.mimic() fetches -> patches -> runs in the real Vm, proving
're-run or modify behavior without the original binary'.

cubeai: models over cube-stored traces/graphs to classify blocks
(Computation/Branch/CallTrampoline/IoSection/Sequence from the op-class
histogram + behavior descriptors) and suggest new code sequences as
cubedbt TranslationRules (persisted into the c220 rule band, discoverable
by DbRuntime). End-to-end: trace -> classify -> suggest -> mimic.

Both crates are dependency-free and operate on the real CubeStore/CodeCell/
Vm/Behavior types, so they are exercisable today on HashBackend and slot
into ConcurrentStore later without an API change. ./check quick green:
cubedbt 4 tests, cubeai 5 tests, full workspace green.
This commit is contained in:
CUBELinux-2
2026-08-13 16:23:00 -04:00
parent 0074f3112c
commit 3121459138
5 changed files with 781 additions and 0 deletions
+2
View File
@@ -7,6 +7,8 @@ members = [
"cubecode",
"cubecrypt",
"cubesys",
"cubedbt",
"cubeai",
"cube-bench",
]