Skip to content

Commit f855655

Browse files
committed
chore(workflows): regenerate bundled defaults after default YAML updates
1 parent 838f1fc commit f855655

3 files changed

Lines changed: 6 additions & 39 deletions

File tree

.archon/workflows/defaults/archon-refactor-safely.yaml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ nodes:
9393
9494
## Output
9595
96-
Produce your complete impact analysis below (do NOT attempt to write files —
97-
your output will be captured automatically). Use the following structure:
96+
Write a thorough impact analysis to `$ARTIFACTS_DIR/impact-analysis.md` with:
9897
9998
### Target Files
10099
- File path, line count, function count
@@ -120,19 +119,6 @@ nodes:
120119
context: fresh
121120
denied_tools: [Write, Edit, Bash]
122121

123-
# Persist the impact analysis to a file so downstream nodes can read it.
124-
# The analysis node is read-only (denied_tools prevents file writes),
125-
# so we use a bash node to bridge the context boundary.
126-
- id: persist-impact
127-
bash: |
128-
mkdir -p "$ARTIFACTS_DIR"
129-
cat > "$ARTIFACTS_DIR/impact-analysis.md" << 'ARCHON_EOF'
130-
$analyze-impact.output
131-
ARCHON_EOF
132-
echo "Impact analysis written to $ARTIFACTS_DIR/impact-analysis.md"
133-
depends_on: [analyze-impact]
134-
timeout: 30000
135-
136122
# ═══════════════════════════════════════════════════════════════
137123
# PHASE 3: PLAN REFACTOR — Ordered task list with rollback strategy
138124
# Read-only: produces the plan, does not execute it
@@ -175,8 +161,7 @@ nodes:
175161
176162
## Output
177163
178-
Produce the complete plan below (do NOT attempt to write files —
179-
your output will be captured automatically). Use the following structure:
164+
Write the plan to `$ARTIFACTS_DIR/refactor-plan.md` with:
180165
181166
### File Structure (Before)
182167
```
@@ -212,23 +197,10 @@ nodes:
212197
- Lint: `bun run lint`
213198
- Tests: `bun run test`
214199
- Format: `bun run format:check`
215-
depends_on: [persist-impact]
200+
depends_on: [analyze-impact]
216201
context: fresh
217202
denied_tools: [Write, Edit, Bash]
218203

219-
# Persist the refactoring plan to a file so the execute node can read it.
220-
# Same pattern as persist-impact: the plan node is read-only, so a bash
221-
# node writes its captured output to disk.
222-
- id: persist-plan
223-
bash: |
224-
mkdir -p "$ARTIFACTS_DIR"
225-
cat > "$ARTIFACTS_DIR/refactor-plan.md" << 'ARCHON_EOF'
226-
$plan-refactor.output
227-
ARCHON_EOF
228-
echo "Refactoring plan written to $ARTIFACTS_DIR/refactor-plan.md"
229-
depends_on: [plan-refactor]
230-
timeout: 30000
231-
232204
# ═══════════════════════════════════════════════════════════════
233205
# PHASE 4: EXECUTE REFACTOR — Implements the plan with guardrails
234206
# Hooks enforce type-check after every edit and plan adherence
@@ -278,7 +250,7 @@ nodes:
278250
- If a task is more complex than planned: complete it anyway, note the deviation
279251
- If you discover the plan missed an import site: update it and note it
280252
- NEVER skip a task — complete them in order
281-
depends_on: [persist-plan]
253+
depends_on: [plan-refactor]
282254
context: fresh
283255
hooks:
284256
PreToolUse:

.archon/workflows/defaults/archon-workflow-builder.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ nodes:
189189
10. Use `allowed_tools: []` on classification/analysis nodes that don't need tools
190190
11. Use `denied_tools: [Edit, Bash]` when a node should only use Write (not edit existing files)
191191
12. Prefer `model: haiku` for simple classification tasks to save cost
192-
13. **CRITICAL**: Every generated workflow that accepts user input MUST reference `$ARGUMENTS` (or `$USER_MESSAGE`) in at least one node prompt. For single-node workflows, include it directly in the prompt (e.g., `$ARGUMENTS` on its own line under a `## Input` or `## Request` heading). Without this, the user's invocation message is captured by the harness but never injected into the node's conversation — the agent sees an empty input.
193192
194193
## Output
195194
@@ -224,10 +223,6 @@ nodes:
224223
exit 1
225224
fi
226225
227-
if ! grep -q '\$ARGUMENTS\|\$USER_MESSAGE' "$FILE"; then
228-
echo "WARNING: workflow does not reference \$ARGUMENTS or \$USER_MESSAGE — user input will not be injected into node prompts"
229-
fi
230-
231226
echo "VALID"
232227
depends_on: [generate-yaml]
233228

0 commit comments

Comments
 (0)