Skip to content

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.


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.


  1. The flow orchestrator interviews the user using AskUserQuestion on project characteristics (or reads DISCOVERY_RESULT.md)
  2. The orchestrator presents the selected plan and agent list as text output
  3. The orchestrator asks for approval via AskUserQuestion
  4. 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)

PlanTrigger ConditionAgents Launched
MinimalPersonal tool / small scriptinterviewer
LightPersonal side project / multiple featuresinterviewerrules-designerscope-planner
StandardExternal dependencies / existing system integrationinterviewerresearcherpoc-engineerrules-designerscope-planner
FullRegulated / large-scale / complexinterviewerresearcherpoc-engineerconcept-validator* → rules-designerscope-planner

*concept-validator only runs if HAS_UI: true

Minimal:

Phase 1: Requirements interview → interviewer → approval
→ discovery-flow generates DISCOVERY_RESULT.md directly

Light:

Phase 1: Requirements interview → interviewer → approval
Phase 2: Rule design → rules-designer → approval
Phase 3: Scope planning → scope-planner → approval → done

Standard:

Phase 1: Requirements interview → interviewer → approval
Phase 2: Domain research → researcher → approval
Phase 3: Technical PoC → poc-engineer → approval
Phase 4: Rule design → rules-designer → approval
Phase 5: Scope planning → scope-planner → approval → done

Full:

Phase 1: Requirements interview → interviewer → approval
Phase 2: Domain research → researcher → approval
Phase 3: Technical PoC → poc-engineer → approval
Phase 4: Concept validation → concept-validator → approval [HAS_UI: true only]
Phase 5: Rule design → rules-designer → approval
Phase 6: Scope planning → scope-planner → approval → done

PlanTrigger ConditionAgents Launched
MinimalSingle-function toolspec-designerarchitectdevelopertester* → security-auditor
LightPersonal side project+ ux-designer† + test-designer + e2e-test-designer† + reviewer
StandardMulti-file project+ scaffolder + doc-writer
FullPublic 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 → approval
Phase 2: UI design → ux-designer → approval [HAS_UI: true only]
Phase 3: Architecture design → architect → approval
Phase 4: Project init → scaffolder → approval
Phase 5: Implementation → developer → approval
Phase 6: Test design → test-designer → approval
Phase 7: E2E test design → e2e-test-designer → approval [HAS_UI: true only]
Phase 8: Test execution → tester → approval
Phase 9: Code review → reviewer → approval
Phase 10: Security audit → security-auditor → approval
Phase 11: Documentation → doc-writer → approval → done

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 only runs for PRODUCT_TYPE: service. There is no Minimal plan — at minimum, infrastructure definitions and an operations plan are required.

PlanTrigger ConditionAgents Launched
LightPaaS / single container / no DBinfra-builderops-planner
StandardAPI + DB architectureinfra-builderdb-opsops-planner
FullHigh availability / external user-facinginfra-builderdb-opsobservabilityops-planner
  1. DB presence: Whether ARCHITECTURE.md data model and tech stack include a database
  2. User-facing service: Whether it is an API / Web service accessed by external users
  3. Availability requirements: Whether uptime requirements or SLAs are specified in SPEC.md

Certain agents run on all plans regardless of triage outcome:

AgentDomainWhy Mandatory
security-auditorDeliverySecurity 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-auditor must run on all Delivery plans (including Minimal).


Some agents only run when a user interface is involved:

AgentConditionDomain
concept-validatorFull plan AND HAS_UI: trueDiscovery
ux-designerAny plan AND HAS_UI: trueDelivery
e2e-test-designerLight/Standard/Full AND HAS_UI: trueDelivery

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.


The discovery-flow orchestrator asks the following in two rounds (via AskUserQuestion):

Round 1 (4 questions):

  1. Project scale: personal script / personal side project / team project / large-scale
  2. UI type: CLI / API only / Web UI / Mobile
  3. External API dependencies: none / present
  4. 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


After the orchestrator presents the triage result, users can select “プランを変更” at the approval gate to manually override the plan.

The .aphelion-auto-approve file can contain plan overrides that skip triage questions:

PLAN: Standard
PRODUCT_TYPE: service
HAS_UI: true