{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "registry.schema.json", "title": "The app registry: one row per app built from this tree", "type": "object", "additionalProperties": false, "required": [ "apps" ], "properties": { "$schema": { "type": "string" }, "apps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/app" } } }, "definitions": { "bundleId": { "type": "string", "pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9-]*)+$" }, "variant": { "type": "object", "additionalProperties": false, "required": [ "flavour", "bundleId", "storeName", "ascAppId", "testflightGroups", "coreFlavour", "dsyms" ], "properties": { "flavour": { "type": [ "string", "null" ], "pattern": "^[a-z][a-z-]*$" }, "bundleId": { "$ref": "#/definitions/bundleId" }, "storeName": { "type": "string", "minLength": 1 }, "ascAppId": { "type": [ "string", "null" ], "pattern": "^[0-9]{10}$" }, "testflightGroups": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true }, "coreFlavour": { "enum": [ "real", "dev", null ] }, "dsyms": { "type": [ "string", "null" ], "pattern": "^[a-z][a-z-]*$" } } }, "app": { "type": "object", "additionalProperties": false, "required": [ "slug", "name", "kit", "phase", "active", "platforms", "icon", "ios", "android", "walk" ], "properties": { "slug": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }, "name": { "type": "string", "minLength": 1 }, "label": { "type": "string", "minLength": 1, "description": "What the home screen says under the icon when it is not the store name; absent means the store name. Apple refuses a display name an App Store app already carries (ITMS-90129: Books, Music are Apple's own), so a short name that collides ends in a full stop (Books. for Cotton Books), and its Dev build says Books Dev." }, "kit": { "type": [ "string", "null" ], "pattern": "^[a-z][a-z0-9_]*$" }, "phase": { "enum": [ "planned", "provisioned", "development", "production", "parked" ], "description": "planned: a row and nothing at Apple; provisioned: bundle ids, profiles, Fastfile rows and the flavour scaffold made (pnpm app:provision), no App Store record yet; development: on TestFlight in development mode; production: live data; parked: never cut." }, "retired": { "type": "object", "additionalProperties": false, "required": [ "into" ], "properties": { "into": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "description": "The app that took its place." }, "identity": { "type": "boolean", "description": "true: its store identity (bundle ids, App Store and Play records, signing) went to `into` too, so this row holds none and builds nothing." } }, "description": "A parked app another app took over. Its kit's tables, tools and MCP stay; only the phone app is gone." }, "active": { "type": "boolean", "description": "One of the few apps the owner is testing now; a release tick cuts only active apps." }, "platforms": { "type": "array", "minItems": 0, "uniqueItems": true, "items": { "enum": [ "ios", "android" ] }, "description": "Where it is built. Empty only for a retired row (`retired`), which builds nothing." }, "icon": { "type": "string", "minLength": 1 }, "ios": { "type": [ "object", "null" ], "additionalProperties": false, "required": [ "scheme", "target", "share", "live", "dev" ], "properties": { "scheme": { "type": "string", "minLength": 1 }, "target": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*$" }, "share": { "type": "boolean" }, "provider": { "description": "The family carries Cotton Keys' passkey provider extension (Provider, .provider).", "type": "boolean" }, "healthkit": { "description": "The app reads Apple Health: its App ID carries the HealthKit capability (Cotton Health).", "type": "boolean" }, "notifications": { "description": "The family carries Cotton chat's notification service extension (Notifications, .notifications).", "type": "boolean" }, "widgets": { "description": "The family carries Cotton chat's notification service extension (Notifications, .notifications).", "type": "boolean" }, "appGroup": { "description": "false names an app with no App Group at all (Loom: its own project, no extensions, no shared container); absent means group..", "const": false }, "live": { "$ref": "#/definitions/variant" }, "dev": { "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/variant" } ] } } }, "android": { "type": [ "object", "null" ], "additionalProperties": false, "required": [ "package", "devPackage", "project" ], "properties": { "package": { "$ref": "#/definitions/bundleId" }, "devPackage": { "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/bundleId" } ] }, "project": { "type": "string", "minLength": 1 }, "signing": { "type": "object", "description": "The SHA-256 (colon hex) of each certificate the installed app is signed with, per side: Play App Signing's for a store build. Public, never a key. The open host's assetlinks.json and the passkey origins are made from these (pnpm -s passkey:associations).", "additionalProperties": false, "required": [ "live", "dev" ], "properties": { "live": { "type": "array", "items": { "type": "string", "pattern": "^[0-9A-F]{2}(:[0-9A-F]{2}){31}$" } }, "dev": { "type": "array", "items": { "type": "string", "pattern": "^[0-9A-F]{2}(:[0-9A-F]{2}){31}$" } } } } } }, "walk": { "type": "object", "additionalProperties": false, "required": [ "phoneSlot", "shellHost", "steps" ], "properties": { "phoneSlot": { "type": [ "integer", "null" ], "minimum": 1, "maximum": 99, "description": "The synthetic number slot the walk signs in with: the last digit of the app's number on each Mac, from the standing simulators list." }, "shellHost": { "type": "boolean", "description": "Hosts the shared shell walk; exactly one app does." }, "steps": { "type": "array", "items": { "$ref": "#/definitions/step" } }, "whole": { "type": "object", "additionalProperties": false, "description": "What the one whole walk (DeckWalk's testWalkWhole, gated on WALK_WHOLE=1) needs of this app beyond its kit's catalogue (scripts/lib/registry.ts walkCatalogue: the tool, the fan's views in manifest order, the view lists are kept on, the account acts). Every key is optional; a view is one of the kit's view ids.", "properties": { "rows": { "type": "integer", "minimum": 0, "description": "03: the cards the first view holds at least once signed in (the dev object's seeded rows); 0 when the object starts empty. Default 1." }, "held": { "type": "string", "description": "06: the view whose first card is held and its acts run. Default: the first view." }, "opened": { "type": "string", "description": "05: the view whose first row is opened. Default: the first view." }, "relaunch": { "type": "string", "description": "10: the view left before the relaunch. Default: the second view." }, "largest": { "type": "array", "items": { "type": "string" }, "minItems": 2, "maxItems": 2, "description": "09: the two views drawn at the largest text. Default: the first two." }, "empty": { "type": "array", "items": { "type": "string" }, "description": "03, 04, 09: views that may stand empty once signed in, saying their own words (every view may when rows is 0)." }, "says": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string", "minLength": 1 } }, "description": "04: words a view's first card must say, by view id; a word is found when any of the card's words contains it." }, "opens": { "type": "array", "items": { "type": "string", "minLength": 1 }, "description": "05: words the opened row must say, each one of its words whole." }, "choose": { "type": "object", "additionalProperties": { "type": "string", "minLength": 1 }, "description": "06: for an act that raises a choice tier, the choice taken: its leading words, or \"next\" for the tile beside the one the tier opens on; the deck must change, and its Undo, where offered, is taken. An act not named here is raised and closed untouched." }, "leave": { "type": "object", "additionalProperties": { "type": "string", "minLength": 1 }, "description": "06: acts the walk never runs, each with its reason (said in the step's PASS line)." }, "seed": { "type": "object", "additionalProperties": false, "required": [ "door", "line" ], "properties": { "door": { "type": "string", "minLength": 1 }, "line": { "type": "string", "minLength": 1 } }, "description": "A row landed by Plus's door, its one line typed, when the held view stands empty once signed in (an object that starts empty)." }, "notApplicable": { "type": "object", "propertyNames": { "pattern": "^(0[1-9]|1[01])$" }, "additionalProperties": { "type": "string", "minLength": 1 }, "description": "Steps this app has no part in, by number, each with its reason: the step walks as a PASS saying it, never a silent skip." } } }, "android": { "type": "object", "additionalProperties": false, "required": [ "steps" ], "description": "The app's Android walk on the Linux box (pnpm android:walk ): steps as data the walker (apps/android/walker) runs, written from the iPhone's DeckWalk steps so the two can be compared. A step's vocabulary and its checks are the Android walk library's (Step, stepProblem); {\"use\": } inlines a shared walk fragment; \"on\": \"b\" walks a step on the second phone.", "properties": { "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/androidStep" } }, "fresh": { "type": "boolean", "description": "New synthetic numbers every run (the shared walk settings' fresh), for an app whose object a thrown-away emulator cannot rejoin (a sealed vault it founded)." }, "pin": { "type": "boolean", "description": "Each phone gets the shared walk settings' devicePin as its screen lock before the steps (the sealed key's unlock asks the phone's own lock)." } } } } } } }, "step": { "type": "object", "additionalProperties": false, "required": [ "test", "env" ], "description": "A DeckWalk test that is this app's own, with the env knobs its gate needs.", "properties": { "test": { "type": "string", "pattern": "^testWalk[A-Za-z0-9]+$" }, "env": { "type": "object", "propertyNames": { "pattern": "^WALK_[A-Z0-9_]+$" }, "additionalProperties": { "type": "string" } } } }, "androidStep": { "type": "object", "minProperties": 1, "description": "One walker step: exactly one action key (the Android walk library's ACTIONS) and the common keys; checked by pnpm apps:check through settingsProblems." } } }