fix(okf): remove the application-specific telemetry layout and author from the adapter #76

Closed
crapougnax wants to merge 0 commits from fix/75-okf-adapter-neutral into develop
Owner

Closes #75

What

  • The telemetry special case of OKFBackendAdapter is replaced by a generic option: config.jsonCollections lists the collections kept as JSON records { meta, data } at {collection}/{uid}.json, with no index. A subclass overrides getOKFPath() for another layout (a test shows one directory per day).
  • meta.created_by is no longer filled with a made-up address when the record has no author.
  • Data directory from OKF_DATA_DIR; STUDIO_DATA_DIR is still read so deployments keep their directory.
  • Tests, README, HOWTO and the generated docs/pages/packages/okf copies use neutral examples.

Breaking

A telemetry collection is no longer JSON by default. No consumer found in the workspace relies on it; an application that does declares it in jsonCollections and overrides getOKFPath().

Tests

npx jest packages/okf: 76 passed (3 new, 1 removed). tsc --noEmit clean.

🤖 Generated with Claude Code

Closes #75 ## What - The `telemetry` special case of `OKFBackendAdapter` is replaced by a generic option: `config.jsonCollections` lists the collections kept as JSON records `{ meta, data }` at `{collection}/{uid}.json`, with no index. A subclass overrides `getOKFPath()` for another layout (a test shows one directory per day). - `meta.created_by` is no longer filled with a made-up address when the record has no author. - Data directory from `OKF_DATA_DIR`; `STUDIO_DATA_DIR` is still read so deployments keep their directory. - Tests, README, HOWTO and the generated `docs/pages/packages/okf` copies use neutral examples. ## Breaking A `telemetry` collection is no longer JSON by default. No consumer found in the workspace relies on it; an application that does declares it in `jsonCollections` and overrides `getOKFPath()`. ## Tests `npx jest packages/okf`: 76 passed (3 new, 1 removed). `tsc --noEmit` clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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>
Author
Owner

Merged into develop as part of #78.

Merged into develop as part of #78.
crapougnax closed this pull request 2026-11-19 09:09:29 +00:00
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

Pull request closed

Sign in to join this conversation.
No description provided.