Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

docs(testing): require scenario coverage in prs

cyh53d6536bfa1f
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 000000000..4fb11307f
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,22 @@
+## Summary
+
+- capability:
+- user-visible change:
+- motivation:
+
+## Scenario Coverage
+
+- scenario IDs:
+- unit / contract coverage:
+- scenario coverage:
+- residual manual checks:
+
+## Validation
+
+- commands run:
+- result:
+
+## Risks / Follow-ups
+
+- risk:
+- follow-up:
diff --git a/AGENTS.md b/AGENTS.md
index 5fdc7cf3a..2588f27e0 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -151,6 +151,8 @@ Source-of-truth rule:
### Review Loop for PRs
- before opening a PR, run the reviewer subagent and fix significant issues first
+- PR descriptions must name the changed capability and list the affected scenario IDs when a scenario catalog exists
+- PR descriptions must state which evidence layers were updated: unit, contract, scenario, and residual manual checks
- after opening a PR, use the `background-watch-hook` skill to keep a review-fix loop running until Codex review passes
- by default, create the review watch immediately after the PR is opened; do not wait for the user to remind you unless they explicitly say not to keep a watch
@@ -203,6 +205,7 @@ Testing guidance:
- use pytest-style tests (`test_<feature>.py`) colocated or under `tests/`
- for IM integrations, stub/mock platform clients and validate outbound payload/schema behavior
- for reusable capability-first testing guidance, use `standards/scenario-testing/AGENTS.md` as the entrypoint; project-specific scenario coverage should follow that standard
+- when a scenario catalog exists, make the scenario ID visible in the automated test and in the PR description
- for multi-step auth/setup flows, add or update a closed-loop scenario harness case under `tests/test_agent_auth_setup_scenarios.py`; keep provider-specific parsing and heuristics in focused unit tests
- for UI changes, run `npm run build` in `ui/`
- for cross-platform or user-facing verification, use the Docker regression workflow
diff --git a/standards/scenario-testing/WORKFLOW.md b/standards/scenario-testing/WORKFLOW.md
index 00533c24a..742836487 100644
--- a/standards/scenario-testing/WORKFLOW.md
+++ b/standards/scenario-testing/WORKFLOW.md
@@ -31,6 +31,13 @@ Reviewers should ask:
4. If the bug was flow-level, where is the scenario coverage?
5. What remains intentionally manual?
+PR authors should include in the PR body:
+
+- changed capability
+- affected scenario IDs
+- evidence layers updated
+- residual manual checks
+
## CI Workflow
Projects adopting this standard should evolve toward:
diff --git a/standards/scenario-testing/templates/pr-checklist.md b/standards/scenario-testing/templates/pr-checklist.md
index 26381bd07..b900a33c6 100644
--- a/standards/scenario-testing/templates/pr-checklist.md
+++ b/standards/scenario-testing/templates/pr-checklist.md
@@ -1,9 +1,25 @@
# Scenario Testing PR Checklist
+## Summary
+
- Capability identified in user-visible terms
+- User-visible change described briefly
+
+## Scenario Coverage
+
- Scenario IDs listed in PR description
- Unit tests added or updated for local logic changes
- Contract tests added or updated for boundary changes
- Scenario coverage added or updated for flow-level changes
- Residual smoke/manual checks explicitly listed
- Historical regression scenario added when fixing a flow-level bug
+
+## Validation
+
+- Commands run are listed
+- Validation result is stated clearly
+
+## Review Readiness
+
+- The PR makes it obvious which layer caught or should catch the change
+- The PR makes it obvious what is still intentionally manual