Payload
{
"ref": "refs/heads/gh-readonly-queue/main/pr-180-de32340cbdba684e7cec21ab0da2c3fd5002bed8",
"before": "0000000000000000000000000000000000000000",
"after": "9861be20cbe77f3f633e6e62c760040f9aaa82b1",
"repository": {
"id": 1144186344,
"node_id": "R_kgDORDLl6A",
"name": "iridium",
"full_name": "darkmatter/iridium",
"private": true,
"owner": {
"name": "darkmatter",
"email": "hello@dm.sh",
"login": "darkmatter",
"id": 17834193,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE3ODM0MTkz",
"avatar_url": "https://avatars.githubusercontent.com/u/17834193?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/darkmatter",
"html_url": "https://github.com/darkmatter",
"followers_url": "https://api.github.com/users/darkmatter/followers",
"following_url": "https://api.github.com/users/darkmatter/following{/other_user}",
"gists_url": "https://api.github.com/users/darkmatter/gists{/gist_id}",
"starred_url": "https://api.github.com/users/darkmatter/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/darkmatter/subscriptions",
"organizations_url": "https://api.github.com/users/darkmatter/orgs",
"repos_url": "https://api.github.com/users/darkmatter/repos",
"events_url": "https://api.github.com/users/darkmatter/events{/privacy}",
"received_events_url": "https://api.github.com/users/darkmatter/received_events",
"type": "Organization",
"user_view_type": "public",
"site_admin": false
},
"html_url": "https://github.com/darkmatter/iridium",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/darkmatter/iridium",
"forks_url": "https://api.github.com/repos/darkmatter/iridium/forks",
"keys_url": "https://api.github.com/repos/darkmatter/iridium/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/darkmatter/iridium/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/darkmatter/iridium/teams",
"hooks_url": "https://api.github.com/repos/darkmatter/iridium/hooks",
"issue_events_url": "https://api.github.com/repos/darkmatter/iridium/issues/events{/number}",
"events_url": "https://api.github.com/repos/darkmatter/iridium/events",
"assignees_url": "https://api.github.com/repos/darkmatter/iridium/assignees{/user}",
"branches_url": "https://api.github.com/repos/darkmatter/iridium/branches{/branch}",
"tags_url": "https://api.github.com/repos/darkmatter/iridium/tags",
"blobs_url": "https://api.github.com/repos/darkmatter/iridium/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/darkmatter/iridium/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/darkmatter/iridium/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/darkmatter/iridium/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/darkmatter/iridium/statuses/{sha}",
"languages_url": "https://api.github.com/repos/darkmatter/iridium/languages",
"stargazers_url": "https://api.github.com/repos/darkmatter/iridium/stargazers",
"contributors_url": "https://api.github.com/repos/darkmatter/iridium/contributors",
"subscribers_url": "https://api.github.com/repos/darkmatter/iridium/subscribers",
"subscription_url": "https://api.github.com/repos/darkmatter/iridium/subscription",
"commits_url": "https://api.github.com/repos/darkmatter/iridium/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/darkmatter/iridium/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/darkmatter/iridium/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/darkmatter/iridium/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/darkmatter/iridium/contents/{+path}",
"compare_url": "https://api.github.com/repos/darkmatter/iridium/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/darkmatter/iridium/merges",
"archive_url": "https://api.github.com/repos/darkmatter/iridium/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/darkmatter/iridium/downloads",
"issues_url": "https://api.github.com/repos/darkmatter/iridium/issues{/number}",
"pulls_url": "https://api.github.com/repos/darkmatter/iridium/pulls{/number}",
"milestones_url": "https://api.github.com/repos/darkmatter/iridium/milestones{/number}",
"notifications_url": "https://api.github.com/repos/darkmatter/iridium/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/darkmatter/iridium/labels{/name}",
"releases_url": "https://api.github.com/repos/darkmatter/iridium/releases{/id}",
"deployments_url": "https://api.github.com/repos/darkmatter/iridium/deployments",
"created_at": 1769601223,
"updated_at": "2026-06-10T06:47:10Z",
"pushed_at": 1781074473,
"git_url": "git://github.com/darkmatter/iridium.git",
"ssh_url": "git@github.com:darkmatter/iridium.git",
"clone_url": "https://github.com/darkmatter/iridium.git",
"svn_url": "https://github.com/darkmatter/iridium",
"homepage": "https://switchblade.app",
"size": 56795,
"stargazers_count": 0,
"watchers_count": 0,
"language": "TypeScript",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"has_discussions": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 4,
"license": null,
"allow_forking": false,
"is_template": false,
"web_commit_signoff_required": false,
"has_pull_requests": true,
"pull_request_creation_policy": "all",
"topics": [],
"visibility": "internal",
"forks": 0,
"open_issues": 4,
"watchers": 0,
"default_branch": "main",
"stargazers": 0,
"master_branch": "main",
"organization": "darkmatter",
"custom_properties": {}
},
"pusher": {
"name": "github-merge-queue[bot]",
"email": null
},
"forced": false,
"organization": {
"login": "darkmatter",
"id": 17834193,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE3ODM0MTkz",
"url": "https://api.github.com/orgs/darkmatter",
"repos_url": "https://api.github.com/orgs/darkmatter/repos",
"events_url": "https://api.github.com/orgs/darkmatter/events",
"hooks_url": "https://api.github.com/orgs/darkmatter/hooks",
"issues_url": "https://api.github.com/orgs/darkmatter/issues",
"members_url": "https://api.github.com/orgs/darkmatter/members{/member}",
"public_members_url": "https://api.github.com/orgs/darkmatter/public_members{/member}",
"avatar_url": "https://avatars.githubusercontent.com/u/17834193?v=4",
"description": ""
},
"enterprise": {
"id": 469843,
"slug": "darkmatter",
"name": "darkmatter",
"node_id": "E_kgDOAAcrUw",
"avatar_url": "https://avatars.githubusercontent.com/b/469843?v=4",
"description": "",
"website_url": "darkmatter.io",
"html_url": "https://github.com/enterprises/darkmatter",
"created_at": "2025-09-07T16:01:00Z",
"updated_at": "2026-06-07T16:53:26Z"
},
"sender": {
"login": "github-merge-queue[bot]",
"id": 118344674,
"node_id": "BOT_kgDOBw3L4g",
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-merge-queue%5Bbot%5D",
"html_url": "https://github.com/apps/github-merge-queue",
"followers_url": "https://api.github.com/users/github-merge-queue%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-merge-queue%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-merge-queue%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-merge-queue%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-merge-queue%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-merge-queue%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-merge-queue%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-merge-queue%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-merge-queue%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"installation": {
"id": 131074261,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTMxMDc0MjYx"
},
"created": true,
"deleted": false,
"base_ref": null,
"compare": "https://github.com/darkmatter/iridium/compare/gh-readonly-queue/main/pr-180-de32340cbdba684e7cec21ab0da2c3fd5002bed8",
"commits": [],
"head_commit": {
"id": "9861be20cbe77f3f633e6e62c760040f9aaa82b1",
"tree_id": "83b51bcd14bff6fc9cc4d5c86fb6f7cb9592427c",
"distinct": true,
"message": "fix(cl-intelligence): unify money-gate math, strict readers, strict CLI flags (#180)\n\n* fix(cl-intelligence): unify money-gate math, strict readers, strict CLI flags\n\npercentDifference: four divergent formulas guarded nominally identical\n0.5% tolerance gates (symmetric max-denominator, |v-e|/|e| unguarded,\n|(a-b)/b| with Infinity fallback, denominator floored at 1). The same\nnumbers could pass one gate and fail the gate cross-validating it —\nreplay-card and replay-capital-lineage compute the same deposit\ncomparison with different formulas. One shared implementation now:\nsymmetric, percent units, both-zero = agreement, non-finite = +Infinity\n(fail-closed — previously NaN propagation made 'diff > tolerance' FALSE,\nso corrupt inputs counted as agreement in replay-position and\nindependent-price-provider). USD deposit gates share the dust floor\n(minDenominator 1). Zero existing fixtures flipped at boundaries.\n\nReaders: readOptionalNumber in replay-capital-lineage and\nreplay-benchmark-return now throws on non-finite row values present\n(was: silent skip / undefined -> missing-evidence path). Corrupt USD\nrows fail loudly.\n\nBoundary pinning: 12 new at-boundary tests pin DEPOSIT_TOLERANCE_PCT,\nHODL_DENOMINATOR_TOLERANCE_PCT, DEPOSIT_BASIS_DISAGREEMENT_TOLERANCE_PCT\nand the 0.05% SQL-USD cross-check — mutation-verified (each constant's\n10x loosening now fails tests; all previously survived).\n\nStrict CLI flags: parseStrict() helper backported to 17 mri-based bin\nCLIs (was 2 of 34 strict). A typo'd safety flag now exits 2 naming the\nflag instead of silently dropping the gate. Spawn-verified smoke test\ncovers all strict CLIs; hand-rolled extension-apr-* parsers classified\nas a visible known gap.\n\nCanonical SQL drift test: the 3 sha256 pins are now checked against the\ntracked docs/dune SQL files in tests.\n\nindex.ts: removed 36 replay re-exports (699 -> 378 lines) — no app or\npackage imports any replay symbol from the entrypoint; replay stays\npackage-internal.\n\nCo-Authored-By: Claude Fable 5 <noreply@anthropic.com>\n\n* fix(cl-intelligence): bind negative number values in parseStrict\n\nCodex review blocker: mri parses a bare negative value after a\nvalue-taking flag as a short-flag cluster (--deposit-usd -5 ->\n{'5': true, 'deposit-usd': ''}), silently corrupting the option —\nthe same silent-drop class this PR closes. parseStrict now joins\ndeclared value-flag + negative-number pairs into --flag=-N before\nmri parses, with alias support. Regression tests added.\n\nCo-Authored-By: Claude Fable 5 <noreply@anthropic.com>\n\n* fix(cl-intelligence): restore replay barrel exports\n\n* test(cl-intelligence): derive strict-flags paths from import.meta.url\n\nCodex PR-review P2: resolve() against process.cwd() broke the suite\nwhen vitest runs from the repo root. Paths now derive from the test\nfile's own location.\n\nCo-Authored-By: Claude Fable 5 <noreply@anthropic.com>\n\n---------\n\nCo-authored-by: Claude Fable 5 <noreply@anthropic.com>",
"timestamp": "2026-06-10T06:54:17Z",
"url": "https://github.com/darkmatter/iridium/commit/9861be20cbe77f3f633e6e62c760040f9aaa82b1",
"author": {
"name": "Farhan",
"email": "249513614+fkb032@users.noreply.github.com",
"date": "2026-06-10T00:54:17-06:00",
"username": "fkb032"
},
"committer": {
"name": "GitHub",
"email": "noreply@github.com",
"date": "2026-06-10T06:54:17Z",
"username": "web-flow"
},
"added": [
"packages/cl-intelligence/src/bin/parse-strict.test.ts",
"packages/cl-intelligence/src/bin/parse-strict.ts",
"packages/cl-intelligence/src/bin/strict-flags.test.ts",
"packages/cl-intelligence/src/canonical-sql-drift.test.ts",
"packages/cl-intelligence/src/percent-difference.test.ts",
"packages/cl-intelligence/src/percent-difference.ts"
],
"removed": [],
"modified": [
"packages/cl-intelligence/src/bin/calibrate.ts",
"packages/cl-intelligence/src/bin/diff-cli.ts",
"packages/cl-intelligence/src/bin/dune-freeze.ts",
"packages/cl-intelligence/src/bin/replay-aerodrome-stake-state.ts",
"packages/cl-intelligence/src/bin/replay-benchmark-return.ts",
"packages/cl-intelligence/src/bin/replay-capital-lineage.ts",
"packages/cl-intelligence/src/bin/replay-deposit-calibration.ts",
"packages/cl-intelligence/src/bin/replay-deposit-events.ts",
"packages/cl-intelligence/src/bin/replay-deposit-price-check.ts",
"packages/cl-intelligence/src/bin/replay-deposit-raw-reconcile.ts",
"packages/cl-intelligence/src/bin/replay-execution-contract.ts",
"packages/cl-intelligence/src/bin/replay-execution-input.ts",
"packages/cl-intelligence/src/bin/replay-hodl-benchmark-return.ts",
"packages/cl-intelligence/src/bin/replay-hodl-threshold-calibration.ts",
"packages/cl-intelligence/src/bin/replay-position.ts",
"packages/cl-intelligence/src/bin/tcl.ts",
"packages/cl-intelligence/src/bin/vault-deposit-smoke.ts",
"packages/cl-intelligence/src/independent-price-provider.ts",
"packages/cl-intelligence/src/replay-benchmark-return.test.ts",
"packages/cl-intelligence/src/replay-benchmark-return.ts",
"packages/cl-intelligence/src/replay-capital-lineage.test.ts",
"packages/cl-intelligence/src/replay-capital-lineage.ts",
"packages/cl-intelligence/src/replay-card.ts",
"packages/cl-intelligence/src/replay-position.test.ts",
"packages/cl-intelligence/src/replay-position.ts"
]
}
}