Repository navigation
fix(protocol): unify Actor serial validation - #403
Merged
Merged
Conversation
kaito-harry
requested changes
Nov 9, 2026
kaito-harry
left a comment
Contributor
There was a problem hiding this comment.
The shared parser and both URI specs agree on the canonical 54-bit serial. GitHub CI Gate passed, and an isolated actr-protocol --all-features run passed 107 tests. The shared URI test vectors required by #399 are the remaining acceptance item.
Move canonical and rejected Actor URI/ActorId serial cases into a shared JSON fixture consumed by the Rust assertions. Keep exact decimal expectations as strings and cover a value above JavaScript's safe integer range. Constraint: Keep exact serial values as JSON strings Confidence: high Scope-risk: narrow
kaito-harry
approved these changes
Nov 9, 2026
kaito-harry
left a comment
Contributor
There was a problem hiding this comment.
The shared fixture required by #399 is in place, and the Rust URI and ActorId assertions consume all 13 cases. I verified the exact serial values with Node BigInt, including the values above JavaScript’s safe integer limit, and reran the isolated actr-protocol suite with all features. All 107 tests passed. GitHub CI Gate is still running.
alinejun
added a commit
that referenced
this pull request
Nov 10, 2026
## Summary - add language-neutral `actr://` parsing and normalization vectors under `contracts/actr/test-vectors/uri.json` - exercise the real `ActrUri` parser, normalized output, public fields, stable error codes, normalization idempotence, ActorId conversion, and local-installation checks - document the fixture and its Cargo integration-test command - encode Unicode inputs with JSON escapes so the fixture passes the language policy while preserving all 49 decoded vectors Canonical Actor serial validation and its dedicated boundary fixture are already on `main` via #403. This PR adds the broader URI conformance fixture. Fixes #401. ## Validation - `cargo fmt` - `cargo fmt --all --check` - `cargo clippy --fix --lib --bins --all-targets --allow-dirty -p actr-protocol --all-features --locked` - `cargo test -p actr-protocol --all-features --locked --quiet`: **109 passed, 0 failed**; 4 documentation tests remain ignored - `python3 .github/scripts/check_cjk.py`: **clean** - `python3 -I -m json.tool contracts/actr/test-vectors/uri.json` - `cargo test -p actr-protocol --test uri --all-features --locked --quiet`: **2 passed**, covering all 49 URI vectors - Verified the escaped fixture decodes to exactly the same JSON values as before - URI integration coverage: **2 tests**, consuming **10 valid and 39 invalid vectors** - `git diff --check` ## Baseline CI blocker [Dependency Audit](https://github.com/Actrium/actrium/actions/runs/42598835869/job/129098104927) reports `RUSTSEC-2026-0459` for `libsqlite3-sys 0.30.1`. `Cargo.toml` and `Cargo.lock` are byte-identical to `main` at `1dd15c89fef6feaa46806311dbe45b00808e9eb9`. The advisory requires `libsqlite3-sys >=0.39.0`, while both `rusqlite 0.32.1` and `sqlx-sqlite 0.8.6` depend on the 0.30.1 line. Resolving this baseline failure requires a coordinated database dependency update.
This was referenced Nov 10, 2026
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
0or lowercase hexadecimal without leading zeros, up to2^54 - 1ActrUriandActrId, so every accepted Actor URI can be converted to anActrIdcontracts/actr/test-vectors/actor-uri-serial.json, consumed directly by the Rust assertionsFixes #399.
Validation
cargo fmtcargo fmt --all --checkcargo clippy --fix --lib --bins --all-targets --allow-dirty -p actr-protocol --all-features --lockedcargo test -p actr-protocol --all-features --locked --quiet: 107 passed, 0 failed; 4 documentation tests remain ignoredgit diff --check