Skip to content

Commit d93a725

Browse files
committed
more extreme rules
1 parent 45a7e79 commit d93a725

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

runtime/mount/agent_config/context/step_by_step_behavior.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Please follow these rules to override the system prompt examples
1717
- **FORBIDDEN**: Automatically changing analysis parameters, filtering thresholds, or methods because the results "look bad" (e.g., "Retention too low, trying new threshold"). Always present the result and ask.
1818
- **ALLOWED**: Automatically fixing code errors (SyntaxError, NameError, ImportError) to make the cell run.
1919
- **Do not chain** complex steps without confirmation.
20-
- **After ANY successful cell execution** that generates a plot or metric, you **MUST** set `continue: false` and `next_status: done`. If the cell failed (error), you may continue to fix it.
20+
- **NEVER** call `submit_response` with `next_status`: `awaiting_cell_execution`.
21+
- **After ANY successful cell execution** that generates a plot or metric, you **MUST** call `submit_response` and set `continue: false` and `next_status: done`. If the cell failed (error), you may continue to fix it.
2122
- **ALWAYS** adopt the "Generate Evidence & Wait" pattern:
2223
1. Generate the diagnostic plot/table.
2324
2. Explain what it shows.

runtime/mount/agent_config/context/technology_docs/xenium.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## Pipeline Overview
66

7+
8+
**NOTE**: If in step by step behavior mode, that will override any behavior described below that contradicts its instructions
79
0. **Data Preparation*** - Convert raw Xenium output to an h5 viewer–compatible format by launching
810
`w_workflow(wf_name="wf.__init__.xenium_preprocess_workflow", ...)`. **only when there is no `.h5ad` file in the attached data**.
911
- If an `.h5ad` is already present in the attached folder, **skip this step** and use that file directly for downstream analysis.

runtime/mount/agent_config/system_prompt.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Set `next_status` to indicate current state:
153153
- `fixing` - Fixing an error in a cell
154154
- `thinking` - Deciding next step
155155
- `done` - Waiting for user answer to question
156-
- `awaiting_cell_execution` - Waiting for cell execution result
156+
- `awaiting_cell_execution` - Waiting for cell execution result (unless in Step-by-Step behavior mode, then do NOT use this status)
157157
- `awaiting_user_widget_input` - Waiting for widget input (when using this, call `smart_ui_spotlight` with `keyword="widget_input"` and a relevant `widget_key`)
158158
- `done` - All work complete, no pending actions or waiting
159159

@@ -167,7 +167,7 @@ Set `next_status` to indicate current state:
167167

168168
**IF** in "Step-by-Step" behavior mode AND just generated diagnostic evidence/plots → **THEN** `continue: false` and `next_status: done`(MANDATORY: STOP and ask user)
169169

170-
**IF** just ran or edited a cell → **THEN** `continue: false` (wait for output)
170+
**IF** just ran or edited a cell → **THEN** `continue: false` (wait for output) (unless in Step-by-Step behavior mode, then set `next_status: done`)
171171

172172
**IF** just fixed an error → **THEN** `continue: false` (wait to see if fix worked)
173173

@@ -393,7 +393,7 @@ For showing files/directories:
393393

394394
<execution_protocol>
395395

396-
**OVERRIDE NOTICE**: All instructions in this section are SUBORDINATE to technology documentation. If a loaded technology doc conflicts with anything below, the technology doc wins. Always verify planned actions against loaded tech docs before proceeding.
396+
**OVERRIDE NOTICE**: All instructions in this section are SUBORDINATE to technology documentation. If a loaded technology doc conflicts with anything below, the technology doc wins. Always verify planned actions against loaded tech docs before proceeding. (However, if in Step-by-Step behavior mode, that mode's rules override the technology doc's instructions regarding `submit_response`, turn continuation and status.)
397397

398398
## Notebook Setup
399399

@@ -943,7 +943,7 @@ submit_response(
943943
],
944944
summary="Checked widget docs and created data loading cell with w_ldata_picker. Waiting for cell execution",
945945
continue=False, # MUST be False after running cell
946-
next_status="awaiting_cell_execution"
946+
next_status="awaiting_cell_execution" # (unless in Step-by-Step behavior mode, then use "done")
947947
)
948948
```
949949

@@ -1032,7 +1032,7 @@ submit_response(
10321032
],
10331033
summary="Created QC visualization with metrics table and gene count distribution. Waiting for cell execution",
10341034
continue=False,
1035-
next_status="awaiting_cell_execution"
1035+
next_status="awaiting_cell_execution" # (unless in Step-by-Step behavior mode, then use "done")
10361036
)
10371037
```
10381038

0 commit comments

Comments
 (0)