WIP: Define-think: research phase → real Seshat Document (companion session) #280

Closed
toasterson wants to merge 0 commits from claude/wi-019f13ae-define-think-research-phase-real-seshat into main
Owner

Anima work item 019f13ae-780d-7952-b526-b749e3d700db.

Split from WI 019f0576-2594 (define-side foundation merged in PR #266, main 7225ac9). AC1 of the original.

What to build

Wire the Define-side RESEARCH phase so it produces a REAL Seshat Document, not the current placeholder. The foundation already merged: RunDefinePhase RPC, ScratchSpace/Artifact repos, and a real start_companion_session dispatch for research.

Current state (foundation)

run_define_phase (anima-server) dispatches a companion session for research but then deterministically writes an EMPTY notes doc — a real populated Seshat Document only happens IF the dispatched companion later calls create_document + anima_import. There is no server-side Seshat ingestion confirmation.

Acceptance criteria

  • research phase produces a real, populated Seshat Document (deterministically, or with confirmation the companion emitted one)
  • the doc is linked to the WI/plan (Documents N:N from 23cd) with provenance (define phase + session)
  • no empty placeholder doc left behind

Notes

Foundation: anima-server services/artifact.rs + mcp/handlers.rs (run_define_phase), anima-ai companion dispatch, DocumentRepo::create_full_with_provenance. The UserId::nil() owner on the auto-created research companion is a smell to fix.

Anima work item `019f13ae-780d-7952-b526-b749e3d700db`. Split from WI 019f0576-2594 (define-side foundation merged in PR #266, main 7225ac9). AC1 of the original. ## What to build Wire the Define-side RESEARCH phase so it produces a REAL Seshat Document, not the current placeholder. The foundation already merged: `RunDefinePhase` RPC, `ScratchSpace`/`Artifact` repos, and a real `start_companion_session` dispatch for research. ## Current state (foundation) `run_define_phase` (anima-server) dispatches a companion session for research but then deterministically writes an EMPTY `notes` doc — a real populated Seshat Document only happens IF the dispatched companion later calls create_document + anima_import. There is no server-side Seshat ingestion confirmation. ## Acceptance criteria - [ ] research phase produces a real, populated Seshat Document (deterministically, or with confirmation the companion emitted one) - [ ] the doc is linked to the WI/plan (Documents N:N from 23cd) with provenance (define phase + session) - [ ] no empty placeholder doc left behind ## Notes Foundation: anima-server services/artifact.rs + mcp/handlers.rs (run_define_phase), anima-ai companion dispatch, DocumentRepo::create_full_with_provenance. The `UserId::nil()` owner on the auto-created research companion is a smell to fix.
toasterson force-pushed claude/wi-019f13ae-define-think-research-phase-real-seshat from b8ab1665d1 to 1ca0833fc7 2026-07-04 22:16:39 +00:00 Compare
toasterson force-pushed claude/wi-019f13ae-define-think-research-phase-real-seshat from 1ca0833fc7 to 2ecad4c06b 2026-07-05 19:06:59 +00:00 Compare
toasterson force-pushed claude/wi-019f13ae-define-think-research-phase-real-seshat from 2ecad4c06b to 5f59d91ea9 2026-07-05 19:36:29 +00:00 Compare
toasterson force-pushed claude/wi-019f13ae-define-think-research-phase-real-seshat from 5f59d91ea9 to 06bff90d30 2026-07-05 20:41:59 +00:00 Compare
toasterson force-pushed claude/wi-019f13ae-define-think-research-phase-real-seshat from 06bff90d30 to 349367ee7f 2026-07-05 22:01:24 +00:00 Compare
toasterson force-pushed claude/wi-019f13ae-define-think-research-phase-real-seshat from 349367ee7f to 65c1760414 2026-07-06 11:50:23 +00:00 Compare
toasterson force-pushed claude/wi-019f13ae-define-think-research-phase-real-seshat from 65c1760414 to 8af12d6d44 2026-07-06 13:14:26 +00:00 Compare
Author
Owner

Merged at ae5d72d (canonical define-think research implementation). Closing.

Merged at `ae5d72d` (canonical define-think research implementation). Closing.
toasterson closed this pull request 2026-07-09 17:54:39 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
toasterson/Anima!280
No description provided.