@soleur/opencode 3.357.0 → 3.357.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.357.0",
3
+ "version": "3.357.1",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -395,6 +395,8 @@ npm ci --ignore-scripts --prefix apps/web-platform # needed by the webplat arm
395
395
 
396
396
  ## Sharp Edges
397
397
 
398
+ - **A worktree attached by hand (`git worktree add` of an existing branch; `create` only makes new branches) has no lease, and a clean pushed worktree without an active lease is reapable by a sibling session's `cleanup-merged`.** Right after the manual add run `bash "${CLAUDE_PLUGIN_ROOT}/scripts/lib/session-state.sh" acquire_lease <branch> <skill> <minutes>` and confirm with `is_lease_active`; a lease is a time-boxed reservation (clamped to 24 h), so re-acquire it after a long pause. Commit and push as you go: a reaped directory loses only what was never committed. #10975 lost a worktree this way mid-gate.
399
+
398
400
  - **A `cd <abs path under the bare root>` from inside a worktree SUCCEEDS, and every command after it reads `main`.** The bare checkout carries the same tree (`apps/web-platform`, `plugins/soleur`, …) as every worktree, so a path written from memory resolves there without error and the suite you run reports on a branch you are not on — measured on #8418: `cd /data/…/soleur/apps/web-platform 2>/dev/null || cd <worktree>/apps/web-platform` took the FIRST arm and `vitest` printed 57/57 about `main`. The only tell is the harness's `# Environment update` notice. Anchor every `cd` on `$PWD` or `git rev-parse --show-toplevel`, never on a remembered absolute; `hr-when-in-a-worktree-never-read-from-bare` has no hook, so the discipline is the guard. **Why:** #8418.
399
401
  - **A git hook running in a LINKED WORKTREE exports `GIT_DIR` and `GIT_INDEX_FILE` as ABSOLUTE
400
402
  paths, and they override a subprocess's `cwd` and `git -C`.** A plain clone exports no
@@ -13,3 +13,7 @@ heuristic list when a reviewed suite derives its input set or generates cases
13
13
  ## generated-input extraction surfaces
14
14
 
15
15
  - **A generated-input (property-style) oracle's coverage is bounded by THREE extraction surfaces, all fail-open — check the extractor's grammar, the extracted members' validity, AND the generator's stream.** The sampled-once rule in the parent list covers a set the test *could* see but only touched once; this is the stronger failure — members (or a whole syntactic class) the instrument structurally cannot see, with every miss reading as green. (a) **Form coverage** — an extractor reading SUT syntax must read every form the SUT's grammar permits, not just the dominant one: `legal-normalise-property.test.sh` first extracted only `s|LHS|` sed rules, leaving all 8 `s/LHS/` rules invisible to the residue oracle they belonged to (31/39 coverage under a green suite). The gate is a census: count the producer's rules independently (`grep -cE` over the same region) and assert equality with the extracted count — a delimiter the extractor cannot read then fails the suite instead of silently shrinking it. (b) **Member validity** — `if grep -qE "$p"` folds grep's rc≥2 (invalid ERE) into the same branch as no-match, so an extracted pattern that does not compile joins the oracle as a permanent no-op; compile-check every extracted member up front and fail on rc>1. (c) **Generator stream** — on bash 3.2 (macOS default, the `scripts/lib/` portability floor) a `x=$(prop_pick ...)` command substitution reads the SAME `$RANDOM` stream position the parent had at fork, so every loop iteration draws the identical value: the generator degenerates to a one-case suite that prints `runs=100` beside `PROP_PASS`. Outvar APIs (`printf -v`) run in-process on both versions; never let a `$RANDOM`-drawing helper's result cross a command-substitution boundary. Ask of any generated-input suite: which surfaces bound its domain — the extractor's grammar, the members' validity, the generator's actual entropy — and what asserts each? **Why:** PR #10624 — (a) and (b) were two-seat P2 review findings on the suite's first draft; (c) was caught at design time and is pinned in `scripts/lib/property-harness.sh`'s "WHY NO ECHO-FORM" header. See `knowledge-base/project/learnings/test-failures/2026-10-20-generated-input-oracle-extraction-window-and-bash-random-outvar.md`.
16
+
17
+ ## order-dependent transforms and narrowed predicates
18
+
19
+ - **A fix that reorders or repeats two string transforms leaks in the neighbouring cell it did not fixture, and a fix that NARROWS a predicate vacates every keep-fixture that relied on the wider match.** After reordering a scrub relative to a strip, generate the cells (every split offset × separator type × separator-before-the-token) and run them through the real engine instead of two hand fixtures: `vector vrl --input <file of many JSON lines>` runs hundreds of cases in one container start. After anchoring or tightening a matcher, re-derive each keep-fixture's input against the NEW predicate and mutate the condition the fixture claims to pin (here two "keeps another unit's line" fixtures lost their `LOG5[n]:` prefix relevance, so deleting the unit scope stayed green). **Why:** #10975 — an ordering fix for a Doppler-token rule leaked a token behind a newline, its double-pass fix leaked a tail after a late split, and both were found by seats, not by the author's checks. See `knowledge-base/project/learnings/2026-10-25-my-ordering-fix-for-a-scrub-rule-leaked-in-the-case-i-did-not-fixture.md`.