Day 5 slice: Layer 2 iOS + Android (fast structural checks)#13
Merged
Conversation
Platform-keyed dispatch: runLayer2({platform, outDir, timeoutMs?}).
Each platform runs its own fast structural check mirroring the
"does the project even load?" spirit of Rails' bin/rails routes.
- Rails: unchanged — bundle check -> bundle install (if needed) ->
bin/rails routes, all via mise exec when available.
- iOS: discover .xcodeproj in outDir, xcodebuild -list -project <x>.
Loads project + resolves SPM dependencies; fails if pbxproj is
corrupt or SPM graph broken.
- Android: ./gradlew --version. Validates the gradle wrapper +
build script parse without downloading the full dep graph.
Perf on freshly-generated clinic-queue:
rails 24.6s (cold, gems need install; warms to ~1.3s)
ios 2.1s
android 0.7s
Full builds (xcodebuild build, ./gradlew assembleDebug) deferred —
they're slow first runs and the storyboard's Layer 2 caption will
include them as a Sat-morning extension on top of this base.
Smoke tests updated: 7/7 green; new coverage for platform
dispatch with missing xcodeproj / gradle wrapper paths.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends Layer 2 runtime validation to iOS and Android with platform-keyed dispatch. Each platform's check mirrors Rails' spirit — "does the project even load?" — with the cheapest command that exercises the whole toolchain without booting servers or building full artifacts.
Signature change
Only consumer was the smoke test; updated alongside.
Platform strategies
mise exec -- bundle check→bundle install(if needed) →bin/rails routesxcodebuild -list -project <*.xcodeproj>./gradlew --versionPerf on freshly-generated clinic-queue
bundle installbundle checkshort-circuitsWhat's not in this PR
xcodebuild build,./gradlew assembleDebug) — next slice. Adds real compile validation but increases runtime to 60-90s+ per platform.runJudgestill stubs all three layers; wiring Layer 2 into the pipeline is a separate concern.Test plan
npm run ci— 7/7 greenpass: true,exit 0, 24.6s cold / 1.3s warmpass: true,exit 0, 2.1spass: true,exit 0, 0.7spass: falsewith informativestderrTail