chore: spring cleaning — no client data or business vocabulary in the packages, stable release, deprecate earlier versions #77

Closed
opened 2026-11-19 08:18:21 +00:00 by crapougnax · 1 comment
Owner

Goal

No client data and no business-domain vocabulary in the packages of Core. A package is generic: its code, defaults, prompts, tests, README/HOWTO and generated docs use neutral examples (acme, example.org). Domain knowledge belongs to the application that uses the package.

Then publish every package as stable and deprecate the previous versions on npm, since published tarballs ship src/ and carry what is removed here.

Inventory

Client data

  • docs/mdm-core-architecture-specification.md: a client's hardware (board, SKU) and the APN of its SIM.
  • packages/okf-ingest-catalog/src/__test__/catalog.test.ts: a path of a client corpus.
  • packages/auth-rbac test and README: a client's repositories and curator role.
  • packages/mdm/src/Mdm.test.ts: a client SKU.
  • packages/okf (adapter): handled by #75.

Business domain baked into generic packages

  • packages/mdm/src/domain/AgronomyDomain.ts, SoilProfile.ts (+ test, exports): a soil-science domain. Removed from Core; an application declares its own archetypes.
  • packages/okf-ingest: soils / crops / climates / itineraries fields in the types, the monograph pipeline and the prompts; an agroecology taxonomy profile; a botanical judge rubric; agronomic examples in prompts and tests. Replaced by generic facets declared by the caller (facets: Record<string, string[]>), a neutral judge rubric, and no built-in domain profile.
  • packages/okf-ingest-catalog: botanical / pharmacological wording and a soils section. Neutral classification fields.
  • packages/searchengine-qmd, packages/ai-openai tests, packages/okf document test: domain examples.

Product names and personal paths

  • packages/auth-github/src/GithubAuthAdapter.ts: default repository description names a product (runtime string).
  • packages/app/HOWTO.md: two product case studies; packages/auth-github/HOWTO.md: a product URL scheme; packages/state-machine/HOWTO.md: domain example; comments in git-forgejo / git-github adapters.
  • packages/cli/src/commands/deploy.ts: hard-coded personal path.
  • GEMINI.md, guidelines/CONTRIBUTING_AGENTS.md, packages/core-cli HOWTO: file:///Users/... links, personal gist.
  • docs/pages/packages/*: regenerated from the packages; docs/public/api-reference: regenerated by the docs workflow.

Release

  1. Merge into develop (beta), then develop → main: every package published on latest.
  2. npm deprecate every earlier version of every @quatrain/* package, pointing to the new stable one.

Done when

A check in CI refuses a list of client and domain terms in packages/ and docs/ (kept outside the repository, or as hashes, so the list itself does not leak), and the release above is out.

## Goal **No client data and no business-domain vocabulary in the packages of Core.** A package is generic: its code, defaults, prompts, tests, README/HOWTO and generated docs use neutral examples (`acme`, `example.org`). Domain knowledge belongs to the application that uses the package. Then publish every package as **stable** and **deprecate the previous versions** on npm, since published tarballs ship `src/` and carry what is removed here. ## Inventory **Client data** - `docs/mdm-core-architecture-specification.md`: a client's hardware (board, SKU) and the APN of its SIM. - `packages/okf-ingest-catalog/src/__test__/catalog.test.ts`: a path of a client corpus. - `packages/auth-rbac` test and README: a client's repositories and curator role. - `packages/mdm/src/Mdm.test.ts`: a client SKU. - `packages/okf` (adapter): handled by #75. **Business domain baked into generic packages** - `packages/mdm/src/domain/AgronomyDomain.ts`, `SoilProfile.ts` (+ test, exports): a soil-science domain. Removed from Core; an application declares its own archetypes. - `packages/okf-ingest`: `soils` / `crops` / `climates` / `itineraries` fields in the types, the monograph pipeline and the prompts; an agroecology taxonomy profile; a botanical judge rubric; agronomic examples in prompts and tests. Replaced by generic **facets** declared by the caller (`facets: Record<string, string[]>`), a neutral judge rubric, and no built-in domain profile. - `packages/okf-ingest-catalog`: botanical / pharmacological wording and a `soils` section. Neutral classification fields. - `packages/searchengine-qmd`, `packages/ai-openai` tests, `packages/okf` document test: domain examples. **Product names and personal paths** - `packages/auth-github/src/GithubAuthAdapter.ts`: default repository description names a product (runtime string). - `packages/app/HOWTO.md`: two product case studies; `packages/auth-github/HOWTO.md`: a product URL scheme; `packages/state-machine/HOWTO.md`: domain example; comments in `git-forgejo` / `git-github` adapters. - `packages/cli/src/commands/deploy.ts`: hard-coded personal path. - `GEMINI.md`, `guidelines/CONTRIBUTING_AGENTS.md`, `packages/core-cli` HOWTO: `file:///Users/...` links, personal gist. - `docs/pages/packages/*`: regenerated from the packages; `docs/public/api-reference`: regenerated by the docs workflow. ## Release 1. Merge into `develop` (beta), then `develop` → `main`: every package published on `latest`. 2. `npm deprecate` every earlier version of every `@quatrain/*` package, pointing to the new stable one. ## Done when A check in CI refuses a list of client and domain terms in `packages/` and `docs/` (kept outside the repository, or as hashes, so the list itself does not leak), and the release above is out.
Author
Owner

Every published version except the current latest is now deprecated with "Superseded: use @ or later.", checked on the registry version by version. No latest is deprecated. Packages without a successor (auth-basic, renamed auth-http-basic; logger; storage-aws) are deprecated entirely.

Every published version except the current `latest` is now deprecated with "Superseded: use <package>@<latest> or later.", checked on the registry version by version. No `latest` is deprecated. Packages without a successor (`auth-basic`, renamed `auth-http-basic`; `logger`; `storage-aws`) are deprecated entirely.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quatrain/core#77
No description provided.