Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/docs/learn53/PLAN.md # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / docs / learn53 / PLAN.md` 48 lines · 5760 bytes Raw Blame History Rendered 1 # CUDA-LEARN public task adapter implementation plan 2 3 > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. 4 5 **Goal:** Deliver the dependency-ready public native-host task-contract/output-evaluation part of CUDApp #53, not substitute it for final #53 qualification. 6 **Architecture:** A pure bounded CUDA++ domain module consumes a caller-owned frozen manifest and candidate output bytes. Omega #653 owns scheduling, custody, aggregate outcomes and budgets. CUDA++ #15/#16/#17 retain qualification, numerical policy and measurement ownership. No generated host code is executed by this module. 7 **Tech Stack:** Seeded Omega .om, compiler SHA256 `191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9`, Linux AArch64. Existing shell/Linux commands are disclosed development orchestration, not new delivered automation. 8 **Spec:** CUDApp #52/#53 and integration addenda #15/#16/#17; omega-mv #599/#653. NOT A MASTER PLAN. 9 10 ## Global constraints 11 - New executable logic, tests and fixtures are .om. Preserve existing legacy code/history until its owning replacement and consumer cutover qualify; this additive slice does not retire the runtime. 12 - Own only native/learn53, tests/learn53, docs/learn53, evidence/LEARN53-L777. Do not resume existing prerequisite workers or create a second compiler/runtime/judge/store. 13 - Public development input only. Refuse validation/final splits at this entry; do not inspect sealed tasks or invent a seal. 14 - Exact modular u32 semantics only; no tolerance or FP support. No model inference, search, training, GPU execution, timing reward or performance claim. 15 - Bound manifest to 4096 bytes, each input/output extent to 256 u32 words, all loops by these bounds. Candidate output has exact padded extent plus two canaries, maximum1032 bytes. Registration limited to listed shape families. 16 17 ## Review focus 18 - Length/count overflow before any read: exercise lengths0,95,4097,2^64-1 and forged u32 counts. 19 - Semantic-policy downgrade or false evidence: reject tolerance/mode, target and split substitutions before output comparison; candidate PASS text is not a result. 20 - Sparse output layout and ragged tails: compare every logical result and every padding/guard word; skipped/wrong-tail outputs must fail. 21 - Reuse after refusal: a malformed second record cannot reuse the previous success; valid third record must recover, inputs unchanged. 22 - Oracle correlation: literal Wolfram-checked add/reduce/matmul answers and compiled evaluator mutants, not expected values produced by this implementation. 23 24 ### Task 1: Domain contract and independent evaluator 25 **Files:** native/learn53/task.om; tests/learn53/unit.om; docs/learn53/CONTRACT.md. 26 **Interfaces:** globals kt[4096] and ko[1032]; kvalid(task_bytes:ulong)->int; keval(task_bytes:ulong,output_bytes:ulong)->int. Caller fills manifest once from trusted pinned task storage; only ko receives candidate bytes. These are single-threaded scratch buffers, not an authority or sandbox. 27 - [ ] Write unit fixtures and kvalid/keval compilable stubs. Run native combined source; expect intended assertions to fail, not compile/setup errors. 28 - [ ] Implement canonical fixed little-endian manifest and exact shape/stride/count policy; prove structural/unsupported/split failures and no buffer mutation. 29 - [ ] Implement independent scalar u32 add, fixed-order sum and small matmul checking with guards; retain wrong values, skipped writes, sample memorization, strides/tails, weakened tolerance and spoofing controls. 30 - [ ] Execute complete native suite and compiled semantic mutants; keep every raw result and actual exit. 31 - [ ] Commit source freeze and reproduce from immutable Git export. 32 33 ### Task 2: Data-only native entry point 34 **Files:** native/learn53/stream.om; tests/learn53/stream-input.om; tests/learn53/stream-check.om. 35 **Interfaces:** length-framed task then candidate bytes on stdin, no arguments/files/process launch. Result is authoritative process status; stdout contains only a fixed evidence-class/status record, never a candidate-provided result. 36 - [ ] Write native stream tests first; reject empty, truncated, extra and forged-length input; require no success output on failure. 37 - [ ] Implement bounded read/copy/check entry; run valid and wrong-output data through the real executable. 38 - [ ] Confirm static AArch64 ELF and no linked foreign runtime. Record build/input/binary identities and declared closure limits. 39 40 ### Task 3: Review and dependency-safe publication 41 **Files:** docs/learn53/DEPENDENCIES.md; evidence/LEARN53-L777/; existing desk intake and issue-update packet. 42 - [ ] Preserve exact prerequisite branch/source/receipt pins and map every remaining #53-60 gate to its current owner. No hardware or proof credit from this unit. 43 - [ ] Run unchanged repository host suite separately. Preserve baseline/final failures without changing owned legacy gates. 44 - [ ] Independent reviewer checks exact final source, source closure, public oracle cases and mutants. Fix substantive findings with RED/GREEN. 45 - [ ] Publish scoped branch/evidence and request one reviewable PR through the sole desk; read back exact remote head and issue updates. Keep #52-60 open until their final acceptance is met. 46 47 ## Pre-flight ruling 48 Omega653/L775/L776 currently stopped at account cap with TICK-OFF set; no published qualified adapter/profile. This module provides a non-speculative domain seam (trusted manifest plus observed output bytes) but does not impersonate the absent framework. #15 eight-slice .om runner, #16 FP comparator and #17 native graph collector migration remain owned prerequisites. #54-60 dependent experiments cannot qualify on this slice. No primitive/generator is promoted or timed here.