@@ -91,30 +91,60 @@ User:
9191- Do not expand scope beyond the PR
9292- Do not modify ` start_of_day ` folders unless requested
9393
94- ## MAIN BRANCH EXECUTION GUARD
94+ ## EXECUTION BRANCH VALIDATION GUARD
9595
9696Before any BUILD execution, Codex must verify the current git branch.
9797
9898Rules:
99- - The required execution branch is:
99+ - The default required execution branch is:
100100 - ` main `
101- - If the current branch is not ` main ` :
101+ - Queue initialization must start from ` main ` .
102+ - The first queue branch must be created from ` main ` .
103+ - Approved Sequential Codex Queue Mode branches are allowed after queue initialization.
104+ - Approved queue branch format:
105+ - ` team/<TEAM>/<workstream> `
106+ - Queue branch examples:
107+ - ` team/ALPHA/game-hub `
108+ - ` team/BETA/messages `
109+ - ` team/GAMMA/admin `
110+ - Sequential Queue Mode execution path:
111+ - ` main `
112+ - create team queue branch
113+ - queue PR 001
114+ - queue PR 002
115+ - queue PR 003
116+ - owner review
117+ - EOD merge
118+ - Subsequent queued PRs may execute from the active approved team queue branch.
119+ - Start gate passes in queue mode only when:
120+ - current branch matches the approved queue branch
121+ - TEAM ownership matches the queue branch
122+ - repository is clean
123+ - PR scope stays inside TEAM ownership
124+ - Start gate fails when:
125+ - branch is neither ` main ` nor the approved queue branch
126+ - repository is dirty
127+ - TEAM ownership mismatches
128+ - cross-team work is attempted
129+ - If the current branch is neither ` main ` nor an approved Sequential Codex Queue Mode branch:
102130 - HARD STOP.
103131 - Do not create code changes.
104132 - Do not create implementation PRs.
105133 - Do not create ZIP artifacts.
106134 - Do not continue execution.
107135- Codex must report:
108136 - current branch
109- - expected branch (` main ` )
137+ - expected branch (` main ` by default, or approved ` team/<TEAM>/<workstream> ` in Sequential Codex Queue Mode )
110138 - local branches found
111- - Codex may continue only after the user explicitly returns to ` main ` .
139+ - Codex may continue only after the user explicitly returns to ` main ` or identifies the approved queue branch for Sequential Codex Queue Mode .
112140
113141Exception:
114142- Explicit branch-audit or branch-comparison PRs may inspect non-main branches but must not perform implementation work on them.
115143
116144Required report output:
117145- Current branch
146+ - Expected branch
147+ - Queue mode active/inactive
118148- Branch validation PASS/FAIL
119149
120150## SLIDER VALUE VISIBILITY REQUIREMENT
@@ -1999,7 +2029,7 @@ Required workflow:
1999202910 . Create Pull Request automatically.
2000203011 . Resolve merge conflicts if encountered.
2001203112 . Re-run validation after conflict resolution.
2002- 13 . Merge PR.
2032+ 13 . Merge PR only after explicit owner/EOD approval .
2003203314 . Return to main.
2004203415 . Pull latest main.
2005203516 . Continue to next approved PR.
@@ -2008,8 +2038,8 @@ Rules:
20082038- Do not ask the user if a PR should be created.
20092039- Do not ask the user if a branch should be pushed.
20102040- Treat PR creation as required.
2011- - Treat branch push as required.
2012- - Treat merge as required after validation passes.
2041+ - Treat branch push as required for scoped PR branch publishing .
2042+ - Treat merge as required only after validation passes and explicit owner/EOD approval is provided .
20132043- If GitHub prompts ` Would you like to create a Pull Request? ` , answer YES automatically.
20142044- If merge conflicts occur:
20152045 - preserve latest main
@@ -2031,9 +2061,38 @@ Stable promotion and merge approval are owner-controlled.
20312061
20322062Rules:
20332063- Codex may prepare scoped changes, reports, validation evidence, ZIP artifacts, branches, and PRs.
2034- - Codex must not merge a PR or mark a workstream stable without explicit approval from the assigned Team Alpha or Team Beta owner.
2064+ - Codex must not merge a PR or mark a workstream stable without explicit approval from the assigned Team Alpha, Team Beta, or Team Gamma owner.
20352065- Master Control may recommend sequencing or assignment, but affected workstream owners control stable and merge approval.
20362066- This targeted section supersedes older automatic-merge wording when approval ownership is in question.
2067+ - EOD merge and EOD push actions are owner-controlled and require explicit approval.
2068+
2069+ ## SEQUENTIAL CODEX QUEUE BRANCH GOVERNANCE
2070+
2071+ Sequential Codex Queue Mode may use approved team queue branches only after initialization from ` main ` .
2072+
2073+ Rules:
2074+ - Queue initialization must start from ` main ` .
2075+ - The first queue branch must be created from ` main ` .
2076+ - Subsequent queued PRs may execute from the active approved team queue branch.
2077+ - Approved queue branch format is ` team/<TEAM>/<workstream> ` .
2078+ - Examples:
2079+ - ` team/ALPHA/game-hub `
2080+ - ` team/BETA/messages `
2081+ - ` team/GAMMA/admin `
2082+ - Start gate PASS in queue mode requires:
2083+ - current branch matches the approved queue branch
2084+ - TEAM ownership matches the queue branch
2085+ - repository is clean
2086+ - PR scope stays inside TEAM ownership
2087+ - Start gate FAIL in queue mode when:
2088+ - branch is neither ` main ` nor the approved queue branch
2089+ - repository is dirty
2090+ - TEAM ownership mismatches
2091+ - cross-team work is attempted
2092+ - Cross-team work remains prohibited unless Master Control splits or assigns each PR to the correct TEAM token.
2093+ - Owner approval remains required.
2094+ - EOD merge remains required.
2095+ - Automatic merge wording must not override owner-controlled EOD approval.
20372096
20382097## CODEX INSTRUCTION ENFORCEMENT START GATE
20392098
@@ -2051,7 +2110,7 @@ Required pre-change report:
20512110- Any ` FAIL ` is a hard stop unless the PR explicitly scopes branch audit or recovery documentation without implementation.
20522111
20532112Hard stops before changes:
2054- - If the current branch is not ` main ` , HARD STOP.
2113+ - If the current branch is neither ` main ` nor an approved Sequential Codex Queue Mode branch , HARD STOP.
20552114- If the repository is not clean before the PR branch is created, HARD STOP.
20562115- If the PR name does not include a required TEAM token, HARD STOP.
20572116- If the PR TEAM owner does not match the team ownership map in ` PROJECT_MULTI_PC.txt ` , HARD STOP.
0 commit comments