# How the Skyline runs were graded

These are the automatic checks behind chapter 05 of the Llama Shelf page
(https://2madlabs.si/apps/llama-shelf#benchmark), as run on 30 September 2026.
The patterns below are written out from the grading script, so they are the exact ones used.
The task file next to this one is the one every run received. The published copy differs
in two ways only: the home folder is written as $HOME, and six dashes after the screen
names are colons.

## What is graded

1. The last commit of each project is cloned into an empty folder. Every result describes
   that copy. The task asks for commits along the way and says the final commit is the
   one the report describes; grading that last commit was the reviewer's rule.
   gpt-oss-20b made no commit, so its folder was copied and checked instead.
2. In that copy: `./gradlew assembleDebug`, then `./gradlew testDebugUnitTest`, then
   `./gradlew lint`. Test counts come from the JUnit result files, lint errors from
   `lint-results-debug.xml`.
3. The Kotlin sources and the manifest of that copy are searched for the text patterns
   below. One match per item is enough. A match shows that the code names the API an item
   needs. It does not show that the feature works.
4. Screenshots count when `docs/screens/*.png` are real PNG files of 1080 x 2400 pixels
   (1600 x 2560 for `08-tablet.png`).
5. The report counts as complete when `REPORT.md` has at least ten marked checklist rows
   and the text `BUILD SUCCESSFUL`.
6. If the run folder holds work that was never committed, that work is copied and built
   separately. It is listed next to the result and is not part of it. The number of
   compile errors is a lower limit, because the compiler stops early.

These automatic counts describe code-search matches, not working features. A separate
emulator review of the same final submissions was added on 30 September 2026:
https://2madlabs.si/apps/llama-shelf#bench-runtime. It records actual launches,
interactions, animation observations and subjective finished-app ratings. It does not
change the original patterns or award runtime credit to untested features.

## Animations (M1 to M10)

| Item | Text searched for (regular expression) |
|---|---|
| M1 shared element | `SharedTransitionLayout\|sharedBounds\|sharedElement` |
| M2 per-destination transitions | `slideInHorizontally\|scaleIn\(` |
| M3 animateItem | `animateItem\(` |
| M4 AnimatedContent/Crossfade | `AnimatedContent\(\|Crossfade\(` |
| M5 shimmer | `[Ss]himmer` |
| M6 counting numbers | `animateIntAsState\|animateFloatAsState` |
| M7 infinite icon | `rememberInfiniteTransition` |
| M8 splash | `installSplashScreen\|setKeepOnScreenCondition` |
| M9 predictive back | `enableOnBackInvokedCallback` |
| M10 pager parallax | `HorizontalPager` |

## Ways to refresh (U1 to U4)

| Item | Text searched for (regular expression) |
|---|---|
| U1 pull-to-refresh | `PullToRefreshBox` |
| U2 foreground refresh | `ProcessLifecycleOwner` |
| U3 WorkManager periodic | `PeriodicWorkRequest` |
| U4 refresh all | `[Rr]efresh[_ ]?[Aa]ll` |

## Other required parts

| Item | Text searched for (regular expression) |
|---|---|
| collectAsStateWithLifecycle | `collectAsStateWithLifecycle` |
| PreviewLightDark | `@PreviewLightDark` |
| type-safe routes | `@Serializable[\s\S]{0,80}(object\|data class\|class) \w+` |
| navDeepLink | `navDeepLink` |
| NavigationSuiteScaffold | `NavigationSuiteScaffold` |
| ListDetailPaneScaffold | `ListDetailPaneScaffold` |
| ModalBottomSheet | `ModalBottomSheet\(` |
| SwipeToDismissBox | `SwipeToDismissBox` |
| SavedStateHandle | `SavedStateHandle` |
| enableEdgeToEdge | `enableEdgeToEdge` |
| dynamicColorScheme | `dynamic(Light\|Dark)ColorScheme` |
| Koin | `startKoin` |
| Room | `@Database` |
| DataStore | `preferencesDataStore\|createDataStore` |
| WorkManager | `WorkManager\.getInstance\|PeriodicWorkRequest` |
| Connectivity flow | `ConnectivityManager` |
| NetworkEvent log | `NetworkEvent` |
| stale 30 min | `ofMinutes\(30\)\|30\s*\*\s*60\|30L?\s*\*\s*60\|MINUTES\.toMillis\(30\)\|STALE` |

## Things the task forbids

| Item | Text searched for (regular expression) | Where |
|---|---|---|
| runBlocking in main | `runBlocking` | main |
| GlobalScope in main | `GlobalScope` | main |
| Hilt used | `dagger\.hilt\|@HiltAndroidApp` | main |
| kotlinOptions block | `kotlinOptions\s*\{` | gradle |
| kotlin-android plugin | `kotlin\.android\|kotlin\(\"android\"\)` | gradle |
| @Ignore in tests | `@Ignore` | test |
| assumeTrue(false) | `assumeTrue\(false\)` | test |
| XML layouts | `<androidx\.constraintlayout\|<LinearLayout\|<FrameLayout` | res |
| Java sources | `.` | java |

## Known weak checks

- M6 also matches `animateFloatAsState`, which many other animations use.
- M6 misses GGUF's temperature counter built with `Animatable`. Its runtime behavior
  remains unvalidated because that app crashes on first launch.
- M9 only finds the manifest setting for the back gesture, not the behaviour on each screen.
- M10 only finds the pager component, not the parallax effect.
- U4 matches any name that contains "refresh all", not only the button in Diagnostics.
