Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions specs/028-split-big-packages/OPEN-DECISIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion specs/028-split-big-packages/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand Down
20 changes: 14 additions & 6 deletions specs/028-split-big-packages/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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/<Screen>.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/<Screen>.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/<Section>.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
Expand Down Expand Up @@ -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
Expand All @@ -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/<concern>/`; 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/<concern>/`; 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/<concern>/`, `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/<concern>/`, `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/<concern>/`; `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/<concern>/`, `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/<concern>/`; `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.

Expand Down