Skip to content

Commit 5b237c2

Browse files
committed
Move dev local runtime entrypoints
1 parent db05816 commit 5b237c2

23 files changed

Lines changed: 449 additions & 186 deletions

dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Rules:
117117

118118
## Current Version/Date
119119

120-
- Project Instructions Version: 2026.06.28.009
120+
- Project Instructions Version: 2026.06.28.010
121121
- Date: 2026-06-28
122122
- Owner: OWNER
123123

dev/build/ProjectInstructions/PROJECT_INSTRUCTIONS_VERSION.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Project Instructions Version
22

3-
Current Project Instructions Version: 2026.06.28.009
3+
Current Project Instructions Version: 2026.06.28.010
44

55
Last Updated: 2026-06-28
66

@@ -16,7 +16,8 @@ Last Updated: 2026-06-28
1616
- Added `www/` migration map for safe browser-served application movement planning.
1717
- Added local route-root compatibility toggle documentation for future `www/` activation.
1818
- Moved browser-served application files under `www/` and made local static serving prefer `www/` by default.
19-
- Moved server/API application runtime under `api/`; browser API clients remain outside `api/` and developer-only bootstrap remains in `dev/` until the local-runtime migration PR.
19+
- Moved server/API application runtime under `api/`; browser API clients remain outside `api/`.
20+
- Moved developer-only local runtime/bootstrap entrypoints under `dev/local-runtime/` and preserved the public npm command surface.
2021
- Codex must read this version file and the latest repository copy of `PROJECT_INSTRUCTIONS.md` before performing work.
2122
- Codex must discard previously remembered Project Instructions and treat the repository copy as authoritative.
2223
- Codex must validate canonical report and ZIP paths, branching model, and legacy path avoidance before work proceeds.

dev/build/ProjectInstructions/PROJECT_STATE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Project State
22

33
```yaml
4-
project_state_version: "2026.06.28.009"
4+
project_state_version: "2026.06.28.010"
55
last_updated: "2026-06-28"
66
current_main_commit: "40de767476d70cadfd1292c916844c2f31b6f185"
77
repository_status:
@@ -10,18 +10,18 @@ repository_status:
1010
runtime_database: "Postgres"
1111
creator_metadata: "API to Postgres"
1212
creator_assets: "API to R2"
13-
project_instructions_version: "2026.06.28.009"
14-
repository_structure_version: "2026.06.28.009"
15-
canonical_layout_version: "2026.06.28.009"
13+
project_instructions_version: "2026.06.28.010"
14+
repository_structure_version: "2026.06.28.010"
15+
canonical_layout_version: "2026.06.28.010"
1616
active_teams:
1717
- "Owner"
1818
- "Alfa"
1919
- "Bravo"
2020
- "Charlie"
2121
- "Delta"
2222
- "Golf"
23-
latest_owner_pr: "PR_26180_OWNER_009-move-api-application"
24-
latest_structure_pr: "PR_26180_OWNER_009-move-api-application"
23+
latest_owner_pr: "PR_26180_OWNER_010-move-dev-local-runtime"
24+
latest_structure_pr: "PR_26180_OWNER_010-move-dev-local-runtime"
2525
valid_top_level_folders:
2626
- "api/"
2727
- "deploy/"

dev/build/ProjectInstructions/backlog/BACKLOG_MASTER.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ The backlog is the authoritative source for determining the next logical PRs.
3939
- Team: Owner
4040
- Product Area: Repository Architecture Simplification
4141
- Status: Active
42-
- Percent Complete: 40%
43-
- Active PR: PR_26180_OWNER_009-move-api-application
44-
- Next Milestone: Move developer-only local runtime into `dev/local-runtime/`
42+
- Percent Complete: 50%
43+
- Active PR: PR_26180_OWNER_010-move-dev-local-runtime
44+
- Next Milestone: Move tests and validation path references for the new layout
4545
- Source / Reference: `dev/build/ProjectInstructions/repository/repository_layout_architecture_plan.md`; `dev/build/ProjectInstructions/repository/www_migration_map.md`
4646

4747
## Game Journey MVP
@@ -214,8 +214,8 @@ The backlog is the authoritative source for determining the next logical PRs.
214214
- `npm run dev:local-api` remains as the legacy API alias.
215215
- `npm run dev:api` supports API-only startup.
216216
- `npm run dev:web` supports web-only startup.
217-
- `dev/bootstrap/start-dev.mjs` owns bootstrap orchestration.
218-
- `dev/bootstrap/team-port-config.mjs` owns team port resolution.
217+
- `dev/local-runtime/start-dev.mjs` owns bootstrap orchestration.
218+
- `dev/local-runtime/team-port-config.mjs` owns team port resolution.
219219
- Team-aware `--team` runtime support is implemented.
220220
- Bootstrap orchestration, browser launch reporting, and port resolution are implemented.
221221
- Verified command: `npm run dev:bootstrap -- --team bravo`.

dev/build/ProjectInstructions/repository/canonical_repository_structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Dev workspace ownership:
5252
- dev/archive/ owns historical reference material only.
5353
- dev/build/ owns active Project Instructions, architecture, database DDL/DML/seed docs, standards, backlog, PR planning, and governance.
5454
- dev/config/ owns development-only runner and tooling configuration.
55-
- dev/local-runtime/ owns developer-only local runtime bootstrap, team port resolution, local diagnostics, and browser launch orchestration after the migration step that moves those files.
55+
- dev/local-runtime/ owns developer-only local runtime bootstrap, team port resolution, local diagnostics, and browser launch orchestration.
5656
- dev/reports/ owns authoritative Codex reports for the repository. Reports committed to `main` are the official record.
5757
- dev/scripts/ owns development-only scripts and runners.
5858
- dev/templates/ owns reusable development templates.

dev/build/ProjectInstructions/repository/repository_layout_architecture_plan.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ No browser, API, server, test, script, or runtime files move in the scaffold or
2626

2727
`PR_26180_OWNER_008-move-www-application` moved browser-served application files under `www/` and made local static serving prefer `www/` while preserving public URLs.
2828

29-
`PR_26180_OWNER_009-move-api-application` moves server/API application runtime under `api/` while preserving `/api/*` route behavior. Browser API client modules remain outside `api/`, and developer-only local startup orchestration remains under `dev/` until the local-runtime migration PR.
29+
`PR_26180_OWNER_009-move-api-application` moves server/API application runtime under `api/` while preserving `/api/*` route behavior. Browser API client modules remain outside `api/`.
30+
31+
`PR_26180_OWNER_010-move-dev-local-runtime` moves developer-only local runtime/bootstrap entrypoints under `dev/local-runtime/` while preserving `npm run dev:bootstrap`, `npm run dev:api`, `npm run dev:web`, and `npm run dev:local-api`.
3032

3133
## Proposed Future Layout
3234

@@ -95,7 +97,7 @@ Local development may use the team-aware developer bootstrap and local runtime s
9597
Developer command -> dev bootstrap -> local www server + local api server -> Postgres/R2 or approved local provider
9698
```
9799

98-
Current local bootstrap commands remain unchanged by this plan. This PR does not modify `package.json` commands.
100+
Current local bootstrap command names remain stable. `PR_26180_OWNER_010-move-dev-local-runtime` updates the command targets to `dev/local-runtime/` without changing the user-facing command names.
99101

100102
The local developer workflow must continue to prove the same browser/API/database contract that deployed environments use.
101103

dev/build/ProjectInstructions/repository/www_migration_map.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Three active server/helper surfaces currently resolve static browser paths throu
111111

112112
| File | Current behavior |
113113
| --- | --- |
114-
| `dev/scripts/start-dev.mjs` | Team-aware bootstrap static server resolves requests with `resolveStaticRouteTarget()`, preferring `www/` while preserving public route URLs and compatibility routes. |
114+
| `dev/local-runtime/start-dev.mjs` | Team-aware bootstrap static server resolves requests with `resolveStaticRouteTarget()`, preferring `www/` while preserving public route URLs and compatibility routes. |
115115
| `api/server/local-api-server.mjs` | Legacy local API alias serves API routes and falls back to `resolveStaticRouteTarget()`, preferring `www/` while preserving public route URLs and compatibility routes. |
116116
| `dev/tests/helpers/playwrightRepoServer.mjs` | Playwright test server mirrors the shared static route resolver and compatibility routes. |
117117

@@ -151,7 +151,6 @@ The `www/` move PR updated test helpers and route expectations for the filesyste
151151

152152
### Defer
153153

154-
- Moving developer bootstrap into `dev/local-runtime/`.
155154
- Removing legacy root compatibility routes.
156155
- Changing package commands.
157156
- Renaming public URLs.

dev/local-runtime/.gitkeep

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)