Repository navigation
Conversation
Align schema, library, standalone tool and CLI candidate bounds. Signed-off-by: Srinivasa Consultants <78673153+dinakarjs@users.noreply.github.com>
This branch has not been deployed
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.
Current inclusion verifiers and the registry schema accept counts beyond the proposed portable integer range discussed in trace-spec#630. This candidate limits leaf_count to 1..9007199254740991 in the schema, installed library and standalone tool, and rejects oversized CLI fields with field-specific diagnostics. Valid leaf indices remain below the declared count. Leaf hashing is unchanged.
Draft / owner decision required. agentrust-io/trace-spec#630 is still open. This PR proposes the implementation follow-up; it does not adopt a normative rule or authorize rejecting historical entries before maintainer agreement. It is separate from merged #163, which addressed types rather than the upper bound. No matching open upper-bound fix was found in the search.
Validation on Linux/Python 3.12 at ae8aafa:
python -m unittest discover -s testspassed all 480 tests;ruff check .andgit diff --checkpassed. Dependencies installed from the hashed CI/witness/runtime requirements. Three new test methods exercise schema, both verifier implementations and both CLIs; MAX is accepted and MAX+1 is refused, with a rightmost oversized-index proof as a separate refusal. Each of the four changed validation files was individually restored to base, keeping the tests, and the focused suite failed. The installed CLI test pins the field-specific error as well as refusal. These are synthetic proof arithmetic controls without allocation of the declared tree. Signature verification is explicitly disabled only in the inclusion CLI tests.Scope limits: no live registry traversal, historical-entry inventory, hardware validation or new signature policy. Independent review, policy agreement and hosted CI remain pending.
Prepared with OpenAI Codex; DCO-signed.