syntaur 0.3.0 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,7 +38,7 @@ Parse:
38
38
  - **Only if current status is `pending`**: `syntaur start <assignment-slug> --project <project-slug>` to transition it to `in_progress`. Skip this command for any other status — grabbing must not rewind a `review`, `completed`, or `failed` assignment.
39
39
  If `syntaur assign` fails (e.g., project not found, invalid slug), report and stop. Do not treat a non-pending status as a failure.
40
40
  7. If the assignment has no workspace configured, set `workspace.repository` and `workspace.worktreePath` to the current working directory so write boundaries are meaningful.
41
- 8. Create `.syntaur/context.json` in the current working directory with:
41
+ 8. Create or merge `.syntaur/context.json` in the current working directory. If the file already exists, preserve its contents and layer the new assignment fields on top (never overwrite):
42
42
 
43
43
  ```json
44
44
  {
@@ -50,13 +50,15 @@ Parse:
50
50
  "title": "<assignment title>",
51
51
  "branch": "<workspace.branch or null>",
52
52
  "grabbedAt": "<ISO 8601 timestamp>",
53
- "sessionId": "<uuid>"
53
+ "sessionId": "<real-codex-session-id>",
54
+ "transcriptPath": "<absolute path to the matching rollout jsonl>"
54
55
  }
55
56
  ```
56
57
 
57
- 9. Register the agent session:
58
- - generate a UUID
59
- - run `syntaur track-session --project <project-slug> --assignment <assignment-slug> --agent codex --session-id <uuid> --path <cwd>`
58
+ 9. Register the agent session using the REAL Codex session id and rollout path — never synthesize a UUID:
59
+ - Resolve both by running the plugin-shipped helper: `bash ./scripts/resolve-session.sh "$(pwd)"` (script lives at `platforms/codex/scripts/resolve-session.sh`; referenced via the same relative path used by other Codex hooks in `hooks.json`). Parse the two output lines: `session_id=<id>` and `transcript_path=<abs path>`. If the helper exits non-zero, stop and report "no matching Codex rollout for this cwd — aborting registration. Start a Codex session in this cwd first."
60
+ - Merge `sessionId` + `transcriptPath` into `.syntaur/context.json` (use `jq '. + {sessionId:$sid, transcriptPath:$tp}'` to preserve existing fields).
61
+ - Run: `syntaur track-session --project <project-slug> --assignment <assignment-slug> --agent codex --session-id <id> --transcript-path <path> --path <cwd>`
60
62
  10. Summarize:
61
63
  - assignment slug and title
62
64
  - current status (call it out if the assignment was already past `pending` — e.g., "already in `review`, status unchanged")
@@ -16,10 +16,14 @@ Optional notes from the user: `$ARGUMENTS`
16
16
  1. Read `.syntaur/context.json` from the current working directory. If it does not exist, tell the user to claim an assignment first.
17
17
  2. Read:
18
18
  - `<assignmentDir>/assignment.md`
19
- - `<projectDir>/agent.md`
20
- - `<projectDir>/claude.md` if it exists
19
+ - `<assignmentDir>/comments.md` (if it exists — inherited questions / notes)
21
20
  - `<projectDir>/project.md`
22
- 3. If the assignment depends on other assignments, read each dependency handoff for integration context.
21
+ - `<projectDir>/manifest.md`
22
+
23
+ Per-project `agent.md` / `claude.md` were removed in v0.2.0. Repo-level
24
+ `CLAUDE.md` / `AGENTS.md` and `~/.syntaur/playbooks/` take their place;
25
+ read playbooks via `ls ~/.syntaur/playbooks/*.md`.
26
+ 3. If the assignment depends on other assignments, read each dependency's `handoff.md` AND `decision-record.md` for upstream integration context and accepted decisions.
23
27
  4. Explore `workspaceRoot` when it exists:
24
28
  - inspect project structure
25
29
  - find likely implementation files
@@ -54,4 +58,4 @@ After writing the plan:
54
58
  - summarize the number of tasks and key decisions
55
59
  - call out open questions or risks
56
60
  - note which plan filename was written and which prior plan (if any) was superseded
57
- - remind yourself to keep `assignment.md` progress, acceptance criteria, and todos current during implementation
61
+ - remind yourself to keep `assignment.md` acceptance criteria + todos current during implementation, append milestones to `progress.md` (not `assignment.md`), and record comments via `syntaur comment <slug-or-uuid> "body" --type note|question|feedback`