Projects and schema: the plan

Subprojects, categories and stage for projects, plus the schema audit's migration, as one plan to approve: what changes in the database, in goatboat and the site, and what Jay needs to decide.

Closes the loop on the schema audit and the talk about projects, repos and subprojects. Each item marked Decide needs an answer before it's built.

1. The model

  • Project = a goal, with notes of its own. A repo is metadata on a project, not the project.
  • Subproject = a project with a parent. One level only. A note goes on the narrowest project it fits; notes that span subprojects live on the parent.
  • Category = a label on a top-level project, for grouping the projects page (e.g. Client work). Not a project, has no notes.
  • Stage = where the work is: active, complete, benched, shelved. Replaces the wip tag.

2. The migration (one, goatboat)

projects

  • Add parent_id → projects.id, nullable, on delete set null. One level enforced in ops.
  • Add stage, required. Existing rows set from the table in section 4; new projects start active.
  • Replace kind with category, nullable text. Decide: free text, or a fixed list (my pick: a fixed list you name, e.g. client, apps, tools, games).
  • Drop video_url (0 rows).
  • Decide: demo_url (1 row): keep, or move it into app_href and drop.
  • Decide: icon (20 rows, shown nowhere): show it, or drop.

content

  • Drop content_hash, format, component_key and their two checks (all unused).
  • Remove image from content types (0 rows).
  • Add the check that source is db/approute and an approute row has a file (free, since the table is rebuilt anyway).
  • Decide: authorship nullable with no default, so "not stated" shows no label. All rows say ai-assisted only because it's the default. If yes: set existing rows to null, or to what? (Code pages and artifacts are likely ai-generated; posts human.)
  • Decide: content type post: the posts became notes. If none are left, remove it too.

Safety (as in the audit)

  1. Copy the database.
  2. Apply to the copy with row counts before and after and a foreign key check (scratch/migration-check.mts).
  3. Open old proposals against the copy (they hold format and kind).
  4. Deploy the site without kind first, then migrate and deploy goatboat together.

3. Code changes that come with it

goatboat

  • Ops and inputs: parent, stage, category on create and update project. Refuse a parent that has a parent, a parent for a project that has subprojects, and a project as its own parent.
  • Visibility: a page is public only if its project and that project's parent are published. Adds a fourth condition to the audit's finding 8; every public query goes through it.
  • Queries: project=<slug> filters include subprojects' pages. The API returns parent and children per project.
  • MCP: parent, stage, category on create and update project; list_projects shows them.
  • Owner UI: the project editor gets parent, stage and category controls.
  • Remove readme from the default sections (never used in four projects).
  • Decide: rewrite SCHEMA.md and schema.dbml from schema.ts, or delete both (my pick: delete; schema.ts is the reference).

jaygriff-v4

  • Projects page: grouped by category, subprojects indented under their parent, each with its stage.
  • Notes picker (aside and bar): a parent lists its own sections, then each subproject as a heading with its sections.
  • Project page: lists its subprojects (repo, stage).
  • Byline and breadcrumb: jaygriff.com › v3 › Decisions.
  • Drop the kind badge on /notes/projects.
  • Subprojects keep their own URLs (/projects/jaygriff-v3); nothing moves.

4. Data, after the migration (proposals)

Decide each row. My guesses are filled in; ? means I can't tell.

ProjectParentCategoryStage
jaygriff.com (new, slug jaygriff)—?active
jaygriff-v4jaygriffactive
jaygriff-v3jaygriffcomplete
Gems—?active
Games (new)gemsactive
Simulations (new, or later)gems?
goatboat—toolsactive
Golf Ball Garage—?active
Skim Milk Hybrid—clientactive
Engineering Ethics Case Studies—clientcomplete
Postmaster—?active
Fitness Dash—?active
Statement Manager—?active
Deep Dive—??
Food Math—??
Pool—??
Locus—??
ByTheHour—??
Strava Analyzer—??
CPU Ladder—??
Resume—??
GitHub README—??

Then:

  • Move v4's thumbnail to jaygriff.com (or upload a new one).
  • Decide: which Gems notes move to Games (and Simulations).
  • Remove the wip tag from the five projects, and client-work once category exists.
  • Merge the eight duplicate tag pairs (nextjs/next-js first: 9 and 8 pages).
  • Already pending: the 4 real publish dates (agent-skills-are-insane 2026-03-02, ai-calculator-moment 2026-01-30, ai-workflow-transparency 2026-01-23, how-i-split-a-session-into-commits 2026-09-13); rename "Thoughts on ai" to "Thoughts on AI"; remove Gems' empty default sections.
  • Decide: delete the eleven test proposals from 21 October.

5. Small loose ends

  • Proposal page: delete the now-unused suggestion-editor.tsx and the old approve and approveOp actions.
  • Commit both repos (uncommitted: the proposal page, MCP additions, auto-created sections, the notes aside's catch-all title).
  • Name: "GoatBoat CMS" as the display name in goatboat's header and README; repo, package and MCP name stay goatboat.

6. Left for later

Project images nobody reads (audit finding 4), project rows stored twice as content (5), the unfiled project (6), notes as a type (9), and the audit's open questions: games at scale, dates on projects, featured projects, tag pages, private vs unlisted, page history, scheduled publishing.

Order

  1. Section 5 cleanups and commits.
  2. Site stops reading kind; deploy.
  3. Migration (section 2) with its goatboat code (section 3); deploy together.
  4. Data proposals (section 4).
  5. Site: projects page, notes picker, project page (section 3, jaygriff-v4).