From 5bb415c7bc4aef6f34f82f1ae84c336e719edd8e Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Tue, 15 Sep 2026 23:55:57 -0700 Subject: [PATCH] Drop remaining test-suite references from topo.md and guard.sh Co-Authored-By: Claude Fable 5.1 --- docs/topo.md | 9 +++------ tools/guard.sh | 5 ++--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/docs/topo.md b/docs/topo.md index b187c12..e549092 100644 --- a/docs/topo.md +++ b/docs/topo.md @@ -34,15 +34,13 @@ graph TD App[mwb executable] --> Core App --> Net App --> Mac - CT[MWBCoreTests] --> Core - NT[MWBNetTests] --> Net ``` Standing promises: - `MWBCore ─▶ everyone` (standing promise): imports only `Foundation` - and `CommonCrypto`. Enforced by a test in `MWBCoreTests` that greps - the target's sources. + and `CommonCrypto` (CryptoKit for hashing). Enforced by the layering + grep in `tools/gates.sh`. - `MWBNet` and `MWBMac` never import each other. The executable is the only place they meet. - Nothing outside `MWBCore` interprets packet bytes; `MWBNet` hands @@ -74,8 +72,7 @@ Standing promises: | `Pasteboard.swift` | clipboard-inband | | | `StatusItem.swift` | menubar-app | | -`MWBNet/Placeholder.swift` is deleted by control-channel; -`Tests/MWBNetTests/PlaceholderTests.swift` likewise. +`MWBNet/Placeholder.swift` is deleted by control-channel. Tooling (`tools/`, `Package.swift`, `.swift-format`, `Resources/`) is the lead's; a lane needing a change there files a Handshake request. diff --git a/tools/guard.sh b/tools/guard.sh index 80a8976..0cbadf4 100755 --- a/tools/guard.sh +++ b/tools/guard.sh @@ -2,15 +2,14 @@ # Run a command under a memory and wall-clock guard. # # Usage: tools/guard.sh [-m MAX_GB] [-t MAX_SECONDS] -- -# tools/guard.sh -m 8 -t 900 -- swift test +# tools/guard.sh -m 8 -t 900 -- swift build -c release # # Every second the resident set of the command's whole process tree is # summed; if it exceeds MAX_GB (default 8) or the clock exceeds MAX_SECONDS # (default 1800) the tree is killed (TERM, then KILL) and the script exits # 137 with a line saying why. Inherited from the lucisv repo, where a runaway # test once consumed 100 GB and took the machine down (2026-09-03): agents -# run every `swift test`, fuzzer, soak test and two-process loopback run -# through this. +# run any long or uncertain command (build sweeps, soaks) through this. # # macOS has no enforced `ulimit -v`, so the guard is a poller, not a cap: # a process that allocates faster than one second's worth of headroom can