Skip to content

Add spec conformance tests and housekeeping#88

Merged
gvonness-apolitical merged 4 commits intomainfrom
conformance/phase1-hash-boundary-block-format
Feb 16, 2026
Merged

Add spec conformance tests and housekeeping#88
gvonness-apolitical merged 4 commits intomainfrom
conformance/phase1-hash-boundary-block-format

Conversation

@gvonness-apolitical
Copy link
Collaborator

Summary

  • Add 41 new conformance tests covering hash boundary, block wire format, manifest validation, state machine enforcement, provenance/lineage, metadata, security, and extension validation
  • Update conformance matrix from 35/81 PASS (43%) to 69/79 PASS (87%)
  • Document all clippy::too_many_lines and missing_panics_doc lint suppressions with inline justifications
  • Update architecture docs to reflect custom serde layer for spec-compliant wire format

Test plan

  • cargo build --workspace --all-features passes
  • cargo test --workspace --all-features passes (1,014 tests)
  • cargo clippy --workspace --all-features -- -D warnings passes (0 warnings)
  • cargo fmt --all -- --check passes
  • CI passes all 10 jobs

Include identity metadata (title, creator, subject, description,
language) in document ID computation per spec §06 §4.1. Add 17
conformance tests covering hash boundary inclusion/exclusion
properties and block type serialization for all 25 block variants.
Add 24 conformance tests covering Phase 1C-1H of the spec conformance
matrix: manifest field validation (6), state machine enforcement (3),
provenance/lineage chain properties (7), Dublin Core metadata
requirements (2), signature structure validation (2), and extension
declaration/validation (4).
Mark all Phase 1A-1H conformance tests as PASS and update test file
references from tests/integration.rs to tests/conformance.rs. Remaining
TODOs: 4 asset embedding (require file I/O), 4 property-based (stretch),
1 container format (ZIP ordering).
Document the rationale for all clippy::too_many_lines and
missing_panics_doc suppressions. Update architecture.md to
reflect the custom serde layer for spec-compliant wire format.
@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

❌ Patch coverage is 94.42231% with 42 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cdx-core/tests/conformance.rs 94.37% 42 Missing ⚠️

📢 Thoughts on this report? Let us know!

@gvonness-apolitical gvonness-apolitical merged commit a43c8f3 into main Feb 16, 2026
11 checks passed
@gvonness-apolitical gvonness-apolitical deleted the conformance/phase1-hash-boundary-block-format branch February 16, 2026 15:46
@gvonness-apolitical gvonness-apolitical mentioned this pull request Feb 16, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant