Proposals can't build on their own changes

A proposal can't create a page and its children, a project and its pages, or a section and the notes that go in it: everything it refers to must exist first.

What happens

Every page a proposal refers to, and the parent of every new path, has to exist before the proposal is made. So one proposal can't create a parent page and its children, create a project and put pages in it, or create a section and move notes into it. It takes two proposals with an approval in between.

Where

The MCP server turns paths into database ids when it builds a proposal (parentIdOf(a.path) and projectIdFor in src/mcp/server.mts). A parent created by the same proposal has no id yet, so the build fails.

Why it matters

Anything with structure takes several rounds of proposing and approving, and the agent has to wait for Jay between them.

Possible fix

Store paths in the proposal and resolve them to ids when it's applied. Changes already apply in order, all or nothing, so a parent created earlier in the list exists by the time its child is applied.

The catch is the review page, where decisions are made field by field: rejecting a parent has to reject everything that depends on it, or the apply fails. The page could show dependent changes grouped under the one they need.