# Baltique OS Core 0.78.8 — Enterprise Document & Consent Gate

Ten release kontynuuje linię 0.78.x Enterprise Integration. Nie dodaje kolejnej luźnej zakładki klinicznej. Dodaje bramkę dowodową dla dokumentów i zgód, która pracuje na bazie danych jako źródle prawdy.

## Cel

`Enterprise Document & Consent Gate` łączy:

- Case Spine,
- Journey Orchestrator,
- Work Queue,
- Communication Bridge,
- Document Assembly Engine,
- Consent Vault / signed snapshot archive.

System ocenia, czy sprawa pacjenta ma wymagane dowody dokumentowe i zgody. Brak dowodu tworzy HOLD oraz akcję w Journey/Work Queue. Podpisany, nieedytowalny snapshot zamyka blokadę.

## Nowe pliki

- `app/enterprise_document_consent_gate.php`
- `public_html/system_document_consent_gate.php`
- `public_html/upgrade_0_78_8.php`
- `public_html/assets/enterprise_document_consent_gate.css`
- `cron/enterprise_document_consent_gate_sync_cron_ovh.php`
- `database/migrations/094_core_0_78_8_enterprise_document_consent_gate.sql`
- `tools/validate_core_0_78_8_static.php`

## Nowe tabele

- `enterprise_document_requirement_blueprints`
- `enterprise_case_document_requirements`
- `enterprise_case_document_events`
- `enterprise_document_gate_runs`

## Bezpieczeństwo

Release nie podpisuje nic automatycznie, nie generuje prawnie wiążącego podpisu i nie wysyła wiadomości do pacjenta. Bramka jedynie ocenia dowody w bazie i tworzy zadania operacyjne.
