Achse 6: Vorlagen

OSCAL-Katalog-Template

Das GCBoK definiert deutsche Compliance-Taxonomien als OSCAL-Kataloge - ein Marktneuheits:

oscal_catalog:
  groups:
    - id: "gobdControls"
      title: "GoBD - Nachvollziehbarkeit"
      controls:
        - id: "GOBD-01"
          title: "Progressive Navigation"
          description: "Jeden Geschäftsvorfall rückwärts verfolgbar"
    - id: "bsiControls"
      title: "BSI IT-Grundschutz Module"
      controls:
        - id: "APP.3.1.A1"
          title: "Datensicherung"
    - id: "dsgvoControls"
      title: "DSGVO Anförderungen"
      controls:
        - id: "DSGVO-Art.17"
          title: "Recht auf Vergessenwerden"

OPA-Policy-Template

Beispiel einer Rego-Policy für Beleg-Validierung:

package gitcover.compliance

deny[msg] {
    input.class == "INVOICE"
    not input.prev_sha256
    msg := "INVOICE muss prev-hash referenzieren"
}

deny[msg] {
    input.class == "PAYMENT"
    not input.gpg_fingerprint
    msg := "PAYMENT muss GPG-signiert sein"
}

allow {
    count(deny) == 0
}

V7GUID-Schema

Das kanonische V7GUID-Metadaten-Schema:

v7guid: "0197a3b2-f3c0-7b00-8001-000000000042"
class: INVOICE          # PERSON | INVOICE | PAYMENT | CONTRACT | ...
sha256: "7d4e2f..."
prev_sha256: "3f2a1c..."  # null für Genesis-Beleg
gpg_fingerprint: "ABCD1234..."
timestamp_iso: "2026-06-14T11:18:00+02:00"
gobd_periode: "FY2026"

DMS-Container-Template

Der .v7g.zip-Container für GCDMS (Umfang abhängig von Use Case):

document.v7g.zip
├── .v7g.md          # Metadaten, ggfs. mit Strukturinformationen in Markdown Artefakten (JSON/YAML/XML, SHA256 Hash des Urdokuments, etc.)
├── .v7g.sig         # GPG-Signatur
├── document.pdf     # Originaldokument (Urdokument)
├── document.json    # Maschinenlesbare Extrakte
├── document.xml     # Maschinenlesbare Extrakte (z.B. X-Rechnung)
└── attachments/     # Anhänge

Format-Auswahl je nach Use Case

Format Verwendung
.v7g.json Maschinenlesbar, OPA-Policies, OSCAL-Export
.v7g.md Hyperlinks, menschlich lesbar, Git-Web-UI
.v7g.yaml Konfigurationsfile, Human-Editable

V7GUID-Sidecar-Template

Kanonisches Sidecar (*.v7g.md) für ein digitales Originaldokument. Schema: https://gitcover.org/schemas/v7g-sidecar-1.0.schema.json; die Instanz-Metadaten folgen record-metadata-1.0.schema.json (ISO 15489).

DocID = uuidv7 (Instanz-Identifikator) vs. v7guid (Klassen-/Kontext-Identifikator). Beide werden im Sidecar geführt und über composite_key ({v7guid}:{uuidv7}) verknüpft. Mindestinhalt: sha256 des Originaldokuments.

# V7G Sidecar - {original_filename}

**SHA-256:** `{sha256}`
**Tenant:** {tenant}
**Kategorie:** {category}
**Sphäre:** {sphere}
**Tags:** {tags}

```json
{
  "$schema": "https://gitcover.org/schemas/v7g-sidecar-1.0.schema.json",
  "uuidV7": "{uuidv7}",
  "sha256": "{sha256}",
  "title": "{original_filename}",
  "original_filename": "{original_filename}",
  "locations": [
    { "unc_path": "./{tenant}/{path}", "from": "{YYMMDD}", "to": null, "note": "Primärspeicherort" }
  ],
  "v7g_taxonomy": [
    { "v7guid": "{v7guid}", "taxonomy": "{tenant}/{taxonomy}", "valid_from": "{YYMMDD}", "valid_to": null }
  ],
  "gcpn": { "prima_nota_ref": null, "journal_entry_ref": null },
  "obsolescence": { "status": "active", "superseded_by": null, "last_checked_at": "{ts}", "last_checked_by": "{user}" },
  "verification": { "verified_at": "{ts}", "verified_by": "auto", "method": "sha256_file", "intact": true },
  "tags": ["{tag}"],
  "sphere": "{sphere}"
}
```

DocID-Vergabe: Wird das Dokument neu ins DMS aufgenommen, erzeugt das Sidecar-Tool eine UUIDv7 aus einem TimeStamp-Argument als DocID (uuidV7). Default-Quelle ist die Datei-mtime; liefert Filename oder Inhalt ein fachliches Datum, wird dieses verwendet (siehe Achse 5: Vorgehensweisen).