Task: Tenancy and seeding

Table of Contents

This page documents a task in the Tenancy foundation story. It captures the goal, current status, acceptance, and any notes or results.

Goal

Update every populate script so foundational data is scoped to the system tenant.

Status

Field Value
State DONE
Parent story Tenancy foundation
Now Completed 2026-02-01.
Waiting on None.
Next None.
Last touched 2026-02-01

Acceptance

  • All upsert_* calls pass ores_iam_system_tenant_id_fn() as the first argument.
  • Reference data, configurations, and metadata correctly seeded against the system tenant.

Plan

Captured during execution; cleared into the parent story on close.

Notes

Mechanical change but high-impact; one missed call surfaces as a validation-trigger failure on the next run.

Result

All seed data tenant-scoped.

Emacs 29.1 (Org mode 9.6.6)