Skip to content

Add numeric registry validator and configurable resource budgets #10277

Open

Description

@dezren39

Problem and goal

Apply numeric-kind validation at array writes while distinguishing operational parser limits from numeric domain limits.

Version and design basis

Version: V3. 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#9122--numeric-registry-family (section: #9122 — Numeric registry family).
Tier: recommended.
Statement IDs: S4.64, S4.65, S4.66, S4.67, S4.68, S4.69, S4.70, S4.71, S4.72, S4.73
Enables: Numeric semantics without a third address core.

Scope and ownership

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

  • pkgs/id/crates/id-store/src/numeric_registry.rs (new; owner: A9122-numeric-registry)
  • pkgs/id/crates/id-store/tests/numeric_registry.rs (new; owner: A9122-numeric-registry)
    Hard dependencies (native blockers): A9116-registry-state — Requires versioned local registry read/mutate operations and mutation authorization check from A9116-registry-state.; A9122-numeric-order — Requires type-first exact comparator with negative magnitude reversal and bounded-work exponent compare from A9122-numeric-order.; 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-store/tests/numeric_registry.rs first. Proposed command: cargo test -p id-store --test numeric_registry
Oracle: reference — expected Namespace policy plus NumericValue validator; no max magnitude/precision semantic rule.; verifier: Run the named independent reference procedure on the same inputs and compare typed outputs/errors exactly..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Disable new numeric writes under this profile; retain its decoder for stored values and do not coerce or rewrite existing keys during rollback.

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

    🤖 Agent note · blocked

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Task 19209 (triage) — dependency-blocked on #10257 (A9116-registry-state); second hard blocker #10245 also open. Task 19209 blocked with reason-class dependency, dep recheck TTL 3 days.

    Fresh verification this run (prior preflight: task 17116, 2026-11-14, also blocked):

    With both named native blockers open, the slice's oracle (cargo test -p id-store --test numeric_registry) cannot be built against stable interfaces. When #10257 (and then #10245) close, the dep recheck revives this task.

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    actor: repo-worker-code (openchamber-scheduled-lane, lane code-g)
    event: blocked
    task: 17116
    reason_class: blocked
    summary: Preflight only, no implementation. Native blockers checked fresh: #10160 CLOSED; #10245 OPEN; #10257 OPEN. Blocked on #10245 and #10257 until both close.

  5. removed their assignment
    on Nov 20, 2026
  6. added
    work/assignedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 20, 2026
  7. 9 remaining items

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triage-complete
    task: 17116
    lane: agent-next-01
    worker: agent-next-01
    origin: fleet-agent-next

    Fresh native-blocker preflight at 2026-11-23T04:30Z: #10160 CLOSED, #10245 CLOSED, and #10257 CLOSED. Per this task's preflight-only boundary, no implementation or production rollout was performed. The exact approved oracle cargo test -p id-store --test numeric_registry was run under the shared fleet build lock and currently reports no test target named numeric_registry (the crate lists only content_store, graph_encoding_bakeoff, graph_index_rebuild, and store_traits). A bounded implementation follow-on for the approved A9122-numeric-registry slice is now live as queue task 21120; no unrelated changes are included.

  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1\nevent: pr-opened\ntask: 21120\n\nImplemented the approved A9122 numeric registry slice in PR #12899: policy-backed kind validation, operational NumericLimits/resource_limit handling via the existing comparator, large-valid-value admission without semantic magnitude/precision caps, and an opaque admitted key that leaves RegistryState authorization/generation unchanged. Required CI command: cargo test -p id-store --test numeric_registry. No production rollout.

  10. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: stood-down
    task: 21120
    lane: lane-fj (archer)
    stage: singular-ownership-check

    fleet agent next handed task 21120 to this lane at ~05:06Z, but PR #12899 (opened 04:46Z by another worker for this same task) already implements the approved A9122 slice and is open. Standing down to avoid duplicate work; the PR owner carries the slice to merge/close.

  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  12. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    task: 21120
    lane: agent-next-16
    stage: pr-open-ci-review

    Fresh PR readback: #12899 remains OPEN at head e1ba0084ee11a666920cbe477deaf8fd3575e3f9, with the approved three-file scope. Current checks are CodeRabbit NEUTRAL/rate-limited and Proof SKIPPED; the required cargo test -p id-store --test numeric_registry check is not present. The latest Codex review metadata reports has_any_findings=true and has_unresolved_findings=true.

    No code changes were made by this resume. Resume condition: fresh substantive CI including the named cargo test, then disposition all Codex findings and merge or fix #12899 under the standing criteria.

  13. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: verification-complete
    task: 21120
    worker: felix (Muse sandbox seat)
    at: 2026-11-23

    Independent verification of the A9122-numeric-registry slice (this issue) against PR #12899, which already implements it (opened by another worker for task 21120). This lane stood off duplicating that PR and verified it instead.

    Preflight (fresh): native blockers #10160, #10245, #10257 all CLOSED. Premise: no numeric_registry module exists on main — fail-before holds (the oracle test target does not exist there).

    Design review vs A-9122.1 (S4.64–S4.73): the module enforces the namespace kind policy over the stable kind tags before any comparator work (KindNotAllowed, code kind_not_allowed), then exercises id-core's exact comparator under the policy's NumericLimits, so operational budget exhaustion returns resource_limit — never a semantic magnitude/precision error. There is no maximum magnitude/precision rule: a 5,000-digit decimal is admitted under a sufficient budget. Admitted keys are opaque; generation and authorization stay with RegistryState/RegistryAuthorizer (the A9116 seam is used, not duplicated). NaN/infinity are unrepresentable in the BigInt-based NumericValue, so the ordered-registry rejection of non-finite values holds by construction.

    Oracle (laptop amd-6, under ~/tools/fleet-build-lock, at PR head e1ba008): cargo test -p id-store --test numeric_registry → 4 passed, 0 failed (disallowed-kind rejection; over-budget resource_limit; large valid value admitted; admitted key does not bypass versioned registry authorization). The PR body noted this command had not been run by its author; it has now been run at the proper venue.

    Boundary probes (verification-only scratch tests in a disposable laptop checkout, not part of the PR): magnitude exactly at the budget is admitted (the edge is inclusive — only len > limit refuses); a 9-byte-magnitude exponent against an 8-byte budget returns resource_limit (exponents are budgeted parts); decimal 1e(10^30) is admitted without materializing the power; the binary-float kind is rejected under an integer+decimal-only policy. 4 passed, 0 failed.

    Not run to completion: the full cargo test -p id-store suite — cut short during dependency-graph compilation under heavy fleet load (load ~45). The PR's only shared-file change is one pub mod line in lib.rs; the library and the oracle target compile and pass.

    One scope note for the merger: the issue assigns crate-root wiring to 9110-02, but the PR necessarily includes that one pub mod numeric_registry; line — without it the module and its test target are unreachable.

    Recommendation: merge PR #12899. It satisfies this issue's oracle and scope (implementation + tests only, no production rollout), and the issue can close on that merge (the PR carries Closes #10277).

  14. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Released by felix (outcome: done). Task 21120: slice already implemented in open PR #12899 (another worker, same task); felix lane verified instead of duplicating. Blockers #10160/#10245/#10257 all closed. Oracle cargo test -p id-store --test numeric_registry: 4/4 pass on amd-6 under fleet-build-lock at PR head e1ba008; boundary probes 4/4 pass (at-budget edge inclusive, exponent budgeted -> resource_limit, 1e(10^30) admitted unmaterialized, excluded kind rejected). Full id-store suite not run to completion (cut short in dependency compilation under load ~45) - disclosed on the issue. Verification record: #10277 comment 7094238994. PR #12899 awaits Felix merge (carries Closes #10277).

  15. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: PR #12899 MERGED by Felix — #10277 complete
    by: agent felix (kind muse, Muse sandbox seat), merging after an independent verification lane
    at: 2026-11-23

    Felix drew task 21120 and dispatched a lane, which found this PR already standing for the same task and did the right thing: verified instead of duplicating. Its verification record is above (comment 7094238994): design read against A-9122.1 S4.64–S4.73, the oracle suite run at the proper venue for the first time (4/4 on amd-6), and four boundary probes (budget edge inclusive; over-budget exponent -> resource_limit; huge decimal admitted without materializing; float kind refused under an integer+decimal policy).

    On that evidence I merged PR #12899 (+263/−0, 3 files, no new dependencies). One disclosed gap, accepted at merge: the full cargo test -p id-store suite was not run to completion (the lane cut it under fleet-wide load ~45); the change is additive — a new module, its test target, and one pub mod line — and the lib + oracle target compile and pass. Main's CI exercises id-store from here.

    The one-line crate-root wiring (assigned to 9110-02 by the issue) is in the PR because without it the module is unreachable; it is a wiring line, not a design change.

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