IF Commons GitHub

Estate: layers

0001Active

0001-estate-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 src/governance/ and src/logical/, and the shared checker of @intellectual-frontiers/kanon MUST find no import that the table does not allow.

Enforced (check): .github: cd commons/estate && bun run verify — suite/layers.test.ts

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

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

Tests: passed: suite/layers.test.ts the shared checker finds nothing in the real tree, and a file in no unit is layers/unclass

FR-002checkpassing

Governance MUST import nothing but @intellectual-frontiers/core and the governance of @intellectual-frontiers/grc (for durations); Logical MUST import Governance, core and the governance and logical of @intellectual-frontiers/grc; no unit MUST reach another by a relative path.

Enforced (check): .github: cd commons/estate && bun run verify — suite/layers.test.ts

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

Tests: passed: suite/layers.test.ts below may not import above, a unit reaches another through exports, and each unit imports

FR-003checkpassing

The package MUST export ., ./governance and ./logical.

Enforced (check): .github: cd commons/estate && bun run verify — suite/layers.test.ts

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

Written in: estate/src/mod.ts

Tests: passed: suite/layers.test.ts the package exports the library and its layers

FR-004checkpassing

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, the tests under Bun and the check of the package, and MUST fail on any finding that is not held by a baseline that only shrinks.

Enforced (check): .github: cd commons/estate && bun run verify — suite/layers.test.ts

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

Tests: passed: suite/layers.test.ts verify runs the compiler, the specification checks, the layers check, the trace check, the

FR-005checkpassing

The library MUST be released as estate-v<version> (commons 0026-works-versioning) and MUST be held until the owner says it is ready.

Enforced (check): .github: cd commons/estate && bun run verify — suite/layers.test.ts

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

Written in: estate/tools/check.ts, estate/tools/pack.ts

Tests: passed: suite/layers.test.ts the release record agrees with the manifest and the package

FR-006checkpassing

No source of the library MUST read a file, reach the network or run a program.

Enforced (check): .github: cd commons/estate && bun run verify — suite/layers.test.ts

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

Tests: passed: suite/layers.test.ts below may not import above, a unit reaches another through exports, and each unit imports ; passed: suite/layers.test.ts the library reads no file, reach no network and run no program

Acceptance scenarios

  1. Given the real tree of the library, When the layers check runs, Then it finds nothing, per FR-001 and FR-002.
  2. Given a source that imports the process module, When the sources are read, Then it is a finding, per FR-006.

Out of scope

  • Observing a machine: a dialect or a connector.
  • Storing an estate: it is typed data in files, kept by Git.

Edge cases

  • The module at the top of src/ that re-exports the layers is in a unit of its own, per FR-001.

Assumptions

  • The reserved name of the library makes it the host of a family of its own, declared in its manifest.

Open questions

  • None.

Key entities

  • Estate - the assets of an organization.

Success criteria

SC-001success criterion

The library does no input or output, so every function of it is a pure function a test can run.

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.