Skip to content

Implement nullable ordered byte-slot address type and codec #10182

Closed

Description

@dezren39

Problem and goal

Encode/decode zero-or-more Option slots, preserving null versus empty bytes and slot order.

Version and design basis

Version: V2. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-addressing/versioned-design.md#9118--array-address-core (section: #9118 — Array-address core).
Tier: crucial.
Statement IDs: S4.23, S4.24, S4.25, S4.26, S4.27, S4.28
Enables: General array-address core semantics and URI slot payload model.

Scope and ownership

Parent: #9118 (native component/meta parent).

  • pkgs/id/crates/id-core/src/array_address.rs (new; owner: A9118-array-codec)
  • pkgs/id/crates/id-core/tests/array_address.rs (new; owner: A9118-array-codec)
    Hard dependencies (native blockers): 9110-02 — Adds this consumer module to the crate root and owns Cargo manifest/export changes; this slice owns only its distinct module and tests.
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate pkgs/id/crates/id-core/tests/array_address.rs first. Proposed command: cargo test -p id-core --test array_address
Oracle: golden — expected Typed reference vector and byte-for-byte canonical round trip; values with different null/empty structure never collide.; verifier: Compare output bytes and typed outcomes with the cited fixed golden vectors; fail on any difference..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Stop new writes using this array codec/order profile; retain the decoder and stored bytes until an explicit migration proves round-trip equivalence.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    state: blocked (dependency)
    task: 17031 (lane any-d, repo-worker-code)
    issue: #10182 — Implement nullable ordered byte-slot address type and codec (slice A9118-array-codec)

    Preflight (mandatory triage/preflight packet): native GitHub blocked_by for #10182 = #10160, verified fresh 2026-11-14T17:20Z. #10160 ("Define versioned capability-oriented port contracts") is still OPEN.

    Per the packet's acceptance contract, no implementation was started. Task 17031 is self-blocked as a dependency block on #10160 (--blocked-by-issue); the broker will return it to the pool automatically when #10160 closes. No production rollout is authorized by this packet.

  3. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — task 17031 preflight recorded (lane any-a): A9118-array-codec native blocker #10160 is CLOSED — blocker gate CLEAR

    Native-blocker preflight (fresh, 2026-11-14T18:24Z):

    Result: the mandatory triage/preflight is complete and the gate is CLEAR. Per this packet's preflight-only scope, no implementation was performed by this task; implementation proceeds under the slice's own delivery flow now that every native blocker is closed.

  4. added
    status/triagedTriaged and routed (see agent note)
    work/assignedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    status/triagedTriaged and routed (see agent note)
    on Nov 14, 2026
  5. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — task 17150 DONE (lane any-a): A9118-array-codec implemented and merged

    Delivered (exactly the 2 owned files):

    • pkgs/id/crates/id-core/src/array_address.rs — ArrayAddress (ordered Option slots, S4.23–S4.28): spec ordering via the slot vector's Ord; versioned canonical binary codec (v1) rejecting bad version/truncated/trailing/unknown-tag input; URI slot tokens (~ for null, b. + percent-encoded octets). Pure std, no new dependencies.
    • pkgs/id/crates/id-core/tests/array_address.rs — golden vectors + round-trip/ordering/rejection/URI tests. The crate-root export remains slice 9110-02's per the ownership split (lib.rs untouched); the test includes the module by path so the oracle runs today.

    Evidence: cargo test -p id-core --test array_address → 8 passed, 0 failed; rustfmt --check clean on both files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions