Axis 3: Components

Overview

The GCBoK defines six core components of the GitCover stack:

graph TD GCAL["GCAL - Advisory Lock"] GCEP["GCEP - Exchange Protocol"] GCSYNC["GCSYNC - Sync (Outbound)"] GCUCB["GCUCB - Unified Context Bus"] GCPN["GCPN - PrimaNota"] GCDMS["GCDMS"] GCAL -->|"Lock-Koordination"| GCEP GCEP -.->|"OSCAL/OPA Hooks"| OPA["OPA Policy Engine"] GCSYNC -->|"Outbound"| RAG["RAG / MCP"] GCUCB -->|"Guardrails"| OPA

GCDMS - GitCover Document Management System

Evidence and document management system for Git repositories. Storage follows the extension family .gc.*: generic sidecar <artefakt>.<orig-ext>.gc.md, process container .gcpn.md, signature artifact .gcsig.md, data artifact .gc.json. Tools: gc-dms (registry: scan, validate, pack, verify, check), gc-sidecar (sidecar creation), gc-docsign (GCSIG/signature), gc-v7guid (classes and identities).

The DMS registry is a directory, not a store: the originals remain at their storage location; the registry records for each document the SHA-256, the object_id and the storage_locations with provenance. The object_id is the sidecar docUid (no second identity); stored_by_pgid is the registered DMS ingest action (e.g. pgid 183), stored_by_user_id the person uuidV7. The generating action (produced_by_pgid, e.g. 180 for the invoice) is separate in the invoice/GCPN metadata record. Registry catalog: GCUV/TOP/compliance/process_gateways.json; normative values: OSS/TOP/.gitcover/dictionaries/gateway_ids.json.

Identities (do not confuse): docUid (instance), sha256 (content anchor), V7GUID (class) and GCPN-docUid (process) are four separate axes. Only the document docUid — from the base sidecar or, for an integrated sidecar, from source.v7g_docUid in the .gcsig.md — becomes document object_id; a GCSIG docUid remains a signature artifact (subject.sha = document SHA), a GCPN docUid remains a process. Detection is content-driven (embedded JSON schema instance), not extension-driven.

Order (deterministic): documents[] is sorted by sha256; storage_locations[] by source_root_id, unc_path (null last), original_path and stored_at_utc. Serialization keeps the key order stable. Temporal filters and sorting run via the uuidV7 instance docUid, not via the class V7GUID.

GCPN - GitCover PrimaNota

Metadata mechanism for forming audit-proof evidence chains (predecessor/successor) for business documents. The historical term PrimaNota denotes an ordering key that assigns a unique key for belonging together to a business transaction — e.g. an accounting entry in double-entry bookkeeping or a multi-part posting process (receivable, VAT, cost center/cost bearer allocation). GCPN transfers this principle to a UUIDv7 basis: each document receives a time-ordered identifier (RFC 9562) and is chained via predecessor/successor references to its predecessor and successor documents.

Chaining is non-chronological: a document recorded later can be inserted as a predecessor (predecessor insert) into an existing chain — decisive for GoBD Rz. 80 (progressive and retrograde audit). Match-key fields (order number, debtor, gross amount, etc.) enable automatic chain association without manual assignment.

The .gc.md format separates the human-readable part at the top (title, tables, prose) from the data artifact at the bottom (JSON code fence); JSON is preferable to YAML as data carrier (JSON-first). The file resides in Git repositories whose commit hash serves as cryptographic integrity proof.

Areas of application beyond accounting: GDPR records of processing activities (Art. 30), NIS2 incident chains, MADR architecture decisions, OIDC/OAuth token lifecycle, OSCAL assessment results.

GCPN signature container (.gcpn.md) — process accompaniment instead of individual files

For signature processes, GCPN takes concrete form as a standalone process source doc: a .gcpn.md file next to the Referenced-Doc (naming convention <Referenced-Doc-Basisname>.gcpn.md) accompanies the process of creation and signing — it is not the sidecar of the Referenced-Doc, but the process container. A separate .gcpn.md.gc.md is omitted: the container carries its own GCPN-docUid and is at the same time the index of the process.

Key conception:

First use: GVB signing with facsimile signature (Part I of Digital Signing, DS02–DS05).

Utility model protection: Az 20 2026 000 272.7 - in force. Protected subject matter: container data structure for UUIDv7-based, audit-proof business document management with dynamic predecessor/successor chaining. Patent application filed (47 claims).

GCUCB - GitCover Unified Context Bus

Context bus for runtime coordination between AI agents, policy validators and audit systems — with deterministic V7GUID addressing of context objects. GCUCB addresses the coordination overhead problem of multi-stage agent workflows (serialization and token costs of context handover) through a typed, directly addressable bus instead of text-based intermediate layers.

OPA/Rego acts as a deterministic guardrail layer: policy checking arises from rulesets, not from prompt engineering.

The IP rights situation (utility model, DPMA filing 260909) is anchored; concrete architecture and method features are described in the application documents and are presented here only in general form until publication.

Distinction

Component Layer Distinction from GCUCB
GCEP Persistence (Git-to-Git) Instance-to-instance; GCUCB = runtime bus
GCSYNC Outbound (Git -> RAG) External channel; GCUCB = internal bus
GCPN Chaining logic Evidence chains (predecessor/successor); GCUCB = transport/access

Market context: “Ontology” is not GCUCB

The market currently addresses the same fundamental problem — agents need consistent, machine-readable corporate context — under the term “Ontology”: Microsoft, for example, delivers with “Fabric IQ” (Preview) a “governed, self-service knowledge graph” as a semantic layer that agents consume as a “shared context layer” (entity types, relationships, GQL graph, OneLake bindings). That is a data and semantics layer, not a runtime transport architecture.

GCUCB attacks the same problem at the transport and access level: typed context objects, deterministic V7GUID addressing, evidence and policy coupling at runtime. The clean separation of terms is deliberate: an ontology describes what the terms mean (at GitCover: the L1–L6 dictionaries, see Concepts: Business hierarchy as ontology); GCUCB determines how agents, validators and audit systems access it at runtime. Both levels complement each other — GCUCB is not an ontology product, and the ontology does not need a platform graph if it lives Git-natively in the repo.

GCEP - GitCover Exchange Protocol

Instance-to-instance exchange protocol between Git repos on different platforms. Semantically determined by OSCAL catalogs and OPA-defined hooks/callbacks.

IETF track planned (I-D, short form: gcep). Patent application: 10 2025 003 359.1.

Protocol layers: ACP, MCP and GCEP

GCEP must not be confused with the AI agent protocols. All three solve different problems at different levels:

graph TD A["Präsentations-Ebene / UI
(z. B. VS Code)"] -->|"Agent Client Protocol (ACP)"| B["Logik-Ebene / KI-Agent"] B -->|"Model Context Protocol (MCP)"| C["Infrastruktur- & Daten-Ebene"] C -->|"GitCover Exchange Protocol (GCEP)
mit Advisory Locks"| D["Verteilte Git-Server / VCS"] style A fill:#bbdefb style B fill:#c8e6c9 style C fill:#ffe0b2 style D fill:#f8bbd0
Level Protocol Direction Purpose
UI bridge ACP (Agent Client Protocol) UI ↔ Agent Connects the user interface (e.g. VS Code) with the agent logic
AI context bridge MCP (Model Context Protocol) Agent ↔ Data Structured access of the agent to data sources (documents, tools)
Repository level GCEP Server ↔ Server Replication, synchronization and securing of state between physical Git instances

The combination is highly relevant for management: the agent works via ACP/MCP at high speed; GCEP ensures at the underlying repository level that commit and synchronization paths remain consistent.

Advisory locks in the AI age

Autonomous AI agents generate write access at high frequency. Without a locking protocol at the Git level, two agents acting in parallel — or an agent and a human clerk — can modify the same repositories at the same time and create inconsistent states (race conditions).

Aspect Advisory Lock Mandatory Lock
Operating mechanism Processes check the lock status voluntarily before writing Operating system enforces the lock hard
Behavior on timeout Agent can react strategically: move subgoal, issue UI notification Often dead system states (deadlocks)
Suitability for AI agents High - agent queries lock status in advance (e.g. via an MCP Git server) Low - blocks agent pipeline

An AI agent can query the GCEP lock status in advance (“Is this repository locked for another site?”) and adjust its planning accordingly — instead of blocking hard.

GCAL - GitCover Advisory Lock

Distributed lock mechanism between Git repos — analogous to the PostgreSQL advisory lock, but at repo level. Prerequisite for GCEP: before two instances exchange data, a lock must ensure atomic handover.

Actions and OPA rules are identified via uuidV7 (GCAL/GCEP join); the registered gates/policy UUIDs are in GCUV/TOP/compliance/{gates.json,policies/registry.json}. rule_text is only the display; classes/types run via V7GUID catalogs.

GCSYNC - GitCover Sync

Outbound channel from GitCover out into other data storage systems. Provides data for RAG systems, MCP servers and Nextcloud Shares.

See also: IP rights and patent status in IP rights. Research recognition in Research projects.

GC Sidecar (gc*.md) — accompanying document and workflow footprint

Every source document (receipt, contract, email, XRechnung) receives an accompanying document in the extension family gc{variant}.md. The variant suffix follows the processing status: gc.md (captured) → gcsig.md (signature intended/requested/required).

Basic rule: No artifact without a JSON schema. The JSON block is structured into named objects, and each object names its own $schema:

Object Schema Content
Artifact gc-sidecar-2.0 Container: document, documents[], tenant, v7g_taxonomy, saga, gcpn
document document-1.0 docUid, sha256, title, file_name, locations
documents[] Aggregate referenced other gc*.md as document { docUid }
gcpn gcpn-ref-1.0 ref = GCPN:<docUid> of the process
tenant tenant-ref-1.0 shortCode, docUid — reference to LEGAL_ENTITY (legal-entity-2.0)
v7g_taxonomy v7g-taxonomy-1.0 entries[] with v7guid, taxonomy
saga gc-saga-1.0 steps[] — workflow footprint

documents[] lists referenced other gc*.md as an aggregate (document { docUid }); gcpn references the process as gcpn-ref-1.0. There is no separate gcpn_refs schema.

Freedom from redundancy (normative)

Workflow footprint (saga)

Each step names tool, action, time, document reference and actor — each as an object with its own schema:

Field Schema Meaning
tool tool-ref-1.0 Tool as type/class: one identifier (v7guid from tools.json) + version
action saga-action-1.0 Action as type/class (v7guid from actions.json) + readable name
at_ticks — (integer) Time as CLR DateTime.Ticks (UTC, 100 ns since 0001-01-01): highest granularity, sort/filter key for GCAL/GCEP
document — (reference) sha256 of the affected source document (in containers: element of documents[]); no own schema, the document is already described
actor actor-ref-1.0 Union hitl (personUid) / agent (only with sessionRef to a session log) / service (account)

Rules: append-only (earlier steps remain unchanged), idempotent (same tool + action + document hash does not create a second entry), deterministic (time from the artifact timestamp, not from now()), no null values and no empty containers.

Actor evidence: An agent ID is only kept if a session log exists as a Git artifact (gc-session-log-1.0, JSONL with rollover, by default in .gitignore); without a log the ID is omitted. HITL is identified via personUid (PII reference), service via the account.

HITL part

The Markdown header is for humans: no SHA-256, no tenant entry (both are in the JSON), but relative Markdown links to the source document and PDF view (work in the MD viewer, title as tooltip).

Check

gc-sidecar check <ordner> checks the conventions mechanically (schema IDs, forbidden fields, time specifications, mandatory saga fields, HITL part) and reports orphaned accompanying documents separately; gc-sidecar prune <ordner> --apply marks orphaned sidecars as obsolete (service action, no deletion).

GCSIG and GCPN — signature artifact and process container

Both artifacts arise in the invoice run and in contract processing, but have different tasks and must not carry the same data. The separation is a core rule: Document-related signature data belong in the GCSIG, process data in the GCPN.

Feature GCSIG (gcsig.md) GCPN (gcpn.md)
Role Signature/approval artifact of exactly one document Process/DMS container for a process with multiple documents
Creation from the accompanying document gc.md as soon as a document is to be signed or approved with the process (branch, GCAL anchor), independent of a signature
Cardinality 1 document → 1 GCSIG (multiple signature acts in signatures[]) 1 process → n documents (source docs and GCSIG references)
Core arrays documents[], persons[], actors[], signatures[], gcpns[] documents[], parents[], relations[]
Signature data yes: signatures[].phases.events[] (status ENUM, at_ticks), saga no — no signature/events blocks at container level
Lifecycle of the document — saga (tool/action/time/document) and phase events of the process — lifecycle, gcal, origin/merge
Purpose in operation evidence who signed/approved what and when O(1) queries in the DMS: “which documents belong to process X, where are they, which signature artifacts exist”
Example 261010 Aufhebungs- und Abloesungsvereinbarung AFJD-ADA MV-001 KW-001.gcsig.md 261010 Aufhebungs- und Abloesungsvereinbarung AFJD-ADA MV-001 KW-001.gcpn.md (Measure A: MV-001, RN-001, BT-001 + 3 GCSIGs)

Why both? The process “Contract Reorganization AFJD → ADA” comprises three agreements, each with its own signature. The GCPN holds them together as a container (one docUid, one GCAL anchor); the signature of each individual agreement is in its own GCSIG. If the GCPN carried the signature data, there would be two truths — exactly the redundancy that is avoided.

References instead of copies: Both artifacts name only docUid/sha256 of the documents or actorUid/personUid of the acting parties. The content is with the source document, the personal data in the PII aggregate (persons/<personUid>/), the signature history in the GCSIG.

Check: gc-sidecar check <ordner> controls, among other things, that signatures[] is present and signature.document.docUid points to an element in documents[]; signature data at container level are reported as a finding.

Standardization, Git, gh servers and gc runtime — four levels

GitCover is often described in shorthand as “Git + tooling”. For compliance, operation and further development, the separation of four levels is decisive:

Level Question Examples Not
GitCover standardization What applies? V7GUID register, booking-1.0, gcpn-container-2.7, gc-sidecar-2.0, classes.json, 14_ordinal_counter.de.md No server, no tool, no data instance
Git as audit-proof storage How is it stored immutably? SHA-256 objects, commits, tags, signatures, commit graph, bundles No Gitea/GitLab/GitHub, no API, no CI
gh- server systems How is collaboration done? Gitea, GitLab, GitHub: PRs, issues, CI, OAuth, web UI, mirror No standard, no SSoT, no runtime replacement
gc- runtime How is it executed and checked? gc-ledger, gc-sidecar, gc-docsign, gc-dialog, Kestrel APIs, MCP, agents/harness No normative source, no shadow SSoT

1. GitCover standardization

Standardization lies in the OSS normative root (OSS/TOP/.gitcover/specs, schemas, dictionaries) and is presented in GCBoK, not produced. It is versioned, but not identical with Git history: history shows when a standard changed; the standard says what applies.

Examples: V7GUID register, class/action/tool dictionaries, JSON schemas, specifications for time model, ordinal/counter, GCPN, GCSIG, sidecar.

2. Git as audit-proof persistent storage

Git is the content-secure object store: blobs, trees, commits, tags, SHA-256, commit graph, signatures. Audit-proof storage arises from the Git object model and history — not from a specific server.

A Git repository remains complete even if Gitea, GitLab or GitHub are unreachable. A git bundle or a filesystem backup is sufficient as a recovery path.

3. gh- server systems

Gitea, GitLab and GitHub are collaboration and hosting systems. They provide web UI, pull requests, issues, CI, permissions, OAuth and mirroring. These functions are important, but replaceable. A server change must not alter the artifacts, SHAs and the standard.

gh- metadata (PR numbers, issue IDs, pipeline IDs) are references to collaboration, not the identity of the artifacts.

4. gc- runtime

gc- processes implement and check the standard: CLI tools, Kestrel APIs, MCP, agents/harness, schedulers, indexes, databases, RAG/SLM/LLM. They are executable, replaceable and may restart.

Runtime state — locks, sessions, queues, caches, DB indexes, RAG vectors — is derived and ephemeral. The GCAL lock is coordination, not evidence and not a standard. capabilities is runtime configuration, not an accounting standard.

Distinction rules

  1. Standard has a place: Every normative statement has an $id, a schema or a specification in the OSS normative root — not in a PR, issue or chat.
  2. Persistence is Git: Every durable truth is a Git object with SHA-256; not a database, a server or a cache.
  3. gh- is replaceable: A change Gitea → GitLab → GitHub must not change artifact semantics.
  4. gc- is replaceable: A tool or API change must not change the standard; the standard remains, the implementation changes.
  5. Runtime is not SSoT: Locks, indexes, sessions and RAG are derived; they may be lost and rebuilt.
  6. File extension is standard: .gc.md, .gcpn.md, .gcsig.md are convention, not a tool preference. Write paths produce .gc.*; .v7g.* is not a write path.
  7. Server metadata are references: PR/issue/pipeline IDs are not document identity; the identity is docUid/SHA-256.
  8. Humans decide, machines execute: HITL approvals and commits are governance; agents/harness are execution.

Indicators from practice

Mnemonic

The standard says what applies. Git says what remains. gh- says how we collaborate. gc- says how we execute it.