diff --git a/specs/028-split-big-packages/OPEN-DECISIONS.md b/specs/028-split-big-packages/OPEN-DECISIONS.md index 3ca50dd5e..87575c92d 100644 --- a/specs/028-split-big-packages/OPEN-DECISIONS.md +++ b/specs/028-split-big-packages/OPEN-DECISIONS.md @@ -21,4 +21,6 @@ All decisions for this spec are settled; none is open. A new question gets its o - **OD-11 (FR-018, contracts/layout-check.md rule 1): dev scripts under `web/scripts/`.** No exemption: `web/scripts/i18n-migrate.ts` (1,195 lines, spec 019 codemod) is split like any other file, in place, into files of 500 lines or fewer (T061). Chosen on a card (2026-10-22). +- **OD-12 (T044, T050, T051, T053): components split into their own repos.** `mcp-server` (GameplanePanel/mcp, PR #993), `audit-syslog-bridge`, `tunnel` and `capture-sidecar` are leaving this repo. Their tasks are carried into the new repos, not withdrawn: the same layout (027 OD-3) and 500-line work happens as PRs in each component's repo, tracked from this spec's tasks. Chosen on a card (2026-11-17). + No open decisions remain. diff --git a/specs/028-split-big-packages/spec.md b/specs/028-split-big-packages/spec.md index 6ac1988e0..ca027ce4f 100644 --- a/specs/028-split-big-packages/spec.md +++ b/specs/028-split-big-packages/spec.md @@ -4,7 +4,7 @@ **Created**: 2026-10-20 -**Status**: Draft +**Status**: In progress. Setup and parity tooling (T001–T007) merged in PR #796 on 2026-10-25; no move PR has started. See the status note at the top of [tasks.md](./tasks.md). **Input**: User description: "Write a speckit spec (spec, plan, tasks) for the Gameplane v1 cleanup 'split big packages and files'. Behaviour-preserving moves and splits only, following the target layout from spec 027, keeping spec 023's path mapping valid." diff --git a/specs/028-split-big-packages/tasks.md b/specs/028-split-big-packages/tasks.md index ebf7a8562..84fea6161 100644 --- a/specs/028-split-big-packages/tasks.md +++ b/specs/028-split-big-packages/tasks.md @@ -12,6 +12,14 @@ description: "Task list for 028 split big packages and files" **Format**: `[ID] [P?] [Story] Description`. `[P]` = may run in parallel (different files, no dependency). +## Status (2026-11-17, master `93f9897`) + +- **Done:** T001–T007 (parity tooling, PR #796, merged 2026-10-25). T057 withdrawn (OD-10). +- **Not started:** every move PR (T008–T056, T058–T061). The build thread paused moves on 2026-10-22 (valgul's card) until Baylem's audit PRs #756–#772 were in. That condition is now met: all of them are closed, and audit issues #712–#731 are all closed too, including the tunnel and sentinel gates #721, #722, #723 and #729. +- **Files grew since T003:** for example `web/src/types.ts` 1,194 lines, `CreateServer.tsx` 1,448, `api/cmd/main.go` 974, `operator/internal/controller/gameserver_controller.go` 3,125. Re-measure (repeat T003) before T008 starts. +- **`web/src/pages/` already exists:** spec 031 (PR #859) added `pages/ClusterDetail.tsx` and `pages/Nodes.tsx`. T009 creates nothing new there; it moves the remaining screens. +- **Components leaving this repo:** `mcp-server/` moved to GameplanePanel/mcp (PR #993, merged 2026-11-17), and `audit-syslog-bridge/`, `tunnel/` and `capture-sidecar/` moved to their own repos with full history (PR #995, merged), with `svcutil/` deleted as unused. They are now submodules of this repo. That affects T044, T050, T051 and T053. Settled as OD-12 (valgul, 2026-11-17): these tasks are carried into the new repos. The same layout and 500-line work happens as PRs in each component's own repo, tracked from this spec. + ## Phase 1: Setup - [X] T001 Settle OD-1..OD-10 in `OPEN-DECISIONS.md` and fold them into spec, plan and these tasks (valgul, 2026-10-20/21) @@ -30,7 +38,7 @@ description: "Task list for 028 split big packages and files" ## Phase 3: User Story 4 — Web screens follow the pages layout (Priority: P2, first by OD-1) - [ ] T008 [US4] PR: split `web/src/types.ts` (1,132) by domain into files of ≤ 500 lines under `web/src/types/`, with `web/src/types.ts` re-exporting them so every `@/types` import is unchanged; `web/src/api/types.ts` untouched (OD-5) -- [ ] T009 [US4] PR: create `web/src/pages/`; add one `routes/.ts` per page holding its route definition moved out of `router/tree.tsx`, which keeps only the tree assembly (OD-7); move the screens under 500 lines that only need a move (AdminLogs, AuditLog, Cluster, Clusters, Login, Modules, NotFound, Share, ServerDetail shell) with their tests; update `router/tree.tsx` imports +- [ ] T009 [US4] PR: create `web/src/pages/`; add one `routes/.ts` per page holding its route definition moved out of `router/tree.tsx`, which keeps only the tree assembly (OD-7); move the screens under 500 lines that only need a move (AdminLogs, AuditLog, Cluster, Clusters, Login, Modules, NotFound, Share, ServerDetail shell) with their tests; update `router/tree.tsx` imports *Note 2026-11-17: `web/src/pages/` already exists from spec 031 (PR #859).* - [ ] T010 [US4] PR: AdminSettings (2,478) → `pages/AdminSettings.tsx` + `pages/AdminSettings/
.tsx`, each ≤ 500; its five test files move next to the file they test - [ ] T011 [US4] PR: CreateServer (1,351) → `pages/CreateServer.tsx` + sections, each ≤ 500; three test files move - [ ] T012 [US4] PR: ThemeSettings (886) and Users (825) → pages + sections @@ -81,7 +89,7 @@ description: "Task list for 028 split big packages and files" ## Phase 6: Other modules over the ceiling (FR-018) -- [ ] T044 [P] PR: `capture-sidecar/internal/httpserver/handlers.go` (975) split in place +- [ ] T044 [P] PR: `capture-sidecar/internal/httpserver/handlers.go` (975) split in place *Note 2026-11-17: capture-sidecar moved to its own repo (PR #995, merged); carried into that repo per OD-12; the PR opens there.* - [ ] T045 [P] PR: `agent/internal/mods/mods.go` (932) split in place; the `.golangci.yml` path rules for `internal/mods/mods\.go$` and `internal/(mods/mods|files/files)\.go$` follow the code with the same scope - [ ] T046 [P] PR: `agent/internal/rcon/battleye.go` (703) split in place - [ ] T047 [P] PR: `agent/internal/files/rooted_linux.go` (603) split in place @@ -90,11 +98,11 @@ description: "Task list for 028 split big packages and files" ## Phase 7: User Story 1 — Small services match the service layout (Priority: P1 for layout, last by OD-1) -- [ ] T050 [US1] PR: `audit-syslog-bridge` → `cmd/main.go` + `internal//`; Dockerfile and Makefile `image-audit-syslog` build path; `specs.md` -- [ ] T051 [US1] PR: `mcp-server` → `cmd/main.go` + `internal/{tools,fixadvice}/`; Dockerfile; `specs.md`, `README.md` +- [ ] T050 [US1] PR: `audit-syslog-bridge` → `cmd/main.go` + `internal//`; Dockerfile and Makefile `image-audit-syslog` build path; `specs.md` *Note 2026-11-17: audit-syslog-bridge moved to its own repo (PR #995, merged); carried into that repo per OD-12; the PR opens there.* +- [ ] T051 [US1] PR: `mcp-server` → `cmd/main.go` + `internal/{tools,fixadvice}/`; Dockerfile; `specs.md`, `README.md` *Note 2026-11-17: mcp-server moved to GameplanePanel/mcp (PR #993, merged); carried into that repo per OD-12; the PR opens there.* - [ ] T052 [US1] PR: `telemetry-receiver` → `cmd/main.go` + `internal//`, `views.go` (733) split; `design-export/`, `web/`, `telemetry-dashboard.pen` stay; Dockerfile, Makefile e2e image target (line 190); `specs.md` -- [ ] T053 [US1] PR: `tunnel` → `cmd/main.go` + `internal//`, `playit_reporter.go` (525) split; `main_test.go` moves with the code it tests, unsplit, with only the FR-005/OD-6 mechanical edits; the three Dockerfiles; only after #721, #722, #723 merge -- [ ] T054 [US1] PR: `sentinel` → `cmd/main.go` + `internal//`; `main_test.go` moves with the code it tests, unsplit, with only the FR-005/OD-6 mechanical edits; Dockerfile; only after #729 merges +- [ ] T053 [US1] PR: `tunnel` → `cmd/main.go` + `internal//`, `playit_reporter.go` (525) split; `main_test.go` moves with the code it tests, unsplit, with only the FR-005/OD-6 mechanical edits; the three Dockerfiles; only after #721, #722, #723 merge *Note 2026-11-17: #721, #722, #723 are closed. tunnel moved to its own repo (PR #995, merged); carried into that repo per OD-12; the PR opens there.* +- [ ] T054 [US1] PR: `sentinel` → `cmd/main.go` + `internal//`; `main_test.go` moves with the code it tests, unsplit, with only the FR-005/OD-6 mechanical edits; Dockerfile; only after #729 merges *Note 2026-11-17: #729 is closed, so this gate is met.* **Checkpoint**: every service in 027 OD-3 has a thin `cmd/main.go` and nothing at its root.