Skip to content

feat(tooling): write a conflict dossier when checkpoint replay stops - #652

Merged
lastobelus merged 9 commits into
lastcode/mainfrom
lastcode/checkpoint-conflict-dossier
Nov 8, 2026
Merged

lastobelus merged 9 commits into
lastcode/mainfrom
lastcode/checkpoint-conflict-dossier

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Checkpoint replay stops at the first conflicting carry group. The recovery agent then has to reconstruct contribution ownership and per-file upstream context by hand.

This PR writes a conflict dossier when replay stops. It is a JSON file plus a short summary, saved beside the retained rebase. Failure history and supervisor alerts link to it, and recovery agents are told to read it first.

What the dossier contains

  • The source contributions and their Carry-Observation notes.
  • The upstream commits that touch each conflicted file.
  • Advisory forecasts of later conflicts, attributed from cumulative group merges.

Ownership lookup and region diffs are batched. If overlap ranking hits its budget, the dossier keeps the file-level owners and the forecast. It does not fail because ranking ran out of budget.

Validation

  • check:changed origin/lastcode/main passed: 154 tests across five files, format, lint, both knip passes, and typecheck of six affected packages.
  • Local Quick CI passed before a clean rebase. The base changes since then do not overlap this feature, and GitHub CI is the validation for the new base.
  • The same-base carry compilation check passed on the current base and head with this PR's real number (feat(tooling): write a conflict dossier when checkpoint replay stops #652).
  • Historical comparison on checkpoints 4262, 4301 and 4353 gave later-group forecast precision of 65.5% and recall of 99.1%. The forecasts use previously published carry chains; the recorded recovery conflicts came from chains recompiled after intervening merges, so treat the numbers as approximate.
  • A nine-file stop took 4.10 s, and all rankings were kept.
  • A 64-file stop took 7.01 s, with 16 overlap rankings and 48 file-level fallbacks. The retained Git state was unchanged.

Implemented with GPT-6.1 Sol in the Codex harness.

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

ℹ️ 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 scripts/lastcode-checkpoints.mjs Resolved
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T22:40:06.998522Z 3b3f200 Manual request
ℹ️ 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.

@lastobelus lastobelus changed the title feat(tooling): include conflict context with stopped checkpoint replay feat(tooling): write a conflict dossier when checkpoint replay stops Nov 8, 2026
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: a2f04a35bd

ℹ️ 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".

Record source ownership, observations and upstream changes beside the retained rebase, with advisory forecasts for later carry groups. Dossier failures warn without replacing the replay failure.

Carry-Group: tooling
Intersect each cumulative merge's conflict paths with the files changed by its current group. Keep repeated-file conflicts while excluding false modify/delete conflicts caused by omitting earlier groups.

Carry-Group: tooling
Carry-Observation: Cumulative forecasts retain repeated-file conflicts without inventing deletions of earlier groups.
Resolve retained source refs from bounded provenance and batch region diffs per conflicted file. Preserve file-level owners and the complete dossier when optional ranking reaches its budget.

Carry-Group: tooling
Carry-Observation: Ownership ranking is optional; budget exhaustion retains the file-level dossier and advisory forecast.
Apply the writing pass and repository formatting, keep the recovery guide addition to one sentence, and clear focused typecheck and lint diagnostics.

Carry-Group: tooling
Keep installed checkpoint commands self-contained. Bound subprocesses and summary output, batch ownership mapping, and retain stopped-group context when optional work fails.

Carry-Group: tooling
Pass commit messages through temporary files and bound Git waits. Preserve deleted-path provenance and cover bounded dossier failures, later-group stops, partitions, and advisory forecast failures.

Carry-Group: build-ci
Copy the dossier and upstream-history helper alongside the replay module so isolated lifecycle and publication fixtures can load the complete runtime.

Carry-Group: incubator
Apply the repository formatter to the dossier implementation and copied-install CLI regression.

Carry-Group: tooling
Default the optional commit environment before passing it to Git so the strict scripts typecheck accepts the helper. Format the replay implementation and regressions.

Carry-Group: build-ci
@lastobelus
lastobelus force-pushed the lastcode/checkpoint-conflict-dossier branch from a2f04a3 to 3b3f200 Compare November 8, 2026 22:37
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 3b3f200b05

ℹ️ 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".

@lastobelus
lastobelus merged commit 87120e6 into lastcode/main Nov 8, 2026
20 checks passed
@lastobelus
lastobelus deleted the lastcode/checkpoint-conflict-dossier branch November 8, 2026 22:57
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