Skip to content

Commit 8a13929

Browse files
author
Delta Team
committed
Resolve #150 against current main
2 parents 78d8b0a + 62bebe2 commit 8a13929

19 files changed

Lines changed: 734 additions & 106 deletions

docs_build/dev/PROJECT_INSTRUCTIONS.md

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Workflow:
66
PLAN_PR → BUILD_PR → APPLY_PR
77

88
PR lifecycle gate:
9-
PR Open → Building → Validation → Approved → Merged → Main Verified → Closed
9+
PR Open → Plan → Build → Validation → Approved → Merged → Main Verified → Closed
1010

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.
11+
The PLAN_PR → BUILD_PR → APPLY_PR workflow remains preserved. PR Open is the first lifecycle status for active work, Plan happens after PR Open on the same PR branch, and Closed is the final repository-state gate.
1212

1313
# WORKFLOW & EXECUTION
1414

@@ -54,35 +54,39 @@ Rules:
5454
Required state order:
5555

5656
1. PR Open
57-
2. Building
58-
3. Validation
59-
4. Approved
60-
5. Merged
61-
6. Main Verified
62-
7. Closed
57+
2. Plan
58+
3. Build
59+
4. Validation
60+
5. Approved
61+
6. Merged
62+
7. Main Verified
63+
8. Closed
6364

6465
Definitions:
6566
- 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+
- PR Open means the tracked PR identity and source branch have been created and named before Plan begins.
68+
- Plan happens after PR Open on the same PR branch.
69+
- Build, validation, reports, ZIP packaging, and closeout stay tied to that same PR identity and source branch.
6770
- 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.
71+
- Build means scoped implementation, audit, report, validation, governance, or cleanup work is in progress for that PR identity.
6972
- 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.
73+
- Approved means the owner or required reviewer has approved the PR outcome for merge.
74+
- Merged means the PR has merged and changes have been pushed.
7275
- 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.
7376
- Closed means every Closed gate below is PASS.
7477

7578
Closed is valid only when all are PASS:
76-
- PR merged or intentionally closed without merge with reason recorded.
77-
- Changes pushed.
79+
- PR merged and changes pushed.
7880
- Current branch is `main`.
7981
- `main` includes the merge commit or recorded final commit.
8082
- Worktree clean.
8183
- Local/origin sync is `0/0`.
8284
- No untracked files.
83-
- Branch disposition recorded as `deleted`, `retained for follow-up`, or `archived`.
85+
- Branch disposition recorded as `retained`.
8486
- Required reports exist.
8587
- Required repo-structured ZIP under `tmp/` exists.
88+
- Backlog updated.
89+
- Tool state updated when applicable.
8690

8791
Hard stop:
8892
- A team must not begin another PR if its previous PR is not Closed.
@@ -99,6 +103,8 @@ FINAL REPOSITORY STATE:
99103
- PR status
100104
- Merge/final commit
101105
- Branch disposition
106+
- Backlog update status
107+
- Tool state update status
102108
- ZIP path
103109
- Closeout PASS/FAIL
104110
```
@@ -2167,7 +2173,7 @@ Each reviewed item must be classified as one of:
21672173
- Historical/Archive
21682174

21692175
Rules:
2170-
- Merged branches should be deleted after successful merge and main sync.
2176+
- Merged source branches should be retained by default after successful merge and main sync.
21712177
- Superseded draft PRs should be closed.
21722178
- Abandoned branches should be documented before removal.
21732179
- Active workstream branches remain.
@@ -2193,7 +2199,7 @@ Required PI closeout report fields:
21932199
- active PRs
21942200
- active branches
21952201
- closed/superseded PRs
2196-
- deleted branch candidates
2202+
- retained branch disposition and any owner-approved deletion candidates
21972203
- deferred work
21982204
- next PI priorities
21992205

@@ -2216,8 +2222,7 @@ Audit targets:
22162222
Recommendation-only first pass values:
22172223
- keep
22182224
- close
2219-
- delete local
2220-
- delete remote
2225+
- retained
22212226
- defer
22222227

22232228
Rules:

docs_build/dev/ProjectInstructions/addendums/branch_context_governance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Closed branch context requires:
5757
- worktree clean
5858
- local/origin sync is `0/0`
5959
- no untracked files
60-
- branch disposition recorded as `deleted`, `retained for follow-up`, or `archived`
60+
- source branch disposition recorded as `retained`
6161

6262
## GitHub Authority
6363

docs_build/dev/ProjectInstructions/addendums/branch_lock_governance.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Keep active work attached to the correct assigned team, branch, and OWNER decisi
1515
- A team with no active assignment, active branch, or active PR is inactive.
1616
- A team with a previous PR that is not Closed must not begin another PR unless OWNER documented an explicit stacked PR chain.
1717
- 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.
18+
- Plan, Build, validation, reports, ZIP packaging, and closeout stay tied to the same PR identity and source branch.
19+
- Closed ends only after the final main-return, clean-worktree, local/origin `0/0`, no-untracked-files, required-report, required-ZIP, backlog, applicable tool-state, and branch-disposition gates pass.
1920
- Project Instructions must not assume a permanent team roster.
2021

2122
## Branch Rules
@@ -25,7 +26,8 @@ Keep active work attached to the correct assigned team, branch, and OWNER decisi
2526
- Keep work on the active branch until the PR is merged, the branch is retired, or OWNER says to return to `main`.
2627
- Do not commit directly to `main` unless OWNER explicitly approves.
2728
- 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`.
29+
- Retain source branches by default after merge and closeout.
30+
- Record branch disposition before Closed as `retained`.
2931

3032
## OWNER Override
3133

docs_build/dev/ProjectInstructions/addendums/multi_team.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Required steps:
151151
5. Record final main commit.
152152
6. Report final repository state.
153153
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`.
154+
8. Record source branch disposition as `retained`.
155155
9. Mark the PR Closed only when every Closed gate passes.
156156

157157
Required final state:
@@ -170,7 +170,9 @@ Rules:
170170
- A workstream is not considered closed until the repository is returned to main.
171171
- A PI is not considered complete until main is current and synchronized.
172172
- 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/`.
173+
- Plan, Build, validation, reports, ZIP packaging, and closeout stay tied to the same PR identity and source branch.
174+
- Source branches are retained by default after merge and closeout.
175+
- A PR is not Closed until the PR merged, 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 as `retained`, required reports exist, the required repo-structured ZIP exists under `tmp/`, backlog is updated, and tool state is updated when applicable.
174176
- 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.
175177
- The EOD ZIP does not replace the EOD report or other required reports under `docs_build/dev/reports/`.
176178
- If merge succeeds but repository is not returned to main:
@@ -187,6 +189,8 @@ FINAL REPOSITORY STATE:
187189
- PR status
188190
- Merge/final commit
189191
- Branch disposition
192+
- Backlog update status
193+
- Tool state update status
190194
- ZIP path
191195
- Closeout PASS/FAIL
192196
```
@@ -209,7 +213,7 @@ Each reviewed item must be classified as one of:
209213
- Historical/Archive
210214

211215
Rules:
212-
- Merged branches should be deleted after successful merge and main sync.
216+
- Merged source branches should be retained by default after successful merge and main sync.
213217
- Superseded draft PRs should be closed.
214218
- Abandoned branches should be documented before removal.
215219
- Active workstream branches remain.
@@ -235,7 +239,7 @@ Required PI closeout report fields:
235239
- active PRs
236240
- active branches
237241
- closed/superseded PRs
238-
- deleted branch candidates
242+
- retained branch disposition and any owner-approved deletion candidates
239243
- deferred work
240244
- next PI priorities
241245

@@ -258,8 +262,7 @@ Audit targets:
258262
Recommendation-only first pass values:
259263
- keep
260264
- close
261-
- delete local
262-
- delete remote
265+
- retained
263266
- defer
264267

265268
Rules:

docs_build/dev/ProjectInstructions/addendums/pr_workflow.md

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,57 +14,63 @@ Define the standard pull request workflow for Game Foundry Studio.
1414
3. Verify clean worktree.
1515
4. Create a PR branch and PR identity.
1616
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.
17+
6. Plan on the same PR branch.
18+
7. Build on the same PR branch.
19+
8. Validate the change.
20+
9. Commit with a clear OWNER/team message.
21+
10. Push the branch.
22+
11. Open or update the draft PR.
23+
12. Review the PR.
24+
13. OWNER approves merge.
25+
14. Merge to main.
26+
15. Pull latest main before starting the next PR.
27+
16. Verify Main Verified and Closed gates.
2728

2829
## PR Lifecycle States
2930

3031
Required state order:
3132

3233
1. PR Open
33-
2. Building
34-
3. Validation
35-
4. Approved
36-
5. Merged
37-
6. Main Verified
38-
7. Closed
34+
2. Plan
35+
3. Build
36+
4. Validation
37+
5. Approved
38+
6. Merged
39+
7. Main Verified
40+
8. Closed
3941

4042
Definitions:
4143
- PR Open is the first active lifecycle state.
42-
- PR Open means the branch and PR identity are created and named before implementation begins.
44+
- PR Open means the tracked PR identity and source branch are created and named before Plan begins.
45+
- Plan happens after PR Open on the same PR branch.
4346
- 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.
47+
- Build means scoped work is in progress on the same PR branch and PR identity.
4548
- 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.
49+
- Approved means OWNER or required reviewer approval exists for merge.
50+
- Merged means the PR merged and changes were pushed.
4851
- 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.
4952
- Closed is valid only after every Closed gate passes.
5053

5154
Closed gates:
52-
- PR merged or intentionally closed without merge with reason recorded.
53-
- Changes pushed.
55+
- PR merged and changes pushed.
5456
- Current branch is `main`.
5557
- `main` includes the merge commit or recorded final commit.
5658
- Worktree clean.
5759
- Local/origin sync is `0/0`.
5860
- No untracked files.
59-
- Branch disposition is recorded as `deleted`, `retained for follow-up`, or `archived`.
61+
- Branch disposition is recorded as `retained`.
6062
- Required reports exist.
6163
- Required repo-structured ZIP under `tmp/` exists.
64+
- Backlog is updated.
65+
- Tool state is updated when applicable.
6266

6367
## Rules
6468

6569
- Direct commits to main are prohibited unless OWNER explicitly approves.
6670
- Draft PRs are preferred until validation is complete.
6771
- Each PR must have a clear scope.
72+
- Plan, Build, validation, reports, ZIP packaging, and closeout must stay tied to the same PR identity and source branch.
73+
- Source branches are retained by default after merge and closeout.
6874
- Do not mix unrelated scopes.
6975
- Do not start dependent PRs until the required base PR is merged.
7076
- Always return to main before starting the next PR.

docs_build/dev/ProjectInstructions/addendums/team_release_readiness.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Teams may start only when all of the following are true:
2020
- No-direct-main rule exists.
2121
- Out-of-scope stop rule exists.
2222
- Build Path sync rule exists.
23-
- PR lifecycle states exist in order: PR Open, Building, Validation, Approved, Merged, Main Verified, Closed.
23+
- PR lifecycle states exist in order: PR Open, Plan, Build, Validation, Approved, Merged, Main Verified, Closed.
2424
- Previous-PR Closed gate exists before a team starts another PR, except explicitly documented stacked PR chains.
25-
- Final closeout output includes branch, worktree, local/origin sync, PR number/name, PR status, merge/final commit, branch disposition, ZIP path, and Closeout PASS/FAIL.
25+
- Final closeout output includes branch, worktree, local/origin sync, PR number/name, PR status, merge/final commit, branch disposition, backlog update status, tool state update status, ZIP path, and Closeout PASS/FAIL.
2626

2727
## Gate Outcome
2828

docs_build/dev/ProjectInstructions/addendums/team_start_and_release.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ For backlog-driven work:
6363
3. Use the approved status model from `status_model.md`.
6464
4. Confirm the previous PR for the team is Closed, unless this is an explicitly documented stacked PR chain.
6565
5. Create or use the approved team branch and PR identity.
66-
6. Mark lifecycle state as PR Open before BUILD_PR work begins.
67-
7. Record active work in the active team registry when required.
68-
8. Open or update a draft PR during active work.
69-
9. Merge only through OWNER-approved PR workflow.
66+
6. Mark lifecycle state as PR Open.
67+
7. Plan on the same PR branch.
68+
8. Build on the same PR branch.
69+
9. Record active work in the active team registry when required.
70+
10. Open or update a draft PR during active work.
71+
11. Merge only through OWNER-approved PR workflow.
7072

7173
## Team Command Examples
7274

@@ -94,15 +96,17 @@ A team or OWNER PR is release-ready when:
9496
- required reports and repo-structured ZIP under `tmp/` exist before Closed
9597

9698
Closed readiness requires:
97-
- PR merged or intentionally closed without merge with reason recorded
99+
- PR merged and pushed
98100
- current branch is `main`
99101
- worktree clean
100102
- local/origin sync is `0/0`
101103
- no untracked files
102104
- merge or final commit recorded
103-
- branch disposition recorded as `deleted`, `retained for follow-up`, or `archived`
105+
- branch disposition recorded as `retained`
104106
- required reports exist
105107
- required repo-structured ZIP under `tmp/` exists
108+
- backlog updated
109+
- tool state updated when applicable
106110

107111
## Gate Behavior
108112

docs_build/dev/ProjectInstructions/team_assignments/TEAM_ASSIGNMENTS.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ Rules:
140140
- Each PR must create its own branch.
141141
- Each PR must be committed, pushed, and opened as a draft PR.
142142
- 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.
143+
- Each PR plans and builds on the same source branch after PR Open.
144+
- Each PR reaches Closed only after main-return, clean-worktree, local/origin `0/0`, no-untracked-files, required-report, required-ZIP, backlog, applicable tool-state, and retained-branch-disposition gates pass.
144145
- A team must not begin another PR until its previous PR is Closed unless OWNER documented an explicit stacked PR chain.
145146
- Do not commit directly to main.
146147
- Do not merge without explicit owner approval.
@@ -168,7 +169,9 @@ Rules:
168169
- Each PR must create or use its own approved branch.
169170
- Each PR may be committed and pushed during active work.
170171
- 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+
- Each PR must move through PR Open, Plan, Build, Validation, Approved, Merged, Main Verified, and Closed in order.
173+
- Plan, Build, validation, reports, ZIP packaging, and closeout must stay tied to the same PR identity and source branch.
174+
- Source branches are retained by default after merge and closeout.
172175
- A team must not begin another PR until its previous PR is Closed unless OWNER documented an explicit stacked PR chain.
173176
- Do not commit directly to main.
174177
- Do not merge to main during active work unless the owner explicitly says: "Merge this PR now."

0 commit comments

Comments
 (0)