Skip to content

Strapi Policies & Configuration ​

Strapi stores policy definitions. The compliance package evaluates them.

The distinction is authoring versus activation — see Strapi Overview.

What Strapi holds ​

  • compliance policies
  • compliance rules
  • risk signal definitions
  • eligibility rules
  • contribution policies
  • pilot configuration

What a decision records ​

A compliance decision must record:

  • policy version — the versioned ruleset identifier, e.g. PILOT-0.1
  • rule code — the code of the rule that produced the decision, e.g. DRIVER-001
  • decision — ALLOW / REVIEW / BLOCK
  • reason codes — stable identifiers, not free text
  • timestamp

rule key is not a term

Earlier drafts referred to a "rule key". There is no such field. Rules are identified by code, drawn from the registry in Compliance Engine, and compliance_rules.code is globally UNIQUE.

A rule that cannot be named by code cannot be queried, reviewed or traced to the policy version that produced it.

Policy version is one string, not a pair ​

Earlier drafts split this into policyCode + policyVersion. It is a single versioned namespace:

text
PILOT-0.1
PILOT-0.2
RTA-APPROVED-1.0
RTA-APPROVED-1.1

Immutability ​

Policy changes must not rewrite historical decisions.

A new ruleset is activated as a new policy_version row in PostgreSQL. Existing rows are never mutated, and compliance_decisions is append-only.

Without this, tightening the policy silently changes the apparent meaning of every past decision — a reviewer looking at a journey approved six months ago would be shown today's rules instead of the ones that actually applied.

Activation ​

Authoring a rule in Strapi has no effect on live decisions. Activation is an administrative act performed through the Admin API, recorded in audit_logs.

KHAWI — same route, go together.