interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / docs / independent-verification / AGENT_PROMPT.md

113 lines · 7373 bytes Raw Blame History Rendered
1# Agent prompt: finish independent native GPU replication
2
3Work in public repository https://github.com/aien-dev/CUDApp. Extend existing
4issue #91 and its independent physical replication addendum, under release
5review #88. Do not create a duplicate issue or take over #79's .om migration,
6#15/#16/#17's qualification owners, trace work or shader pilot #86.
7
8The goal is an independently reproducible, narrowly scoped physical GB10
9vector result with inspectable evidence. The documentation and collection
10schema in `docs/independent-verification/` prepare that work; they are not a
11hardware receipt or a completed checker. Read the README and PLAN there first.
12
13Reconcile current main, open PRs, owners and leases before editing. Read the
14repository AGENTS.md, relevant .crumb files and local `.agents/skills` if a
15needed skill is absent from your catalog. Follow the current Omega Harness,
16encoding, communication and crumb guidance. Work in an isolated branch. Keep
17unrelated changes and immutable evidence intact. Open or update a draft PR;
18do not merge, release, deploy or change repository settings.
19
20Known historical evidence: `evidence/speculation/release-candidate-teardown/receipt.json`
21records CUDApp `2e2421694f6110bd84885ae0b2d3caf249809d34`, compiler source
22`omega-mv@d7390d88d07dbf48cfbb0583070599c350f814d3`, and compiler SHA256
23`9749f38841a55917d41924a68bce31463ec2339910bddd5e6cbf6ea4420551db`.
24It reports an owner-operated GB10 pass, privately retained raw syscall trace,
25and independent hardware replication NOT_RUN. Verify the receipt and current
26source rather than treating this historical pin as qualification of main.
27NVIDIA open kernel modules 580.173.02 and GSP firmware remain dependencies.
28The recorded machine had the toolkit installed; not using it is not absence.
29
30Implement the missing test capabilities in seeded .om using the existing
31`native/nvrm/context.om`, `native/blackwell/vector.om`,
32`native/blackwell/launch.om` and `tests/speculation/` harness. Do not build a
33second encoder/runtime or add a permanent C/Python wrapper implementation.
34Independent external test oracles remain clearly separate from the product.
35Do not compose experimental trace emitters into this qualification path.
36
37Before hardware use, write and exercise host tests for externally supplied
38input/output transport, malformed or truncated inputs, supported size bounds,
39stale output, wrong digest, missing writes and independent-oracle tampering.
40The current harness uses fixed salts and an in-process CPU checker, checks
41only available trailing words, and lacks an explicit no-submission arm.
42Repair those gaps without disabling compiler loop limits, admission, bounds,
43cleanup or existing test gates. If a required language feature is missing,
44report the smallest reproducible need to its existing owner instead of adding
45a hidden foreign fallback. Obtain independent review of the final code.
46
47Arrange a real operator independent of candidate generation. Freeze the exact
48candidate, harness, compiler, reviewed kernel variants and launch-builder
49hashes before that operator chooses fresh unpredictable challenges. Runtime
50launch descriptors/arguments depend on sizes and allocation addresses: hash
51the finalized bytes after challenge selection/allocation and before each
52submission, binding them to the frozen builder and exact inputs. Keep expected results in a separate CPU
53oracle process/workspace and verify every output byte. Record custody,
54timestamps and a witnessed challenge commitment, not just a hard-coded seed.
55A source-reviewing agent is not itself an independent physical operator.
56
57No device work is authorized until the owner explicitly grants the existing
58reservation and safe admission for the selected machine and bounded workload.
59If that authority or supported hardware is missing, complete host work and
60report the exact pending action; leave all hardware rows NOT_RUN. Do not stop
61a resident model, touch other jobs, uninstall CUDA, change drivers/firmware,
62unload modules or reset/reboot the machine. A toolkit-absent test may run only
63in a separately approved environment, never by altering the user's Spark.
64
65In an admitted run, execute the correct kernel, a reviewed safe wrong-math
66kernel, a fresh restored correct kernel, and a no-submission control that
67leaves poisoned output unchanged and never waits for an unsubmitted launch.
68Choose poison independently and check it against the oracle; do not leak
69expected values by publishing their reversible complement as poison.
70Check inputs and guards in every arm. Do not discard failed attempts or
71repeat runs selectively to report only successes; diagnose failures and retain
72all attempts. Use the existing cleanup path and owner recovery process if state is
73uncertain. Capture exact commands, UTC times, exits, full output, source and
74artifact digests, device/driver identity, bounded-memory admission and health.
75
76Keep static ELF/build dependency evidence separate from dynamic process-tree,
77load/device-call/submission/completion observations. Capture full raw logs and
78correlate them to the exact kernel and readback. Static linking, an ioctl,
79matching hashes, signatures or a printed PASS alone cannot prove GPU work.
80Disclose the observer's coverage and the kernel/firmware floor. Distinguish
81installed tools, build/oracle tools and runtime dependencies.
82
83Create a new immutable public evidence bundle. Sanitize and manually review
84all new text, logs, commands and artifacts before publication. Retain raw
85originals in authorized custody, record raw and sanitized hashes, document
86redactions and preserve event ordering and consistent aliases. Do not expose
87private paths, addresses, service details, prompts, credentials or vendor
88binaries/listings. Record exact-source license/provenance obligations and
89coordinate unresolved findings with #89; do not assume the whole current
90tree has one license or relicense source. Missing critical public evidence
91stays incomplete; a hash
92of a private trace is not public inspectability.
93
94Fill an operator report, not the NOT_RUN template. The manifest is only a
95collection envelope: COLLECTED is not PASS and claim_status stays
96NOT_EVALUATED. Independently verify artifact existence, digests, references,
97chronology, admission and semantic control outcomes. The operator describes
98what they personally observed, their relationship to the author and remaining
99trust assumptions; a separate reviewer accepts only the supported scope.
100Record a second operator on the same device separately from an optional
101second-machine replication. Neither can be invented from synthetic fixtures.
102
103Run the repository's complete applicable host checks on the final commit;
104report every failure by name. Requalify after executable inputs change. The
105known x86_64 `ds` assembler failure in `src/omega_blackwell_engine.c` is not
106permission to replace barriers with no-ops. Keep host/simulator/native host,
107owner hardware, independent hardware and second-machine results separate.
108
109Return the draft PR and issue links, exact final commits and artifact hashes,
110commands/exits, independent review, a public evidence index, remaining
111NOT_RUN/BLOCKED rows and the next required owner action. Do not auto-close
112#91 or claim full-model correctness, performance superiority, all-GPU support,
113C retirement or independence from NVIDIA kernel modules/GSP firmware.