From 9759e076345169a6794417d2e92aecd5f41d0f1c Mon Sep 17 00:00:00 2001 From: ScanCraft contributors Date: Thu, 5 Nov 2026 00:28:10 +0900 Subject: [PATCH 1/5] Document accepted-image duplication and USB payload comparisons --- PROJECT_STATUS.md | 25 ++++ docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md | 182 ++++++++++++++++++++++++ docs/reviews/REVIEW_RESPONSES.md | 28 ++++ 3 files changed, 235 insertions(+) create mode 100644 docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md diff --git a/PROJECT_STATUS.md b/PROJECT_STATUS.md index 52252c8..e5973e7 100644 --- a/PROJECT_STATUS.md +++ b/PROJECT_STATUS.md @@ -1,3 +1,28 @@ +# Accepted image integrity investigation — 2026-11-04 + +Accepted-buffer and recording CRC success do not establish intact image content. +Current box recordings contain visible displaced strips and exact duplicate full +12,276-byte blocks in 12 of 980 tested unmonitored line images. The diagnostic is +not exhaustive and is not a new production filter. Four subsequent monitored +captures did not reproduce that duplication: all 960 accepted images match USB +payloads byte for byte. Truncation and startup failures remain; all eight ongoing +rejected buffers already have matching short lengths in the monitored stream. +Cause of the earlier duplication is unresolved. Lowering FPS did not cure rejection. + +All ten native capture commands complete and replay; checked device state, saved +formats and media service restore. No application, driver or firmware change. +Private raw evidence is retained; only sanitized documentation is published. +The box is visible; rotation offered but not confirmed started. No new complete +point cloud, physical-scale or dimensional-accuracy qualification. + +See [accepted image evidence and reproduction](docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md). +Reviewer567 independently verified PR49 at d91fc4f:935 tests/0failed/1ignored, +formatting/strictClippy/release, recorded replay/native GUI and both exact-head CI +runs success. That does not qualify live scanning or these new hardware findings. +Next: audit calibration/reconstruction inputs for repeated payloads and locate a +reproduced duplication incident before claiming reliable rotating-object geometry. +Full mission remains incomplete; no merge or review gate bypass. + # Recorded recovery connected and reopened — 2026-11-04 The recorded marker/laser workflow now calls the session recovery core when diff --git a/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md new file mode 100644 index 0000000..503f701 --- /dev/null +++ b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md @@ -0,0 +1,182 @@ +# Accepted-image duplication and current transport evidence + +## Finding and scope + +**Confirmed:** genuine Raptor recordings contain accepted, full-length images +with repeated pixel blocks and visible horizontal discontinuities. Successful +V4L2 buffer validation and recording CRC replay therefore do not establish that +the image content is intact. This is a developer observation, not an independently +reviewed finding or a new production rejection rule. + +All captures use application revision +`d91fc4f696ee275e77145406ea55126475b515c6`, CLI SHA-256 +`8ec0f44f18a090a45c90539ec78af2e8220fb8fdfb351e1236259f5ef3d57706`, +and the installed baseline uvcvideo srcversion `9D1275CDD5E013864E4C564`. +No application, driver, firmware, affinity or permanent setup change was made. +The temporary bounded-copy candidate from the +[sustained combined trial](RAPTOR_SUSTAINED_COMBINED.md) was **not** loaded. +That earlier finite result remains evidence for its own configuration; it does +not qualify the current baseline or prove accepted pixel integrity retrospectively. + +The scene contains the owner's measured box on the marked turntable. A flood-mode +image confirms its placement. Rotation was offered, but not confirmed started; +these recordings are not represented as a rotating-object experiment. The stated +79.70 × 59.78 × 39.80 mm dimensions remain held out from fitting and thresholds. +No new point cloud or dimensional-accuracy result is claimed here. + +## Unmonitored observations + +Each arm saves the stated number of accepted images **per camera**, followed by +complete native recording replay. Line-mode captures request raw gain 15000. + +| Arm | FPS | Accepted per camera | Startup rejected L/R | Ongoing rejected L/R | +| --- | ---: | ---: | ---: | ---: | +| Initial line observation | 30 | 10 | 1 / 0 | 5 / 5 | +| Cadence 30-a | 30 | 120 | 98 / 1 | 0 / 0 | +| Cadence 15-a | 15 | 120 | 1 / 0 | 1 / 1 | +| Cadence 15-b | 15 | 120 | 0 / 0 | 1 / 1 | +| Cadence 30-b | 30 | 120 | 0 / 0 | 1 / 1 | +| Flood placement observation | 30 | 20 | 0 / 1 | 0 / 0 | + +The cadence order was declared 30/15/15/30. These short shared-host samples do not +establish a general rate advantage; both 15 FPS arms still reject ongoing buffers. +Reducing FPS is not a demonstrated remedy. Counts are V4L2 buffers, not proven +physical exposures. The initial failure burst and startup counts are retained, +not pooled away. No validation was relaxed. + +### Repeated blocks in accepted images + +The private analyzer independently checks the RAPTOR02 header/frame CRCs, declared +lengths and final frame count, then compares all 187 complete 12,276-byte blocks +starting at image offset zero. This size is the observed 12,288-byte maximum USB +payload minus its 12-byte UVC header; the final shorter block is outside this test. +SHA-256 groups candidates, and full byte equality verifies every duplicate group. + +| Recording | Accepted images with repeated full blocks | Duplicate groups | +| --- | ---: | ---: | +| Initial left, 10 images | 4 | 9 | +| Initial right, 10 images | 6 | 9 | +| Cadence 30-b left, 120 images | 1 | 1 | +| Cadence 30-b right, 120 images | 1 | 1 | +| Other three cadence arms, 720 images combined | 0 | 0 | + +Thus 12 of these 980 accepted images have the tested repeated blocks. This is +**not** an image-corruption prevalence estimate: partial or differently aligned +duplication is outside this particular comparison. For example, the initial +accepted frame at left index 3 has a large adjacent-row discontinuity but no +repeated full aligned block. Absence of this signature is not an integrity pass. + +In the two initial index-5 images, an additional exploratory search finds exact +128-byte sequences repeated elsewhere in the same image, consistently displaced +by ±24,552 bytes. No such search hit was in another accepted image of that short +recording. Native-exported initial left/right index 5 images visibly contain +discontinuous strips. Cadence 30-b left index 92 has identical full blocks 141/143; +right index 74 has blocks 6/8. The native left export visibly repeats a strip +across marker features. These are zero-based image/block indices. + +**Engineering inference:** repeated noisy scene content separated by two image +payloads supports duplication or misplacement of data, rather than ordinary dark +pixels. The unmonitored recordings cannot locate the fault in device production, +USB/HCD delivery, kernel assembly or application handling. No causal attribution +to the driver, exposure or projector is established. + +## Full USB monitor comparison + +Two later monitor sessions cover one 120-frame-per-camera capture and then three +consecutive captures of that size, all at 30 FPS, line mode, gain 15000. A privileged +tcpdump opens only the Raptor's current bus monitor, filters its device address, +then drops to the owner account. Snapshot length is 245,824 bytes and ring size +64 MiB. Explicit 45/60-second deadlines bound monitoring; both sessions stop by +SIGINT after acquisition and restoration, exit 0. No permissions are changed. + +| Monitored capture | Startup rejected L/R | Ongoing rejected L/R | +| --- | ---: | ---: | +| First session | 0 / 93 | 1 / 1 | +| Restart series 1 | 0 / 102 | 1 / 1 | +| Restart series 2 | 97 / 1 | 2 / 2 | +| Restart series 3 | 96 / 1 | 0 / 0 | + +The monitors retain 92,502 and 278,540 events, respectively, with zero reported +kernel drops. Submission/completion identities balance, with no outstanding or +unmatched identities at the end and no truncated successful bulk payloads. +Successful bulk completion counts are 45,746 and 138,585; 10 and 30 canceled +completions retain status -2. UVC COMMIT responses report 2,304,000-byte images +and 12,288-byte maximum transfers in all eight streams. + +For **all 960 accepted images**, independently removing the observed UVC headers +and concatenating same-PTS payloads produces bytes identical to the raw recording. +Each accepted group has one FID and one terminal EOF. The restart analyzer confines +each group to its recorded capture time window, avoiding cross-restart mixing. +No repeated full aligned blocks were found in those 960 images. The two first +session images ranked highest by exploratory adjacent-row difference were viewed +and do not show the earlier pronounced discontinuities. This sampling/ranking +does not visually qualify every image. + +The duplication was **not reproduced under these monitors**. Their timing cost, +host activity and non-randomized order prevent attributing its absence to any one +factor. Byte agreement for these later images cannot locate the earlier fault. +usbmon observes software/HCD events, not the physical wire or sensor exposure. + +### Truncation is already present in the monitored payload stream + +Every ongoing rejected image in these sessions has a same-PTS counterpart in the +other camera. Its native short length equals the sum of monitored image payloads: + +| Incident | Bytes per camera | Payload blocks | Largest completion gap L/R | +| --- | ---: | ---: | ---: | +| First session | 1,506,060 | 123 | 10,640 / 10,624 µs | +| Restart 1 | 1,506,060 | 123 | 12,466 / 12,447 µs | +| Restart 2, first | 2,181,240 | 178 | 2,899 / 2,880 µs | +| Restart 2, second | 2,181,240 | 178 | 2,975 / 2,957 µs | + +Each group has one EOF. Full images require 2,304,000 bytes. These observations +place the missing data upstream of the recording serializer in these incidents, +but do not distinguish device loss from host/controller effects. Startup also +retains nonstandard payload boundaries; this report does not repeat the separate +[shifted-header reconstruction](RAPTOR_USB_STARTUP_FRAMING.md) or assume that every +startup rejection has been individually explained. + +## Restoration, reproduction and limitations + +All five collection roots retain predeclared plans, bound executables/helpers, +commands, raw stdout/stderr, before/after state and native replay receipts. All ten +capture commands finish successfully, with errors reported inside their summaries. +All seven compared scanner readbacks, saved camera formats and the original active +WirePlumber state restore. The baseline module remains loaded. No monitor or native +capture remains running at this milestone. + +Private roots under the developer artifacts directory: + +- `box-current-view-20261104`: original 10-image streams and native exports. +- `current-image-cadence-20261104`: four rate arms and extraction receipts. +- `current-flood-view-20261104`: placement observation. +- `accepted-image-usb-20261104`: first full trace, `compare.py`, + `analyze_bands.py`, `duplicate_payloads.py`, comparisons and native duplicate exports. +- `accepted-image-restarts-20261104`: three-restart full trace and comparison. +- External `accepted-image-publication-20261104`: evidence verification, manifests, + publication checks and exact commit binding. + +Run the retained comparison scripts on their original private roots to reproduce +the payload results. `verify_evidence.py` in the external publication root verifies +all plan input hashes, native replay/restoration receipts, and all 30 retained +native image exports against their raw pixels and metadata CRCs. Private images, +USB traces, factory data and executables are not included in this documentation PR. +Adjacent-row differences and duplicate searches are exploratory diagnostics, not +validated optical quality gates or silent production filters. + +Relevant source boundaries are `Capture::next_frame_until` and the mapped-buffer +copy in `crates/scancraft-device/src/lib.rs` (copy before requeue), +`Reader::read_frame_inner` in `crates/scancraft-recording/src/lib.rs` (stored integrity), +and `uvc_video_decode_bulk` / `uvc_video_decode_data` / `uvc_video_complete` in the +privately bound local kernel source. The application source is unchanged, so the +existing independently verified 935-test/fmt/Clippy/release gate applies to its +revision; it is not a new test run or hardware-integrity qualification. + +**Next priority:** audit calibration/reconstruction source images for this signature +and capture a duplication incident with enough transport evidence to locate it. +Keep observed anomalies visible in diagnostics and out of claimed metrology; do +not repair, suppress or relabel them as passing measurements. A future integrity +criterion must account for naturally repeated/constant imagery and prove its false +positive/negative limits. Reliable acquisition, physical scale, complete box +coverage, repeated dimensional validation and native end-to-end scanning remain +unfinished. No new generic editor feature or architecture rewrite is justified. diff --git a/docs/reviews/REVIEW_RESPONSES.md b/docs/reviews/REVIEW_RESPONSES.md index 467ada5..b1cc7eb 100644 --- a/docs/reviews/REVIEW_RESPONSES.md +++ b/docs/reviews/REVIEW_RESPONSES.md @@ -5608,3 +5608,31 @@ receipt/checkpoint. Persistent reads check consistency,notICP/opticalidentity or physicaltruth. Realwrong-reference robustness, globalrecovery, livepipeline, calibratedunits/accuracy/boxcoverage/repeats and all prior qualification remainopen. Only independentreviewer may verify/close findings; its records remain untouched. + + +## DEV-ACCEPTED-IMAGE-INTEGRITY — hardware evidence, 2026-11-04 + +Developer observation, not a reviewer finding or independent closure. Accept +reviewer567's exact PR49 verification and its remaining acquisition/physical +qualification requirements. Application source stays at d91fc4f; new changes are +PROJECT_STATUS.md, RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md and this response only. +Publication commit and private manifest are retained in the recovery checkpoint. + +Original native accepted images visibly contain displaced strips; independent +raw parsing and exact byte comparison find repeated full12276-byte blocks in +12/980 unmonitored line images. This is a limited diagnostic, not a generalized +corruption rate or production rejection rule. A first monitored120pair capture +and three further120pair captures retain all errors: all960accepted images equal +USBpayload bytes; duplicate signature not reproduced there. All8ongoing-rejected +images have exactly matching monitored short lengths. Startup bursts persist. +No causal attribution, silent repair, threshold relaxation or driver change. + +All10native capture/replay receipts and5roots' planned input hashes/restoration +checks pass;30native PNG exports equal original raw pixels and CRCs. Tests at +unchangedsource remain935/0/1 independently verified567; no fresh Rust gate run +claimed for documentation. Private analysis/capture scripts, failures, recordings +and traces retained outside public Git. No actual rotating sequence or measured +whole-object scan established. Existing CodeRabbit quota lookup failure remains +unresolved; no substantive or paid review claimed. Independent reviewer records +untouched. Next audit existing calibration inputs and reproduce accepted-image +duplication with adequate transport evidence; physical metrology remains unqualified. From 0b43a986af6a6c6ed97a2923d3a49d87cfd07b5f Mon Sep 17 00:00:00 2001 From: ScanCraft contributors Date: Thu, 5 Nov 2026 00:47:43 +0900 Subject: [PATCH 2/5] Audit calibration and reconstruction inputs for partial pixel duplication --- PROJECT_STATUS.md | 24 +++++++ docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md | 88 +++++++++++++++++++++++++ docs/reviews/REVIEW_RESPONSES.md | 32 +++++++++ 3 files changed, 144 insertions(+) diff --git a/PROJECT_STATUS.md b/PROJECT_STATUS.md index e5973e7..474a485 100644 --- a/PROJECT_STATUS.md +++ b/PROJECT_STATUS.md @@ -1,3 +1,27 @@ +# Calibration input integrity audit — 2026-11-04 + +Independent reviewer570 opened SCAN-REV-034 High/Open after reproducing accepted +image duplication. The developer accepts it; no fix or closure is claimed. +A source-bound audit now covers690images in474recordings/snapshots:80camera training/ +reserved-pose images,80sheet-preparation images,80box-trial images and450recovery +images. Six contain partial repeated strips missed by the full aligned-block test. + +The two flagged camera-training recording frames were not the selected fit inputs. +No tested signature appears in selected calibration/sheet/box inputs. Four flagged +recovery images belong to pairs320/816; both already had no tracking pose and were +not integrated in either saved fusion result. Negative signature results do not +qualify image integrity, calibration accuracy or the remaining unfused candidates. + +All474native replays/690images pass; all6anomalous exports bind byte-exact tosource. +Originals and coefficients remain unchanged. Diagnostic controls demonstrate that +constant images can trigger full-block repetition, so no heuristic production +rejection rule was installed. See the [source audit](docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md#calibration-and-reconstruction-input-audit). +Next: locate and correct duplication with transport/buffer evidence, then verify +independently. A current-binary900-frame diagnostic rotation capture is prepared; +owner motion confirmation is pending. No recording or hardware operation this +milestone. Full measurable scan, physical scale and end-to-end qualification remain +incomplete. Existing935-test Rust gate applies to unchanged application source. + # Accepted image integrity investigation — 2026-11-04 Accepted-buffer and recording CRC success do not establish intact image content. diff --git a/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md index 503f701..8b86266 100644 --- a/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md +++ b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md @@ -180,3 +180,91 @@ criterion must account for naturally repeated/constant imagery and prove its fal positive/negative limits. Reliable acquisition, physical scale, complete box coverage, repeated dimensional validation and native end-to-end scanning remain unfinished. No new generic editor feature or architecture rewrite is justified. + +## Calibration and reconstruction input audit + +The follow-up starts at documentation revision +`9759e076345169a6794417d2e92aecd5f41d0f1c`, with unchanged application code. +Independent assignment 570 reproduced the preceding evidence and opened +**SCAN-REV-034, High/Open**. The developer accepts the finding. This input audit +addresses one requested investigation; it does not locate or correct the fault +and does not close the finding. + +The frozen box rig equals the retained corrected native stereo fit, including both +fixed camera models and the transform. Its intrinsic/distortion values also equal +the retained monocular fits. The audit follows the saved observation requests and +source hashes to the three training poses and reserved pose described in +[real-board calibration](REAL_BOARD_CALIBRATION.md). Separate source plans bind +the near/far, projector-off/on board recordings used for sheet preparation. Box +processing plans identify the original box pair and three repeatability trials. +The 225 recovery pairs use their already sealed raw snapshots, checked against +the earlier publication manifest. No source image, coefficient or threshold in +the scanning pipeline changes. + +Two private diagnostics run on all 690 images in those 474 files: + +1. The original exact full aligned 12,276-byte block comparison. +2. An additional partial-copy signature: byte-equal runs at displacement 24,552, + at least 128 bytes long and containing at least 16 distinct pixel values. + These settings were recorded before the input audit. They test the observed + displacement, not arbitrary image corruption. No anomaly is silently removed. + +| Source family | Images examined | Images with either signature | Selected inputs with signature | +| --- | ---: | ---: | ---: | +| Three camera-training recordings plus reserved pose, both cameras | 80 | 2 | 0 of 8 | +| Near/far board, projector off/on, both cameras | 80 | 0 | 0 of 8 | +| Original box pair plus three box trials, both cameras | 80 | 0 | 0 of 8 | +| 225 recorded recovery pairs | 450 | 4 | 4 of 450 | + +All six flagged images contain **partial** repeated strips; none contains a +repeated complete aligned block. This demonstrates a concrete blind spot in the +original full-block comparison. + +The two training-recording images are left index 8 and right index 7 of the +30 mm caliper scene. The actual selected training indices were 5/4. Their repeated +runs are 3,400 and 3,044 bytes. They therefore do not enter the selected camera-fit +observations. No signature is found in the selected six training images, the two +reserved images or the eight sheet-preparation images. This limited negative +result is **not** a comprehensive integrity or calibration-accuracy qualification. + +The four selected recovery images belong to original pairs **320 and 816**: + +| Pair / camera | First byte offset | Repeated offset | Equal run length | +| --- | ---: | ---: | ---: | +| 320 / first | 66,488 | 91,040 | 11,500 | +| 320 / second | 66,488 | 91,040 | 10,721 | +| 816 / first | 91,040 | 115,592 | 6,852 | +| 816 / second | 91,040 | 115,592 | 3,448 | + +The native first-camera export for 816 visibly contains a displaced horizontal +strip near the top of the image. Both pairs already have zero tracking points, +no pose and `integrated: false` in the saved baseline and retained-reference +recovery journals. They retain 1,409 and 364 local surface candidates respectively, +but contribute no integrated geometry to those saved fused results. This audit +did not cause their exclusion and does not qualify their unfused candidates. +It also does not prove that every other input is free of a different anomaly. + +Validation uses independent RAPTOR02 header/frame CRC and footer parsing, all 474 +native replay commands covering 690 images, and native extraction of the six +flagged images. All replays pass. Every exported raw snapshot and PNG is compared +byte for byte with its original source frame; all input hashes remain unchanged. +Diagnostic controls cover random data, a partial copy, a full-block copy, constant +data, both earlier damaged images and two monitored images without the signature. +The constant image deliberately triggers the full-block comparison while failing +the partial diagnostic's diversity requirement. This proves why block repetition +alone cannot serve as a universal corruption rejection gate. Neither diagnostic +has a general optical false-positive/negative bound. + +Private evidence `calibration-image-integrity-20261104` retains `plan.json`, +source hashes, `audit.py`, all 690 per-image rows, `check_diagnostic.py`, controls, +`fusion-impact.json`, native exports, `native_verify.py` and replay receipts. +The external `calibration-image-integrity-publication-20261104` holds manifests +and publication bindings. No raw imagery or target coordinates are published. +The unchanged Rust gate remains the independently verified 935-test revision; +the new executions are recorded-data diagnostics, not a new Rust build gate. + +**Remaining action:** reproduce duplication with sufficient device-to-application +boundary evidence, implement a justified correction and validate it independently. +Exploratory rotating-box acquisition can collect missing coverage while retaining +all originals and errors, but must not be presented as qualified metrology while +SCAN-REV-034 and the earlier scale/coverage/accuracy requirements remain open. diff --git a/docs/reviews/REVIEW_RESPONSES.md b/docs/reviews/REVIEW_RESPONSES.md index b1cc7eb..272659c 100644 --- a/docs/reviews/REVIEW_RESPONSES.md +++ b/docs/reviews/REVIEW_RESPONSES.md @@ -5636,3 +5636,35 @@ whole-object scan established. Existing CodeRabbit quota lookup failure remains unresolved; no substantive or paid review claimed. Independent reviewer records untouched. Next audit existing calibration inputs and reproduce accepted-image duplication with adequate transport evidence; physical metrology remains unqualified. + + +## SCAN-REV-034 — accepted; source-input audit completed, correction pending + +Accepted reviewer570's High/Open finding at9759e076345169a6794417d2e92aecd5f41d0f1c. +Frame flags, length and recording CRC checks do not establish image-content integrity. +No fault layer is yet identified, so no speculative production fix, silent repair, +threshold change or heuristic rejection rule was applied. Only the reviewer can +verify and close this finding. + +Read-only audit binds the frozen box rig to retained native camera/stereo fits and +selected source requests, near/far sheet inputs, box processing plans and sealed +225pair snapshots.690images in474files: six partial-copy signatures, none full-block. +Two unused training-recording images are left8/right7 of the30mmcaliper scene; +actual selected training is5/4. No tested signature inselected camera/sheet/box inputs. +Four recovery images belong to320/816; savedbaselineandrecoveryjournalsalready show +zero trackingpoints/no pose/notintegrated. Their1409/364local candidates remain +unqualified. No retroactive exclusion or reinterpretation as accepted metrology. + +All474native replays pass/690images; sixnativeexports match originals byte-exact. +Original input hashes unchanged. Private diagnostics coverpartial/fullcopy,random, +constant andfour realcontrolimages. Constant data triggersfull-block comparison, +which explicitly prevents treating it as universal corruptionproof. No broad optical +false-positive/negative bound. Nativeverification session88830exit0; audit25801exit0. +Application source unchanged; existing935/0/1fmt/Clippy/release evidence retained, +not a newgate. ChangedPROJECT_STATUS.md,RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md andthis +response; publicationcommit andsealedmanifest recorded inexternalreceipt/checkpoint. + +Next: synchronizedboundary evidence for a duplicated image, justified correction, +independent before/after andstartup/restart/rate/load qualification. Limitednegative +signature results do not close034or qualify earlierphysicalclaims. Reviewerfiles +untouched; no hardware/source/firmware changes, paidreview, merge or gatebypass. From 9a404c4f376fdd1647fcb3d3c97a21ec7b52edfb Mon Sep 17 00:00:00 2001 From: ScanCraft contributors Date: Thu, 5 Nov 2026 01:14:50 +0900 Subject: [PATCH 3/5] Localize partial image duplication in retained USB payloads --- PROJECT_STATUS.md | 32 ++++++- docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md | 121 ++++++++++++++++++++++-- docs/reviews/REVIEW_RESPONSES.md | 39 +++++++- 3 files changed, 180 insertions(+), 12 deletions(-) diff --git a/PROJECT_STATUS.md b/PROJECT_STATUS.md index 474a485..7fb0662 100644 --- a/PROJECT_STATUS.md +++ b/PROJECT_STATUS.md @@ -1,3 +1,30 @@ +# Accepted-image fault localized to USB payloads — 2026-11-04 + +Two affected images at the same camera PTS are present in an existing full USB +trace. Direct original-payload reconstruction equals both native recorded images; +repeated partial strips precede ScanCraft assembly/storage. The earlier broad +claim that monitored captures did not reproduce duplication is corrected: the +initial full aligned-block test missed this partial incident. All originals remain. + +Both endpoints briefly had zero outstanding requests just before the affected +payloads. This is post-hoc correlation, not a proven cause or remedy. Device, +controller/HCD/DMA and other upstream causes remain unresolved. No firmware, +kernel or application changes, fresh hardware capture or production filter. + +The compact payload-hash monitor passes offline fixtures and original-PCAP checks; +its prepared hardware plan was not executed. No live performance claim. Independent +reviewer573 verified the prior source-input audit; this new localization awaits +independent review. SCAN-REV-034 remains High/Open. See the +[boundary evidence](docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md#partial-duplication-localized-in-retained-usb-payloads). + +Next: controlled acquisition comparison with the same pixel-integrity checks, +while retaining all errors. Rotation can add object coverage but is not confirmed +started. Physical units, dimensional accuracy, full-object reconstruction and the +complete native scanning workflow remain unqualified. The measured box dimensions +remain held out from model fitting and thresholds. +Fresh publication gate: fmt, strict Clippy, 935 passed / 0 failed / 1 ignored, +and release build all pass; application source unchanged. + # Calibration input integrity audit — 2026-11-04 Independent reviewer570 opened SCAN-REV-034 High/Open after reproducing accepted @@ -28,8 +55,9 @@ Accepted-buffer and recording CRC success do not establish intact image content. Current box recordings contain visible displaced strips and exact duplicate full 12,276-byte blocks in 12 of 980 tested unmonitored line images. The diagnostic is not exhaustive and is not a new production filter. Four subsequent monitored -captures did not reproduce that duplication: all 960 accepted images match USB -payloads byte for byte. Truncation and startup failures remain; all eight ongoing +captures initially showed no full aligned-block duplication: all 960 accepted +images match USB payloads byte for byte. The subsequent partial-strip test found +two affected images in those retained traces; see the latest status above. Truncation and startup failures remain; all eight ongoing rejected buffers already have matching short lengths in the monitored stream. Cause of the earlier duplication is unresolved. Lowering FPS did not cure rejection. diff --git a/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md index 8b86266..99be67c 100644 --- a/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md +++ b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md @@ -5,8 +5,8 @@ **Confirmed:** genuine Raptor recordings contain accepted, full-length images with repeated pixel blocks and visible horizontal discontinuities. Successful V4L2 buffer validation and recording CRC replay therefore do not establish that -the image content is intact. This is a developer observation, not an independently -reviewed finding or a new production rejection rule. +the image content is intact. Independent reviewer assignment 570 confirmed this +finding as SCAN-REV-034, High/Open. No new production rejection rule is installed. All captures use application revision `d91fc4f696ee275e77145406ea55126475b515c6`, CLI SHA-256 @@ -112,10 +112,13 @@ session images ranked highest by exploratory adjacent-row difference were viewed and do not show the earlier pronounced discontinuities. This sampling/ranking does not visually qualify every image. -The duplication was **not reproduced under these monitors**. Their timing cost, -host activity and non-randomized order prevent attributing its absence to any one -factor. Byte agreement for these later images cannot locate the earlier fault. -usbmon observes software/HCD events, not the physical wire or sensor exposure. +The initial full aligned-block comparison did not detect duplication under these +monitors. **The later partial-strip test finds two affected images in the retained +restart trace**, as documented below. This corrects the earlier broader statement +that duplication was not reproduced. The original 0/960 full-block result remains +true; it was an incomplete diagnostic. usbmon observes software/HCD events, not +the physical wire or sensor exposure. Timing cost, host activity and the non-random +order still prevent generalizing the frequency of the observed incidents. ### Truncation is already present in the monitored payload stream @@ -172,8 +175,8 @@ privately bound local kernel source. The application source is unchanged, so the existing independently verified 935-test/fmt/Clippy/release gate applies to its revision; it is not a new test run or hardware-integrity qualification. -**Next priority:** audit calibration/reconstruction source images for this signature -and capture a duplication incident with enough transport evidence to locate it. +**Initial priorities, addressed by the follow-ups below:** audit calibration/ +reconstruction source images and identify a monitored duplication incident. Keep observed anomalies visible in diagnostics and out of claimed metrology; do not repair, suppress or relabel them as passing measurements. A future integrity criterion must account for naturally repeated/constant imagery and prove its false @@ -263,8 +266,108 @@ and publication bindings. No raw imagery or target coordinates are published. The unchanged Rust gate remains the independently verified 935-test revision; the new executions are recorded-data diagnostics, not a new Rust build gate. -**Remaining action:** reproduce duplication with sufficient device-to-application +**Remaining action after the source audit:** locate the fault with synchronized boundary evidence, implement a justified correction and validate it independently. +The following investigation advances localization without claiming a correction. Exploratory rotating-box acquisition can collect missing coverage while retaining all originals and errors, but must not be presented as qualified metrology while SCAN-REV-034 and the earlier scale/coverage/accuracy requirements remain open. + + +## Partial duplication localized in retained USB payloads + +**Confirmed developer evidence:** applying the same partial-strip diagnostic to +both retained full traces identifies two affected images in restart series 1. +All 240 images in the first trace and all 720 in the restart trace still match +native saved bytes. The affected pair shares raw PTS **2030305484**; left accepted +index 117 (sequence 118) and right index 115 (sequence 218) each contain 188 UVC +payloads, one FID, one terminal EOF and exactly 2,304,000 image bytes. + +| Camera | First image offset | Repeated offset | Equal bytes | Distinct values | +| --- | ---: | ---: | ---: | ---: | +| Left | 1,281,812 | 1,306,364 | 3,076 | 48 | +| Right | 1,281,812 | 1,306,364 | 917 | 47 | +| Right, second run | 1,282,836 | 1,307,388 | 132 | 17 | + +Direct parsing of the **original** 278,540-event PCAP, rather than just derived +hashes, reconstructs both complete images byte for byte. Native raw exports and +PNG pixels also match. Both native images visibly contain a narrow displaced +horizontal strip. The compared data belong to distinct submitted/completed USB +requests, at payload indices 104 and 106. The first runs start at transfer-byte +5120, including the 12-byte UVC header; the second right run starts at 6144. +Completion separations between those two payloads are 157 µs left and 116 µs right. +This is not duplicate logging of one completion identity. + +**Boundary interpretation:** this incident is already present in the USB monitor +payloads, upstream of ScanCraft's mapped-buffer copy and recording serializer. +The inspected local Linux 7.2.11 `drivers/usb/core/hcd.c`, function +`__usb_hcd_giveback_urb`, calls `usbmon_urb_complete` after DMA unmapping and before +`urb->complete`. `drivers/usb/mon/mon_bin.c`, `mon_bin_event`/`mon_bin_get_data`, +copies transfer-buffer bytes into the monitor ring during that callback. Exact +local files are privately hash-bound; their inspection is **not** an attestation +that the resident kernel core binary was built from those precise sources. + +The evidence does not distinguish scanner/firmware production from physical link, +controller, HCD or DMA behavior. It does not prove the cause of every earlier +unmonitored discontinuity. No firmware extraction, write, kernel change, image +repair or application fix was performed in this follow-up. + +### Request queue context: a hypothesis, not a demonstrated remedy + +A post-hoc count of submitted requests minus completions reaches zero on both +camera endpoints just before the affected payloads: 342 µs left and 326 µs right, +after payload 103 and before the refill preceding 104. Both affected images overlap +these intervals. Of the other 718 accepted restart images, 10 also overlap a +zero-outstanding interval, with a maximum overlap of 91 µs. Their largest observed +completion gap is 917 µs, versus 670 µs across the two affected images. + +These are software request counts, not a physical controller-ring measurement. +The comparison is neither randomized nor an exhaustive image-integrity test; +a long gap alone does not predict corruption. It motivates a controlled comparison +of acquisition scheduling with identical instrumentation and pixel checks. The +previous inline-copy candidate's successful rejection counters do not retrospectively +qualify its accepted image content. No candidate is loaded or declared a fix here. + +### Diagnostic tooling and reproducibility + +Private evidence `payload-hash-monitor-20261104` contains: + +- `verify_duplicate_usb.py` and `direct-duplicate-verification.json`: original + PCAP parsing, every affected frame's 188 transfer rows, raw/native comparisons. +- `queue_context.py` and `queue-context.json`: all 720 accepted-frame queue + associations. The original helper syntax error and failed result are retained. +- `compare.py`, `check_known_trace.py` and both `known-*-comparison.json` files: + full-image comparisons through a compact payload-hash representation. +- `external-input-bindings.json`: original traces, recordings, source files and + executables; the external publication manifest binds the complete evidence. + +An original private C monitor prototype retains a full captured-payload SHA-256, +64-byte usbmon header and 32-byte prefix in each 128-byte event. The bounded +262,144-byte read buffer, selected bus/device, deadline, exclusive output creation +and privilege drop are retained. It uses local OpenSSL SHA-256 and introduces no +application dependency. Strict compiler warnings, four payload-size fixtures, +deadline/no-overwrite checks and exact conversion of both original PCAPs pass. +All 92,502 first-trace records independently reconcile to the original PCAP; a +mutation beyond the retained prefix is detected at the correct transfer. + +**Offline validation only:** no live hash-monitor performance, drop rate or +observer effect is qualified. A prepared three-arm 300-frame capture plan was +not executed because the existing full trace supplied the incident. The current +follow-up performs no hardware acquisition. Private captures and binaries remain +outside Git; only methods and results are published. + +SCAN-REV-034 remains open pending independent verification, a justified correction +and startup/restart/rate/load qualification. The earlier source-input audit was +independently reproduced in assignment 573. No complete measured box, physical +unit qualification or production image-integrity gate is established here. + + +Publication validation reran `tools/check.sh` on the unchanged application code: +formatting, strict all-target Clippy, 935 tests passed / 0 failed / 1 ignored, and +optimized workspace build all passed. This is software regression evidence, not +new hardware qualification. The private follow-up contains 54 files / 66,914,272 +bytes; external evidence manifest SHA-256 is +`0366e76d890489debc1ef6c24caf3881a774278a4623c8a5cd47758c84bd0dbe`. +All 19 external input bindings match current bytes; the 16 original capture inputs +also match their previously sealed manifest. The other three bindings identify +the inspected local kernel source and Makefile. diff --git a/docs/reviews/REVIEW_RESPONSES.md b/docs/reviews/REVIEW_RESPONSES.md index 272659c..4dd0609 100644 --- a/docs/reviews/REVIEW_RESPONSES.md +++ b/docs/reviews/REVIEW_RESPONSES.md @@ -5623,7 +5623,8 @@ raw parsing and exact byte comparison find repeated full12276-byte blocks in 12/980 unmonitored line images. This is a limited diagnostic, not a generalized corruption rate or production rejection rule. A first monitored120pair capture and three further120pair captures retain all errors: all960accepted images equal -USBpayload bytes; duplicate signature not reproduced there. All8ongoing-rejected +USBpayload bytes; the full aligned-block signature was not reproduced there. +The later partial-strip follow-up below corrects the broader absence claim. All8ongoing-rejected images have exactly matching monitored short lengths. Startup bursts persist. No causal attribution, silent repair, threshold relaxation or driver change. @@ -5668,3 +5669,39 @@ Next: synchronizedboundary evidence for a duplicated image, justified correction independent before/after andstartup/restart/rate/load qualification. Limitednegative signature results do not close034or qualify earlierphysicalclaims. Reviewerfiles untouched; no hardware/source/firmware changes, paidreview, merge or gatebypass. + + +## SCAN-REV-034 — accepted; original USB boundary evidence, correction pending + +Accept assignment573's verification and outstanding requirements. New developer +analysis identifies two partial-strip images in the already retained restart PCAP, +left117/right115 at common PTS2030305484. Direct original USB bytes equal both +complete native images; distinct request identities contain the repeated runs. +This localizes this incident upstream of ScanCraft image assembly/storage, without +attributing device versus controller/HCD/DMA cause or all older anomalies. + +Both endpoints briefly have zero outstanding requests near the affected payloads; +post-hoc comparison of all720images supports investigation, not causality or a +rejection threshold. No production fix, silent repair or image exclusion. Corrected +the preceding broad monitored non-reproduction statement to its full-block scope. +Changed only PROJECT_STATUS.md, RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md and this response. +Exact publication commit and private evidence manifest are in the checkpoint and +external publication receipt; prior audit commit0b43a986 remains unchanged. + +Direct verification3993exit0; original-PCAP/hash comparison99793exit0 and restart +comparison31292exit0; corrected queue analysisexit0, initial syntax failure retained. +The private monitor prototype passes strict C compilation, format/deadline/no- +overwrite controls and a beyond-prefix corruption control. No live hash-monitor +capture or performance qualification. Application code unchanged fromd91fc4f; +existing independent935/0/1Rust gate is not new hardware evidence. No substantive +CodeRabbit review obtained; previous quota lookup failure remains unresolved. + +Only the independent reviewer may verify/close034. It remains open pending cause, +correction, independent before/after and broader acquisition qualification. The +reviewer's records remain untouched. All original images/traces stay private. + +Fresh publication gate (session32396exit0): tools/check.sh passes fmt, strict +all-target Clippy,935tests/0failed/1ignored and release build. No application change +or new hardware qualification. Sealed54files/66,914,272bytes; manifest SHA256 +0366e76d890489debc1ef6c24caf3881a774278a4623c8a5cd47758c84bd0dbe. All19external +bindings verify;16capture inputs match the previous sealed original manifest. From 00284ea7c1b33f7d2285b11cdb8ce802ae806372 Mon Sep 17 00:00:00 2001 From: ScanCraft contributors Date: Thu, 5 Nov 2026 01:38:24 +0900 Subject: [PATCH 4/5] Audit accepted pixels in retained inline-copy acquisition trials --- PROJECT_STATUS.md | 24 +++++ docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md | 9 ++ docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md | 138 ++++++++++++++++++++++++ docs/RAPTOR_SUSTAINED_COMBINED.md | 4 + docs/reviews/REVIEW_RESPONSES.md | 42 ++++++++ 5 files changed, 217 insertions(+) create mode 100644 docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md diff --git a/PROJECT_STATUS.md b/PROJECT_STATUS.md index 7fb0662..77bdb95 100644 --- a/PROJECT_STATUS.md +++ b/PROJECT_STATUS.md @@ -1,3 +1,27 @@ +# Existing driver candidate still has pixel duplication — 2026-11-04 + +A read-only audit of 43,800 accepted images in ten original recordings finds 28 +images with one of the two tested signatures. The earlier 610-second zero-rejection +run contains 19 full-block repetitions: eight left, eleven right. Their varying +pixel contents differ across incidents and are absent at the same offsets in +38 neighboring frames. No image is repaired or excluded. + +For sustained pair 173, all 188 saved USB image prefixes per camera match native +pixels; blocks 6/8 repeat with distinct request identities. Four requests remain +outstanding after every completion, with no empty software queue overlapping either +frame. This limits the earlier starvation hypothesis. Only 20 image bytes per USB +payload were retained, so this does not prove full-body equality. Original CRC, +header and rejection results remain valid within their scope, not as image-integrity +qualification or a complete fix. + +All ten original SHA hashes match; the full audit and ten native exports pass. +Comparison controls and 2,400 rows match the original checker exactly. See the +[candidate audit](docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md). Independent reviewer 575 +verified the prior baseline USB localization; this new result awaits review. +SCAN-REV-034 stays High/Open. No new hardware capture, driver, firmware or application +change. Next: investigate the enabled-path USB payload boundary; do not promote the +candidate based only on rejection counters. Rotation confirmation remains pending. + # Accepted-image fault localized to USB payloads — 2026-11-04 Two affected images at the same camera PTS are present in an existing full USB diff --git a/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md index 99be67c..4bf0796 100644 --- a/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md +++ b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md @@ -371,3 +371,12 @@ bytes; external evidence manifest SHA-256 is All 19 external input bindings match current bytes; the 16 original capture inputs also match their previously sealed manifest. The other three bindings identify the inspected local kernel source and Makefile. + + +## Follow-up: existing candidate recordings + +The [candidate pixel audit](RAPTOR_CANDIDATE_PIXEL_AUDIT.md) checks 43,800 retained +images. It finds 19 full-block repetitions in the earlier zero-rejection sustained +trial. One paired incident has repeated observed USB prefixes with four requests +still outstanding after every completion. The existing candidate remains +unqualified; an empty software queue is not established as the universal cause. diff --git a/docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md b/docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md new file mode 100644 index 0000000..f319de7 --- /dev/null +++ b/docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md @@ -0,0 +1,138 @@ +# Pixel audit of retained inline-copy trials + +**Confirmed developer result:** the previously reported 610-second combined trial +contains 19 accepted images with repeated full pixel blocks, despite zero startup +or ongoing buffer rejections. The original rejection counters, CRC results and +header checks remain correct within their scope. They do not establish intact +image content. The temporary candidate remains experimental and default-off. + +This read-only follow-up starts at documentation revision +`9a404c4f376fdd1647fcb3d3c97a21ec7b52edfb`. Application code remains +`d91fc4f696ee275e77145406ea55126475b515c6`. Independent assignment 575 verified the +preceding [USB boundary evidence](RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md); this new audit +requires separate review. SCAN-REV-034 remains High/Open; no correction is claimed. + +## Scope and results + +The predeclared audit examines every accepted image in ten original recordings: +43,800 frames / 100,917,599,010 stored bytes. Whole-file SHA-256 hashes match their +previous manifests. Independent streaming parsing checks header/frame CRCs, +lengths, error flags, sequence/host ordering, metadata PTS and final counts. +No source recording, coefficient, threshold or original assessment is changed. + +The two diagnostics are unchanged from the preceding source audit: compare all +187 complete aligned 12,276-byte blocks, and find equal runs displaced by 24,552 +bytes with length at least 128 and at least 16 distinct values. Neither is an +exhaustive optical integrity test or production rejection rule. + +| Historical arm | Images | Full-block signature | Partial signature | Either signature | +| --- | ---: | ---: | ---: | ---: | +| A1, inline copy disabled | 1,200 | 3 | 6 | 8 | +| B1, inline copy enabled | 1,200 | 0 | 0 | 0 | +| A2, inline copy disabled | 1,200 | 1 | 0 | 1 | +| Enabled plus logger paused, one minute | 3,600 | 0 | 0 | 0 | +| Enabled plus logger paused, 610 seconds | 36,600 | 19 | 0 | 19 | +| Total | 43,800 | 23 | 6 | 28 | + +One A1 image has both signatures. The historical methods and confounders remain +in [off/on/off trials](RAPTOR_INLINE_COPY_TRIAL.md), +[combined acquisition](RAPTOR_COMBINED_ACQUISITION.md) and +[sustained acquisition](RAPTOR_SUSTAINED_COMBINED.md). These are flood images of the +calibration board, not new rotating-box recordings. Scene, tracing, host conditions +and recorded IRQ-affinity differences prevent treating these counts as an isolated +performance comparison. In particular, B1 still has its previously reported nine +ongoing rejected buffers per camera. Zero tested signatures does not erase them. + +## The sustained repetitions are not constant fills + +The 19 sustained images are eight left-camera and eleven right-camera images. +Eight timestamps are affected in both cameras; three additional right-camera +images have the signature. Each repeated block contains 9 or 10 distinct values, +so the partial diagnostic's diversity requirement deliberately does not flag it. +The original full-block comparison does flag the exact 12,276-byte repetition. +This is another reason to retain both tests and avoid interpreting a negative +partial-signature result as an integrity pass. + +All 19 repeated block contents have different SHA-256 values from one another. +For each affected image, the immediately preceding and following frames have +unequal blocks at the same two positions, and both differ from the incident block: +38 neighboring-frame comparisons. The values vary within each block; these are +not the constant-image control's repetitions. This contextual evidence supports +data duplication, rather than a naturally uniform area. It does not establish a +general false-positive/negative bound or a total corrupted-frame prevalence. + +Native extraction of sustained left index 173 validates all 18,300 source frames +and the footer, then produces a raw snapshot and PNG exactly equal to the original +selected pixels. The image shows a small dark horizontal strip near the top. +Separately, all nine flagged A1/A2 images have byte-exact native exports. A1 left +index 111 visibly has a displaced strip crossing target circles. No image repair, +new exclusion or reinterpretation as valid metrology is applied. + +## Observed USB prefixes with requests still outstanding + +Sustained pair index 173, raw PTS **1683900145**, has repeated native blocks 6/8 +in both cameras. Its original trace retains only 32 payload-prefix bytes: +12 UVC header bytes and 20 image bytes per transfer. The complete trace hash matches +its prior manifest. A targeted parse through this pair checks 130,915 events; +it is not a new complete-event audit of the 13,761,774-event capture. + +Both groups have 188 payloads, 2,304,000 declared image bytes, one FID and one +terminal EOF. All 188 observed image prefixes per camera equal the corresponding +native pixels. Payloads 6 and 8 have distinct request identities but identical +20-byte image prefixes. Their completion separation is 132 µs left / 148 µs right. +The unseen remainder of each USB body cannot be reconstructed from this trace. + +**Confirmed software accounting:** four requests remain outstanding after every +completion in the affected frame, on both endpoints. No zero-outstanding interval +overlaps either frame. Maximum within-frame completion gaps are 170 / 178 µs. +Software request counts are not physical controller-ring occupancy. Nevertheless, +this incident does not have the empty-request-queue pattern of the preceding +baseline partial-strip incident. An empty software queue is therefore not an +established explanation for every repeated strip. Device, link, controller, +HCD/DMA and other timing behavior remain unresolved. + +The result changes the next investigation: do not promote the existing candidate +or repeat the same experiment expecting complete pixel integrity. Compare full +payload evidence for the enabled path and investigate fault boundaries; retain +both startup/truncation and image-content failures. Neither an arbitrary timing +threshold nor heuristic image repair is justified by these observations. + +## Reproduction and validation limits + +Private evidence `candidate-pixel-audit-20261104` contains the frozen input plan, +original diagnostic source, controls, all per-frame outcomes, native exports, +neighbor comparisons and targeted original-prefix analysis. The external +`candidate-pixel-publication-20261104/evidence-manifest.json` seals 89 files / +59,261,429 bytes; manifest SHA-256: +`3e6dbbd286ddad584d1504a2f850c87c91ebff97c78c9e0c1b5e0a9d86f63616`. +Original recordings remain in their original sealed roots, outside public Git. + +`run_fast.py` preserves frame order with four workers and at most eight outstanding +frame computations. A vectorized length prefilter skips Python iteration over +runs shorter than 128; equality, diversity, thresholds and reported results are +unchanged. Twelve real/synthetic comparison cases pass, and all 2,400 retained +rows from the original slower execution equal the faster output exactly. The +slower process was deliberately stopped with SIGTERM; its exit 143 and partial +outputs remain. This is private analysis tooling, not a ScanCraft optimization. + +The completed audit exits 0. Ten original whole-file hashes match. All 43,800 +row counts/signatures reconcile. A private output field was mislabeled +`host_timestamp_ns`; the recording contract stores microseconds. The corrected +`frames-corrected.ndjson` uses `host_timestamp_us` with identical values and +signature results, and retains the original mislabeled output. The initial native +export helper stopped on an assertion because it omitted its intended completed- +arm filter; corrected filtering succeeds, with the initial script/log retained. + +`native_check.py` verifies the nine A1/A2 exports. `characterize.py` verifies all +28 flagged images against original frame CRCs, neighboring blocks and the extra +sustained native export. `check_sustained_prefix.py` checks the retained original +trace for the specific pair. These checks do not qualify all possible image +anomalies, live hash-monitor operation, physical exposure synchronization, scale, +reconstruction accuracy, a complete object or end-to-end scanning. + +Publication gate: `tools/check.sh` passes formatting, strict all-target Clippy, +935 tests / zero failures / one ignored, and optimized workspace build. Application +code is unchanged; this is software regression evidence, not fresh hardware proof. +CodeRabbit quota lookup in the repository returns `lookup_failed`; no substantive +or paid review was performed. An initial invocation outside the repository also +failed and is retained. Public source/diff privacy checks precede publication. diff --git a/docs/RAPTOR_SUSTAINED_COMBINED.md b/docs/RAPTOR_SUSTAINED_COMBINED.md index 69004eb..b0f27fc 100644 --- a/docs/RAPTOR_SUSTAINED_COMBINED.md +++ b/docs/RAPTOR_SUSTAINED_COMBINED.md @@ -1,5 +1,9 @@ # Sustained combined acquisition: 610-second finite pass +**Later pixel-content audit:** 19 of the 36,600 accepted images contain repeated +full blocks. The zero-rejection and header/CRC results below remain scoped facts, +not image-integrity qualification. See the [retained candidate pixel audit](RAPTOR_CANDIDATE_PIXEL_AUDIT.md). + **Confirmed:** one temporary bounded-copy + paused-logger trial captures and saves 18,300 frames per camera over more than 610 seconds, with **zero startup or ongoing rejected buffers and zero sequence gaps**. All 36,600 frames pass native replay and diff --git a/docs/reviews/REVIEW_RESPONSES.md b/docs/reviews/REVIEW_RESPONSES.md index 4dd0609..c24d8a5 100644 --- a/docs/reviews/REVIEW_RESPONSES.md +++ b/docs/reviews/REVIEW_RESPONSES.md @@ -5705,3 +5705,45 @@ all-target Clippy,935tests/0failed/1ignored and release build. No application ch or new hardware qualification. Sealed54files/66,914,272bytes; manifest SHA256 0366e76d890489debc1ef6c24caf3881a774278a4623c8a5cd47758c84bd0dbe. All19external bindings verify;16capture inputs match the previous sealed original manifest. + + +## SCAN-REV-034 — accepted; retained candidate pixel audit + +Accept reviewer 575's boundary verification and outstanding causal/qualification +requirements. New read-only audit covers all 43,800 images in ten recordings from +existing inline-copy off/on/off, one-minute combined and 610-second combined trials. +Original whole-file hashes match their sealed manifests. Twenty-eight images have +either unchanged signature; 19 occur in the sustained run despite zero rejected +buffers. These 19 nonconstant blocks have 9–10 values and unique hashes; 38 neighboring +frames do not repeat at those positions. The partial test's diversity requirement +misses these full-block copies. Neither negative test proves optical integrity. + +Sustained pair 173, raw PTS 1683900145: original USB prefixes match native pixels +for 188 payloads per camera; repeated 6/8 prefixes have distinct request identities. +Every completion leaves four requests outstanding, with no empty-queue overlap. +Maximum within-frame gaps are 170/178 µs. This does not support an empty software +queue as a universal cause. The prefix-only trace cannot prove full USB body equality; +no device/controller/HCD/DMA attribution or correction is claimed. + +Changed the new candidate audit, project status, sustained-report cross-reference, +accepted-image-report cross-reference and this response only. No application/kernel +change, new capture, heuristic filter or repair. Exact publication commit is recorded +in the checkpoint. Private 89 files / 59,261,429 bytes have manifest SHA-256 +3e6dbbd286ddad584d1504a2f850c87c91ebff97c78c9e0c1b5e0a9d86f63616. + +Audit 77588 exits 0: all ten original hashes and 43,800 rows checked. Nine A1/A2 native +exports (21053) and sustained-left-173 export (70850) exit 0 and match original bytes. +Characterization 43288 and prefix analysis 54123 exit 0. The original slow run was +deliberately stopped with exit 143; all 2,400 saved rows match the bounded four-worker +checker. Twelve comparison cases pass. A private timestamp field label was corrected +to microseconds without changing values or outcomes; original outputs remain. An +initial missing completed-arm filter stopped the native helper before extraction; +corrected explicit filtering passes, with the initial failure preserved. Only the +independent reviewer may verify/close 034. Reviewer records remain untouched. + +Publication gate: `tools/check.sh` passes formatting, strict all-target Clippy, +935 tests / zero failures / one ignored, and optimized workspace build. Application +code is unchanged; this is software regression evidence, not fresh hardware proof. +CodeRabbit quota lookup in the repository returns `lookup_failed`; no substantive +or paid review was performed. An initial invocation outside the repository also +failed and is retained. Public source/diff privacy checks precede publication. From 9de19880506b690dfe4243281e373d1945fb70ec Mon Sep 17 00:00:00 2001 From: ScanCraft contributors Date: Thu, 5 Nov 2026 02:19:11 +0900 Subject: [PATCH 5/5] Document live payload hash validation and candidate corruption --- PROJECT_STATUS.md | 22 +++ docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md | 4 + docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md | 5 + docs/RAPTOR_LIVE_PAYLOAD_HASH_VALIDATION.md | 154 ++++++++++++++++++++ docs/reviews/REVIEW_RESPONSES.md | 46 ++++++ 5 files changed, 231 insertions(+) create mode 100644 docs/RAPTOR_LIVE_PAYLOAD_HASH_VALIDATION.md diff --git a/PROJECT_STATUS.md b/PROJECT_STATUS.md index 77bdb95..d1f0afc 100644 --- a/PROJECT_STATUS.md +++ b/PROJECT_STATUS.md @@ -1,3 +1,25 @@ +# Full-payload evidence confirms candidate pixel failure — 2026-11-04 + +A fresh temporary-candidate capture saves 1,800 images per camera with no ongoing +rejected buffers, yet seven accepted images contain partial duplicated strips. +All 3,600 images match full-transfer USB monitor hashes. Four software requests +remain outstanding throughout each affected frame; an empty queue does not explain +these incidents. Scanner/link/controller/HCD/DMA attribution and a remedy remain +unresolved. The original driver, scanner settings and services are restored. + +Two preceding live pilots validate the compact monitor against full PCAP. The first +PCAP drops 1,009 events and correctly fails global admission; its affected pair is +fully retained. The second matches all 92,202 events apart from per-reader timestamps, +and all 240 native images equal literal PCAP bytes. All failures remain documented. +See [method, results and evidence](docs/RAPTOR_LIVE_PAYLOAD_HASH_VALIDATION.md). + +Independent reviewer580 verified the historical audit below; these new observations +await independent review. SCAN-REV-034 remains High/Open. Application source is +unchanged from d91fc4f; no fix, firmware change, physical accuracy or complete scan +is claimed. Rotation confirmation is pending. Next: discriminate upstream fault +causes while preserving errors, then validate usable moving-object observations. +The measured box dimensions remain held out from fitting and thresholds. + # Existing driver candidate still has pixel duplication — 2026-11-04 A read-only audit of 43,800 accepted images in ten original recordings finds 28 diff --git a/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md index 4bf0796..94937c2 100644 --- a/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md +++ b/docs/RAPTOR_ACCEPTED_IMAGE_INTEGRITY.md @@ -1,5 +1,9 @@ # Accepted-image duplication and current transport evidence +Later experiment: [live observer validation and enabled-candidate capture](RAPTOR_LIVE_PAYLOAD_HASH_VALIDATION.md) +extends the baseline evidence below to the existing temporary candidate. It retains +all pilot failures and distinguishes original PCAP bytes from full-payload hashes. + ## Finding and scope **Confirmed:** genuine Raptor recordings contain accepted, full-length images diff --git a/docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md b/docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md index f319de7..6eec9ef 100644 --- a/docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md +++ b/docs/RAPTOR_CANDIDATE_PIXEL_AUDIT.md @@ -1,5 +1,10 @@ # Pixel audit of retained inline-copy trials +Follow-up: [fresh enabled-path full-payload evidence](RAPTOR_LIVE_PAYLOAD_HASH_VALIDATION.md) +finds seven partial-strip images in 3,600 accepted images, with full-transfer hash +agreement and four requests outstanding throughout each affected frame. This report +retains the separate historical flood-board results below. + **Confirmed developer result:** the previously reported 610-second combined trial contains 19 accepted images with repeated full pixel blocks, despite zero startup or ongoing buffer rejections. The original rejection counters, CRC results and diff --git a/docs/RAPTOR_LIVE_PAYLOAD_HASH_VALIDATION.md b/docs/RAPTOR_LIVE_PAYLOAD_HASH_VALIDATION.md new file mode 100644 index 0000000..b0e6227 --- /dev/null +++ b/docs/RAPTOR_LIVE_PAYLOAD_HASH_VALIDATION.md @@ -0,0 +1,154 @@ +# Live payload-hash validation and enabled-candidate result + +**Confirmed developer result:** a fresh capture using the existing inline-copy +candidate contains seven accepted images with partial duplicated strips. All 3,600 +accepted images agree with the full-transfer SHA-256 values observed by usbmon. +Each affected frame has four software requests still outstanding after every +completion. Zero ongoing rejected buffers therefore remains insufficient evidence +of intact pixels. No correction or qualification is claimed. + +This continues [the historical candidate audit](RAPTOR_CANDIDATE_PIXEL_AUDIT.md), +independently verified in reviewer assignment 580. SCAN-REV-034 remains High/Open. +Application source is unchanged from `d91fc4f696ee275e77145406ea55126475b515c6`; +capture documentation HEAD is `00284ea7c1b33f7d2285b11cdb8ce802ae806372`. +The release CLI SHA-256 is +`8ec0f44f18a090a45c90539ec78af2e8220fb8fdfb351e1236259f5ef3d57706`. + +## Validate the observer before interpreting its results + +Two baseline-driver pilot captures each retain 120 images per camera at 30 FPS, +line mode and raw gain 15000. Simultaneous observers retain complete USB bodies +in PCAP and a compact record containing the usbmon header, 32-byte prefix and +SHA-256 of the entire captured transfer. Both use 64 MiB rings and bounded +deadlines. They open the bus monitor with privilege, then drop to the owner account. +No device permissions are changed. + +| Pilot | Startup rejected L/R | Ongoing rejected L/R | Hash events | PCAP events | PCAP drops | +| --- | ---: | ---: | ---: | ---: | ---: | +| Packet-flushed PCAP | 1 / 0 | 0 / 0 | 91,518 | 90,509 | 1,009 | +| Buffered PCAP | 98 / 0 | 1 / 1 | 92,202 | 92,202 | 0 | + +The first runner correctly fails its zero-drop assertion after native capture and +restoration. That global PCAP is not admitted as a complete trace. Its retained +data nevertheless contains all 188 payloads for each of two affected images at PTS +2857993771, left index 89 and right index 90. Literal original USB image bytes equal +both recorded images. Repeated strips displaced by 24,552 bytes span 15,940 left / +15,296 right bytes, with 112 / 93 distinct values. The right image has an additional +336-byte run. The complete hash observer independently matches all 240 recordings. + +The second pilot removes only tcpdump's `-U` packet-flush option. This is a finite +observer validation, not a controlled performance comparison. Every one of its +92,202 PCAP events matches the compact log's non-timestamp header fields, prefix +and full-payload digest. Per-reader callback timestamps differ by 0–62 µs; literal +64-byte header identity is **not** claimed. Submission/completion accounting +balances, with no truncated successful bulk payloads, drops or monitor I/O errors. +All 240 accepted images equal literal original PCAP bytes and have one FID and one +terminal EOF. Both rejected ongoing images at PTS 2992575209 contain 2,119,860 +image bytes in 173 payloads; native and USB lengths agree. The 98-buffer startup +burst and 188 nonstandard successful bulk boundaries remain reported. + +Both pilots pass complete native replay and restore seven device readbacks, +saved camera formats and the media service. A verifier's initial tuple-index +error is retained alongside its corrected run; no source data or criterion was +changed. Native exports reproduce the affected pair and a second-pilot image. +Finite agreement supports use of the compact observer, not physical-wire, +exposure-sync, optical-integrity or long-duration qualification. + +## Fresh enabled-candidate capture + +One predeclared trial temporarily loads the existing candidate +`08adf1be077be172538131d3accf42f317bb7421`, enables inline copy and pauses the optional +session logger. No kernel source, firmware, affinity or permanent installation +changes are made. The runner retains lock/consumer/resource checks, five camera +formats, seven native state snapshots, ordinary module unload/load and restoration. +This time only the full-payload hash observer runs; no full PCAP or host trace. +Line mode, the current box scene and observer configuration differ from historical +flood-board trials, preventing an isolated causal comparison of their rates. + +The capture saves 1,800 accepted images per camera. Accepted host spans are +59.974146 / 59.973634 seconds, approximately 29.9963 / 29.9965 accepted buffers/s. +Startup rejection counts are 1 / 0; ongoing rejections and sequence gaps are 0 / 0. +The observer saves 1,354,538 selected events, with zero queued/dropped events or +I/O errors; submission/completion accounting balances. Both native replays pass. + +All **3,600** accepted images match every observed full-transfer hash and prefix. +Each has 188 payloads, 2,304,000 image bytes, one FID and one terminal EOF. This is +cryptographic correspondence to observed full payloads; the original USB bodies +are not retained in this experiment. It must not be described as direct literal +PCAP-body comparison. usbmon remains a software/HCD boundary, not a wire analyzer. + +The unchanged diagnostics find no full aligned-block repeats and seven images +with partial repeats. These are diagnostic observations, not a prevalence estimate +or a production rejection policy. Indices are zero-based; physical exposure +synchronization is not established by matching PTS alone. + +| Raw PTS | Left index | Right index with signature | Longest repeated run L/R, bytes | +| --- | ---: | ---: | ---: | +| 4104686842 | 592 | 593 | 12,504 / 10,720 | +| 4113654484 | 861 | None | 2,640 / — | +| 4113954517 | 870 | 871 | 4,960 / 3,932 | +| 4137390399 | 1573 | 1574 | 12,640 / 10,720 | + +There are nine repeated runs across these seven images. Every run is byte-equal +at its two positions and contains 81–207 distinct values. Both adjacent images +have unequal contents at those positions and differ from the incident run. +Native exports of all seven affected images and the last image from each camera +are byte-exact, including the PNG pixels. Viewed left index 592 has a narrow +horizontal displacement near the top crossing projected stripes. Viewing two +images does not qualify all image content. + +Every completion in every affected frame leaves four requests outstanding, with +no empty-software-queue interval overlapping the frame. Maximum within-frame +completion gaps are 164–177 µs. Repeated-run starts fall in distinct requests two +payloads apart; their completion separations are 110–149 µs. Most starts are at +transfer offset 5120, with additional starts at 6144 and 12. These are observations, +not proof of a particular DMA, packet, firmware or controller defect. Software +request counts do not measure physical controller-ring occupancy. + +**Engineering inference:** this extends the baseline boundary localization to the +enabled candidate. Duplication exists in the data observed before ScanCraft's +reconstruction and storage, including when the software request queue remains +populated. Neither the candidate nor eliminating an empty software queue supplies +a complete remedy. Scanner production, link/controller and HCD/DMA behavior remain +unresolved; choosing among them requires a discriminating experiment. + +## Restoration, costs and evidence + +The candidate runner exits 0, restores baseline srcversion +`9D1275CDD5E013864E4C564` and every module parameter, and verifies 21 state comparisons +(seven each before capture, after capture and after restoration). Logger source and +active state, saved formats, media service and global tracing configuration restore. +There are no cleanup-error events. An earlier lost-session sudo prompt had no child +and no runner artifacts; it was canceled before the single actual capture began. + +The timed native capture process uses 73.91 s wall time, 4.17 s user, 14.31 s system, +25% CPU and 40,320 KiB peak RSS. This includes recording finalization and excludes +the separate observer; it is not system-wide utilization, an isolated observer-cost +benchmark or reconstruction throughput. No lower-cost claim follows from removing +the second observer. + +Private evidence retains all raw recordings, logs, frozen inputs, failures and +derived checks. `compare_candidate.py` adapts only capture paths and time-window +schema from the pilot analyzer; it checks all images against their transfer hashes. +`verify_affected.py` checks native exports, neighbors, whole-log request accounting +and affected-frame context. The original analyzer and capture inputs are preserved. + +Pilot evidence is sealed as 218 files / 2,287,094,321 bytes, manifest SHA-256 +`6346426bedb10e02d618a805d7fc8f9f573172162f3534b04172ead9c4a4b09a`. +Candidate evidence is sealed as 127 files / 8,515,752,336 bytes, manifest SHA-256 +`c0a3dad9bcb913050d57c43341ff08ce32f661d08079be2f396c4e3cbfdf82ea`. +It uses private roots `candidate-hash-20261104` and external +`candidate-hash-publication-20261104`. +Private imagery and device data are not included in public Git or review uploads. + +No coefficients, thresholds, rejected-frame rules, recordings or application code +are changed. Rotation is offered but not confirmed; the box's independently stated +dimensions remain held out. Full object coverage, proven physical units, dimensional +accuracy, three repeat trials and complete native end-to-end scanning remain unmet. +Only the independent reviewer can verify and close SCAN-REV-034. + +Publication software gate: `tools/check.sh` passes formatting, strict all-target +Clippy, 935 tests / zero failures / one ignored, and optimized workspace build. +Application source is unchanged; this is regression evidence, not hardware +qualification. CodeRabbit's included-capacity/billing lookup returns `lookup_failed`; +no substantive automated review or paid usage was performed. The PR remains draft. diff --git a/docs/reviews/REVIEW_RESPONSES.md b/docs/reviews/REVIEW_RESPONSES.md index c24d8a5..d2446b2 100644 --- a/docs/reviews/REVIEW_RESPONSES.md +++ b/docs/reviews/REVIEW_RESPONSES.md @@ -5747,3 +5747,49 @@ code is unchanged; this is software regression evidence, not fresh hardware proo CodeRabbit quota lookup in the repository returns `lookup_failed`; no substantive or paid review was performed. An initial invocation outside the repository also failed and is retained. Public source/diff privacy checks precede publication. + +## SCAN-REV-034 — accepted; live full-payload enabled-path evidence + +Accept assignment580's request for full-payload evidence on the enabled path and +its outstanding causal/qualification requirements. The new report +`docs/RAPTOR_LIVE_PAYLOAD_HASH_VALIDATION.md`, project status and two investigation +cross-references document observations only. No application or kernel source change, +heuristic repair, image exclusion, firmware change or claim of correction. + +Two baseline pilots validate the compact hash observer. First runner1385 correctly +exits1 after its PCAP drops1,009events; all240hash comparisons pass and both affected +images have complete literal original PCAP coverage. Second runner39960 exits0; +verifier54787 checks all92,202non-timestamp headers/prefixes/full digests and all240 +literal native images. Per-reader timestamps differ0–62µs. Startup98 and paired +ongoing short images remain. Native verification24925 passes. Original verifier +index error and its correction remain in private evidence. + +Fresh temporary-candidate runner62635 exits0, captures1800images/camera, startup1/0, +ongoing0/0, restores baseline module/parameters, services/formats and all21native +state comparisons. Monitor1,354,538selectedevents, zero loss/I/O errors. Analyzer81920 +exits0: all3600acceptedimages match full-transferSHA/prefixes and188payload/oneFID/ +oneEOF framing; seven have partial duplicated strips, zero full-block signatures. +Verifier65121 exits0: allseven affected plus two final native exports match original +pixels; nine repeated runs and their neighbors checked. Four requests remain +outstanding after every affected-frame completion; no empty-queue overlap, maximum +completion gaps164–177µs. Request counts are not physical controller-ring occupancy. + +This localizes candidate-path duplication to the observed payload stream, not to a +specific device/controller/HCD/DMA cause. Full hashes are not retained literal USB +bodies. Different scene/mode/observer conditions prevent causal rate comparison +against historical trials. Diagnostic false-positive/negative bounds, other failure +types, startup/restart/load qualification, physical sync and all scan accuracy/ +coverage/end-to-end obligations remain. Only the reviewer can verify/close034. + +Pilot seal218files/2,287,094,321bytes SHA256 +6346426bedb10e02d618a805d7fc8f9f573172162f3534b04172ead9c4a4b09a; +candidate seal127files/8,515,752,336bytes SHA256 +c0a3dad9bcb913050d57c43341ff08ce32f661d08079be2f396c4e3cbfdf82ea. +Capture source remainsd91fc4f, documentation base00284ea; exact publication commit +and software/privacy/review gate outcomes are recorded in the developer checkpoint. +Reviewer-owned records remain untouched; raw images and device data remain private. + +Publication gate7105 exits0: formatting, strictClippy,935passed/0failed/1ignored, +optimized workspace build. No source correction, hence no hardware qualification +from that result. CodeRabbit usage89614 exits1 with all capacity/billing lookups +unavailable; no substantive review or paid usage. Draft status is retained.