release: OKF v0.2 document model, GitWorkingCopy.discard(), spring cleaning #79

Merged
crapougnax merged 15 commits from develop into main 2026-11-19 10:30:01 +00:00
Owner

Release of develop to main: every changed package is published on latest by the CI and tagged @quatrain/<package>@<version>.

Content

  • #72 @quatrain/git: GitWorkingCopy.discard().
  • #74 @quatrain/okf: OKF v0.2 document model.
  • #76 / #78 spring cleaning (#77): no client data or business vocabulary in the packages; FacetTaxonomyProfile in okf-ingest; CI check of forbidden words.

Breaking (see #78)

okf-ingest (agroecology profile and fixed domain fields removed, judge dimensions renamed), mdm (soil domain removed), okf (no built-in telemetry layout).

After the merge

Deprecate on npm every earlier version of every @quatrain/* package of this repository (#77).

Wait for the CI of develop to be green before merging.

🤖 Generated with Claude Code

Release of `develop` to `main`: every changed package is published on `latest` by the CI and tagged `@quatrain/<package>@<version>`. ## Content - #72 `@quatrain/git`: `GitWorkingCopy.discard()`. - #74 `@quatrain/okf`: OKF v0.2 document model. - #76 / #78 spring cleaning (#77): no client data or business vocabulary in the packages; `FacetTaxonomyProfile` in `okf-ingest`; CI check of forbidden words. ## Breaking (see #78) `okf-ingest` (agroecology profile and fixed domain fields removed, judge dimensions renamed), `mdm` (soil domain removed), `okf` (no built-in `telemetry` layout). ## After the merge Deprecate on npm every earlier version of every `@quatrain/*` package of this repository (#77). Wait for the CI of `develop` to be green before merging. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(git): GitWorkingCopy.discard() to drop local work and come back to the remote state
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Successful in 4m58s
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 5m6s
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
Quatrain Core CI / Publish Changed Packages to npm (push) Has been skipped
5a0429b593
An application that commits and pushes one change at a time needs a way out
when the remote refuses a push because someone pushed first. discard()
fetches the branch and resets the working copy to it: commits not pushed,
pending changes and untracked files are dropped, ignored files kept. Against
an empty remote it comes back to an empty branch; without a remote it drops
pending changes only. The remote is never written to.

Closes #71

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(okf): OKF v0.2 document model — parse, write, provenance, validation with profiles, index files
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 5m7s
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Successful in 5m12s
Quatrain Core CI / Publish Changed Packages to npm (push) Has been skipped
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
eda2209802
Applications that read and write OKF bundles need the document model of
OKF v0.2, not only the backend adapter. A document module, independent of
the adapter:

- parseOkfDocument / serializeOkfDocument: unknown keys kept in their order,
  spec keys written first, a bare verified mapping read as a list, the body
  written as given so it reads back unchanged;
- provenance: actors, trust tier, staleness, last change with the legacy
  timestamp as fallback, helpers to stamp generated and add a verification;
- validateOkfDocument with profiles: required keys, no empty values, no
  v0.1 keys, and rules of the application;
- upgradeOkfDocument: timestamp to generated, citations list reported;
- renderOkfIndex: index.md per section 8, okf_version at the root only.

Attested computations (section 10) are out of scope.

Closes #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge pull request 'feat(git): GitWorkingCopy.discard() to drop local work and come back to the remote state' (#72) from feat/71-git-working-copy-discard into develop
Some checks failed
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Has started running
Quatrain Core CI / Publish Changed Packages to npm (push) Has been cancelled
5719f2544a
Reviewed-on: #72
Merge branch 'develop' into feat/73-okf-v02-document
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Successful in 5m29s
Quatrain Core CI / Publish Changed Packages to npm (push) Has been skipped
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 7m25s
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
2ab8801f2e
Merge pull request 'feat(okf): OKF v0.2 document model — parse, write, provenance, validation with profiles, index files' (#74) from feat/73-okf-v02-document into develop
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Successful in 6m29s
Quatrain Core CI / Publish Changed Packages to npm (push) Successful in 4m28s
01c91f8c4a
Reviewed-on: #74
fix(okf): remove the application-specific telemetry layout and author from the adapter
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 5m22s
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
be45aa1044
OKFBackendAdapter special-cased a `telemetry` collection with a path built
from application fields, and wrote a made-up operator address when a record
had no author. A generic package must not carry an application's vocabulary
or data.

- `config.jsonCollections` names the collections kept as JSON records
  `{ meta, data }` at `{collection}/{uid}.json`, with no index; a subclass
  overrides `getOKFPath()` for another layout (one directory per day...).
- No author is invented: `meta.created_by` is left out when unknown.
- Data directory from `OKF_DATA_DIR`; `STUDIO_DATA_DIR` still read.
- Tests, README, HOWTO and the generated docs pages use neutral examples.

BREAKING CHANGE: a `telemetry` collection is no longer stored as JSON by
default; declare it in `jsonCollections` and override `getOKFPath()` to keep
a dated layout.

Closes #75

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core is generic. Client data, product names and the vocabulary of one
application's domain leave the packages, their tests and their docs.

- okf-ingest: the soils / crops / climates / itineraries fields and the
  agroecology profile are removed; FacetTaxonomyProfile builds a profile
  from the facets an application declares (closed vocabularies supported),
  and monographs carry the profile's fields instead of fixed ones. The judge
  rubric is domain-neutral (namingAccuracy, contentCompleteness).
- okf-ingest-catalog: neutral wording, no soil section; examples use a
  mineral catalog.
- mdm: the soil-science domain (AgronomyDomain, SoilProfile) is removed.
- auth-github: the default description of a created repository names no
  product. cli: no personal path; CORE_DEPLOY_PATH instead.
- Tests, READMEs, HOWTOs, the MDM specification and docs/pages use neutral
  examples; personal file links point to the public repository; an orphan
  docs page and a tracked test log are removed.
- CI refuses a list of client and domain words, kept as SHA-256 hashes
  (bin/check_forbidden_terms.js).

BREAKING CHANGE: okf-ingest drops AgroecologyTaxonomyProfile and the fixed
domain fields of its types; judge dimensions taxonomicAccuracy and
bioIndicationCompleteness are renamed namingAccuracy and contentCompleteness.
mdm no longer exports AgronomyDomain nor SoilProfile.

Refs #77

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge remote-tracking branch 'sovereign/fix/75-okf-adapter-neutral' into chore/77-spring-cleaning
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 3m25s
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
90427d9990
Merge pull request 'chore: spring cleaning — no client data or business vocabulary in the packages' (#78) from chore/77-spring-cleaning into develop
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 5m3s
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
Documentation Image / Build & Push Documentation Image to qtrn.io (push) Successful in 7m45s
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Successful in 10m22s
Quatrain Core CI / Publish Changed Packages to npm (push) Successful in 5m2s
7b225035b4
Reviewed-on: #78
chore(gitflow): merge main back into develop
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 4m32s
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
bff55a5a6d
main carries the last release (#69) and its version bump, which was never
merged back into develop, so develop -> main (#79) conflicts on
@quatrain/git. Resolution, as in #70:
- package version: the stable 1.0.2 from main, higher than the develop
  beta 1.0.2-beta.1, otherwise publish_all would finalize it into 1.0.2,
  already on npm
- .version_hashes.json: the main entry, so the next stable run detects the
  change (discard()) and publishes the next patch

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(gitflow): merge develop into the merge-back branch
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 3m26s
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
da87643642
develop published new betas meanwhile (git 1.0.2-beta.2, okf-ingest
1.0.2-beta.1). Same resolution: the stable versions and hashes of main,
so the next stable run publishes the next patch of both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge pull request 'chore(gitflow): merge main back into develop' (#80) from chore/merge-main-into-develop into develop
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Successful in 4m22s
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 4m39s
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
Quatrain Core CI / Publish Changed Packages to npm (push) Successful in 4m15s
ecf3240bda
Reviewed-on: #80
Sign in to join this conversation.
No description provided.