Workflow Example: Frame a Problem
This note is a concrete example of the six-part workflow format in Engineering Workflows. It covers the Frame a problem task type from Task Types in Engineering Work and draws on Defining the Product Before Building. Like any workflow built before case data exists, it starts as a draft hypothesis to test and trim on actual tasks (Bottom-Up Approach).
Unlike Workflow Example: Fix a Bug, this task type produces a document with no test suite to prove it right. The main risk is that an agent guesses product intent or turns a suggested solution into fixed requirements without checking the problem or the code.
1. Scope and Starting Input
- Task type: Frame a problem (produces a short brief, with no shipped code).
- Activities used: Framing and investigation.
- Starting input: Any unframed request or trigger: a rough idea, user feedback, a chat thread, an incident follow-up, a ticket, or a bug report where expected behavior is unclear.
- Output: A short brief stating who is affected, the problem to solve, current behavior checked in the code, the intended change, what is included and excluded, fixed constraints, assumptions, and open decisions for the owner.
- Out of scope: System architecture and technical design (use Write or revise a design document), breaking an agreed design into pull requests (use Plan a change), and writing production code.
2. Steps
3. Decision Points
Work pauses for a person at two points:
- After step 2 (engineer review): The engineer checks the draft brief before sending it to the owner. This catches misread code, questions that can be answered from the repository, and technical choices disguised as product requirements.
- After step 3 (owner decision): The product owner or owning lead answers open product choices, confirms scope and exclusions, and commits to whether work proceeds (and as a prototype, a supported feature, or a bug fix). The agent prepares options and their effects; a person makes product commitments (Participants and Substrates).
For a small, reversible clarification (such as an edge case in an internal tool), the engineer who owns the area can combine steps 3 and 4 in one short pass. For work that changes user promises, billing, permissions, security, external APIs, or stored data, keep step 4 with the named product or architecture owner and store the brief where later tasks read it (Adjusting the Level for One Task).
4. Checks
- Self-checks (steps 1 and 2): The collaborator agent cites exact files or docs for every claim about current behavior, lists areas it did not read, keeps current behavior separate from intended behavior, checks that every open question would change the next decision, and leaves storage, services, and APIs undecided unless they are fixed constraints.
- Independent checks (steps 3 and 4): The engineer checks the agent’s code claims against the repository and verifies that a suggested solution in the request did not hide the underlying problem. The owner reads the brief against user and business context that is outside the repository. For a large or risky change, a second engineer or fresh reviewer agent reads the brief alone to check whether someone could design or build from it without guessing product intent.
5. Backtracks
- The request names a solution with no clear problem (step 2 or 3): Pause drafting requirements and ask the requester what job or failure triggered the request before scoping features.
- An open decision depends on an unknown fact in the system or data (step 4): Stop framing and run a short bounded investigation (Investigate a problem, Analyze the impact of a change, or Spike or prototype), then return to step 2 with the finding.
- Current code already does what is asked or contradicts the product docs (step 1 or 3): Stop and show the owner the current behavior and docs; the work may become a documentation update, a bug fix, or a closed request.
- The scope is too big for one buildable brief (step 2 or 4): Split it into a small first release with clear limits and separate follow-up briefs for later situations.
6. Placement in a Project’s Setup
Testing and Trimming This Workflow
Run this workflow on a few unframed requests in one project and record each case (Bottom-Up Approach). Watch for two signals:
- Steps that earn their keep: cases where step 1 exposed existing behavior nobody remembered, or where step 4 stopped the team from building the wrong feature or debating product intent during code review.
- Steps that add friction without changing decisions: if the brief template feels heavy on small requests, trim it to a five-line note (problem, current behavior, intended change, exclusions, open questions) and keep the full brief only for larger features or changes with several stakeholders.