Skip to content

D68d — kg schema test checks a project's own packs, with what they import

  • Status: Accepted — amends D68b (what kg schema test loads once a project has its own packs)
  • Date: 2026-11-15
  • Origin: a scaffolded pack with a person type could be recorded (D68b), but kg schema test reported it clashing with the politics pack's person
  • Area: schema

Decision

  • With project packs, kg schema test loads those and what they import. The project's packs/ folder is read first (D68b), and the shipped packs that none of the project's packs import are left out. A graph built on the project's packs leaves them out too (D68), so a project's person does not clash with the politics pack's.
  • Without project packs, it loads every pack, as before. That covers kg's own repository and CI, and a $KG_PACKS folder used on its own.
  • Fixtures are checked for the packs it loads, and it says which packs those are.

Why

  • The set-up flow stalled on a clash that never happens in use. SETUP step 3 ends when kg schema test passes. A type name shared with a shipped pack the project does not import failed that check, though no graph built on the project's packs would load both.

Consequences

  • Two project packs that clash still fail, since a project's packs are checked together.
  • A shipped pack a project does not import is not checked in that project. kg's own CI checks every shipped pack.