Skip to content

docs(mcp): state the north convention in the garden-house template - #584

Merged
Aymericr merged 1 commit into
mainfrom
docs/garden-house-north-convention
Aug 4, 2026
Merged

docs(mcp): state the north convention in the garden-house template#584
Aymericr merged 1 commit into
mainfrom
docs/garden-house-north-convention

Conversation

@Aymericr

@Aymericr Aymericr commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Piece 1 of #362, split out because it's a comment-only change with no design decision attached.

packages/mcp/src/templates/two-bedroom.ts:13-14 documents the coordinate system — x east/west, z north/south, positive z points south. garden-house.ts uses the same convention but never states it, which is why #362 read the two templates as disagreeing about north. They don't: wall_n is at -HOUSE_D, wall_s at +HOUSE_D, and zone_garden extends to -HOUSE_D - GARDEN_DEPTH, i.e. further into −z. The geometry agrees; only the prose was missing.

Two changes, both comments:

  • Copy the coordinate-system paragraph into the garden-house.ts header.
  • Fix the GARDEN_DEPTH comment, which said "along +z direction" while the garden is built at -HOUSE_D - GARDEN_DEPTH (−z).

No behaviour change; templates.test.ts unaffected. The substantive half of #362 — a first-class northDirection on Site/Building plus the MCP contract — stays open and needs a schema design call first.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com


Note

Low Risk
Comment-only changes in an MCP template file with no logic or schema impact.

Overview
Documentation-only update to garden-house.ts so its north/south convention matches two-bedroom.ts and the actual geometry.

Adds a coordinate system note in the file header: [x, z] on the XZ plane, positive z is south. Corrects the GARDEN_DEPTH comment from “along +z” to along −z (north), aligning prose with how the garden zone is built at -HOUSE_D - GARDEN_DEPTH.

No runtime or template output changes.

Reviewed by Cursor Bugbot for commit b586e11. Bugbot is set up for automated code reviews on this repo. Configure here.

`two-bedroom.ts:13-14` documents that positive z points south; `garden-house.ts`
relied on the same convention without saying so, which read as a contradiction
(#362 was filed partly on that basis). The geometry already agrees — `wall_n`
sits at `-HOUSE_D`, `wall_s` at `+HOUSE_D`, and `zone_garden` extends further
into -z — so this records the assumption rather than changing it.

The `GARDEN_DEPTH` comment said "along +z direction" while the garden is built
at `-HOUSE_D - GARDEN_DEPTH`; corrected to -z.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Aymericr
Aymericr merged commit 8f7d549 into main Aug 4, 2026
3 checks passed
@Aymericr
Aymericr deleted the docs/garden-house-north-convention branch August 4, 2026 20:53
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