GeezerVison is showing github.com — Add numeric registry validator and configurable resource budgets · Issue #10277 · developing-today/code
Add numeric registry validator and configurable resource budgets #10277DescriptionProblem 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.
Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 14, 2026 dezren39 commented on Nov 17, 2026
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. dezren39 commented on Nov 17, 2026 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. dezren39 commented on Nov 23, 2026 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. dezren39 commented on Nov 23, 2026 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). dezren39 commented on Nov 23, 2026
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). dezren39 commented on Nov 23, 2026 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. dezren39 commented on Nov 23, 2026 Closed as implemented. Done: PR #12899 is merged at 65f4921. The named oracle cargo test -p id-store --test numeric_registry passed 4/4 at the PR head (same source SHA as merged); the required scope is complete. The full cargo test -p id-store suite was not run to completion under fleet load, as disclosed in the verification record; no production rollout was included.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|