---
typeId: req
recordId: benac-doc-001
fields:
  title: Couch/Pouch-compatible operational document model
  statement: Benac shall use a Couch/Pouch-compatible document model for
    operational storage and replication of structured metadata, package records,
    descriptor records, signed claim records, trust records, capability grants,
    storage offers, storage leases, compute offers, compute leases, invocations,
    evidence records, effect records, agent records, privacy records, and sync
    configuration. Couch/Pouch-compatible documents may store JSON projections
    of logical Benac objects and may carry replicated or local operational
    metadata. Cryptographic identity for signed or content-addressed structured
    payloads shall be derived from the logical Benac object encoded as DRISL,
    not from the entire Couch/Pouch document. Couch/Pouch-managed metadata and
    host-local operational metadata shall not be part of the payload used to
    compute a CID or verify a signature. If a schema needs information similar
    to document id, revision, conflict, verification, or availability state,
    that information shall be represented as explicit schema-defined logical
    payload fields.
  rationale: Replication must shape the data model from day one, but Couch/Pouch
    revision metadata and local operational state are not stable cryptographic
    payloads. Benac separates operational replication from structured content
    identity.
  verification: Document schema validation and local PouchDB or equivalent
    Couch-compatible replication adapter demonstration. Tests verify that
    changes to _id, _rev, conflict metadata, local verification state, local
    availability state, or UI state do not change the structured document CID,
    while changes to the logical payload do.
  testable: true
  status: draft
  area: BENAC-DOC
  sourceDocument: /home/johnb/Downloads/benac_syrs_v0_4_integrated_authentication.md
  sourceVersion: v0.4
  sourceSections:
    - 10.4 Local-first document store, claims, and replication
  order: 37
---
