@soleur/opencode 3.384.9 → 3.384.10
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 +1 -1
- package/scripts/grok-pre-push-gate.sh +2 -2
- package/skills/constraint-scaffold/test/parity.test.sh +64 -17
- package/skills/drain-prs/SKILL.md +2 -2
- package/skills/model-launch-review/SKILL.md +2 -2
- package/skills/plan/SKILL.md +1 -1
- package/skills/ship/SKILL.md +2 -2
- package/skills/ship/references/adr-ordinal-collision.md +2 -2
- package/skills/ship/references/settle-then-admin-merge.md +1 -1
- package/skills/verification-scaffold/references/guardrail-audit.md +3 -2
package/package.json
CHANGED
|
@@ -174,7 +174,7 @@ else
|
|
|
174
174
|
echo "SKIP rule-body-lint (no origin/main ref)"
|
|
175
175
|
fi
|
|
176
176
|
|
|
177
|
-
# lockfile-sync (ci.yml): regenerate under npm@11 and diff; restore on failure.
|
|
177
|
+
# lockfile-sync (ci.yml `guards-ruleset` member): regenerate under npm@11 and diff; restore on failure.
|
|
178
178
|
step "lockfile-sync"
|
|
179
179
|
if command -v npm >/dev/null 2>&1; then
|
|
180
180
|
npm_major="$(npm --version | cut -d. -f1)"
|
|
@@ -224,7 +224,7 @@ else
|
|
|
224
224
|
echo "SKIP web-platform-build (--skip-build)"
|
|
225
225
|
fi
|
|
226
226
|
|
|
227
|
-
# --- Phase 4: Grok fidelity (
|
|
227
|
+
# --- Phase 4: Grok fidelity (the `grok-fidelity` member of the `guards-ruleset` required check) ---
|
|
228
228
|
export GROK_FIDELITY_SKIP_BUDGET=1
|
|
229
229
|
run_step "grok-fidelity-gate" bash plugins/soleur/scripts/grok-fidelity-gate.sh
|
|
230
230
|
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
# The dependency-cruiser config and the shared runner are emitted as
|
|
5
5
|
# BYTE-IDENTICAL copies of the skill's templates; the CI workflow is a single
|
|
6
6
|
# `sed __TARGET_DIR__ -> apps/web-platform` substitution of the workflow
|
|
7
|
-
# template; and the repo-root dogfood gate lives folded as `
|
|
8
|
-
#
|
|
7
|
+
# template; and the repo-root dogfood gate lives folded as the `constraint-gates*`
|
|
8
|
+
# member steps of `jobs.quality-advisory` inside
|
|
9
|
+
# `.github/workflows/pr-quality-guards.yml` (#8902, member-folded under #12089) — structurally compared to the template job. ANY edit to a template
|
|
9
10
|
# MUST be mirrored into every emitted copy (and vice-versa), or the gate Soleur
|
|
10
11
|
# ships diverges from the gate Soleur tests. This test fails loud on any drift.
|
|
11
12
|
#
|
|
@@ -72,31 +73,77 @@ else
|
|
|
72
73
|
fi
|
|
73
74
|
|
|
74
75
|
# 4. The folded repo-root gate == the template's constraint-gates job. Since
|
|
75
|
-
# #8902 the dogfood instance lives
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
#
|
|
76
|
+
# #8902 the dogfood instance lives inside `.github/workflows/pr-quality-guards.yml`
|
|
77
|
+
# (the standalone root file was folded into the shared PR-gates workflow), and
|
|
78
|
+
# since #12089 as the `constraint-gates*` member-step block of
|
|
79
|
+
# `jobs.quality-advisory` (the standalone job was folded into the advisory
|
|
80
|
+
# umbrella). Structural compare: the umbrella job's own checkout stands in
|
|
81
|
+
# for the folded job's checkout step (same action pin and fetch-depth; extra
|
|
82
|
+
# `with:` keys like persist-credentials are fold additions), and each member
|
|
83
|
+
# step is compared to its template step after undoing the fold — the
|
|
84
|
+
# `constraint-gates-` id prefix (`changed` -> `constraint-gates-changed`) and
|
|
85
|
+
# the `${{ !cancelled() }}` member-standard `if:`.
|
|
80
86
|
strip_body() { grep -vE '^[[:space:]]*#' | grep -vE '^[[:space:]]*$' || true; }
|
|
81
87
|
D="$(python3 - "$SUBST" "$REPO_ROOT/.github/workflows/pr-quality-guards.yml" <<'PY' 2>&1 || true
|
|
82
|
-
import sys, yaml
|
|
88
|
+
import sys, yaml, re, difflib
|
|
83
89
|
tmpl = yaml.safe_load(sys.argv[1])["jobs"]["constraint-gates"]
|
|
84
|
-
root = yaml.safe_load(open(sys.argv[2]))["jobs"]["
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
90
|
+
root = yaml.safe_load(open(sys.argv[2]))["jobs"]["quality-advisory"]
|
|
91
|
+
problems = []
|
|
92
|
+
|
|
93
|
+
# the umbrella job's own checkout stands in for the folded job's checkout step
|
|
94
|
+
tco, rco = tmpl["steps"][0], root["steps"][0]
|
|
95
|
+
if rco.get("uses") != tco.get("uses"):
|
|
96
|
+
problems.append("umbrella checkout uses %r != template %r" % (rco.get("uses"), tco.get("uses")))
|
|
97
|
+
if (rco.get("with") or {}).get("fetch-depth") != (tco.get("with") or {}).get("fetch-depth"):
|
|
98
|
+
problems.append("umbrella checkout fetch-depth %r != template %r"
|
|
99
|
+
% ((rco.get("with") or {}).get("fetch-depth"), (tco.get("with") or {}).get("fetch-depth")))
|
|
100
|
+
|
|
101
|
+
# every member step carries the constraint-gates id prefix, in file order
|
|
102
|
+
mem = [s for s in root["steps"]
|
|
103
|
+
if str(s.get("id", "")) == "constraint-gates" or str(s.get("id", "")).startswith("constraint-gates-")]
|
|
104
|
+
tsteps = tmpl["steps"][1:]
|
|
105
|
+
if len(mem) != len(tsteps):
|
|
106
|
+
problems.append("member census: %d constraint-gates* steps in quality-advisory != %d template steps"
|
|
107
|
+
% (len(mem), len(tsteps)))
|
|
108
|
+
norm_mem = []
|
|
109
|
+
for ts, ms in zip(tsteps, mem):
|
|
110
|
+
ms = dict(ms)
|
|
111
|
+
if ms.get("name") != ts.get("name"):
|
|
112
|
+
problems.append("member step %r order/name diverges from template step %r" % (ms.get("name"), ts.get("name")))
|
|
113
|
+
mid = ms.pop("id", None)
|
|
114
|
+
if ts.get("id") == "changed":
|
|
115
|
+
# the fold renamed the detect step's id to constraint-gates-changed and gave
|
|
116
|
+
# the previously unconditional step the member-standard ${{ !cancelled() }}
|
|
117
|
+
if mid != "constraint-gates-changed":
|
|
118
|
+
problems.append("detect member id %r != 'constraint-gates-changed'" % mid)
|
|
119
|
+
ms["id"] = "changed"
|
|
120
|
+
if ms.get("if") == "${{ !cancelled() }}":
|
|
121
|
+
ms.pop("if")
|
|
122
|
+
else:
|
|
123
|
+
problems.append("detect member if: %r is not the fold-standard ${{ !cancelled() }}" % ms.get("if"))
|
|
124
|
+
else:
|
|
125
|
+
m = re.fullmatch(r"\$\{\{ !cancelled\(\) && (.*) \}\}", str(ms.get("if", "")))
|
|
126
|
+
if m:
|
|
127
|
+
ms["if"] = m.group(1).replace("steps.constraint-gates-changed", "steps.changed")
|
|
128
|
+
else:
|
|
129
|
+
problems.append("member step %r if: %r is not the ${{ !cancelled() && ... }} fold shape"
|
|
130
|
+
% (ms.get("name"), ms.get("if")))
|
|
131
|
+
norm_mem.append(ms)
|
|
132
|
+
|
|
133
|
+
a = yaml.safe_dump(tsteps, sort_keys=True)
|
|
134
|
+
b = yaml.safe_dump(norm_mem, sort_keys=True)
|
|
88
135
|
if a != b:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"template.jobs.constraint-gates", "pr-quality-guards.jobs.constraint-gates",
|
|
136
|
+
problems.append("\n".join(difflib.unified_diff(a.splitlines(), b.splitlines(),
|
|
137
|
+
"template.jobs.constraint-gates.steps[1:]", "pr-quality-guards.jobs.quality-advisory.constraint-gates*",
|
|
92
138
|
lineterm="")))
|
|
139
|
+
print("\n".join(problems))
|
|
93
140
|
PY
|
|
94
141
|
)"
|
|
95
142
|
cases=$((cases + 1))
|
|
96
143
|
if [[ -z "$D" ]]; then
|
|
97
|
-
pass "
|
|
144
|
+
pass "constraint-gates* member steps of quality-advisory in pr-quality-guards.yml == substituted template job"
|
|
98
145
|
else
|
|
99
|
-
fail "
|
|
146
|
+
fail "constraint-gates* member steps of quality-advisory DIVERGE from template job"
|
|
100
147
|
printf '%s\n' "$D" | sed 's/^/ /'
|
|
101
148
|
fi
|
|
102
149
|
|
|
@@ -62,7 +62,7 @@ The helper runs `gh pr list --state open --json number,title,headRefName,isDraft
|
|
|
62
62
|
| Tier | Signal | Default handling |
|
|
63
63
|
|------|--------|------------------|
|
|
64
64
|
| `ready-green` | `mergeable=MERGEABLE`, no failing/pending checks | merge directly |
|
|
65
|
-
| `needs-lockfile-fix` | deps PR (`labels` has `dependencies`) failing `lockfile-sync` / `test-webplat` / `e2e` on a frozen-install step | fix-recipe (a) → merge |
|
|
65
|
+
| `needs-lockfile-fix` | deps PR (`labels` has `dependencies`) failing `guards-ruleset` (its `lockfile-sync` member) / `test-webplat` / `e2e` on a frozen-install step | fix-recipe (a) → merge |
|
|
66
66
|
| `needs-conflict-resolution` | `mergeable=CONFLICTING`, few/no other failures | fix-recipe (b) → merge |
|
|
67
67
|
| `needs-review` | `bot-fix/review-required` label, or a feature PR with no review | review (delegate or inline) → merge |
|
|
68
68
|
| `ready-unarmed` | ready PR whose head verdict (`ci-head-verdict.sh`) is `no-run` or `stalled`: no full CI run exists, the red `test` row is the draft run's. `awaiting-approval` is not here: it lands in `needs-review` (the line shows `ci=awaiting-approval`; a maintainer must approve the fork run) | **recover, never arm**, unless another session is still inside `wait-ready-run` for it: `gh pr ready --undo <N>`, then the whole ready block ([ready-run-wait.md](${CLAUDE_PLUGIN_ROOT}/skills/ship/references/ready-run-wait.md)), then re-triage |
|
|
@@ -105,7 +105,7 @@ See `knowledge-base/project/learnings/workflow-patterns/2026-06-30-update-branch
|
|
|
105
105
|
npx --yes npm@11 install --package-lock-only # package-lock.json — npm@11 ONLY
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
The `lockfile-sync` CI
|
|
108
|
+
The `lockfile-sync` member of the `guards-ruleset` CI umbrella pins **npm@11**; regenerating `package-lock.json` with local npm produces a divergent shape and fails the gate. On a lockfile **merge conflict**, resolve by regenerating (`git checkout --ours -- <lockfiles>` then re-run), not by hand-picking hunks.
|
|
109
109
|
- **(b) Generated-file conflicts.** Since #8377 / ADR-235 exactly one generated artifact is still committed: `knowledge-base/engineering/architecture/diagrams/model.likec4.json` (the KB index trio and `rule-metrics.json` are untracked caches and cannot conflict). Resolve it with `bash "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-regenerable-conflicts.sh" origin/main`, which completes the merge and regenerates from the MERGED sources; do NOT hand-merge conflict markers in a generated artifact, and do NOT side-pick (`--ours`/`--theirs` each yield an artifact matching neither side's sources). The same holds for a HAND-AUTHORED file whose conflict sits beside clean hunks: `git checkout --theirs <file>` takes that side's WHOLE file and silently drops the other side's non-conflicting edits (#9134, `model.c4`); `git checkout -m <file>` recreates the markers so only the conflicting hunk is resolved.
|
|
110
110
|
- **(c) Stale bot PR (especially crons).** Rebase first (`gh pr update-branch`) to re-validate against current `main` — an old green predates current gates — except an armed PR on a merge-queue repo, which the queue makes current itself (see the armed-on-a-merge-queue-repo bullet above; never `update-branch` it). Then check for a hallucinated substrate API (`tsc --noEmit`) and missing registration locations per **ADR-033 §Registration checklist** (the canonical list of every gated location for a new `cron-*` function). Mirror the structurally-closest live twin signature-for-signature rather than the PR's prose.
|
|
111
111
|
|
|
@@ -129,7 +129,7 @@ Only item 1 is applied by `--fix`. Items 2–7 are reported in the PR body for a
|
|
|
129
129
|
(#1174) rejects a fresh resolution with `ETARGET … with a date before <date>`. Waiving it is
|
|
130
130
|
an operator decision; when waived, regenerate with a one-off `--min-release-age=0` (below) and
|
|
131
131
|
leave `.npmrc` untouched. > **Corrected 2026-09-23 (#8601):** this passage said CI's
|
|
132
|
-
`lockfile-sync` re-run makes such a PR red regardless. Measured on npm 11.19.0: once the
|
|
132
|
+
a `lockfile-sync` member re-run inside `guards-ruleset` makes such a PR red regardless. Measured on npm 11.19.0: once the
|
|
133
133
|
lockfile pins the version, `npm install --package-lock-only` under the floor exits 0 and
|
|
134
134
|
leaves the lockfile unchanged, and `npm ci` installs it — the floor gates new resolution,
|
|
135
135
|
not an already-locked version.
|
|
@@ -233,7 +233,7 @@ change" trigger never fired when Fable 5 shipped. The cron files an issue, never
|
|
|
233
233
|
<3 days old and `apps/web-platform/.npmrc` sets `min-release-age=3`, so
|
|
234
234
|
regenerate with an explicit override:
|
|
235
235
|
`cd apps/web-platform && npx --yes npm@11 install --package-lock-only --min-release-age=0`.
|
|
236
|
-
CI's `lockfile-sync`
|
|
236
|
+
CI's `lockfile-sync` member step (in `guards-ruleset`) now covers this directory AND the repo root. Note the
|
|
237
237
|
repo ROOT has no `.npmrc` precisely so that this skill's own
|
|
238
238
|
`npm install -g "@anthropic-ai/claude-code@${CLI_VERSION}"` — an exact pin to a
|
|
239
239
|
same-day release — is not blocked by the floor. See
|
package/skills/plan/SKILL.md
CHANGED
|
@@ -738,7 +738,7 @@ If the plan makes or changes an **architectural decision**, the ADR write and th
|
|
|
738
738
|
|
|
739
739
|
**If detected, the plan MUST emit an `## Architecture Decision (ADR/C4)` section** naming, as in-scope plan tasks:
|
|
740
740
|
|
|
741
|
-
- `### ADR` — the ADR to **create or amend** via `soleur:architecture` (number + one-line decision). New decision → new ADR; divergence from an existing one → amend that ADR's `## Decision` + add to its `## Alternatives Considered`. This is a task in the implementation phases, not a "see also." The chosen ordinal for a NEW ADR is **provisional** — a sibling PR can claim it during the pipeline (a collision surfaces as a red `adr-ordinals` on the PR after a Phase 7 sync —
|
|
741
|
+
- `### ADR` — the ADR to **create or amend** via `soleur:architecture` (number + one-line decision). New decision → new ADR; divergence from an existing one → amend that ADR's `## Decision` + add to its `## Alternatives Considered`. This is a task in the implementation phases, not a "see also." The chosen ordinal for a NEW ADR is **provisional** — a sibling PR can claim it during the pipeline (a collision surfaces as a red `guards-ruleset` required check — its `adr-ordinals` member — on the PR after a Phase 7 sync — and `soleur:ship` catches it earlier at Phase 5.5). `soleur:ship`'s "ADR-Ordinal Collision Gate" re-verifies the next-free ordinal against `origin/main` before merge and after every Phase 7 sync; do not treat the plan-time number as final. **When you DO renumber, sweep the whole feature's artifact set for the old ordinal in the same edit** — `grep -rn 'ADR-<old>' knowledge-base/project/{plans,specs}/feat-<slug>/` — because the renumber otherwise reaches only the ADR body/seed/code while the **plan + tasks + any AC that names the ordinal** keep the stale number (a `` `ADR-<old>-*.md` exists `` AC then verifies a nonexistent file). **Why:** #5945 chose ADR-081 → renumber to ADR-082 (#5952); #5990 collided TWICE in one ~2h pipeline (087→089 at rebase, 089→090 at ship as siblings claimed each free ordinal) and the first renumber left AC12 asserting a nonexistent `ADR-087-*.md` until review caught it (`2026-07-05-adr-renumber-must-sweep-planning-docs-and-scripts-glob-orphan.md`).
|
|
742
742
|
- `### C4 views` — which C4 view(s) (Context / Container / Component) change and how (e.g., "Container: repo connection edge moves from User to Workspace"). **The workflow edits the `.c4` model files DIRECTLY** (via the `architecture` skill / Edit tool, committed in THIS feature's lifecycle — not a separate issue). The `c4-edit` flag (commit `3c8849655`) gates ONLY direct end-user edits in the in-browser webapp editor (`PUT /api/kb/c4`, default OFF); it does **not** gate a workflow and the workflow never routes through that path. Concierge **and** the Claude Code plugin terminal are equally-trusted agent contexts that edit `.c4` on the filesystem and commit — do NOT instruct the implementer to "route the C4 edit through the Concierge."
|
|
743
743
|
|
|
744
744
|
**C4 completeness mandate (load-bearing — no narrow-grep escape hatch).** Before writing the `### C4 views` task (INCLUDING a "no C4 impact" conclusion), you MUST actually READ all three model files — `knowledge-base/engineering/architecture/diagrams/{model.c4,views.c4,spec.c4}` — not a single keyword `grep`. A `grep` for the feature's own noun (e.g. `grep email-triage`) returning zero is **NOT** evidence of "no C4 impact": the relevant elements are frequently the feature's *external actors and systems* (a human role like an inbound email sender; an integration like Resend/Stripe/Twilio; a new data store), which are named by the vendor/role, not the feature. Enumerate, for the feature, EVERY: (a) **external human actor** (who sends/receives data — correspondents, reviewers, end recipients), (b) **external system / vendor** (inbound webhook, outbound API, third-party store), (c) **container/data-store** touched, (d) **actor↔surface access relationship** that changes (e.g. single-owner → workspace-Owner-shared). For each, confirm it is already modeled; if NOT, the `.c4` edit that adds it (element + `#external` tag if outside the boundary + the relationship edges + the `view … include` line in `views.c4` so it RENDERS) is an in-scope plan task. Reviewing all three `.c4` files for *correctness* also means fixing any element description the change falsifies (e.g. a "Solo founder" actor description when the change adds multi-Owner sharing). After editing, run the C4 validation tests (`apps/web-platform/test/c4-code-syntax.test.ts` + `c4-render.test.ts`) — a `view include` that references an undefined element fails there, not at `tsc`. A "no C4 impact" line in the plan MUST cite which actors/systems/relationships were checked and found already-modeled; an unsupported "None" is a reject condition. **The actor/system/relationship rubric does NOT reach the derived CARDINALITIES `model.c4` embeds in edge prose ("…across 10 workflows", "56 monitors"), which `c4-count-parity` gates as required context — so a "no C4 impact" conclusion MUST also be backed by a green `plugins/soleur/test/c4-count-parity.test.sh` run (that is its path — an earlier revision cited `apps/web-platform/test/`, where no such file exists, and #8050's planner concluded the gate was missing), not by reasoning about actors. **Why:** #7826/#7834 — adding the 56th cron monitor and the 12th heartbeat slug moved four counts on the `github -> sentry` edge and reddened the gate in a file the diff never opened.
|
package/skills/ship/SKILL.md
CHANGED
|
@@ -1605,7 +1605,7 @@ Run `echo 'SOLEUR_RULE_APPLIED rule=hr-technical-fork-is-not-an-operator-questio
|
|
|
1605
1605
|
|
|
1606
1606
|
### Merge-Base-Relative Lints (mandatory)
|
|
1607
1607
|
|
|
1608
|
-
**Run every merge-base-relative lint the way its CI job does, and `rule-body-lint` is the one to get wrong.** [scripts/lint-rule-bodies.py](../../../../scripts/lint-rule-bodies.py) with `--check --base HEAD` compares the tree to itself, so its merge-base ack arm is vacuous — only the manifest-hash arm can still fire, which is why a `lint-rule-bodies-live` PASS in the [scripts/test-all.sh](../../../../scripts/test-all.sh) battery is calibration, not the gate. CI passes `--base "$(git merge-base origin/main HEAD)"` (
|
|
1608
|
+
**Run every merge-base-relative lint the way its CI job does, and `rule-body-lint` is the one to get wrong.** [scripts/lint-rule-bodies.py](../../../../scripts/lint-rule-bodies.py) with `--check --base HEAD` compares the tree to itself, so its merge-base ack arm is vacuous — only the manifest-hash arm can still fire, which is why a `lint-rule-bodies-live` PASS in the [scripts/test-all.sh](../../../../scripts/test-all.sh) battery is calibration, not the gate. CI passes `--base "$(git merge-base origin/main HEAD)"` (`ci.yml` `guards-ruleset` member); run that form, and [scripts/lint-skill-body-budget.py](../../../../scripts/lint-skill-body-budget.py) `--base <merge-base>` from the same member block. A base that cannot see the change is not a check of the change. **Why:** PR #8297 — the local run said OK, CI named two un-acked rule-body amendments, one cycle lost.
|
|
1609
1609
|
|
|
1610
1610
|
### ADR-Ordinal Collision Gate (mandatory)
|
|
1611
1611
|
|
|
@@ -2514,7 +2514,7 @@ Each meaningful event (first iteration, every state change, heartbeat every 3rd
|
|
|
2514
2514
|
|
|
2515
2515
|
The sync is capped at `MAX_BEHIND_SYNCS=6` per poll, so a pathological BEHIND→BEHIND→BEHIND (every sync triggering a new commit on main) cannot spend the whole `MAX_POLL_MIN`-minute budget making no progress. After 6 syncs the loop emits a `BEHIND budget exhausted` warning naming the elapsed time, then falls through to heartbeat — the PR may still merge if main calms down, but the diagnosis lands at the inflection point rather than at the timeout. At `fetch_failures=6/6` it names a network/credential failure instead of a fast-moving main.
|
|
2516
2516
|
|
|
2517
|
-
**ADR-ordinal collision after a sync.** A BEHIND auto-sync can pull a sibling's newly-landed `ADR-NNN-*.md` into the branch, colliding with an ADR this branch introduced at the same ordinal. `adr-ordinals`
|
|
2517
|
+
**ADR-ordinal collision after a sync.** A BEHIND auto-sync can pull a sibling's newly-landed `ADR-NNN-*.md` into the branch, colliding with an ADR this branch introduced at the same ordinal. `adr-ordinals` runs inside the required `guards-ruleset` context — [scripts/required-checks.txt](../../../../scripts/required-checks.txt) is the SSOT row, applied via [infra/github/ruleset-ci-required.tf](../../../../infra/github/ruleset-ci-required.tf) (#6049/#6050, 2026-07-05); read the current set via `gh api repos/{owner}/{repo}/rules/branches/main` — and `main` enforces the strict up-to-date policy, so the collision is caught on the PR, not on `main`: the sync pushes a new head, the member step re-runs red inside `guards-ruleset`, and the required-check-failure exit below names it. The queued auto-merge does not fire and nothing lands red on `main` (an earlier revision of this paragraph said the opposite; #7941 corrected it — PR #5945's collision landed on `main` because the ruleset did not yet carry the check, which #6050 fixed two days later). What the loop does NOT do is renumber for you: whenever you observe an auto-sync whose `git merge origin/main` output lists `knowledge-base/engineering/architecture/decisions/`, re-run `bash scripts/check-adr-ordinals.sh` before the next merge attempt; on `NEW ADR ordinal collision`, renumber the branch's ADR to the next free ordinal + sweep refs (Phase 5.5 "ADR-Ordinal Collision Gate"), commit, and push — that restarts the poll loop on a head that can go green. This is the Phase 7 half of that gate — mirrors the migration-number collision re-check.
|
|
2518
2518
|
|
|
2519
2519
|
**Settle-then-admin-merge escape hatch (zero-conflict-surface changes only).** When `main` merges faster than this PR's CI cycle, the BEHIND loop livelocks — every sync restarts CI and `main` moves again before it settles. When the poll prints `[ship.phase7.hatch_check]` (2 BEHIND syncs pushed) or `[ship.phase7.behind_exhausted]`, read [settle-then-admin-merge.md](${CLAUDE_PLUGIN_ROOT}/skills/ship/references/settle-then-admin-merge.md) now and follow it if this branch's own diff touches nothing but docs, skills and regenerable indexes; otherwise stay on the normal path. Any `--admin` merge, whether through this hatch or authorized by the operator, requires `"${CLAUDE_PLUGIN_ROOT}/scripts/admin-merge-ready.sh" <PR> <sha>` to exit 0 immediately before it and `--match-head-commit <sha>` on the merge; `gh pr checks --required` is not a substitute, because it cannot see a required check that has not been created yet (#8458, #8500). An operator-authorized merge on a BEHIND PR whose prior head was green is NOT limited to zero-conflict-surface diffs — the authorization replaces the classifier — but it still goes through the gate via `--green-sha <prior-green-sha>` (the reference's "was-green carryover" section; when the base update was a hand-made local unsigned merge — the disjoint-skip's own path needs no carryover since the green head is graded directly — add `--allow-local-merge`, which requires the merged delta to be a byte-identical docs-only replay disjoint from the PR's files), and UNTRUSTED-CI / DIRTY still refuse.
|
|
2520
2520
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Moved verbatim out of `ship/SKILL.md` Phase 5.5 to stay under the SKILL.md body ceiling (ADR-229); SKILL.md keeps the trigger and a load directive.
|
|
4
4
|
|
|
5
|
-
Blocks PR-ready when the branch adds a NEW `ADR-NNN-*.md` whose ordinal `NNN` is already taken on `origin/main` by a DIFFERENT file. The ordinal was free when the ADR was authored at plan/brainstorm time, but a sibling PR claimed it during the pipeline. A collision cannot reach `main` through the queued auto-merge (the `--admin` hatch in Phase 7 bypasses the whole `required_status_checks` rule, which is why its step 2 exists): `
|
|
5
|
+
Blocks PR-ready when the branch adds a NEW `ADR-NNN-*.md` whose ordinal `NNN` is already taken on `origin/main` by a DIFFERENT file. The ordinal was free when the ADR was authored at plan/brainstorm time, but a sibling PR claimed it during the pipeline. A collision cannot reach `main` through the queued auto-merge (the `--admin` hatch in Phase 7 bypasses the whole `required_status_checks` rule, which is why its step 2 exists): `guards-ruleset` is the required status check (its `adr-ordinals` member step runs the gate — renamed #12089) and `main` is strict-up-to-date, so a sibling's ADR arriving through a Phase 7 sync reds the PR's `adr-ordinals` member and the poll loop's required-check-failure exit stops there (Phase 7, "ADR-ordinal collision after a sync", cites the SSOT). This gate is defense-in-depth: catching the collision at PR-ready costs one commit, while catching it in Phase 7 costs a sync plus a full CI cycle (the ~35-minute figure the settle paragraph measures), and a renumber done inside the poll loop is the one most likely to leave the plan/tasks sweep undone.
|
|
6
6
|
|
|
7
7
|
**Detection.** Run the canonical sentinel named on the Trigger line in `ship/SKILL.md` (fetch `origin/main` first, run from the branch root).
|
|
8
8
|
|
|
@@ -44,4 +44,4 @@ Blocks PR-ready when the branch adds a NEW `ADR-NNN-*.md` whose ordinal `NNN` is
|
|
|
44
44
|
|
|
45
45
|
**The collision window extends through Phase 7** (mirrors the migration-number-collision re-check in work Phase 2): a sibling's ADR can land on `main` and be pulled into the branch by a **BEHIND auto-sync AFTER this gate ran**. After any Phase 6.5 / Phase 7 sync whose merge output lists `knowledge-base/engineering/architecture/decisions/`, re-run `check-adr-ordinals.sh` and renumber-during-ship before the next merge attempt (see Phase 7 "ADR-ordinal collision after a sync").
|
|
46
46
|
|
|
47
|
-
**Why:** PR #5945 (#5933) chose ADR-081 at plan time (080 was the highest then); sibling PR #5934's ADR-081 landed during the ~90-min pipeline and auto-synced into the branch during Phase 7. The ruleset did not yet carry `adr-ordinals
|
|
47
|
+
**Why:** PR #5945 (#5933) chose ADR-081 at plan time (080 was the highest then); sibling PR #5934's ADR-081 landed during the ~90-min pipeline and auto-synced into the branch during Phase 7. The ruleset did not yet carry the `adr-ordinals` gate, so the auto-merge fired on the green required set and the collision surfaced as RED CI on `main`, fixed by a follow-up renumber (#5952 → ADR-082). That gap closed two days later (see Phase 7, "ADR-ordinal collision after a sync", for the SSOT and the current failure model) — this gate is the cheaper, earlier catch.
|
|
@@ -39,7 +39,7 @@ The observation point is the poll's `[ship.phase7.hatch_check] 2 BEHIND syncs pu
|
|
|
39
39
|
|
|
40
40
|
**BEHIND only, and not DIRTY.** #7937 proposed "DIRTY/BEHIND"; that half is wrong twice over. The poll block's DIRTY arm `break`s on the first observation, so a second consecutive DIRTY sync is unobservable by the instrument this paragraph sits beside — only `behind_syncs` is counted. And `--admin` bypasses branch protection, never an actual conflict: GitHub's merge endpoint refuses a PR it has computed as unmergeable, so the hatch cannot execute on a DIRTY PR at all. DIRTY keeps its own exit and its own recovery path.
|
|
41
41
|
|
|
42
|
-
**REGENERABLE INDEX is narrower than "generated file", and the difference is load-bearing.** [merge-pr/SKILL.md](../merge-pr/SKILL.md) §3.2b defines this repo's generated class and it includes **lockfiles**. A lockfile conflict is the opposite of semantically inert — it means dependency versions moved on `main` — and admin-merging a stale one bypasses `lockfile-sync
|
|
42
|
+
**REGENERABLE INDEX is narrower than "generated file", and the difference is load-bearing.** [merge-pr/SKILL.md](../merge-pr/SKILL.md) §3.2b defines this repo's generated class and it includes **lockfiles**. A lockfile conflict is the opposite of semantically inert — it means dependency versions moved on `main` — and admin-merging a stale one bypasses `guards-ruleset` (its `lockfile-sync` member), `dependency-review` and `CodeQL`, which is precisely the supply-chain surface. So the trigger is scoped by enumeration, not by class name. Since #8377 it has one member: `model.likec4.json` — the other four became untracked caches and cannot conflict. **A lockfile conflict is NOT this trigger**, even though a lockfile is generated.
|
|
43
43
|
|
|
44
44
|
**And the regeneration is what makes it safe, so do it before step 2, not after the merge.** If the diff touches one of the enumerated indexes, re-run its owning generator against the merged tree (since ADR-235 only `model.likec4.json` is still committed; `bash <plugin-root>/scripts/resolve-regenerable-conflicts.sh origin/main` (the plugin root is `$SYNC_ROOT` in the Phase 7 fence, the verified `${CLAUDE_PLUGIN_ROOT}`) merges and regenerates it from the merged sources), commit, push, and let the checks settle on THAT sha; if it touches none, skip this. `model.likec4.json` is byte-gated on `main` by `c4-model-freshness.test.sh`, so admin-merging a stale copy reddens `main` on a test job — a case the "expected side effect" carve-out below does NOT cover, because that carve-out rests on there being nothing runtime to cut over.
|
|
45
45
|
|
|
@@ -5,7 +5,7 @@ which re-derives this set from `git ls-files` — a new member with no row here
|
|
|
5
5
|
CI failure):
|
|
6
6
|
|
|
7
7
|
- `.claude/hooks/**/*.sh`, excluding `*.test.sh` and files under `/test/` — **57 files**.
|
|
8
|
-
- `scripts/lint-*`, excluding `*.test.sh`, `*.baseline.txt`, `*.highwater*` — **
|
|
8
|
+
- `scripts/lint-*`, excluding `*.test.sh`, `*.baseline.txt`, `*.highwater*` — **48 files**.
|
|
9
9
|
|
|
10
10
|
## Verdicts
|
|
11
11
|
|
|
@@ -16,7 +16,7 @@ CI failure):
|
|
|
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
18
|
**Counts:** hooks — 0 generic / 10 generic-after-extraction / 48 soleur-coupled.
|
|
19
|
-
lints — 9 generic / 8 generic-after-extraction /
|
|
19
|
+
lints — 9 generic / 8 generic-after-extraction / 31 soleur-coupled.
|
|
20
20
|
|
|
21
21
|
The canonical emit pair `plugins/soleur/scripts/precommit-guard.sh` +
|
|
22
22
|
`plugins/soleur/scripts/lib/wrapper-boundary.sh` is NOT in the census set (it
|
|
@@ -134,6 +134,7 @@ template rather than shipping the monolith.
|
|
|
134
134
|
| `lint-squash-ci-directives.sh` | generic | `[skip ci]` token scan of `gh pr create` bodies in workflows; token set is GitHub-documented. |
|
|
135
135
|
| `lint-supabase-deprecated-endpoints.sh` | soleur-coupled | Supabase endpoint corpus + `apps/web-platform/lib/supabase`. |
|
|
136
136
|
| `lint-trap-tempfile-ownership.py` | generic-after-extraction | Tempfile-cleanup ownership rules are generic (v2); keys on `SOLEUR_SCRATCH_SESSION_ROOT` markers. |
|
|
137
|
+
| `lint-umbrella-aggregate.sh` | soleur-coupled | Parses the Soleur umbrella-job contract (`- id:` step census, `member(` calls, `!cancelled()` isolation, verdict-flow edge) inside `.github/workflows/` — the #12089 fold topology is Soleur's own. |
|
|
137
138
|
| `lint-window-closure-assertion.allowlist.txt` | soleur-coupled | Data companion of the window-closure lint (Soleur test roots). |
|
|
138
139
|
| `lint-window-closure-assertion.py` | soleur-coupled | TEST_ROOTS = `apps/web-platform`, `plugins/soleur/test`, `test`. |
|
|
139
140
|
| `lint-workflow-errexit-capture.py` | generic | Workflow run-body errexit-capture class; scans `.github/workflows`. |
|