From 5f0b74cf8c539e02589b74bf4201ba9b21191c80 Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Tue, 24 Mar 2026 20:05:39 -0600 Subject: [PATCH] docs(05): add research and validation strategy --- .../05-employee-design/05-VALIDATION.md | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .planning/phases/05-employee-design/05-VALIDATION.md diff --git a/.planning/phases/05-employee-design/05-VALIDATION.md b/.planning/phases/05-employee-design/05-VALIDATION.md new file mode 100644 index 0000000..19cdd53 --- /dev/null +++ b/.planning/phases/05-employee-design/05-VALIDATION.md @@ -0,0 +1,80 @@ +--- +phase: 5 +slug: employee-design +status: draft +nyquist_compliant: false +wave_0_complete: false +created: 2026-03-24 +--- + +# Phase 5 — Validation Strategy + +> Per-phase validation contract for feedback sampling during execution. + +--- + +## Test Infrastructure + +| Property | Value | +|----------|-------| +| **Framework** | pytest 8.x + pytest-asyncio (existing) | +| **Config file** | `pyproject.toml` (existing) | +| **Quick run command** | `pytest tests/unit -x -q` | +| **Full suite command** | `pytest tests/ -x` | +| **Estimated runtime** | ~30 seconds | + +--- + +## Sampling Rate + +- **After every task commit:** Run `pytest tests/unit -x -q` +- **After every plan wave:** Run `pytest tests/ -x` +- **Before `/gsd:verify-work`:** Full suite must be green +- **Max feedback latency:** 30 seconds + +--- + +## Per-Task Verification Map + +| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status | +|---------|------|------|-------------|-----------|-------------------|-------------|--------| +| 05-xx | 01 | 1 | EMPL-01 | unit | `pytest tests/unit/test_system_prompt_builder.py -x` | ❌ W0 | ⬜ pending | +| 05-xx | 01 | 1 | EMPL-02,03 | integration | `pytest tests/integration/test_templates.py -x` | ❌ W0 | ⬜ pending | +| 05-xx | 01 | 1 | EMPL-04 | integration | `pytest tests/integration/test_templates.py::test_deploy_template_rbac -x` | ❌ W0 | ⬜ pending | +| 05-xx | 02 | 2 | EMPL-01 | build | `cd packages/portal && npx next build` | ✅ | ⬜ pending | +| 05-xx | 02 | 2 | EMPL-02 | build | `cd packages/portal && npx next build` | ✅ | ⬜ pending | +| 05-xx | 02 | 2 | EMPL-05 | build | `cd packages/portal && npx next build` | ✅ | ⬜ pending | + +*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* + +--- + +## Wave 0 Requirements + +- [ ] `tests/unit/test_system_prompt_builder.py` — EMPL-01: system prompt auto-generation from wizard inputs +- [ ] `tests/integration/test_templates.py` — EMPL-02,03,04: template CRUD, deploy, RBAC + +--- + +## Manual-Only Verifications + +| Behavior | Requirement | Why Manual | Test Instructions | +|----------|-------------|------------|-------------------| +| Three-option entry point renders correctly | EMPL-01,02 | UI layout | Click "New Employee", verify Templates/Guided Setup/Advanced options appear | +| Wizard stepper navigates through all 5 steps | EMPL-01 | UI flow | Walk through Role → Persona → Tools → Channels → Escalation | +| Template gallery shows card grid with previews | EMPL-02 | UI visual | Browse templates, click preview, verify details expand | +| One-click template deploy creates functional agent | EMPL-03 | End-to-end | Deploy template, verify agent appears in list, sends in channels | +| Wizard-created agent editable in Agent Designer | EMPL-05 | UI flow | Create via wizard, click edit, verify Agent Designer opens with all fields | + +--- + +## Validation Sign-Off + +- [ ] All tasks have `` verify or Wave 0 dependencies +- [ ] Sampling continuity: no 3 consecutive tasks without automated verify +- [ ] Wave 0 covers all MISSING references +- [ ] No watch-mode flags +- [ ] Feedback latency < 30s +- [ ] `nyquist_compliant: true` set in frontmatter + +**Approval:** pending