cos_trajectory_snapshot
Persist a project trajectory snapshot with phase, focus, architectural decisions, anti-patterns, and open questions to give future sessions context beyond task history.
Instructions
Persist a project trajectory snapshot for the current session.
Records WHERE the project is heading (phase, focus, architectural decisions, anti-patterns discovered, open questions) so future sessions have strategic context beyond task history. Each call creates a new row linked to the previous snapshot via supersedes_id.
Args: session_id: Current session identifier. phase: Current development phase (e.g. "v2 hardening"). current_focus: What the team is focused on right now. architectural_decisions: JSON array of {decision, rationale} objects. anti_patterns_discovered: JSON array of {pattern, context} objects. open_questions: JSON array of {question, priority} objects or plain strings. next_logical_step: Single-sentence description of what comes next. confidence: Confidence in this trajectory assessment (0.0-1.0).
Returns: JSON with {status, id, supersedes_id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phase | No | ||
| confidence | No | ||
| session_id | Yes | ||
| current_focus | No | ||
| open_questions | No | [] | |
| next_logical_step | No | ||
| architectural_decisions | No | [] | |
| anti_patterns_discovered | No | [] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |