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: docs_build/dev/BUILD_PR.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ This `BUILD_PR.md`, `PLAN_PR.md`, and the user request are the source of truth f
14
14
- Establish `docs_build/dev/ProjectInstructions/` as the only active source.
15
15
- Mark all other ProjectInstructions-style sources changed by this PR as deprecated references.
16
16
- Update active team start/governance docs to reference only `docs_build/dev/ProjectInstructions/`.
17
-
- Add EOD main lock, next-day reset governance, and explicit START / WORK / END branch lifecycle rules.
17
+
- Add EOD main lock, next-day reset governance, and canonical START / WORK / END branch lifecycle rules.
18
18
- Add required reports under `docs_build/dev/reports/`.
19
19
20
20
## Exact Targets
@@ -46,7 +46,7 @@ Run:
46
46
47
47
```powershell
48
48
rg -n 'project-instructions/addendums|docs_build/dev/PROJECT_INSTRUCTIONS.md.*source of truth|Codex must always read `docs_build/dev/PROJECT_INSTRUCTIONS.md`|Read `docs_build/dev/PROJECT_INSTRUCTIONS.md`' docs_build/dev/ProjectInstructions docs_build/dev/PROJECT_INSTRUCTIONS.md project-instructions
49
-
rg -n "START RULE|WORK RULE|END RULE|HARD STOP before committing|Codex commits only to the PR branch|HEAD SHA recorded as new EOD baseline|End of Day:|Next Day Start:|HEAD.*published EOD SHA|only active Project Instructions source" docs_build/dev/ProjectInstructions
49
+
rg -n "Branch Lifecycle \\(Canonical\\)|Every PR follows exactly three phases|^START$|^WORK$|^END$|Mandatory Hard Stops|tomorrow's official baseline|No commits on main|Never checkout main|Only after ALL four pass" docs_build/dev/ProjectInstructions
50
50
git diff --name-only -- src assets toolbox games api serverside package.json package-lock.json docs_build/dev/start_of_day
`docs_build/dev/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md` defines the single active Project Instructions source, EOD main lock, next-day reset, and team branch creation gate.
52
+
`docs_build/dev/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md` defines the single active Project Instructions source, canonical START / WORK / END branch lifecycle, EOD main lock, next-day reset, team branch creation gate, daily synchronization baseline, and mandatory hard stops.
Copy file name to clipboardExpand all lines: docs_build/dev/ProjectInstructions/README.txt
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,10 @@ Team assignment workflow:
13
13
Team assignments are tracked under team_assignments/. A team pulls work from BACKLOG_MASTER.md, marks the item building when assigned, and records the active assignment under the owning team. Teams work only on assigned items unless an OWNER override explicitly changes the assignment.
14
14
15
15
No direct commits to main:
16
-
Do not commit directly to main unless the owner explicitly instructs that exception. Normal work must use PR branches, draft PRs, validation evidence, and owner-controlled merge approval.
16
+
Do not commit directly to main. Normal work must use PR branches, draft PRs, validation evidence, and owner-controlled merge approval.
17
+
18
+
Branch lifecycle:
19
+
Every PR follows exactly three phases: START, WORK, END. The canonical lifecycle is `docs_build/dev/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`.
17
20
18
21
OWNER override rule:
19
22
An OWNER override must use this wording:
@@ -40,6 +43,7 @@ READ THIS FIRST
40
43
9. Follow OWNER governance decisions.
41
44
10. When guidance conflicts, newest OWNER-approved guidance wins.
42
45
11. Batch Governance Mode is the default for governance, documentation, and administrative work.
46
+
12. Follow the canonical START / WORK / END lifecycle.
43
47
44
48
Addendum index:
45
49
- Single Source and EOD Main Lock: docs_build/dev/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md
Copy file name to clipboardExpand all lines: docs_build/dev/ProjectInstructions/addendums/branch_context_governance.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ At the start of work, report or validate:
21
21
- active PR number/name or explicit `PLAN_ONLY`
22
22
- previous PR Closed status unless this is an explicitly documented stacked PR chain
23
23
24
+
Session start must follow the canonical START phase in `docs_build/dev/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`.
25
+
24
26
## Stop Conditions
25
27
26
28
Stop and report before changing files when:
@@ -38,6 +40,8 @@ Stop and report before changing files when:
38
40
39
41
After a branch is created, the branch remains the working context.
40
42
43
+
This is the canonical WORK phase: remain on the PR branch, never checkout `main`, commit only on the PR branch, push only the PR branch, validate from the PR branch, and open/update the PR from the PR branch.
44
+
41
45
Do not automatically return to `main` after:
42
46
43
47
- commit
@@ -47,7 +51,7 @@ Do not automatically return to `main` after:
47
51
- review updates
48
52
- additional commits
49
53
50
-
Return to `main` only after the PR is merged, the branch is retired, or OWNER explicitly says to return to `main`.
54
+
Return to `main` only in the canonical END phase after the PR is merged, the branch is retired, or OWNER explicitly says to return to `main`.
51
55
52
56
Returning to `main` is required before Closed can be recorded.
53
57
@@ -58,6 +62,7 @@ Closed branch context requires:
58
62
- local/origin sync is `0/0`
59
63
- no untracked files
60
64
- source branch disposition recorded as `retained`
65
+
- branch, HEAD SHA, and date/time recorded as the new EOD baseline when this is EOD closeout
Copy file name to clipboardExpand all lines: docs_build/dev/ProjectInstructions/addendums/branch_lock_governance.md
+14-24Lines changed: 14 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ Keep active work attached to the correct assigned team, branch, and OWNER decisi
24
24
- Start from current `main`.
25
25
- Pull latest `origin/main` before creating a work branch.
26
26
- 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.
27
+
- Follow the canonical START / WORK / END lifecycle in `docs_build/dev/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`.
27
28
- Keep work on the active branch until the PR is merged, the branch is retired, or OWNER says to return to `main`.
28
29
- Do not commit directly to `main`.
29
30
- HARD STOP before committing if current branch is `main`.
@@ -34,34 +35,23 @@ Keep active work attached to the correct assigned team, branch, and OWNER decisi
34
35
- Retain source branches by default after merge and closeout.
35
36
- Record branch disposition before Closed as `retained`.
36
37
37
-
## START RULE
38
+
## Branch Lifecycle (Canonical)
38
39
39
-
- Every team starts on `main`.
40
-
-`main` must be clean.
41
-
-`main...origin/main` must be `0 0`.
42
-
-`HEAD` SHA must match published EOD SHA.
43
-
- Only then create or switch to the PR branch.
44
-
- No commits are allowed on `main`.
40
+
Every PR follows exactly three phases:
45
41
46
-
## WORK RULE
42
+
```text
43
+
START
44
+
WORK
45
+
END
46
+
```
47
47
48
-
- Codex must remain on the PR branch during implementation.
49
-
- Codex commits only to the PR branch.
50
-
- Codex pushes only the PR branch.
51
-
- HARD STOP if branch changes unexpectedly.
52
-
- HARD STOP before committing if current branch is `main`.
48
+
The canonical lifecycle lives in `docs_build/dev/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`.
53
49
54
-
## END RULE
55
-
56
-
- After PR validation, push the PR branch.
57
-
- Merge PR into `main` only when approved.
58
-
- Checkout `main`.
59
-
- Run `git fetch origin`.
60
-
- Run `git pull --ff-only origin main`.
61
-
- Confirm current branch is `main`.
62
-
- Confirm worktree is clean.
63
-
- Confirm `main...origin/main` is `0 0`.
64
-
- Record `HEAD` SHA as new EOD baseline.
50
+
Branch lock governance enforces:
51
+
- START on synchronized `main`.
52
+
- WORK only on the PR branch.
53
+
- END by merging, returning to synchronized `main`, publishing branch, HEAD SHA, and date/time, then stopping all work.
54
+
- Mandatory hard stops before commits on `main`, dirty branch creation, non-`0 0` main sync, baseline SHA mismatch, unvalidated merge, or new PR work before synchronized main return.
Copy file name to clipboardExpand all lines: docs_build/dev/ProjectInstructions/addendums/multi_team.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
@@ -51,6 +51,7 @@ Rules:
51
51
- One Codex session may execute multiple sequential PRs.
52
52
- Each PR must still have one clear purpose.
53
53
- Each PR must create or use its own approved branch.
54
+
- Each PR must follow the canonical START / WORK / END lifecycle in `docs_build/dev/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`.
54
55
- Each PR may be committed and pushed during active work.
55
56
- Each PR may be opened as a draft PR during active work.
56
57
- Do not commit directly to main.
@@ -69,13 +70,14 @@ During active work:
69
70
- Pushes are allowed and expected.
70
71
- Draft PRs are allowed and expected.
71
72
- Direct commits to main are prohibited.
73
+
- WORK remains on the PR branch; never checkout main during WORK.
72
74
- Merges to main are prohibited unless explicitly approved by the owner.
73
75
74
76
At end of day:
75
77
- Owner reviews ready PRs.
76
78
- Owner explicitly approves which PRs merge.
77
79
- Only owner-approved PRs may merge to main.
78
-
- After merge, return to main and pull latest main.
80
+
- After merge, execute the canonical END phase, return to synchronized main, and publish branch, HEAD SHA, and date/time.
79
81
- Do not treat sequential PR completion as merge approval.
80
82
81
83
Commit/push during the day is allowed only on assigned team/OWNER/PR branches.
- START happens on synchronized `main` only and creates the PR branch only after all required gates pass.
47
+
- WORK happens only on the PR branch.
48
+
- END validates, commits, pushes, opens/updates the PR, merges, returns to synchronized `main`, publishes branch, HEAD SHA, and date/time, then stops all work.
49
+
- No commits on `main`.
50
+
- No implementation on `main`.
51
+
- No validation on `main` except start validation.
0 commit comments