Skip to content

chore: build, lint, format and test with the systemfsoftware toolchain - #4

Merged
systemfsoftware-bot merged 4 commits into
mainfrom
chore-org-toolchain
Nov 23, 2026
Merged

systemfsoftware-bot merged 4 commits into
mainfrom
chore-org-toolchain

Conversation

@systemfsoftware-bot

@systemfsoftware-bot systemfsoftware-bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What

Builds, lints, formats, typechecks and tests the repository with the systemfsoftware toolchain. No runtime behaviour changes, and Effect stays at 4.1.2; the 4.1.4 bump lands with the tool-call validation fix in a later PR. Package names, versions and licences are unchanged; those land in later PRs.

  • pnpm 12.9.0 replaces bun 1.4.2; pnpm-workspace.yaml carries the catalog.
  • tsdown replaces vp pack; vitest replaces vp test; the @systemfsoftware oxlint preset replaces vite-plus lint; dprint replaces oxfmt; commitlint replaces the vite-plus hook; effect-tsgo tsrs still typechecks.
  • Effect stays at 4.1.2; the toolchain typechecks and tests cleanly on it.
  • ci.yml is the house shape and publishes the single checks / check aggregate the main ruleset requires.
  • Deleted: 14 upstream workflows, action/, alchemy.run.ts, examples/, tooling/, patches/, oxlint/, bun.lock, bunfig.toml, .vite-hooks/, and the packages the four published libraries do not import: agent-testing, agent-storage-memory, agent-storage-postgres, agent-storage-cloudflare, agent-platform-cloudflare, agent-pr-review, agent-pr-review-action, agent-ai-decision, ui.
  • docs/ is no longer a workspace member and is to be deleted in this PR (deletion pending, see the lint row); the docs PR rebuilds it for the four kept packages.

Published export surface

Four packages remain (agent, agent-storage-sql, agent-storage-sqlite, agent-platform-node). Each manifest keeps the same exports map (source paths) and files (dist, src). The built-file map the release script used to compute at publish time is now publishConfig.exports, which pnpm pack applies.

package exports entries files before files after packed exports equals the pre-change published map
agent 112 dist, src dist, src yes
agent-storage-sql 22 dist, src dist, src yes
agent-storage-sqlite 11 dist, src dist, src yes
agent-platform-node 6 dist, src dist, src yes

"Pre-change published map" is what vp pack plus the old release script produced: ./dist/<name>.mjs and ./dist/<name>.d.mts per entry. Every named file exists in the tarball. tsdown shares more chunks than vite-plus did, so the tarballs hold more internal files under dist/ (agent 548 vs 420); the entry files are identical.

Commands run (exit codes)

All from the worktree, at nice priority, one package's tests at a time.

command exit
pnpm install --frozen-lockfile --ignore-scripts 0
pnpm format:check 0
pnpm lint --ignore-pattern 'docs/**' (docs/ still present; its tsconfig cannot resolve astro) 0
pnpm typecheck 0
pnpm build 0
pnpm check:exports 0
pnpm check:record-format 0
pnpm check:package-purity 0
pnpm check:pack (attw --profile esm-only on each tarball) 0
pnpm --filter ./packages/storage-sql test 0
pnpm --filter ./packages/platform-node test 0
pnpm --filter ./packages/storage-sqlite test 0
pnpm --filter ./packages/effect-agent test 0
commitlint on this commit message 0

No live model provider was used. The cloudflare and postgres package tests were not run: those packages are deleted.

Judgement calls

  1. Lint baseline. The full @systemfsoftware preset stays on. oxlint.baseline.json lists, per rule, the files that already violated it (59 rules); oxlint.config.ts switches a rule off only for those files. A new file faces every rule, which I checked with a new file using unknown. Follow-ups delete entries as each package is cleaned.
  2. scripts/verify-package-exports.ts no longer reads vite.config.ts pack entries; each tsdown.config.ts builds its entries from package.json exports, so the two cannot drift. The deleted packages' span-ownership entries and the agent-ai-decision import rule are removed with them.
  3. @effect/tsgo is pinned to 0.70.0, the version the lint preset peers on.
  4. Two upstream test comments linked a third-party issue tracker; they now describe the regression in words.
  5. .changeset/config.json's fixed group lists only the four kept packages.

Not in this PR

Rename to @systemfsoftware/*, flake, release caller, Mergify queue, relicence and docs are later PRs.

…n on Effect 4.1.4

Swap bun and vite-plus for pnpm 12.9.0, tsdown, vitest, the oxlint preset,
dprint and commitlint, keeping effect-tsgo for typechecking. Raise the Effect
catalog to 4.1.4 and defer tool-call validation to the runtime, which 4.1.4
otherwise rejects at the model boundary. Delete the upstream deploy,
benchmark and review workflows, the hosted examples, and the packages the
four published libraries do not use. Add the house CI that publishes the
checks / check aggregate.
@mergify

mergify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

This pull request is merged.

…baselines to existing files

Return the Effect catalog to 4.1.2 and drop the tool-call validation line so
this change alters no runtime behaviour. Replace the global lint disables
with a per-file baseline that switches a rule off only for files that already
violated it. Strip two third-party issue links from test comments.
@systemfsoftware-bot systemfsoftware-bot changed the title chore: build, lint, format and test with the systemfsoftware toolchain on Effect 4.1.4 chore: build, lint, format and test with the systemfsoftware toolchain Nov 23, 2026
@systemfsoftware-bot

Copy link
Copy Markdown
Contributor Author

Adversarial review: the lint baseline and the CI gate

Checked against head a62bf45.

  1. A baselined file that is edited keeps its suppressions.
    • The overrides match by path, so new violations of an already-baselined rule in an edited legacy file go unreported.
    • New files face every rule. The agent verified this: a new file using unknown is flagged by ban-unknown.
    • The gap is bounded to the files listed in oxlint.baseline.json, and each package's clean-up deletes its entries.
    • Severity: P2. A per-file violation count would close it; record it for the burn-down.
  2. A renamed or moved baselined file loses its suppression and fails lint loudly. Not silent, so not a defect.
  3. An unrecognised rule spelling. spellings() maps a rule key to its preset spellings. If a key is unrecognised, the rule stays on and lint fails loudly. Not silent.
  4. The checks / check aggregate needs static-checks and test, runs always(), and fails on any result other than success. A skipped or cancelled dependency therefore fails it. The ruleset requires only this check.
  5. Upstream's review check fails because pr-review.yml still runs from main. This PR deletes that workflow, and the ruleset does not require it.

No P0 or P1 found.

@systemfsoftware-bot

Copy link
Copy Markdown
Contributor Author

The lint baseline (oxlint.baseline.json) switches a rule off for a whole listed file, so it is an allowlist rather than a ratchet:

  • new violations of an already-baselined rule in an edited baselined file go unreported;
  • an entry whose file no longer violates the rule stays until someone prunes it by hand.

Done when a lint step fails whenever a (rule, file) entry in the baseline names a file that no longer exists, or that has zero violations of that rule. Each package's clean-up also deletes its entries.

@systemfsoftware-bot
systemfsoftware-bot merged commit 01e44c1 into main Nov 23, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant