Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/node-id-race.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cosyte/pathways": patch
---

Two engines started at once in one project with no `node.id` now agree on one node id. The second used to read the id file while the first had made it and not yet written it, and so ran under an id of its own that was never saved.
5 changes: 5 additions & 0 deletions .changeset/readme-skeleton.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cosyte/pathways": patch
---

The README now follows the layout every Cosyte package README shares: the package name as its title, four badges (npm version, CI, license, Node), and the sections Why this exists, Status, Install and Usage in that order, with a link to docs.cosyte.com/pathways. Its Status names the release line rather than an exact version.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,22 @@ jobs:
# packed package on all three systems. The full reading, the budgets and the profile are in
# bench-reading.yml. Every caller of a shared workflow, in every file here, names one published
# reference, and they move together: test/package.test.ts fails when two differ. The shared jobs
# this caller leaves out (bun, deno, coverage-ratchet, mutation) stay off, as their inputs default to.
# this caller leaves out (bun, deno) stay off, as their inputs default to.
#
# The testing standard's two jobs run beside `verify` too:
# - `coverage-ratchet`: `pnpm test:coverage`, then `cosyte-ratchet` holds coverage to
# quality-floor.json and, on a pull request, every changed line coverage counts to having run;
# - `mutation` (pull requests only): StrykerJS mutates the lines the change added or edited, with
# stryker.config.mjs, and every mutant there must be killed. weekly-mutation.yml runs it over
# every source file.
ci:
uses: cosyte/.github/.github/workflows/ci.yml@ee3e8abed80294c3bb6bfcb4a6e54330be2df8b1 # workflows-2026-11-28-ee3e8abed802
uses: cosyte/.github/.github/workflows/ci.yml@8c4385954cad27276f39241deb085b397e9cf837 # workflows-2026-11-29-8c4385954cad
with:
run-phi-scan: true
node-versions: '["24", "26"]'
expect-unpublished-deps: ""
run-coverage-ratchet: true
run-mutation: true
run-scaling-gate: true
run-bench-compare: true
bench-suites: bench/pathways.bench.mjs
Expand All @@ -66,7 +75,7 @@ jobs:
# pull request. On Windows the shared job
# checks text files out with LF before the checkout, and .gitattributes says the same.
systems:
uses: cosyte/.github/.github/workflows/ci.yml@ee3e8abed80294c3bb6bfcb4a6e54330be2df8b1 # workflows-2026-11-28-ee3e8abed802
uses: cosyte/.github/.github/workflows/ci.yml@8c4385954cad27276f39241deb085b397e9cf837 # workflows-2026-11-29-8c4385954cad
with:
run-phi-scan: true
node-versions: '["24"]'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
security-events: write # upload the SARIF to the Security tab
contents: read
actions: read
uses: cosyte/.github/.github/workflows/codeql.yml@ee3e8abed80294c3bb6bfcb4a6e54330be2df8b1 # workflows-2026-11-28-ee3e8abed802
uses: cosyte/.github/.github/workflows/codeql.yml@8c4385954cad27276f39241deb085b397e9cf837 # workflows-2026-11-29-8c4385954cad
2 changes: 1 addition & 1 deletion .github/workflows/no-emdash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ permissions:

jobs:
no-emdash:
uses: cosyte/.github/.github/workflows/gate-no-emdash-install.yml@ee3e8abed80294c3bb6bfcb4a6e54330be2df8b1 # workflows-2026-11-28-ee3e8abed802
uses: cosyte/.github/.github/workflows/gate-no-emdash-install.yml@8c4385954cad27276f39241deb085b397e9cf837 # workflows-2026-11-29-8c4385954cad
with:
node-version: "24"
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/no-internal-refs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ permissions:

jobs:
no-internal-refs:
uses: cosyte/.github/.github/workflows/gate-no-internal-refs-install.yml@ee3e8abed80294c3bb6bfcb4a6e54330be2df8b1 # workflows-2026-11-28-ee3e8abed802
uses: cosyte/.github/.github/workflows/gate-no-internal-refs-install.yml@8c4385954cad27276f39241deb085b397e9cf837 # workflows-2026-11-29-8c4385954cad
with:
node-version: "24"
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
pr-title:
permissions:
contents: read
uses: cosyte/.github/.github/workflows/pr-title.yml@ee3e8abed80294c3bb6bfcb4a6e54330be2df8b1 # workflows-2026-11-28-ee3e8abed802
uses: cosyte/.github/.github/workflows/pr-title.yml@8c4385954cad27276f39241deb085b397e9cf837 # workflows-2026-11-29-8c4385954cad
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
contents: write # create tags / the GitHub release
id-token: write # npm trusted publishing and provenance
pull-requests: write # open the "Version Packages" PR
uses: cosyte/.github/.github/workflows/release.yml@ee3e8abed80294c3bb6bfcb4a6e54330be2df8b1 # workflows-2026-11-28-ee3e8abed802
uses: cosyte/.github/.github/workflows/release.yml@8c4385954cad27276f39241deb085b397e9cf837 # workflows-2026-11-29-8c4385954cad
with:
package-name: "@cosyte/pathways"
# Every dependency is on npm, so nothing is excused: the same empty allowance ci.yml gives the
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
contents: read # required to resolve the reusable workflow (else contents:none → startup failure)
security-events: write # upload the SARIF to the Security tab
id-token: write # publish results to the OpenSSF API (for the badge)
uses: cosyte/.github/.github/workflows/scorecard.yml@ee3e8abed80294c3bb6bfcb4a6e54330be2df8b1 # workflows-2026-11-28-ee3e8abed802
uses: cosyte/.github/.github/workflows/scorecard.yml@8c4385954cad27276f39241deb085b397e9cf837 # workflows-2026-11-29-8c4385954cad
34 changes: 34 additions & 0 deletions .github/workflows/weekly-mutation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Weekly mutation

# The full mutation run: every source file stryker.config.mjs names is mutated, split across
# parallel jobs (shards), and the merged score is held to the floor in quality-floor.json. A score
# below its floor turns the run red. The run never commits: to raise the floor, run
# `pnpm mutate:full` and `pnpm quality:raise --skip coverage`, and open a pull request. The merged
# report is kept in the `mutation-report` artifact. The shared job is cosyte/.github's
# weekly-mutation.yml.

on:
schedule:
# Sunday and Wednesday at 07:13 UTC. Twice a week, because GitHub evicts a cache entry nobody has
# read for 7 days, so runs a week apart can start from nothing. An odd minute: GitHub delays
# scheduled runs at the start of every hour.
- cron: "13 7 * * 0,3"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

permissions:
contents: read

jobs:
weekly:
uses: cosyte/.github/.github/workflows/weekly-mutation.yml@8c4385954cad27276f39241deb085b397e9cf837 # workflows-2026-11-29-8c4385954cad
with:
mutate-cmd: "pnpm mutate:full"
# The Node floor, which engines.node states.
node-version: "24"
# About 90 source files and 47,000 lines, the most of any of our packages, so the most shards
# the job allows; a file is in exactly one shard, by the hash of its path.
shard-count: 16
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ coverage/
.vitest-cache/
.cosyte-doc-snippets*/

# Mutation testing (StrykerJS): the reports and the sandbox it runs in
reports/
.stryker-tmp/

# Environment
.env
.env.*
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ dist/
/schema/
coverage/

# Mutation testing (StrykerJS): the reports and the sandbox it runs in
reports/
.stryker-tmp/

# Dependencies (also in .gitignore; prettier additionally skips node_modules by default)
node_modules/
.pnpm-store/
Expand Down
9 changes: 7 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ memory everywhere, and against LocalStack's S3 and Azurite where `PATHWAYS_TEST_

Run these from the repo root, in this order, before you push. It is what CI runs: the first nine
in `ci / verify` on Linux on Node 24 and 26 and in `systems / verify` on Windows and macOS on
Node 24, then `pnpm test:perf` in `ci / scaling-gate`, `pnpm check:docs-reference` in
`docs-reference`, and the last three as workflows of their own. The build, test, lint, typecheck
Node 24, then `pnpm test:perf` in `ci / scaling-gate`, `pnpm quality:check` (after
`pnpm test:coverage`) in `ci / coverage-ratchet`, `pnpm mutate changed` and `pnpm quality:mutation`
in `ci / mutation`, `pnpm check:docs-reference` in `docs-reference`, and the last three as
workflows of their own. The build, test, lint, typecheck
and format scripts delegate to `cosyte-process` from `@cosyte/process`, which owns the tool
versions; `pnpm test` also runs `pnpm check:process`, its wiring check.

Expand All @@ -49,6 +51,9 @@ pnpm test:coverage
pnpm build
pnpm attw
pnpm test:perf
pnpm quality:check --base origin/main
pnpm mutate changed --base origin/main
pnpm quality:mutation --base origin/main
pnpm check:docs-reference
pnpm check:no-emdash
pnpm check:no-internal-refs
Expand Down
Loading
Loading