Revision and Audit Trail
Revision and Audit Trail
Section titled “Revision and Audit Trail”This feature protects legal text integrity over time
Section titled “This feature protects legal text integrity over time”Leci includes a dedicated revision path to ensure legal content changes are traceable and attributable. This avoids silent edits that would undermine trust in legal outputs.
Current implemented mechanism
Section titled “Current implemented mechanism”The SQL function leci.apply_revision(...) performs controlled updates and logs revision records. It restricts editable fields to legal text-sensitive columns and records old/new values, actor, reason, and optional suggestion linkage.
Suggestion-to-revision lifecycle
Section titled “Suggestion-to-revision lifecycle”The intended flow is:
- suggestion submitted against a node;
- revision applied via
apply_revision; - revision persisted in
revisions; - linked suggestion status updated to
applied.
Non-negotiable invariant
Section titled “Non-negotiable invariant”Governance status
Section titled “Governance status”🚧 Planned Feature — Reviewer roles, approval policy, and SLA-based governance workflow are roadmap-defined and not fully implemented yet.
Audit quality checks
Section titled “Audit quality checks”Recommended checks for operational maturity:
- every legal text update has a revision record;
- revision actor and reason are not null in governed flows;
- suggestion state transitions are consistent when linked.