Triage System
Language: English | 日本語 Last updated: 2026-04-18 Audience: New users / Agent developers
The Triage System automatically assesses project characteristics at flow start and selects the minimum set of agents needed. This page explains the 4-tier selection logic, conditions, and per-domain agent matrices.
Table of Contents
Section titled “Table of Contents”- Overview
- How Triage Works
- Discovery Flow Triage
- Delivery Flow Triage
- Operations Flow Triage
- Mandatory Agents (Always Run)
- Conditional Agents (HAS_UI)
- Triage Assessment Questions
- Overriding Triage
- Related Pages
- Canonical Sources
Overview
Section titled “Overview”Aphelion’s Triage System ensures that the right level of rigor is applied based on project characteristics:
- A personal CLI tool gets Minimal — just enough to ship
- A public OSS library gets Full — the complete quality pipeline
- Everything else falls somewhere in between
The triage happens at the start of each flow. The orchestrator interviews the user (or reads DISCOVERY_RESULT.md) and selects from 4 plan tiers: Minimal, Light, Standard, or Full.
How Triage Works
Section titled “How Triage Works”- The flow orchestrator interviews the user using
AskUserQuestionon project characteristics (or readsDISCOVERY_RESULT.md) - The orchestrator presents the selected plan and agent list as text output
- The orchestrator asks for approval via
AskUserQuestion - Once approved, agents are launched in sequence
Assessment dimensions:
- Project scale (personal script → team project → large-scale)
- External dependencies and integrations
- Domain complexity (regulatory, compliance)
- Public/private status
PRODUCT_TYPE(service / tool / library / cli)HAS_UI(whether a user interface is involved)
Discovery Flow Triage
Section titled “Discovery Flow Triage”| Plan | Trigger Condition | Agents Launched |
|---|---|---|
| Minimal | Personal tool / small script | interviewer |
| Light | Personal side project / multiple features | interviewer → rules-designer → scope-planner |
| Standard | External dependencies / existing system integration | interviewer → researcher → poc-engineer → rules-designer → scope-planner |
| Full | Regulated / large-scale / complex | interviewer → researcher → poc-engineer → concept-validator* → rules-designer → scope-planner |
*concept-validator only runs if HAS_UI: true
Discovery Phase Sequence by Plan
Section titled “Discovery Phase Sequence by Plan”Minimal:
Phase 1: Requirements interview → interviewer → approval→ discovery-flow generates DISCOVERY_RESULT.md directlyLight:
Phase 1: Requirements interview → interviewer → approvalPhase 2: Rule design → rules-designer → approvalPhase 3: Scope planning → scope-planner → approval → doneStandard:
Phase 1: Requirements interview → interviewer → approvalPhase 2: Domain research → researcher → approvalPhase 3: Technical PoC → poc-engineer → approvalPhase 4: Rule design → rules-designer → approvalPhase 5: Scope planning → scope-planner → approval → doneFull:
Phase 1: Requirements interview → interviewer → approvalPhase 2: Domain research → researcher → approvalPhase 3: Technical PoC → poc-engineer → approvalPhase 4: Concept validation → concept-validator → approval [HAS_UI: true only]Phase 5: Rule design → rules-designer → approvalPhase 6: Scope planning → scope-planner → approval → doneDelivery Flow Triage
Section titled “Delivery Flow Triage”| Plan | Trigger Condition | Agents Launched |
|---|---|---|
| Minimal | Single-function tool | spec-designer → architect → developer → tester* → security-auditor |
| Light | Personal side project | + ux-designer† + test-designer + e2e-test-designer† + reviewer |
| Standard | Multi-file project | + scaffolder + doc-writer |
| Full | Public project / OSS | + releaser |
*In Minimal plan, tester integrates test design (TEST_PLAN.md may not be pre-generated)
†Only when HAS_UI: true
Delivery Phase Sequence (Standard Example)
Section titled “Delivery Phase Sequence (Standard Example)”Phase 1: Spec design → spec-designer → approvalPhase 2: UI design → ux-designer → approval [HAS_UI: true only]Phase 3: Architecture design → architect → approvalPhase 4: Project init → scaffolder → approvalPhase 5: Implementation → developer → approvalPhase 6: Test design → test-designer → approvalPhase 7: E2E test design → e2e-test-designer → approval [HAS_UI: true only]Phase 8: Test execution → tester → approvalPhase 9: Code review → reviewer → approvalPhase 10: Security audit → security-auditor → approvalPhase 11: Documentation → doc-writer → approval → doneSide Entry: analyst
Section titled “Side Entry: analyst”analyst is not selected through triage — it is a side entry triggered by bug reports, feature requests, or refactoring requests for existing projects. After analyst completes, delivery-flow joins from Phase 3 (architect).
Operations Flow Triage
Section titled “Operations Flow Triage”Operations Flow only runs for PRODUCT_TYPE: service. There is no Minimal plan — at minimum, infrastructure definitions and an operations plan are required.
| Plan | Trigger Condition | Agents Launched |
|---|---|---|
| Light | PaaS / single container / no DB | infra-builder → ops-planner |
| Standard | API + DB architecture | infra-builder → db-ops → ops-planner |
| Full | High availability / external user-facing | infra-builder → db-ops → observability → ops-planner |
Operations Assessment Criteria
Section titled “Operations Assessment Criteria”- DB presence: Whether ARCHITECTURE.md data model and tech stack include a database
- User-facing service: Whether it is an API / Web service accessed by external users
- Availability requirements: Whether uptime requirements or SLAs are specified in SPEC.md
Mandatory Agents (Always Run)
Section titled “Mandatory Agents (Always Run)”Certain agents run on all plans regardless of triage outcome:
| Agent | Domain | Why Mandatory |
|---|---|---|
security-auditor | Delivery | Security audit cannot be omitted. OWASP Top 10 + dependency scans run even on Minimal |
The security-auditor mandate is defined in .claude/rules/library-and-security-policy.md:
security-auditormust run on all Delivery plans (including Minimal).
Conditional Agents (HAS_UI)
Section titled “Conditional Agents (HAS_UI)”Some agents only run when a user interface is involved:
| Agent | Condition | Domain |
|---|---|---|
concept-validator | Full plan AND HAS_UI: true | Discovery |
ux-designer | Any plan AND HAS_UI: true | Delivery |
e2e-test-designer | Light/Standard/Full AND HAS_UI: true | Delivery |
HAS_UI is determined by interviewer (Discovery) or spec-designer (Delivery direct entry) based on whether the project includes a web UI, mobile app, or desktop GUI.
Triage Assessment Questions
Section titled “Triage Assessment Questions”The discovery-flow orchestrator asks the following in two rounds (via AskUserQuestion):
Round 1 (4 questions):
- Project scale: personal script / personal side project / team project / large-scale
- UI type: CLI / API only / Web UI / Mobile
- External API dependencies: none / present
- Existing system integration: new / integration with existing
Round 2 (2 questions): 5. Domain complexity: simple / moderate / complex (regulated) 6. PRODUCT_TYPE: service / tool / library / cli
Overriding Triage
Section titled “Overriding Triage”Manual Override at Approval Gate
Section titled “Manual Override at Approval Gate”After the orchestrator presents the triage result, users can select “プランを変更” at the approval gate to manually override the plan.
Auto-Approve Mode Override
Section titled “Auto-Approve Mode Override”The .aphelion-auto-approve file can contain plan overrides that skip triage questions:
PLAN: StandardPRODUCT_TYPE: serviceHAS_UI: trueRelated Pages
Section titled “Related Pages”Canonical Sources
Section titled “Canonical Sources”- .claude/orchestrator-rules.md — Triage plans, conditions, and agent sequences per domain
- .claude/agents/discovery-flow.md — Discovery triage implementation
- .claude/agents/delivery-flow.md — Delivery triage implementation
- .claude/agents/operations-flow.md — Operations triage implementation
- .claude/rules/library-and-security-policy.md — security-auditor mandatory rule