Repository navigation
feat(diagnostics): Formats/Latest multipage integrity (A2/PARSE-001) - #168
Merged
Merged
Conversation
…001) Expose formats_latest_integrity on export diagnostics for inspect JSON, CLI, Python/WASM sidecars, and viewer File Status. Multipage streams report RVT_FORMATS_MULTIPAGE_UNVERIFIED while Finding 1 strip stays disabled for Formats/Latest (#151 residual / Discussion #112 / @STE1200). Co-authored-by: DrunkOnJava <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Surfaces
Formats/Latestintegrity diagnostics on the export-diagnostics sidecar (inspect JSON,rvt-ifc --diagnostics, Pythonexport_diagnostics(), WASM/viewer File Status) without re-enabling checksum-page strip for Formats.{ "stream": "Formats/Latest", "stored_bytes": …, "inflated_bytes": …, "page_boundary_detected": true/false, "checksum_tail_stripping": "disabled", "integrity_status": "uncertain"|"ok"|"incomplete", "diagnostic_code": "RVT_FORMATS_MULTIPAGE_UNVERIFIED" }Multipage stored streams report
integrity_status: uncertain+RVT_FORMATS_MULTIPAGE_UNVERIFIED. Single-page inflate success staysok. Strip remains disabled for Formats/Latest (Finding 1 narrow gate).Where it appears
export_diagnostics.formats_latest_integrity(inspect--json, IFC diagnostics sidecar, Python dict)rvt-inspecthuman Formats integrity linesdocs/status.md,docs/supported-profile.md,docs/export-diagnostics.md, schemaTests
compression::tests::formats_integrity_*— single-page ok, multipage uncertain without enabling strip, garbage incompletegen-fixtureinspect JSON showschecksum_tail_stripping: "disabled",integrity_status: "ok"Credits
Residual of #151 / Discussion #112 — finding reported by @STE1200 and team. This PR only adds honest diagnostics; it does not claim Formats multipage completeness or re-enable strip.
Audit
Unified Repository Audit A2 / PARSE-001.
Note
Low Risk
Additive diagnostics and documentation only; decode/strip behavior for Formats/Latest is unchanged and explicitly asserted in tests.
Overview
Adds honest
Formats/Latestintegrity reporting across export diagnostics without changing production inflate: checksum-page strip stays disabled for that stream (Finding 1 narrow gate).New compression helper
diagnose_formats_latest_integrityclassifies stored bytes as ok (single-page inflate success), uncertain (full page boundary detected →RVT_FORMATS_MULTIPAGE_UNVERIFIED), or incomplete (inflate failed). Results surface as optionalexport_diagnostics.formats_latest_integrityon IFC/inspect JSON, Formats integrity lines inrvt-inspect, and a Formats integrity row in the viewer File Status; uncertain cases also add an export warning. Docs, capability matrix, andexport-diagnostics.schema.jsondocument the additive field.Unit tests cover single-page ok, synthetic multipage uncertain (strip not enabled), and garbage incomplete.
Reviewed by Cursor Bugbot for commit 4c09d2d. Configure here.