Skip to content

docs(release): document history-preserving promotion and back-sync - #3101

Merged
EffortlessSteven merged 2 commits into
mainfrom
codex/docs-release-flow-join-back-sync
Aug 9, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
codex/docs-release-flow-join-back-sync

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

  • replace the stale ff-only source promotion instructions with an exact pinned, history-preserving J join
  • document ordered parents, exact-head/tree checks, and the no squash/rebase/cherry-pick/reconstruction rule
  • document the post-publication K back-sync, expected-head guard, narrowly scoped merge-commit exception, and policy restoration

Proof

  • git diff --check
  • cargo xtask check-doc-index (previous bounded run: pass)
  • cargo xtask markdown-links (previous bounded run: pass)
  • cargo xtask check-static-language (previous bounded run: pass)
  • cargo xtask check-doc-artifacts (previous bounded run: pass)
  • cargo xtask precommit (previous bounded run: pass)

The broad cargo xtask check-pr run was not used as a gate because the shared environment remained Cargo-lock contended after interruption. No source code or repository settings are changed.

Scope and follow-up

This PR updates docs/RELEASE.md and docs/swarm-development.md only. The implementation verifier for K remains tracked by #3100; this PR documents the operator contract without implementing commands or mutating settings.

Refs #3099
Refs #3100

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

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

Next review available in: 51 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: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: ea6fcc47-a7ab-4ecf-9b71-d7d176203efd

📥 Commits

Reviewing files that changed from the base of the PR and between c5f2887 and 6fbfbea.

📒 Files selected for processing (1)
  • docs/swarm-development.md

Summary by CodeRabbit

  • Documentation
    • Clarified release promotion requirements, including exact commit verification and preserved parent ordering.
    • Added guidance for creating and validating history-preserving joins during promotion.
    • Documented post-publication back-sync procedures, including metadata import, authority preservation, and expected-head safeguards.
    • Added abort conditions and verification steps for safer release and swarm synchronization.

Walkthrough

The release documentation defines exact parent ordering for source promotion and post-publication back-sync. Promotion now uses a verified merge join. Back-sync preserves swarm authority and updates swarm/main only when its expected head is unchanged.

Changes

Release history joins

Layer / File(s) Summary
Construct the promotion join
docs/swarm-development.md
Promotion pins the source and swarm commits, verifies ancestry and tree identity, and creates join J with the source parent first and swarm parent second.
Validate the reviewed promotion
docs/swarm-development.md, docs/RELEASE.md
Promotion records the join parents and head. Abort checks require the frozen inputs and exact join to remain unchanged.
Perform guarded post-publication back-sync
docs/swarm-development.md, docs/RELEASE.md
Back-sync creates join K with swarm first and released source second, preserves swarm authority, imports release records, and uses an expected-head guard.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Poem

A rabbit checks each parent line,
“J” joins source and swarm in time.
“K” brings receipts back home,
Guarded heads keep paths from roam.
Merge commits thump; policies mend.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the scope and proof, but it omits most required template sections, including boundary, classification, policy, rollback, traceability, and gates. Complete the required template sections or state n/a where applicable, including scope classification, policy impact, claim boundary, rollback, traceability, engineering checks, and gates.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the documentation changes for history-preserving promotion and back-sync.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/docs-release-flow-join-back-sync

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.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Exact-head review (candidate): c5f2887

reviewed_head_sha: c5f2887
integration_basis: origin/main at branch creation; docs-only candidate
claim_boundary: document the standard release operator contract; no verifier implementation, settings mutation, or release execution
changed_surfaces_and_semantic_owners_inspected: docs/RELEASE.md (release authority) and docs/swarm-development.md (swarm operator flow), including the J promotion and K back-sync sections
blocking_findings: none
non_blocking_suggestions: none
refuted_or_stale_findings: the former ff-only promotion instructions are removed; #3100 remains the implementation follow-up for K verification
proof_and_ci_observed: git diff --check; bounded check-doc-index, markdown-links, check-static-language, check-doc-artifacts, and precommit passed before commit; hosted PR Plan and Route Ripr Rust Small passed; remaining hosted checks were still running at review time
proof_or_review_missing: hosted checks not yet complete; broad local check-pr was not used because shared Cargo-lock contention made it unavailable
affected_currentness_dimensions: public claim and operator documentation; no production or generated implementation
residual_assumptions_and_non_claims: command snippets are operator guidance pending the future verifier; this PR does not prove an actual J or K, and does not authorize publication or temporary settings changes
disposition: REVIEW_INCOMPLETE pending hosted checks; no semantic blocker found

Comment thread docs/swarm-development.md Resolved

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/swarm-development.md`:
- Around line 421-434: Update the back-sync procedure describing transport of K
so the ref update or merge requires swarm/main to still equal SWARM_BEFORE,
rather than relying only on the preceding fetch check. After transport, verify
swarm/main points to the expected resulting commit and confirm the merge-policy
state; explicitly state whether the procedure uses same-repository pull requests
or an owner-approved ref-update exception.
- Around line 241-243: Update the promotion workflow around the pinned
swarm-head, merge-base, and routed workflow-proof checks to fail closed before
creating J: assert git rev-parse "$SWARM_REF^{commit}" matches SWARM_PARENT, the
computed merge base matches MERGE_BASE, and the routed workflow conclusion is
success. Record the verified run SHA and URL in the promotion PR body alongside
the swarm/main reference.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: ee15a361-bfaa-42a9-945c-c0e08e4b78fa

📥 Commits

Reviewing files that changed from the base of the PR and between c848da7 and c5f2887.

📒 Files selected for processing (2)
  • docs/RELEASE.md
  • docs/swarm-development.md

Comment thread docs/swarm-development.md Resolved
Comment thread docs/swarm-development.md Resolved
@codecov

codecov Bot commented Aug 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@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: c5f28879af

ℹ️ 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 docs/swarm-development.md Resolved
Comment thread docs/swarm-development.md Resolved

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Exact-head review refresh: 6fbfbea

The current docs-only head was reread after the review repairs. The candidate now:

  • interpolates ${VERSION} in the K commit recipe;
  • fails closed on SWARM_REF -> SWARM_PARENT, computed merge-base -> MERGE_BASE, and routed run head/conclusion;
  • retains routed SHA/conclusion/URL in the receipt/PR template;
  • binds K transport to a non-force expected-head ref update (or an equivalent same-repository PR guard), verifies origin/main == K, and records policy restoration.

blocking_findings: none
proof_and_ci_observed: bounded check-doc-index, markdown-links, check-doc-artifacts, and git diff --check pass after 6fbfbea; hosted source-of-truth, docs route, dependency/security, plan, and routed result checks pass; remaining hosted coverage/test/UB jobs are still running
proof_or_review_missing: merge convergence remains incomplete until required hosted checks settle
residual_assumptions_and_non_claims: this docs PR records the operator contract but does not implement J/K verifiers or execute a release

disposition: REVIEW_INCOMPLETE pending hosted checks; no semantic blocker found

@EffortlessSteven
EffortlessSteven merged commit 34503bb into main Aug 9, 2026
31 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/docs-release-flow-join-back-sync branch August 9, 2026 23:07
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