Repository navigation
docs,test(schema): clarify fixed OctadSchema contract and add VCLS/gate tests (#118) - #128
Conversation
…te tests (#118) Co-authored-by: arena-agent <[email protected]>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Define modality profiles and fixed schema scope CHANGELOG.adoc, README.adoc, docs/decisions/0007-modality-profiles-vs-octad-schema.adoc, docs/standards/MODALITY-PROFILES.adoc, docs/vclt-gate-contract.adoc, docs/wikis/GLOSSARY.adoc, src/core/Schema.idr, src/interface/parse/src/schema.rs |
The documentation and schema comments distinguish generic modality profiles from the fixed eight-slot OctadSchema and VCLS v1 contracts. |
Specify and prove wire arity src/interface/WireDecode.idr, src/interface/parse/WIRE-FORMAT.adoc, src/interface/parse/src/wire.rs, src/interface/WireConformance.idr |
Decoder documentation specifies the eight-slot order and errors for shorter or longer streams. Idris conformance proofs cover six- and nine-slot streams. |
Test schema and gate handling src/interface/parse/tests/gate.rs, src/interface/parse/tests/gate_transport.rs, src/interface/parse/tests/wire.rs |
Tests cover empty modality slots, omitted schema data, schema round-tripping, decoder totality, canonical encoding, and rejection of streams with other slot counts. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Other
Suggested reviewers: claude
Merge Risk: 
Minimal · up to 071ce
-
The documentation and tests can merge after normal checks. The existing tag-order decoder gap remains separate follow-up work.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Description check
-
Explanation
The description is complete and closely follows the repository template. It explains the purpose, lists the main changes, records testing and quality checks, and updates the applicable documentation and changelog items.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 15 functions across 5 files. (10 skipped: 10 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…ts (#130) ## Summary CodeRabbit posted two findings on #125 that arrived as it merged. This PR fixes both. ## Changes - `docs/vclt-gate-contract.adoc`: the contract said the consumer "passes the path as `argv[1]`". The actual invocation is `argv[1]` = `--input` and `argv[2]` = the path, and a bare path is `bad_invocation`. A consumer written from the old wording would fail on every call. - `tests/gate_transport.rs`: the parity test compared stdin with `--input` but never checked the verdict itself, so it would still pass if both transports were wrong in the same way. Each case now pins its expected exit code, checked against the built binary: admitted 0, rejected 1, bad version 2. The bad-version case also asserts `unsupported_version`. ## RSR Quality Checklist ### Required - [x] Tests pass: `cargo test --test gate_transport` passes 5/5. - [x] Code is formatted: my change is fmt-clean. `rustfmt --check` on `gate_transport.rs` still reports one diff, at line 135 in the schema test that #128 added. It is on `main` and outside this change. - [x] Linter is clean: `cargo clippy --all-targets` produced no warnings. - [x] No banned language patterns - [x] No `unsafe` blocks - [x] No banned functions - [ ] REUSE / licence check: not run. No new files. - [x] No secrets ### As Applicable - [x] Documentation updated ## Testing `cargo test --test gate_transport` and `cargo clippy --all-targets` in `src/interface/parse`. `asciidoctor -w` is clean on the contract. --- _Generated by [Claude Code](https://claude.ai/code/session_01PpQVLrCbURpoXtrdvy8V3B)_ --------- Co-authored-by: Claude <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary
Follows up on #118 (and upstream hyperpolymath/verisimdb#299) by clarifying directly on
OctadSchema, theVCLSv1 wire codec, thevclt-gatecontract, and the terminology docs that:OctadSchemaandVCLSv1 wire format remain fixed unless their contracts are deliberately changed in a versioned update;OctadSchema/vclt-gateJSON do not remove a slot or signal profile membership; andReflconformance proofs without making any breaking schema change.Refs #118.
Changes
src/core/Schema.idr,src/interface/WireDecode.idr,src/interface/parse/src/schema.rs,src/interface/parse/src/wire.rs,src/interface/parse/WIRE-FORMAT.adoc): Document thatOctadSchemaandVCLSv1 carry all eight modality slots in canonical record order with no modality-count prefix, remain fixed unless deliberately changed by a versioned contract update, and reject non-eight-slot streams (Truncated/TrailingBytes).docs/standards/MODALITY-PROFILES.adoc,docs/decisions/0007-modality-profiles-vs-octad-schema.adoc,docs/vclt-gate-contract.adoc,docs/wikis/GLOSSARY.adoc,README.adoc,CHANGELOG.adoc): Use modality profile strictly for a generic, implementation-specific selection of modalities, clarify that it does not imply arbitrary-cardinality wire support, and cross-reference the new test and proof witnesses.VCLSv1 wire tests (src/interface/parse/tests/wire.rs): Addschema_roundtrip,schema_decoder_total_on_garbage,schema_decoder_total_with_valid_header, andvcls_wire_format_enforces_fixed_eight_slot_octad_schema(verifying that< 8slots fail withWireError::Truncated,8slots round-trip, and> 8slots fail withWireError::TrailingBytes).Reflconformance proofs (src/interface/WireConformance.idr): AddconformS_sixSlotsTruncated(fromWireSchema sixSlotSchemaWire = Left Truncated) andconformS_nineSlotsTrailing(fromWireSchema nineSlotSchemaWire = Left TrailingBytes).src/interface/parse/tests/gate.rs,src/interface/parse/tests/gate_transport.rs): Addempty_modality_slot_still_exists_in_octad_schemaandomitted_schema_keys_normalize_to_fixed_eight_slot_octad_schema.RSR Quality Checklist
Required
just testor equivalent)just fmtor equivalent)unsafeblocks without// SAFETY:commentsbelieve_me,unsafeCoerce,Obj.magic,Admitted,sorry)just license-check).envfiles includedAs Applicable
.machine_readable/STATE.a2mlupdated (if project state changed).machine_readable/ECOSYSTEM.a2mlupdated (if integrations changed).machine_readable/META.a2mlupdated (if architectural decisions changed)TOPOLOGY.mdupdated (if architecture changed)CHANGELOGor release notes updatedsrc/interface/abi/andsrc/interface/ffi/consistent)Testing
bash tests/aspect_tests.sh(7/7 passed)sh scripts/honesty-guard.sh(Clean)sh scripts/check-ffi-header.sh(OK)INPUT_PATHS_IGNORE="assail-classifications.a2ml" bash .githooks/validate-a2ml.sh(120/120 valid, 0 errors/warnings)git diff --check(clean)parse-gate.yml,proof-corpus.yml,rust-ci.yml,e2e.yml,governance.yml,reuse.yml)Screenshots
N/A (documentation, tests, and compile-time proof corpus).