Archief & e-Depot
Admin guide: see
docs/admin/archief-edepot.mdfor the Dutch-language administrator runbook. Developer guide: seedocs/Technical/archief-edepot-architecture.md.
Automated overdracht (handover) of closed cases to a municipal or regional e-Depot conform GiHandover (Generieke Handover Specificatie) and MDTO 1.2 (Metadata Toepassingsprofiel voor Overheidsinformatie).
Specs
openspec/changes/archief-edepot-handover-01-schema-config/specs/archief-edepot-handover/spec.md(chain members 01-08)
Features
Retention rule management (V1)
- DIV admins maintain
BewaarTermijnRegelobjects per zaaktype + trigger combination. - Default VNG rules (omgevingsvergunning 5y, wmo 10y, subsidie permanent) seed on first install.
- Effective dating: rules apply to new triggers; existing closed cases are not retroactively re-triggered.
Daily retention trigger daemon (V1)
OverdrachtTriggerDaemon(BackgroundJob) wakes daily, evaluates eachBewaarTermijnRegelagainst eligible cases, createsOverdrachtTriggerobjects for the calculated transfer date.- Idempotent: a (zaakId, regelId) pair never produces a duplicate trigger.
SIP bundle assembly (V1)
MetadataBundlerServicegenerates MDTO XML validated against XSD 1.2.DocumentExportServicematerialises Nextcloud files into a temporary export tree.SipBundleBuilderServicepackages MDTO + documents into a GiHandover BagIt bundle with SHA-256 checksums.
e-Depot submission (V1)
EDepotSubmitterServicesends SIPs through a configurableEDepotAdapter(default: openconnector-backed).- Retry with exponential backoff (default 5 attempts, 60s initial backoff).
- Concurrency cap (default 5 parallel SIPs).
Proof of transfer (V1)
- On acceptance,
ArchiefBewijsrecords the e-Depot receipt id, checksum, and acceptance timestamp. - Bewijs is immutable (write-once); verification recomputes the SHA-256 against the archived bundle.
Rollback / corrective handover (V1)
RollbackManagerServicerequests a rollback when the adapter supports it.- Otherwise it produces a
correctieVanSIP referring back to the original transaction.
Batch processing & monitoring (V1)
- Dashboard with stat cards (ready / in-progress / failed / completed / total transferred), triggers table and batch-jobs table.
- Quick actions: initiate batch, retry failed, view proof.
Audit (V1)
OverdrachtAuditLogappend-only log captures every event (rule change, trigger, build, submit, accept, reject, retry, rollback, verify) per BIO 8.3.1.
Entities
BewaarTermijnRegelOverdrachtTriggerSipBundelOverdrachtTransactieArchiefBewijsOverdrachtAuditLog
See ADR-000 for field definitions.