Skip to content

feat(research): consume snapshot-backed CEX costs - #782

Merged
proerror77 merged 30 commits into
mainfrom
codex/cex-research-evaluator-v2
Aug 9, 2026
Merged

proerror77 merged 30 commits into
mainfrom
codex/cex-research-evaluator-v2

Conversation

@proerror77

Copy link
Copy Markdown
Owner

Change contract

Make CEX evaluation consume V2 snapshot fee, funding, and verified order-lifecycle latency evidence. Mission-supplied optimistic values must exactly match the bound snapshot; historical V1 evidence remains readable but cannot execute.

Issue relationship

Refs #773

Out of scope

Materialization, evidence download/readback, production jobs, and live trading activation are separate rollout units.

Dependencies and merge order

PR #781 must merge first; this PR is based on its exact head.

Focused validation

  • cargo test -p alpha-engine --locked (83 passed, 1 ignored live credential test)
  • macOS app check reaches the existing unrelated Linux-only libc::RUSAGE_THREAD blocker in polymarket_upload.rs; exact Linux CI is required.
  • Counterexample: a mission with zero fee against a nonzero snapshot is rejected before evidence is written.

Rollout and rollback

Research-only; no runtime mutation. Revert before enabling the V2 materializer if evaluation review rejects the binding.

Scope exception

None

Sonic Shih added 19 commits August 10, 2026 02:31
…ntract-v2

# Conflicts:
#	agent-worktree.yml
…into codex/cex-research-evaluator-v2

# Conflicts:
#	agent-worktree.yml
…into codex/cex-research-evaluator-v2

# Conflicts:
#	agent-worktree.yml
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@proerror77, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 55 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a5e728fd-767e-43ba-b6a8-ccdf7ce383c0

📥 Commits

Reviewing files that changed from the base of the PR and between 02968ad and de455cd.

📒 Files selected for processing (12)
  • agent-worktree.yml
  • rust_hft/alpha-harness/app/src/data_mission.rs
  • rust_hft/alpha-harness/app/src/governance.rs
  • rust_hft/alpha-harness/app/src/mission.rs
  • rust_hft/alpha-harness/app/src/mission_runner.rs
  • rust_hft/alpha-harness/engine/src/engines/mcts.rs
  • rust_hft/alpha-harness/engine/src/engines/mod.rs
  • rust_hft/alpha-harness/engine/src/evaluation.rs
  • rust_hft/alpha-harness/engine/src/formula_evaluator.rs
  • rust_hft/alpha-harness/engine/src/lib.rs
  • rust_hft/alpha-harness/onnx-evaluator/src/lib.rs
  • rust_hft/research-core/manifest/src/lib.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Base automatically changed from codex/cex-research-contract-v2 to main August 9, 2026 19:56
Sonic Shih added 2 commits August 10, 2026 03:57
…aluator-v2

# Conflicts:
#	agent-worktree.yml
#	rust_hft/research-core/manifest/src/lib.rs
@proerror77
proerror77 marked this pull request as ready for review August 9, 2026 19:58
@proerror77
proerror77 enabled auto-merge (squash) August 9, 2026 19:58
@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head d1721ee

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d1721ee366

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread rust_hft/alpha-harness/app/src/data_mission.rs
Comment thread rust_hft/alpha-harness/app/src/data_mission.rs Outdated
@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head a2ec2fe

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a2ec2fe3c4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread rust_hft/alpha-harness/app/src/mission_runner.rs
Comment thread rust_hft/alpha-harness/app/src/data_mission.rs
@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head 837641d: verify V2 rebate enforcement, non-CEX funding isolation, and V1 promotion block.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 837641dacf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread rust_hft/alpha-harness/engine/src/evaluation.rs Outdated
@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head e91228c

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e91228cc0c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread rust_hft/alpha-harness/app/src/governance.rs
@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head daf46c7: verify explicit PIT funding scope and V1 deployment-signing block.

…aluator-v2

# Conflicts:
#	agent-worktree.yml
@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head 9507fd2 after main integration

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9507fd2102

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread rust_hft/alpha-harness/app/src/governance.rs Outdated
Comment thread rust_hft/alpha-harness/engine/src/evaluation.rs
@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head 9ea7637: CI-only test shadowing fix; verify evaluator V2 cost and promotion gates remain correct.

@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head a56a4d5: final CI compile fix only; both fee and funding fixtures no longer shadow the helper.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: a56a4d5769

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head b6bb111: verify final governance compile corrections preserve V1 costs and V2 promotion/signing enforcement.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b6bb111f51

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread rust_hft/alpha-harness/app/src/data_mission.rs
@proerror77

Copy link
Copy Markdown
Owner Author

@codex review exact head de455cd: verify every V2 execution entry point now requires exact snapshot fee/funding/latency costs before PIT rows are built.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: de455cd0df

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@proerror77
proerror77 merged commit fd3afe6 into main Aug 9, 2026
45 checks passed
@proerror77
proerror77 deleted the codex/cex-research-evaluator-v2 branch August 9, 2026 21:53
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.

1 participant