codex: classify every release pull request state - #36
Merged
Conversation
ttaylorr-oai
force-pushed
the
ttaylorr/codex-pr-state-labels
branch
from
August 24, 2026 21:10
d69563b to
94c6f81
Compare
ttaylorr-oai
marked this pull request as ready for review
August 24, 2026 23:20
dreynaud-oai
approved these changes
Aug 24, 2026
GitHub presents reviewed topics, mechanical plan transitions, and controller changes as ordinary pull requests even though they have different review and publication paths. The existing reconciler also skipped draft topics with noncanonical names and ordinary meta changes, leaving most open Codex pull requests without useful state. Derive one role, build target, and lifecycle state for every open pull request against codex, codex-unstable, or meta, as well as retained plan history. Mark invalid topic names and failed admission or merge gates as blocked instead of silently omitting them. Abort before writing labels if any pull request is missing a classification or receives more than one. Keep planned, staged, and integrated states tied to the exact frozen source and output metadata. Preserve unrelated labels, recheck live heads before mutation, and retain a read-only dry run for auditing the complete classification.
ttaylorr-oai
force-pushed
the
ttaylorr/codex-pr-state-labels
branch
from
August 24, 2026 23:40
94c6f81 to
86f1c8f
Compare
dreynaud-oai
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
GitHub presents reviewed topics, mechanical plan transitions, and controller
changes as ordinary PRs even though they have different review and publication
paths. The existing reconciler also omits some draft, invalid, and ordinary
metaPRs, so open Codex work does not have a complete or legible state model.Changes
kind:*), build target (build:*), andlifecycle state (
codex:*) across review-only topics, automatic plans,plan-policy changes, and controller work.
and superseded states. Add
codex:blockedfor invalid topic names, failedadmission, conflicts, or policy failures that require intervention.
codex,codex-unstable, ormeta, plusretained plan history. Abort before writing if any PR is missing a
classification or receives more than one.
ledger metadata. Preserve unrelated labels, recheck heads before mutation,
and retain a read-only dry run for auditing.
Validation
sh -nfor the controller, reconciler, andt9905;git diff --check.t9905-codex-branch.shcoverage for all roles and lifecycles,invalid topics, blocked states, moved heads, and unrelated-label retention.
and codex: retain topic approvals and close published reviews #42 as draft controller work; fsmonitor: preserve proofs and avoid repeated recovery scans #59 as integrated unstable work; and fsmonitor: fix late cookies and preserve index history #66
and index-pack: hash full blobs in a bounded worker pool #67 as blocked invalid topics. No labels were written.
Dependency
Depends on #42 for the retained-approval semantics. This PR remains a draft;
the release refs and current repository labels are unchanged.