Status: DRAFT
Date: 2026-02-15
Primary Contexts: Execution & Review, Collaboration Session & Identity
Supporting Contexts: Mission Orchestration Core, Source-of-Truth Integration, Organization Policy
Related Domain Spec: ../mission-collaboration-platform-ddd/spec.md
A team runs a mission with 1 or more developers and one or more LLM contexts. Participants collaborate in real time through local CLI + SaaS without rigid lock-based control.
The initial product slice is observe + decide:
- Participants can observe mission execution, focus, and warning state in real time.
- Decision/warning prompts are captured as first-class requests and answered by local driver, remote participant, or another LLM actor.
- Participant (
human): any developer or reviewer in mission collaboration session. - Active Driver (
human): participant currently expressing active drive intent. - LLM Context (
llm): execution context for prompt-step processing. - Mission Session Service (SaaS): participant presence, warning timeline, decision inbox, and event broadcast.
- Local Runtime (CLI): emits canonical collaboration events and handles warning acknowledgements.
- Story exists in external source of truth (for example Jira/Linear/GitHub).
- Repo access and local development environment are available for participating developers.
- Source-of-truth profile is configured.
- Mission template and execution graph exist.
| Phase | Local Participant(s) | SaaS | Key Events |
|---|---|---|---|
| 1. Start + Join | First participant starts mission; others join organically. | Session and roster projected live. | MissionStarted, ParticipantInvited, ParticipantJoined, SessionLinked |
| 2. Presence + Intent | Participants set presence and drive intent; multiple active drivers are allowed. | Presence board and intent summary updated continuously. | PresenceHeartbeat, DriveIntentSet, FocusChanged |
| 3. Observe Execution | Prompt step execution progress is streamed to collaborators. | Timeline and current-focus panel update in real time. | PromptStepExecutionStarted, PromptStepExecutionCompleted |
| 4. Advisory Coordination | If focus overlaps create risk, warnings are emitted (not hard-blocked). | Warning panel highlights risk + affected participants. | ConcurrentDriverWarning, PotentialStepCollisionDetected |
| 5. Decide + Acknowledge | Participants explicitly continue/hold and capture rationale. | Decision inbox and audit trail persist answers and actor identity. | WarningAcknowledged, DecisionCaptured, CommentPosted |
| 6. Review + Complete | Team converges through review and closes mission outcome. | Outcome, sync status, and conflict queue are projected. | WPStatusChanged, MissionCompleted, ExternalSyncObserved, ConflictQueuedForHuman |
- Any participant may set drive intent to active/inactive.
- Multiple active drivers are valid state.
- Overlap on same WP/step emits warnings; default behavior is advisory.
- Progression may continue after explicit acknowledgement.
- No lock lease is required in default mode.
- Observe:
- participants and presence
- drive intent per participant
- current focus per participant (WP/step)
- prompt-step execution started/completed
- warning timeline
- Decide:
- warning acknowledgement actions (
continue,hold,reassign,defer) - comment + decision capture with normalized actor identity
- decision source can be local user, remote user, or LLM actor
- Join mission and set role/focus/drive intent.
- Emit canonical collaboration events.
- Run advisory checks before execution and prompt for acknowledgement.
- Preserve offline queue + replay for collaboration events.
- Attach commit context to emitted events when repository context is available.
- Materialize and broadcast collaboration state for N participants.
- Show multiple active drivers and collision-risk warnings.
- Persist warning acknowledgements, comments, and decisions as auditable timeline entries.
- Provide decision inbox for pending requests.
- Keep source-of-truth conflict queue behavior.
ParticipantInvitedParticipantJoinedParticipantLeftPresenceHeartbeatDriveIntentSetFocusChangedPromptStepExecutionStartedPromptStepExecutionCompletedConcurrentDriverWarningPotentialStepCollisionDetectedWarningAcknowledgedCommentPostedDecisionCapturedSessionLinked
- Given 3 participants in one mission run, when two set active drive intent, then both are visible and mission remains executable.
- Given overlapping focus on same step, when execution is attempted, then warning events are emitted and projected.
- Given warning prompt, when participant selects continue/hold, then acknowledgement is persisted and actor-attributed.
- Given intermittent connectivity, when client reconnects, then offline replay preserves event order and warning context.
- Given remote observer decides on warning, when decision is accepted, then timeline reflects remote actor identity and resulting state.
- Local-first execution remains primary.
- SaaS adds shared visibility, advisory coordination, and governance.
- MVP uses observe+decide instead of lock-centric control.
The journey must also account for the case where the drivers change seats and the other person starts coding with their agent this clearly indicates that sharing in Mission State via Get is a requirement