@soleur/opencode 3.407.2 → 3.407.3
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
|
@@ -371,4 +371,5 @@ NEVER CODE! Just research and write the plan.
|
|
|
371
371
|
- **A plan that adds a rule to a gate which reads text another interpreter will expand (a Bash PreToolUse hook, a CI shell lint) must list that interpreter's whole expansion and quoting set first, and close each class in one place rather than deny-listing spellings.** For bash: brace, tilde, parameter/`$[…]`, command, process substitution, pathname/extglob, backslash and `$'…'` quoting, and the target tool's own argv parsing (git long-option prefixes, commit pathspecs). Brief the first fix-round security seat to sweep that whole list, not to find one more instance. **Why:** #12806 — seven fix rounds each found the next form the cron hook read differently from bash; see `knowledge-base/project/learnings/2026-11-16-seven-fix-rounds-each-found-the-next-bash-expansion-the-hook-read-differently.md`.
|
|
372
372
|
- **A test scenario that checks a discriminator with a live stand-in must keep the production filter and vary only the data. Never invert the filter.** Swapping `= 'Object'` for `= 'String'` measures a different predicate over the rows that do match it. Conjoin the production filter with an impossible clause to get the empty-window value, and use a split count (`countIf` in ClickHouse, `COUNT(*) FILTER (WHERE …)` in Postgres) to show what the discriminator excludes. **Why:** #12726/PR #12865 — the inverted stand-in window held 42 string rows and read value 0 where the plan expected 1. See `knowledge-base/project/learnings/2026-11-18-the-guard-lexer-kept-desyncing-until-the-guarded-file-was-confined-to-the-subset-it-models.md`.
|
|
373
373
|
- **An acceptance criterion that says "additions only" / "no `-` line" must be checked against every edit the plan itself prescribes in that file: an in-cell table append or an in-field frontmatter change is a one-line rewrite, so `git diff` shows a `-` line and the AC is unsatisfiable as written.** Write the carve-out into the AC by naming each rewritten line's content anchor (the table row's first cells, the frontmatter key), with the exact grep that drops only those lines, e.g. `git diff -U0 origin/main...HEAD -- <file> | grep -E '^-' | grep -vE '^--- (a/|/dev/null)' | grep -vF '<row anchor>'` printing nothing. Do not state it as "the `-` line is a prefix of its `+` line": a table row's closing pipe (space then `|`) and a replaced frontmatter value both break that. Do not match `^-[^-]` either: it misses a deleted `- item` line, which the diff shows as `-- item`. **Why:** #12742/PR #12884 — AC7 forbade any `-` line while Phase 4 step 2 prescribed an in-cell append to the runbook's #10538 row; the task was ticked anyway and review flagged it. See `knowledge-base/project/learnings/2026-11-18-an-ac-that-contradicts-the-prescribed-edit.md`.
|
|
374
|
+
- **A plan that adds agent-prompt text on a degraded path must check each clause against the tool list the SDK receives on that path, and must prescribe its positive (`toContain`) asserts on that section's body, not the whole prompt; absence asserts may read the whole prompt.** Read `mcpServers`/`allowedTools`/`disallowedTools` where the prompt is built, not only the sibling prompt text; and grep every fragment you prescribe for `toContain` against the base prompt, because a composite prompt already carries common words. **Why:** #12598/PR #12957 — "no GitHub claim" left the agent told it had no web access while its `github_*` read tools stayed registered, and `toContain("failed to start")` matched `BASH_UNAVAILABLE_PROMPT_DIRECTIVE`, so a body-gutting mutation stayed green. See `knowledge-base/project/learnings/2026-11-19-a-prompt-line-is-a-claim-about-the-tool-list-and-its-asserts-must-read-its-own-body.md`.
|
|
374
375
|
- **A plan that revokes a grant (a toggle-off, a consent withdrawal, a token revoke) must list every await between the point where the grant is READ and the point where the resource is REGISTERED, and every path that tears the resource down. The revocation check (an epoch, a flag) is read at the grant read, not at the start of the spawn helper. Every abort sets the revoked state, and every new attempt clears it.** **Why:** #12585/PR #12897 — the R4 epoch was read inside `spawnEgressForwarder`, which missed about 22 dispatcher awaits (the repo clone included). Aborts during the gateway probe were never marked, a stale mark hid a real spawn failure, and the warm re-resolve's teardown never marked. A targeted fix round found all four. See `knowledge-base/project/learnings/2026-11-18-a-revocation-fix-closed-the-window-i-named-not-the-windows-between-grant-read-and-register.md`.
|