safeword 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -138,15 +138,37 @@ Before starting Phase 1, create or open a work log:
|
|
|
138
138
|
- [ ] No hardcoded/mock values
|
|
139
139
|
- [ ] Committed
|
|
140
140
|
|
|
141
|
+
### Verification Gate
|
|
142
|
+
|
|
143
|
+
**Before claiming GREEN:** Evidence before claims, always.
|
|
144
|
+
|
|
145
|
+
```text
|
|
146
|
+
✅ CORRECT ❌ WRONG
|
|
147
|
+
───────────────────────────────── ─────────────────────────────────
|
|
148
|
+
Run: npm test "Tests should pass now"
|
|
149
|
+
Output: ✓ 34/34 tests pass "I'm confident this works"
|
|
150
|
+
Claim: "All tests pass" "Tests pass" (no output shown)
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**The Rule:** If you haven't run the verification command in this response, you cannot claim it passes.
|
|
154
|
+
|
|
155
|
+
| Claim | Requires | Not Sufficient |
|
|
156
|
+
| ---------------- | ----------------------------- | --------------------------- |
|
|
157
|
+
| "Tests pass" | Fresh test output: 0 failures | "should pass", previous run |
|
|
158
|
+
| "Build succeeds" | Build command: exit 0 | "linter passed" |
|
|
159
|
+
| "Bug fixed" | Original symptom test passes | "code changed" |
|
|
160
|
+
|
|
141
161
|
**Red Flags → STOP:**
|
|
142
162
|
|
|
143
|
-
| Flag
|
|
144
|
-
|
|
|
145
|
-
| "
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
|
149
|
-
|
|
|
163
|
+
| Flag | Action |
|
|
164
|
+
| --------------------------- | -------------------------------------- |
|
|
165
|
+
| "should", "probably" claims | Run command, show output first |
|
|
166
|
+
| "Done!" before verification | Run command, show output first |
|
|
167
|
+
| "Just in case" code | Delete it |
|
|
168
|
+
| Multiple functions | Delete extras |
|
|
169
|
+
| Refactoring | Stop - that's Phase 3 |
|
|
170
|
+
| Test still fails | Debug (→ systematic-debugger if stuck) |
|
|
171
|
+
| Hardcoded value | Implement real logic (see below) |
|
|
150
172
|
|
|
151
173
|
### Anti-Pattern: Mock Implementations
|
|
152
174
|
|