Skip to content

Add instanceFormat/certificateFormat declarations to LOSSLESSDATACOMPRESSION - #487

Open
Trosper3 wants to merge 3 commits into
CSharpAPIfrom
backfill/losslessdatacompression-format
Open

Add instanceFormat/certificateFormat declarations to LOSSLESSDATACOMPRESSION#487
Trosper3 wants to merge 3 commits into
CSharpAPIfrom
backfill/losslessdatacompression-format

Conversation

@Trosper3

Copy link
Copy Markdown
Contributor

Summary

  • LOSSLESSDATACOMPRESSION never adopted the self-describing instance/certificate format pattern (Interfaces/ProblemInterface.cs).
  • Declares instanceFormat (free-text input) and certificateFormat describing the Huffman code-table-plus-bitstring certificate, on LOSSLESSDATACOMPRESSION_Class.cs.
  • Note: the certificateFormat example is illustrative on a short "abc" input rather than defaultInstancedefaultInstance is a full sentence whose real Huffman certificate is a ~300-character code table + bitstring, too unwieldy to serve as a readable format hint (this field is quoted back to callers on parse errors). The format-declaration test documents this and verifies the short example against a LOSSLESSDATACOMPRESSION("abc") instance instead, using the exact (97=0;98=10;99=11) encoded:01011 certificate already proven correct in the existing test file.

Closes #442

Test plan

  • dotnet test redux-tests/redux-tests.csproj --filter "FullyQualifiedName~LOSSLESSDATACOMPRESSION" — 14/14 passing

Trosper3 and others added 2 commits August 22, 2026 22:19
…RESSION

LOSSLESSDATACOMPRESSION never adopted the self-describing instance/
certificate format pattern (Interfaces/ProblemInterface.cs). Declares
instanceFormat (free-text input) and certificateFormat describing the
Huffman code-table-plus-bitstring certificate.

The certificateFormat example is illustrative on a short "abc" input
rather than defaultInstance: defaultInstance is a full sentence whose
real Huffman certificate is a ~300-character code table + bitstring,
too unwieldy to serve as a readable format hint. The format-declaration
test documents this and verifies the short example against a
LOSSLESSDATACOMPRESSION("abc") instance instead.
@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown

Redux Build System — CI Report

dotnet · commit 4cdf278

Operation Status Summary Time
audit no known vulnerabilities 4.6s
format-check all files formatted 23.0s
lint 0 issues 35.8s
typecheck ⏭️ covered by lint (dotnet build)
unit-test 841 passed · coverage 65% (min 80%) 47.0s
build built local/redux:ci · 234MB 39.3s
integration-test ⏭️ no [integration] command
push ⏭️ not implemented

Overall: ❌ 4 passed · 1 failed · 3 skipped

…tch CLIQUE pattern

Adds named InstanceGrammar const (LOSSLESSDATACOMPRESSION parses the
raw text input directly, no StringParser) and CertificateGrammar/
CertificateExample consts on LosslessDataCompressionVerifier,
interpolated into instanceFormat/certificateFormat instead of
hand-duplicated prose.
@Trosper3
Trosper3 requested a review from wrigjl August 31, 2026 18:05
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.

Backfill instanceFormat/certificateFormat: NPC_LOSSLESSDATACOMPRESSION

1 participant