A small product to connect the pieces
This reference project is fictional. It demonstrates the SHAPE Framework using an internal application for submitting and reviewing service requests. The scenario is intentionally small enough that the relationship between business intent, specifications, implementation, and verification remains visible.
The example does not prescribe an enterprise technology stack, UI design, database architecture, or deployment model. Real projects must follow their own approved standards.
This example's SPEC-001 and AC- identifiers and per-feature document are illustrative choices, not required SHAPE names or a universal human document-approval step. Humans decide the material business rules and inspect working outcomes; agents keep the intent record current.
This fictional walkthrough follows the five-stage Cycle 1 to the first human-approved baseline, then all six stages of Cycle 2 for a change before production release. The results below are illustrative, not evidence from a real application.
The business problem
Employees currently submit internal service requests through inconsistent messages. The receiving team struggles to determine who owns a request, whether information is complete, and whether a decision has been communicated. The organization wants a basic workflow in which requests can be submitted and explicitly approved or rejected by authorized reviewers.
The first release should make the state of a request understandable to its requester and to the assigned reviewer. It does not attempt to automate fulfillment, service-level agreements, procurement, or production notification infrastructure.
Objectives and first-release boundary
Objective: Provide one traceable path for submitting and deciding internal service requests.
Intended users: Employees as requesters; designated staff as reviewers; an administrative role responsible for maintaining reviewer assignments if applicable.
In scope: Create and submit requests, validate required information, show request status, review submitted requests, approve or reject with recorded decisions, restrict actions according to roles, and allow a requester to inspect the result.
Out of scope: Fulfillment of approved requests, financial commitments, automated assignment optimization, external customer access, analytics dashboards, and production release procedures.
Initial business states: Draft, Submitted, Approved, Rejected. The meanings and allowed transitions are maintained in the feature specification.
Cycle 1, Stage 1: Stakeholder Engagement & Requirements
The Product Engineer interviews several requesters and reviewers. Requesters want acknowledgment that a submission exists and a clear outcome. Reviewers need complete information and a reliable decision record. The Product Engineer identifies unresolved questions: Who can review requests? Can reviewers decide their own submissions? Is a rejection reason mandatory? Who may edit a submitted request?
The business owner confirms the first-release decisions: reviewers are assigned by an approved role; requesters cannot review their own submissions; a rejection requires a reason; and submitted requests cannot be edited in this first release. These decisions become specification content rather than discretionary assumptions made by the coding agent.
Cycle 1, Stage 2: Parallel Foundation Activities
UX direction: The designer defines the main user journeys: create and submit a request; inspect its status; review and decide a submitted request. The designer relies on approved interaction patterns and plans to inspect the working flows later.
Technical foundation: The architect evaluates the organization's approved platform, starter repositories, libraries, components, and permissions model. The architect defines boundaries, data flows, integrations, separation of concerns, and repository structure, and coordinates enforced agent execution restrictions with environment owners. Project-specific guidance is available through agent_instructions/ and a minimal root AGENTS.md.
Specification work: The Product Engineer produces the following illustrative feature specification.
Example specification excerpt
ID: SPEC-001
Title: Submit and review an internal service request
Purpose: Let an employee submit a service request and receive a traceable decision from an authorized reviewer.
Actors: Requester; Reviewer.
Behavior:
- A requester may create a Draft request with a title, category, and description.
- A request may move from Draft to Submitted only when all three fields are present and valid under the agreed field rules.
- The requester can view the current status of requests they created.
- A reviewer may view Submitted requests assigned to their review scope.
- An authorized reviewer may approve a Submitted request, recording the reviewer's identity and decision time.
- An authorized reviewer may reject a Submitted request only after providing a nonempty rejection reason; the result records the reviewer and decision time.
- Requesters cannot approve or reject their own submissions, even if they otherwise possess reviewer permissions.
- Once a request is Submitted, it cannot be edited in the initial release.
- A requester can view the decision and rejection reason, where applicable, for their own request.
Acceptance conditions:
AC-01A Draft request cannot be submitted with a missing title, category, or description.AC-02Successful submission changes the request to Submitted and makes its status visible to the requester.AC-03Only an authorized reviewer may approve or reject an assigned Submitted request.AC-04A reviewer cannot approve or reject their own request.AC-05Rejecting without a reason is prevented; a valid rejection records its reason, reviewer, and decision time.AC-06A Submitted request cannot be edited.AC-07A requester may see the decision on their own request but not another requester's private details unless separately authorized.
Dependencies and unresolved questions: Reviewer assignment policy is defined by the organization's access model. Any notification beyond viewing request status is out of scope for the initial release.
This excerpt establishes observable behavior, but a real project must also define any necessary field constraints, data handling policies, and integrations under its approved architecture.
Cycle 1, Stage 2: Completing the technical foundation
The Architect selects approved organizational templates, frameworks, libraries, patterns, and permissions appropriate to the emerging requirements and records application-specific constraints. The Product Engineer maintains AI-assisted specifications and discoverable instructions; UX establishes representative interaction patterns. These three activities proceed in parallel after human requirements discovery.
This provides sufficient foundation for iterative implementation. Architecture Review of the actual implementation occurs at Stage 4 in both cycles; setup is not a separate mandatory review or a ready-to-code approval gate.
Cycle 1, Stage 3: Implementation & Iterative Refinement
The Product Engineer asks the coding agent to implement SPEC-001 using the approved project instructions, libraries, and patterns. The Product Engineer exercises representative Draft creation, submission, and normal approval and rejection workflows, confirms that the core flow is functioning, and identifies routine corrections for the agent to make.
The initial implementation appears ready for architect review, but the Product Engineer has not exercised rejection with an empty reason. That negative path remains defective: the application still permits a reviewer to reject a request without providing a reason, contrary to AC-05. The oversight is not treated as acceptable behavior or used to change the specification.
Cycle 1, Stage 3: Functional and UX refinement
The Product Engineer repeats prompt/specification input → agentic code generation → functional testing and UX review. Requesters and reviewers inspect working flows, with UX participation as needed. A reviewer asks for an approval comment; the business owner decides it is optional. The Product Engineer directs the agent to update SPEC-001 and implement that decision.
Continued human functional review catches the initially missed AC-05 empty-rejection-reason defect. The agent corrects it; the Product Engineer checks that empty reasons are rejected and valid rejection records the required details. This is ordinary functional validation during Stage 3, not spec-based regression testing against a nonexistent approved baseline. Iteration continues until ready for Architecture Review.
Cycle 1, Stage 4: Architecture Review
At Cycle 1 Stage 4, the Architect reviews the working implementation against the agreed architecture, standards, and technical constraints. The review finds authorization enforced only in the UI: hiding controls does not protect the underlying action. The Product Engineer directs coding agents to apply the approved action-level authorization pattern, and the Architect verifies the correction as appropriate.
Review and necessary corrections conclude before initial UAT. There is no separate mandatory Stage 7 or final initial-cycle architectural review.
Cycle 1, Stage 5: UAT & Approval
At Cycle 1 Stage 5, authorized stakeholders validate the working submission/review flows, the optional approval comment, rejection-reason validation (AC-05), and requester privacy (AC-07) using suitable identities. They approve the initial functionality and its corresponding specification as the first approved baseline.
This human acceptance is distinct from production release. There was no approved baseline for spec-based regression testing during Cycle 1; ordinary functional, unit, integration, and other appropriate checks still applied. All subsequent development follows Cycle 2, including work still needed before production readiness.
Cycle 2, Stage 1: Stakeholder Engagement & Requirements
Immediately after initial approval, while the product is still being developed before production release, stakeholders request withdrawal of a Submitted request before review. The Product Engineer discusses desired outcomes and constraints directly with them. AI-assisted specification work follows this human engagement.
The requested behavior is that a requester can withdraw their own Submitted request, recording identity and time and changing its state to Withdrawn. Withdrawal prevents later approval or rejection; reviewers cannot withdraw on someone else's behalf without a separate authorization decision.
Cycle 2, Stage 2: Specification Generation
The Product Engineer uses AI assistance to translate the understood withdrawal requirements into current specification changes. The implementation agent maintains that current description as development proceeds.
Keep the initial human-approved version of SPEC-001 as the regression baseline, including AC-01–AC-07 and optional approval comments. The new Withdrawn behavior is not part of that baseline until appropriate human validation and approval.
Cycle 2, Stage 3: Implementation & Iterative Refinement
The Product Engineer repeats the shared Stage 3 subprocess: provides prompt/specification input, directs coding-agent generation, and functionally tests and reviews UX of the working change. Agents implement withdrawal and keep the current specification aligned with the intended change. The Product Engineer evaluates own-request withdrawal, other-user denial, and prevention of decisions after withdrawal, with UX where needed.
This evaluates new behavior during implementation; it does not make it previously approved regression behavior. Continue refinement until ready for Architecture Review.
Cycle 2, Stage 4: Architecture Review
At Cycle 2 Stage 4, the Architect reviews the withdrawal implementation, state-transition and authorization boundaries, approved reuse, and technical constraints. The Product Engineer directs any corrections and the Architect verifies them as appropriate. This review is standard even before production release and can be proportionate to the change.
Spec-based regression testing follows at Stage 5. The approved AC-05 rejection validation and AC-07 privacy behavior must remain protected; any later architectural correction can return for re-review within the same stage.
Cycle 2, Stage 5: Spec-Based Testing
At Cycle 2 Stage 5, an independent verification agent uses the initial human-approved SPEC-001 baseline to exercise previously accepted workflows, scenarios, and use cases, for example with Playwright under human-authorized execution. The current withdrawal specification is separate context, not an automatically accepted replacement baseline.
The withdrawal implementation has accidentally regressed shared rejection validation: empty rejection reasons are accepted again. The verifier's expected result comes from approved AC-05, not the new code or its current description. The following fictional initial results show that regression and a temporarily unavailable privacy-test identity:
| Check | Expected behavior | Observed behavior | Initial outcome |
|---|---|---|---|
AC-01 | A request with missing required fields cannot be submitted | Submission blocked when description is missing | Pass |
AC-03 | Only an authorized reviewer can decide an assigned submitted request | Unauthorized decision is rejected | Pass |
AC-04 | A reviewer cannot decide their own request | Self-approval attempt is rejected | Pass |
AC-05 | Rejection requires a nonempty reason | An empty rejection reason is accepted | Fail |
AC-06 | A submitted request cannot be edited | Edit attempt is rejected | Pass |
AC-07 | A requester cannot view another person's private request details without permission | Representative second-user test identity is initially unavailable | Blocked |
The Product Engineer directs correction of the AC-05 regression without weakening the approved requirement. The independent verifier repeats empty-reason and valid-rejection checks: empty reasons are prevented and valid rejection retains its reason, reviewer, and time. The current specification is corrected to reflect intended behavior; the approved baseline was not rewritten to excuse the defect.
The initially blocked AC-07 check is not a pass. In this example, suitable second-user identities are subsequently supplied and the independent verifier reruns the check successfully. The report preserves both the initial blocker and its later resolution. Revisit Architecture Review if corrective work warrants it before proceeding to UAT.
Cycle 2, Stage 6: UAT & Approval
At Cycle 2 Stage 6, stakeholders validate the requested withdrawal behavior and confirm that previously approved workflows still meet their needs. They receive the regression report distinguishing the corrected/retested AC-05 failure and the initially blocked, subsequently rerun AC-07 privacy check.
After appropriate human validation and approval, the relevant withdrawal specification changes become part of the approved regression baseline. The current specification never automatically promotes itself into that baseline. Future corrections, refinements, and enhancements repeat all six Cycle 2 stages, before or after production release.
What this example demonstrates
The example connects human discovery, AI-assisted specifications, iterative agent implementation, standard architecture review, and human acceptance. Cycle 1 establishes the first approved baseline; Cycle 2 protects it through independent regression testing while new behavior receives separate human validation.
The original AC-05 oversight is corrected through human functional review before initial approval. A later regression of that approved behavior is independently detected and corrected in Cycle 2. Blocked checks are reported and resolved explicitly. Continuing development before release is already Cycle 2; no production event is required to begin it.