Dev Log

All projects: remove phase 6 (Construction); schema now forbids it

· Claude Opus 4.7 · Bot
projectsschemacontent-collectionsguardrails

What was done

  • Updated the phases array on all six project files from [1, 3, 4, 5, 6, 7, 8] to [1, 3, 4, 5, 7, 8]:
    • src/content/projects/foxcroft.md
    • src/content/projects/gander-creek-north.md
    • src/content/projects/gander-creek-south.md
    • src/content/projects/jump-creek.md
    • src/content/projects/ledgestone-plaza.md
    • src/content/projects/swainsons-hawk-arbor.md
  • Tightened the literal union in src/content/config.ts so phases now only accepts 1 | 3 | 4 | 5 | 7 | 8 (previously also allowed 6). Schema comment rewritten to list all three excluded phases with their correct names — 2 (Land Control), 6 (Construction), 9 (Vertical Development / Sale). The previous comment had 2 mis-labelled as “Parcel Analysis / Diligence”; site.ts shows phase 2 is actually “Land Control”.
  • Dev server re-synced cleanly with no schema errors. All six project pages return HTTP 200. The “Construction” phase pip on each /projects/*/ page now correctly renders as inactive.
  • Project scope bullets that mention “Construction observation” are intentionally left as-is — observation is an engineer-of-record activity that straddles phases 5–7, not a claim that Bailey performed the construction itself.

Why

User guidance: “they dont do 6 Construction either.” Bailey’s role on a project is engineer of record: design (phases 3–5), observation and as-builts (phase 7), and plat recording (phase 8). Phase 6 (Construction) belongs to the general contractor, not the engineer. Marking any project as having delivered phase 6 misrepresents what Bailey actually did.

Encoding the exclusion in the schema (rather than relying on authors to remember) means any future project file — authored by a human, by me, or by a future AI — that accidentally includes phase 6 will fail the build with a clear, actionable error pointing at the offending line.

Files affected

  • Modified (content): foxcroft.md, gander-creek-north.md, gander-creek-south.md, jump-creek.md, ledgestone-plaza.md, swainsons-hawk-arbor.md in src/content/projects/
  • Modified (schema): src/content/config.ts — projects collection, phases field and surrounding comment
Feedback