@mark1russell7/conventions 0.47.0 → 0.47.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/README.md +11 -11
- package/build/cli.js +1 -1
- package/build/index.js +1 -1
- package/build/{run-khnpaEqi.js → run-BrCo6Uuy.js} +15 -15
- package/build/run-BrCo6Uuy.js.map +1 -0
- package/package.json +1 -1
- package/build/run-khnpaEqi.js.map +0 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
45
45
|
|---|---|---|
|
|
46
46
|
| `pinned-git-deps` | A dependency from git (`github:`, `git+https:`, `owner/repo`) names a full commit SHA. The rule also examines `overrides`, `resolutions` and `pnpm.overrides`. | coeval `pinned-deps`, `unpublished-dep-pinned`. headroom `non-npm-deps-pinned`, `pinned-github-specifier`. private `github-dep-full-sha`, `github-dep-pinned`. client `general-npm-version`. |
|
|
47
47
|
| `workspace-protocol` | A dependency on a package of the workspace uses `workspace:`. The rule does not examine peer dependencies. | client `workspace-protocol`, `workspace-deps`. coeval `pinned-deps`. headroom `non-npm-deps-pinned`. crawler `mcp-workspace-dep`. |
|
|
48
|
-
| `trust-policy` | A repository with a `pnpm-lock.yaml` sets `trustPolicy: no-downgrade` in `pnpm-workspace.yaml`: pnpm refuses a version with less trust evidence than an earlier version, for example one with no provenance after versions from a trusted publisher. `trustPolicyIgnoreAfter` is 10080 or more, so the check examines the versions of the last 7 days. A stolen-token version is new, and older versions can have less evidence for other reasons. `trustPolicyExclude` has the scopes of the release train, which checks the provenance of their versions itself. | private `trust-policy` (
|
|
48
|
+
| `trust-policy` | A repository with a `pnpm-lock.yaml` sets `trustPolicy: no-downgrade` in `pnpm-workspace.yaml`: pnpm refuses a version with less trust evidence than an earlier version, for example one with no provenance after versions from a trusted publisher. `trustPolicyIgnoreAfter` is 10080 or more, so the check examines the versions of the last 7 days. A stolen-token version is new, and older versions can have less evidence for other reasons. `trustPolicyExclude` has the scopes of the release train, which checks the provenance of their versions itself. | private `trust-policy` (a decision of 2026-11-01). |
|
|
49
49
|
| `security-overrides` | A lockfile with a bad path of a shared override has the override of pnpm in `pnpm-workspace.yaml`. The overrides are data (`SHARED_OVERRIDES`). Each one has a parent, a child, a range, the first fixed version of the child and its advisories. A bad path is a version of the child under the parent below the fixed version. The rule reads the lockfile, so an override with another range passes when the lockfile has a fixed version. An override ends when the lockfile has no version of its parent. Then the rule asks for its removal. The first override is `archiver-utils>glob` at `^14.0.3` (GHSA-3g3m-2fjr-6pw4 and GHSA-g3hv-75wg-m249). The rule fails from 2026-11-30. | netdiag #37 and systems #557 (2026-11-15): the same override, written by hand, with no end. A private repository has the bad path and no override. |
|
|
50
50
|
| `source-main` | The `main` of each workspace package is `src/index.ts` (a package with only a `bin` has no `main`, and a private package with no entry is an app). A public package that has a source entry has the same field in `publishConfig`, and that field points at the build. | coeval `package-main-source`, `source-package-main`. crawler `pkg-source-main`, `source-package-main`, `publish-config-build`. private `new-package-main-index`, `source-package-main`. headroom `source-package-main`. |
|
|
51
51
|
| `tsconfig-test` | Each package with a `tsconfig.json` has a `tsconfig.test.json`, and its `typecheck` script names it. | coeval, crawler, Vex `package-tsconfig-test` or `pkg-tsconfig-test`, and `tsconfig-test`. headroom `tsconfig-test`, `tsconfig-test-per-package`. |
|
|
@@ -58,14 +58,14 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
58
58
|
| `version-title` | A merge whose title names a version sets a version in a `package.json`. A title names a version in parentheses at its end, for example `(0.3.3)` before the `(#212)` of a squash, or after `Release` at its start. On a push to the default branch, the rule examines each commit of the first-parent line against its first parent. On a pull request, it reads the title of the event file and examines the merge commit against the base. On a dispatched run of a pull request, the file of `CONVENTIONS_PULL_REQUEST` gives the title. Then the rule examines the change from the merge base to the head. A version counts only when the base branch does not have it already. A title with no version passes. A title that names an other version than the version that the merge sets also passes, because the change gets a release. | template #212 (`5933b34`) and #215 (`e077054`), 2026-11-06: both set `site-pages` 0.3.3, so the squash of #215 changed no `package.json`, and no release started. Template #162 and #164 (2026-11-04) did the same with 0.2.5. crawler, coeval `release.yml`. |
|
|
59
59
|
| `published-minor` | A consumer does not stay behind the newest published minor of a package that the option `packages` names. The rule compares each range, and each version of `pnpm-lock.yaml`, with the tag `latest` of npm. A caret range of a `0.x` version cannot reach the next minor. With no `packages`, the rule does not start. | a consumer that stayed behind a published minor |
|
|
60
60
|
| `changelog-version` | The top version section of the changelog of a package (`CHANGELOG.md` in its folder) is not above the version of its `package.json`. A section "Unreleased" does not count. With the option `everyVersion`, the top section is the same version. On 2026-11-03 a pull request added the section 0.5.0 with two breaking changes and left `package.json` at 0.4.1. A change of a dependency range then made the train plan the PATCH 0.4.2. | packing #249 and #253, release-train (2026-11-03). |
|
|
61
|
-
| `typed-scripts` | Git keeps no JavaScript source (`.js`, `.mjs`, `.cjs`, `.jsx`, or a file with a `#!` line of `node`) and no shell script (`.sh`, `.bash`, `.zsh`, `.ps1`, or a `#!` line of a shell) of more than one line of code. Each script is TypeScript, which Node 22.18 and later starts directly. A file that must stay (generated output, vendored code, a configuration that a tool reads only as JavaScript) goes in `ignore` with its reason, so the list of exceptions can only get shorter. | private `typed-everything` (
|
|
62
|
-
| `typed-files` | Each TypeScript file that git keeps (`.ts`, `.tsx`, `.mts`, `.cts`, not `.d.ts`) is in the program of a tsconfig that a `typecheck` script names: the tests, the e2e specs, the scripts, the benches and the configs too. The rule reads the configs of each `tsc`, `tsgo` or `vue-tsc` (`-p`, `--project`, `-b`, or `tsconfig.json`) and of `svelte-check --tsconfig`, follows their `references`, and lists the files with `tsc --listFilesOnly`. A file that a covered file imports is covered. A config that does not exist, and a repository where no typecheck names a config, are a break. | private `fail-closed` (
|
|
63
|
-
| `main-check` | No script finds out that it is the main module by a compare of `process.argv[1]` with its own path. Through a link (for example `~/git` to `D:/git`), the two paths differ: the script does nothing, and it ends with exit code 0. A script uses `import.meta.main`, or `realpathSync` on each side. | private `main-check` (
|
|
64
|
-
| `tests-required` | No test runner passes when it finds no test: no `passWithNoTests: true` in a config of vitest, vite, jest or Playwright, and no `--passWithNoTests` in `package.json`. With the option, a broken include pattern turns the test gate green with no test run. | private `fail-closed` (
|
|
65
|
-
| `roadmap-parses` | Each call of the Pages workflow of the template (`reusable-pages.yml`) gives a `roadmap`, or `site-pages: false`. Without it, the Status page shows no item of the plan. Each roadmap that a workflow gives to the Status page (a `roadmap:` key) parses as `@mark1russell7/site-pages` reads it. The rule uses the parser of site-pages. Thus a pull request finds a bad row, and the Pages job on `main` does not stop on it. | private `fail-closed` (
|
|
61
|
+
| `typed-scripts` | Git keeps no JavaScript source (`.js`, `.mjs`, `.cjs`, `.jsx`, or a file with a `#!` line of `node`) and no shell script (`.sh`, `.bash`, `.zsh`, `.ps1`, or a `#!` line of a shell) of more than one line of code. Each script is TypeScript, which Node 22.18 and later starts directly. A file that must stay (generated output, vendored code, a configuration that a tool reads only as JavaScript) goes in `ignore` with its reason, so the list of exceptions can only get shorter. | private `typed-everything` (a decision of direction 15). |
|
|
62
|
+
| `typed-files` | Each TypeScript file that git keeps (`.ts`, `.tsx`, `.mts`, `.cts`, not `.d.ts`) is in the program of a tsconfig that a `typecheck` script names: the tests, the e2e specs, the scripts, the benches and the configs too. The rule reads the configs of each `tsc`, `tsgo` or `vue-tsc` (`-p`, `--project`, `-b`, or `tsconfig.json`) and of `svelte-check --tsconfig`, follows their `references`, and lists the files with `tsc --listFilesOnly`. A file that a covered file imports is covered. A config that does not exist, and a repository where no typecheck names a config, are a break. | private `fail-closed` (a decision of 2026-10-30). |
|
|
63
|
+
| `main-check` | No script finds out that it is the main module by a compare of `process.argv[1]` with its own path. Through a link (for example `~/git` to `D:/git`), the two paths differ: the script does nothing, and it ends with exit code 0. A script uses `import.meta.main`, or `realpathSync` on each side. | private `main-check` (a decision of 2026-11-02). |
|
|
64
|
+
| `tests-required` | No test runner passes when it finds no test: no `passWithNoTests: true` in a config of vitest, vite, jest or Playwright, and no `--passWithNoTests` in `package.json`. With the option, a broken include pattern turns the test gate green with no test run. | private `fail-closed` (a decision of 2026-10-30). |
|
|
65
|
+
| `roadmap-parses` | Each call of the Pages workflow of the template (`reusable-pages.yml`) gives a `roadmap`, or `site-pages: false`. Without it, the Status page shows no item of the plan. Each roadmap that a workflow gives to the Status page (a `roadmap:` key) parses as `@mark1russell7/site-pages` reads it. The rule uses the parser of site-pages. Thus a pull request finds a bad row, and the Pages job on `main` does not stop on it. | private `fail-closed` (a decision of 2026-10-30). |
|
|
66
66
|
| `workflow-parses` | Each workflow of `.github/workflows` and each file `action.yml` of `.github/actions` parses as YAML, with the parser of the package `yaml`. GitHub refuses a workflow that does not parse, and starts no job. A workflow that starts only on a schedule, a dispatch or `workflow_run` does not start on its pull request. So the rule finds its fault before the merge. The break names the first fault of each file. | layout-contract `memory-probe.yml`, run 42172612147 (2026-11-06). |
|
|
67
|
-
| `runner-budget` | The repositories of each owner share the runners of its plan: 40 for the personal account, 60 for the organization (`OWNERS`). Each `strategy` with a `matrix` has a `max-parallel` of 3 or less. Each workflow has a concurrency group at the top or in each job. A job that calls a shared workflow of the option `grouped` gets its group from that workflow, and each job of that workflow has a group. The minute of each `cron` comes from a hash of the repository and the file (1 to 59), so the schedules of the repositories do not start together. The repository comes from `GITHUB_REPOSITORY` or from the remote `origin`. | private `runner-slots` (
|
|
68
|
-
| `main-runs-finish` | A workflow that starts on `push`, `workflow_call` or `workflow_run` does not cancel a run in progress. A called workflow gets the event of its caller. A run of `workflow_run` is a run of the default branch. A newer push cancels only the run of a pull request: `cancel-in-progress: ${{ github.event_name == 'pull_request' }}`. A run of `push` or `workflow_call` has the concurrency group of its commit: `${{ github.event_name == 'pull_request' && github.ref || github.sha }}`. GitHub gives a run of `workflow_run` the last commit of the default branch, so the rule does not examine its group: a newer run that takes the place of a waiting run tests the same commit or a newer one. In one group, GitHub cancels a run that waits when a newer run comes, whatever `cancel-in-progress` says. On 2026-11-03 four waiting CI runs of `main` in client were cancelled, so its version commit had no result and no release. On 2026-11-03 the next merge cancelled the CI run of a commit on `main`, so the main check of that commit had no result. A bench run on `main` was cancelled too, and its claim had no measurement. | private `main-runs-finish` (
|
|
67
|
+
| `runner-budget` | The repositories of each owner share the runners of its plan: 40 for the personal account, 60 for the organization (`OWNERS`). Each `strategy` with a `matrix` has a `max-parallel` of 3 or less. Each workflow has a concurrency group at the top or in each job. A job that calls a shared workflow of the option `grouped` gets its group from that workflow, and each job of that workflow has a group. The minute of each `cron` comes from a hash of the repository and the file (1 to 59), so the schedules of the repositories do not start together. The repository comes from `GITHUB_REPOSITORY` or from the remote `origin`. | private `runner-slots` (a decision of 2026-10-30). |
|
|
68
|
+
| `main-runs-finish` | A workflow that starts on `push`, `workflow_call` or `workflow_run` does not cancel a run in progress. A called workflow gets the event of its caller. A run of `workflow_run` is a run of the default branch. A newer push cancels only the run of a pull request: `cancel-in-progress: ${{ github.event_name == 'pull_request' }}`. A run of `push` or `workflow_call` has the concurrency group of its commit: `${{ github.event_name == 'pull_request' && github.ref || github.sha }}`. GitHub gives a run of `workflow_run` the last commit of the default branch, so the rule does not examine its group: a newer run that takes the place of a waiting run tests the same commit or a newer one. In one group, GitHub cancels a run that waits when a newer run comes, whatever `cancel-in-progress` says. On 2026-11-03 four waiting CI runs of `main` in client were cancelled, so its version commit had no result and no release. On 2026-11-03 the next merge cancelled the CI run of a commit on `main`, so the main check of that commit had no result. A bench run on `main` was cancelled too, and its claim had no measurement. | private `main-runs-finish` (a decision of 2026-11-03). |
|
|
69
69
|
| `push-main-only` | A workflow that starts on `push` and on `pull_request` limits `push` to the default branch with `branches`, and has `workflow_dispatch`. Without the limit, each commit of a pull request starts two runs. A `push` with only a tag filter, a `pull_request` with `types` that do not have `synchronize`, and `pull_request_target` are not breaks. `CI.md` tells each case in "One run for each commit". |
|
|
70
70
|
| `pipe-fails` | A failure on the left of a pipe fails its step. With no `shell` key, GitHub has no `pipefail`, so `tests \| tee out.txt` passes when the tests fail. The fix adds `shell: bash` as the default of the workflow. A step that then turns red had a failure that the pipe hid. |
|
|
71
71
|
| `job-fails` | A failed job fails its run and each job that reads it. When a job with `continue-on-error` fails, `needs.<job>.result` is `success`, so a summary job of a gate passes over a crash. The rule also finds `continue-on-error` on a test step that no later step reads, and a `|| true` after a test command. The option `advisory` keeps a job for a time, as `<file>#<job> until <YYYY-MM-DD>: <reason>`. An entry fails after its day, and when its job hides no failure. The rule fails from 2026-12-07. | coeval run 42034457935 (2026-11-05), vex-testkit `workflow-faults.ts`, lag `ci.yml`. |
|
|
@@ -75,16 +75,16 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
75
75
|
| `shared-ci` | The workflow `ci.yml` calls the shared workflow `reusable-ci.yml` of the template, and no workflow or action of the repository has the name of a shared one of the template. A `ci.yml` with its own steps, or a local copy, does not get the fixes and the new checks of the template. The template itself is not examined (option `home`). On 2026-11-07, 3 of 19 repositories of the account ran CI steps of their own. |
|
|
76
76
|
| `setup-cue` | No workflow or action installs the cue CLI with its own command (a download of a release asset of `cue-lang/cue`, or `go install`). A caller of `reusable-ci.yml` gives the input `cue-version`. Another job uses the action `setup-cue` of the template. The action installs the CLI from a cache, or with retries and a sha256 check. On 2026-11-08, a 504 of GitHub failed each bare `curl` of the CLI. |
|
|
77
77
|
| `playwright-install` | No workflow, action or site config installs the Playwright browsers with its own command (`playwright install` or `install-deps`). A job step uses the action `setup-playwright` of the template. The build of `reusable-pages.yml` gives the key `playwright-browsers`. The action has a cache, a time limit and one more try. On 2026-11-11 the package mirror did not resolve, and each bare install of client and lag stopped in apt. The rule fails from 2026-12-01. | client run 43034026417, lag #113 and #115, template #315 (2026-11-11). |
|
|
78
|
-
| `gate-trigger` | No workflow has `paths` or `paths-ignore` on `on.pull_request` or `on.pull_request_target`. The ruleset needs the summary check `<Name> OK` of each gate, and a workflow with a path filter does not start on each pull request. Then its check is not there, the ruleset cannot ask for it, and a pull request can merge before the gate ends. A gate uses the actions `changes` and `gate-summary` of the template (`CI.md`, "A gate with paths"). | private `gate-trigger` (
|
|
78
|
+
| `gate-trigger` | No workflow has `paths` or `paths-ignore` on `on.pull_request` or `on.pull_request_target`. The ruleset needs the summary check `<Name> OK` of each gate, and a workflow with a path filter does not start on each pull request. Then its check is not there, the ruleset cannot ask for it, and a pull request can merge before the gate ends. A gate uses the actions `changes` and `gate-summary` of the template (`CI.md`, "A gate with paths"). | private `gate-trigger` (a decision of 2026-11-02). |
|
|
79
79
|
| `license-file` | Each public package has a license field, and a license file with the same license in its own folder. A public repository, or a repository with a public package, has a license file at its root. In a GitHub Actions run, the event file tells if the repository is public, and the option `license` (MIT by default) is the license of a root with no public package. npm packs only the license file of the folder of the package, and GitHub reads only the one of the root: on 2026-11-02 five public repositories showed no license on GitHub while npm said MIT. `conventions fix` writes the missing files. | private strategy (2026-11-02). |
|
|
80
80
|
| `coverage-provider` | When a workflow calls the shared CI and the CI starts the action `coverage`, each package whose test script starts Vitest has `@vitest/coverage-v8`. The provider has the range of `vitest`. The package or the root can hold both. On `main` of a public repository, the action skips a package with no provider, so the artifact `coverage` has no report of it. On 2026-11-09, 15 of 43 public repositories had no provider. `conventions fix` adds it at the range of `vitest`. A caller with `coverage-on-main: false` does not break. The rule fails from 2026-11-25. | template `packages/cli` (`package add`), ireko `packages/ireko/package.json`, codeatlas `packages/*/package.json`. |
|
|
81
81
|
| `pack-no-buildinfo` | npm does not pack the build info file of tsc. The rule finds the file of each tsconfig of a public package after its `extends` chain. When `incremental` and `composite` are off, tsc writes no file. When an entry of `files` takes the file and no `!<path>` removes it, the rule breaks. A package with no field `files` packs each file, so it breaks too. The file changes on each build, and the release stops when the files of an unchanged version differ from npm. On 2026-11-09 this made the main of splay-react red. `conventions fix` adds the negation after its entry. A changed list of packed files needs a PATCH version. The rule fails from 2026-11-25. | splay-react `package.json` (1.0.2), splay `package.json`, cue `npm/package/ts.cue` (2.1.3). |
|
|
82
82
|
| `publish-text-safe` | The text that npm puts in the publish document of a public package has no line in the shape of an attack. This text is each README file of the package folder, and each key and each string of `package.json`: npm puts the whole manifest in the document, with `publishConfig`. A break in the manifest names the path of the string, for example `scripts.build` or `repository.url`. The shapes are in the list `ATTACK_SHAPES` of `src/rules/publish-text-safe.ts`, and the field `seen` of each shape gives the evidence of a refusal. On 2026-11-15 the registry refused each publish of `@mark1russell7/text` 0.0.7 for the shape `sql-boolean` (E403), and the error did not name the cause. The other three shapes follow the SQL rules of the OWASP Core Rule Set, and no refusal of them is on record. They are breaks too: a false break costs one reword, and a miss costs an E403 with no cause. A script tag is not a shape of the rule: the README of `@mark1russell7/site-pages` 0.5.4 has one, and its publish passed. The text also has no token of a known service. The shapes of the tokens are `SECRET_SHAPES` of `@mark1russell7/text/redact`, and a break names the line and the shape, not the token. The registry shows the text to each reader, and its mirrors keep each version. The walk of the manifest is `findSecretShapesInValue` of the same module. The rule fails from its release day. | text `packages/text/README.md` (0.0.7, pull request 32), text `packages/text/src/redact.ts` (`SECRET_SHAPES`, `findSecretShapesInValue`, 0.0.8), private strategy (2026-11-16). |
|
|
83
83
|
| `exports-require` | Each entry of the published `exports` of a public package (`publishConfig.exports`, else `exports`) that resolves for `import` also resolves for `require`. The rule resolves each entry as Node does, with the conditions `import`, `node`, `default` and then `require`, `node`, `default`. An entry with only `types` and `import` stops `require()` with ERR_PACKAGE_PATH_NOT_EXPORTED, also on Node 22 and 24. `conventions fix` adds `"default"` with the target of `"import"` as the last member of the object. A target null for `require` is accepted. The rule warns until 2026-11-27. | rigor `package.json` (publishConfig.exports, rigor#196). packing, highways, layout-contract and vex give a `default` target in each published entry. |
|
|
84
84
|
| `home-module` | A change does not add a value import of a module that only a home of the map imports, for example `node:sqlite` out of `@mark1russell7/sqlite`. The field `modules` of a home gives these modules. The rule finds `import` and `export` with `from`, a bare `import`, `import()`, `require()` and `getBuiltinModule()`. An `import type`, an `export type`, `typeof import()` and `import().Name` do not break. A copy of the code of a home drifts from the home: on 2026-11-15 codeatlas and client opened `node:sqlite` with their own pragmas and transactions. The rule examines only the lines that the change adds. A real exception goes in `ignore` with a reason. The rule fails from 2026-11-30. | private strategy (2026-11-15). |
|
|
85
|
-
| `home-package` | A change does not add a function with a signature name of another home of the map (for example `median`, `mulberry32` or `writeFileAtomic`). A local copy drifts from the home and splits the fixes. On 2026-11-02 the repositories had 68 local statistics functions in 14 repositories. The rule examines only the lines that the change adds, so the copies that exist do not break. | private direction 18 (
|
|
85
|
+
| `home-package` | A change does not add a function with a signature name of another home of the map (for example `median`, `mulberry32` or `writeFileAtomic`). A local copy drifts from the home and splits the fixes. On 2026-11-02 the repositories had 68 local statistics functions in 14 repositories. The rule examines only the lines that the change adds, so the copies that exist do not break. | private direction 18 (a decision of 2026-11-02). |
|
|
86
86
|
| `pages-site` | A public repository has a workflow that calls the Pages workflow of the template (`mark1russell7/template/.github/workflows/reusable-pages.yml`, any ref), and the call deploys. A call with `deploy: false` makes a test site only. In a GitHub Actions run, the event file tells if the repository is public. Outside a run, the rule shows `skip`. On 2026-11-02 eight public repositories had no site with a Releases page and a Status page. | vex, crawler, client, coeval `pages.yml`. |
|
|
87
|
-
| `site-check-in-ci` | A repository that deploys a site with the Pages workflow has `.github/site.json`. The call of the deploy gives no site input, and no pull request starts the deploy, directly or through a call. A job that uses `reusable-pages-check.yml` checks the site, and "CI OK" needs that job. Thus the check of a pull request builds the site that `main` deploys, and a bad site does not merge. The rule fails from 2026-12-01. | private `site-probe-in-ci` (
|
|
87
|
+
| `site-check-in-ci` | A repository that deploys a site with the Pages workflow has `.github/site.json`. The call of the deploy gives no site input, and no pull request starts the deploy, directly or through a call. A job that uses `reusable-pages-check.yml` checks the site, and "CI OK" needs that job. Thus the check of a pull request builds the site that `main` deploys, and a bad site does not merge. The rule fails from 2026-12-01. | private `site-probe-in-ci` (a decision of 2026-11-08). |
|
|
88
88
|
| `pages-after-release` | A repository with a public package and a release workflow starts its Pages workflow after a release and on each day. `conventions fix` writes the triggers. A workflow with its own deploy steps needs a person. |
|
|
89
89
|
| `shared-docs` | Each lock file `shared.lock.json` names a document in its field `file`. Each shared block of the document (`<!-- shared:<id> -->` to `<!-- /shared:<id> -->`) has the SHA-256 that the lock gives, and the lock has each block. A linked block has its home in another repository. Its lock entry gives `{repo, path, commit, sha256}`, with a full commit. The document has a `<!-- linked:<id> -->` block with the link to the home at that commit, and no copy. In CI, the rule downloads each home and compares the hash. A home that does not answer in 30 seconds is a break. On 2026-11-03 three repositories kept copies of a block whose home in rigor had a different hash. | layout-contract `scripts/check-shared.mjs` (#155). |
|
|
90
90
|
|
package/build/cli.js
CHANGED
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as unreleasedChangeRule, $n as keyLine, $t as repositoryIsPublic, A as typedFiles, An as setupCue, At as privatePatterns, B as roadmapParses, Bn as prPathFilters, Bt as parsePrivateNames, C as versionTitle, Cn as hasTests, Ct as HOME_PATTERNS, D as typedScripts, Dn as SHARED_WORKFLOWS, Dt as invalidPatternBreaks, E as trustPolicy, En as SHARED_CI, Et as PRIVATE_PATTERNS_VARIABLE, F as HOME_TIMEOUT_MS, Fn as securityOneJob, Ft as isAllowedHit, G as publishedMinor, Gn as STRICT_OPTIONS, Gt as mainCheck, H as releaseFiles, Hn as gateAfterCancel, Ht as noBuildOutput, I as blockHash, In as withOneJob, It as isCommonUse, J as NPM_REGISTRY, Jn as RULE_WARN_DAYS, Jt as LICENSE_TEXTS, K as publishedMinorRule, Kn as cuePreset, Kt as coverageProvider, L as githubFetch, Ln as ACTIONS_COMMIT, Lt as lineNameHit, M as isSourcePath, Mn as SECURITY_SCAN_INPUTS, Mt as PRIVATE_NAME_LIST, N as pathsOf, Nn as SECURITY_TIMEOUT_MINUTES, Nt as PrivateNameListError, O as configsOfScript, On as callsSharedCi, Ot as noLocalPaths, P as sourceMain, Pn as securityCallers, Pt as firstNameMatch, Q as unreleasedChange, Qn as inFolder, Qt as mitText, R as sharedDocsRule, Rn as convertGate, Rt as lineNameHits, S as setVersions, Sn as serviceRunMain, St as DEFAULT_ALLOWED, T as TRAIN_SCOPES, Tn as SHARED_ACTIONS, Tt as PRIVATE_NAMES_FILE_VARIABLE, U as lockedVersions, Un as readAction, Ut as REAL_COMPARE, V as requiredScripts, Vn as summaryName, Vt as pathNameHit, W as minorOf, Wn as readWorkflow, Wt as hasImportMetaMain, X as UNSHIPPED_FILES, Xn as codePackages, Xt as licenseFile, Y as SHIPPED_FIELDS, Yn as cleanPath, Yt as authorOf, Z as npmLookup, Zn as hasFile, Zt as licenseFileOf, _ as workspaceProtocol, _n as npmDrift, _t as pagesCalls, a as listRules, an as homePackage, ar as runGit, at as swallowsTests, b as yamlFaults, bn as SERVICE_PACKAGE, bt as publishTextSafe, c as runCli, cn as reposOf, cr as parseConfig, ct as isPinned, d as HOOK_MARKER, dn as HOMES, dt as pagesAfterRelease, en as homeModule, er as lineOf, et as playwrightInstall, f as NO_READ_LINE, fn as MAP_RULE, ft as repositoryOfRemote, g as RULES, gn as mergeHomes, gt as PAGES_WORKFLOWS, h as prePush, hn as mapText, ht as pushMainOnly, i as formatResult, in as declaredName, ir as replaceLine, it as startsTests, j as testsRequired, jn as SECURITY_SCAN_COMMIT, jt as privateTextBreaks, k as scriptsOf, kn as sharedCi, kt as privateNamesFile, l as runFix, ln as signaturesOf, lt as pinnedGitDeps, m as installHook, mn as mapMarkdown, mt as scheduleMinute, n as annotations, nn as moduleUses, nr as parseJsonc, nt as jobFails, o as readConfig, on as messageOf, or as specifiersOf, ot as pipeFails, p as PRE_PUSH_HOOK, pn as findHomes, pt as runnerBudget, q as reachOf, qn as DEPENDENCY_FIELDS, qt as apiReportScript, r as createContext, rn as modulesOf, rr as readJsonc, rt as parseAdvisory, s as runChecks, sn as repoOf, sr as defaultOptions, st as isGitSpecifier, t as USAGE, tn as moduleMessage, tr as matchesAny, tt as hiddenFailures, u as summaryMarkdown, un as HOME_EXPORTS, ut as siteCheckInCi, v as GITHUB_YAML, vn as npmNames, vt as pagesSite, w as IGNORE_AFTER, wn as tsconfigTest, wt as PRIVATE_NAMES_FILE_CONFIG, x as namedVersions, xn as runCalls, xt as packNoBuildinfo, y as workflowParses, yn as readOverlay, yt as exportsRequire, z as roadmapOfLine, zn as gateTrigger, zt as nameMatches } from "./run-
|
|
1
|
+
import { $ as unreleasedChangeRule, $n as keyLine, $t as repositoryIsPublic, A as typedFiles, An as setupCue, At as privatePatterns, B as roadmapParses, Bn as prPathFilters, Bt as parsePrivateNames, C as versionTitle, Cn as hasTests, Ct as HOME_PATTERNS, D as typedScripts, Dn as SHARED_WORKFLOWS, Dt as invalidPatternBreaks, E as trustPolicy, En as SHARED_CI, Et as PRIVATE_PATTERNS_VARIABLE, F as HOME_TIMEOUT_MS, Fn as securityOneJob, Ft as isAllowedHit, G as publishedMinor, Gn as STRICT_OPTIONS, Gt as mainCheck, H as releaseFiles, Hn as gateAfterCancel, Ht as noBuildOutput, I as blockHash, In as withOneJob, It as isCommonUse, J as NPM_REGISTRY, Jn as RULE_WARN_DAYS, Jt as LICENSE_TEXTS, K as publishedMinorRule, Kn as cuePreset, Kt as coverageProvider, L as githubFetch, Ln as ACTIONS_COMMIT, Lt as lineNameHit, M as isSourcePath, Mn as SECURITY_SCAN_INPUTS, Mt as PRIVATE_NAME_LIST, N as pathsOf, Nn as SECURITY_TIMEOUT_MINUTES, Nt as PrivateNameListError, O as configsOfScript, On as callsSharedCi, Ot as noLocalPaths, P as sourceMain, Pn as securityCallers, Pt as firstNameMatch, Q as unreleasedChange, Qn as inFolder, Qt as mitText, R as sharedDocsRule, Rn as convertGate, Rt as lineNameHits, S as setVersions, Sn as serviceRunMain, St as DEFAULT_ALLOWED, T as TRAIN_SCOPES, Tn as SHARED_ACTIONS, Tt as PRIVATE_NAMES_FILE_VARIABLE, U as lockedVersions, Un as readAction, Ut as REAL_COMPARE, V as requiredScripts, Vn as summaryName, Vt as pathNameHit, W as minorOf, Wn as readWorkflow, Wt as hasImportMetaMain, X as UNSHIPPED_FILES, Xn as codePackages, Xt as licenseFile, Y as SHIPPED_FIELDS, Yn as cleanPath, Yt as authorOf, Z as npmLookup, Zn as hasFile, Zt as licenseFileOf, _ as workspaceProtocol, _n as npmDrift, _t as pagesCalls, a as listRules, an as homePackage, ar as runGit, at as swallowsTests, b as yamlFaults, bn as SERVICE_PACKAGE, bt as publishTextSafe, c as runCli, cn as reposOf, cr as parseConfig, ct as isPinned, d as HOOK_MARKER, dn as HOMES, dt as pagesAfterRelease, en as homeModule, er as lineOf, et as playwrightInstall, f as NO_READ_LINE, fn as MAP_RULE, ft as repositoryOfRemote, g as RULES, gn as mergeHomes, gt as PAGES_WORKFLOWS, h as prePush, hn as mapText, ht as pushMainOnly, i as formatResult, in as declaredName, ir as replaceLine, it as startsTests, j as testsRequired, jn as SECURITY_SCAN_COMMIT, jt as privateTextBreaks, k as scriptsOf, kn as sharedCi, kt as privateNamesFile, l as runFix, ln as signaturesOf, lt as pinnedGitDeps, m as installHook, mn as mapMarkdown, mt as scheduleMinute, n as annotations, nn as moduleUses, nr as parseJsonc, nt as jobFails, o as readConfig, on as messageOf, or as specifiersOf, ot as pipeFails, p as PRE_PUSH_HOOK, pn as findHomes, pt as runnerBudget, q as reachOf, qn as DEPENDENCY_FIELDS, qt as apiReportScript, r as createContext, rn as modulesOf, rr as readJsonc, rt as parseAdvisory, s as runChecks, sn as repoOf, sr as defaultOptions, st as isGitSpecifier, t as USAGE, tn as moduleMessage, tr as matchesAny, tt as hiddenFailures, u as summaryMarkdown, un as HOME_EXPORTS, ut as siteCheckInCi, v as GITHUB_YAML, vn as npmNames, vt as pagesSite, w as IGNORE_AFTER, wn as tsconfigTest, wt as PRIVATE_NAMES_FILE_CONFIG, x as namedVersions, xn as runCalls, xt as packNoBuildinfo, y as workflowParses, yn as readOverlay, yt as exportsRequire, z as roadmapOfLine, zn as gateTrigger, zt as nameMatches } from "./run-BrCo6Uuy.js";
|
|
2
2
|
import { OWNERS, ownerOf, ownersOf, sharedNames } from "./owners.js";
|
|
3
3
|
import { i as packageFolders, n as globFolders, r as globToRegExp, s as workspaceGlobs } from "./workspace-Cx7p7bWn.js";
|
|
4
4
|
// src/release-text.ts
|
|
@@ -1670,7 +1670,7 @@ const mainRunsFinish = {
|
|
|
1670
1670
|
{
|
|
1671
1671
|
repo: "private",
|
|
1672
1672
|
rule: "main-runs-finish",
|
|
1673
|
-
doc: "
|
|
1673
|
+
doc: "a decision of 2026-11-03: a run of main ends"
|
|
1674
1674
|
},
|
|
1675
1675
|
{
|
|
1676
1676
|
repo: "client",
|
|
@@ -1991,7 +1991,7 @@ const gateTrigger = {
|
|
|
1991
1991
|
sources: [{
|
|
1992
1992
|
repo: "private",
|
|
1993
1993
|
rule: "gate-trigger",
|
|
1994
|
-
doc: "
|
|
1994
|
+
doc: "a decision of 2026-11-02: a gate with paths feeds a required summary"
|
|
1995
1995
|
}],
|
|
1996
1996
|
options: { allow: {
|
|
1997
1997
|
type: "strings",
|
|
@@ -12867,7 +12867,7 @@ const homePackage = {
|
|
|
12867
12867
|
sources: [{
|
|
12868
12868
|
repo: "private",
|
|
12869
12869
|
rule: "direction-18",
|
|
12870
|
-
doc: "
|
|
12870
|
+
doc: "a decision of 2026-11-02: one map of homes, checked when the code is written"
|
|
12871
12871
|
}],
|
|
12872
12872
|
options: { scope: {
|
|
12873
12873
|
type: "string",
|
|
@@ -13004,7 +13004,7 @@ const homeModule = {
|
|
|
13004
13004
|
sources: [{
|
|
13005
13005
|
repo: "private",
|
|
13006
13006
|
rule: "home-module",
|
|
13007
|
-
doc: "
|
|
13007
|
+
doc: "a decision of 2026-11-15: a gate holds each move to a home"
|
|
13008
13008
|
}],
|
|
13009
13009
|
options: { scope: {
|
|
13010
13010
|
type: "string",
|
|
@@ -13572,7 +13572,7 @@ const mainCheck = {
|
|
|
13572
13572
|
sources: [{
|
|
13573
13573
|
repo: "private",
|
|
13574
13574
|
rule: "main-check",
|
|
13575
|
-
doc: "
|
|
13575
|
+
doc: "a decision of 2026-11-02: the main check through a link"
|
|
13576
13576
|
}],
|
|
13577
13577
|
options: {},
|
|
13578
13578
|
check(context) {
|
|
@@ -14755,7 +14755,7 @@ const publishTextSafe = {
|
|
|
14755
14755
|
{
|
|
14756
14756
|
repo: "private",
|
|
14757
14757
|
rule: "publish-text-safe",
|
|
14758
|
-
doc: "
|
|
14758
|
+
doc: "a decision of 2026-11-16: the publish document has no attack shape and no token"
|
|
14759
14759
|
}
|
|
14760
14760
|
],
|
|
14761
14761
|
options: {},
|
|
@@ -15688,7 +15688,7 @@ const runnerBudget = {
|
|
|
15688
15688
|
sources: [{
|
|
15689
15689
|
repo: "private",
|
|
15690
15690
|
rule: "runner-slots",
|
|
15691
|
-
doc: "
|
|
15691
|
+
doc: "a decision of 2026-10-30: the runner slots: a cap of 40, heavy work at most 28"
|
|
15692
15692
|
}],
|
|
15693
15693
|
options: {
|
|
15694
15694
|
maxParallel: {
|
|
@@ -16214,7 +16214,7 @@ const siteCheckInCi = {
|
|
|
16214
16214
|
sources: [{
|
|
16215
16215
|
repo: "private",
|
|
16216
16216
|
rule: "site-probe-in-ci",
|
|
16217
|
-
doc: "
|
|
16217
|
+
doc: "a decision of 2026-11-08: the site check of each pull request in CI OK"
|
|
16218
16218
|
}],
|
|
16219
16219
|
options: {
|
|
16220
16220
|
workflows: {
|
|
@@ -17250,7 +17250,7 @@ function publishedMinorRule(lookup = npmLookup, now = Date.now) {
|
|
|
17250
17250
|
sources: [{
|
|
17251
17251
|
repo: "private",
|
|
17252
17252
|
rule: "published-minor",
|
|
17253
|
-
doc: "
|
|
17253
|
+
doc: "a decision of 2026-11-04: a consumer behind a published minor"
|
|
17254
17254
|
}],
|
|
17255
17255
|
options: {
|
|
17256
17256
|
packages: {
|
|
@@ -17630,7 +17630,7 @@ const roadmapParses = {
|
|
|
17630
17630
|
sources: [{
|
|
17631
17631
|
repo: "private",
|
|
17632
17632
|
rule: "fail-closed",
|
|
17633
|
-
doc: "
|
|
17633
|
+
doc: "a decision of 2026-10-30: gates and probes fail closed"
|
|
17634
17634
|
}],
|
|
17635
17635
|
options: { roadmaps: {
|
|
17636
17636
|
type: "strings",
|
|
@@ -18209,7 +18209,7 @@ const testsRequired = {
|
|
|
18209
18209
|
sources: [{
|
|
18210
18210
|
repo: "private",
|
|
18211
18211
|
rule: "fail-closed",
|
|
18212
|
-
doc: "
|
|
18212
|
+
doc: "a decision of 2026-10-30: gates and probes fail closed"
|
|
18213
18213
|
}],
|
|
18214
18214
|
options: {},
|
|
18215
18215
|
check(context) {
|
|
@@ -18467,7 +18467,7 @@ const typedFiles = {
|
|
|
18467
18467
|
sources: [{
|
|
18468
18468
|
repo: "private",
|
|
18469
18469
|
rule: "fail-closed",
|
|
18470
|
-
doc: "
|
|
18470
|
+
doc: "a decision of 2026-10-30: gates and probes fail closed"
|
|
18471
18471
|
}],
|
|
18472
18472
|
options: { configs: {
|
|
18473
18473
|
type: "strings",
|
|
@@ -18593,7 +18593,7 @@ const typedScripts = {
|
|
|
18593
18593
|
sources: [{
|
|
18594
18594
|
repo: "private",
|
|
18595
18595
|
rule: "typed-everything",
|
|
18596
|
-
doc: "
|
|
18596
|
+
doc: "a decision of direction 15: each new script is TypeScript"
|
|
18597
18597
|
}],
|
|
18598
18598
|
options: {
|
|
18599
18599
|
javascript: {
|
|
@@ -18732,7 +18732,7 @@ const trustPolicy = {
|
|
|
18732
18732
|
sources: [{
|
|
18733
18733
|
repo: "private",
|
|
18734
18734
|
rule: "trust-policy",
|
|
18735
|
-
doc: "
|
|
18735
|
+
doc: "a decision of 2026-11-01: release age and trust policy"
|
|
18736
18736
|
}],
|
|
18737
18737
|
options: {
|
|
18738
18738
|
exclude: {
|
|
@@ -20244,4 +20244,4 @@ function runHook(args, io) {
|
|
|
20244
20244
|
}
|
|
20245
20245
|
export { unreleasedChangeRule as $, keyLine as $n, repositoryIsPublic as $t, typedFiles as A, setupCue as An, privatePatterns as At, roadmapParses as B, prPathFilters as Bn, parsePrivateNames as Bt, versionTitle as C, hasTests as Cn, HOME_PATTERNS as Ct, typedScripts as D, SHARED_WORKFLOWS as Dn, invalidPatternBreaks as Dt, trustPolicy as E, SHARED_CI as En, PRIVATE_PATTERNS_VARIABLE as Et, HOME_TIMEOUT_MS as F, securityOneJob as Fn, isAllowedHit as Ft, publishedMinor as G, STRICT_OPTIONS as Gn, mainCheck as Gt, releaseFiles as H, gateAfterCancel as Hn, noBuildOutput as Ht, blockHash as I, withOneJob as In, isCommonUse as It, NPM_REGISTRY as J, RULE_WARN_DAYS as Jn, LICENSE_TEXTS as Jt, publishedMinorRule as K, cuePreset as Kn, coverageProvider as Kt, githubFetch as L, ACTIONS_COMMIT as Ln, lineNameHit as Lt, isSourcePath as M, SECURITY_SCAN_INPUTS as Mn, PRIVATE_NAME_LIST as Mt, pathsOf as N, SECURITY_TIMEOUT_MINUTES as Nn, PrivateNameListError as Nt, configsOfScript as O, callsSharedCi as On, noLocalPaths as Ot, sourceMain as P, securityCallers as Pn, firstNameMatch as Pt, unreleasedChange as Q, inFolder as Qn, mitText as Qt, sharedDocsRule as R, convertGate as Rn, lineNameHits as Rt, setVersions as S, serviceRunMain as Sn, DEFAULT_ALLOWED as St, TRAIN_SCOPES as T, SHARED_ACTIONS as Tn, PRIVATE_NAMES_FILE_VARIABLE as Tt, lockedVersions as U, readAction as Un, REAL_COMPARE as Ut, requiredScripts as V, summaryName as Vn, pathNameHit as Vt, minorOf as W, readWorkflow as Wn, hasImportMetaMain as Wt, UNSHIPPED_FILES as X, codePackages as Xn, licenseFile as Xt, SHIPPED_FIELDS as Y, cleanPath as Yn, authorOf as Yt, npmLookup as Z, hasFile as Zn, licenseFileOf as Zt, workspaceProtocol as _, npmDrift as _n, pagesCalls as _t, listRules as a, homePackage as an, runGit as ar, swallowsTests as at, yamlFaults as b, SERVICE_PACKAGE as bn, publishTextSafe as bt, runCli as c, reposOf as cn, parseConfig as cr, isPinned as ct, HOOK_MARKER as d, HOMES as dn, pagesAfterRelease as dt, homeModule as en, lineOf as er, playwrightInstall as et, NO_READ_LINE as f, MAP_RULE as fn, repositoryOfRemote as ft, RULES as g, mergeHomes as gn, PAGES_WORKFLOWS as gt, prePush as h, mapText as hn, pushMainOnly as ht, formatResult as i, declaredName as in, replaceLine as ir, startsTests as it, testsRequired as j, SECURITY_SCAN_COMMIT as jn, privateTextBreaks as jt, scriptsOf as k, sharedCi as kn, privateNamesFile as kt, runFix as l, signaturesOf as ln, pinnedGitDeps as lt, installHook as m, mapMarkdown as mn, scheduleMinute as mt, annotations as n, moduleUses as nn, parseJsonc as nr, jobFails as nt, readConfig as o, messageOf as on, specifiersOf as or, pipeFails as ot, PRE_PUSH_HOOK as p, findHomes as pn, runnerBudget as pt, reachOf as q, DEPENDENCY_FIELDS as qn, apiReportScript as qt, createContext as r, modulesOf as rn, readJsonc as rr, parseAdvisory as rt, runChecks as s, repoOf as sn, defaultOptions as sr, isGitSpecifier as st, USAGE as t, moduleMessage as tn, matchesAny as tr, hiddenFailures as tt, summaryMarkdown as u, HOME_EXPORTS as un, siteCheckInCi as ut, GITHUB_YAML as v, npmNames as vn, pagesSite as vt, IGNORE_AFTER as w, tsconfigTest as wn, PRIVATE_NAMES_FILE_CONFIG as wt, namedVersions as x, runCalls as xn, packNoBuildinfo as xt, workflowParses as y, readOverlay as yn, exportsRequire as yt, roadmapOfLine as z, gateTrigger as zn, nameMatches as zt };
|
|
20246
20246
|
|
|
20247
|
-
//# sourceMappingURL=run-
|
|
20247
|
+
//# sourceMappingURL=run-BrCo6Uuy.js.map
|