fix/ci-deploy-reset #6

Merged
starmen1265 merged 19 commits from fix/ci-deploy-reset into main 2026-03-11 14:32:51 +08:00
Showing only changes of commit 0ab884bc2a - Show all commits
@@ -0,0 +1,82 @@
---
phase: 2
slug: integration-layer
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-03-11
---
# Phase 2 — Validation Strategy
> Per-phase validation contract for feedback sampling during execution.
---
## Test Infrastructure
| Property | Value |
|----------|-------|
| **Framework** | pytest (existing from Phase 1) |
| **Config file** | pyproject.toml |
| **Quick run command** | `pytest tests/ -x -q` |
| **Full suite command** | `pytest tests/ -v --cov=src/gsd_openclaw` |
| **Estimated runtime** | ~15 seconds |
---
## Sampling Rate
- **After every task commit:** Run `pytest tests/ -x -q`
- **After every plan wave:** Run `pytest tests/ -v --cov=src/gsd_openclaw`
- **Before `/gsd:verify-work`:** Full suite must be green
- **Max feedback latency:** 15 seconds
---
## Per-Task Verification Map
| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
| 02-01-01 | 01 | 1 | OCLW-01 | unit | `pytest tests/test_skill_md.py -v` | ❌ W0 | ⬜ pending |
| 02-01-02 | 01 | 1 | OCLW-01 | unit | `pytest tests/test_skill_md.py -v` | ❌ W0 | ⬜ pending |
| 02-02-01 | 02 | 1 | OCLW-04 | unit | `pytest tests/test_response_formatter.py -v` | ❌ W0 | ⬜ pending |
| 02-02-02 | 02 | 1 | OCLW-04 | unit | `pytest tests/test_response_formatter.py -v` | ❌ W0 | ⬜ pending |
| 02-02-03 | 02 | 1 | OCLW-04 | unit | `pytest tests/test_response_formatter.py -v` | ❌ W0 | ⬜ pending |
| 02-03-01 | 03 | 1 | OCLW-02 | unit | `pytest tests/test_prompts.py -v` | ❌ W0 | ⬜ pending |
| 02-03-02 | 03 | 1 | - | unit | `pytest tests/test_prompts.py -v` | ❌ W0 | ⬜ pending |
*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*
---
## Wave 0 Requirements
- [ ] `tests/test_skill_md.py` — tests for SKILL.md parsing and validation
- [ ] `tests/test_response_formatter.py` — tests for Feishu card formatting
- [ ] `tests/test_prompts.py` — tests for prompt template loading
- [ ] `tests/fixtures/sample_outputs.py` — sample GSD outputs for testing
*Existing infrastructure (conftest.py, pytest) covers framework requirements.*
---
## Manual-Only Verifications
| Behavior | Requirement | Why Manual | Test Instructions |
|----------|-------------|------------|-------------------|
| Feishu card rendering | OCLW-04 | Requires live Feishu environment | Send test card via Feishu API, verify visual rendering |
| Button callback routing | OCLW-02 | Requires OpenClaw integration | Click button in Feishu, verify callback received |
---
## Validation Sign-Off
- [ ] All tasks have `<automated>` 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 < 15s
- [ ] `nyquist_compliant: true` set in frontmatter
**Approval:** pending