chore(openspec): generate parafering-audit-trail spec#383
Merged
Conversation
Add the parafering-audit-trail change covering: - paraferingAuditEntry schema (REQ-PAT-1) - Event-sourced audit writes via ParafeerTransitionEvent (REQ-PAT-2) - Append-only validator (REQ-PAT-3) - Reuse of OpenRegister audit-trail-immutable (REQ-PAT-4) - Content snapshot at transition moment (REQ-PAT-5) - Archive export endpoint with MDTO 1.0 envelope (REQ-PAT-6) - Manifest index page for auditor browsing (REQ-PAT-7) - Retention policy aligned with Archiefwet — 20y decisions / 7y other (REQ-PAT-8) Sister to parafeerroute-engine, parafering-actions, voorstel-management. Strict validation passes: 'openspec validate --type change --strict' OK. No code.
Contributor
Quality Report — ConductionNL/procest @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ✅ | ||||
| phpcs | ❌ | ||||
| phpmd | ✅ | ||||
| psalm | ✅ | ||||
| phpstan | ✅ | ||||
| phpmetrics | ✅ | ||||
| eslint | ❌ | ||||
| stylelint | ❌ | ||||
| composer | ✅ | ✅ 100/100 | |||
| npm | ✅ | ✅ 407/407 | |||
| PHPUnit | ⏭️ | ||||
| Newman | ⏭️ | ||||
| Playwright | ❌ |
Spec coverage: 3% (21 tests / 673 specs)
Quality workflow — 2026-05-11 11:58 UTC
Download the full PDF report from the workflow artifacts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Generate the
parafering-audit-trailOpenSpec change. No code in this PR — spec only.Layers a legally-sufficient, append-only audit trail on top of the existing parafeerroute lifecycle (sister to
parafeerroute-engine,parafering-actions,voorstel-management). Every state transition (started,paraferd,advised,terugsturen,route-changed,completed) is recorded as aparaferingAuditEntrywith actor, actor role, timestamp, reason, content snapshot, and IP — sufficient for Awb bezwaar/beroep procedures and Archiefwet handover to the gemeentelijk e-Depot.Requirements (8 total, REQ-PAT-1 .. REQ-PAT-8)
paraferingAuditEntryschema registration (10 properties, 2 enums, Schema.orgAction)ParafeerTransitionEventaudit-trail-immutable— no parallel hash chain / Merkle treetype: 'index') for auditor browsing — no bespoke Vue viewKey Design Decisions
parafeeractie—parafeeractiemust remain updateable by the routing service (e.g. step supersession); audit must be append-only. Conflating them weakens both.parafering-audit-trailas a hard dependency of the routing service.audit-trail-immutable; theauditEntryHash(SHA-256) provides per-entry tamper detection without a chain.Validation
Test plan
openspec validate parafering-audit-trail --type change --strict)parafeerroute-engine,parafering-actions,voorstel-managementresolve