This repo holds the macOS app shells of a free, open-source, Swift-native creative suite: Flare (2D animation), Design (vector and UI design), Photo (raster editing), Library (photo catalog) and Halo (motion graphics). The engines live in qbtrix/creative-core. Many agents work here at once; these rules keep that safe and fast. AGENTS.md points here.
Cloud workers run on Ubuntu and cannot build SwiftUI. On Linux, Package.swift
declares only the Model targets, so scripts/ci there builds and tests the
Models and runs the lints (app-state rule, design lint, C4, jscpd). Everything
under Sources/*App/ and Sources/SuiteUI/ is compiled only on macOS: by
the fast lane's batch gate before your PR lands (scoped to the batch's apps),
and by the full macOS job on dev once a feature is built. Neither runs
for your PR alone, and you never start one yourself for routine work. So:
- Put every bit of logic you can in the Model target, where you can test it.
- Keep view code small, follow
docs/design.md, and copy the shape of a view that already builds. A UI mistake the batch gate catches comes back asneeds-fixon your PR; one only the full run sees shows up in the next feature CI as a "dev is red" issue whose culprit range names your PR. - The
macOS tests K/Njobs upload thesnapshots-Kartifacts (PNGs written byTests/AppSnapshotTests;macOSis the gate job over them), and the report-onlymacOS journeysjob (its own workflow, journeys.yml, which each CI run ondevdispatches) clicks through every app (UITests/<X>JourneyTests.swift), uploading whole-window screenshots asui-screens. Find a run withgh run list --workflow ci.yml --branch dev(--workflow journeys.ymlfor the journeys), thengh run download <id> -p 'snapshots-*'(-n ui-screensfrom a journeys run). A user-facing feature adds or extends its app's journey test (docs/engineering.md, Human-like UI tests).
| Target | Builds on | What it is |
|---|---|---|
<X>Model |
Linux + macOS | View-model state and logic for app X. Foundation only; calls creative-core. |
<X>App |
macOS | The SwiftUI app: a window built from SuiteUI. Reads its Model, calls its methods. |
SuiteUI |
macOS | The shared design system: tokens, Liquid Glass primitives, the window shell. |
<X>ModelTests |
Linux + macOS | Model tests. |
SuiteUITests, AppSnapshotTests |
macOS | SuiteUI tests; the snapshot PNGs. |
AppAuditTests |
Linux + macOS | The app audit's checks and their tests (docs/blueprints/app-audit.md). |
creative-core is pinned to one commit: revision: in Package.swift, recorded
in the committed Package.resolved. You build against that commit, not core's
main. The pin moves only through a bump PR from scripts/bump-core [<core sha>]
("chore(core): bump creative-core to ", the core range and a link to each
core PR in its body), which runs every Model test target and the brush perf
suites first. Both files are protected, so the supervisor runs the macOS job on
the bump and merges it. scripts/ci fails when the two files disagree.
X is Flare, Design, Photo, Library or Halo. Each app is one line (label
line:flare, ...) and SuiteUI is its own line (line:suiteui).
- A line never edits another line's targets. Flare work touches only
FlareModel,FlareAppand their tests. SuiteUI work touches only SuiteUI and its tests. - A missing SuiteUI component: file an issue on this repo labelled
needs-uiandline:suiteuisaying what you need, use a plain SwiftUI placeholder in your app, and keep going. Don't build the component in your app's target. - A missing engine feature: file an issue on qbtrix/creative-core labelled
needs-corewith the API you need and an acceptance test. Keep going with what exists; never copy engine code into a Model. A merged core feature reaches the apps only through a bump PR (scripts/bump-core, merged by the supervisor), so start work that uses the new API once that bump is ondev.
- If you were given an issue, do that issue.
- Otherwise pick the highest-priority open issue labelled
gapon your line that is not labelledin-progress(p1beforep2, then the lowest number). Addin-progressbefore you start:gh issue list --label gap --label line:flare --state open --json number,title,labels gh issue edit <n> --add-label in-progress
- Orient. Read this file,
docs/engineering.md, the issue, and the code it touches. For UI work also readdocs/design.md. If the issue depends on one that has not merged, pick another. - Branch from dev.
git fetch origin && git switch -c <branch> origin/dev. Never branch from or targetmain: it only takesdevSHAs that passed full CI. - Implement with tests. Model behavior gets a Swift Testing test first. A
view change gets its state into a snapshot in
AppSnapshotTestsif no existing snapshot shows it. - Gate. Run
scripts/ci --changed. It must printCI: PASS. It runs every lint and builds every target (a shared change can break any app), then runs only the tests of the targets your branch touched sinceorigin/dev:Sources/<X>Modelruns<X>ModelTests,Sources/<X>Appthat app'sAppSnapshotTestssuites,SuiteUISuiteUITests,SuiteModelevery Model's tests, andPackage.swiftall of them (scripts/test-scopeholds the table). Plainscripts/ciis the full gate CI runs. Neither runs the perf and timing tests inTests/perf-suites.txt: they run nightly on the captain's Mac (perf-nightly), never in CI. On Linux it covers the Model targets and the lints; the macOS job ondevcatches the rest. It is your whole check: no CI runs on your PR, and you never start CI yourself for routine work (nogh workflow run). - Ship. Push, then open ONE small PR to
devwithCloses #<n>, thefast-lanelabel, the snapshot PNGs your change touches, and these two lines at the end of the body for the head you pushed:After every later push, rerunFast-Check: pass Head: <full sha from git rev-parse HEAD>scripts/ci --changedand update theHead:line to the new head; the lane ignores a marker for an older head. Then stop.# body.md: what and why, Closes #<n>, the PNGs, then the two lines for $(git rev-parse HEAD) gh pr create --base dev --label fast-lane --title "<type(scope): what>" --body-file body.md # after a later push, once scripts/ci --changed passed on it: move the marker to the new head gh pr view <n> --json body --jq .body | sed "s/^Head: .*/Head: $(git rev-parse HEAD)/" >body.md gh pr edit <n> --body-file body.md
- Don't ask questions. If the issue is impossible as written, comment on the
issue saying why, remove
in-progress, and stop.
An app is only useful once someone can do its core job from start to finish.
Each line's first p1 issues make that loop work end to end:
- Open a file or create a document.
- See it on the canvas.
- Edit it with each tool the palette shows.
- Undo the edit.
- Save it.
Polish and panels (layers, adjustments, history, effects, extra menus) come after the loop works. When you file or rank issues for a line whose loop is broken, the missing step goes first.
No dead controls. Every button, tool and menu item on screen does something. One that can't act yet is disabled and says why:
- A toolbar or palette item gets
unavailableHelpon itsToolbarAction. That text is its tooltip, and an action can't be disabled without it. - A menu item that can't run gets a nil action, so the menu disables it.
- A palette tool acts through its Model's
drag(from:to:). Until that case does something, the tool'sunavailableHelpsays why. The PR that makes a tool work sets it to nil and wires the canvas gesture todrag. <X>ToolsTestsin Photo's, Flare's and Design's Model tests fails when an enabled tool's drag on an open document changes nothing, or a disabled tool has no help. A new tool enum gets the same test.
- One behavior per PR. Ideally under 200 changed lines, hard cap 400, at
most 15 files. A PR that only changes
docs/has no cap (Fast lane). - Check current docs, not memory. Before using any platform or library
API (SwiftUI, AppKit, macOS 26 APIs, GRDB, Swift stdlib), check current docs
with the docs MCP tools; don't rely on memory. If the tools are unavailable,
say so in the PR body.
.mcp.jsonprovides them:apple-docs(searchAppleDocumentation, thenfetchAppleDocumentation; Apple's developer docs, Swift stdlib and HIG, read live from developer.apple.com) andcontext7(resolve-library-id, thenquery-docs; SwiftUI is/websites/developer_apple_swiftui, AppKit/websites/developer_apple_appkit, GRDB/groue/grdb.swiftand Swift/swiftlang/swift). - Every source file has a C4 owner.
scripts/cifails when a file underSources/is not in exactly one component'spathsindocs/c4/model.json. Each target's folder is a component, so a new file in a target is covered and needs no C4 edit. Don't touch an existing part'sdescription: it is one string, and two PRs that append to it always conflict, soscripts/ci --changedfails a PR that changes one unless the PR adds a part or changes nothing outsidedocs/c4/parts/(a C4-only refresh). The model is assembled from one file per component indocs/c4/parts/(scripts/c4-assemble): edit that part'spaths, or add a part with its own description for a new component, never the generated model.json. - Views are dumb. Files under
Sources/*App/read their Model and call its methods; they never assign its state, bind to it, or mutate its collections.scripts/cifails on that (the app-state rule). Model state ispublic private(set); add a method when a view needs a new change. - System components first, then SuiteUI, never a look-alike. Follow the
Component order in
docs/design.md; the design lint inscripts/cifails on raw colors, fonts and sizes, hand-made glass and look-alike controls. - Every UI PR lists the snapshot PNGs it changed in the PR body (for
example
flare-open-light.png, flare-open-dark.png), so the reviewer opens exactly those from the artifact. - Never crash.
scripts/cifails ontry!,as!,fatalError(,preconditionFailure(,precondition(,unownedand.first!/.last!anywhere inSources/. No unchecked indexing, no division by a value that can be zero. - Models stay Linux-safe. No SwiftUI, AppKit, Combine, CoreGraphics or
other Darwin-only API in a Model. When a Model needs Foundation, import it as
#if canImport(FoundationEssentials) import FoundationEssentials #else import Foundation #endif. Swift 6 language mode. Value types,Sendable. - Every change gets a test. Swift Testing (
import Testing,@Test,#expect). In a v3 slice, a mutation that breaks the change must also fail that test: add 2 or more to the plan of the file you change inTests/mutations/and runscripts/mutate --plan <plan>until each is caught (docs/factory/lead.md, contract rule 14). - No new dependencies without an issue that approves them.
- PR title in Conventional Commits (
feat(flare): onion skin toggle). The body says what changed, why, and which test or snapshot proves it. - No AI attribution anywhere. Commits, PR titles and bodies, and issue
comments carry no
Co-Authored-By: Claude, noClaude-Session:link and no "Generated with Claude Code" line..claude/settings.jsonturns these off; if your tooling adds one anyway, delete it before you push. The fast lane also strips them from the squash commit. - No product names. Don't name other companies' creative apps in code, docs or UI; describe the behavior instead.
- Clean-room. Never copy code, files, text or artwork from proprietary
creative software or from GPL-incompatible sources. This repo is GPL-3.0.
Behavior comes only from public documentation, published specs (W3C,
Lottie, SVG, PDF, OpenRaster, XMP and the like) and code under a
GPL-3.0-compatible license. Permissive code (MIT, Apache-2.0) may be studied
and reused with attribution, after you read the license file of that exact
repo at that exact commit; storytold's craft apps were MIT OR Apache-2.0 on
2026-10-10. Record the source repo, commit and license in
NOTICE, or in the header of the copied file. - Never reverse engineer an app we don't own. No decompiling, disassembling, or inspecting its binaries or bundles, and no reverse-engineering tools or MCPs (REA, Hopper, Ghidra, IDA and the like). Don't automate or scrape competitors' apps either. Reverse engineering a file format so we can open users' files is a legal call: get the captain's sign-off first.
docs/engineering.md: how code is laid out (Models, views, SuiteUI).docs/design.md: the look and behavior rules for every view.docs/render-contract.md: how a canvas draws (one GPU route, no CPU work per step); read it before touching a canvas, overlay or render route.- Before you open a PR, check your diff against
docs/review-rubric.mdand fix every "no".
- Keep to your line and your issue's files. Prefer a new file over appending to a shared one.
- Run
scripts/install-merge-driversonce per clone (cloud-setup.sh does): a rebase then merges.jsonfiles key by key (.gitattributes), so two PRs adding different keys to one C4 part,.wave.jsonor mutation plan no longer conflict. - Don't rebase on
origin/devfor drift. A PR that is behind merges as it is, and one that conflicts is integrated by the fast lane (it merges dev into your branch with the merge drivers and checks the result). Only a PR labelledneeds-rebasecomes back to you: mergeorigin/devinto your branch, resolve the files the lane named, rerunscripts/ci --changed, push, and move theHead:line. After the lane has pushed to your branch, fetch before you push again. - If
scripts/cifails onorigin/devitself because of someone else's merge (look for the opendev-redissue), do not fix it in your PR. Comment on your issue with the failing test name and stop. - Never edit
Package.swift,Package.resolved,.github/,.claude/,scripts/,.gitattributes,CLAUDE.md,AGENTS.mdorLICENSEunless your issue says to, and never the generateddocs/c4/model.json,docs/blueprints/*/features/waves.mdordocs/blueprints/*/jobs.mdat all: edit your component's part in docs/c4/parts/, your feature's .wave.json or the app's jobs.json, and the generated workflow rewrites them on dev. Only the supervisor edits the test quarantine,UITests/quarantine.json, with one narrow exception: the fast lane adds and removes its own entries there (a lane-quarantine PR from its bot on lane/quarantine that changes that file and nothing else; Fast lane below), and only the supervisor edits the perf list the gate skips,Tests/perf-suites.txt.scripts/means all of it, the gate included. Every target already exists. If you think one of these must change, say so in an issue. The fast lane refuses exactly this list (PROTECTED in scripts/fast-lane.sh; its tests read this bullet), so every path here goes in backticks and nothing else.
A session started from a feature-lead issue is a lead: it follows
docs/factory/lead.md and its workflow templates in docs/factory/workflows/.
A packet with a ## Slices table runs the v3 loop: the lead never waits on
CI or critics, builds the slices wave after wave (the first slice, the
contract others plug into, first), critics review a slice once a scoped run
(ci.yml with app=<app>) shows its screens, and each done slice gets a
Belt-Slice-Done: comment before the closing Belt-Contact-Sheet:. A packet
without one runs the v2 loop in lead.md, unchanged. In both, work started
after v3 landed files critic findings as finding issues that each wave
fixes first (no new feature wave past 5 open), with at most 2 fix rounds
before the rest become gap issues. Every PR a lead or its agents open
carries Belt-Lead: <run id> and Feature: <feature> lines, plus
Slice: <slice> for a v3 packet, above the Fast-Check: / Head: lines.
Belt-Lead: PRs don't wait for belt/review; the lead's critic panel is
their review. A PR with a
Feature: line never closes a feature-lead issue: before the squash the
fast lane reads the labels of each issue its closing keywords point at
(close, fixes, Resolved: and the rest, any case) and turns the keyword
before a feature-lead issue into Refs. Its other closing references,
such as the critic findings and gaps it fixes, stay and close on merge. An
issue whose labels the lane can't read keeps its keyword, isn't closed, and
gets one comment on the PR.
Crew PRs merge into dev at once; main moves only when full CI passes on
dev.
.github/workflows/fast-lane.ymlsquash-merges a PR labelledfast-laneintodevwhen all of these hold: basedev, author on the allowlist inscripts/fast-lane.sh, at most 400 changed lines and 15 files, no protected path touched (the files above), mergeable, no red or running check on the head, and proof the head passed the gate: theFast-Check: pass/Head: <sha>lines for the current head, or a passing CI check on it. A head with neither and no check at all gets a Linux-only CI run from the lane (ci.ymlwithlinux_only), once per head, and merges when it passes. A fork's PR doesn't.- A PR whose every changed path is under
docs/(packets, blueprints and their.wave.jsonfeature data,docs/c4/parts/, any.mdthere) takes the lane at any size. It needs the same proof, and that proof isscripts/cion its head, which renders the waves and assembles the C4 parts with the ownership check. Protected paths underdocs/stay refused, and one file outsidedocs/, a rename included, brings the size cap back. - A PR that changes code (
BUILD_REin scripts/fast-lane.sh: a.swiftfile underSources/,Tests/orUITests/,project.yml, orPackage.swift), a Model included, lands only after its batch passes the macOS gate (below). Linuxscripts/cinever builds the apps, and it misses macOS-only breaks in the targets it does build (#1210: anObjCBoolerror in PhotoModel). Nothing runs on macOS for your PR alone, and you never start it. A PR with no code (docs, data, packets) needs no macOS gate. - The rollback,
LANE_MAC_PER_PR=1(a repo variable, read by.github/workflows/fast-lane.yml), restores the per-PR build: once per head the lane dispatches a build-only CI run (ci.ymlwithbuild_only, scoped byappto the apps your code touches,scripts/test-scope build-apps; shared code builds everything), comments its URL, and merges when it compiles; a failed build waits for your next push. AMac-Check: <run url>line a supervisor adds counts too. Batches then check Linux only. - Verify after merge,
LANE_VERIFY_AFTER=1(a repo variable, off by default): a code PR lands on its own as soon as its head has the Linux proof above and a greenlocal-ci/prescreenstatus (the supervisor's pre-screen on the Mac), with no batch and no macOS run, also whiledevis red; without the pre-screen it waits. A proofdevmoved under (a ratchet or baseline change) is checked again on today'sdevfirst. While adev-redissue is open, the lane reverts the culprit PR, the one the dev bisect names or the only PR in the issue's range. It opens alane-revertPR fromlane/revert-<n>and lands it on its own Linux check, then runs CI ondev. Your merged PR's feature-lead issue (or the PR) gets a comment saying why and how to bring the change back (a new PR that reverts the revert, plus the fix), and afindingis filed for your app. One revert perdev-redissue, never a revert of a revert. A real red the lane has no certain culprit to revert for (an inconclusive bisect, a culprit on a protected path, a revert that didn't fix it) gets its failing tests quarantined instead, so trunk never stops: oneQuarantined: <id>issue per test (p0,finding,line:<app>, naming the run, the range's PRs and their leads, and a 24 h expiry) owns the fix, and alane-quarantinePR fromlane/quarantineadds the entries toUITests/quarantine.json(the one protected path the lane may change itself: that file alone, on that branch, by the lane's bot) and lands on its own Linux check;scripts/cithen skips those tests and dev's next run is green. Past the expiry the issue is ablocker; the entry stays until the issue closes, when the lane's PR removes it (red again: the issue is reopened). Never more than 5 tests per sweep, never a security, billing or auth test.scripts/quarantine releasefails while a lane entry is in. Details:docs/fast-lane.md. - A crew PR into
devwhose body has aBelt-Lead:line but nofast-lanelabel gets the label from the lane's next sweep, with one comment, and is evaluated in that sweep under the same rules.no-fast-laneorneeds-humanon the PR stops it (OPT_OUT_LABELSin scripts/fast-lane.sh). - Ready PRs land in batches, ordered
p0, thenbeta, then the rest, oldest first within each. The lane mergesdevplus up to 12 ready PRs (LANE_BATCH_MAX), in order, onto a scratchlane/batch-<id>branch (merge drivers on) and runs one Linux-only CI run on it. When the batch has code it also runs one macOS gate (ci.ymlwithmac_only:scripts/cion macOS scoped to the union of the batch's apps byscripts/test-scope build-apps, every app for shared code; no journeys). A greenmacOSjob or alocal-ci/macoscommit status on the batch head (the local Mac gate) is the macOS pass. With the repo variableLANE_KILN=1(off by default) the lane holds a batch'smac_onlyrun for up toLANE_KILN_WAIT_MINminutes (20) after the batch commit, waiting for a local Mac check that postslocal-ci/macos: success is the pass, failure is red, anderroror no status by then sends themac_onlyrun as usual. It reads the status's state and context, never its text. When both are green it squash-merges every PR in that order. A lone PR without code lands at once; a lone code PR is a batch of one. A batch with code forms when a macOS slot frees (a batch just resolved), when 12 PRs are ready, or once the oldest ready head is 10 minutes old (LANE_BATCH_WAIT_MIN), and never while the lane's own queued and running macOS runs fillLANE_MAC_SLOTS(4). On red it bisects the batch by prefix (lane/batch-<id>-<i>probes, each with its Linux run and, for code, its macOS gate; when the red tip fails only a timing budget test on Linux, each probe's Linux run goes up to 3 times and is called on 2 of 3) until it finds the first PR that turns the chain red: the PRs before it merge, that PR gets one comment naming the failing job, its run and any open PRs stacked on its branch, and theneeds-fixlabel (the comment says "likely" when the measured value sat within 15% of its budget), and the PRs after it wait for the next batch. Fix it, rerunscripts/ci --changed, push, and move theHead:line; the lane drops the label on the new head. Whendevalone is red on every job the batch is red on, the batch lands on each PR's own proof so a fix can get through; a job red only with the batch is still bisected. A newdev-redfirst gets its run's failed jobs rerun at the same sha (the lane's flake check; a cancelled rerun is inconclusive and gets one more try, then the lane waits): a pass is a flake, which files afindinglabelledflakyfor the test and holds nothing; a failure makes the red real. While a realdev-redissue names a job a batch would run (Linux always, macOS when the batch has code), ready PRs that touch the failing module (its test target'sTests/<X>Tests/andSources/<X>/) wait and the rest batch as usual; when the lane can't place the red, no new batch forms and every ready PR waits. A batch already in flight on a base that holds the red commit is marked (lane/batch-<id>-red); oncedevis green again on a newer commit the lane drops it and its probes, with no label or comment on its PRs, and forms a fresh batch on today'sdevin the same sweep. How the script does all of this:docs/fast-lane.md. One batch runs at a time; a PR that becomes ready while one is in flight waits for the next sweep (a few minutes). A PR that is behinddevmerges as it is. A PR that conflicts is integrated by the lane: in a scratch clone it mergesorigin/devinto the PR branch with the repo's merge drivers (.gitattributes, from main, which is why that file is protected), pushes the merge commit to the branch, starts a Linux-only CI run (ci.ymlwithlinux_only) on it, and merges on a later sweep when that run passes. The oldHead:marker no longer matches, by design: the Linux run is the proof for the integrated head, and a code PR still lands only through its batch's macOS gate. A conflict the drivers can't resolve gets one comment naming the files and theneeds-rebaselabel; a fixer merges dev, resolves, pushes, and the lane drops the label. A fast-lane PR opened againstmainis retargeted todev. - A Belt PR (its body has a
Belt-Run:orBelt-Test:line) also waits for Belt'sbelt/reviewcommit status to be success on its head;REQUIRE_BELT_REVIEWinscripts/fast-lane.shturns that off. - A PR that loosens the app audit (docs/blueprints/app-audit.md) raises a
count in
UITests/audit-baseline.json(an existing check's key that is new to an app counts as a raise from 0), adds an app there above 0, drops an app from it, removes or moves a file inChecks/, or drops an entry fromAppAudit.checks. Lowering a count is fine, and so is adding a check with its starting counts in existing apps, at any count, when the same PR adds its file and registry entry. - A count that falls doesn't fail the journeys, and you don't lower the
baseline by hand: after a full journeys run on
devpasses, journeys.yml'sAudit lowerjob commits the measured counts toUITests/audit-baseline.json("test(audit): lower baselines to the measured counts") straight ontodev. It only ever lowers; a count over its baseline fails instead. - A PR that breaks a hard rule (author, size outside the docs tier, protected path, a looser app audit) loses the label with a comment saying why and waits for review.
- Full CI (
Linux;macOS:macOS compilethen themacOS tests K/Nshards, scripts/ci with the snapshots) runs ondevonce a feature is built, not per merge: when the supervisor or Belt dispatches it, when the lane merges a PR labelledfeature-doneor one touchingSources/*App,Sources/SuiteUI,Tests/App*orUITests, after every 10 merged PRs (at most once per lane run), and once a day. Green (LinuxandmacOS):mainfast-forwards to that exact SHA. A red journey files afindingissue and holds nothing. Red: one issue titled "dev is red" (labeldev-red) names the failing jobs and the culprit rangemain..<sha>. SwiftUI breakage can sit ondevuntil that run, so the range can span several PRs. The lane keeps merging while the issue is open; the next green run movesmainand closes it. While it is open the lane also bisects the range for the first red commit:ci/bisect-<sha>-<i>branches each get a Linux-only run (red-triage's confident guess first, at most 8 runs per red), and the verdict lands as a comment on thedev-redissue and on the owning feature-lead issue (the PR body'sFeature:line). - The report-only UI journeys run in their own workflow,
.github/workflows/journeys.yml(jobmacOS journeys,macOS journeys (<app>)when scoped; artifactui-screens; Findings andAudit lower), dispatched by ci.yml's last job,Journeys dispatch, once a full or scoped CI run ondevhas finished its gate jobs (a full run: every journey; a scoped run: that app's; a Linux check, build-only run or macOS gate: none). It is a dispatch, not a workflow_run trigger, because CI runs the lane starts with GITHUB_TOKEN fire no workflow_run. Its run is titledafter CI run <id>: journeys <app|full> at <sha>and checks out the commit that CI run tested. Its concurrency group isjourneys-<branch>-<app|full>, so a journeys job waiting for a macOS runner never holdsci-dev. A scoped journeys run on macOS is never cancelled; only the newest pending run of its scope waits. A newer full run cancels the older one, even on macOS. ItsJourneys waitjob (scripts/journeys-wait) holds the run on ubuntu until no CI run is queued for a macOS runner and no older journeys run is alive, so journeys hold at most one macOS runner and the lane's gate goes first; a run a newer one of its scope supersedes cancels itself. On a branch, or to ask for one by hand:gh workflow run journeys.yml --ref <branch> [-f app=<app>](findings and the audit baseline move only ondev). - A scoped run proves one app:
gh workflow run ci.yml --ref dev -f app=<flare|design|photo|library|halo|suite|suiteui>. It still builds every target and app bundle, then runs only that app's Model tests and snapshot tests (titledscoped: <app>, jobmacOS (<app>); about 10 min for Design), and ondevitsJourneys dispatchjob starts that app's journeys (macOS journeys (<app>)in journeys.yml; on a branch, dispatch journeys.yml with-f app=<app>yourself). It skips the Linux job and never promotesmain, opensdev-redor lowers the audit baseline. The supervisor's verify-dispatch.sh starts one per app after that app's merges. - A journey that keeps failing on
devfor a known reason can be quarantined, by the supervisor only, inUITests/quarantine.json: entries of{"test": "Target/Class/testName", "owner": "#<open issue>", "reason": ..., "expires": "YYYY-MM-DD", "scope": "all"|"full"}, at most 7 days out. A swift test goes in the same file asTarget.Suite/testorTarget.freeTest(theTests/perf-suites.txtform) andscripts/ciskips it; the fast lane's own entries carry alaneblock (Fast lane above).scopeis optional:all(the default) skips the journey in every run;fullskips it only in full runs, so a full run can go green and promotemainwhile the owner's scoped run (app=<app>) still runs it and shows the truth.scripts/ui-testskips each live entry that applies and lists every entry, with where it is skipped, in its output and the job summary.scripts/cifails on an expired entry, a closed or missing owner issue, an empty reason, a scope other thanallorfull, or a test that isn't inUITests/orTests/. When the owner's fix merges, the supervisor removes the entry and the nextdevrun proves it (the lane removes its own once the owner issue closes).
scripts/ci # lint + app-state rule + design lint + C4 ownership + jscpd + mutation anchors + build + test: the gate
scripts/mutate --plan DesignModel.LiveMarquee # plant each bug in that plan (Tests/mutations/) and require a test to fail; prints the score
scripts/mutate --validate # every plan's `find` occurs exactly once (no build; scripts/ci runs it)
scripts/ci --changed [base] # the same lints and build, then only the touched targets' tests (base: origin/dev)
swift test --filter "$(scripts/test-scope perf photo)" --no-parallel # Photo's perf and timing tests, which the gate skips
swift test --filter FlareModelTests # one suite while iterating
bash Tests/fast_lane/test_fast_lane.sh # fast-lane decision tests (needs jq)
bash Tests/audit_lower/test_audit_lower.sh # decision tests for scripts/audit-lower, CI's baseline lowering (needs jq)
scripts/quarantine check # the test quarantine's entries: owned, reasoned, unexpired (needs jq; gh for owner state)
scripts/quarantine release # the release gate: fails while the fast lane's own quarantine entries are in
bash Tests/quarantine/test_quarantine.sh # scripts/quarantine's fixture tests (needs jq)
scripts/bump-core [<core sha>] # move the creative-core pin (default: core main's head): checks, then the bump PR
bash Tests/bump_core/test_bump_core.sh # scripts/bump-core against a fake gh and swift (needs jq)
scripts/install-merge-drivers # once per clone: .gitattributes merge drivers (JSON by key) and rebase.updateRefs; cloud-setup.sh runs it
bash Tests/merge_drivers/test_merge_drivers.sh # the merge drivers on scratch repos (needs git, jq)
gh run list --workflow ci.yml --branch dev # feature CI runs on dev
gh run list --workflow journeys.yml # the UI journeys runs that follow them
gh run download <run-id> -p 'snapshots-*' # the PNGs from a CI run's macOS test shards
gh run download <run-id> -n ui-screens # whole-window PNGs from a journeys.yml run
scripts/ui-test # macOS + Xcode + xcodegen: run the UI journeys locally
scripts/contact-sheet # after ui-test: .build/ui-screens/contact-sheet.html, the page to review per run
scripts/bundle-apps # macOS: release builds as signed FlareApp.app ... HaloApp.app in .build/apps; CI uploads them as `app-builds` (app-builds.tar.gz)