@soleur/opencode 3.357.3 → 3.357.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.357.3",
3
+ "version": "3.357.5",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -4,7 +4,7 @@ Census date: 2026-10-21. Corpus definition (enforced by `test/manifest.test.sh`,
4
4
  which re-derives this set from `git ls-files` — a new member with no row here is a
5
5
  CI failure):
6
6
 
7
- - `.claude/hooks/**/*.sh`, excluding `*.test.sh` and files under `/test/` — **56 files**.
7
+ - `.claude/hooks/**/*.sh`, excluding `*.test.sh` and files under `/test/` — **57 files**.
8
8
  - `scripts/lint-*`, excluding `*.test.sh`, `*.baseline.txt`, `*.highwater*` — **47 files**.
9
9
 
10
10
  ## Verdicts
@@ -15,7 +15,7 @@ CI failure):
15
15
  | `generic-after-extraction` | The *guard idea* is repo-generic but the file carries couplings (incident machinery, shared libs, Soleur paths or rule ids) that dead-reference in a user repo. Shippable only as a template. |
16
16
  | `soleur-coupled` | The guard's *purpose* is Soleur's: it enforces a Soleur rule id, a Soleur corpus path, a vendor in Soleur's stack, or Soleur telemetry/workflow machinery. Not shipped. |
17
17
 
18
- **Counts:** hooks — 0 generic / 10 generic-after-extraction / 47 soleur-coupled.
18
+ **Counts:** hooks — 0 generic / 10 generic-after-extraction / 48 soleur-coupled.
19
19
  lints — 9 generic / 8 generic-after-extraction / 30 soleur-coupled.
20
20
 
21
21
  The canonical emit pair `plugins/soleur/scripts/precommit-guard.sh` +
@@ -26,7 +26,7 @@ source the v1 `commit-on-main` guard emits near-verbatim. Likewise
26
26
  guard extracts its `block-stash-in-worktrees` arm (guardrails.sh:471) as a
27
27
  template rather than shipping the monolith.
28
28
 
29
- ## Census — `.claude/hooks/` (56)
29
+ ## Census — `.claude/hooks/` (58)
30
30
 
31
31
  | File | Verdict | Rationale |
32
32
  |---|---|---|
@@ -41,7 +41,7 @@ template rather than shipping the monolith.
41
41
  | `doppler-secrets-delete-redirect.sh` | soleur-coupled | Doppler vendor redirect. |
42
42
  | `durable-reminder-prefer-inngest.sh` | soleur-coupled | Inngest vendor preference in Soleur's app stack. |
43
43
  | `follow-through-directive-gate.sh` | soleur-coupled | Soleur follow-through directive machinery. |
44
- | `git-commit-secret-scan.sh` | generic-after-extraction | **v1 `secret-scan` source.** Couplings: `lib/hook-input.sh`, `incidents.sh` emits, `jq`, the repo `.gitleaks.toml`; the staged-scan predicate and colour pins are repo-generic. |
44
+ | `git-commit-secret-scan.sh` | generic-after-extraction | **v1 `secret-scan` source.** Couplings: `lib/hook-input.sh`, `incidents.sh` emits, `jq`, the repo `.gitleaks.toml`; the staged-scan predicate and colour pins are repo-generic. **Known divergences from source (the emitted template self-contains its parse and will not follow the source):** it lacks the #10609 commit-target resolution and the #10696 would-be index (`lib/commit-index-sim.sh`), so a command that stages and commits in ONE call (`git add ... && git commit`, `commit -a` / `-am`, `commit -- <path>`) is not covered in a user repo; stage in a separate call. Porting both is tracked in the #10696 follow-up. |
45
45
  | `grep-rewrite.sh` | soleur-coupled | Neutralizes one observed ugrep `grep` shim — environment remediation, not a general guard (ADR-162). |
46
46
  | `guardrails.sh` | soleur-coupled | Monolith wired to `lib/freeze-lock.sh` + `incidents.sh` + the Soleur rule corpus. Its `block-stash-in-worktrees` arm (:471) is extracted as v1 `block-stash`; its `block-commit-on-main` arm delegates to `precommit-guard.sh`, which v1 emits instead. `block-rm-rf` arms (:185, :200) stay v2 — they read `lib/freeze-lock.sh` state and are not self-contained. |
47
47
  | `iac-plan-write-guard.sh` | soleur-coupled | Enforces `hr-all-infrastructure-provisioning` on Soleur plan/spec files. |
@@ -52,7 +52,8 @@ template rather than shipping the monolith.
52
52
  | `lib/hook-tool-kind.sh` | generic-after-extraction | Devin→Claude tool-kind map (#8205) — harness-generic, not Soleur-domain (v2). |
53
53
  | `lib/incidents.sh` | soleur-coupled | The `emit_incident` sink — the corpus's named coupling; emitted guards strip its calls. |
54
54
  | `lib/log-rotation.sh` | generic-after-extraction | `.claude/*.jsonl` rotation util; logic portable, callers Soleur telemetry sinks (v2). |
55
- | `lib/commit-target-roots.sh` | soleur-coupled | Commit-target argv walker for `git-commit-secret-scan.sh` (#10609) — depends on `plugins/soleur/hooks/lib/shell-argv.pl`, the repo's hardened lexer; the emitted `secret-scan` template self-contains its parse instead. |
55
+ | `lib/commit-target-roots.sh` | soleur-coupled | Commit-target argv walker for `git-commit-secret-scan.sh` (#10609) — depends on `plugins/soleur/hooks/lib/shell-argv.pl`, the repo's hardened lexer; the emitted `secret-scan` template self-contains its parse instead. Since #10696 it also outputs the staging facts `CTR_COMMIT_STAGES`, `CTR_STAGE_OPAQUE`, `CTR_STAGE_REFUSE`, `CTR_STAGE_UNSIMULABLE`, the parallel arrays `CTR_ADD_EXACT` / `_FORCE` / `_LIT` / `_NW` / `_OFF` / `_OWNC` with `CTR_ADD_ARGV`, `CTR_COMMIT_ALL`, `CTR_COMMIT_PATHS`, `CTR_COMMIT_OWN_C` and `CTR_STAGE_CD_FIRST` (the canonical text dump of these facts lives in the test suite, not here). |
56
+ | `lib/commit-index-sim.sh` | soleur-coupled | Builds the would-be index (a temp copy of the real index with the command's own staging replayed) for `git-commit-secret-scan.sh` (#10696); depends on the `CTR_*` facts from `lib/commit-target-roots.sh`, which depend on `plugins/soleur/hooks/lib/shell-argv.pl`. Policy-free, so the brand-hex gate can reuse it (#10793). Not shipped. |
56
57
  | `lib/monitor-sig.sh` | soleur-coupled | Monitor-ledger signature shared by the two monitor hooks. |
57
58
  | `lib/technical-fork-cues.sh` | soleur-coupled | Cue vocabulary for `hr-technical-fork-is-not-an-operator-question`. |
58
59
  | `lib/test-incident-sandbox.sh` | soleur-coupled | Test sandbox for `incidents.sh`. |
@@ -2,6 +2,11 @@
2
2
  # secret-scan.sh — PreToolUse hook emitted by soleur:verification-scaffold.
3
3
  # Scans the staged index for secret-shaped strings (PEM bodies, vendor tokens,
4
4
  # cloud keys) via gitleaks and reports before a `git commit` tool call lands.
5
+ # It reads the index as it is BEFORE the command runs, so a command that stages
6
+ # AND commits in one call is NOT covered: `git add ... && git commit`,
7
+ # `git commit -a` / `-am`, and `git commit -- <path>`. Stage in a separate call
8
+ # (`git add <paths>`, or `git add -u` instead of `-a`), then run a plain
9
+ # `git commit`.
5
10
  #
6
11
  # MODE=@MODE@ — stamped at emit time:
7
12
  # advisory (the installed default): real findings surface as `ask`; tool
@@ -49,7 +49,11 @@ is pruned (a file that held only this block is removed).
49
49
  `gitleaks/gitleaks-action`.
50
50
  - The secret-scan hook needs `gitleaks` on PATH to run locally (8.24.x
51
51
  recommended); without it the hook warns and allows (advisory) — the CI job
52
- still scans every PR.
52
+ still scans every PR. The hook scans the staged index as it is before the
53
+ command runs, so a command that stages and commits in one call is not
54
+ covered: `git add ... && git commit`, `git commit -a` / `-am` and
55
+ `git commit -- <path>`. Stage in a separate call (`git add <paths>`, or
56
+ `git add -u` instead of `-a`), then run a plain `git commit`.
53
57
  - `.claude/settings.json` hook entries serve Claude-Code-compatible agent
54
58
  sessions; the workflow is the floor for everyone else.
55
59
  <!-- verification-scaffold:readme:end -->