aws-samples / aws-samples/sample-autonomous-cloud-coding-agents

Tooling: Harness mutation regression suite for workflow and policy changes

Aperta
#512 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement P2 tooling
Lingua principale
TypeScript
Stelle
143
Fork
46
Merge medio
3g 10h
PR unite (30g)
24

Descrizione

> **Roadmap:** Exposed project specifications; workflow promotion gate
> **Priority:** P2

## Component

Other

## Describe the feature

CI regression suite that treats **harness mutations** (workflow YAML, Cedar policies, contract fixtures) like safety-critical code changes. On changes to `agent/workflows/**`, `agent/policies/**`, or `contracts/**`, run golden trajectory fixtures and cedar-parity tests; fail on event-order, policy decision, or terminal-state regressions.

Implements arXiv:2605.18747 §5.2.3: harness edits require held-out regression suites and rollback discipline.

## Use case

- **Contributors** changing workflows or Cedar rules get immediate feedback before deploy.
- **Workflow promotion** (`draft → production`) gains an automated gate beyond unit tests.
- **Operators** forking workflows have a template for their own regression fixtures.

## Proposed solution

1. Depends on golden PEV trajectory fixtures (`contracts/harness-trajectories/` — separate issue).

2. GitHub Actions job (or extend existing build workflow):
- Trigger paths: `agent/workflows/**`, `agent/policies/**`, `contracts/**`
- Run: workflow-validation, cedar-parity, golden trajectory diff
- Output: fixture diff on failure

3. Document operator expectation: production workflow changes require green regression suite.

### Acceptance criteria

- [ ] CI job triggers on harness-relevant path changes
- [ ] Fails with actionable diff when golden trajectory or cedar-parity regresses
- [ ] Documented in `CONTRIBUTING.md` or developer guide
- [ ] Works without live Bedrock (mocked agent/orchestrator responses)

## Other information

- **Blocked by (soft):** Conformance golden PEV trajectories issue
- **Related:** Workflow promotion gate in `WORKFLOWS.md`
- **Paper:** arXiv:2605.18747 §3.5, §5.2.3 governed harness mutation

## Acknowledgements

- [ ] I may be able to implement this feature
- [ ] This might be a breaking change

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Ispeziona le modifiche in agent/workflows/**, agent/policies/** e contracts/**, quindi esamina il build workflow esistente e le relative indicazioni sulla promozione in WORKFLOWS.md. La issue separata contracts/harness-trajectories è una dipendenza; il completamento richiede CI attivata dai percorsi, controlli workflow-validation, cedar-parity e golden trajectory con diff utilizzabili, risposte simulate e documentazione in CONTRIBUTING.md o nella guida per sviluppatori.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github-actions, yaml
Ambito
ci-cd, devops, testing
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.