You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Register testing discipline as merged during updates
- Keep project test commands in the local test skill
- Cover upgrade behavior and the watch self-heal contract
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: templates/.agents/skills/watch-pr/reference/monitor-and-heal.en.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,13 @@ After running the watch command from `.agents/rules/pr-checks-commands.md`, clas
12
12
13
13
## Self-Heal Decision Tree
14
14
15
+
```text
16
+
# self-heal-test-command-contract
17
+
primary: failing-job-command
18
+
fallback-source: project-test-skill
19
+
unknown: help
20
+
```
21
+
15
22
For each failing check, decide "self-heal" vs "ask for help" in this order:
16
23
17
24
1.**Can the corresponding CI run be located** (per the rule's "Resolve a failing run id")? No → ask for help.
@@ -22,7 +29,7 @@ For each failing check, decide "self-heal" vs "ask for help" in this order:
22
29
4. When "locatable + code layer + under cap" holds, perform one self-heal:
23
30
- Before fixing, run `git status -s` to record the working tree and ensure only changes related to this failure are included.
24
31
- Locate and make a minimal fix per the logs (touch only code / tests / config related to that failure).
25
-
- Run the relevant tests: prefer the local command for the failing job; otherwise use the project's declared full test command. If neither command is known, ask for help. **Do not commit or push before tests pass.**
32
+
- Run the relevant tests: prefer the local command for the failing job; otherwise read the project`test` skill and select its declared core or full validation command. If neither command is known, ask for help. **Do not commit or push before tests pass.**
26
33
- After tests pass, publish the fix: per `.agents/rules/commit-and-pr.md` stage only the related files (`git add <paths>`, avoid `git add -A` pulling in unrelated changes) → create the fix commit (`git commit`) → `git push` to the current PR branch.
27
34
- Record the fix commit SHA, increment the fix count, and return to SKILL step 2 to re-watch.
28
35
- Never make unrelated "drive-by" optimizations; never loosen / skip the failing assertion to "make it green".
0 commit comments