Cotton code
285 lines · 5.7 KB · JSONRaw
{  "id": "cut",  "name": "Cut",  "plural": "Cuts",  "picture": {    "photo": "photo:c9d03b54e2ad188b023ba603aa1335e1a880a8acc22d7e593114d7c05354dfa7"  },  "builtin": false,  "engine": null,  "producer": {"token_id": "synthetic-cut-writer-token"},  "title": "name",  "date": "started_at",  "project": null,  "order": null,  "columns": [    {      "key": "name",      "name": "Build",      "type": "text",      "required": true,      "placeholder": "Phone 278"    },    {      "key": "platform",      "name": "Platform",      "type": "choice",      "choices": [        "phone",        "mac"      ],      "format": "words"    },    {      "key": "commit",      "name": "Commit",      "type": "text"    },    {      "key": "state",      "name": "State",      "type": "choice",      "choices": [        "building",        "uploaded",        "ready",        "installed",        "refused"      ],      "format": "words"    },    {      "key": "started_at",      "name": "Started",      "type": "date",      "format": "ago"    },    {      "key": "uploaded_at",      "name": "Uploaded",      "type": "date",      "format": "ago"    },    {      "key": "ready_at",      "name": "Ready",      "type": "date",      "format": "ago"    },    {      "key": "installed_at",      "name": "Installed",      "type": "date",      "format": "ago"    },    {      "key": "refusals",      "name": "Refusals",      "type": "number"    },    {      "key": "refusal_reasons",      "name": "Why it was refused",      "type": "longtext"    },    {      "key": "reports",      "name": "What it reported",      "type": "longtext",      "readonly": true    },    {      "key": "carries",      "name": "What it carries",      "type": "longtext"    },    {      "key": "waiting_on",      "name": "Waiting on",      "type": "text",      "readonly": true    },    {      "key": "waiting_since",      "name": "Waiting since",      "type": "date",      "format": "ago",      "readonly": true    },    {      "key": "disk_free_bytes",      "name": "Free disk bytes at admission",      "type": "number"    },    {      "key": "keep_free_bytes",      "name": "Disk floor bytes at admission",      "type": "number"    },    {      "key": "record_page_ms",      "name": "Record page (ms)",      "type": "number",      "readonly": true    },    {      "key": "record_page_budget_ms",      "name": "Record page budget (ms)",      "type": "number",      "readonly": true    },    {      "key": "cold_start_ms",      "name": "Cold start (ms)",      "type": "number",      "readonly": true    },    {      "key": "cold_start_budget_ms",      "name": "Cold start budget (ms)",      "type": "number",      "readonly": true    },    {      "key": "speed_measured_on",      "name": "Measured on",      "type": "text",      "readonly": true    },    {      "key": "speed_gates",      "name": "Budget refuses the cut",      "type": "bool",      "readonly": true    }  ],  "slip": {    "title": "name",    "subtitle": [      "state",      "commit"    ],    "trailing": "started_at",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list",    "summary": [      {        "op": "count",        "where": {          "state": "building"        },        "label": "building"      }    ]  },  "sort": {    "column": "started_at"  },  "group": {    "column": "state",    "sections": [      {        "heading": "Building",        "values": [          "building",          "uploaded"        ]      },      {        "heading": "Ready to install",        "values": [          "ready"        ]      },      {        "heading": "Installed",        "values": [          "installed"        ],        "closed": true      },      {        "heading": "Refused",        "values": [          "refused"        ],        "closed": true      }    ]  },  "empty": {    "title": "No cuts",    "message": "A cut row is written when a phone or Mac build starts."  },  "create": {    "label": "Add a cut"  },  "page": [    {      "heading": null,      "columns": [        "name",        "platform",        "commit",        "state"      ]    },    {      "heading": "Times",      "columns": [        "started_at",        "uploaded_at",        "ready_at",        "installed_at"      ]    },    {      "heading": "Held",      "columns": [        "waiting_on",        "waiting_since"      ]    },    {      "heading": "Disk admission",      "columns": [        "disk_free_bytes",        "keep_free_bytes"      ]    },    {      "heading": "Speed",      "columns": [        "record_page_ms",        "record_page_budget_ms",        "cold_start_ms",        "cold_start_budget_ms",        "speed_measured_on",        "speed_gates"      ]    },    {      "heading": "Refusals",      "columns": [        "refusals",        "refusal_reasons"      ]    },    {      "heading": "Reports",      "columns": [        "reports"      ]    },    {      "heading": "Carries",      "columns": [        "carries"      ]    }  ],  "instructions": "One row per phone or Mac build cut from main: when it started, uploaded, became ready and was installed, how many times it was refused and why, and its speed — record page and cold start in milliseconds against their budgets, where they were measured, and whether the budget refuses the cut (from 1 Nov 2026). A Mac row says the Mac is not measured yet. Disk admission records the free space and floor read before the cut began. While a cut's build is held waiting for the build lock, RAM or a stage lease, Waiting on and Waiting since say what holds it; both clear when it is admitted."}