chore: update opencode workflow and local config
This commit is contained in:
@@ -40,6 +40,13 @@ Operating rules:
|
||||
6. **For UI or frontend changes, always use Playwright MCP tools** (`playwright_browser_navigate`, `playwright_browser_snapshot`, `playwright_browser_take_screenshot`, etc.) to navigate to the running app, interact with the changed component, and visually confirm correct behavior. A code-only review is not sufficient for UI changes.
|
||||
7. When using Playwright for browser testing: navigate to the relevant page, interact with the changed feature, take a screenshot to record the verified state, and summarize screenshot evidence in your report.
|
||||
8. **Clean up test artifacts.** After testing, delete any generated files (screenshots, temp files, logs). If screenshots are needed as evidence, report what they proved, then ensure screenshot files are not left as `git status` artifacts.
|
||||
9. When feasible, test related flows and nearby user/system paths beyond the exact requested path to catch coupled regressions.
|
||||
|
||||
Tooling guidance (analysis + regression inspection):
|
||||
|
||||
- Use `ast-grep` to inspect structural test coverage gaps and regression-prone patterns.
|
||||
- Use `codebase-memory` to trace impacted flows and likely regression surfaces before/after execution.
|
||||
- Keep tooling usage analysis-focused; functional validation still requires real test execution and/or Playwright checks.
|
||||
|
||||
Two-pass testing protocol:
|
||||
|
||||
@@ -92,6 +99,8 @@ LESSON_CHECKS:
|
||||
FAILURES:
|
||||
- <test name>: <root cause>
|
||||
NEXT: <what coder needs to fix, if STATUS != PASS>
|
||||
RELATED_FLOW_CHECKS:
|
||||
- <nearby flow exercised>: <result>
|
||||
```
|
||||
|
||||
Memory recording duty:
|
||||
@@ -105,4 +114,4 @@ Infrastructure unavailability:
|
||||
|
||||
- **If the test suite cannot run** (e.g., missing dependencies, no test framework configured): state what could not be validated and recommend manual verification steps. Never claim testing is "passed" when no tests were actually executed.
|
||||
- **If the dev server cannot be started** (e.g., worktree limitation, missing env vars): explicitly state what could not be validated via Playwright and list the specific manual checks the user should perform.
|
||||
- **Never perform "static source analysis" as a substitute for real testing.** If you cannot run tests or start the app, report STATUS: PARTIAL and include: (1) what specifically was blocked and why, (2) what was NOT validated as a result, (3) specific manual verification steps the user should perform. The lead agent treats PARTIAL as a blocker — incomplete validation is never silently accepted.
|
||||
- **Never perform "static source analysis" as a substitute for real testing.** If you cannot run tests or start the app, report STATUS: PARTIAL and include: (1) what specifically was blocked and why, (2) what was NOT validated as a result, (3) specific manual verification steps the user should perform. The lead agent treats PARTIAL as a blocker — incomplete validation is never silently accepted.
|
||||
|
||||
Reference in New Issue
Block a user