Rulings and cells
A ruling is the current answer for one pattern: the tab bar, the save
indicator, how deletion works. There is one ruling per pattern
(ruling-duplicate-noun), in rulings/<id>.md under the content directory.
Its front matter is the answer; its body is the argument, briefly.
---id: mobile-tab-barnoun: Mobile tab barstatus: ruledowner: splitcells: web: "n/a: the web app has no tab bar" ios: "A bottom tab bar of five destinations." android: "A navigation bar of five destinations."assertions: - {kind: ui-test, ref: TabBarUITests.testFiveDestinations, platform: ios} - {kind: ui-test, ref: TabBarTest.fiveDestinations, platform: android}---Five destinations fit one thumb's reach; a sixth goes under More.Status
Section titled “Status”proposed: a stub that work may proceed behind. It owes nothing yet.gantry new rulingwrites one.ruled: the answer. Every rule below applies.superseded: a different pattern replaced this one, named insupersededBy. A change to the same pattern is an amendment, never a supersession.retired: no longer an answer. A live record that still cites it isruling-retired-referenced.
A ruling has one cell per platform that gantry.yaml configures. “n/a
is legitimate; blank is not”: a cell is an answer or n/a: <reason>, and a
blank one is ruling-cell-blank. A cell that varies by app is
{default: "…", apps: {tasks: "…"}}, naming apps from gantry.yaml.
gantry generate turns the cells into the ledger, one row per pattern, and
a page per platform with that platform’s answer to every ruling.
Assertions
Section titled “Assertions”A ruled ruling names at least one assertion, a check that holds it
(ruling-assertion-missing), and each ruled cell that is not n/a needs one
on its own platform (cell-unasserted). The kinds are ui-test,
unit-test, gate-check (a check a gate
declares) and geometry-fn. A manual checklist is not an assertion.
Lint resolves each assertion by searching that platform’s tests globs for
the symbol (assertion-unresolved). It never runs the tests: that is your
CI’s job.
Amendments
Section titled “Amendments”The answer changes by amendment, never by editing the front matter in
place. gantry amend appends one, dated today:
gantry amend --summary "New is a prominent control to the right of the bar." \ --replaces "mobile-tab-bar:034:Rule 4" --change answer --by design --pass 037 mobile-tab-barEach amendment says what it replaces, as <ruling>:<pass>:<section>, or
none (amendment-replaces-missing), and whether the answer changed
(change: answer), was reviewed and upheld (none) or changed scope
(scope). The pass and section are free text, since a project’s older
passes may predate Gantry. With lint --base, a ruling whose front matter
changed with no new amendment is ruling-edited-without-amendment.
References
Section titled “References”Any record can cite another as @<kind>:<id>: @ruling:mobile-tab-bar,
@defect:D-0042 (or a bare D-0042 in prose), @pass:037,
@evidence:<id>. Every reference must resolve (ref-unresolved).
References into Starboard and Airframe work the same way.