You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/build/ProjectInstructions/TEAM_START_COMMANDS.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,15 @@ Official Start of Day command format lives in:
8
8
9
9
The ready-to-copy team assignment commands below are OWNER assignment helpers, not Start of Day bootstrap commands.
10
10
11
-
No team creates a PR branch until all checks pass:
11
+
For Independent PRs and for the first PR in a new stacked workstream, no team creates a PR branch until all checks pass:
12
12
13
13
- Current branch: `main`
14
14
- Worktree: clean
15
15
-`main...origin/main`: `0 0`
16
16
-`HEAD` SHA matches the published EOD SHA
17
17
18
+
Dependent Stacked PRs may start from the documented previous PR branch only when `dev/build/ProjectInstructions/addendums/pr_workflow.md` defines the direct dependency and merge order.
19
+
18
20
Use `dev/build/ProjectInstructions/` as the only active Project Instructions source.
19
21
Read `dev/build/ProjectInstructions/addendums/team_backlog_sod_eod_standard.md` before implementation.
Copy file name to clipboardExpand all lines: dev/build/ProjectInstructions/addendums/branch_lock_governance.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,12 @@ This file owns branch lock enforcement and OWNER override handling; it must not
26
26
27
27
## Branch Rules
28
28
29
-
- Start from current `main`.
30
-
- Pull latest `origin/main` before creating a work branch.
31
-
- Do not create a PR branch unless current branch is `main`, worktree is clean, `main...origin/main` is `0 0`, and `HEAD` SHA matches the published EOD SHA.
29
+
- Identify the PR branching model before creating or continuing a PR branch.
30
+
- Independent PRs and new stacked workstreams start from current `main`.
31
+
- Dependent Stacked PRs may start from the documented previous PR branch only when a direct dependency and dependency order are documented in `dev/build/ProjectInstructions/addendums/pr_workflow.md`.
32
+
- Pull latest `origin/main` before creating an Independent PR branch or the first branch in a new stack.
33
+
- Do not create an Independent PR branch unless current branch is `main`, worktree is clean, `main...origin/main` is `0 0`, and `HEAD` SHA matches the published EOD SHA.
34
+
- HARD STOP if the current branch does not match the requested PR branching model.
32
35
- Follow the canonical START / WORK / END lifecycle in `dev/build/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`.
33
36
- Keep work on the active branch until the PR is merged, the branch is retired, EOD closeout begins, or OWNER says to return to `main`.
34
37
- For OWNER-approved stacked/sequential workstreams, PR branches/commits stay on the active team branch/workstream during the day and do not return to `main` between PRs.
Copy file name to clipboardExpand all lines: dev/build/ProjectInstructions/addendums/pr_workflow.md
+64-17Lines changed: 64 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,22 +19,69 @@ This file owns PR lifecycle governance. It must not duplicate command phase rule
19
19
20
20
## Standard Flow
21
21
22
-
1. Start from main.
23
-
2. Pull latest origin/main.
24
-
3. Verify clean worktree.
25
-
4. Create a PR branch and PR identity.
26
-
5. Mark lifecycle state as PR Open.
27
-
6. Plan on the same PR branch.
28
-
7. Build on the same PR branch.
29
-
8. Validate the change.
30
-
9. Commit with a clear OWNER/team message.
31
-
10. Push the branch.
32
-
11. Open or update the draft PR.
33
-
12. Review the PR.
34
-
13. OWNER approves merge.
35
-
14. Merge to main.
36
-
15. Pull latest main before starting the next unrelated workstream, or before a new PR when the work is not an OWNER-approved stacked/sequential workstream.
37
-
16. Verify Main Verified and Closed gates.
22
+
1. Identify the PR branching model: Independent PR or Stacked PR.
23
+
2. Start from the required branch for that model.
24
+
3. Pull or confirm the required base branch is current.
25
+
4. Verify clean worktree.
26
+
5. Create a PR branch and PR identity.
27
+
6. Mark lifecycle state as PR Open.
28
+
7. Plan on the same PR branch.
29
+
8. Build on the same PR branch.
30
+
9. Validate the change.
31
+
10. Commit with a clear OWNER/team message.
32
+
11. Push the branch.
33
+
12. Open or update the draft PR.
34
+
13. Review the PR.
35
+
14. OWNER approves merge.
36
+
15. Merge to main in the valid order for the PR model.
37
+
16. Pull latest main before starting the next unrelated workstream, or before a new PR when the work is not an OWNER-approved stacked/sequential workstream.
38
+
17. Verify Main Verified and Closed gates.
39
+
40
+
## PR Branching Models
41
+
42
+
Every PR must declare one branching model before branch creation or branch continuation.
43
+
44
+
### Independent PR
45
+
46
+
Use an Independent PR when the change has no direct dependency on another open PR.
47
+
48
+
Rules:
49
+
- Independent PRs must start from synchronized `main`.
50
+
- Independent PRs must target `main`.
51
+
- Independent PRs must not reuse another feature branch as their starting point.
52
+
- Codex must HARD STOP if the requested Independent PR starts from any branch other than `main`.
53
+
- Codex must return to synchronized `main` before starting the next unrelated Independent PR.
54
+
55
+
### Stacked PR
56
+
57
+
Use a Stacked PR only when the PR has a direct dependency on the previous PR branch.
58
+
59
+
Rules:
60
+
- Stacked PRs may start from the previous PR branch when there is a direct dependency.
61
+
- Stacked PRs must document the dependency order before BUILD begins.
62
+
- Stacked PR reports must name:
63
+
- the stack order
64
+
- the previous PR dependency
65
+
- the next PR dependency, if known
66
+
- the starting branch
67
+
- the intended merge order
68
+
- Stacked PRs must be reviewed in dependency order.
69
+
- Stacked PRs must be merged in dependency order.
70
+
- A later stacked PR must not merge before every prior dependency PR is merged.
71
+
- Codex must HARD STOP if the requested Stacked PR starts from a branch that is not the documented previous PR branch.
72
+
- Codex must HARD STOP if a Stacked PR lacks a documented dependency order.
73
+
74
+
### Model Mismatch Hard Stop
75
+
76
+
Codex must verify the requested PR model before changing files.
77
+
78
+
HARD STOP when:
79
+
- an Independent PR is requested but the current/start branch is not `main`
80
+
- a Stacked PR is requested but the current/start branch is not the documented previous PR branch
81
+
- the request does not say whether the PR is Independent or Stacked and the start branch is not clearly valid
82
+
- a PR is described as stacked but no direct dependency or merge order is documented
83
+
84
+
When the model is unclear, Codex must report the current branch, expected starting branch, and the missing model/dependency information before making changes.
38
85
39
86
## Daily Branch Workflow
40
87
@@ -109,7 +156,7 @@ Closed gates:
109
156
- Plan, Build, validation, reports, ZIP packaging, and closeout must stay tied to the same PR identity and source branch.
110
157
- Source branches are retained by default after merge and closeout.
111
158
- Do not mix unrelated scopes.
112
-
- Do not start dependent PRs until the required base PR is merged.
159
+
- Do not start dependent PRs until the required base PR is merged unless the work is an explicitly documented Stacked PR with a direct dependency on the previous PR branch.
113
160
- Return to `main` before starting an unrelated PR or new workstream.
114
161
- Do not return to `main` between PRs in the same OWNER-approved stacked/sequential workstream unless OWNER approves an EOD or intermediate merge checkpoint.
115
162
- A team must not begin another PR if its previous PR is not Closed.
Copy file name to clipboardExpand all lines: dev/build/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,13 +47,15 @@ git rev-parse HEAD
47
47
48
48
## Team Branch Creation Gate
49
49
50
-
No team creates a PR branch until:
50
+
For Independent PRs and for the first PR in a new stacked workstream, no team creates a PR branch until:
51
51
- Current branch: `main`
52
52
- Worktree: clean
53
53
-`main...origin/main`: `0 0`
54
54
-`HEAD` SHA matches published EOD SHA
55
55
56
-
If any check fails, stop before branch creation and restore main to the published EOD state or request OWNER direction.
56
+
For dependent Stacked PRs, the start branch may be the documented previous PR branch only when `dev/build/ProjectInstructions/addendums/pr_workflow.md` identifies a direct dependency and dependency order.
57
+
58
+
If any required check fails, or if the current branch does not match the requested PR model, stop before branch creation and restore the expected branch state or request OWNER direction.
57
59
58
60
## Branch Lifecycle (Canonical)
59
61
@@ -90,7 +92,7 @@ main...origin/main
90
92
HEAD equals published EOD SHA
91
93
```
92
94
93
-
Only after ALL four pass may a branch be created or the active team branch/workstream be updated.
95
+
Only after ALL required checks for the requested PR branching model pass may a branch be created or the active team branch/workstream be updated.
0 commit comments