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/patches/0b4e2c7c3478bd80 # 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 ## docs: define independent GPU replication evidence for #91 merged `0b4e2c7c3478bd80` #94 · opened 2026-10-26 03:51 UTC · closed 2026-10-27 04:37 UTC · merged 2026-10-27 04:37 UTC Imported from GitHub aien-dev/CUDApp#94, by drakestapleton Base `d5d3b83400c5ae49e0d7b5a64f477032392ccc3b` · Head `053e0de489582df1fc9774877d2a75c4cfb3704e` Merged on GitHub as `86d326579e913caffc890d221ba9130aad4ed5ca`; reachable from main `21d8de285f713adf09e0d6ba6db2b37139d0674e` (observed 2026-11-18T16:38:29Z) drakestapleton wrote on 2026-10-26 03:51 UTC ## Evidence and limits Host-only on Linux x86_64, base `c73afb25cce8d22e039287a8ab2e4cd4c7aecf67`: - External JSON Schema structural/refusal checks pass for the schema and empty NOT_RUN template. Malformed hashes/IDs, missing controls, fabricated template collection, unsafe public paths and malformed/non-UTC timestamp shapes are rejected. The installed external validator lacks optional calendar checking; calendar validity, chronology, artifact truth and cross-record semantics remain explicit review obligations. - Fresh independent review approved this documentation/data-contract scope after fixes. New public text passed the repository secret/private-pattern scan and manual review. JSON, local links, content hashes and whitespace checks pass. - `make test`, `make test-native-artifact` and `make zero-cuda-gate` each exit 2 at unchanged `src/omega_blackwell_engine.c:393/:558` (`ds` operand mismatch on x86_64). No barrier or gate was bypassed; the full suite and those dependent targets did not pass. - Figure check exits 1 for existing stale `stack.svg`. Root crumb verification exits 1 for the existing trace crumbs; the new documentation crumb is current. Logs and tool identities are included. - Native AArch64 execution and every new GPU/independent-operator/second-machine/toolkit-absent check are NOT_RUN. No device, resident model, driver or toolkit was modified. Receipt: `evidence/independent-verification/host-contract-20261026/`. ## Change Refs #91 and its independent physical replication addendum , under #88. This PR does not close either issue or supersede #79. - Add a concrete protocol for exact-source rebuild, independently held fresh challenges, a separate CPU oracle, full-output/guard checks, safe wrong/restored/no-submission controls, static and dynamic dependency evidence, and public/raw log custody. - Add a structural collection manifest and explicitly empty template. `COLLECTED` never means PASS; `claim_status` is always `NOT_EVALUATED`. A schema, hash, signature or synthetic fixture does not prove physical execution. - Describe the missing existing-harness capabilities rather than pretending they were implemented. Follow-on first-party work belongs in seeded .om using the existing qualified vector path, not the experimental trace emitter or a new C wrapper. - Supply one self-contained agent prompt, including owner admission, no live-service disruption and no toolkit removal. Add source provenance/license review coordination with #89. - (Superseded) The START_HERE host-target wording this branch carried reached main separately; after `git merge origin/main` (`053e0de4`) this PR no longer changes `docs/START_HERE.md`, so its line in `artifacts.sha256` no longer matches the tree. The other 15 hashes match. This is the bounded preparation PR, not the independent hardware rerun. No performance advantage, full-model correctness, wider GPU support, C retirement, release or independence from NVIDIA kernel modules/GSP firmware is claimed. ## Re-run at merge head `053e0de4` (TrainDocs, 2026-10-27, Linux aarch64 on the DGX Spark) - `make test` rc=0, `CUDA++ HOST TESTS PASS (35 targets)` (the x86_64 `ds` assembler failure above does not occur on aarch64). - `crumb verify` OK, 21 crumbs current; `make_figures.py --check` figures current: 10. - GPU and independent-operator checks: NOT_RUN. - reviewed (COMMENTED) on - ## Non-author review (TrainDocs, for Main) — head `053e0de4` Author drakestapleton; reviewer aien-spark (TrainDocs). Reviewed `c73791f1`, then `git merge origin/main` (`97ca10ba`) on the branch, clean → `053e0de4`. No force-push. This PR is docs and a data contract only (PROPOSED protocol, schema and an empty NOT_RUN template, plus a host-contract receipt). ### Commands run (fresh clone `/home/drakestapleton/work/Train/TrainDocs/pr94`, Linux aarch64, DGX Spark) - `nice -n 19 taskset -c 10-14 make -j4 test` → rc=0, `CUDA++ HOST TESTS PASS (35 targets)`; mutants 120 total, 107 killed, 13 survived as redundant, 0 test gaps. The receipt's x86_64 failure (`ds` operand mismatch at `omega_blackwell_engine.c:393/:558`) does not reproduce on aarch64; the receipt stays as recorded on x86_64. - `crumb verify` → `OK: 21 crumbs current` (the receipt's two stale device-trace crumbs are current on main now). - `python3 tools/figures/make_figures.py --check` → `figures current: 10` (the receipt's stale `stack.svg` is fixed on main). - `jsonschema` 4.10.3: schema passes `check_schema`; `manifest.NOT_RUN.json` → 0 errors. - `sha256sum -c evidence/independent-verification/host-contract-20261026/artifacts.sha256` → 15 OK, 1 FAILED (`docs/START_HERE.md`, see below). ### Negative controls - Template with `claim_status: "PASS"` → 1 schema error; with an unknown top-level field → 1 error. - Appending a line to `docs/independent-verification/PLAN.md` → `crumb verify` reports `STALE docs/independent-verification`, FAIL; restored. ### Claims checked - Teardown receipt `evidence/speculation/release-candidate-teardown/receipt.json` contains CUDApp `2e242169…`, compiler source `omega-mv@d7390d88…`, compiler SHA256 `9749f388…`, the wrong-math/corrected-program controls, and "independent hardware rerun by a second person or machine" as not_run. Holds. - Referenced files (`docs/speculation/NATIVE-KERNEL.md`, `native/nvrm/context.om`, `native/blackwell/{vector,launch}.om`) exist. Issues #91 (and comment `6407638311`), #88, #89, #79, #86, #15, #16 and #17 are all open. - No performance, uniqueness, toolkit-absence or kernel-module/firmware replacement claim; NVIDIA kernel modules and GSP firmware are stated as still required. ### Discrepancy recorded, not rewritten `artifacts.sha256` lists `docs/START_HERE.md` (`7531ba85`…). That file's change reached main through another PR, and this branch no longer modifies it; no committed version hashes to `7531ba85`. The historical receipt is left unedited. The PR body now says the START_HERE bullet is superseded and records the aarch64 re-run. ### Chip NOT_RUN: no device opened; independent-operator and second-machine checks are NOT_RUN, as the PR states. ### Verdict LAND as PROPOSED protocol. #91 stays open. ### Fetch it A git bundle of the pull request's head, 23363 bytes. ``` curl -fsSL https://interplane.io/drakestapleton/CUDApp/patches/0b4e2c7c3478bd80.bundle -o 0b4e2c7c3478bd80.bundle git fetch 0b4e2c7c3478bd80.bundle refs/pull/94/head ``` Raw bundle · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/CUDApp 94 053e0de489582df1fc9774877d2a75c4cfb3704e ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"CUDApp","number":94,"url":"https://github.com/aien-dev/CUDApp/pull/94","export_sha256":"0aafd51b77ff5776d6baaf9b88b48c8b36a6e27c8d829ae8ded561b71712b17a","imported_utc":"2026-11-18T16:38:29Z"} ``` ### Changes ``` diff --git a/docs/independent-verification/.crumb b/docs/independent-verification/.crumb new file mode 100644 index 00000000..997800f8 --- /dev/null +++ b/docs/independent-verification/.crumb @@ -0,0 +1,24 @@ +{ + "extensions": { + "generated": { + "children": [], + "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "compiled_at": "2026-10-26T03:49:52Z", + "compiler": "crumb-compile/1", + "digest": "sha256:3d64c34d2f05c6335bcae79fa9e07c12e69f1b2ca78047eb8675fe48f926bdf3", + "evidence_files": 0, + "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "files": 5, + "generated_at_commit": "0c186fc77114a5f5968345014f036ff54ce465b5", + "source_tree": "sha256:fa6fe9805c058939c9b9801d3ae9586a40de86e90b5c483e7cdb08ecf6346cf4" + } + }, + "invariants": [ + "A collected or schema-valid record is not physical proof or release acceptance.", + "The template contains no run evidence; every measurement remains NOT_RUN.", + "Device work requires existing owner admission and does not change the resident service or driver." + ], + "name": "independent-verification", + "purpose": "Proposed independent GPU replication protocol and collection manifest for CUDApp issue 91.", + "schema_version": "1.0.0" +} diff --git a/docs/independent-verification/AGENT_PROMPT.md b/docs/independent-verification/AGENT_PROMPT.md new file mode 100644 index 00000000..8ebdc40f --- /dev/null +++ b/docs/independent-verification/AGENT_PROMPT.md @@ -0,0 +1,113 @@ +# Agent prompt: finish independent native GPU replication + +Work in public repository https://github.com/aien-dev/CUDApp. Extend existing +issue #91 and its independent physical replication addendum, under release +review #88. Do not create a duplicate issue or take over #79's .om migration, +#15/#16/#17's qualification owners, trace work or shader pilot #86. + +The goal is an independently reproducible, narrowly scoped physical GB10 +vector result with inspectable evidence. The documentation and collection +schema in `docs/independent-verification/` prepare that work; they are not a +hardware receipt or a completed checker. Read the README and PLAN there first. + +Reconcile current main, open PRs, owners and leases before editing. Read the +repository AGENTS.md, relevant .crumb files and local `.agents/skills` if a +needed skill is absent from your catalog. Follow the current Omega Harness, +encoding, communication and crumb guidance. Work in an isolated branch. Keep +unrelated changes and immutable evidence intact. Open or update a draft PR; +do not merge, release, deploy or change repository settings. + +Known historical evidence: `evidence/speculation/release-candidate-teardown/receipt.json` +records CUDApp `2e2421694f6110bd84885ae0b2d3caf249809d34`, compiler source +`omega-mv@d7390d88d07dbf48cfbb0583070599c350f814d3`, and compiler SHA256 +`9749f38841a55917d41924a68bce31463ec2339910bddd5e6cbf6ea4420551db`. +It reports an owner-operated GB10 pass, privately retained raw syscall trace, +and independent hardware replication NOT_RUN. Verify the receipt and current +source rather than treating this historical pin as qualification of main. +NVIDIA open kernel modules 580.173.02 and GSP firmware remain dependencies. +The recorded machine had the toolkit installed; not using it is not absence. + +Implement the missing test capabilities in seeded .om using the existing +`native/nvrm/context.om`, `native/blackwell/vector.om`, +`native/blackwell/launch.om` and `tests/speculation/` harness. Do not build a +second encoder/runtime or add a permanent C/Python wrapper implementation. +Independent external test oracles remain clearly separate from the product. +Do not compose experimental trace emitters into this qualification path. + +Before hardware use, write and exercise host tests for externally supplied +input/output transport, malformed or truncated inputs, supported size bounds, +stale output, wrong digest, missing writes and independent-oracle tampering. +The current harness uses fixed salts and an in-process CPU checker, checks +only available trailing words, and lacks an explicit no-submission arm. +Repair those gaps without disabling compiler loop limits, admission, bounds, +cleanup or existing test gates. If a required language feature is missing, +report the smallest reproducible need to its existing owner instead of adding +a hidden foreign fallback. Obtain independent review of the final code. + +Arrange a real operator independent of candidate generation. Freeze the exact +candidate, harness, compiler, reviewed kernel variants and launch-builder +hashes before that operator chooses fresh unpredictable challenges. Runtime +launch descriptors/arguments depend on sizes and allocation addresses: hash +the finalized bytes after challenge selection/allocation and before each +submission, binding them to the frozen builder and exact inputs. Keep expected results in a separate CPU +oracle process/workspace and verify every output byte. Record custody, +timestamps and a witnessed challenge commitment, not just a hard-coded seed. +A source-reviewing agent is not itself an independent physical operator. + +No device work is authorized until the owner explicitly grants the existing +reservation and safe admission for the selected machine and bounded workload. +If that authority or supported hardware is missing, complete host work and +report the exact pending action; leave all hardware rows NOT_RUN. Do not stop +a resident model, touch other jobs, uninstall CUDA, change drivers/firmware, +unload modules or reset/reboot the machine. A toolkit-absent test may run only +in a separately approved environment, never by altering the user's Spark. + +In an admitted run, execute the correct kernel, a reviewed safe wrong-math +kernel, a fresh restored correct kernel, and a no-submission control that +leaves poisoned output unchanged and never waits for an unsubmitted launch. +Choose poison independently and check it against the oracle; do not leak +expected values by publishing their reversible complement as poison. +Check inputs and guards in every arm. Do not discard failed attempts or +repeat runs selectively to report only successes; diagnose failures and retain +all attempts. Use the existing cleanup path and owner recovery process if state is +uncertain. Capture exact commands, UTC times, exits, full output, source and +artifact digests, device/driver identity, bounded-memory admission and health. + +Keep static ELF/build dependency evidence separate from dynamic process-tree, +load/device-call/submission/completion observations. Capture full raw logs and +correlate them to the exact kernel and readback. Static linking, an ioctl, +matching hashes, signatures or a printed PASS alone cannot prove GPU work. +Disclose the observer's coverage and the kernel/firmware floor. Distinguish +installed tools, build/oracle tools and runtime dependencies. + +Create a new immutable public evidence bundle. Sanitize and manually review +all new text, logs, commands and artifacts before publication. Retain raw +originals in authorized custody, record raw and sanitized hashes, document +redactions and preserve event ordering and consistent aliases. Do not expose +private paths, addresses, service details, prompts, credentials or vendor +binaries/listings. Record exact-source license/provenance obligations and +coordinate unresolved findings with #89; do not assume the whole current +tree has one license or relicense source. Missing critical public evidence +stays incomplete; a hash +of a private trace is not public inspectability. + +Fill an operator report, not the NOT_RUN template. The manifest is only a +collection envelope: COLLECTED is not PASS and claim_status stays +NOT_EVALUATED. Independently verify artifact existence, digests, references, +chronology, admission and semantic control outcomes. The operator describes +what they personally observed, their relationship to the author and remaining +trust assumptions; a separate reviewer accepts only the supported scope. +Record a second operator on the same device separately from an optional +second-machine replication. Neither can be invented from synthetic fixtures. + +Run the repository's complete applicable host checks on the final commit; +report every failure by name. Requalify after executable inputs change. The +known x86_64 `ds` assembler failure in `src/omega_blackwell_engine.c` is not +permission to replace barriers with no-ops. Keep host/simulator/native host, +owner hardware, independent hardware and second-machine results separate. + +Return the draft PR and issue links, exact final commits and artifact hashes, +commands/exits, independent review, a public evidence index, remaining +NOT_RUN/BLOCKED rows and the next required owner action. Do not auto-close +#91 or claim full-model correctness, performance superiority, all-GPU support, +C retirement or independence from NVIDIA kernel modules/GSP firmware. diff --git a/docs/independent-verification/PLAN.md b/docs/independent-verification/PLAN.md new file mode 100644 index 00000000..6f6be089 --- /dev/null +++ b/docs/independent-verification/PLAN.md @@ -0,0 +1,42 @@ +# Independent GPU evidence, bounded first slice + +Issue: https://github.com/aien-dev/CUDApp/issues/91#issuecomment-6407638311 +Initial inspection: b5e0da48ee7b8a64ae0b51068769fa0659b2e33a +Refreshed base: c73afb25cce8d22e039287a8ab2e4cd4c7aecf67 + +## Design + +Make the gap between an owner-operated receipt and independent replication +explicit. Supply a collection protocol, a structural manifest schema and an +empty NOT_RUN template. The schema must not issue a physical PASS verdict. +A separate operator and reviewer decide what the supplied evidence supports. + +A prose-only checklist would leave evidence shape ambiguous. A new runtime, +GPU launcher or automatic attestation engine would duplicate existing owners +and exceed this slice. This documentation/data contract reuses the existing +native vector harness and leaves missing executable work to its .om owners. +No device code, build gate, driver, historic receipt or public claim is changed. + +## Plan and verification + +1. Inspect current public main, #79/#88/#91, the native vector harness and the + existing teardown receipt. Extend #91 without replacing its original scope. +2. Specify exact-source rebuilding, challenge custody, external CPU checking, + safe controls, process/device evidence and public/raw artifact commitments. +3. Add a schema with no PASS output and an explicitly empty template. Check + schema validity and reject missing controls, fabricated template evidence, + unknown fields, malformed hashes and COLLECTED rows without evidence. +4. Validate local links and JSON; run repository checks without weakening them. + Record host failures separately from schema checks. All GPU work is NOT_RUN. +5. Obtain a fresh independent review, scan new public content, and submit a + draft PR after review. The PR prepares the work; it does not close #91. + +## Follow-on work, not implemented here + +The existing harness has fixed salts, an in-process CPU checker, tail checks +that disappear at maximum capacity, and no explicit withheld-submission arm. +Implement independently supplied challenge input/output transport, separate +oracle custody, complete guards and the missing control in seeded .om. Extend +the existing tests rather than creating a second runtime or permanent C path. +The manifest is a collection envelope, not a shipped semantic validator: +artifact references, real digests, chronology and truth still need checking. diff --git a/docs/independent-verification/README.md b/docs/independent-verification/README.md new file mode 100644 index 00000000..aa897c5c --- /dev/null +++ b/docs/independent-verification/README.md @@ -0,0 +1,231 @@ +# Independently reproduce one native GPU result + +**Status: PROPOSED collection protocol. Independent hardware replication is +NOT_RUN.** This directory does not contain a physical receipt, an executable +validator or new GPU harness behavior. [Issue #91](https://github.com/aien-dev/CUDApp/issues/91#issuecomment-6407638311) +owns this evidence work under [#88](https://github.com/aien-dev/CUDApp/issues/88). +[#79](https://github.com/aien-dev/CUDApp/issues/79) retains .om migration. +The [agent prompt](AGENT_PROMPT.md) describes the remaining implementation. + +## What the current evidence establishes + +The immutable [teardown candidate receipt](../../evidence/speculation/release-candidate-teardown/receipt.json) +reports an owner-operated physical vector result for CUDApp +`2e2421694f6110bd84885ae0b2d3caf249809d34`, with compiler source +`omega-mv@d7390d88d07dbf48cfbb0583070599c350f814d3` and compiler SHA256 +`9749f38841a55917d41924a68bce31463ec2339910bddd5e6cbf6ea4420551db`. +It records wrong-math and restored-program controls and a privately retained +syscall trace. It explicitly leaves a second person's or machine's hardware +rerun NOT_RUN. It does not qualify a later source revision. + +The [native kernel description](../speculation/NATIVE-KERNEL.md) and +`native/nvrm/context.om`, `native/blackwell/vector.om` and +`native/blackwell/launch.om` expose the direct device-client and native +instruction path. Source inspection and artifact hashes are not independent +physical execution. A matching hash identifies bytes; a signature identifies +an attestation under a key. Neither proves that the attested event occurred. +NVIDIA open kernel modules and GSP firmware remain required. A runtime that +does not use CUDA userspace is not evidence that the toolkit is absent. + +## Freeze the experiment before collecting results + +An operator independent of candidate generation owns the challenge and records +their relationship to the author. Self-reported independence is not verified +independence. Document who reviewed it, what they checked, and remaining trust +assumptions. An agent reviewing source is not an independent hardware operator. +A second operator on the same machine is distinct from a second machine. + +1. Clone the exact public candidate and compiler revisions into clean workspaces. + Save the full Git SHAs, clean/dirty status and any patch bytes and hashes. + Freeze the harness and oracle revisions too. A dirty build is a different + candidate, not a result on the clean SHA. +2. Record tool versions, build environment and the complete source composition + and build commands. Rebuild the pinned seed compiler using its repository's + accepted path on the supported architecture. Compare its hash with an + independently recorded expected digest, not a sidecar just regenerated by + the same build. Never execute a failed or partial compile output. +3. Hash the source unit, executable, reviewed kernel variants, descriptor + builder/template and invariant configuration. Repeat the build in a fresh output directory and + report exact byte agreement or a diagnosed difference. A rebuilt compiler's + fixpoint is not a proof of compiler correctness. Runtime descriptors and + arguments contain fresh sizes and allocation addresses: hash their finalized + bytes per arm after challenge selection/allocation and before submission. + Bind them to the frozen builder and challenge, not a preselected address. +4. Run the repository's host suite and relevant native host tests. Capture every + command and exit. x86_64 cross-compilation or interpretation is not native + AArch64 execution. Do not replace architecture-specific barriers with no-ops. +5. Freeze the candidate digest before challenge generation. The operator chooses + fresh unpredictable inputs and publishes a timestamped commitment to the + exact input bytes and generation recipe before launch. The candidate author + must not select, replace or learn the challenge in advance. Runtime inputs + necessarily reach the candidate; expected outputs remain with the referee. + Record that chronology and its witness, not just self-asserted timestamps. +6. Use an independently implemented CPU oracle in a separate process/workspace. + It consumes the exact input bytes and emits every expected uint32 result + under the documented wraparound semantics. Do not reuse the candidate's + generator, result buffer, checker or lookup table as the sole oracle. + Publish its source/provenance, versions, command, exits and output digest. + +Start with the bounded vector addition already supported by the native path. +Do not substitute a full model, arbitrary shader or benchmark. Preserve the +existing refusal cases and supported size bounds. After freeze, the operator +chooses challenge sizes within those bounds, including tails and boundaries. +Rebuilding to bake fresh values into candidate code breaks the freeze; add +reviewed runtime input transport first instead. + +## Existing harness seams and missing work + +Reuse `tests/speculation/native-kernel-test.om`, `vector-checks.om` and +`vector-checks-test.om`. Today the main function uses fixed salts; expected +values are computed inside the same test process. Its checks cover every +logical result and up to 64 unused output words, but there are no unused tail +words at maximum capacity. These are useful regressions, not the independent +challenge/CPU-oracle protocol above. + +Before a device run, extend that existing harness in seeded .om for external +input and output artifacts, separate reference comparison, and properly +allocated guards. Do not move pointers or enlarge allocations without review +of launcher bounds and admission. Add host refusals for malformed/truncated +inputs, wrong size/digest, stale outputs, missing writes and oracle tampering. +The withheld-submission control below is missing and must be implemented and +host-tested before use. No new permanent C implementation or foreign fallback. + +## Physical run, only after admission + +The issue, this document and a PR are not permission to open a device. Obtain +the existing owner reservation and safe admission for the named machine, +bounded allocation/workload and observation window. Leave the resident model, +other workers, gates, installed toolkit, driver and firmware untouched. If +safe admission or supported hardware is unavailable, record NOT_RUN or the +exact blocker and stop the dependent work. + +Record OS/architecture, GPU model and PCI identity, public-safe stable device +identity, loaded driver version and GSP dependency. Keep private device IDs in +raw custody when necessary, with a reviewed stable public alias. Do not infer +a second machine merely from a different alias. Record approved memory/time +limits, pre/post health checks scoped to the reservation and cleanup outcome. +No private service URLs, prompts, model data or unrelated process listings. + +For each arm, use fresh input/output allocations as supported, poison the +entire output, snapshot input and guard bytes, and retain full readback. Ensure +poison is independently chosen and checked by the referee not to equal that +element's expected output. Do not expose expected values through a reversible +poison pattern such as their bitwise complement. Preserve all failures and +attempts. Do not discard failed attempts or selectively repeat runs to report +only successes. Diagnose failures, retain all attempts and never reuse an +earlier successful buffer. + +| Arm | Required observation | +| --- | --- | +| Correct kernel | Actual submission/completion and every output matches the separate oracle. Input bytes and allocation guards remain intact. | +| Wrong-math kernel | Reviewed mutation changes arithmetic only, not addressing, bounds or termination. Submission completes, the oracle rejects wrong results, and guards stay intact. | +| Restored kernel | Fresh correctly restored code and output buffers pass again; record code identities for both versions. | +| No submission | Initialize normally but do not enqueue GPU work and do not enter a wait that can never complete. Readback stays at the fresh poison, not the oracle result. Trace evidence contains no launch for this arm. | +| Guards | Before/after guards for each accessible allocation and unused output extent remain unchanged in every arm. Explicitly report inaccessible/uncovered regions; do not claim total memory safety. | + +A wrong-math control must not send malformed opcodes, invalid pointers or a +hang to the device. A no-submission arm is not a timed-out GPU experiment. +Use the existing cleanup path; an uncertain device state requires the owner's +recovery procedure, not an agent-initiated reset or driver reload. + +The external referee checks all output bytes, guards and expected failures. +Candidate stdout saying PASS is not the result. A host routine that writes the +expected outputs would pass arithmetic comparison; the dynamic observation, +no-submission control and independent review must address that alternative. +This remains scoped empirical evidence, not formal hardware attestation. + +## Dependencies and observation + +Keep separate inventories for build tools, optional test/oracle tools and the +runtime process tree. Record installed `nvcc`/toolkit separately from whether +any component was executed or loaded by the measured path. Do not claim +"toolkit absent" from a clean dependency scan. Testing absence requires a +separately approved environment; never uninstall software from the Spark. + +Use the existing `make zero-cuda-gate` for its actual static ELF scope. Add +reviewed static inspection of the exact native ELF: headers, dynamic entries, +imports, interpreter, and build inputs. Static linking alone cannot exclude +embedded code, subprocesses or dynamic loading. Static output is one evidence +row, not a verdict about everything that could execute. + +Collect full raw process/device-call logs across the relevant process tree, +including exec/load/open/ioctl/mmap/submission/completion and exits where the +observer supports them. The historical command was +`strace -f -o kernel-syscalls.log ./kernel.elf`; this is a reference, not an +authorized command to run now. Explain trace coverage and limitations rather +than claiming a tool decoded more than it did. Correlate buffers and commands +with the exact kernel/launch artifacts and the bounded readback. An ioctl or +an NVIDIA device open by itself does not establish the claimed computation. +Any profiler or observation tool is separately inventoried and admitted. + +Record provenance and license obligations for the exact source/tool closure. +Unresolved current-tree licensing or vendor-listing questions belong to +[#89](https://github.com/aien-dev/CUDApp/issues/89); do not assert that the whole +tree has one license or change headers to make an audit appear clean. This +protocol does not authorize redistribution of material under review. + +## Public evidence and raw custody + +Create a new immutable `evidence//` bundle. Never rewrite the old +receipt. Save commands, start/end UTC, exit codes, stdout/stderr, full outputs, +input/oracle/kernel/launch digests, pre/post checks and all control failures. +For each artifact record byte count and SHA256. Publish source-owned artifacts +only; never add vendor binaries, firmware, cubins/PTX or vendor listings. + +Before publishing, scan and manually review commands, logs, patches, device +identifiers and manifests for secrets and private information. Sanitization +must preserve evidence-bearing event order, operation/result fields and +consistent alias relationships. State every removed class and its effect on +verification. If critical evidence cannot be published, label that check +incomplete for public verification instead of hiding the limitation. + +For every sanitized file, retain the raw original under authorized custody, +record both hashes, the transformation specification, reviewer, and access +conditions. Do not publish the private path. A raw hash is a commitment, not +access to the raw trace. If later confidential inspection is needed, seek +separate authorization; this protocol does not grant disclosure permission. + +The operator writes a report naming what they personally rebuilt, generated, +observed and checked, their relationship to the author, and what remained +unobserved. A reviewer verifies identities, chronology, artifact bytes and +controls before accepting a narrow claim. Optional signatures cover exact +report bytes and key identity without introducing a new trust root or a +physical-proof claim. An optional separately admitted second-machine run gets +its own bundle and retains all platform differences. + +## Manifest contract and review checklist + +[manifest.NOT_RUN.json](manifest.NOT_RUN.json) is an empty **template**, not a +receipt. [manifest.schema.json](manifest.schema.json) uses JSON Schema draft +2020-12. A standard external validator can check its structure. This PR does +not add a validator dependency, CI acceptance gate or manifest consumer. + +- `claim_status` is always `NOT_EVALUATED`. There is no automatic PASS value. +- Check statuses are NOT_RUN, BLOCKED, FAILED or COLLECTED. COLLECTED means + evidence was attached, not that it is authentic, sufficient or successful. +- A template cannot carry commands, artifacts, identities, operator claims or + a completed check. Never present generated schema-test data as run evidence. +- An operator report may be incomplete. Describe exactly why a row is missing; + optional second-machine/toolkit-absent checks can remain NOT_RUN without + inventing broader claims. Preserve failed observations as FAILED. +- Every command must identify its script/argv context, UTC times, exit status, + and stdout/stderr artifact IDs. Timestamps use UTC `Z` with a lexical + date/time range check, excluding leap seconds. Calendar validity needs a + validator with date-time format support or a separate calendar check; the + locally installed referee lacks that optional format checker. Public paths + are bundle-relative, never + private machine paths. The schema cannot sanitize free text for you. +- Review must resolve every referenced command/artifact ID, reject duplicates, + verify every byte count/hash, chronology and identity against actual files, + enforce admission and check semantics. JSON Schema does **not** perform + these cross-record or physical checks. Self-filled fields are unverified. +- Hash/signature validity, schema validity, host tests and code review cannot + be substituted for a hardware observation. Keep owner hardware, independent + operator hardware, second-machine hardware, host and simulator claims apart. + +The [host-only contract checks](../../evidence/independent-verification/host-contract-20261026/README.md) +record structural/refusal validation and unchanged repository test blockers. + +Issue #91 stays open until its actual acceptance evidence is reviewed. This +first slice does not establish performance, full-model correctness, other GPU +support, C retirement, deployment or replacement of NVIDIA kernel/firmware. diff --git a/docs/independent-verification/manifest.NOT_RUN.json b/docs/independent-verification/manifest.NOT_RUN.json new file mode 100644 index 00000000..942ea982 --- /dev/null +++ b/docs/independent-verification/manifest.NOT_RUN.json @@ -0,0 +1,142 @@ +{ + "schema": "cudapp-independent-gpu-collection-v1", + "record_kind": "template", + "claim_status": "NOT_EVALUATED", + "operator": { + "identity": null, + "relationship_to_author": null, + "independence_review": "NOT_REVIEWED", + "review_artifact": null + }, + "identities": { + "candidate_repository": null, + "candidate_commit": null, + "dirty_patch_sha256": null, + "compiler_repository": null, + "compiler_commit": null, + "compiler_binary_sha256": null, + "unit_sha256": null, + "executable_sha256": null, + "kernel_sha256": null, + "launch_sha256": null, + "oracle_source_sha256": null, + "input_sha256": null, + "expected_output_sha256": null + }, + "checks": { + "source_provenance": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "exact_source_build": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "host_suite": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "challenge_custody": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "cpu_oracle": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "device_identity": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "admission": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "correct_kernel": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "guard_canaries": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "wrong_kernel": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "restored_kernel": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "no_submission": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "static_dependencies": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "dynamic_execution": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "public_sanitization": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "independent_report": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "second_machine": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + }, + "toolkit_absent_environment": { + "status": "NOT_RUN", + "observation": "No observation collected. This is a template, not a receipt.", + "evidence": [], + "commands": [] + } + }, + "artifacts": [], + "commands": [], + "limitations": [ + "No independent hardware run, raw trace, source build or operator evidence is supplied by this template.", + "Schema validation is not authenticity, independence, semantic acceptance or physical proof." + ] +} diff --git a/docs/independent-verification/manifest.schema.json b/docs/independent-verification/manifest.schema.json new file mode 100644 index 00000000..ed8ad5cc --- /dev/null +++ b/docs/independent-verification/manifest.schema.json @@ -0,0 +1,284 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "CUDA++ independent GPU evidence collection, not an acceptance verdict", + "description": "Structural validation only. COLLECTED is not PASS. Hashes, references, chronology, independence and physical events require separate review.", + "type": "object", + "additionalProperties": false, + "required": [ + "schema", + "record_kind", + "claim_status", + "operator", + "identities", + "checks", + "artifacts", + "commands", + "limitations" + ], + "properties": { + "schema": {"const": "cudapp-independent-gpu-collection-v1"}, + "record_kind": {"enum": ["template", "operator_report"]}, + "claim_status": {"const": "NOT_EVALUATED"}, + "operator": { + "type": "object", + "additionalProperties": false, + "required": ["identity", "relationship_to_author", "independence_review", "review_artifact"], + "properties": { + "identity": {"anyOf": [{"type": "string", "minLength": 1}, {"type": "null"}]}, + "relationship_to_author": {"anyOf": [{"type": "string", "minLength": 1}, {"type": "null"}]}, + "independence_review": {"enum": ["NOT_REVIEWED", "SELF_REPORTED", "REVIEWED"]}, + "review_artifact": {"anyOf": [{"$ref": "#/$defs/id"}, {"type": "null"}]} + }, + "allOf": [ + { + "if": {"properties": {"independence_review": {"const": "REVIEWED"}}}, + "then": { + "properties": { + "identity": {"type": "string", "minLength": 1}, + "relationship_to_author": {"type": "string", "minLength": 1}, + "review_artifact": {"$ref": "#/$defs/id"} + } + } + } + ] + }, + "identities": { + "type": "object", + "additionalProperties": false, + "required": [ + "candidate_repository", + "candidate_commit", + "dirty_patch_sha256", + "compiler_repository", + "compiler_commit", + "compiler_binary_sha256", + "unit_sha256", + "executable_sha256", + "kernel_sha256", + "launch_sha256", + "oracle_source_sha256", + "input_sha256", + "expected_output_sha256" + ], + "properties": { + "candidate_repository": {"anyOf": [{"type": "string", "minLength": 1}, {"type": "null"}]}, + "candidate_commit": {"anyOf": [{"$ref": "#/$defs/commit"}, {"type": "null"}]}, + "dirty_patch_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]}, + "compiler_repository": {"anyOf": [{"type": "string", "minLength": 1}, {"type": "null"}]}, + "compiler_commit": {"anyOf": [{"$ref": "#/$defs/commit"}, {"type": "null"}]}, + "compiler_binary_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]}, + "unit_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]}, + "executable_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]}, + "kernel_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]}, + "launch_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]}, + "oracle_source_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]}, + "input_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]}, + "expected_output_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]} + } + }, + "checks": { + "type": "object", + "additionalProperties": false, + "required": [ + "source_provenance", + "exact_source_build", + "host_suite", + "challenge_custody", + "cpu_oracle", + "device_identity", + "admission", + "correct_kernel", + "guard_canaries", + "wrong_kernel", + "restored_kernel", + "no_submission", + "static_dependencies", + "dynamic_execution", + "public_sanitization", + "independent_report", + "second_machine", + "toolkit_absent_environment" + ], + "properties": { + "source_provenance": {"$ref": "#/$defs/check"}, + "exact_source_build": {"$ref": "#/$defs/check"}, + "host_suite": {"$ref": "#/$defs/check"}, + "challenge_custody": {"$ref": "#/$defs/check"}, + "cpu_oracle": {"$ref": "#/$defs/check"}, + "device_identity": {"$ref": "#/$defs/check"}, + "admission": {"$ref": "#/$defs/check"}, + "correct_kernel": {"$ref": "#/$defs/check"}, + "guard_canaries": {"$ref": "#/$defs/check"}, + "wrong_kernel": {"$ref": "#/$defs/check"}, + "restored_kernel": {"$ref": "#/$defs/check"}, + "no_submission": {"$ref": "#/$defs/check"}, + "static_dependencies": {"$ref": "#/$defs/check"}, + "dynamic_execution": {"$ref": "#/$defs/check"}, + "public_sanitization": {"$ref": "#/$defs/check"}, + "independent_report": {"$ref": "#/$defs/check"}, + "second_machine": {"$ref": "#/$defs/check"}, + "toolkit_absent_environment": {"$ref": "#/$defs/check"} + } + }, + "artifacts": {"type": "array", "items": {"$ref": "#/$defs/artifact"}}, + "commands": {"type": "array", "items": {"$ref": "#/$defs/command"}}, + "limitations": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}} + }, + "allOf": [ + { + "if": {"properties": {"record_kind": {"const": "template"}}}, + "then": { + "properties": { + "operator": { + "const": { + "identity": null, + "relationship_to_author": null, + "independence_review": "NOT_REVIEWED", + "review_artifact": null + } + }, + "identities": { + "const": { + "candidate_repository": null, + "candidate_commit": null, + "dirty_patch_sha256": null, + "compiler_repository": null, + "compiler_commit": null, + "compiler_binary_sha256": null, + "unit_sha256": null, + "executable_sha256": null, + "kernel_sha256": null, + "launch_sha256": null, + "oracle_source_sha256": null, + "input_sha256": null, + "expected_output_sha256": null + } + }, + "artifacts": {"maxItems": 0}, + "commands": {"maxItems": 0}, + "checks": { + "properties": { + "source_provenance": {"properties": {"status": {"const": "NOT_RUN"}}}, + "exact_source_build": {"properties": {"status": {"const": "NOT_RUN"}}}, + "host_suite": {"properties": {"status": {"const": "NOT_RUN"}}}, + "challenge_custody": {"properties": {"status": {"const": "NOT_RUN"}}}, + "cpu_oracle": {"properties": {"status": {"const": "NOT_RUN"}}}, + "device_identity": {"properties": {"status": {"const": "NOT_RUN"}}}, + "admission": {"properties": {"status": {"const": "NOT_RUN"}}}, + "correct_kernel": {"properties": {"status": {"const": "NOT_RUN"}}}, + "guard_canaries": {"properties": {"status": {"const": "NOT_RUN"}}}, + "wrong_kernel": {"properties": {"status": {"const": "NOT_RUN"}}}, + "restored_kernel": {"properties": {"status": {"const": "NOT_RUN"}}}, + "no_submission": {"properties": {"status": {"const": "NOT_RUN"}}}, + "static_dependencies": {"properties": {"status": {"const": "NOT_RUN"}}}, + "dynamic_execution": {"properties": {"status": {"const": "NOT_RUN"}}}, + "public_sanitization": {"properties": {"status": {"const": "NOT_RUN"}}}, + "independent_report": {"properties": {"status": {"const": "NOT_RUN"}}}, + "second_machine": {"properties": {"status": {"const": "NOT_RUN"}}}, + "toolkit_absent_environment": {"properties": {"status": {"const": "NOT_RUN"}}} + } + } + } + } + } + ], + "$defs": { + "id": {"type": "string", "pattern": "^[a-z][a-z0-9_-]*(?![\\s\\S])"}, + "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}(?![\\s\\S])", "minLength": 64, "maxLength": 64}, + "commit": {"type": "string", "pattern": "^[0-9a-f]{40}(?![\\s\\S])", "minLength": 40, "maxLength": 40}, + "check": { + "type": "object", + "additionalProperties": false, + "required": ["status", "observation", "evidence", "commands"], + "properties": { + "status": {"enum": ["NOT_RUN", "BLOCKED", "FAILED", "COLLECTED"]}, + "observation": {"type": "string", "minLength": 1}, + "evidence": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}}, + "commands": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/id"}} + }, + "allOf": [ + { + "if": {"properties": {"status": {"const": "COLLECTED"}}}, + "then": {"properties": {"evidence": {"minItems": 1}}} + }, + { + "if": {"properties": {"status": {"const": "NOT_RUN"}}}, + "then": {"properties": {"evidence": {"maxItems": 0}, "commands": {"maxItems": 0}}} + } + ] + }, + "artifact": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "public_path", + "sha256", + "bytes", + "redaction", + "raw_sha256", + "raw_custody", + "sanitization_report" + ], + "properties": { + "id": {"$ref": "#/$defs/id"}, + "public_path": { + "type": "string", + "pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]*(?![\\s\\S])", + "not": {"pattern": "(^|/)\\.\\.(/|$)"} + }, + "sha256": {"$ref": "#/$defs/sha256"}, + "bytes": {"type": "integer", "minimum": 0}, + "redaction": {"enum": ["none", "sanitized"]}, + "raw_sha256": {"anyOf": [{"$ref": "#/$defs/sha256"}, {"type": "null"}]}, + "raw_custody": {"anyOf": [{"type": "string", "minLength": 1}, {"type": "null"}]}, + "sanitization_report": {"anyOf": [{"$ref": "#/$defs/id"}, {"type": "null"}]} + }, + "allOf": [ + { + "if": {"properties": {"redaction": {"const": "sanitized"}}}, + "then": { + "properties": { + "raw_sha256": {"$ref": "#/$defs/sha256"}, + "raw_custody": {"type": "string", "minLength": 1}, + "sanitization_report": {"$ref": "#/$defs/id"} + } + } + } + ] + }, + "command": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "command", + "cwd_token", + "started_utc", + "ended_utc", + "exit_code", + "stdout_artifact", + "stderr_artifact" + ], + "properties": { + "id": {"$ref": "#/$defs/id"}, + "command": {"type": "string", "minLength": 1}, + "cwd_token": {"type": "string", "minLength": 1}, + "started_utc": { + "type": "string", + "format": "date-time", + "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z(?![\\s\\S])" + }, + "ended_utc": { + "type": "string", + "format": "date-time", + "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?Z(?![\\s\\S])" + }, + "exit_code": {"type": "integer"}, + "stdout_artifact": {"$ref": "#/$defs/id"}, + "stderr_artifact": {"$ref": "#/$defs/id"} + }, + "description": "UTC timestamp lexical profile excludes leap seconds. Calendar validity requires date-time format support or separate checking; chronology remains manual." + } + } +} diff --git a/evidence/independent-verification/host-contract-20261026/README.md b/evidence/independent-verification/host-contract-20261026/README.md new file mode 100644 index 00000000..323dd87f --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/README.md @@ -0,0 +1,111 @@ +# Host-only documentation and manifest checks + +Measured 2026-10-26 on Linux x86_64, GCC `14.2.0`, Python `3.12.14`, external +`jsonschema` package `4.26.0`. Base: `c73afb25cce8d22e039287a8ab2e4cd4c7aecf67`. +The changed document/schema hashes are listed in `artifacts.sha256`. +This is not native AArch64, GPU, independent-operator or release qualification. +No device was opened. No benchmark or claim of physical proof was produced. + +## Contract checks + +An external JSON Schema referee checked draft 2020-12 schema validity and the +empty template. Before the schema/template were added, the check stopped with +`AssertionError: schema and NOT_RUN template must exist`, exit 1. The final +shape/refusal checks exited 0; raw summary: [schema-checks.log](schema-checks.log). +Synthetic in-memory data was used only to test validation, never saved as a +receipt or labeled as physical evidence. + +Reproduce the positive structural check from the repository root using an +already available external JSON Schema validator; do not install it into the +product or add a runtime dependency. For the measured external referee: + +```sh +python3 - <<'PY' +import json +from pathlib import Path +from jsonschema import Draft202012Validator, FormatChecker +root = Path('docs/independent-verification') +schema = json.loads((root / 'manifest.schema.json').read_text()) +template = json.loads((root / 'manifest.NOT_RUN.json').read_text()) +Draft202012Validator.check_schema(schema) +formats = FormatChecker() +print('date-time format checker available:', 'date-time' in formats.checkers) +validator = Draft202012Validator(schema, format_checker=formats) +validator.validate(template) +print('EMPTY_TEMPLATE_STRUCTURALLY_VALID_NOT_PHYSICAL_PROOF') +PY +``` + +The measured negative checks copied the empty template in memory, applied +one change per copy, and required `list(validator.iter_errors(copy))` to be +nonempty. Each of these copies was rejected: + +| Mutation | Refusal boundary | +| --- | --- | +| Delete `checks.no_submission` | Required control row | +| Template `checks.correct_kernel.status = COLLECTED`, evidence = `["fake"]` | Template cannot claim collection | +| `claim_status = PASS` | No physical verdict field | +| Add top-level `physical_proof = true` | Unknown field | +| Template `operator.identity = test-operator` | No template attribution | +| Set `record_kind = operator_report`, correct-kernel status COLLECTED, no evidence | Collection requires artifact references | +| Delete correct-kernel `observation` | Required observed meaning/blocker | + +A separate synthetic operator-report shape added artifact `test-file`, path +`test.stdout`, SHA256 of 64 lowercase `a` characters, byte count zero, no +redaction, and null raw custody fields. Its correct-kernel row was COLLECTED +with evidence `["test-file"]`, empty commands and observation explicitly saying +synthetic. It was structurally accepted. **No such artifact or event existed.** +This control shows why structural acceptance cannot establish a real result. +Starting with that shape, these independent mutations were rejected: + +- SHA256 `xyz`. +- An absolute public path or `../file` traversal. +- Byte count `-1`. +- Redaction `sanitized` without raw hash/custody/sanitization-report identity. + +Independent review additionally found that `$` anchors accepted a final +newline in digests, commits, IDs and public paths, and date-time format alone +allowed non-UTC offsets. These inputs were reproduced as unexpectedly valid +before repair. Exact digest lengths and actual-end patterns now reject the +newline cases; timestamps have an explicit UTC lexical/range pattern ending +in `Z`. The local `FormatChecker` has no optional `date-time` implementation, +so a suffix alone also accepted invalid text. The new pattern rejects +`not-a-dateZ` and `2026-99-99T99:99:99Z`. Calendar-specific validity, such as +February having fewer than 31 days, is not established by this local referee; +it requires a format-capable validator or a separate calendar check. No +chronology check is claimed. The regression checks reject every case above +and accept a UTC-shaped timestamp. +See [review-refusals.log](review-refusals.log). + +The referee does not check real file contents, ID resolution, time ordering, +independence, permission, computation or device execution. Those remain +manual review or future qualified .om checker obligations. + +## Repository checks, unchanged failures retained + +| Command | Exit | Observation | +| --- | --- | --- | +| `make test` | 2 | `src/omega_blackwell_engine.c:558` and `:393`: assembler operand mismatch for `ds`; aggregate suite did not complete | +| `make test-native-artifact` | 2 | Same unchanged engine compilation blocker; target did not complete | +| `make zero-cuda-gate` | 2 | Same unchanged engine compilation blocker; gate did not execute | +| `python3 tools/figures/make_figures.py --check` | 1 | Stale `stack.svg` | +| `bash tools/extract/audit-selftest.sh` | 0 | Scanner found all planted test secrets, including historical/deleted-file and commit-message cases | +| `git diff --check` | 0 | No whitespace errors | +| `crumb validate docs/independent-verification` | 0 | New crumb structurally valid | +| `crumb verify .` | 1 | Existing `docs/device-trace` and `tests/device-trace` crumbs are UNCOMPILED; no unrelated crumb repair included | + +The external crumb tool was built from architecture revision +`d0f0b95d344b4c6628c3d868346932fd247ce168`. Its compile operation walks the +repository even when passed a directory. Generated changes to the unrelated +existing trace crumbs were discarded; the new directory reports CURRENT. +The remaining root verification failure is preserved in [crumb-verify.log](crumb-verify.log). + +The same engine failure was measured on the original `b5e0da48` base before +this change. No barrier, target or gate was disabled. Raw final logs are +adjacent. `build/hello_gpu --sim` was not run because the build prerequisite +failed. Native host execution, all GPU arms, dynamic tracing, external +operator collection, second-machine and toolkit-absent experiments are +NOT_RUN. The schema is not a substitute for those tests. + +Only new public content was scanned with the repository secret/private rules +and manually reviewed. This is not a whole-history audit; #89 owns that work. diff --git a/evidence/independent-verification/host-contract-20261026/REVIEW.md b/evidence/independent-verification/host-contract-20261026/REVIEW.md new file mode 100644 index 00000000..26642149 --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/REVIEW.md @@ -0,0 +1,27 @@ +# Independent review + +A fresh read-only review agent inspected the protocol, schema, empty template, +agent handoff and exact existing vector/launch/checker seams. It did not share +the writer's conclusions, modify code, open a device or publish a result. + +Verdict: approve for a draft PR, documentation/data-contract scope only. + +Findings repaired and independently rechecked: + +- Freeze code/builders before the fresh challenge; finalize and hash dynamic + size/address-dependent launch bytes afterward, before each submission. +- Reject final newlines in hashes, commits, IDs and artifact paths. +- Enforce UTC lexical ranges and disclose that the available external referee + lacks optional calendar-format checking. Do not imply calendar/chronology + verification from schema acceptance. + +The reviewer reran both transient structural/refusal checks, independently +exercised deletion of every required control, template identity mutation, +nested unknown fields, artifact/command injection, incomplete independence +review, traversal, duplicate per-check IDs and malformed timestamps. Local +links and whitespace checks passed. The root full-suite architecture failure +was retained rather than bypassed. + +The reviewer required the artifact hash index before publication; it is now +included. This review is not hardware execution, harness readiness, calendar +or chronology proof, artifact authenticity, release acceptance or #91 closure. diff --git a/evidence/independent-verification/host-contract-20261026/artifacts.sha256 b/evidence/independent-verification/host-contract-20261026/artifacts.sha256 new file mode 100644 index 00000000..8a3d26b4 --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/artifacts.sha256 @@ -0,0 +1,16 @@ +3d5dd56abff3edf6aa2cf9cce6ec645ed489bee68a8328cff89e271716992884 docs/independent-verification/.crumb +a5d3a7a879d0e90d06ae4fd1ef651dddebfb93940afd846d28dfc0f8efbb2a08 docs/independent-verification/AGENT_PROMPT.md +0ccf819f7835e057bffaaacbd265b0666e681aacfb0e7bc7b12f4d78f6859aaf docs/independent-verification/PLAN.md +f1bfe7fe8f7fa90039f31500f8e5c0e64bdef4837c93a4b37a659fc34ebf44e9 docs/independent-verification/README.md +adbb1a3bf2f37e1e928744c611a66eb02df403356627295d088be3e80a64a8bb docs/independent-verification/manifest.NOT_RUN.json +1e2776b7906d3a9f785a82eb5a428737de7e465f2d4a09a5e9a1cd12108a5246 docs/independent-verification/manifest.schema.json +7531ba85b2ac10d0c87e69e180080e01eb3800fd8be5a39855f0bb01481bc9df docs/START_HERE.md +bcdf3f51836af970b20467cbe4703d5c4c9235dd7059367b20db0a6616f407ac evidence/independent-verification/host-contract-20261026/README.md +3e41f59d7e212330bf2d1bfac490c0dc43d5fdd9d624da162e2d4e369a89cbcd evidence/independent-verification/host-contract-20261026/REVIEW.md +18f02791c62253145dad091d07af8508afb1b348af8e423fdb1f9da5b62bf2e0 evidence/independent-verification/host-contract-20261026/crumb-verify.log +b19578b6196ccab27246417466ff41864202e951d42589c962b14b03a9fab3ad evidence/independent-verification/host-contract-20261026/figures.log +99f4bbeaf88b4000be8d7fcee3dd6fb172ec3c72da2d6f0e341d240acc7a48f9 evidence/independent-verification/host-contract-20261026/make-test.log +99f4bbeaf88b4000be8d7fcee3dd6fb172ec3c72da2d6f0e341d240acc7a48f9 evidence/independent-verification/host-contract-20261026/native-artifact.log +c2d10c12514623bd30db74953ed6eab06465c5fd09f7293f252c3c01c0aabca7 evidence/independent-verification/host-contract-20261026/review-refusals.log +150a023a3203ac237793863a67cf8e61ec53c85bd36cadd60c570a6bdcf01815 evidence/independent-verification/host-contract-20261026/schema-checks.log +99f4bbeaf88b4000be8d7fcee3dd6fb172ec3c72da2d6f0e341d240acc7a48f9 evidence/independent-verification/host-contract-20261026/zero-cuda-gate.log diff --git a/evidence/independent-verification/host-contract-20261026/crumb-verify.log b/evidence/independent-verification/host-contract-20261026/crumb-verify.log new file mode 100644 index 00000000..a6758dcf --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/crumb-verify.log @@ -0,0 +1,3 @@ +STALE docs/device-trace +STALE tests/device-trace +crumb verify: FAIL: 2 of 21 crumbs stale; run: crumb compile diff --git a/evidence/independent-verification/host-contract-20261026/figures.log b/evidence/independent-verification/host-contract-20261026/figures.log new file mode 100644 index 00000000..000f8ad4 --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/figures.log @@ -0,0 +1 @@ +stale figures (run python3 tools/figures/make_figures.py): stack.svg diff --git a/evidence/independent-verification/host-contract-20261026/make-test.log b/evidence/independent-verification/host-contract-20261026/make-test.log new file mode 100644 index 00000000..609dc08f --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/make-test.log @@ -0,0 +1,5 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_engine.c -o build/omega_blackwell_engine.o +src/omega_blackwell_engine.c: Assembler messages: +src/omega_blackwell_engine.c:558: Error: number of operands mismatch for `ds' +src/omega_blackwell_engine.c:393: Error: number of operands mismatch for `ds' +make: *** [Makefile:39: build/omega_blackwell_engine.o] Error 1 diff --git a/evidence/independent-verification/host-contract-20261026/native-artifact.log b/evidence/independent-verification/host-contract-20261026/native-artifact.log new file mode 100644 index 00000000..609dc08f --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/native-artifact.log @@ -0,0 +1,5 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_engine.c -o build/omega_blackwell_engine.o +src/omega_blackwell_engine.c: Assembler messages: +src/omega_blackwell_engine.c:558: Error: number of operands mismatch for `ds' +src/omega_blackwell_engine.c:393: Error: number of operands mismatch for `ds' +make: *** [Makefile:39: build/omega_blackwell_engine.o] Error 1 diff --git a/evidence/independent-verification/host-contract-20261026/review-refusals.log b/evidence/independent-verification/host-contract-20261026/review-refusals.log new file mode 100644 index 00000000..c49e2c7c --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/review-refusals.log @@ -0,0 +1 @@ +REVIEW_REFUSALS_PASS: newline hashes, commits, IDs, paths and non-UTC/malformed timestamps rejected; UTC shape accepted; calendar validity not checked. diff --git a/evidence/independent-verification/host-contract-20261026/schema-checks.log b/evidence/independent-verification/host-contract-20261026/schema-checks.log new file mode 100644 index 00000000..b840670a --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/schema-checks.log @@ -0,0 +1,2 @@ +SCHEMA_CHECKS_PASS: schema, empty template, synthetic report shape; refused missing control, template cannot claim collected, no physical PASS enum, unknown top-level field, template cannot claim operator, collected without evidence, missing check observation, malformed digest, absolute path, parent path, negative bytes, sanitized without raw commitment +No artifact existence, digest recomputation, independence or hardware execution checked. diff --git a/evidence/independent-verification/host-contract-20261026/zero-cuda-gate.log b/evidence/independent-verification/host-contract-20261026/zero-cuda-gate.log new file mode 100644 index 00000000..609dc08f --- /dev/null +++ b/evidence/independent-verification/host-contract-20261026/zero-cuda-gate.log @@ -0,0 +1,5 @@ +cc -std=gnu11 -Wall -Wextra -Werror -MMD -MP -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -c src/omega_blackwell_engine.c -o build/omega_blackwell_engine.o +src/omega_blackwell_engine.c: Assembler messages: +src/omega_blackwell_engine.c:558: Error: number of operands mismatch for `ds' +src/omega_blackwell_engine.c:393: Error: number of operands mismatch for `ds' +make: *** [Makefile:39: build/omega_blackwell_engine.o] Error 1 ```