Skip to content

feat(research): type Campaign recovery checkpoint contracts in Rust - #1104

Open
proerror77 wants to merge 4 commits into
mainfrom
codex/campaign-checkpoint-types-20260907
Open

feat(research): type Campaign recovery checkpoint contracts in Rust#1104
proerror77 wants to merge 4 commits into
mainfrom
codex/campaign-checkpoint-types-20260907

Conversation

@proerror77

@proerror77 proerror77 commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Change

Make the existing learning and generation-completion checkpoint formats explicit Rust contracts under alpha-domain, as the first step toward the Rust Campaign controller. Typed schema versions and outcomes reject drift; intrinsic validation rejects inconsistent child/terminal states.

Four fixtures are original outputs from the existing controller recovery test. The test gains an optional fixture export directory; production bash behavior stays unchanged. Hash checks use original bytes, while round trips check semantic field preservation.

Issue relationship

None

Validation

  • Updated branch to main 38af0810; original behavior patch is unchanged. On current head 3577ff84, all 4 checkpoint tests and all 13 controller recovery scenarios passed. Full-crate results below are from the original behavior commit 8e404025.

  • Existing controller test, including 13 process recovery/conflict scenarios: passed; used to generate the fixtures.

  • cargo test -p alpha-domain --locked: 88 passed, including wire round trip, original-byte hash linkage, schema drift and invalid transition checks. A failing regression proved that missing learning evidence was previously accepted; terminal variants now require coherent learning, report and bound fields.

  • cargo clippy -p alpha-domain --all-targets --locked -- -D warnings: passed.

  • bash -n and git diff --check: passed.

Runtime impact and rollback

No runtime or cloud changes. These are structural contracts, not dispatch authorization or an evidence-readback implementation. Job watch/relist, Lease fencing, and bounded cloud acceptance remain subsequent work. Rollback is a code revert; existing persisted checkpoint bytes remain untouched.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 729c5340-5965-4aa6-9478-d42dfa0bb8bc


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 commented Sep 7, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-07T03:26:22.180995Z 9ffa168 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 9ffa168c7a

ℹ️ 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/domain/src/campaign_checkpoint.rs
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