Skip to content

feat(workflows): add archon-idea-to-wo interactive workflow#1647

Closed
lamachine wants to merge 1 commit into
coleam00:devfrom
lamachine:archon/thread-293e5dfc
Closed

feat(workflows): add archon-idea-to-wo interactive workflow#1647
lamachine wants to merge 1 commit into
coleam00:devfrom
lamachine:archon/thread-293e5dfc

Conversation

@lamachine

Copy link
Copy Markdown

Summary

  • Problem: No guided workflow for turning raw ideas into implementation-ready Work Orders; users jump straight to implementation with under-specified tasks.
  • Why it matters: BKM Work Orders dramatically improve autonomous implementation quality — but creating them from scratch is tedious and error-prone without structured guidance.
  • What changed: New interactive 8-node DAG workflow (archon-idea-to-wo) and 4 command files that guide users from raw idea → foundation questions → scope/approach → risk/decomposition → BKM Work Orders.
  • What did not change: No TypeScript source changes, no schema changes, no tests added — workflow engine already supports all required node types (approval, command:).

UX Journey

Before

User wants to implement a feature
  ↓
User writes a rough prompt
  ↓
Archon runs archon-piv-loop with under-specified input
  ↓
Poor WO quality → implementation churn

After

User runs: archon-idea-to-wo "add dark mode toggle"
  ↓
[understand-idea] AI reads codebase, asks 5 foundation questions
  ↓
[foundation-gate] User answers foundation questions
  ↓
[scope-and-approach] AI researches codebase deeply, proposes scope
  ↓
[approach-gate] User approves or corrects scope
  ↓
[risk-and-decomposition] AI breaks into ordered WO candidates with risks
  ↓
[decomposition-gate] User approves breakdown
  ↓
[generate-wos] AI writes BKM Work Order files to $ARTIFACTS_DIR/work-orders/
  ↓
[review-wos] User reviews and signs off
  ↓
WO files ready for archon-piv-loop

Architecture Diagram

Before

.archon/workflows/defaults/
  archon-interactive-prd.yaml   (interactive pattern reference)
  archon-idea-to-pr.yaml        (command-based pattern reference)

.archon/commands/defaults/
  archon-create-plan.md, archon-implement.md, ...

After

.archon/workflows/defaults/
  archon-interactive-prd.yaml
  archon-idea-to-pr.yaml
  [+] archon-idea-to-wo.yaml    (new: 8-node interactive DAG workflow)

.archon/commands/defaults/
  archon-create-plan.md, archon-implement.md, ...
  [+] archon-wo-understand-idea.md        (Phase 1: foundation questions)
  [+] archon-wo-scope-and-approach.md     (Phase 2: codebase research + scope)
  [+] archon-wo-risk-and-decomposition.md (Phase 3: ordered breakdown + risks)
  [+] archon-wo-generate-wos.md           (Phase 4: BKM WO file generation)

packages/workflows/src/defaults/
  [~] bundled-defaults.generated.ts       (regenerated to include new files)

Connection inventory:

From To Status Notes
archon-idea-to-wo.yaml archon-wo-understand-idea new command: node
archon-idea-to-wo.yaml archon-wo-scope-and-approach new command: node, depends on foundation-gate
archon-idea-to-wo.yaml archon-wo-risk-and-decomposition new command: node, depends on approach-gate
archon-idea-to-wo.yaml archon-wo-generate-wos new command: node, depends on decomposition-gate
bundled-defaults.generated.ts new files modified regenerated via bun run generate:bundled

Label Snapshot

  • Risk: risk: low
  • Size: size: M
  • Scope: workflows
  • Module: workflows:defaults

Change Metadata

  • Change type: feature
  • Primary scope: workflows

Linked Issue

Validation Evidence (required)

bun run generate:bundled  # regenerated bundled-defaults.generated.ts
bun run check:bundled     # PASS
bun run check:bundled-skill # PASS
bun run type-check        # PASS
bun run lint              # PASS
bun run format:check      # PASS
bun run test              # PASS (3 pre-existing failures in load-command-prompt.test.ts unrelated to this change)
  • Evidence: All non-test checks pass. The 3 pre-existing test failures in load-command-prompt.test.ts (home-scope resolution) are unrelated to this PR and pre-date it.

Security Impact (required)

  • New permissions/capabilities? No
  • New external network calls? No
  • Secrets/tokens handling changed? No
  • File system access scope changed? No (workflow uses existing $ARTIFACTS_DIR — pre-created by executor)

Compatibility / Migration

  • Backward compatible? Yes
  • Config/env changes? No
  • Database migration needed? No

Human Verification (required)

  • Verified scenarios: bun run cli workflow list shows archon-idea-to-wo; all 5 new files exist with valid YAML frontmatter; bundled-defaults.generated.ts contains all new files
  • Edge cases checked: Command files reference gate output variables ($foundation-gate.output etc.) which are substituted by the workflow executor's variableSubstitution() — consistent with how archon-interactive-prd.yaml operates
  • What was not verified: Full end-to-end run through all 8 nodes (requires live Claude + approval interaction)

Side Effects / Blast Radius (required)

  • Affected subsystems/workflows: None — pure addition of new YAML/Markdown defaults
  • Potential unintended effects: None — no TypeScript changes
  • Guardrails: check:bundled CI check catches any stale generated file

Rollback Plan (required)

  • Fast rollback: Delete the 5 new files and re-run bun run generate:bundled
  • Feature flags: None needed — workflow simply won't be invoked unless user calls it
  • Observable failure symptoms: bun run check:bundled would fail if generated file is stale

Risks and Mitigations

  • Risk: Gate output variable substitution in command files ($foundation-gate.output) may not work
    • Mitigation: Variable substitution in executor-shared.ts applies to all prompt text regardless of source (inline prompt: or command:); pattern is consistent with existing command files

🤖 Generated with Claude Code

Add new interactive DAG workflow that guides users from raw idea to BKM-format
Work Orders through 4 AI phases with approval gates:
- understand-idea: foundation questions about the idea
- scope-and-approach: codebase research and approach proposal
- risk-and-decomposition: phased breakdown with risk assessment
- generate-wos: BKM Work Order file generation to $ARTIFACTS_DIR/work-orders/

Includes 4 command files and regenerated bundled defaults.

PIV Tasks 1-7: workflow YAML, 4 command files, bundled regeneration, validation
@coderabbitai

coderabbitai Bot commented May 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fcdb5697-1e15-40dc-bc01-d2b4817c3a6e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coleam00 coleam00 mentioned this pull request May 14, 2026
jadetr pushed a commit to jadetr/Archon that referenced this pull request May 14, 2026
* feat(marketplace): add archon-idea-to-wo workflow

Adds one entry to the marketplace registry for archon-idea-to-wo —
an interactive 8-node workflow that turns a raw idea into BKM-format
Work Orders through four AI phases with approval gates between each.

Originally authored by @lamachine in PR coleam00#1647, where it was proposed
as a bundled default. Repackaged as a standalone SHA-pinned external
repo (coleam00/archon-idea-to-wo) so it can be published through the
community marketplace without waiting for an Archon release.

- Author: lamachine
- Tags: planning, development
- Source: coleam00/archon-idea-to-wo @ 3b0d5d82 (directory format)
- archonVersionCompat: >=0.3.0

Closes coleam00#1647

* chore: re-trigger marketplace auto-review after ready-for-review

PR was flipped to ready-for-review before the action's trigger list
included ready_for_review (fixed in d8d5a35 on dev). Empty commit
fires the synchronize event so the auto-review runs now that the
draft gate is cleared.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
cropse pushed a commit to cropse/Archon that referenced this pull request May 19, 2026
* feat(marketplace): add archon-idea-to-wo workflow

Adds one entry to the marketplace registry for archon-idea-to-wo —
an interactive 8-node workflow that turns a raw idea into BKM-format
Work Orders through four AI phases with approval gates between each.

Originally authored by @lamachine in PR coleam00#1647, where it was proposed
as a bundled default. Repackaged as a standalone SHA-pinned external
repo (coleam00/archon-idea-to-wo) so it can be published through the
community marketplace without waiting for an Archon release.

- Author: lamachine
- Tags: planning, development
- Source: coleam00/archon-idea-to-wo @ 3b0d5d82 (directory format)
- archonVersionCompat: >=0.3.0

Closes coleam00#1647

* chore: re-trigger marketplace auto-review after ready-for-review

PR was flipped to ready-for-review before the action's trigger list
included ready_for_review (fixed in d8d5a35 on dev). Empty commit
fires the synchronize event so the auto-review runs now that the
draft gate is cleared.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant