Repository navigation
Description
Provenance and credit
This issue records a finding reported by @STE1200 and their team in Discussion #112, “Set of findings”. Thank you to Steffen and the team for sharing the result, its reported validation oracles, and the clean-room provenance publicly.
The technical statements below are reported claims, not yet independently reproduced by rvt-rs. Per the maintainer reply in the discussion, Griffin will carry the repository-side probes, tests, implementation, and documentation; this issue does not assign formal preparation work to Steffen's team.
Reported finding
Revit streams are reportedly checksum-paged before standard RFC 1951 inflation. Each full 65,249-byte stored page is reported to contain:
- 64,896 bytes of compressed payload
- a 353-byte checksum tail that must be removed before inflation
Without removing those tails, inflation reportedly terminates cleanly rather than surfacing an error, but the decoded output drifts after the first page boundary. On the team's sample, Formats/Latest reportedly lost about 48% of its schema. The report states that streams larger than roughly 190 KB are affected.
Reported evidence
- Gzip member trailers reportedly validated for 209/209 members across two files.
- The page dimensions are reportedly consistent with constants used by
ahzs645/reviter. - A
Formats/Latestcomparison reportedly showed the silent schema loss after the first page boundary.
These observations came from the reporter's Revit 2014 manufacturer family and Revit 2026 project investigations. The exact fixtures, probe output, and page-by-page comparison have not yet been reproduced in this repository.
Why it matters
Silent success with incomplete or shifted output is more dangerous than a clear parse failure: callers can mistake corrupted decoded data for a valid model. If confirmed, this affects the trust boundary of every higher layer that consumes sufficiently large streams, including schema parsing and downstream element decoding.
Independent verification still required
- Reproduce the stored-page layout on provenance-safe test inputs available to the maintainer.
- Confirm the exact first divergence and whether the reported roughly 190 KB threshold is invariant or sample-dependent.
- Validate the reported gzip-trailer oracle and compare current output with output after page-tail stripping.
- Determine whether partial final pages use the same layout and define fail-closed behavior for malformed/truncated tails.
- Confirm the relevant read and write paths before changing container framing.
An observation that full pages do not follow the reported 64,896 + 353 layout, or that tail stripping does not restore a stable RFC 1951 stream, would falsify or narrow the hypothesis.
Repository-side acceptance criteria
- Add a self-contained probe that reports stored-page boundaries, tail handling, decoded length, and a stable content oracle on an allowed fixture.
- Reproduce or refute the reported layout across at least two independently sourced files and document version/file-type coverage.
- Add a synthetic regression fixture that crosses at least one full stored-page boundary without embedding private or non-redistributable data.
- If confirmed, strip/check tails before inflation and return an explicit error for malformed paging rather than silently accepting corrupted output.
- Pin a regression test that would fail on cleanly terminating but incomplete output.
- Verify any affected writer round trip, as required by
CONTRIBUTING.mdfor truncated-gzip framing changes. - Add a dated, confidence-scored evidence table to the reconnaissance documentation and update public capability/status text.
The probe, dated addendum, byte-pattern regression, provenance, and falsifiability requirements should follow the repository's reverse-engineering contribution guidance.
Activity
DrunkOnJava commentedon Aug 29, 2026
Optional decompression PR (Finding 1 / @STE1200)
Steffen’s optional container-layer PR for checksum-page stripping remains welcome. Maintainers will not duplicate or overwrite a contributed implementation if a PR is opened.
Please comment here (or on Discussion #112) before starting so we can avoid colliding with any in-flight maintainer probes or Finding 1 work. Repository-side reproduction on #151 continues either way — your PR is optional, not required.
(Coordination note: automation could not post to Discussion #112 from the GitHub App token; this issue comment is the durable record.)
DrunkOnJava commentedon Aug 29, 2026
Discussion #112 issue index + coordination fallback
Automatic backlinks from #151–#156 to Discussion #112 exist in issue bodies, but the discussion page does not show a compact index. Agents also cannot post discussion comments with the current GitHub App token.
Durable copy (including maintainer notification how-to and product-Q&A status):
docs/disc-112-coordination.md— please mirror into Discussion #112 when a human maintainer can post.Product issues: none opened yet; waiting on Steffen’s answers to Griffin’s product questions (no open-ended promises).
docs: DISC-112 coordination notes when discussion posts fail
docs: corpus intake checklist + DISC-112 coordination notes (#157)
DrunkOnJava commentedon Aug 29, 2026
Wave 1 Worker C — independent investigation (probe only; not fixed)
Credit: @STE1200 / Discussion #112.
Branch:
cursor/wave1-decompress-investigate-67f9(docs + probes + synthetic tests only — no production inflate wiring).Reported vs independently reproduced
main)Partitions/*Formats/Latest~48% schema lossSchemaTableclass/field counts stay flat (e.g. Core Interior 395/1114 both ways)Strongest local oracle
2024_Core_Interior.rvtPartitions/46(261 full pages):inflate_all_chunks: 925 ok / 97,957,200 bytesstrip_revit_page_checksums: 935 ok / 98,772,093 bytes (+10 members, +~0.8 MiB)Similar ok-count gains on
Partitions/53and/61under a magic-scan fail→0 oracle.Formats/Latestinflate length alone is a weak oracle (strip slightly shortens output while schema classes/fields hold).Deliverables
examples/probe_checksum_page_evidence.rstests/checksum_page_framing.rs(6/6 green)docs/re/wave1-checksum-paged-framing-contract-2026-08-29.mdreports/security/DISC-112-wave1-worker-c-2026-08-29.mdConfidence
maincallers still use bare inflate.prepare_stream_for_inflate(or equivalent) at named-stream entry points per the contract draft.Note: another agent may be working Finding 1 production wiring on a separate branch; this investigation deliberately stayed on a clean
origin/mainworktree.feat(tools): stream-evidence harness for checksum-paged inflate (#158)
DrunkOnJava commentedon Aug 29, 2026
Independent Wave 1 judge verdict: narrow
Credit: @STE1200 / Discussion #112.
Judge baseline: clean
origin/main@9f5787c(harness #158 merged). Synthetic tests from draft #159 run tools-only. Uncommitted Finding-1 production WIP on the dirty workspace tree was not used.Full write-up:
/opt/cursor/artifacts/wave1_judge_finding1/VERDICT.md(Cloud Agent artifact).Checks (summary)
inflate_all_chunks925→935 onPartitions/46does reproduce).synthetic_multipage_bare_inflate_does_not_round_trippins bare ≠ payload and strip == payload (6/6 green on cleanmain).empty.rfa) + synthetics. Not Steffen 2014 family / 2026 project; 209/209 trailer oracle not re-run.~190 KBis not a hard cliff.class_namesdrop (Core Interior 9579→8575; Einhoven 10495→8474;empty.rfa7622→6952) while SchemaTable stays flat; inflate length falls after strip.Judge re-run highlights
2024_Core_Interior.rvtPartitions/46:inflate_all_chunks925 → 935 (+814 893 bytes).Formats/Latest: SchemaTable 395/1114 both ways;class_names9579→8575.Scoped contract (Wave 2 may start)
Allowed for Wave 2: named-stream wrappers only; writer stays stored-accurate until a paged encoder exists; synthetic + partition member oracles + Formats SchemaTable non-regression.
Not allowed / not claimed: strip inside raw
inflate_at; Formats ~48% recovery; closing 2014/2026 endpoint coverage without fixtures; usingclass_names/ inflate-length as success metrics.Wave 2 production implementation may start under this narrowed contract.
fix: wire checksum page strip into inflate call sites (#151)
fix: strip checksum page trailers before inflate (#151)
5 remaining items
docs(#151): refresh writer audit for narrow Formats-ungated gate
docs(#151): Wave 2 evidence matrix + writer audit (support lane)
DrunkOnJava commentedon Aug 29, 2026
Finding 1 progress update (credited)
Credit: @STE1200 and team — Discussion #112.
Status keys: reported (Steffen) · independently reproduced (maintainers on redistributable corpus) · merged (on
main).Partitions/*andGlobal/*Formats/Lateststripclass_namesregression 9579→8575 on Core Interior). Reported Formats ~48% schema loss was not reproduced on the redistributable corpus (structured class/field counts hold)read_streammain— #158docs/recon/wave2-checksum-page-evidence-matrix-2026-08-29.md(+ Cloud Agent artifacts). Strongest oracle:Partitions/46chunks 925→935Optional decompression PR from Steffen remains welcome for review against the narrow gate (Partitions/Global only; Formats/Latest excluded).
Discussion #112: could not post a discussion comment (
Resource not accessible by integration). Same update mirrored indocs/disc-112-coordination.md— please paste into Discussion #112 when a human maintainer can post.docs: Finding 1 progress update for Discussion #112 / #151
feat(diagnostics): Formats/Latest multipage integrity (A2/PARSE-001)
docs: corpus intake checklist + DISC-112 coordination notes (#157)
feat(tools): stream-evidence harness for checksum-paged inflate (#158)
fix: strip checksum page trailers before inflate (#151)
fix(#151): Wave 2 narrowed paged decompress (tests, writer, docs)
docs(#151): Wave 2 evidence matrix + writer audit (support lane)
docs: Finding 1 progress update for Discussion #112 / #151
feat(diagnostics): Formats/Latest multipage integrity (A2/PARSE-001)
feat(reader): report the 64 KiB Formats/Latest scan cap; docs(viewer)…
fix(formats): strip Formats/Latest's checksum pages and read the whol…
docs: write the API docs for someone outside the project, and check e…