Skip to content

Commit dc5d083

Browse files
authored
Merge PR #243: PR_26179_OWNER_008-update-path-governance-final
Owner-approved restructure stack closeout.
2 parents 17600f9 + d581b01 commit dc5d083

12 files changed

Lines changed: 286 additions & 19335 deletions

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ This repo is designed as a learning system, not just a code dump.
9090

9191
## 🏗️ Architecture Overview
9292

93-
- Engine Layer → [src/engine/](src/engine/)
94-
- Advanced Systems → [src/advanced/](src/advanced/)
93+
- Web layer target → `src/web/`
94+
- API runtime target → `src/api-runtime/`
95+
- Runtime layer target → `src/runtime/`
96+
- Existing `src/engine/`, `src/advanced/`, `src/shared/`, `src/tools/`, `src/api/`, and `src/dev-runtime/` folders are legacy transition buckets until dedicated migration PRs move them.
9597
- Tools, samples, and games consume public contracts only
9698

9799
---
@@ -122,8 +124,8 @@ PLAN_PR → BUILD_PR → APPLY_PR
122124

123125
## ⚠️ Runtime Boundary Rules
124126

125-
- Engine code lives in [src/engine/](src/engine/)
126-
- Advanced systems live in [src/advanced/](src/advanced/)
127+
- New deployable source belongs under `src/web/`, `src/api-runtime/`, or `src/runtime/`.
128+
- Existing legacy `src/*` buckets remain transition-only until scoped migration PRs move them.
127129
- Tools, samples, and games must use public contracts only
128130
- Engine boundaries should not be bypassed
129131

dev/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ This folder is the destination shell for non-deployable development workspace ma
1616
- `dev/docs_build/` owns active development governance and PR workflow material.
1717
- `dev/reports/` owns generated reports.
1818
- `dev/workspace/artifacts/` owns generated non-report artifacts and local temporary workspace output.
19+
- `dev/tests/` owns non-deployable tests.
20+
- `dev/scripts/` owns development-only scripts and runners.
21+
- `dev/config/` owns development-only runner and tooling configuration.
1922
- `dev/archive/` owns historical development reference material.
2023
- `dev/project-instructions/` is deprecated reference only; active Project Instructions live under `dev/docs_build/dev/ProjectInstructions/`.
2124

dev/docs_build/dev/ProjectInstructions/PROJECT_INSTRUCTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ When active guidance overlaps, use these canonical owner documents:
6666

6767
- Workflow and Product Owner testable completion: `dev/docs_build/dev/ProjectInstructions/addendums/pr_workflow.md`
6868
- START / WORK / END lifecycle, branch gates, mandatory hard stops, and EOD main lock: `dev/docs_build/dev/ProjectInstructions/addendums/project_instructions_single_source_eod_lock.md`
69-
- Repository directory ownership and restructure boundaries: `dev/docs_build/dev/ProjectInstructions/addendums/repository_directory_standard.md`
69+
- Repository directory ownership, final root standard, final `src/` layer standard, final `dev/` workspace standard, and restructure boundaries: `dev/docs_build/dev/ProjectInstructions/addendums/repository_directory_standard.md`
7070
- Page-level Playwright organization and completion coverage: `dev/docs_build/dev/ProjectInstructions/addendums/test_structure_standardization.md`
7171
- API/environment model and `Browser -> API -> Database` rule: `dev/docs_build/dev/ProjectInstructions/addendums/environment_governance_model.md`
7272
- Environment variable, URL, R2 prefix, and feature flag configuration: `dev/docs_build/dev/ProjectInstructions/addendums/environment_configuration_standards.md`

dev/docs_build/dev/ProjectInstructions/addendums/canonical_repository_structure.md

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,29 @@ Establish the canonical repository structure for future development and reduce t
66

77
## Canonical Structure
88

9+
Root product sections:
10+
- docs/
11+
- games/
12+
- toolbox/
13+
- account/
14+
- admin/
15+
- legal/
16+
- assets/
17+
18+
Deployable application source:
19+
- src/web/{feature-name}/
20+
- src/api-runtime/{feature-name}/
21+
- src/runtime/{feature-name}/
22+
23+
Development workspace:
24+
- dev/docs_build/
25+
- dev/reports/
26+
- dev/tests/
27+
- dev/scripts/
28+
- dev/config/
29+
- dev/archive/
30+
- dev/workspace/artifacts/
31+
932
Tools:
1033
- toolbox/{tool-name}/index.html
1134

@@ -20,14 +43,15 @@ Themes:
2043
Shared JavaScript:
2144
- assets/js/shared/
2245

23-
Engine:
24-
- src/engine/{feature-name}/
25-
26-
API:
27-
- api/{feature-name}/
46+
Legacy transition buckets:
47+
- src/advanced/
48+
- src/api/
49+
- src/dev-runtime/
50+
- src/engine/
51+
- src/shared/
52+
- src/tools/
2853

29-
Serverside:
30-
- serverside/{feature-name}/
54+
These legacy transition buckets may remain until explicit migration PRs move them into `src/web/`, `src/api-runtime/`, or `src/runtime/`.
3155

3256
## Rules
3357

@@ -37,3 +61,7 @@ Serverside:
3761
- No new scattered JS folders.
3862
- No new scattered CSS folders.
3963
- New development follows the canonical structure.
64+
- New deployable `src/` work follows `src/web/`, `src/api-runtime/`, or `src/runtime/`.
65+
- New non-deployable work belongs under `dev/`.
66+
- Required reports belong under flat `dev/reports/`.
67+
- Required ZIPs and generated temporary artifacts belong under `dev/workspace/artifacts/tmp/`.

dev/docs_build/dev/ProjectInstructions/addendums/repository_directory_standard.md

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,57 @@ Owner: OWNER
55

66
## Purpose
77

8-
Define the target repository directory ownership model before the development workspace restructure chain begins.
8+
Define the target repository directory ownership model for the post-restructure repository.
99

1010
This document is governance only. It does not move runtime, UI, API, tests, or production files by itself.
1111

1212
## Directory Ownership
1313

14-
- Repository root contains production/public product sections and standard repository configuration.
14+
- Repository root contains production/public product sections and standard repository configuration only.
1515
- `src/` contains deployable application code.
1616
- `dev/` contains non-deployable build, test, bootstrap, governance, report, and local workspace items.
1717
- `docs/` remains at root because it is production Docs & Help.
1818
- `games/` remains at root because it is public game discovery.
1919
- `toolbox/` remains at root because it is the Creator toolbox/workspace.
20+
- Other public product roots such as `account/`, `admin/`, `legal/`, and `assets/` remain root-level product sections when present.
21+
22+
## Final Src Layer Standard
23+
24+
The final `src/` ownership model is:
25+
26+
- `src/web/` for browser-facing deployable application modules used by public pages, account/admin surfaces, and Creator tools.
27+
- `src/api-runtime/` for deployable API/runtime service modules that back the shared Browser -> API -> Postgres/R2 contract.
28+
- `src/runtime/` for deployable game, tool, engine, and shared runtime capabilities.
29+
30+
Transition rule:
31+
32+
- Existing top-level `src/advanced/`, `src/api/`, `src/dev-runtime/`, `src/engine/`, `src/shared/`, and `src/tools/` directories are legacy transition buckets until explicit migration PRs move them.
33+
- Do not add new top-level `src/` layer names outside `src/web/`, `src/api-runtime/`, or `src/runtime/` without OWNER approval.
34+
- Do not use team names in runtime source filenames.
2035

2136
## Development Workspace Paths
2237

23-
- `dev/docs_build/` owns active development governance, Project Instructions, PR workflow material, validation reports, and generated documentation-workspace artifacts.
38+
- `dev/docs_build/` owns active development governance, Project Instructions, and PR workflow material.
39+
- `dev/reports/` owns generated reports using flat filenames.
40+
- `dev/tests/` owns non-deployable test suites.
41+
- `dev/scripts/` owns development-only scripts and runners.
42+
- `dev/config/` owns development-only runner and tooling configuration.
43+
- `dev/workspace/artifacts/` owns generated non-report artifacts and ignored local temporary workspace output.
2444
- `dev/archive/` owns historical development reference material that is not active governance.
2545
- `dev/project-instructions/` is deprecated reference only when retained; it must point to `dev/docs_build/dev/ProjectInstructions/`.
26-
- Root `docs_build/`, root `archive/`, and root `project-instructions/` are not active workspace locations after the governance workspace move.
46+
- Root `docs_build/`, root `tests/`, root `archive/`, root `tmp/`, and root `project-instructions/` are not active workspace locations after the restructure.
47+
- Root `tmp/` may remain ignored as legacy local scratch only; required Codex ZIPs and generated temporary artifacts belong under `dev/workspace/artifacts/tmp/`.
48+
49+
## Legacy Reference Exceptions
50+
51+
Path references to old root `docs_build/`, `tests/`, `archive/`, or `tmp/` locations are allowed only when they are:
52+
53+
- historical/reference content under `dev/archive/` or `dev/docs_build/dev/PR/reference/`
54+
- explicit legacy exception notes in active governance
55+
- ignore rules that keep obsolete local scratch from entering commits
56+
- migration reports documenting the old path and its replacement
57+
58+
Active commands, templates, and Project Instructions must use the final `dev/`, `dev/reports/`, and `dev/workspace/artifacts/` paths.
2759

2860
## Creator Data Boundary
2961

@@ -42,3 +74,5 @@ This document is governance only. It does not move runtime, UI, API, tests, or p
4274
## PR Chain Boundary
4375

4476
The development workspace restructure must proceed through sequential scoped PRs. A PR may only move or update the paths named in its purpose.
77+
78+
Final path-governance PRs may document target paths and legacy exceptions, but they must not move deployable application code unless explicitly scoped.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# PR_26179_OWNER_008-update-path-governance-final
2+
3+
Updated: 2026-06-27T20:36:34.395Z
4+
Branch: PR_26179_OWNER_008-update-path-governance-final
5+
ZIP: dev/workspace/artifacts/tmp/PR_26179_OWNER_008-update-path-governance-final_delta.zip
6+
7+
## Purpose
8+
9+
Finalize path governance after the dev workspace restructure chain and correct the PR #243 GitHub Actions platform-validation script path after the root `scripts/` directory moved to `dev/scripts/`.
10+
11+
## Changes
12+
13+
- Updated `.github/workflows/platform-validation.yml` from `node ./scripts/run-platform-validation-suite.mjs` to `node ./dev/scripts/run-platform-validation-suite.mjs`.
14+
- Confirmed no other GitHub Actions workflow references still call moved root `./scripts/` paths.
15+
- Preserved PR_008 governance-only path standard updates.
16+
17+
## Validation Summary
18+
19+
| Status | Item | Notes |
20+
| --- | --- | --- |
21+
| PASS | Current branch | PR_26179_OWNER_008-update-path-governance-final |
22+
| PASS | GitHub Actions platform-validation path | .github/workflows/platform-validation.yml uses node ./dev/scripts/run-platform-validation-suite.mjs |
23+
| PASS | Old moved root scripts path grep | No .github workflow references to node ./scripts/, run: ./scripts/, or standalone ./scripts/ remain. |
24+
| PASS | npm run validate:canonical-structure | passed |
25+
| PASS | git diff --check | passed |
26+
| PASS | node ./dev/scripts/run-platform-validation-suite.mjs | passed locally: 8/8 deterministic platform scenarios; CI gate green message emitted |
27+
| PASS | Runtime/product scope | No runtime/business logic, production pages, or routes modified. |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# PR_26179_OWNER_008-update-path-governance-final Branch Validation
2+
3+
| Status | Item | Notes |
4+
| --- | --- | --- |
5+
| PASS | Current branch | PR_26179_OWNER_008-update-path-governance-final |
6+
| PASS | GitHub Actions platform-validation path | .github/workflows/platform-validation.yml uses node ./dev/scripts/run-platform-validation-suite.mjs |
7+
8+
Result: PASS
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# PR_26179_OWNER_008-update-path-governance-final Manual Validation Notes
2+
3+
- Confirmed branch: PR_26179_OWNER_008-update-path-governance-final
4+
- Worktree was clean at start before the workflow patch.
5+
- Changed only `.github/workflows/platform-validation.yml` and PR_008 report artifacts for the CI path correction.
6+
- Confirmed no old root `./scripts/` GitHub Actions workflow calls remain.
7+
- Ran `node ./dev/scripts/run-platform-validation-suite.mjs`; local platform validation passed 8/8 scenarios and emitted CI gate green.
8+
- Ran `npm run validate:canonical-structure`; passed.
9+
- Ran `git diff --check`; passed.
10+
- Repo-structured ZIP path: `dev/workspace/artifacts/tmp/PR_26179_OWNER_008-update-path-governance-final_delta.zip`
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PR_26179_OWNER_008-update-path-governance-final Requirement Checklist
2+
3+
| Status | Item | Notes |
4+
| --- | --- | --- |
5+
| PASS | Find workflow references to node ./scripts/run-platform-validation-suite.mjs | Located one reference in .github/workflows/platform-validation.yml. |
6+
| PASS | Update to node ./dev/scripts/run-platform-validation-suite.mjs | Updated only the moved CI script path. |
7+
| PASS | Check for other GitHub Actions moved root scripts/ references | Targeted grep found no remaining old root ./scripts/ workflow calls. |
8+
| PASS | Do not move files | No files moved. |
9+
| PASS | Do not change runtime behavior | Only GitHub Actions workflow path and reports changed. |
10+
| PASS | Do not change production pages | No production page files changed. |
11+
12+
Result: PASS
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# PR_26179_OWNER_008-update-path-governance-final Validation Lane
2+
3+
| Status | Item | Notes |
4+
| --- | --- | --- |
5+
| PASS | Old moved root scripts path grep | No .github workflow references to node ./scripts/, run: ./scripts/, or standalone ./scripts/ remain. |
6+
| PASS | npm run validate:canonical-structure | passed |
7+
| PASS | git diff --check | passed |
8+
| PASS | node ./dev/scripts/run-platform-validation-suite.mjs | passed locally: 8/8 deterministic platform scenarios; CI gate green message emitted |
9+
| PASS | Runtime/product scope | No runtime/business logic, production pages, or routes modified. |
10+
11+
Scoped validation result: PASS

0 commit comments

Comments
 (0)