IF Commons GitHub

Lab layers

0001Active

0001-lab-layers · owner if · domain commons

Requirements

FR-001checkpassing

The library MUST be Kanon: its manifest library.ts MUST declare the table of its units in the field kanon, with the units src/governance/, src/logical/ and src/physical/, and the shared checker of @intellectual-frontiers/kanon MUST find no import that the table does not allow.

Enforced (check): .github: cd commons/lab && bun run verify — suite/layers.test.ts: every file of the real tree is in a unit and no import is outside its row

Proved by: lab/suite/layers.test.ts

Written in: lab/about.ts, lab/library.ts, lab/src/governance/mod.ts, lab/src/logical/mod.ts, lab/src/mod.ts, lab/src/physical/mod.ts

Tests: passed: suite/layers.test.ts the shared checker finds nothing in the real tree

FR-002checkpassing

bun run verify in the folder of the library MUST run the TypeScript 7 compiler, the checks of the specification kit, the check of the level L1, the layers check of Kanon, the trace check and the tests, and MUST fail on any finding that is not held by a baseline that only shrinks.

Enforced (check): .github: cd commons/lab && bun run verify — suite/layers.test.ts: verify runs every check of the library

Proved by: lab/suite/layers.test.ts

Written in: lab/tools/check.ts

Tests: passed: suite/layers.test.ts verify runs every check of the library

Acceptance scenarios

  1. Given the real tree of the library, When the layers check runs, Then every file is in a unit and no import is outside its row, per FR-001.
  2. Given the package of the library, When its verify script is read, Then it runs every check, per FR-002.

Out of scope

  • Everything the library will do: its next specifications.

Edge cases

  • A file in no unit of the table: it is a finding of the layers check, per FR-001.
  • A verify that leaves out a check: it is a finding of the test, per FR-002.

Assumptions

  • The shared checker of Kanon and the manifest check of the libraries are on the branch that holds this library.

Open questions

  • None.

Key entities

  • Lab - the library.

Success criteria

SC-001success criterion

The layers check of Kanon finds nothing in the real tree.

Review & acceptance checklist

  • [x] Every requirement is testable (MUST / MUST NOT), not aspirational
  • [x] No company fact is asserted here
  • [x] Every open item is marked, not silently decided

Titles, headings, exports, tables, columns and requirements. Esc closes.