Repository navigation
feat(canary): DXT/CXTP OTA correctness & regression canary (#10) - #12
Closed
saariuslystoned wants to merge 2 commits into
Closed
saariuslystoned wants to merge 2 commits into
saariuslystoned wants to merge 2 commits into
Conversation
- Tolerance predicate is NaN/Inf fail-closed in both engines; recorded metrics stay finite so receipts remain strict JSON. - Zero/negative/huge vector/dispatch counts, out-of-range seeds, unknown variants/faults/reuse modes, and unbounded slot pools are rejected (API ValueError, CLI exit 2) instead of passing vacuously or allocating unbounded memory. - --device-json strictly parsed (NaN/Infinity, truncated JSON, missing device keys are exit 2); --out rejects .. segments, symlinks, and non-regular files; write failures are exit 2, never tracebacks. - validate_receipt now fails closed on flipped verdicts, missing or duplicate variants, non-finite metrics, and bad config/device data. - Adds 39-test adversarial fuzz suite (tests/test_ota_canary_adversarial.py) and 54 C++ adversarial checks (197 total); updates PROOF.md evidence.
Contributor
Author
Adversarial Hardening & Public-Roads Audit Receipt (
|
Contributor
Author
|
Closing per sweep: 3.2K lines of CPU-only synthetic math with zero Vulkan calls ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #10 (host implementation, seeded vector suite, buffer-reuse fault-injection & per-variant quarantine policy, JSON receipt schema, tests, and stock-Android device-lane runbook).
Summary
canary/): deterministic public seeded test vectors with repeated buffer-slot reuse across finite dispatches (canary/include/ota_canary.hpp,canary/src/canary_host.cpp,canary/src/ota_canary.py), with bit-identical C++17 and Python reference outputs.canary/CANARY_RECEIPT_SCHEMA.json): records Android build fingerprint, Vulkan driver version & driver ID, GPU class (DXT/CXTP), variant ID, buffer-reuse mode, pass/fail verdict, max abs/rel error, failing vector index, and per-dispatch/total timing.buffer_reuse_allowedfor the affected variant, a kernel-wide mismatch disables only that variant, and sibling paths remain enabled and bit-exact.VK_KHR_pipeline_binaryorVK_KHR_pipeline_executable_properties..github/workflows/ci.yml(ota-canaryjob),canary/tests/ota_canary_tests.cpp,tests/test_ota_canary.py,canary/PROOF.md.Verification
c++ -std=c++17 -O2 -Wall -Wextra -Werror+ ASan/UBSan (ota_canary_tests.cpp): 143/143 checks PASS.python3 -m unittest discover -s tests -v: 27/27 OK.python3 -m unittest discover -s freepvr-twin/tests -v: 25/25 OK.python3 canary/src/ota_canary.py --self-test&--check-extensions: PASS../scripts/clean-room-audit.sh: PASS (0 violations across 72 files).canary/PROOF.mdfor host-verified vs. pending stock-Android OTA execution details.