Skip to content

fix(tools): enforce duplicate-key, non-finite, and dict-type checks across NDJSON registry loaders (#159) - #164

Open
drk-ram wants to merge 1 commit into
agentrust-io:mainfrom
drk-ram:drk-ram-fix-tools-ndjson-159
Open

drk-ram wants to merge 1 commit into
agentrust-io:mainfrom
drk-ram:drk-ram-fix-tools-ndjson-159

Conversation

@drk-ram

@drk-ram drk-ram commented Oct 25, 2026

Copy link
Copy Markdown

Closes #159

Summary

  • Use loads_unique (rejecting duplicate JSON keys and NaN/Infinity) and verify isinstance(entry, dict) across tools/batch_anchor.py (is_already_anchored, load_published_entries), tools/anchor.py (_registry_is_chained), and tools/verify_checkpoint_chain.py (_load_entries).
  • Add subTest-isolated regression tests in tests/test_batch_anchor.py.

Validation

  • pytest tests/test_batch_anchor.py tests/test_anchor.py tests/test_checkpoint_record.py -q — passed (92 passed, 114 subtests passed)

@drk-ram
drk-ram requested review from a team, lywinged and rajnisht7 as code owners October 25, 2026 05:46
…cross NDJSON registry loaders (agentrust-io#159)

Signed-off-by: Raghuvar Karthik Durga <177662415+drk-ram@users.noreply.github.com>
@drk-ram
drk-ram force-pushed the drk-ram-fix-tools-ndjson-159 branch from da282df to 0486b80 Compare October 29, 2026 17:14

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(tools): enforce loads_unique across _registry_is_chained, is_already_anchored, load_published_entries, and verify_checkpoint_chain

1 participant