Add research child-document foundation #128MergedMaggieAppletonmerged 9 commits intomainfromrefs/pull/128/headConversationFiles changed36 files changed+3042-394StackedSplitapps/server/src/agent/planner.test.ts+5 −7apps/server/src/agent/planner.ts+4 −9apps/server/src/agent/tools.test.ts+11 −11apps/server/src/agent/tools.ts+9 −9apps/server/src/channels/routes.test.ts+44 −0apps/server/src/channels/routes.ts+1 −0apps/server/src/channels/title.ts+14 −0apps/server/src/chat/service.ts+4 −4apps/server/src/jobs/research-workspace.test.ts+1 −1apps/server/src/jobs/research-workspace.ts+9 −2apps/server/src/main.ts+7 −15apps/server/src/plan/creation.test.ts+16 −0apps/server/src/plan/service.ts+2 −2apps/server/src/research/publication.ts+78 −0apps/server/src/research/request-view.ts+44 −0apps/server/src/research/routes.ts+1 −0apps/server/src/research/service.test.ts+640 −177apps/server/src/research/service.ts+327 −29apps/server/src/research/test-support.ts+223 −0apps/server/src/storage/contract-support.ts+79 −0apps/server/src/storage/contract.ts+180 −79apps/server/src/storage/memory/adapter.ts+41 −2apps/server/src/storage/memory/jobs.ts+4 −2apps/server/src/storage/memory/research.ts+206 −0apps/server/src/storage/model.ts+44 −1apps/server/src/storage/port.ts+10 −1apps/server/src/storage/postgres/adapter.test.ts+3 −0apps/server/src/storage/postgres/adapter.ts+107 −40apps/server/src/storage/postgres/migrations.ts+9 −0apps/server/src/storage/postgres/migrations/012_child_channels.sql+5 −0apps/server/src/storage/postgres/migrations/013_research_child_publication.sql+3 −0apps/server/src/storage/postgres/migrations/014_inline_research.sql+6 −0apps/server/src/storage/postgres/research.ts+337 −2apps/server/src/storage/research-publication-contract.ts+502 −0apps/web/src/api.ts+1 −0packages/protocol/research.d.ts+65 −1