Skip to content

Revision and Audit Trail

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.

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.

The intended flow is:

  1. suggestion submitted against a node;
  2. revision applied via apply_revision;
  3. revision persisted in revisions;
  4. linked suggestion status updated to applied.

🚧 Planned Feature — Reviewer roles, approval policy, and SLA-based governance workflow are roadmap-defined and not fully implemented yet.

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.