Skip to content

feat(research): report immutable prediction job status - #249

Merged
proerror77 merged 1 commit into
mainfrom
codex/prediction-research-status-246
Jul 23, 2026
Merged

feat(research): report immutable prediction job status#249
proerror77 merged 1 commit into
mainfrom
codex/prediction-research-status-246

Conversation

@proerror77

@proerror77 proerror77 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Parent: #240

Closes #246

Change contract

Report read-only status for one exact immutable prediction-market research Job by explicit Kubernetes context, namespace, and Job name. Derive submitted, scheduled, image-ready, and completed from typed Job and controller-UID-bound Pod readback; only report snapshot-ready and evaluator-started when optional execution evidence matches the Job mission and snapshot annotations.

Out of scope

  • Rendering or submitting Jobs
  • Collector, snapshot compiler, evaluator, MCTS, deployment, promotion, or live-trading changes
  • Cloud warm-worker provisioning or benchmarking
  • CI/CD performance changes

Dependency or merge order

Depends on #242 / #247, already merged. No remaining merge dependency. The cloud warm-worker benchmark in #243 may consume this read-only status contract after merge.

Focused validation

  • 14 focused prediction-dispatch status tests
  • 94/94 alpha-harness tests on the rebased exact head
  • cargo clippy -p alpha-harness -- -D warnings
  • Targeted rustfmt check and git diff --check
  • Two independent read-only reviews: specification APPROVE and standards APPROVE
  • Scope: 3 files, 330 insertions and 2 deletions

Rollout / rollback impact

Rollout adds a read-only CLI subcommand that uses only Kubernetes get operations and performs no runtime mutation. Rollback is a single-PR revert; existing render and submit behavior is unchanged.

@coderabbitai

coderabbitai Bot commented Jul 23, 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: 26 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

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: 699f1515-a01b-4290-87f5-821d665afc38

📥 Commits

Reviewing files that changed from the base of the PR and between 27416d2 and 704e016.

📒 Files selected for processing (3)
  • deployment/aliyun/research/README.md
  • rust_hft/alpha-harness/app/src/cli.rs
  • rust_hft/alpha-harness/app/src/prediction_dispatch.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/prediction-research-status-246

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.

@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: 704e0165ec

ℹ️ 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 on lines +324 to +328
if evidence.lane != "prediction_market"
|| evidence.mission_id != mission_id
|| normalized_sha256("evidence mission", &evidence.mission_sha256)? != mission_sha256
|| normalized_sha256("evidence snapshot", &evidence.snapshot_archive_sha256)?
!= snapshot_sha256

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Bind evidence to the exact Job attempt

When a resumed or repeated attempt uses the same mission ID/SHA and snapshot SHA, its evidence is indistinguishable here from evidence produced by the prior Job, so supplying the prior attempt's file sets both research milestones to true even if the requested Job never started. The immutable Job annotations already distinguish attempts through the attempt/result identity, but none of that identity is present in or checked against StatusEvidence; require evidence bound to the attempt, result identity, or Job UID before advancing these per-Job milestones.

AGENTS.md reference: AGENTS.md:L50-L54

Useful? React with 👍 / 👎.

@proerror77
proerror77 merged commit cdb821c into main Jul 23, 2026
33 checks passed
@proerror77
proerror77 deleted the codex/prediction-research-status-246 branch July 23, 2026 04:31
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.

Report read-only prediction research Job milestones

1 participant