Skip to content

docs: describe the services as API clients in the planning docs - #276

Merged
dmccoystephenson merged 1 commit into
mainfrom
feature/planning-docs-service-layer-drift
Nov 21, 2026
Merged

dmccoystephenson merged 1 commit into
mainfrom
feature/planning-docs-service-layer-drift

Conversation

@dmccoystephenson

Copy link
Copy Markdown
Member

Summary

A Stage A documentation sweep (every open issue — #270, #213, #209, #130 — is waiting on an owner decision or is beyond a single cycle's scope; see below) showed that two planning docs describe an architecture the code does not have:

  • docs/PLANNING.md M2 described the *Service classes as server-side "core service logic to support the REST API". The controllers call the repositories directly (for example EnvironmentController holds EnvironmentRepository and runs the cascade delete itself), and services/*Service.java are RestTemplate clients of the API, imported only by DebugController. The M2 intro now says so, matching what tickets.md and README.md already state.
  • docs/REBUILD_PLAN.md step 7 prescribed "Controller → Service → Repository"; it now reads "Controller → Repository" with the same explanation.
  • docs/PLANNING.md item 19 listed the environment-create body as name, numGrids, gridSize only; it now includes the numRows/numColumns alternative, as docs/MVP.md and the spec do.
  • docs/REBUILD_PLAN.md step 6 named the spec path as openapi/viron-api.json; it is docs/openapi/viron-api.json.

No tracking issue — the drift was found during this cycle's sweep.

Deferred issues

Test plan

  • pytest — 201 passed (no Python files changed; run as a sanity check)
  • Docs-only: no Java or Python source touched, so the CI Java build carries no signal for these files beyond confirming nothing else broke
  • Each corrected claim checked against src/main/java/preponderous/viron/controllers/*.java and services/*Service.java

This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).

🤖 Generated with Claude Code


drafted by Claude on behalf of Daniel Stephenson

PLANNING.md's M2 and REBUILD_PLAN.md's step 7 described a server-side
service layer between controllers and repositories. The controllers
call the repositories directly, and services/*Service.java are
RestTemplate clients of the API used by the debug endpoints, as
tickets.md already says. PLANNING.md's environment-create body now
lists numRows/numColumns, and the spec path in REBUILD_PLAN.md step 6
names docs/openapi/.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dmccoystephenson

Copy link
Copy Markdown
Member Author

Self-review rubric:

  • Scope: PASS — two files, docs/PLANNING.md and docs/REBUILD_PLAN.md, each line tied to a drift item in the PR body.
  • Tests-new: PASS (not applicable) — no public method added.
  • Tests-fix: PASS (not applicable) — no behavioural fix; docs only.
  • Sibling structure: PASS — no new file; the M2 intro stays a paragraph under the existing heading, and item 19 keeps the one-line item shape.
  • Sibling renames: PASS — no identifier renamed; milestone heading "M2 – Service Layer" left unchanged so existing references to M2 still resolve.
  • Docs: PASS — the new wording matches tickets.md:11-13 and README.md:127, which already call the services API clients; docs/MVP.md:28 matches the corrected create body.
  • Issue resolution: PASS (not applicable) — no Closes; gap found during the sweep.
  • CI: PASS — build, python-client (3.8), python-client (3.12) green on the head SHA.
  • DTO boundary / Spec alignment / Java-Python parallelism / Override correctness: PASS (not applicable) — no code, spec, or client touched.

Observation left for a later sweep (judgment call, not fixed here): docs/PLANNING.md M3/M4 enumerate only the original endpoints. Later ones (PATCH /grids/{id}/name, PATCH /entities/{id}/name, /move, /placements, /neighbors, /unoccupied, /occupied, /entities by environment/grid/location, /entities/unassigned) are absent. Nothing it lists is wrong, and docs/MVP.md is the complete checklist, so the omission was left out of this PR's scope.

docs/PLANNING.md:3 and docs/REBUILD_PLAN.md:3 cite openapi/viron-api.json; relative to docs/ that path resolves, so they were left as-is.

Docs-only; no do-not-auto-merge path matched.

This review was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).


drafted by Claude on behalf of Daniel Stephenson

@dmccoystephenson
dmccoystephenson merged commit 6c358e9 into main Nov 21, 2026
3 checks passed
@dmccoystephenson
dmccoystephenson deleted the feature/planning-docs-service-layer-drift branch November 21, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant