Skip to content

feat(slack): structured scoping-question modal for spec loop#19

Merged
ibuildthings-instrumentl merged 2 commits intodevfrom
scoping-questions
Apr 21, 2026
Merged

feat(slack): structured scoping-question modal for spec loop#19
ibuildthings-instrumentl merged 2 commits intodevfrom
scoping-questions

Conversation

@ibuildthings-instrumentl
Copy link
Copy Markdown
Collaborator

Summary

  • Converts free-text scoping questions in archon-slack-feature-to-review-app into a Slack modal form with typed inputs (yes/no, checkboxes, select, text)
  • Workflow prompt emits archon-questions fenced YAML schema on first spec iteration; Slack adapter parses it, renders "Answer questions" button, opens modal on click, and synthesizes formatted answers back into $LOOP_USER_INPUT
  • Falls back gracefully to existing Approve/Request changes gate when schema is absent or malformed

Changes

  • .archon/workflows/defaults/archon-slack-feature-to-review-app.yaml — Updated spec loop first-iteration instructions to emit structured question schema
  • packages/adapters/src/chat/slack/adapter.ts — Added question parsing, modal rendering, answer formatting, and click/submit handlers
  • packages/adapters/src/chat/slack/adapter.test.ts — 8 new tests covering valid schema rendering, fallback paths, regression, and answer formatting
  • packages/adapters/package.json — Added js-yaml dependency

Test plan

  • All 40 Slack adapter tests pass (8 new + 32 existing)
  • Type-check, lint, and format all pass
  • Workflow YAML validates (bun run cli validate workflows archon-slack-feature-to-review-app)
  • Manual: trigger workflow in test Slack workspace, confirm modal renders, submit answers, verify next loop iteration uses formatted text

🤖 Generated with Claude Code

…nput

Add a new implementation plan for converting scoping questions into a Slack modal form. This includes modifications to the workflow prompt contract, Slack adapter for parsing and rendering the question schema, and handling modal submissions. The changes ensure that the workflow remains intact while enhancing user interaction through structured inputs. Related files updated include the workflow YAML, Slack adapter, and corresponding tests.
Convert free-text scoping questions in archon-slack-feature-to-review-app
into a Slack modal form with typed inputs (yes/no, checkboxes, select, text).

The workflow prompt emits an `archon-questions` fenced YAML schema on the
first spec iteration. The Slack adapter parses it, renders an "Answer
questions" button, opens a modal on click, and synthesizes formatted answers
back into $LOOP_USER_INPUT. Falls back to existing Approve/Request changes
gate when schema is absent or malformed.

Co-Authored-By: Claude Opus 4.6 (1M context) <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