@cleocode/core 2026.11.11 → 2026.11.12-rc.ci.729
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/README.md +78 -114
- package/dist/.source-stamp.json +1 -1
- package/dist/build-provenance.json +2 -2
- package/dist/release/ci-evidence.d.ts +12 -8
- package/dist/release/ci-evidence.js +83 -23
- package/dist/release/ci-evidence.js.map +1 -1
- package/dist/release/cut.js +3 -1
- package/dist/release/cut.js.map +1 -1
- package/dist/release/pr-evidence.d.ts +3 -7
- package/dist/release/pr-evidence.js +35 -4
- package/dist/release/pr-evidence.js.map +1 -1
- package/dist/tasks/merge-close.js +4 -2
- package/dist/tasks/merge-close.js.map +1 -1
- package/migrations/README.md +79 -49
- package/package.json +13 -13
- package/schemas/project-context.schema.json +4 -0
- package/templates/CLEO-REFERENCE.md +2 -0
|
@@ -378,6 +378,8 @@ With `evidence.ciSatisfies: true`, `ci:<number>` attests `testsPassed`/`qaPassed
|
|
|
378
378
|
|
|
379
379
|
When PR and main job names differ, set `evidence.ciChecks.jobs.tests` (and `qa`) to an object with two nonempty lists, e.g. `{"pullRequest":["PR guards and affected tests*"],"push":["Full Suite*"]}` (T14577). Both must pass in the pinned workflows: `pullRequest` on the final PR head's `pull_request` runs, and `push` on the merge commit or a permitted main stand-in. The head need not be tree-equal to the merge when both sides pass. A workflow-edited PR stays main-only and consults only `push`. A plain array keeps its existing meaning, including the tree-equal-head substitution and the shared job list on a descendant and PR head. The T14260 filter-skip rule still applies to main's jobs; it never excuses a missing or skipped PR-head job in the per-event form. Refusals name `evidence.ciChecks.jobs.<tests|qa>.pullRequest` or `.push` so the project can correct the relevant list.
|
|
380
380
|
|
|
381
|
+
When the required checks themselves differ, give each `release.prRequiredWorkflows` object an `event` (T14602), e.g. `[{"name":"PR checks","app":"github-actions","workflow":".github/workflows/ci.yml","event":"pull_request"},{"name":"Main gate","app":"github-actions","workflow":".github/workflows/ci.yml","event":"push"}]`. Use distinct check names and declare both events; `evidence.ciChecks.tests` and `.qa` name the checks that attest each gate, and the per-event job lists above still apply. The PR-head `pull_request` checks AND the merge commit's `push` checks must succeed even when main advanced before the merge. Skipped, cancelled, pending or missing checks never pass. A cancelled merge run is refused unless a qualifying descendant exists under the T12742 descendant rule (or the applicable current-HEAD rule); the descendant needs the push names, while the PR head needs the PR names, with the existing path, hunk and CI-definition guards. Workflow edits remain main-only and require the push side. `pr:` provenance and merge-train prechecks use the PR names; release selection uses the push names. Entries without `event`, including plain strings, keep their existing meaning. Refusals name `release.prRequiredWorkflows[].event` when event scoping is needed.
|
|
382
|
+
|
|
381
383
|
For a job glob without `*`, an exact reported job name takes precedence over suffixed variants (e.g. required `Type Check` versus non-gating `Type Check (Node 26)`). If the exact name is absent, the bare name matches its parenthesized matrix variants and every reported leg must pass. Wildcards keep direct matching, and names such as `node 20/22` are labels, never matrix-cardinality metadata. To require the presence of particular legs, list their names or globs explicitly. A tree-equal PR head still needs the per-event push side: a cancelled push run uses the permitted descendant search, and a pending one refuses with wait guidance.
|
|
382
384
|
|
|
383
385
|
Required checks: explicit configuration or target repository protection. `release.prRequiredWorkflows: []` requires no checks; it proves neither testing nor review. `.cleo/cache/evidence/pr-<num>.json` retains provenance and changed files; obsolete versions reject. Use `tool:test-affected` when `testing.affectedCommand` is configured (a full `tool:test` then only for root-config changes, which affected planning refuses), otherwise a targeted `test-run:<json>` or `tool:test`, plus appropriate QA tools, linking each result to verified criteria.
|