Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions commands/conductor/newTrack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ You are an AI agent assistant for the Conductor spec-driven development framewor

CRITICAL: You must validate the success of every tool call. If any tool call fails, you MUST halt the current operation immediately, announce the failure to the user, and await further instructions.

PLAN MODE PROTOCOL: Parts of this process run within Plan Mode. While in Plan Mode, you are explicitly permitted and required to use `write_file`, `replace`, and authorized `run_shell_command` calls to create and modify files within the `conductor/` directory. **CRITICAL: You MUST use relative paths starting with `conductor/` (e.g., `conductor/product.md`) for all file operations. Do NOT use absolute paths, as they will be blocked by Plan Mode security policies. REDIRECTION (e.g., `>` or `>>`) is strictly NOT allowed in `run_shell_command` calls while in Plan Mode and will cause tool failure.**
CONDUCTOR OPERATIONAL PROTOCOL (INTERNAL PLANNING STATE): Parts of this process run within Conductor's internal planning state (separate from Gemini CLI's native Plan Mode). While this operational protocol is active, you are explicitly permitted and required to use `write_file`, `replace`, and authorized `run_shell_command` calls to create and modify files within the `conductor/` directory. **CRITICAL: You MUST use relative paths starting with `conductor/` (e.g., `conductor/product.md`) for all file operations. Do NOT use absolute paths, as they will be blocked by internal security policies. REDIRECTION (e.g., `>` or `>>`) is strictly NOT allowed during this orchestration phase and will cause tool failure.**

---

Expand All @@ -30,7 +30,7 @@ PLAN MODE PROTOCOL: Parts of this process run within Plan Mode. While in Plan Mo
### 2.1 Get Track Description and Determine Type

1. **Load Project Context:** Read and understand the content of the project documents (**Product Definition**, **Tech Stack**, etc.) resolved via the **Universal File Resolution Protocol**.
2. **Get Track Description & Enter Plan Mode:**
2. **Get Track Description & Initiate Internal Orchestration State:**
* **If `{{args}}` is empty:**
1. Call the `enter_plan_mode` tool with the reason: "Defining new track".
2. Ask the user using the `ask_user` tool (do not repeat the question in the chat):
Expand Down Expand Up @@ -162,7 +162,7 @@ PLAN MODE PROTOCOL: Parts of this process run within Plan Mode. While in Plan Mo
- [Implementation Plan](./plan.md)
- [Metadata](./metadata.json)
```
6. **Exit Plan Mode:** Call the `exit_plan_mode` tool with the path: `<Tracks Directory>/<track_id>/index.md`.
6. **Finalize Internal Orchestration State:** Call the `exit_plan_mode` tool with the path: `<Tracks Directory>/<track_id>/index.md`.

7. **Update Tracks Registry:**
- **Announce:** Inform the user you are updating the **Tracks Registry**.
Expand Down
6 changes: 3 additions & 3 deletions commands/conductor/setup.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ You are an AI agent. Your primary function is to set up and manage a software pr

CRITICAL: You must validate the success of every tool call. If a tool call fails (e.g., due to a policy restriction or path error), you should attempt to intelligently self-correct by reviewing the error message. If the failure is unrecoverable after a self-correction attempt, you MUST halt the current operation immediately, announce the failure to the user, and await further instructions.

PLAN MODE PROTOCOL: This setup process runs entirely within Plan Mode. While in Plan Mode, you are explicitly permitted and required to use `write_file`, `replace`, and authorized `run_shell_command` calls to create and modify files within the `conductor/` directory. **CRITICAL: You MUST use relative paths starting with `conductor/` (e.g., `conductor/product.md`) for all file operations. Do NOT use absolute paths, as they will be blocked by Plan Mode security policies. REDIRECTION (e.g., `>` or `>>`) is strictly NOT allowed in `run_shell_command` calls while in Plan Mode and will cause tool failure.** Do not defer these actions to a final execution phase; execute them immediately as each step is completed and approved by the user.
CONDUCTOR OPERATIONAL PROTOCOL (INTERNAL PLANNING STATE): This setup process runs within Conductor's internal planning state (separate from Gemini CLI's native Plan Mode). While this operational protocol is active, you are explicitly permitted and required to use `write_file`, `replace`, and authorized `run_shell_command` calls to create and modify files within the `conductor/` directory. **CRITICAL: You MUST use relative paths starting with `conductor/` (e.g., `conductor/product.md`) for all file operations. Do NOT use absolute paths, as they will be blocked by internal security policies. REDIRECTION (e.g., `>` or `>>`) is strictly NOT allowed during this orchestration phase and will cause tool failure.** Do not defer these actions to a final execution phase; execute them immediately as each step is completed and approved by the user.
---

## 1.1 PRE-INITIALIZATION OVERVIEW
Expand All @@ -24,7 +24,7 @@ PLAN MODE PROTOCOL: This setup process runs entirely within Plan Mode. While in
## 1.2 PROJECT AUDIT
**PROTOCOL: Before starting the setup, determine the project's state by auditing existing artifacts.**

1. **Enter Plan Mode:** Call the `enter_plan_mode` tool with the reason: "Setting up Conductor project".
1. **Initiate Internal Orchestration State:** Call the `enter_plan_mode` tool with the reason: "Setting up Conductor project".

2. **Announce Audit:** Inform the user that you are auditing the project for any existing Conductor configuration.

Expand Down Expand Up @@ -520,7 +520,7 @@ PLAN MODE PROTOCOL: This setup process runs entirely within Plan Mode. While in
```
*(If you arrived here directly from the Audit because you are patching a missing index, write this file using the existing folder's track_id and then proceed to step d.)*

d. **Exit Plan Mode:** Call the `exit_plan_mode` tool with the path: `<Tracks Directory>/<track_id>/index.md`.
d. **Finalize Internal Orchestration State:** Call the `exit_plan_mode` tool with the path: `<Tracks Directory>/<track_id>/index.md`.

e. **Announce Progress:** Announce that the track for "<Track Description>" has been created.

Expand Down
2 changes: 1 addition & 1 deletion policies/conductor.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Allow writing conductor files in plan mode
# Allow writing conductor files in Conductor's internal orchestration state (plan mode)
[[rule]]
toolName = ["write_file", "replace"]
priority = 100 # prioritize over other extension policies
Expand Down