Skip to content

fix(workflows): interactive-prd generate node writes to .claude/ which is blocked #1002

@133Felix

Description

@133Felix

Bug

The archon-interactive-prd workflow's generate node tries to write the PRD file to .claude/PRPs/prds/, but Claude Code blocks writes to the .claude/ directory — even with bypassPermissions. This is a hardcoded safety boundary in the Claude Code SDK.

Steps to Reproduce

  1. Run archon workflow run archon-interactive-prd "Build something"
  2. Complete all approval gates (foundation, deepdive, scope)
  3. Node generate attempts: mkdir -p .claude/PRPs/prds && write PRD
  4. Write is blocked by Claude Code SDK → node fails or produces no output

Confirmed

Run 4c4ec384a38e1e7092f504dcda4c07fd: generate node completed with only 138 chars output (error) instead of the full PRD. Validate node then couldn't find the file.

Suggested Fix

Change the output path in the generate node prompt from:

.claude/PRPs/prds/{kebab-case-name}.prd.md

to:

$ARTIFACTS_DIR/prds/{kebab-case-name}.prd.md

$ARTIFACTS_DIR is pre-created by the executor and always writable. The validate node's prompt should be updated to match.

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions