René's URL Explorer Experiment


Title: fix(capture-core): reject duplicate JSON keys and non-finite numbers in load_state/sha_mapping and check seal.alg in check_seal · Issue #366 · agentrust-io/integrations · GitHub

Open Graph Title: fix(capture-core): reject duplicate JSON keys and non-finite numbers in load_state/sha_mapping and check seal.alg in check_seal · Issue #366 · agentrust-io/integrations

X Title: fix(capture-core): reject duplicate JSON keys and non-finite numbers in load_state/sha_mapping and check seal.alg in check_seal · Issue #366 · agentrust-io/integrations

Description: Summary Three state-integrity boundary gaps exist in packages/agentrust-capture-core/src/agentrust_capture_core/: Duplicate JSON keys and non-finite constants accepted in load_state (packages/agentrust-capture-core/src/agentrust_capture_...

Open Graph Description: Summary Three state-integrity boundary gaps exist in packages/agentrust-capture-core/src/agentrust_capture_core/: Duplicate JSON keys and non-finite constants accepted in load_state (packages/agent...

X Description: Summary Three state-integrity boundary gaps exist in packages/agentrust-capture-core/src/agentrust_capture_core/: Duplicate JSON keys and non-finite constants accepted in load_state (packages/agent...

Opengraph URL: https://github.com/agentrust-io/integrations/issues/366

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(capture-core): reject duplicate JSON keys and non-finite numbers in load_state/sha_mapping and check seal.alg in check_seal","articleBody":"### Summary\n\nThree state-integrity boundary gaps exist in `packages/agentrust-capture-core/src/agentrust_capture_core/`:\n\n1. **Duplicate JSON keys and non-finite constants accepted in `load_state` (`packages/agentrust-capture-core/src/agentrust_capture_core/state.py` lines 65-80):**\n   - `load_state(path)` calls bare `json.loads(path.read_text(encoding=\"utf-8\"))` without `object_pairs_hook` or `parse_constant`, accepting state/baseline files with duplicate JSON keys or `NaN`/`Infinity` constants instead of returning `None` (corrupt state).\n\n2. **`allow_nan=True` default in `sha_mapping` (`packages/agentrust-capture-core/src/agentrust_capture_core/hashing.py` lines 76-80):**\n   - `sha_mapping(value)` calls `json.dumps(value, sort_keys=True, separators=(\",\", \":\"))` without `allow_nan=False`, allowing `NaN` and `Infinity` to serialize into non-standard JSON before hashing.\n\n3. **Unchecked `seal[\"alg\"]` in `check_seal` (`packages/agentrust-capture-core/src/agentrust_capture_core/seal.py` lines 61-71):**\n   - `attach_seal` writes `{\"alg\": \"SHA-256\", \"digest\": state_digest(snapshot), \"sealed_at\": ...}`, but `check_seal` only checks `isinstance(seal.get(\"digest\"), str)` and `seal[\"digest\"] == state_digest(snapshot)`, returning `INTEGRITY_OK` even when `seal.get(\"alg\") != \"SHA-256\"`.\n\n### Proposed Fix\n\n- Reject duplicate JSON keys and `NaN`/`Infinity` constants in `load_state` (returning `None`).\n- Pass `allow_nan=False` to `json.dumps` in `sha_mapping`.\n- Check `seal.get(\"alg\") == \"SHA-256\"` in `check_seal`, returning `INTEGRITY_BROKEN` when `\"alg\"` is present and not `\"SHA-256\"`.","author":{"url":"https://github.com/drk-ram","@type":"Person","name":"drk-ram"},"datePublished":"2026-10-23T23:03:00Z","url":"https://github.com/agentrust-io/integrations/issues/366"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a6b2bf3a-78cc-317f-7b9b-76ee74061be3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA452:197342:3ED626:568E78:6AF82164
html-safe-nonce8fbfce0977f2ca054937c8cce142d2ec2c5c2181e9e48e9bee3c2d26d86afa79
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDUyOjE5NzM0MjozRUQ2MjY6NTY4RTc4OjZBRjgyMTY0IiwidmlzaXRvcl9pZCI6IjUxODIxMTE1NjE3OTA1Mjk4OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac45d80d16bcc11c60831fe4d58cc63747600cbc6b8f8e8200aedce8bf0a76aa7b
hovercard-subject-tagissue:6006716320
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/agentrust-io/integrations/366/issue_layout
twitter:imagehttps://opengraph.githubassets.com/29df0cc33fe1a583a76ec0af67ea2f776bd4fab105488318d0853ca2245925b6/agentrust-io/integrations/issues/366
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/29df0cc33fe1a583a76ec0af67ea2f776bd4fab105488318d0853ca2245925b6/agentrust-io/integrations/issues/366
og:image:altSummary Three state-integrity boundary gaps exist in packages/agentrust-capture-core/src/agentrust_capture_core/: Duplicate JSON keys and non-finite constants accepted in load_state (packages/agent...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedrk-ram
hostnamegithub.com
expected-hostnamegithub.com
None546a7c1ea6fe4760d7adf768b8f50bc606bf78c616479f24d962875fc3eab103
turbo-cache-controlno-preview
go-importgithub.com/agentrust-io/integrations git https://github.com/agentrust-io/integrations.git
octolytics-dimension-user_id290505154
octolytics-dimension-user_loginagentrust-io
octolytics-dimension-repository_id1267583801
octolytics-dimension-repository_nwoagentrust-io/integrations
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1267583801
octolytics-dimension-repository_network_root_nwoagentrust-io/integrations
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1903e4626205229231bf94a4d9dd3be1b2795df9
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/agentrust-io/integrations/issues/366#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fagentrust-io%2Fintegrations%2Fissues%2F366
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fagentrust-io%2Fintegrations%2Fissues%2F366
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=agentrust-io%2Fintegrations
Reloadhttps://github.com/agentrust-io/integrations/issues/366
Reloadhttps://github.com/agentrust-io/integrations/issues/366
Reloadhttps://github.com/agentrust-io/integrations/issues/366
agentrust-iohttps://github.com/agentrust-io
integrationshttps://github.com/agentrust-io/integrations
Codehttps://github.com/agentrust-io/integrations
Issues11 (11)https://github.com/agentrust-io/integrations/issues
Pull requests23 (23)https://github.com/agentrust-io/integrations/pulls
Actionshttps://github.com/agentrust-io/integrations/actions
Projectshttps://github.com/agentrust-io/integrations/projects
Security and quality2 (2)https://github.com/agentrust-io/integrations/security
Insightshttps://github.com/agentrust-io/integrations/pulse
https://github.com/agentrust-io/integrations
New issuehttps://github.com/login?return_to=https://github.com/agentrust-io/integrations/issues/366
New issuehttps://github.com/login?return_to=https://github.com/agentrust-io/integrations/issues/366
#370https://github.com/agentrust-io/integrations/pull/370
fix(capture-core): reject duplicate JSON keys and non-finite numbers in load_state/sha_mapping and check seal.alg in check_sealhttps://github.com/agentrust-io/integrations/issues/366#top
#370https://github.com/agentrust-io/integrations/pull/370
needs-review:MEDIUMContributor check flagged MEDIUM riskhttps://github.com/agentrust-io/integrations/issues?q=state%3Aopen%20label%3A%22needs-review%3AMEDIUM%22
https://github.com/drk-ram
drk-ramhttps://github.com/drk-ram
on Oct 23, 2026https://github.com/agentrust-io/integrations/issues/366#issue-6006716320
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Oct 23, 2026https://github.com/agentrust-io/integrations/issues/366#issuecomment-6376463063
GitHub Actionshttps://help.github.com/en/actions
AgenTrust Contributor Checkhttps://github.com/agentrust-io/.github/tree/main/.github/actions/contributor-check
github-actionshttps://github.com/apps/github-actions
needs-review:MEDIUMContributor check flagged MEDIUM riskhttps://github.com/agentrust-io/integrations/issues?q=state%3Aopen%20label%3A%22needs-review%3AMEDIUM%22
on Oct 23, 2026https://github.com/agentrust-io/integrations/issues/366#event-34098421192
drk-ramhttps://github.com/drk-ram
on Oct 29, 2026https://github.com/agentrust-io/integrations/issues/366#event-34606058674
fix(capture-core): reject duplicate JSON keys and non-finite numbers …https://github.com/drk-ram/integrations/commit/4e9cec9d658692626973550f5825fd208a7c89a1
4e9cec9https://github.com/drk-ram/integrations/commit/4e9cec9d658692626973550f5825fd208a7c89a1
Sign up for freehttps://github.com/signup?return_to=https://github.com/agentrust-io/integrations/issues/366
Sign in to commenthttps://github.com/login?return_to=https://github.com/agentrust-io/integrations/issues/366
needs-review:MEDIUMContributor check flagged MEDIUM riskhttps://github.com/agentrust-io/integrations/issues?q=state%3Aopen%20label%3A%22needs-review%3AMEDIUM%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.