aws-samples / aws-samples/sample-autonomous-cloud-coding-agents
feat(orchestration): PR risk classifier at submission
- Lenguaje dominante
- TypeScript
- Estrellas
- 143
- Forks
- 46
- Merge medio
- 3 d 10 h
- PR fusionados (30 d)
- 24
Descripción
**Context:** ROADMAP.md → Agent quality → PR risk classification
**Related:** #425 (review routing depends on this), tiered validation draft
---
## Component
API or orchestration
## Describe the feature
Rule-based **PR risk classifier** evaluated at submission (and optionally updated post-agent). Outputs structured risk label(s) that drive model selection, budget defaults, Cedar approval requirements, and human review tier (#425).
## Use case
Not all tasks deserve the same model, budget, or review depth. A docs-only typo fix should not inherit the same gates as a payment-service schema migration.
## Proposed solution
1. Classifier inputs: workflow ref, repo metadata, touched paths (when known), task description signals, Tier 3 validation output (when available).
2. Output schema: `risk_tier: low | medium | high | critical`, `signals: string[]`, `recommended_model`, `recommended_max_budget_usd`.
3. Persist on task record; expose in `bgagent status` and API.
4. Blueprint overrides per repo for path-based rules.
5. Start advisory-only; enable policy gates via Cedar in follow-up.
## Other information
- #425 implements **routing**; this issue implements the **classifier**.
- Design context: `docs/design/EVALUATION.md`, `docs/design/CEDAR_HITL_GATES.md`.
- [ ] This might be a breaking change
Guía de contribución
Línea de trabajo
Comienza con docs/design/EVALUATION.md y docs/design/CEDAR_HITL_GATES.md; después revisa #425 para entender cómo el enrutamiento depende del classifier. Define el classifier de solo asesoramiento en torno a las entradas y al esquema de salida indicados, persiste su resultado en el registro de la tarea y expónlo mediante bgagent status y la API.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- ai-infra-agents, backend-api-design
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100