Document profile: OKF v0.2 with provenance and rights status #52

Open
opened 2026-11-18 22:57:06 +00:00 by crapougnax · 0 comments
Owner

Goal

Define the document profile the Studio reads and writes, on OKF v0.2, before curation (#38 step 4a) writes to tenant repositories and ingestion (4b) produces documents. Every document records who produced it, who confirmed it, and under which rights it is held.

Design

Subject Choice
Base OKF v0.2: type required; no empty fields (omit the key); unknown keys preserved; root content/index.md declares okf_version: "0.2".
Required keys type, title, category (theme folder), soa, generated, rights.
Provenance generated: { by, at } replaces timestamp; verified: [{ by, at }]. Actors: human:<account> for a curator, process:<id> for ingestion, <producer>/<version> for a model. Ingestion writes process: only; a curator's save writes human:<account> and is the author of the commit. Trust tier derived, never stored. revision is dropped: the commit is the revision.
Rights status rights, closed vocabulary: open (licence + URL required), licensed (contract or subscription), own (produced by the tenant), quote-only (record and short quotations only), unknown, excluded. Set at ingestion (unknown by default), changed by a curator.
Effect of rights unknown / excluded: not indexed, never quoted in answers. Full text in the repository only for open and own; otherwise record and original summary only, the source stays in private storage.
Attribution sources: [{ id, resource, title, author, publisher, year, isbn/doi, licence }]; resource points to the original in tenant storage.
Source identity Originals addressed by content hash in tenant storage; ingestion refuses a second copy of a hash and links the existing document instead.
Facets Declared by the tenant with a closed vocabulary (canonical value + synonyms); ingestion and the curation form only produce canonical values.
thematics Theme identifiers only (folders of the repository).
Theme index index.md per theme regenerated in the same commit as any document change.
Slug Fixed at creation; changing the title does not rename the file.
Removal Withdrawing a document removes it everywhere: repository, storage, index (rights holder opt-out).

Steps

  • 1. Profile written down (docs, EN + FR) and validated by a parser shared by curation and ingestion; v0.1 documents read in compatibility, written as v0.2.
  • 2. Facet vocabularies in the tenant settings (Resources page).
  • 3. Rights status shown and editable in curation; enforcement in indexing and answers.

Blocks #38 step 4a.

## Goal Define the document profile the Studio reads and writes, on **OKF v0.2**, before curation (#38 step 4a) writes to tenant repositories and ingestion (4b) produces documents. Every document records **who produced it, who confirmed it, and under which rights it is held**. ## Design | Subject | Choice | | --- | --- | | Base | OKF v0.2: `type` required; no empty fields (omit the key); unknown keys preserved; root `content/index.md` declares `okf_version: "0.2"`. | | Required keys | `type`, `title`, `category` (theme folder), `soa`, `generated`, `rights`. | | Provenance | `generated: { by, at }` replaces `timestamp`; `verified: [{ by, at }]`. Actors: `human:<account>` for a curator, `process:<id>` for ingestion, `<producer>/<version>` for a model. Ingestion writes `process:` only; a curator's save writes `human:<account>` and is the author of the commit. Trust tier derived, never stored. `revision` is dropped: the commit is the revision. | | Rights status | `rights`, closed vocabulary: `open` (licence + URL required), `licensed` (contract or subscription), `own` (produced by the tenant), `quote-only` (record and short quotations only), `unknown`, `excluded`. Set at ingestion (`unknown` by default), changed by a curator. | | Effect of `rights` | `unknown` / `excluded`: not indexed, never quoted in answers. Full text in the repository only for `open` and `own`; otherwise record and original summary only, the source stays in private storage. | | Attribution | `sources: [{ id, resource, title, author, publisher, year, isbn/doi, licence }]`; `resource` points to the original in tenant storage. | | Source identity | Originals addressed by content hash in tenant storage; ingestion refuses a second copy of a hash and links the existing document instead. | | Facets | Declared by the tenant with a closed vocabulary (canonical value + synonyms); ingestion and the curation form only produce canonical values. | | `thematics` | Theme identifiers only (folders of the repository). | | Theme index | `index.md` per theme regenerated in the same commit as any document change. | | Slug | Fixed at creation; changing the title does not rename the file. | | Removal | Withdrawing a document removes it everywhere: repository, storage, index (rights holder opt-out). | ## Steps - [ ] 1. Profile written down (docs, EN + FR) and validated by a parser shared by curation and ingestion; v0.1 documents read in compatibility, written as v0.2. - [ ] 2. Facet vocabularies in the tenant settings (Resources page). - [ ] 3. Rights status shown and editable in curation; enforcement in indexing and answers. Blocks #38 step 4a.
Sign in to join this conversation.
No labels
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
modaka/studio#52
No description provided.