# Field: Knowledge Organization, Archives & Provenance

## Why This Field Matters to Storyweaver

The Storyweaver pipeline produces durable artifacts: `source-ledger.md`, `story-metadata.json`, `episode-packet`, `revision-dossier.md`. These are not just files — they are archival information packages with provenance chains. This field answers: *why a source ledger? why a metadata schema? why index conventions? what makes an episode packet reusable across future sessions?*

## Canonical Concepts

| Concept | Definition | Source |
|---------|-----------|--------|
| **OAIS (Open Archival Information System)** | ISO 14721 reference model defining three information package types — Submission (SIP), Archival (AIP), Dissemination (DIP) — and six functional entities for long-term digital preservation | CCSDS (2012) |
| **Provenance** | The documented history of the origin, custody, and ownership of a resource; in W3C PROV, expressed as a graph of entities, activities, and agents with typed relationships | W3C PROV-DM (2013) |
| **Fonds / Respect des fonds** | Archival principle: keep records created by the same entity together and do not intermix with records from other creators; each session/agent has its own archival fonds | Jenkinson (1922); Schellenberg (1956) |
| **Dublin Core** | A 15-element metadata element set (title, creator, subject, description, publisher, date, type, format, identifier, source, language, relation, coverage, rights) for describing any networked resource | DCMI (1995–2020) |
| **FAIR principles** | Findable, Accessible, Interoperable, Reusable — four principles for scientific data management; findability requires persistent identifiers; interoperability requires shared vocabularies | Wilkinson et al. (2016) |
| **BagIt** | IETF RFC 8493; a hierarchical file packaging format for reliable transfer and storage of digital content — a "bag" contains payload files and a manifest with checksums | Kunze et al. (2018) |
| **Finding aid / EAD** | A structured document describing the content, context, and extent of an archival collection — the human and machine-readable index that makes a collection navigable | SAA; EAD3 standard |
| **Chain of custody** | The documented and unbroken transfer of custody of a record from creator to current holder; breaks in the chain undermine evidential integrity | Bearman (1994) |

## Academic References

| # | Author(s) | Title | Year | URL / DOI |
|---|-----------|-------|------|-----------|
| 1 | CCSDS / ISO | *Reference Model for an Open Archival Information System (OAIS)* ISO 14721:2012 | 2012 | https://public.ccsds.org/pubs/650x0m2.pdf |
| 2 | W3C | *PROV-DM: The PROV Data Model* (W3C Recommendation) | 2013 | https://www.w3.org/TR/prov-dm/ |
| 3 | Wilkinson, M.D. et al. | "The FAIR Guiding Principles for Scientific Data Management" | 2016 | doi:10.1038/sdata.2016.18 |
| 4 | Kunze, J. et al. | *The BagIt File Packaging Format* (RFC 8493) | 2018 | https://www.rfc-editor.org/rfc/rfc8493 |
| 5 | Dublin Core Metadata Initiative | *DCMI Metadata Terms* | 2020 | https://www.dublincore.org/specifications/dublin-core/dcmi-terms/ |
| 6 | W3C | *Resource Description Framework (RDF) 1.1 Concepts* | 2014 | https://www.w3.org/TR/rdf11-concepts/ |
| 7 | Klyne, G. & Carroll, J.J. | *RDF: Concepts and Abstract Syntax* (W3C Recommendation) | 2004 | https://www.w3.org/TR/rdf-concepts/ |
| 8 | Schellenberg, T.R. | *Modern Archives: Principles and Techniques* | 1956 | Society of American Archivists reprint |
| 9 | Bearman, D. | *Electronic Evidence: Strategies for Managing Records in Contemporary Organizations* | 1994 | Archives & Museum Informatics |
| 10 | Society of American Archivists | *Encoded Archival Description (EAD3)* | 2015 | https://www.loc.gov/ead/ |

*All URLs: training-knowledge; official standards pages are stable but not live-verified in this session.*

## Mapping to Storyweaver Portal Design

- **OAIS SIP/AIP/DIP model** → Storyweaver's export packet maps directly: the session workspace is the SIP (raw materials submitted), `exports/story-packet.md` is the AIP (archivally processed, with metadata and manifest), and the disseminated story.md is the DIP (delivered to the reader/next agent).
- **W3C PROV-DM** → `source-ledger.md` and `revision-dossier.md` should encode provenance triples: `entity` (each artefact version), `activity` (each agent invocation), `agent` (each named agent), with `wasGeneratedBy`, `wasDerivedFrom`, `wasAttributedTo` relationships.
- **FAIR principles** → Episode packets should be: Findable (persistent session ID in `story-metadata.json`), Accessible (readable without proprietary tools), Interoperable (Dublin Core elements in metadata), Reusable (license field, provenance chain, revision history).
- **BagIt** → The `exports/` folder structure follows the BagIt pattern: `data/` contains payload, `manifest-sha256.txt` contains checksums, `bag-info.txt` contains metadata. This is already achievable with the current file layout.
- **Finding aid / INDEX.md** → Each session's `INDEX.md` is a finding aid: it lists artefacts, their scope, dates, and access points. EAD3 vocabulary (scope note, access point, arrangement) should inform its structure.

## Engineering Implications

- `story-metadata.json` should include at minimum: `dc:title`, `dc:creator` (agent list), `dc:date`, `dc:identifier` (session UUID), `dc:source` (source-ledger reference), `prov:wasGeneratedBy` (pipeline run reference).
- `source-ledger.md` entries: `{source_id, title, url_or_path, access_date, used_by_agents[], usage_type, authority_level}`.
- Session folder naming convention: `{ISO8601-date}--{uuid}--{slug}/` — the current PDE naming pattern already follows this. It is archivally sound.
- Checksums: the export steward should generate SHA-256 hashes for all files in `exports/` and write them to `exports/manifest.txt` — a minimal BagIt compliance gesture.

## Narrative / Chronicle Implications

Archival science teaches that a record's value lies not just in its content but in its context — who created it, when, under what conditions, in relation to what other records. Chronicle episodes can use this framing: every session is not just a transcript but a *record* with archival integrity. The provenance chain is the memory the chronicle cannot lose.

The fonds principle applies to the Miadi Chronicle: each participant (human, agent, session) has their own archival fonds. Miette's voice episodes are not interchangeable with Mia's design notes — they are distinct series in the same collection.

## Risks / Cautions / Anti-Patterns

- **Provenance theater**: adding `prov:wasGeneratedBy` fields without actually tracking which agent version generated which artefact is worse than no provenance — it creates false confidence.
- **Over-specification**: implementing full OAIS compliance for a mid-fi design pass is scope explosion. Use OAIS as design vocabulary, not as a compliance framework.
- **Broken chain of custody**: if the session folder is renamed, moved, or restructured mid-session, the provenance chain breaks. Establish the folder convention before the first agent writes.

## Lines Worth Carrying into Voice Chronicle

> "In archival science, a record's value is not in its content alone but in its context — who made it, when, for whom, from what."

> "The export packet is not just a deliverable. It is an archival information package — a SIP submitted to the future."

> "FAIR asks: can someone find it, open it, use it, and trust it? That is not a data question. That is a relational question."

## Visual Motifs for Grok Imagine

- An archival box open on a table, each folder labeled with a session UUID — the fonds of a storytelling AI visible as physical record
- A provenance graph — nodes as artefacts, edges as `wasGeneratedBy` and `wasDerivedFrom` — glowing teal on a dark background
- A BagIt bag drawn as a literal woven bag, each thread a file, the manifest-tag a label tied to the handle
