importFoundation// A screen's board, through the boundary: read off the database's catalogue// (`definitions.catalogue`, `DefinitionCatalogues`) and// `definitions.passedOver` filed (design note 26203e21 §4, §8). The row is// handed over as its JSON, because what a board MEANS — its closed set of// parts — is CottonUI's `DefinitionCatalogue.board`, and this side only carries it./// The board a screen draws, as the core answered it.publicstructDrawnBoard: Sendable, Equatable {/// The board, as JSON — the person's own row, or the shipped default.publiclet definition: Data/// Why a row stored for the screen was not drawn.publiclet passedOver: String?publicinit(definition: Data, passedOver: String? = nil) {self.definition = definitionself.passedOver = passedOver }}publicprotocolBoardsCalling: Sendable {/// The board the screen `id` draws ("home", "tools", "database").func board(_ id: String) asyncthrows -> DrawnBoard/// A part of a kind this build does not draw, filed as ONE Feedback row/// per database, board and part, ever. Answers whether a row was filed. @discardableResultfunc passedOver(board: String, part: String, databaseId: String, databaseName: String) asyncthrows -> Bool}/// The core's own answers.publicstructCoreBoards: BoardsCalling {privatelet core: any CottonCallingpublicinit(core: any CottonCalling) {self.core = core }publicfunc board(_ id: String) asyncthrows -> DrawnBoard {guardlet board = tryawaitDefinitionCatalogues.shared.catalogue(core).boards[id] else {throwCatalogueRefusal.malformed("there is no board \(id)") }return board }publicfunc passedOver(board: String, part: String, databaseId: String, databaseName: String) asyncthrows -> Bool {let answer = tryawait core.call(CottonMethod.definitionsPassedOver,PassedOver(board: board, part: part, databaseId: databaseId, databaseName: databaseName),as: Filed.self)return answer.filed }privatestructPassedOver: Encodable {let board: Stringlet part: Stringlet databaseId: Stringlet databaseName: String }privatestructFiled: Decodable { let filed: Bool }}