Skip to content

fix(lastcode): support sequential stacked PR babysitting - #222

Merged
lastobelus merged 4 commits into
lastcode/mainfrom
lastcode/stacked-pr-waits
Sep 28, 2026
Merged

lastobelus merged 4 commits into
lastcode/mainfrom
lastcode/stacked-pr-waits

Conversation

@lastobelus

@lastobelus lastobelus commented Sep 7, 2026 •

Copy link
Copy Markdown
Owner

Stacked LastCode PRs could not use Wait for PR because the script required a canonical base and selected only the current checkout; CI did not run against topic bases. This lets one thread validate and merge an authorized stack sequentially while keeping the existing main-only merge guard.

Wait for PR now supports a bounded explicit-target command that pins one PR and its same-repository parent chain in worktree-local Git metadata. The saved Action checks revision drift and exact CI, distinguishes parent-base validation from final readiness, and retains current-checkout behavior when no target is selected. CI runs for topic bases and retargets. The transfer report keeps a default-branch baseline for stacked children. The repository-owned babysit skill and its references describe ordered squash/restack delivery and pending Action continuations.

Validation on the rebased head: 50 focused wait/CI tests plus 8 transfer-report tests, scripts typecheck, focused lint, formatting, skill validation, three clean Astra-high review rounds, and resumable Quick CI passed for the current head/base. Multi-PR observation remains phase two.

Closes #215.

Model: GPT-6 Astra and GPT-6 Sol. Harness: Codex in T3 Code.

@lastobelus
lastobelus force-pushed the lastcode/main branch 12 times, most recently from 94bf8cd to 3f15022 Compare September 14, 2026 09:10
@lastobelus
lastobelus force-pushed the lastcode/main branch 10 times, most recently from 7db8869 to 8b16e62 Compare September 22, 2026 09:18
@lastobelus
lastobelus force-pushed the lastcode/main branch 6 times, most recently from 780bf95 to b2188b6 Compare September 28, 2026 09:09
Carry-Group: build-ci
Carry-Fix: #215
Carry-Group: resumable-actions
Carry-Fix: #215
@lastobelus
lastobelus force-pushed the lastcode/stacked-pr-waits branch from 5958634 to f239d8c Compare September 28, 2026 21:56
@lastobelus
lastobelus marked this pull request as ready for review September 28, 2026 21:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 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-28T22:10:00.219814Z 726ac3e 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

Copy link
Copy Markdown
Owner Author

@codex review

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

ℹ️ 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 .github/workflows/ci.yml Resolved
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 726ac3ec29

ℹ️ 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 1a53dc7 into lastcode/main Sep 28, 2026
10 checks passed
@lastobelus
lastobelus deleted the lastcode/stacked-pr-waits branch September 28, 2026 22:17
lastobelus added a commit that referenced this pull request Nov 10, 2026
Editing a PR's title or description cancels its running CI, because the edit event shares the CI concurrency group. Anything that touches wording mid-run loses the run.

**Fix**
- **Isolated group:** metadata-only `edited` events get a unique concurrency group, so they can't cancel or replace source runs.
- **Jobs skipped:** those events skip every job in CI and Mobile Fingerprint Check. Metadata checks use distinct `Check` and `CI Gate` names so they cannot mask required checks.
- **Base retarget kept:** `edited` stays on for base changes (added in #222 for stacked PR retargets, source commit a8aa4a0), and those runs still execute.
- **Distinct CI title:** metadata-only runs get their own CI run title, so `pr-gates` and merge's exact-head/base selector never pick them. The transfer report publisher excludes those runs before job concurrency applies.

**Validation**
- 21 focused workflow and GitHub CI selection tests pass. Final-head check:changed passed (format, lint, knip, affected typechecks and 23 tests). Quick CI deferred to required GitHub CI because local capacity was busy.
- Local review: round 2/2; Terra xhigh and Opus 5.5 high both clean.
- actionlint is unavailable. The known unrelated tiptap unused-patch failure (#677) is out of scope; check:changed skipped that check because no dependency files changed.

**Live check:** source CI run [42730063283](https://github.com/lastobelus/lastCode/actions/runs/42730063283) was observed in_progress on head 8f87dc6 immediately before this description edit. Metadata run [42730216536](https://github.com/lastobelus/lastCode/actions/runs/42730216536) completed skipped while the same source run remained in_progress. Its jobs API contains neither an exact `Check` nor an exact `CI Gate` name; GitHub leaves the skipped dynamic names as expression text. Real runs retain the required names in the workflow definition. The pr-gates command selected source run 42730063283 despite the newer metadata run. Earlier-head source CI stayed running across two description edits; the subsequent source push superseded it normally.

**Reference:** [GitHub concurrency docs](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency). Queued runs replace pending work and can cancel running work before job execution.

Carry-Group: build-ci

Model: GPT-6.1 Sol. Harness: Codex in T3 Code.

Carry-Source-Ref: refs/lastcode/carry-sources/pr-686/8f87dc6c144c9cc05260f449f8102d511d77a4df
Carry-Source-Base: 5d364e9
Carry-Source-Head: 8f87dc6
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.

Support stacked LastCode PRs in CI and resumable review waiting

1 participant