@soleur/opencode 3.389.1 → 3.389.2
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
|
@@ -354,3 +354,5 @@ NEVER CODE! Just research and write the plan.
|
|
|
354
354
|
- **A plan that waives, skips or reorders a gate step must grep for downstream steps whose own skip rests on "because X ran".** A sibling script's comment-level assumption (`grok-fidelity-gate.sh` skipping the AGENTS rule-budget lint because the affected gate ran test-all) silently loses coverage when X is waived, and the banner still says the other steps passed. **Why:** #12294 — found by one architecture seat, missed by design, plan review and the CTO ruling. See `knowledge-base/project/learnings/2026-11-07-a-waived-gate-step-took-a-sibling-steps-skip-optimization-with-it.md`.
|
|
355
355
|
|
|
356
356
|
- **A plan sentence about an open sibling PR (its base, its diff, its counts) is a time-stamped observation: re-read it with `gh` at every re-sync and write the date next to it.** A cleanup PR that waits in review also owes every pinned count to a full suite run on the merged tree after each `origin/main` move. **Why:** #12306 — "#12292 is on a pre-retirement base" was wrong when written, and the PR merged mid-review; main moved three more times before the push. See `knowledge-base/project/learnings/workflow-patterns/2026-11-07-a-cleanup-pr-owes-its-counts-to-the-merged-tree-and-its-premises-to-a-fresh-read.md`.
|
|
357
|
+
|
|
358
|
+
- **A suite ledger's per-site cost is ARM cost (pristine + every mutant rep + the give_up boundary), not pristine cost — measure the pristine site before prescribing fixture surgery.** When the arm is expensive and pristine is cheap, the pathology is mutant-side runaway and the remedy is pacing (per-scan give_up that returns over-bound, cheapest-condemner ordering, a shrink-only per-invocation timeout), never smaller fixtures, which cut coverage to treat a cost the SUT never had. The same rule covers every bound a ruling asserts: derive caps/floors from a measured pristine rate, not arithmetic — a `12*len+5000` line-event cap was one event under pristine `hb`'s measured 485,001 events at 40,000 bytes (12.125/byte) and would have condemned the pristine run. **Why:** #12016/PR #12419 — `row_scan_ops` reported 47.3 s site cost; pristine was ~4.8 s. See `knowledge-base/project/learnings/performance-issues/mutant-side-runaway-read-as-pristine-site-cost-ci-replay-20261108.md`.
|
|
@@ -88,3 +88,5 @@ already carries — see
|
|
|
88
88
|
- **A suite deferred to a later phase is the suite the current edit needs.** When a task list schedules "run the named suites directly" but delegates one file's own suite to a later pipeline phase (affected-run delegation), re-check the deferred set against the files actually edited before moving on — `bash -n` plus green sibling suites cannot see a semantic break (a `#` line interposed inside a `\`-continuation splits the command; the file's argv-shape rows are what catch it). Run the edited file's suite WITH the edit, or record the gap in the deviation note so the next phase knows it is uncovered. **Why:** PR #11735 (#11553) — the exemption comment inside a curl continuation silently killed the Sentry cross-check while `anthropic-admin-key-6297.test.sh` sat deferred; shellcheck SC2215 caught it in review. See `knowledge-base/project/learnings/2026-10-31-a-comment-inside-a-backslash-continuation-splits-the-command-the-fold-thought-was-one.md`.
|
|
89
89
|
|
|
90
90
|
- **A bash regex RANGE follows the locale, and a probe that tests a LINE must prove the token is absent from that line's prose.** `[[ x =~ ^[0-9a-f]{40}$ ]]` accepted 39 hex digits plus an accented letter under `LC_ALL=en_US.utf8` (bash 5.3) and rejected it under `C`/`C.UTF-8`: pin `LC_ALL=C` function-locally for any security-relevant validation and fixture a non-ASCII letter under a collating locale (a mutant that deletes the pin is killable only where that locale exists, so fail rather than skip on CI). A follow-through probe grepping a command line for `headSha` returned PASS on the unfixed tree because the same line carries the prose "by headSha/createdAt": parse the `--json` field list, require exactly one matching line, and run the probe once against the real file expecting the UNFIXED verdict plus a lookalike and a decoy-comment fixture. **Why:** #12320/PR #12350 — see `knowledge-base/project/learnings/2026-11-08-a-locale-ordered-regex-range-and-a-probe-that-matched-the-prose-on-its-own-line.md`.
|
|
91
|
+
|
|
92
|
+
- **When a verification's VERDICT is the deliverable, do not bound its wall — a timeout kill is `unknown`, never pass or fail.** A `ratchet`/suite verify re-run under a self-imposed `timeout`/bounded exec was killed at 120 s mid-run and could have been misread either direction; re-run unbounded and let it finish. Bound the SUT's per-invocation calls (a `REPLAY_SUT_TIMEOUT`-style knob), never the verification harness itself. **Why:** PR #12419 — see `knowledge-base/project/learnings/performance-issues/mutant-side-runaway-read-as-pristine-site-cost-ci-replay-20261108.md` session error 4.
|