opencode-swarm 7.77.3 → 7.77.5
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/.opencode/skills/swarm-pr-feedback/SKILL.md +8 -0
- package/dist/cli/index.js +770 -695
- package/dist/commands/registry.d.ts +109 -0
- package/dist/commands/tool-policy.d.ts +2 -2
- package/dist/index.js +1084 -916
- package/package.json +1 -1
|
@@ -42,6 +42,14 @@ final state. Expect N rounds of review for N pushes, and budget for it.
|
|
|
42
42
|
defense-in-depth rationale comment rather than continue to debate. One extra
|
|
43
43
|
condition is cheap; per-round debate is expensive. Document the parent-vs-inner
|
|
44
44
|
relationship inline so future readers see the rationale.
|
|
45
|
+
**When not to apply 3-strikes:** If the suggested fix would add incorrect,
|
|
46
|
+
misleading, or redundant code — e.g., an outer guard that already exists at an
|
|
47
|
+
inner scope and whose addition would imply the inner guard is absent, a type
|
|
48
|
+
narrowing that masks a real error class, or a check whose presence asserts a
|
|
49
|
+
false invariant — do not add the change. A wrong fix embedded in the code is
|
|
50
|
+
harder to remove than a repeated rebuttal in a comment thread. Apply item 6's
|
|
51
|
+
"surface to user" path instead, with the cumulative evidence that the fix
|
|
52
|
+
direction is incorrect.
|
|
45
53
|
4. **Verify bot fix-direction suggestions against actual file structure.** Bots
|
|
46
54
|
read files linearly and can miss parent-block guards. For any "add an X check"
|
|
47
55
|
suggestion, read the surrounding function/block to confirm the check is genuinely
|