Building an End-to-End Business Requirement Expert Agent: Architecture & Automated Delivery Loop
This article details a production-ready end-to-end Agent system that automates business requirement delivery through a four-layer architecture and an eight-stage vertical flow, using TDD, quality gates, and knowledge distillation to reduce manual coordination.
Reading font

Overview
The article presents a complete, field-tested Agent system for end-to-end business requirement delivery. It addresses the bottleneck that lies not in code generation but in the coordination cost across clarification, design, implementation, code review, acceptance, release observation, and project closure. The system organizes context, tools, human checkpoints, and feedback into a closed loop where the Agent drives the process autonomously and humans only confirm at key quality gates.
Horizontal Architecture: Four Layers
The static architecture consists of four layers that form a closed loop from fact input to feedback recycling:
Context Input Layer : Organizes long-term business knowledge (LLM Wiki, codemap, historical decisions) and current requirement materials (Aone items, DingTalk PRDs, issue comments) into a stage-specific context snapshot. Context is stored in three repos: code repo, project memory repo (per-requirement feature branches), and long-term wiki repo (always on master). Project memory accumulates requirements, plans, progress, CR comments, and acceptance evidence; only vetted knowledge is distilled back to long-term wiki at closure.
Business Expert Orchestration Layer : Decides the current stage (clarification, design, implementation, etc.), determines whether to proceed autonomously or request human confirmation, and handles fallback when evidence is insufficient.
Tool Execution Layer : Wraps platform capabilities (Aone, CR, code repos, config platform, SLS, HSF, monitoring, DingTalk docs) as callable skills so the Agent can act without manual platform switching.
Feedback Learning Layer : Captures CR comments, issue dialogues, acceptance records, self-recovery logs, and human corrections. At project closure, stable knowledge goes to long-term wiki/codemap, recurring process issues become skill/prompt improvement candidates, and one-off artifacts are archived.
The implementation uses Multica for its isolated issue workspaces, Agent-skill binding, multi-runtime sandboxes, and offline persistence. Core skills include superai-memories, superai-aone, superai-clarify, superai-plan, superai-execute, superai-code-review, superai-sls, superai-ops, superai-finish, superai-tjx, superai-mt, and others.
Vertical Flow: Eight Stages
3.1 Requirement Entry: Context Snapshot
Agent loads current requirement materials and long-term business knowledge to form an initial context snapshot. No human confirmation needed unless sources are missing or conflicting. Output: a workable context snapshot.
3.2 Requirement Clarification: First Quality Gate
Using superai-clarify, Agent structures the context into a reviewable requirements document (target behavior, non-goals, acceptance criteria, risks, open questions). Human confirms the requirements document via CR comments on the project memory feature branch. superai-workflow blocks progression until confirmation. Clarification records and human corrections become candidates for long-term knowledge.
3.3 Technical Design: Second Quality Gate
Agent writes a comprehensive technical plan ( superai-plan) covering current state, target behavior, scope, impact, core changes, risks, verification strategy, and rollback plan. Crucially, acceptance criteria (positive, negative, regression cases) are defined here. Config-related needs include schema creation and validation via tjx-cli and workbench CLI ( superai-tjx, superai-mt). Plan is confirmed via CR before any coding.
3.4 Implementation & Internal Quality Gate: TDD + Pre-push Hooks
Implementation is driven by TDD: tests are written first based on the plan's acceptance criteria, then code satisfies tests. An internal pre-push quality gate enforced by git pre-push hook runs three checks: (1) diff-to-test mapping — every production code change must have a specific test anchor; (2) PMD/lint; (3) Agent internal structured code review ( superai-code-review). Push is rejected if any check fails. This turns quality gates from "Agent should do" into "cannot push if not done".
3.5 CR/Issue Collaboration: Persistent Feedback
Collaboration starts from requirement entry. Requirements and plans are pushed to feature branches, CRs created, and humans comment. Agent reads unresolved comments, modifies docs/code, commits, replies, and resolves. If comments imply scope changes, Agent returns to requirements or plan stage. Milestone comments on Aone (with commit/CR links and evidence) provide traceability. All feedback stays on-platform for later distillation.
3.6 Acceptance Verification: Real Environment Evidence
Agent deploys the feature branch to an isolated project environment (via superai-aone + a1 CLI). Verification uses HSF generic calls, SLS log queries ( superai-sls), and monitoring metrics ( superai-ops) against pre-defined acceptance criteria (positive, negative, regression). Evidence is written to progress or verification files. Human confirmation still required before main pre-production or production deployment.
3.7 Release & Post-release Observation
Agent assists with change materials, risk assessment, and rollback plans, but release execution is manual. Post-release, Agent reuses SLS and monitoring skills to observe runtime behavior. Anomalies feed into closure retrospective.
3.8 Project Closure: Knowledge Distillation
Agent generates a closeout raw log categorizing all process artifacts. It answers three questions: (1) Which knowledge is stable? → long-term wiki/codemap via CR. (2) Which process issues recur? → skill/prompt improvement candidates. (3) What is one-off? → archived in raw log. superai-finish orchestrates closure; superai-memories handles project memory merge and wiki candidate generation. Human confirms each write. This closes the loop: distilled knowledge becomes the next requirement's long-term context.
Key Practices
TDD with test-first discipline : Tests define correct behavior before implementation, avoiding coverage theater.
Three hard quality gates : Requirements confirmation, design confirmation, and automated pre-push gate (diff-to-test, PMD, internal review).
Feedback persistence : All human-Agent interaction on Aone/CR, not chat, enabling systematic retrospection.
Selective knowledge distillation : Project memory → long-term wiki only after human-vetted closure, preventing noise pollution.
Tooling & Implementation Details
Skills are thin wrappers around existing CLIs/APIs (Aone via a1, Tianjixing via tjx-cli, SLS, monitoring). Multica provides workspace isolation, Agent-skill binding, and sandboxed runtimes. Git hooks enforce pre-push checks. The system is platform-agnostic in design; Multica was chosen for infrastructure convenience.
Challenges & Future Work
Onboarding cost : High initial auth/runtime setup due to platforms lacking CLI/API for Agent sandboxes.
Missing metrics system : Need to measure human intervention count, comment rounds, rework rate, acceptance pass rate, post-release incidents, cross-platform sync cost to validate Agent improvements objectively.
Multi-Agent teams : Extending from single backend Agent to coordinated frontend, backend, test, and PD agents sharing long-term wiki but maintaining separate context/products. Also piloting a data-domain Agent using the same methodology.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.