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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,10 @@ For Independent PRs and for the first PR in a new stacked workstream, no team cr
17
17
18
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
19
20
+
OWNER PRs may start from synchronized `main` when independent.
21
+
22
+
Non-Owner team PRs use Stacked PR workstreams by default. A non-Owner team PR may start from `main` only when OWNER explicitly marks it `standalone/no-dependency`.
23
+
20
24
Use `dev/build/ProjectInstructions/` as the only active Project Instructions source.
21
25
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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,13 @@ This file owns branch lock enforcement and OWNER override handling; it must not
29
29
- Identify the PR branching model before creating or continuing a PR branch.
30
30
- Independent PRs and new stacked workstreams start from current `main`.
31
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
+
- OWNER PRs may start from `main` when marked Independent and no direct dependency exists.
33
+
- Non-Owner team PRs use Stacked PR workstreams by default.
34
+
- A non-Owner team PR may start from `main` only when OWNER explicitly marks the PR as `standalone/no-dependency`.
32
35
- Pull latest `origin/main` before creating an Independent PR branch or the first branch in a new stack.
33
36
- 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
37
- HARD STOP if the current branch does not match the requested PR branching model.
38
+
- HARD STOP if a non-Owner team PR starts from `main` without OWNER `standalone/no-dependency` approval.
35
39
- Follow the canonical START / WORK / END lifecycle in `dev/build/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`.
36
40
- 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`.
37
41
- 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
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,14 @@ This file owns PR lifecycle governance. It must not duplicate command phase rule
41
41
42
42
Every PR must declare one branching model before branch creation or branch continuation.
43
43
44
+
### Ownership Defaults
45
+
46
+
OWNER may create an Independent PR from synchronized `main` when the PR has no direct dependency.
47
+
48
+
Non-Owner team PRs use Stacked PR workstreams by default. A non-Owner team PR may start from `main` only when OWNER explicitly marks that PR as `standalone/no-dependency` before branch creation.
49
+
50
+
If a non-Owner team PR is not explicitly marked `standalone/no-dependency`, Codex must treat it as Stacked and verify the active team workstream branch or documented previous PR branch before changing files.
51
+
44
52
### Independent PR
45
53
46
54
Use an Independent PR when the change has no direct dependency on another open PR.
@@ -49,7 +57,10 @@ Rules:
49
57
- Independent PRs must start from synchronized `main`.
50
58
- Independent PRs must target `main`.
51
59
- Independent PRs must not reuse another feature branch as their starting point.
60
+
- OWNER PRs may use the Independent PR model when the PR has no direct dependency.
61
+
- Non-Owner team PRs may use the Independent PR model only when OWNER explicitly marks the PR as `standalone/no-dependency`.
52
62
- Codex must HARD STOP if the requested Independent PR starts from any branch other than `main`.
63
+
- Codex must HARD STOP if a non-Owner team PR starts from `main` without an explicit OWNER `standalone/no-dependency` marker.
53
64
- Codex must return to synchronized `main` before starting the next unrelated Independent PR.
54
65
55
66
### Stacked PR
@@ -58,6 +69,8 @@ Use a Stacked PR only when the PR has a direct dependency on the previous PR bra
58
69
59
70
Rules:
60
71
- Stacked PRs may start from the previous PR branch when there is a direct dependency.
72
+
- Non-Owner team PRs should use Stacked PR workstreams by default.
73
+
- A Stacked PR belongs under the active team workstream and must use the documented previous PR branch or active workstream branch as its starting point.
61
74
- Stacked PRs must document the dependency order before BUILD begins.
62
75
- Stacked PR reports must name:
63
76
- the stack order
@@ -77,12 +90,15 @@ Codex must verify the requested PR model before changing files.
77
90
78
91
HARD STOP when:
79
92
- an Independent PR is requested but the current/start branch is not `main`
93
+
- a non-Owner team PR starts from `main` without explicit OWNER `standalone/no-dependency` approval
80
94
- a Stacked PR is requested but the current/start branch is not the documented previous PR branch
81
95
- the request does not say whether the PR is Independent or Stacked and the start branch is not clearly valid
82
96
- a PR is described as stacked but no direct dependency or merge order is documented
83
97
84
98
When the model is unclear, Codex must report the current branch, expected starting branch, and the missing model/dependency information before making changes.
85
99
100
+
All PR branching models remain subject to the Codex Completion Contract. Missing required ZIP output means the Codex run is incomplete.
Copy file name to clipboardExpand all lines: dev/build/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,10 @@ For Independent PRs and for the first PR in a new stacked workstream, no team cr
55
55
56
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
57
58
+
OWNER PRs may start from synchronized `main` when marked Independent and no direct dependency exists.
59
+
60
+
A non-Owner team PR may start from `main` only when OWNER explicitly marks the PR as `standalone/no-dependency`. Otherwise, non-Owner team PRs use Stacked PR workstreams by default and must start from the active team workstream branch or documented previous PR branch.
61
+
58
62
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.
0 commit comments