- release-mac.sh, release-ios.sh and release-macos.sh run
ORGSTAR_GATES=1 swift test -c release --filter GateTestsbefore building anything for signing and stop on a miss (release-mac after its tree checks; the App Store scripts in appstore-kit'spreflight, after its clean-tree check and before the archive). - New gates, budgets about 1.3-2x the slowest of ten runs on main:
- 10 MB mixed document: open < 1.5 s (now 0.76-0.77 s idle, up to 1.12 s loaded), typing p95 < 400 ms (113-114 ms idle, up to 236 ms loaded), blank line p95 < 400 ms (112-113 ms, up to 200 ms), memory < 40x (29.8-31.1x).
- 10,000 notes: index build < 15 s (9.3-9.5 s idle, up to 10.3 s), agenda refresh cold < 10 s (5.0-5.1 s, up to 6.6 s), warm < 2 s (0.82-0.89 s, up to 1.06 s), backlinks over 49,400 links < 1.5 s (0.55-0.57 s, up to 0.81 s).
- 1,000 notes, backlinks over 5,000 links < 150 ms (50-62 ms, up to 67 ms).
- The gate suite is serialized so timings don't overlap. Without
ORGSTAR_GATESit stays skipped. - Existing gates with little margin: the 1 MB section opens in 85-88 ms on an idle machine against 100 ms and failed in 3 of 5 runs at load average 6-18; the 5,000-row table's memory is 40.5-41.2x against 45x (44.4x once under load).
- Script changes checked with a stub
swift(pass/fail) and a stubsh/appstore-kit standing in for the build and archive: a failing gate exits 1 before the build or archive, a passing one reaches it. The realswift testexits 1 on a gate miss.
tableNextFieldrealigns only when the line it leaves no longer lines up with its neighbour, or a formula ran. A field deleted from with two spaces left before its bar is padded back, asorg-delete-chardoes (Org setsorg-table-may-need-updateon every other change, including self-insert, so typing still realigns).- Oracle test
nextFieldRealignsOnlyAfterAWidthChange: no edit, typing that fits, typing past the width, deleting with room, deleting from a full field; Emacs starts with the flag nil. Fails on main (2 cases), passes here. - TAB without a change, runCommand including the 2/20 ms parse: 500 rows 68 -> 8 ms, 5,000 rows 686 -> 83 ms. TAB after typing still realigns (68 / 684 ms), as Org does.
Tests: swift test green (1,222 tests), gates 5/5 green idle, both Xcode builds.