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
{{ message }}
Repository navigation
Commit 7a9a424
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs_build/dev/PROJECT_INSTRUCTIONS.md
+61Lines changed: 61 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,11 @@ You are working in a docs-first repo workflow.
5
5
Workflow:
6
6
PLAN_PR → BUILD_PR → APPLY_PR
7
7
8
+
PR lifecycle gate:
9
+
PR Open → Building → Validation → Approved → Merged → Main Verified → Closed
10
+
11
+
The PLAN_PR → BUILD_PR → APPLY_PR workflow remains preserved. PR Open is the first lifecycle status for active work, and Closed is the final repository-state gate.
12
+
8
13
# WORKFLOW & EXECUTION
9
14
10
15
## PR NAMING STANDARD
@@ -44,6 +49,60 @@ Rules:
44
49
- Existing PC/LAPTOP, desktop/laptop, workspace, environment, or machine-parity examples are historical only
45
50
- Future PR reports, recovery reports, validation reports, and manual validation notes must include TEAM ownership
46
51
52
+
## PR LIFECYCLE STATE GATE
53
+
54
+
Required state order:
55
+
56
+
1. PR Open
57
+
2. Building
58
+
3. Validation
59
+
4. Approved
60
+
5. Merged
61
+
6. Main Verified
62
+
7. Closed
63
+
64
+
Definitions:
65
+
- PR Open is the first active lifecycle state.
66
+
- PR Open means the PR or branch has been created and named, and the work has a tracked PR identity before implementation begins.
67
+
- No BUILD_PR may proceed without a PR name and active branch/PR identity unless it is explicitly marked `PLAN_ONLY`.
68
+
- Building means scoped implementation, audit, report, validation, governance, or cleanup work is in progress for that PR identity.
69
+
- Validation means requested checks, required report creation, manual validation notes, and ZIP packaging are being completed.
70
+
- Approved means the owner or required reviewer has approved the PR outcome or intentionally approved closure without merge.
71
+
- Merged means the PR has merged or has been intentionally closed without merge with the reason recorded.
72
+
- Main Verified means Codex is back on `main`, `main` includes the merge commit or recorded final commit, the worktree is clean, local/origin sync is `0/0`, and no untracked files remain.
73
+
- Closed means every Closed gate below is PASS.
74
+
75
+
Closed is valid only when all are PASS:
76
+
- PR merged or intentionally closed without merge with reason recorded.
77
+
- Changes pushed.
78
+
- Current branch is `main`.
79
+
-`main` includes the merge commit or recorded final commit.
80
+
- Worktree clean.
81
+
- Local/origin sync is `0/0`.
82
+
- No untracked files.
83
+
- Branch disposition recorded as `deleted`, `retained for follow-up`, or `archived`.
84
+
- Required reports exist.
85
+
- Required repo-structured ZIP under `tmp/` exists.
86
+
87
+
Hard stop:
88
+
- A team must not begin another PR if its previous PR is not Closed.
89
+
- Exception is allowed only for explicitly documented stacked PR chains.
90
+
91
+
Required final closeout output:
92
+
93
+
```text
94
+
FINAL REPOSITORY STATE:
95
+
- Branch
96
+
- Worktree
97
+
- Local/origin sync
98
+
- PR number/name
99
+
- PR status
100
+
- Merge/final commit
101
+
- Branch disposition
102
+
- ZIP path
103
+
- Closeout PASS/FAIL
104
+
```
105
+
47
106
## CHATGPT EXECUTION ROLE
48
107
49
108
ChatGPT no longer creates PLAN_PR, BUILD_PR, APPLY_PR docs, ZIP bundles, or implementation code.
@@ -1662,6 +1721,8 @@ Before packaging any PR, Codex must:
1662
1721
1663
1722
Codex must not package partially completed PRs.
1664
1723
1724
+
PR completion is not the same as Closed. Closed requires the final repository-state gate from `PR LIFECYCLE STATE GATE`.
Copy file name to clipboardExpand all lines: docs_build/dev/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
@@ -13,6 +13,9 @@ Keep active work attached to the correct assigned team, branch, and OWNER decisi
13
13
- An assigned work item keeps its owner of record until complete or OWNER reassignment.
14
14
- Work must not move to another team, branch, or PR without OWNER approval.
15
15
- A team with no active assignment, active branch, or active PR is inactive.
16
+
- A team with a previous PR that is not Closed must not begin another PR unless OWNER documented an explicit stacked PR chain.
17
+
- PR Open begins only after the branch and PR identity are named.
18
+
- Closed ends only after the final main-return, clean-worktree, local/origin `0/0`, no-untracked-files, required-report, required-ZIP, and branch-disposition gates pass.
16
19
- Project Instructions must not assume a permanent team roster.
17
20
18
21
## Branch Rules
@@ -22,6 +25,7 @@ Keep active work attached to the correct assigned team, branch, and OWNER decisi
22
25
- Keep work on the active branch until the PR is merged, the branch is retired, or OWNER says to return to `main`.
23
26
- Do not commit directly to `main` unless OWNER explicitly approves.
24
27
- Do not merge stale historical branches directly unless they are current, clean, still needed, and OWNER-approved.
28
+
- Record branch disposition before Closed as one of: `deleted`, `retained for follow-up`, or `archived`.
Copy file name to clipboardExpand all lines: docs_build/dev/ProjectInstructions/addendums/multi_team.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,7 @@ Required gate:
122
122
- next review queue
123
123
- final branch/worktree/local-origin sync
124
124
- repo-structured ZIP path under `tmp/`
125
+
- final repository state block
125
126
126
127
OWNER_049 lesson:
127
128
- PRs #129, #132, and #134 were merge-approved and still required merge execution.
@@ -150,6 +151,8 @@ Required steps:
150
151
5. Record final main commit.
151
152
6. Report final repository state.
152
153
7. Produce a repo-structured ZIP under `tmp/` that includes the EOD report and all changed or preserved repo files from the closeout.
154
+
8. Record branch disposition as `deleted`, `retained for follow-up`, or `archived`.
155
+
9. Mark the PR Closed only when every Closed gate passes.
153
156
154
157
Required final state:
155
158
@@ -167,11 +170,27 @@ Rules:
167
170
- A workstream is not considered closed until the repository is returned to main.
168
171
- A PI is not considered complete until main is current and synchronized.
169
172
- Do not leave Codex on a feature, team, workstream, recovery, governance, or owner branch after successful merge.
173
+
- A PR is not Closed until the PR merged or an intentional no-merge close reason is recorded, changes are pushed, the repository is on `main`, `main` includes the merge or final commit, the worktree is clean, local/origin sync is `0/0`, no untracked files exist, branch disposition is recorded, required reports exist, and the required repo-structured ZIP exists under `tmp/`.
170
174
- A completed EOD closeout must produce the required ZIP even when the closeout changed no repo files; in that case, the ZIP must contain the EOD report proving the no-change result.
171
175
- The EOD ZIP does not replace the EOD report or other required reports under `docs_build/dev/reports/`.
172
176
- If merge succeeds but repository is not returned to main:
173
177
closeout status = FAIL.
174
178
179
+
Required final closeout output:
180
+
181
+
```text
182
+
FINAL REPOSITORY STATE:
183
+
- Branch
184
+
- Worktree
185
+
- Local/origin sync
186
+
- PR number/name
187
+
- PR status
188
+
- Merge/final commit
189
+
- Branch disposition
190
+
- ZIP path
191
+
- Closeout PASS/FAIL
192
+
```
193
+
175
194
## Workstream Hygiene Governance
176
195
177
196
At workstream closeout, Codex must review repository collaboration state before reporting the workstream closed.
Copy file name to clipboardExpand all lines: docs_build/dev/ProjectInstructions/addendums/pr_workflow.md
+49-10Lines changed: 49 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,53 @@ Define the standard pull request workflow for Game Foundry Studio.
12
12
1. Start from main.
13
13
2. Pull latest origin/main.
14
14
3. Verify clean worktree.
15
-
4. Create a PR branch.
16
-
5. Make scoped changes only.
17
-
6. Validate the change.
18
-
7. Commit with a clear OWNER/team message.
19
-
8. Push the branch.
20
-
9. Open a draft PR.
21
-
10. Review the PR.
22
-
11. OWNER approves merge.
23
-
12. Merge to main.
24
-
13. Pull latest main before starting the next PR.
15
+
4. Create a PR branch and PR identity.
16
+
5. Mark lifecycle state as PR Open.
17
+
6. Make scoped changes only.
18
+
7. Validate the change.
19
+
8. Commit with a clear OWNER/team message.
20
+
9. Push the branch.
21
+
10. Open or update the draft PR.
22
+
11. Review the PR.
23
+
12. OWNER approves merge or intentional close without merge.
24
+
13. Merge to main or record the approved no-merge close reason.
25
+
14. Pull latest main before starting the next PR.
26
+
15. Verify Main Verified and Closed gates.
27
+
28
+
## PR Lifecycle States
29
+
30
+
Required state order:
31
+
32
+
1. PR Open
33
+
2. Building
34
+
3. Validation
35
+
4. Approved
36
+
5. Merged
37
+
6. Main Verified
38
+
7. Closed
39
+
40
+
Definitions:
41
+
- PR Open is the first active lifecycle state.
42
+
- PR Open means the branch and PR identity are created and named before implementation begins.
43
+
- No BUILD_PR may proceed without a PR name and active branch/PR identity unless explicitly marked `PLAN_ONLY`.
44
+
- Building means scoped work is in progress.
45
+
- Validation means requested checks, required reports, manual validation notes, and ZIP packaging are underway.
46
+
- Approved means OWNER or required reviewer approval exists for merge or intentional close without merge.
47
+
- Merged means the PR merged, or the approved no-merge close reason is recorded.
48
+
- Main Verified means current branch is `main`, `main` includes the merge or final commit, worktree is clean, local/origin sync is `0/0`, and no untracked files remain.
49
+
- Closed is valid only after every Closed gate passes.
50
+
51
+
Closed gates:
52
+
- PR merged or intentionally closed without merge with reason recorded.
53
+
- Changes pushed.
54
+
- Current branch is `main`.
55
+
-`main` includes the merge commit or recorded final commit.
56
+
- Worktree clean.
57
+
- Local/origin sync is `0/0`.
58
+
- No untracked files.
59
+
- Branch disposition is recorded as `deleted`, `retained for follow-up`, or `archived`.
60
+
- Required reports exist.
61
+
- Required repo-structured ZIP under `tmp/` exists.
25
62
26
63
## Rules
27
64
@@ -31,6 +68,8 @@ Define the standard pull request workflow for Game Foundry Studio.
31
68
- Do not mix unrelated scopes.
32
69
- Do not start dependent PRs until the required base PR is merged.
33
70
- Always return to main before starting the next PR.
71
+
- A team must not begin another PR if its previous PR is not Closed.
72
+
- Exception is allowed only for explicitly documented stacked PR chains.
Copy file name to clipboardExpand all lines: docs_build/dev/ProjectInstructions/team_assignments/TEAM_ASSIGNMENTS.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ Rules:
17
17
- Registry must be updated when assignments change.
18
18
- Registry must be updated when branches are retired.
19
19
- Registry must be updated when PRs merge.
20
+
- Registry must record when a team PR reaches Closed before that team begins another PR, unless OWNER documented an explicit stacked PR chain.
20
21
- Teams with no active work are omitted.
21
22
22
23
A team is Active when:
@@ -138,6 +139,9 @@ Rules:
138
139
- Each PR must still have one clear purpose.
139
140
- Each PR must create its own branch.
140
141
- Each PR must be committed, pushed, and opened as a draft PR.
142
+
- Each PR starts at PR Open after the branch and PR identity are named.
143
+
- Each PR reaches Closed only after main-return, clean-worktree, local/origin `0/0`, no-untracked-files, required-report, required-ZIP, and branch-disposition gates pass.
144
+
- A team must not begin another PR until its previous PR is Closed unless OWNER documented an explicit stacked PR chain.
141
145
- Do not commit directly to main.
142
146
- Do not merge without explicit owner approval.
143
147
- If later PRs depend on earlier unmerged PRs, Codex must either:
@@ -164,6 +168,8 @@ Rules:
164
168
- Each PR must create or use its own approved branch.
165
169
- Each PR may be committed and pushed during active work.
166
170
- Each PR may be opened as a draft PR during active work.
171
+
- Each PR must move through PR Open, Building, Validation, Approved, Merged, Main Verified, and Closed in order.
172
+
- A team must not begin another PR until its previous PR is Closed unless OWNER documented an explicit stacked PR chain.
167
173
- Do not commit directly to main.
168
174
- Do not merge to main during active work unless the owner explicitly says: "Merge this PR now."
169
175
- If later PRs depend on earlier unmerged PRs, Codex must either:
0 commit comments