backplane-tracecheck 0.4.0__tar.gz → 0.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/.gitignore +11 -0
  2. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/CHANGELOG.md +62 -1
  3. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/PKG-INFO +2 -2
  4. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/docs/FEEDBACK.md +13 -11
  5. backplane_tracecheck-0.4.1/examples/compression-cases.json +159 -0
  6. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/expected.json +333 -0
  7. backplane_tracecheck-0.4.1/examples/indexless-attachment.mcap +0 -0
  8. backplane_tracecheck-0.4.1/examples/indexless-badcrc.mcap +0 -0
  9. backplane_tracecheck-0.4.1/examples/lz4-128k-two-frames.mcap +0 -0
  10. backplane_tracecheck-0.4.1/examples/lz4-unfinished.mcap +0 -0
  11. backplane_tracecheck-0.4.1/examples/shared-boundary.mcap +0 -0
  12. backplane_tracecheck-0.4.1/examples/zstd-128k.mcap +0 -0
  13. backplane_tracecheck-0.4.1/examples/zstd-empty-frame.mcap +0 -0
  14. backplane_tracecheck-0.4.1/examples/zstd-truncated.mcap +0 -0
  15. backplane_tracecheck-0.4.1/examples/zstd-unfinished.mcap +0 -0
  16. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/pyproject.toml +6 -1
  17. backplane_tracecheck-0.4.1/src/tracecheck/__init__.py +1 -0
  18. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/__main__.py +3 -1
  19. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/manifest.py +2 -0
  20. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/reader.py +116 -1
  21. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/samples.py +144 -0
  22. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/server.py +1 -1
  23. backplane_tracecheck-0.4.1/tests/make_compression_cases.py +60 -0
  24. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/tests/test_checker.py +14 -3
  25. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/tests/test_index.py +45 -0
  26. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/tests/test_manifest.py +1 -0
  27. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/tests/test_streaming.py +40 -2
  28. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/app.css +2 -0
  29. backplane_tracecheck-0.4.1/web/src/article.css +28 -0
  30. backplane_tracecheck-0.4.1/web/src/article.js +6 -0
  31. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/vendor/fzstd.js +6 -1
  32. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/style.css +1 -1
  33. backplane_tracecheck-0.4.1/web/src/tracker-static.js +79 -0
  34. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/tracker.css +1 -0
  35. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/tracker.js +6 -1
  36. backplane_tracecheck-0.4.0/src/tracecheck/__init__.py +0 -1
  37. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/LICENSE +0 -0
  38. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/NOTICE +0 -0
  39. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/README.md +0 -0
  40. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/docs/CONTRACT_REFERENCE.md +0 -0
  41. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/docs/COVERED_LIST_TRACKER.md +0 -0
  42. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/docs/THIRD_PARTY_NOTICES.md +0 -0
  43. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/docs/licenses/lz4-LICENSE.txt +0 -0
  44. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/docs/licenses/zstandard-LICENSE.txt +0 -0
  45. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/bad-index.mcap +0 -0
  46. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/clean-lz4.mcap +0 -0
  47. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/clean-zstd.mcap +0 -0
  48. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/clean.mcap +0 -0
  49. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/demo-contract.json +0 -0
  50. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/faults.mcap +0 -0
  51. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-bag/fleet-bag_0.mcap +0 -0
  52. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-bag/fleet-bag_1.mcap +0 -0
  53. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-bag/fleet-bag_2.mcap +0 -0
  54. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-bag/metadata.yaml +0 -0
  55. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-bag-interrupted/fleet-bag-interrupted_0.mcap +0 -0
  56. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-bag-interrupted/fleet-bag-interrupted_1.mcap +0 -0
  57. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-bag-interrupted/fleet-bag-interrupted_2.mcap +0 -0
  58. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-contract.json +0 -0
  59. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-dropout-lz4.mcap +0 -0
  60. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-paused-zstd.mcap +0 -0
  61. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/fleet-zstd.mcap +0 -0
  62. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/indexless-rosbag2.mcap +0 -0
  63. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/interrupted-zstd.mcap +0 -0
  64. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/malformed.mcap +0 -0
  65. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/no-crc.mcap +0 -0
  66. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/truncated.mcap +0 -0
  67. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/unchunked.mcap +0 -0
  68. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/examples/unsupported-codec.mcap +0 -0
  69. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/bag.py +0 -0
  70. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/contract.py +0 -0
  71. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/engine.py +0 -0
  72. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/events.py +0 -0
  73. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/report.py +0 -0
  74. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/src/tracecheck/ui.html +0 -0
  75. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/tests/test_bag.py +0 -0
  76. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/tests/test_events.py +0 -0
  77. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/tests/test_truncated.py +0 -0
  78. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/app.js +0 -0
  79. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/chrome.js +0 -0
  80. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/bag.js +0 -0
  81. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/contract.js +0 -0
  82. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/crc32.js +0 -0
  83. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/engine.js +0 -0
  84. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/events.js +0 -0
  85. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/json.js +0 -0
  86. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/lz4.js +0 -0
  87. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/reader.js +0 -0
  88. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/report.js +0 -0
  89. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/engine/worker.js +0 -0
  90. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/feedback-schema.js +0 -0
  91. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/feedback.js +0 -0
  92. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/landing.css +0 -0
  93. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/main.js +0 -0
  94. {backplane_tracecheck-0.4.0 → backplane_tracecheck-0.4.1}/web/src/tracker-data.js +0 -0
@@ -36,3 +36,14 @@ Thumbs.db
36
36
  desktop.ini
37
37
  .vscode/
38
38
  .idea/
39
+ *.code-workspace
40
+
41
+ # Secrets: never commit (this repo is public). Wrangler reads local Worker secrets from .dev.vars.
42
+ .env
43
+ .env.*
44
+ !.env.example
45
+ .dev.vars*
46
+ *.pem
47
+ *.key
48
+ *.p12
49
+ secrets/
@@ -4,7 +4,68 @@ All notable changes to this project are documented here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
5
5
  [Semantic Versioning](https://semver.org/).
6
6
 
7
- ## [Unreleased]
7
+ ## [0.4.1] - 2026-11-30
8
+
9
+ ### Fixed
10
+ - Compressed chunks: the Python and browser engines now give the same result for every framing edge case. A zstd
11
+ frame that holds all of its data but was never finished (no block marked last) used to pass in Python and fail in
12
+ the browser; an LZ4 frame without its EndMark did the same. Both are now reported in both engines as an incomplete
13
+ scan (C01 fail), as the standard zstd and LZ4 tools treat them. Prompted by rosbag2 PRs #2578 / #2579 (a zstd
14
+ compressor that did not finish its frame for inputs of exactly 128 KiB, or empty ones).
15
+ - LZ4 chunks made of several frames, or starting with a skippable frame, are valid and now pass in Python too (they
16
+ already passed in the browser).
17
+ - A cut-short zstd or LZ4 chunk now gives the same error text in both engines; a zstd frame whose checksum or a
18
+ skippable frame that is cut short is reported as truncated in the browser too.
19
+ - New examples `zstd-128k.mcap`, `zstd-unfinished.mcap`, `zstd-truncated.mcap`, `zstd-empty-frame.mcap`,
20
+ `lz4-128k-two-frames.mcap` and `lz4-unfinished.mcap` (one 128 KiB chunk each), checked in full and fast mode in
21
+ both engines, and `examples/compression-cases.json`: 22 small compressed-chunk edge cases that both engines must
22
+ answer identically.
23
+ - `tracecheck serve`: a recording whose file name starts with `-` (for example `-x.mcap`) could not be checked; the
24
+ name is now passed as a single `--name=` argument.
25
+ - `tracecheck verify`: a deeply nested (malformed) manifest now gives a clear error and exit code 2 instead of a
26
+ traceback and exit code 1.
27
+ - `tracecheck --help` no longer lists the internal `_worker` command.
28
+
29
+ ### Security and maintenance
30
+ - Regression tests and examples for two reader problems reported upstream, which Tracecheck is not affected by:
31
+ `indexless-attachment.mcap` / `indexless-badcrc.mcap` (no indexes, an attachment and metadata, and one wrong chunk
32
+ CRC; compare MCAP PR #1932) and `shared-boundary.mcap` (neighbouring chunks sharing a boundary timestamp must pass;
33
+ compare MCAP PR #1931). Checked in full and fast mode, in Python and in the browser engine.
34
+ - Feedback Worker: answers `503` JSON if the rate limiter fails instead of throwing; Workers observability is turned
35
+ off entirely so no request or exception logs are collected. `docs/FEEDBACK.md` updated (spam control is best-effort).
36
+ - `.gitignore` covers `.env`, `.dev.vars`, key files and editor workspace files.
37
+ - GitHub Actions pinned to exact commits; the PyPI release workflow now runs the full CI suite before building and
38
+ publishing; Dependabot opens weekly update pull requests (Actions, npm, pip).
39
+ - Ruff rules live in `pyproject.toml` (same locally and in CI, tests included); ruff pinned in the `dev` extra.
40
+ - Site guard-rail tests: no HTML-injection sinks, `eval` or service workers in site code; no inline or third-party
41
+ scripts; strict CSP. These cover every page on the domain, including the planned `/pro/` sales page.
42
+
43
+ ### Website
44
+ - Tracker: added SYNCROBOTIC (“Jeff” and “Adventure” quadruped platforms) and BLUEPATH ROBOTICS (O1000 PLATFORM AMR,
45
+ OM1500 TUNNEL AMR), both from FCC DA 26-1243 (Nov 18, 2026). All 17 entries rechecked against that notice's
46
+ appendix (Nov 23). Conditions quoted as that notice words them ("as applicable" vetting; no "superseded" clause).
47
+ - Tracker: added ABB Robotics (AMMR G0540, AMMR G1240, P204V) and Pantograph Industries (Pandroid Robot Hardware),
48
+ both from FCC DA 26-1203 (Nov 6, 2026). All 15 entries rechecked against that notice's appendix (Nov 9).
49
+ - New article: plain-language summary of the FCC test-lab location rules (FCC 26-73) for robotics makers, at
50
+ `/insights/fcc-test-lab-rules/`, linked from the Covered List tracker.
51
+ - `sitemap.xml` lists the article and has last-modified dates; a site test checks every page's title, description,
52
+ canonical URL and sitemap entry.
53
+ - The Covered List tracker's entries, count and "last updated" date are written into the page HTML at build time
54
+ (`web/src/tracker-static.js`), so crawlers that do not run JavaScript see the full list instead of "Loading…". The
55
+ browser still loads the live data and replaces it with identical, filterable markup. Invalid data fails the build.
56
+ - `robots.txt` keeps search engines and AI search/answer crawlers allowed and now disallows AI training crawlers
57
+ (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot and others). A site test checks both.
58
+ - Link-preview image (`/og-image.png`, 1200×630, source in `web/scripts/og-image.html`) on every page, with
59
+ `summary_large_image` cards.
60
+ - Google Search Console ownership proofs: a `google-site-verification` meta tag on the home page and
61
+ `/google3b619a281a7416fa.html`. A site test keeps both in place. The Worker serves the verification file at its exact
62
+ `.html` address, because the clean-URL setting would otherwise redirect it and Google rejects redirects.
63
+ - Updated the `wrangler` dev tool to 4.157.0, which brings in `undici` 7.30.1 and clears the npm audit and Dependabot
64
+ alerts (deploy/local-simulator tooling only; nothing from it ships in the website).
65
+ - Tracecheck page: a note by the download buttons that reports include the file name, topic names, metadata and the
66
+ contract. Two hidden file inputs no longer appear as unlabelled keyboard stops.
67
+ - FCC test-lab article: the Sources section links the order (PDF on fcc.gov).
68
+ - `/.well-known/security.txt` (security contact). Landing page footer headings use the correct level.
8
69
 
9
70
  ## [0.4.0] - 2026-11-03
10
71
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: backplane-tracecheck
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Check robot recordings (MCAP) against an explicit, versioned recording contract.
5
5
  Project-URL: Homepage, https://backplanerobotics.com
6
6
  Project-URL: Source, https://github.com/backplane-robotics/backplane-tracecheck
@@ -26,7 +26,7 @@ Requires-Dist: zstandard>=0.22
26
26
  Provides-Extra: dev
27
27
  Requires-Dist: build>=1.2; extra == 'dev'
28
28
  Requires-Dist: pytest>=8; extra == 'dev'
29
- Requires-Dist: ruff>=0.6; extra == 'dev'
29
+ Requires-Dist: ruff==0.17.3; extra == 'dev'
30
30
  Description-Content-Type: text/markdown
31
31
 
32
32
  # Backplane Tracecheck
@@ -28,12 +28,16 @@ only after the KV write has completed.
28
28
 
29
29
  ## Privacy controls
30
30
 
31
- - **No application logging.** The Worker has no `console` calls. Workers invocation logs are disabled in
32
- `wrangler.jsonc` (`observability.logs.invocation_logs: false`).
31
+ - **No application logging.** The Worker has no `console` calls. Workers observability (invocation logs and
32
+ Workers Logs, which would also record uncaught exceptions) is turned off in `wrangler.jsonc`
33
+ (`observability.enabled: false`). If the rate limiter fails, the Worker answers `503` JSON instead of throwing.
33
34
  - **Rate limiting.** 5 submissions per minute per client, using the Cloudflare Workers rate-limiting binding.
34
- The client IP is the in-memory counter key and is not written to storage.
35
+ The client IP is the in-memory counter key and is not written to storage. Cloudflare documents this binding as
36
+ per-location and approximate, so treat it as best-effort. An optional Cloudflare WAF rate-limiting rule on
37
+ `/api/feedback` (dashboard, no code) adds a stricter ceiling.
35
38
  - **Spam control.** Only same-origin browser requests are accepted (`Sec-Fetch-Site: same-origin`, or a matching
36
- `Origin`). Together with the rate limit, this is the only spam control. There is no CAPTCHA or third-party script.
39
+ `Origin`). This blocks other websites, but a script outside a browser can fake these headers, so spam control is
40
+ best-effort. There is no CAPTCHA or third-party script.
37
41
  - **No public listing.** The Worker exposes no read or list endpoint. Any other `/api/*` path returns 404.
38
42
  - **Provider logs.** Cloudflare may still keep its own edge and security logs for requests to the site.
39
43
  Check the current Cloudflare dashboard settings and policies before making stronger statements.
@@ -47,23 +51,21 @@ Each entry is written with a KV `expirationTtl` of 90 days, after which Cloudfla
47
51
  > `npx wrangler kv key put --binding FEEDBACK --remote "feedback:ttl-test" "{}" --ttl 60`, then confirm it is gone
48
52
  > a few minutes later.
49
53
 
50
- ## One-time setup (owner)
54
+ ## One-time setup (owner, done 2026-10-18)
51
55
 
52
- Run these from the repository root with your Cloudflare account. Workers KV and the rate-limiting binding are both
53
- available on the free plan.
56
+ This was done once when the feature was added; it is kept here for reference (for example, to recreate the
57
+ namespace). Run from the repository root with your Cloudflare account. Workers KV and the rate-limiting binding are
58
+ both available on the free plan.
54
59
 
55
60
  ```bash
56
61
  cd web && npm ci && cd ..
57
62
  npx --prefix web wrangler login
58
63
  npx --prefix web wrangler kv namespace create FEEDBACK
59
- # Copy the printed id into wrangler.jsonc, replacing REPLACE_WITH_FEEDBACK_KV_NAMESPACE_ID.
64
+ # Put the printed id in wrangler.jsonc (kv_namespaces → FEEDBACK → id).
60
65
  cd web && npm run build && cd ..
61
66
  npx --prefix web wrangler deploy
62
67
  ```
63
68
 
64
- Until the placeholder id is replaced, `wrangler deploy` fails. That stops the site from being deployed with a
65
- feedback button that cannot store anything.
66
-
67
69
  ## Reading feedback privately
68
70
 
69
71
  Feedback is read only through the authenticated Cloudflare dashboard or the CLI:
@@ -0,0 +1,159 @@
1
+ {
2
+ "description": "Compressed-chunk edge cases; both engines must give exactly `result`. Written by tests/make_compression_cases.py.",
3
+ "cases": [
4
+ {
5
+ "name": "zstd finished frame",
6
+ "compression": "zstd",
7
+ "size": 192,
8
+ "hex": "28b52ffd20c0fd0000c073796e746865746963206368756e6b207265636f72647320010094969a63",
9
+ "result": "ok 192"
10
+ },
11
+ {
12
+ "name": "zstd frame never finished",
13
+ "compression": "zstd",
14
+ "size": 192,
15
+ "hex": "28b52ffd0058fc0000c073796e746865746963206368756e6b207265636f72647320010094969a63",
16
+ "result": "error: zstd chunk decompression failed: unexpected EOF"
17
+ },
18
+ {
19
+ "name": "zstd frame cut short",
20
+ "compression": "zstd",
21
+ "size": 192,
22
+ "hex": "28b52ffd20c0fd0000c073796e746865746963206368756e6b207265636f7264732001",
23
+ "result": "error: zstd chunk decompression failed: unexpected EOF"
24
+ },
25
+ {
26
+ "name": "zstd no data",
27
+ "compression": "zstd",
28
+ "size": 192,
29
+ "hex": "",
30
+ "result": "error: decompressed chunk size differs from declared uncompressed size"
31
+ },
32
+ {
33
+ "name": "zstd no data, 0 bytes declared",
34
+ "compression": "zstd",
35
+ "size": 0,
36
+ "hex": "",
37
+ "result": "ok 0"
38
+ },
39
+ {
40
+ "name": "zstd frame header only, 0 bytes declared",
41
+ "compression": "zstd",
42
+ "size": 0,
43
+ "hex": "28b52ffd2000",
44
+ "result": "error: zstd chunk decompression failed: unexpected EOF"
45
+ },
46
+ {
47
+ "name": "zstd two frames",
48
+ "compression": "zstd",
49
+ "size": 384,
50
+ "hex": "28b52ffd20c0fd0000c073796e746865746963206368756e6b207265636f72647320010094969a6328b52ffd20c0fd0000c073796e746865746963206368756e6b207265636f72647320010094969a63",
51
+ "result": "ok 384"
52
+ },
53
+ {
54
+ "name": "zstd trailing bytes",
55
+ "compression": "zstd",
56
+ "size": 192,
57
+ "hex": "28b52ffd20c0fd0000c073796e746865746963206368756e6b207265636f72647320010094969a637878",
58
+ "result": "error: zstd chunk decompression failed: invalid zstd data"
59
+ },
60
+ {
61
+ "name": "zstd checksum present",
62
+ "compression": "zstd",
63
+ "size": 192,
64
+ "hex": "28b52ffd24c0fd0000c073796e746865746963206368756e6b207265636f72647320010094969a63d4138ea6",
65
+ "result": "ok 192"
66
+ },
67
+ {
68
+ "name": "zstd checksum cut short",
69
+ "compression": "zstd",
70
+ "size": 192,
71
+ "hex": "28b52ffd24c0fd0000c073796e746865746963206368756e6b207265636f72647320010094969a63d413",
72
+ "result": "error: zstd chunk decompression failed: unexpected EOF"
73
+ },
74
+ {
75
+ "name": "zstd skippable frame first",
76
+ "compression": "zstd",
77
+ "size": 192,
78
+ "hex": "502a4d180300000061626328b52ffd20c0fd0000c073796e746865746963206368756e6b207265636f72647320010094969a63",
79
+ "result": "ok 192"
80
+ },
81
+ {
82
+ "name": "zstd skippable frame cut short",
83
+ "compression": "zstd",
84
+ "size": 192,
85
+ "hex": "28b52ffd20c0fd0000c073796e746865746963206368756e6b207265636f72647320010094969a63502a4d18030000006162",
86
+ "result": "error: zstd chunk decompression failed: unexpected EOF"
87
+ },
88
+ {
89
+ "name": "lz4 finished frame",
90
+ "compression": "lz4",
91
+ "size": 192,
92
+ "hex": "04224d186840c0000000000000005f23000000ff0973796e746865746963206368756e6b207265636f72647320180090506f7264732000000000",
93
+ "result": "ok 192"
94
+ },
95
+ {
96
+ "name": "lz4 no EndMark",
97
+ "compression": "lz4",
98
+ "size": 192,
99
+ "hex": "04224d186840c0000000000000005f23000000ff0973796e746865746963206368756e6b207265636f72647320180090506f72647320",
100
+ "result": "error: lz4 chunk decompression failed: lz4: truncated frame"
101
+ },
102
+ {
103
+ "name": "lz4 block cut short",
104
+ "compression": "lz4",
105
+ "size": 192,
106
+ "hex": "04224d186840c0000000000000005f23000000ff0973796e746865746963206368756e6b207265636f7264732018009050",
107
+ "result": "error: lz4 chunk decompression failed: lz4: block overruns input"
108
+ },
109
+ {
110
+ "name": "lz4 EndMark cut short",
111
+ "compression": "lz4",
112
+ "size": 192,
113
+ "hex": "04224d186840c0000000000000005f23000000ff0973796e746865746963206368756e6b207265636f72647320180090506f726473200000",
114
+ "result": "error: lz4 chunk decompression failed: lz4: truncated frame"
115
+ },
116
+ {
117
+ "name": "lz4 no data",
118
+ "compression": "lz4",
119
+ "size": 192,
120
+ "hex": "",
121
+ "result": "error: decompressed chunk size differs from declared uncompressed size"
122
+ },
123
+ {
124
+ "name": "lz4 two frames",
125
+ "compression": "lz4",
126
+ "size": 384,
127
+ "hex": "04224d186840c0000000000000005f23000000ff0973796e746865746963206368756e6b207265636f72647320180090506f726473200000000004224d186840c0000000000000005f23000000ff0973796e746865746963206368756e6b207265636f72647320180090506f7264732000000000",
128
+ "result": "ok 384"
129
+ },
130
+ {
131
+ "name": "lz4 trailing bytes",
132
+ "compression": "lz4",
133
+ "size": 192,
134
+ "hex": "04224d186840c0000000000000005f23000000ff0973796e746865746963206368756e6b207265636f72647320180090506f72647320000000007878",
135
+ "result": "error: lz4 chunk decompression failed: lz4: truncated frame"
136
+ },
137
+ {
138
+ "name": "lz4 skippable frame first",
139
+ "compression": "lz4",
140
+ "size": 192,
141
+ "hex": "502a4d180300000061626304224d186840c0000000000000005f23000000ff0973796e746865746963206368756e6b207265636f72647320180090506f7264732000000000",
142
+ "result": "ok 192"
143
+ },
144
+ {
145
+ "name": "lz4 content checksum present",
146
+ "compression": "lz4",
147
+ "size": 192,
148
+ "hex": "04224d186c40c000000000000000de23000000ff0973796e746865746963206368756e6b207265636f72647320180090506f7264732000000000e7ef0ddb",
149
+ "result": "ok 192"
150
+ },
151
+ {
152
+ "name": "lz4 content checksum cut short",
153
+ "compression": "lz4",
154
+ "size": 192,
155
+ "hex": "04224d186c40c000000000000000de23000000ff0973796e746865746963206368756e6b207265636f72647320180090506f7264732000000000e7ef",
156
+ "result": "error: lz4 chunk decompression failed: lz4: trailing bytes after frame"
157
+ }
158
+ ]
159
+ }
@@ -445,6 +445,339 @@
445
445
  "C10": "skipped",
446
446
  "C11": "warn"
447
447
  }
448
+ },
449
+ {
450
+ "file": "indexless-attachment.mcap",
451
+ "contract": "demo-contract.json",
452
+ "overall": "pass",
453
+ "scan_complete": true,
454
+ "checks": {
455
+ "C01": "pass",
456
+ "C02": "pass",
457
+ "C03": "pass",
458
+ "C04": "pass",
459
+ "C05": "pass",
460
+ "C06": "pass",
461
+ "C07": "pass",
462
+ "C08": "pass",
463
+ "C09": "pass",
464
+ "C10": "pass"
465
+ }
466
+ },
467
+ {
468
+ "file": "indexless-attachment.mcap",
469
+ "contract": "demo-contract.json",
470
+ "fast": true,
471
+ "overall": "pass",
472
+ "scan_complete": true,
473
+ "checks": {
474
+ "C01": "pass",
475
+ "C02": "pass",
476
+ "C03": "pass",
477
+ "C04": "pass",
478
+ "C05": "pass",
479
+ "C06": "pass",
480
+ "C07": "pass",
481
+ "C08": "pass",
482
+ "C09": "pass",
483
+ "C10": "pass"
484
+ }
485
+ },
486
+ {
487
+ "file": "indexless-badcrc.mcap",
488
+ "contract": "demo-contract.json",
489
+ "overall": "fail",
490
+ "scan_complete": false,
491
+ "checks": {
492
+ "C01": "fail",
493
+ "C02": "skipped",
494
+ "C03": "skipped",
495
+ "C04": "skipped",
496
+ "C05": "skipped",
497
+ "C06": "skipped",
498
+ "C07": "skipped",
499
+ "C08": "skipped",
500
+ "C09": "skipped",
501
+ "C10": "skipped"
502
+ }
503
+ },
504
+ {
505
+ "file": "indexless-badcrc.mcap",
506
+ "contract": "demo-contract.json",
507
+ "fast": true,
508
+ "overall": "fail",
509
+ "scan_complete": false,
510
+ "checks": {
511
+ "C01": "fail",
512
+ "C02": "skipped",
513
+ "C03": "skipped",
514
+ "C04": "skipped",
515
+ "C05": "skipped",
516
+ "C06": "skipped",
517
+ "C07": "skipped",
518
+ "C08": "skipped",
519
+ "C09": "skipped",
520
+ "C10": "skipped"
521
+ }
522
+ },
523
+ {
524
+ "file": "shared-boundary.mcap",
525
+ "contract": "demo-contract.json",
526
+ "overall": "pass",
527
+ "scan_complete": true,
528
+ "checks": {
529
+ "C01": "pass",
530
+ "C02": "pass",
531
+ "C03": "pass",
532
+ "C04": "pass",
533
+ "C05": "pass",
534
+ "C06": "pass",
535
+ "C07": "pass",
536
+ "C08": "pass",
537
+ "C09": "pass",
538
+ "C10": "pass"
539
+ }
540
+ },
541
+ {
542
+ "file": "shared-boundary.mcap",
543
+ "contract": "demo-contract.json",
544
+ "fast": true,
545
+ "overall": "pass",
546
+ "scan_complete": true,
547
+ "checks": {
548
+ "C01": "pass",
549
+ "C02": "pass",
550
+ "C03": "pass",
551
+ "C04": "pass",
552
+ "C05": "pass",
553
+ "C06": "skipped",
554
+ "C07": "skipped",
555
+ "C08": "skipped",
556
+ "C09": "skipped",
557
+ "C10": "skipped"
558
+ }
559
+ },
560
+ {
561
+ "file": "zstd-128k.mcap",
562
+ "contract": "demo-contract.json",
563
+ "overall": "pass",
564
+ "scan_complete": true,
565
+ "checks": {
566
+ "C01": "pass",
567
+ "C02": "pass",
568
+ "C03": "pass",
569
+ "C04": "pass",
570
+ "C05": "pass",
571
+ "C06": "pass",
572
+ "C07": "pass",
573
+ "C08": "pass",
574
+ "C09": "pass",
575
+ "C10": "pass"
576
+ }
577
+ },
578
+ {
579
+ "file": "zstd-128k.mcap",
580
+ "contract": "demo-contract.json",
581
+ "fast": true,
582
+ "overall": "pass",
583
+ "scan_complete": true,
584
+ "checks": {
585
+ "C01": "pass",
586
+ "C02": "pass",
587
+ "C03": "pass",
588
+ "C04": "pass",
589
+ "C05": "pass",
590
+ "C06": "pass",
591
+ "C07": "pass",
592
+ "C08": "pass",
593
+ "C09": "pass",
594
+ "C10": "pass"
595
+ }
596
+ },
597
+ {
598
+ "file": "zstd-unfinished.mcap",
599
+ "contract": "demo-contract.json",
600
+ "overall": "fail",
601
+ "scan_complete": false,
602
+ "checks": {
603
+ "C01": "fail",
604
+ "C02": "skipped",
605
+ "C03": "skipped",
606
+ "C04": "skipped",
607
+ "C05": "skipped",
608
+ "C06": "skipped",
609
+ "C07": "skipped",
610
+ "C08": "skipped",
611
+ "C09": "skipped",
612
+ "C10": "skipped"
613
+ }
614
+ },
615
+ {
616
+ "file": "zstd-unfinished.mcap",
617
+ "contract": "demo-contract.json",
618
+ "fast": true,
619
+ "overall": "fail",
620
+ "scan_complete": false,
621
+ "checks": {
622
+ "C01": "fail",
623
+ "C02": "skipped",
624
+ "C03": "skipped",
625
+ "C04": "skipped",
626
+ "C05": "skipped",
627
+ "C06": "skipped",
628
+ "C07": "skipped",
629
+ "C08": "skipped",
630
+ "C09": "skipped",
631
+ "C10": "skipped"
632
+ }
633
+ },
634
+ {
635
+ "file": "zstd-truncated.mcap",
636
+ "contract": "demo-contract.json",
637
+ "overall": "fail",
638
+ "scan_complete": false,
639
+ "checks": {
640
+ "C01": "fail",
641
+ "C02": "skipped",
642
+ "C03": "skipped",
643
+ "C04": "skipped",
644
+ "C05": "skipped",
645
+ "C06": "skipped",
646
+ "C07": "skipped",
647
+ "C08": "skipped",
648
+ "C09": "skipped",
649
+ "C10": "skipped"
650
+ }
651
+ },
652
+ {
653
+ "file": "zstd-truncated.mcap",
654
+ "contract": "demo-contract.json",
655
+ "fast": true,
656
+ "overall": "fail",
657
+ "scan_complete": false,
658
+ "checks": {
659
+ "C01": "fail",
660
+ "C02": "skipped",
661
+ "C03": "skipped",
662
+ "C04": "skipped",
663
+ "C05": "skipped",
664
+ "C06": "skipped",
665
+ "C07": "skipped",
666
+ "C08": "skipped",
667
+ "C09": "skipped",
668
+ "C10": "skipped"
669
+ }
670
+ },
671
+ {
672
+ "file": "zstd-empty-frame.mcap",
673
+ "contract": "demo-contract.json",
674
+ "overall": "fail",
675
+ "scan_complete": false,
676
+ "checks": {
677
+ "C01": "fail",
678
+ "C02": "skipped",
679
+ "C03": "skipped",
680
+ "C04": "skipped",
681
+ "C05": "skipped",
682
+ "C06": "skipped",
683
+ "C07": "skipped",
684
+ "C08": "skipped",
685
+ "C09": "skipped",
686
+ "C10": "skipped"
687
+ }
688
+ },
689
+ {
690
+ "file": "zstd-empty-frame.mcap",
691
+ "contract": "demo-contract.json",
692
+ "fast": true,
693
+ "overall": "fail",
694
+ "scan_complete": false,
695
+ "checks": {
696
+ "C01": "fail",
697
+ "C02": "skipped",
698
+ "C03": "skipped",
699
+ "C04": "skipped",
700
+ "C05": "skipped",
701
+ "C06": "skipped",
702
+ "C07": "skipped",
703
+ "C08": "skipped",
704
+ "C09": "skipped",
705
+ "C10": "skipped"
706
+ }
707
+ },
708
+ {
709
+ "file": "lz4-128k-two-frames.mcap",
710
+ "contract": "demo-contract.json",
711
+ "overall": "pass",
712
+ "scan_complete": true,
713
+ "checks": {
714
+ "C01": "pass",
715
+ "C02": "pass",
716
+ "C03": "pass",
717
+ "C04": "pass",
718
+ "C05": "pass",
719
+ "C06": "pass",
720
+ "C07": "pass",
721
+ "C08": "pass",
722
+ "C09": "pass",
723
+ "C10": "pass"
724
+ }
725
+ },
726
+ {
727
+ "file": "lz4-128k-two-frames.mcap",
728
+ "contract": "demo-contract.json",
729
+ "fast": true,
730
+ "overall": "pass",
731
+ "scan_complete": true,
732
+ "checks": {
733
+ "C01": "pass",
734
+ "C02": "pass",
735
+ "C03": "pass",
736
+ "C04": "pass",
737
+ "C05": "pass",
738
+ "C06": "pass",
739
+ "C07": "pass",
740
+ "C08": "pass",
741
+ "C09": "pass",
742
+ "C10": "pass"
743
+ }
744
+ },
745
+ {
746
+ "file": "lz4-unfinished.mcap",
747
+ "contract": "demo-contract.json",
748
+ "overall": "fail",
749
+ "scan_complete": false,
750
+ "checks": {
751
+ "C01": "fail",
752
+ "C02": "skipped",
753
+ "C03": "skipped",
754
+ "C04": "skipped",
755
+ "C05": "skipped",
756
+ "C06": "skipped",
757
+ "C07": "skipped",
758
+ "C08": "skipped",
759
+ "C09": "skipped",
760
+ "C10": "skipped"
761
+ }
762
+ },
763
+ {
764
+ "file": "lz4-unfinished.mcap",
765
+ "contract": "demo-contract.json",
766
+ "fast": true,
767
+ "overall": "fail",
768
+ "scan_complete": false,
769
+ "checks": {
770
+ "C01": "fail",
771
+ "C02": "skipped",
772
+ "C03": "skipped",
773
+ "C04": "skipped",
774
+ "C05": "skipped",
775
+ "C06": "skipped",
776
+ "C07": "skipped",
777
+ "C08": "skipped",
778
+ "C09": "skipped",
779
+ "C10": "skipped"
780
+ }
448
781
  }
449
782
  ]
450
783
  }