@mmerterden/multi-agent-pipeline 24.3.2 → 24.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +119 -0
- package/README.md +9 -2
- package/README.tr.md +9 -2
- package/docs/architecture.md +1 -1
- package/docs/ecosystem.md +7 -1
- package/docs/facts.json +3 -2
- package/install/_common.mjs +21 -1
- package/install/_dev-only-files.mjs +3 -0
- package/install/_external-source.mjs +174 -0
- package/install/_platform-filter.mjs +18 -17
- package/install/_plugin-skills.mjs +8 -21
- package/install/_rewrite-tree.mjs +5 -1
- package/install/claude.mjs +18 -15
- package/install/codex.mjs +96 -37
- package/install/copilot.mjs +35 -13
- package/install/index.mjs +82 -14
- package/manifest.json +40 -826
- package/package.json +4 -2
- package/pipeline/commands/multi-agent/update/SKILL.md +20 -13
- package/pipeline/lib/low-disk.mjs +33 -1
- package/pipeline/lib/plugins-source.mjs +206 -0
- package/pipeline/multi-agent-refs/cross-cli-contract.md +12 -5
- package/pipeline/multi-agent-refs/sync/repo.md +1 -1
- package/pipeline/multi-agent-refs/sync/stack-plugins.md +12 -0
- package/pipeline/office/index.html +5076 -793
- package/pipeline/schemas/plugins-pin.json +204 -0
- package/pipeline/schemas/plugins-pin.schema.json +38 -0
- package/pipeline/schemas/prefs.schema.json +134 -48
- package/pipeline/scripts/_active-run.mjs +31 -14
- package/pipeline/scripts/disk-cleaner.mjs +1 -1
- package/pipeline/scripts/gen-facts.mjs +9 -4
- package/pipeline/scripts/gen-plugins-pin.mjs +172 -0
- package/pipeline/scripts/office-build.mjs +14 -1
- package/pipeline/scripts/pre-push-check.sh +6 -5
- package/pipeline/scripts/smoke-cross-cli-behavior.sh +9 -0
- package/pipeline/scripts/task-mirror.mjs +16 -2
- package/pipeline/skills/.skill-manifest.json +2 -2
- package/pipeline/skills/shared/external/accessibility-compliance-accessibility-audit/SKILL.md +0 -147
- package/pipeline/skills/shared/external/accessibility-compliance-accessibility-audit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/agent-introspection-debugging/SKILL.md +0 -66
- package/pipeline/skills/shared/external/agent-introspection-debugging/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/alarmkit/SKILL.md +0 -341
- package/pipeline/skills/shared/external/alarmkit/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/alarmkit/references/alarmkit-code.md +0 -257
- package/pipeline/skills/shared/external/alarmkit/references/alarmkit-patterns.md +0 -555
- package/pipeline/skills/shared/external/android-architecture/SKILL.md +0 -438
- package/pipeline/skills/shared/external/android-architecture/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-architecture/references/code-examples.md +0 -68
- package/pipeline/skills/shared/external/android-architecture/references/patterns.md +0 -148
- package/pipeline/skills/shared/external/android-build-quality-gates/SKILL.md +0 -362
- package/pipeline/skills/shared/external/android-build-quality-gates/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-build-quality-gates/references/patterns.md +0 -451
- package/pipeline/skills/shared/external/android-datastore/SKILL.md +0 -237
- package/pipeline/skills/shared/external/android-datastore/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-datastore/references/patterns.md +0 -308
- package/pipeline/skills/shared/external/android-design-tokens-codegen/SKILL.md +0 -250
- package/pipeline/skills/shared/external/android-design-tokens-codegen/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/android-design-tokens-codegen/references/patterns.md +0 -278
- package/pipeline/skills/shared/external/android-jetpack-compose-expert/SKILL.md +0 -140
- package/pipeline/skills/shared/external/android-jetpack-compose-expert/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/android-jetpack-compose-expert/references/patterns.md +0 -153
- package/pipeline/skills/shared/external/android-mvi-viewmodel/SKILL.md +0 -296
- package/pipeline/skills/shared/external/android-mvi-viewmodel/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-mvi-viewmodel/references/patterns.md +0 -267
- package/pipeline/skills/shared/external/android-performance/SKILL.md +0 -247
- package/pipeline/skills/shared/external/android-performance/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/android-performance/references/patterns.md +0 -672
- package/pipeline/skills/shared/external/android-security/SKILL.md +0 -266
- package/pipeline/skills/shared/external/android-security/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-security/references/patterns.md +0 -706
- package/pipeline/skills/shared/external/api-patterns/SKILL.md +0 -117
- package/pipeline/skills/shared/external/api-patterns/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/api-patterns/references/contract-details.md +0 -137
- package/pipeline/skills/shared/external/api-security-best-practices/SKILL.md +0 -162
- package/pipeline/skills/shared/external/api-security-best-practices/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/api-security-best-practices/references/abuse-controls.md +0 -152
- package/pipeline/skills/shared/external/api-security-best-practices/references/identity-and-access.md +0 -220
- package/pipeline/skills/shared/external/api-security-best-practices/references/operations.md +0 -66
- package/pipeline/skills/shared/external/api-security-best-practices/references/request-handling.md +0 -187
- package/pipeline/skills/shared/external/app-clips/SKILL.md +0 -269
- package/pipeline/skills/shared/external/app-clips/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/app-clips/references/data-handoff-notifications-location.md +0 -211
- package/pipeline/skills/shared/external/app-clips/references/routing-and-experiences.md +0 -185
- package/pipeline/skills/shared/external/app-clips/references/size-capabilities-and-promotion.md +0 -181
- package/pipeline/skills/shared/external/app-intents/SKILL.md +0 -405
- package/pipeline/skills/shared/external/app-intents/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/app-intents/references/appintents-advanced.md +0 -1018
- package/pipeline/skills/shared/external/app-intents/references/code-examples.md +0 -54
- package/pipeline/skills/shared/external/app-store-optimization/SKILL.md +0 -317
- package/pipeline/skills/shared/external/app-store-optimization/evals/evals.json +0 -63
- package/pipeline/skills/shared/external/app-store-optimization/references/engagement-and-localization.md +0 -96
- package/pipeline/skills/shared/external/app-store-optimization/references/keyword-research-methodology.md +0 -169
- package/pipeline/skills/shared/external/app-store-optimization/references/product-page-variants.md +0 -178
- package/pipeline/skills/shared/external/app-store-release-notes/SKILL.md +0 -92
- package/pipeline/skills/shared/external/app-store-release-notes/evals/evals.json +0 -40
- package/pipeline/skills/shared/external/app-store-release-notes/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/app-store-release-notes/references/release-notes-guidelines.md +0 -64
- package/pipeline/skills/shared/external/app-store-release-notes/scripts/collect_release_changes.sh +0 -31
- package/pipeline/skills/shared/external/app-store-review/SKILL.md +0 -311
- package/pipeline/skills/shared/external/app-store-review/evals/evals.json +0 -56
- package/pipeline/skills/shared/external/app-store-review/references/monetization-and-submission.md +0 -138
- package/pipeline/skills/shared/external/app-store-review/references/privacy-manifest.md +0 -161
- package/pipeline/skills/shared/external/app-store-review/references/review-checklists.md +0 -151
- package/pipeline/skills/shared/external/apple-on-device-ai/SKILL.md +0 -361
- package/pipeline/skills/shared/external/apple-on-device-ai/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/apple-on-device-ai/references/coreml-conversion.md +0 -346
- package/pipeline/skills/shared/external/apple-on-device-ai/references/coreml-optimization.md +0 -269
- package/pipeline/skills/shared/external/apple-on-device-ai/references/foundation-models-code.md +0 -186
- package/pipeline/skills/shared/external/apple-on-device-ai/references/foundation-models.md +0 -440
- package/pipeline/skills/shared/external/apple-on-device-ai/references/mlx-swift.md +0 -292
- package/pipeline/skills/shared/external/architecture/SKILL.md +0 -125
- package/pipeline/skills/shared/external/architecture/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/architecture/references/adr-and-review.md +0 -76
- package/pipeline/skills/shared/external/authentication/SKILL.md +0 -343
- package/pipeline/skills/shared/external/authentication/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/authentication/references/code-examples.md +0 -59
- package/pipeline/skills/shared/external/authentication/references/keychain-biometric.md +0 -204
- package/pipeline/skills/shared/external/authentication/references/passkeys.md +0 -158
- package/pipeline/skills/shared/external/avkit/SKILL.md +0 -402
- package/pipeline/skills/shared/external/avkit/evals/evals.json +0 -55
- package/pipeline/skills/shared/external/avkit/references/avkit-patterns.md +0 -563
- package/pipeline/skills/shared/external/background-processing/SKILL.md +0 -390
- package/pipeline/skills/shared/external/background-processing/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/background-processing/references/background-task-patterns.md +0 -276
- package/pipeline/skills/shared/external/backlog/BACKLOG.md +0 -32
- package/pipeline/skills/shared/external/backlog/SKILL.md +0 -77
- package/pipeline/skills/shared/external/backlog/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/build-settings-audit/SKILL.md +0 -81
- package/pipeline/skills/shared/external/build-settings-audit/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/build-settings-audit/references/build-optimization-sources.md +0 -119
- package/pipeline/skills/shared/external/build-settings-audit/references/build-settings-best-practices.md +0 -131
- package/pipeline/skills/shared/external/build-settings-audit/references/project-audit-checks.md +0 -146
- package/pipeline/skills/shared/external/build-settings-audit/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/build-time-benchmark/SKILL.md +0 -97
- package/pipeline/skills/shared/external/build-time-benchmark/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/build-time-benchmark/references/benchmark-artifacts.md +0 -96
- package/pipeline/skills/shared/external/build-time-benchmark/references/benchmarking-workflow.md +0 -59
- package/pipeline/skills/shared/external/build-time-benchmark/schemas/build-benchmark.schema.json +0 -123
- package/pipeline/skills/shared/external/build-time-benchmark/scripts/benchmark_builds.py +0 -334
- package/pipeline/skills/shared/external/build-time-fixes/SKILL.md +0 -227
- package/pipeline/skills/shared/external/build-time-fixes/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/build-time-fixes/references/build-settings-best-practices.md +0 -131
- package/pipeline/skills/shared/external/build-time-fixes/references/fix-patterns.md +0 -342
- package/pipeline/skills/shared/external/build-time-fixes/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/build-time-fixes/scripts/benchmark_builds.py +0 -334
- package/pipeline/skills/shared/external/build-time-optimizer/SKILL.md +0 -168
- package/pipeline/skills/shared/external/build-time-optimizer/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/build-time-optimizer/references/benchmark-artifacts.md +0 -96
- package/pipeline/skills/shared/external/build-time-optimizer/references/build-settings-best-practices.md +0 -131
- package/pipeline/skills/shared/external/build-time-optimizer/references/orchestration-report-template.md +0 -193
- package/pipeline/skills/shared/external/build-time-optimizer/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/build-time-optimizer/scripts/benchmark_builds.py +0 -334
- package/pipeline/skills/shared/external/build-time-optimizer/scripts/diagnose_compilation.py +0 -266
- package/pipeline/skills/shared/external/build-time-optimizer/scripts/generate_optimization_report.py +0 -408
- package/pipeline/skills/shared/external/callkit-voip/SKILL.md +0 -341
- package/pipeline/skills/shared/external/callkit-voip/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/callkit-voip/references/callkit-patterns.md +0 -286
- package/pipeline/skills/shared/external/callkit-voip/references/code-examples.md +0 -93
- package/pipeline/skills/shared/external/ci-cd-pipelines/SKILL.md +0 -209
- package/pipeline/skills/shared/external/ci-cd-pipelines/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/ci-cd-pipelines/references/pipeline-examples.md +0 -261
- package/pipeline/skills/shared/external/clean-code/SKILL.md +0 -163
- package/pipeline/skills/shared/external/clean-code/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/clean-code/references/code-examples.md +0 -56
- package/pipeline/skills/shared/external/cloudkit-sync/SKILL.md +0 -316
- package/pipeline/skills/shared/external/cloudkit-sync/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/cloudkit-sync/references/cloudkit-code.md +0 -214
- package/pipeline/skills/shared/external/cloudkit-sync/references/cloudkit-patterns.md +0 -351
- package/pipeline/skills/shared/external/compose-components/SKILL.md +0 -417
- package/pipeline/skills/shared/external/compose-components/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/compose-components/references/code-examples.md +0 -89
- package/pipeline/skills/shared/external/compose-components/references/patterns.md +0 -207
- package/pipeline/skills/shared/external/compose-navigation/SKILL.md +0 -441
- package/pipeline/skills/shared/external/compose-navigation/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/compose-navigation/references/code-examples.md +0 -70
- package/pipeline/skills/shared/external/compose-navigation/references/patterns.md +0 -198
- package/pipeline/skills/shared/external/compose-testing/SKILL.md +0 -246
- package/pipeline/skills/shared/external/compose-testing/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/compose-testing/references/patterns.md +0 -646
- package/pipeline/skills/shared/external/contacts-framework/SKILL.md +0 -298
- package/pipeline/skills/shared/external/contacts-framework/evals/evals.json +0 -39
- package/pipeline/skills/shared/external/contacts-framework/references/contacts-patterns.md +0 -279
- package/pipeline/skills/shared/external/context-compression/SKILL.md +0 -134
- package/pipeline/skills/shared/external/context-compression/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/core-bluetooth/SKILL.md +0 -350
- package/pipeline/skills/shared/external/core-bluetooth/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/core-bluetooth/references/ble-patterns.md +0 -390
- package/pipeline/skills/shared/external/core-data/SKILL.md +0 -284
- package/pipeline/skills/shared/external/core-data/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/core-data/references/core-data-code.md +0 -221
- package/pipeline/skills/shared/external/core-motion/SKILL.md +0 -334
- package/pipeline/skills/shared/external/core-motion/evals/evals.json +0 -53
- package/pipeline/skills/shared/external/core-motion/references/motion-patterns.md +0 -346
- package/pipeline/skills/shared/external/core-nfc/SKILL.md +0 -357
- package/pipeline/skills/shared/external/core-nfc/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/core-nfc/references/code-examples.md +0 -98
- package/pipeline/skills/shared/external/core-nfc/references/nfc-patterns.md +0 -367
- package/pipeline/skills/shared/external/coreml/SKILL.md +0 -340
- package/pipeline/skills/shared/external/coreml/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/coreml/references/coreml-code.md +0 -208
- package/pipeline/skills/shared/external/coreml/references/coreml-swift-integration.md +0 -827
- package/pipeline/skills/shared/external/council/SKILL.md +0 -66
- package/pipeline/skills/shared/external/council/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/cryptokit/SKILL.md +0 -354
- package/pipeline/skills/shared/external/cryptokit/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/cryptokit/references/cryptokit-patterns.md +0 -429
- package/pipeline/skills/shared/external/css-modern/SKILL.md +0 -347
- package/pipeline/skills/shared/external/css-modern/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/css-modern/references/code-examples.md +0 -149
- package/pipeline/skills/shared/external/database-patterns/SKILL.md +0 -241
- package/pipeline/skills/shared/external/database-patterns/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/database-patterns/references/orm-examples.md +0 -152
- package/pipeline/skills/shared/external/debugging-instruments/SKILL.md +0 -401
- package/pipeline/skills/shared/external/debugging-instruments/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/debugging-instruments/references/instruments-guide.md +0 -263
- package/pipeline/skills/shared/external/debugging-instruments/references/lldb-patterns.md +0 -259
- package/pipeline/skills/shared/external/debugging-strategies/SKILL.md +0 -151
- package/pipeline/skills/shared/external/debugging-strategies/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/debugging-strategies/references/hard-cases.md +0 -54
- package/pipeline/skills/shared/external/device-integrity/SKILL.md +0 -322
- package/pipeline/skills/shared/external/device-integrity/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/device-integrity/references/device-integrity-patterns.md +0 -215
- package/pipeline/skills/shared/external/disk-cleaner/SKILL.md +0 -124
- package/pipeline/skills/shared/external/disk-cleaner/evals/evals.json +0 -62
- package/pipeline/skills/shared/external/disk-cleaner/scripts/disk-cleaner.mjs +0 -2018
- package/pipeline/skills/shared/external/docker-expert/SKILL.md +0 -169
- package/pipeline/skills/shared/external/docker-expert/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/docker-expert/references/patterns.md +0 -98
- package/pipeline/skills/shared/external/e2e-testing/SKILL.md +0 -148
- package/pipeline/skills/shared/external/e2e-testing/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/e2e-testing/references/document-fixtures.md +0 -65
- package/pipeline/skills/shared/external/energykit/SKILL.md +0 -333
- package/pipeline/skills/shared/external/energykit/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/energykit/references/energykit-patterns.md +0 -297
- package/pipeline/skills/shared/external/eventkit-calendar/SKILL.md +0 -377
- package/pipeline/skills/shared/external/eventkit-calendar/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/eventkit-calendar/references/eventkit-patterns.md +0 -283
- package/pipeline/skills/shared/external/evidence-github/SKILL.md +0 -47
- package/pipeline/skills/shared/external/evidence-github/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/evidence-registry/SKILL.md +0 -35
- package/pipeline/skills/shared/external/evidence-registry/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/fastapi-pro/SKILL.md +0 -120
- package/pipeline/skills/shared/external/fastapi-pro/evals/evals.json +0 -57
- package/pipeline/skills/shared/external/fastapi-pro/references/app-structure.md +0 -245
- package/pipeline/skills/shared/external/fastapi-pro/references/testing-and-deployment.md +0 -69
- package/pipeline/skills/shared/external/firebase-integration/SKILL.md +0 -140
- package/pipeline/skills/shared/external/firebase-integration/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/firebase-integration/references/functions-and-products.md +0 -51
- package/pipeline/skills/shared/external/firebase-integration/references/security-rules.md +0 -59
- package/pipeline/skills/shared/external/fix-review-verdicts/SKILL.md +0 -136
- package/pipeline/skills/shared/external/fix-review-verdicts/evals/evals.json +0 -57
- package/pipeline/skills/shared/external/free-llm-apis/SKILL.md +0 -70
- package/pipeline/skills/shared/external/free-llm-apis/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/free-llm-apis/references/providers.md +0 -34
- package/pipeline/skills/shared/external/github-actions-templates/SKILL.md +0 -192
- package/pipeline/skills/shared/external/github-actions-templates/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/github-actions-templates/references/patterns.md +0 -96
- package/pipeline/skills/shared/external/gradle-kotlin-dsl/SKILL.md +0 -226
- package/pipeline/skills/shared/external/gradle-kotlin-dsl/evals/evals.json +0 -58
- package/pipeline/skills/shared/external/gradle-kotlin-dsl/references/patterns.md +0 -732
- package/pipeline/skills/shared/external/handle-request/SKILL.md +0 -97
- package/pipeline/skills/shared/external/handle-request/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/healthkit/SKILL.md +0 -382
- package/pipeline/skills/shared/external/healthkit/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/healthkit/references/healthkit-patterns.md +0 -541
- package/pipeline/skills/shared/external/hig-app-icons/SKILL.md +0 -159
- package/pipeline/skills/shared/external/hig-app-icons/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/hig-app-icons/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/hig-app-icons/references/icon-workflow.md +0 -125
- package/pipeline/skills/shared/external/hig-components-content/SKILL.md +0 -78
- package/pipeline/skills/shared/external/hig-components-content/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/hig-components-content/references/content-views.md +0 -121
- package/pipeline/skills/shared/external/hig-components-layout/SKILL.md +0 -114
- package/pipeline/skills/shared/external/hig-components-layout/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/hig-components-layout/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/hig-components-layout/references/bars-and-tabs.md +0 -242
- package/pipeline/skills/shared/external/hig-components-layout/references/containers.md +0 -73
- package/pipeline/skills/shared/external/hig-components-status/SKILL.md +0 -154
- package/pipeline/skills/shared/external/hig-components-status/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/hig-components-system/SKILL.md +0 -80
- package/pipeline/skills/shared/external/hig-components-system/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/hig-components-system/references/surfaces.md +0 -98
- package/pipeline/skills/shared/external/hig-foundations/SKILL.md +0 -85
- package/pipeline/skills/shared/external/hig-foundations/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/hig-foundations/evals/trigger-eval.json +0 -21
- package/pipeline/skills/shared/external/hig-foundations/references/foundations-detail.md +0 -153
- package/pipeline/skills/shared/external/hig-foundations/references/type-color-spacing.md +0 -232
- package/pipeline/skills/shared/external/hig-inputs/SKILL.md +0 -152
- package/pipeline/skills/shared/external/hig-inputs/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/hig-patterns/SKILL.md +0 -99
- package/pipeline/skills/shared/external/hig-patterns/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/hig-patterns/references/onboarding-and-states.md +0 -199
- package/pipeline/skills/shared/external/hig-patterns/references/patterns.md +0 -86
- package/pipeline/skills/shared/external/hig-platforms/SKILL.md +0 -163
- package/pipeline/skills/shared/external/hig-platforms/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/hig-platforms/references/ipad-layout.md +0 -230
- package/pipeline/skills/shared/external/hig-technologies/SKILL.md +0 -65
- package/pipeline/skills/shared/external/hig-technologies/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/hig-technologies/references/technologies.md +0 -124
- package/pipeline/skills/shared/external/homekit-matter/SKILL.md +0 -385
- package/pipeline/skills/shared/external/homekit-matter/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/homekit-matter/references/matter-commissioning.md +0 -363
- package/pipeline/skills/shared/external/html-semantic/SKILL.md +0 -263
- package/pipeline/skills/shared/external/html-semantic/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/html-semantic/references/code-examples.md +0 -54
- package/pipeline/skills/shared/external/humanizer/SKILL.md +0 -204
- package/pipeline/skills/shared/external/humanizer/evals/evals.json +0 -59
- package/pipeline/skills/shared/external/humanizer/references/turkish.md +0 -88
- package/pipeline/skills/shared/external/humanizer/references/voice.md +0 -24
- package/pipeline/skills/shared/external/ink-animation/SKILL.md +0 -230
- package/pipeline/skills/shared/external/ink-animation/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/ios-accessibility/SKILL.md +0 -333
- package/pipeline/skills/shared/external/ios-accessibility/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/ios-accessibility/references/a11y-patterns.md +0 -470
- package/pipeline/skills/shared/external/ios-accessibility/references/assistive-tech-review.md +0 -224
- package/pipeline/skills/shared/external/ios-accessibility/references/large-content-and-appearance.md +0 -144
- package/pipeline/skills/shared/external/ios-accessibility/references/media-accessibility.md +0 -156
- package/pipeline/skills/shared/external/ios-accessibility/references/nutrition-labels.md +0 -212
- package/pipeline/skills/shared/external/ios-coding-standard/SKILL.md +0 -119
- package/pipeline/skills/shared/external/ios-coding-standard/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/ios-coding-standard/modules/_TEMPLATE.yml +0 -82
- package/pipeline/skills/shared/external/ios-coding-standard/references/STANDARD.md +0 -629
- package/pipeline/skills/shared/external/ios-coding-standard/references/lint-local.sh +0 -172
- package/pipeline/skills/shared/external/ios-coding-standard/references/rules.yml +0 -1959
- package/pipeline/skills/shared/external/ios-coding-standard/references/swiftlint.draft.yml +0 -370
- package/pipeline/skills/shared/external/ios-design-review/SKILL.md +0 -146
- package/pipeline/skills/shared/external/ios-design-review/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/ios-design-review/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/ios-design-review/references/appearance-matrix.md +0 -144
- package/pipeline/skills/shared/external/ios-design-review/references/checklist.md +0 -208
- package/pipeline/skills/shared/external/ios-haptics/SKILL.md +0 -191
- package/pipeline/skills/shared/external/ios-haptics/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/ios-haptics/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/ios-haptics/references/core-haptics.md +0 -226
- package/pipeline/skills/shared/external/ios-iphone-duo/SKILL.md +0 -178
- package/pipeline/skills/shared/external/ios-iphone-duo/evals/evals.json +0 -65
- package/pipeline/skills/shared/external/ios-iphone-duo/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/ios-iphone-duo/references/api-map.md +0 -223
- package/pipeline/skills/shared/external/ios-iphone-duo/references/fixed-assumptions.md +0 -217
- package/pipeline/skills/shared/external/ios-iphone-duo/references/poses-and-panes.md +0 -133
- package/pipeline/skills/shared/external/ios-localization/SKILL.md +0 -343
- package/pipeline/skills/shared/external/ios-localization/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/ios-localization/references/code-examples.md +0 -30
- package/pipeline/skills/shared/external/ios-localization/references/formatstyle-locale.md +0 -454
- package/pipeline/skills/shared/external/ios-localization/references/string-catalogs.md +0 -463
- package/pipeline/skills/shared/external/ios-module-structure/SKILL.md +0 -102
- package/pipeline/skills/shared/external/ios-module-structure/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/ios-module-structure/modules/_TEMPLATE.yml +0 -152
- package/pipeline/skills/shared/external/ios-module-structure/references/rules.yml +0 -673
- package/pipeline/skills/shared/external/ios-module-structure/scripts/check_structure.py +0 -827
- package/pipeline/skills/shared/external/ios-networking/SKILL.md +0 -359
- package/pipeline/skills/shared/external/ios-networking/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/ios-networking/references/background-websocket.md +0 -662
- package/pipeline/skills/shared/external/ios-networking/references/code-examples.md +0 -67
- package/pipeline/skills/shared/external/ios-networking/references/file-storage-patterns.md +0 -219
- package/pipeline/skills/shared/external/ios-networking/references/lightweight-clients.md +0 -141
- package/pipeline/skills/shared/external/ios-networking/references/network-framework.md +0 -375
- package/pipeline/skills/shared/external/ios-networking/references/urlsession-patterns.md +0 -832
- package/pipeline/skills/shared/external/ios-security/SKILL.md +0 -438
- package/pipeline/skills/shared/external/ios-security/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/ios-security/references/app-review-guidelines.md +0 -182
- package/pipeline/skills/shared/external/ios-security/references/code-examples.md +0 -84
- package/pipeline/skills/shared/external/ios-security/references/cryptokit-advanced.md +0 -311
- package/pipeline/skills/shared/external/ios-security/references/file-storage-patterns.md +0 -362
- package/pipeline/skills/shared/external/ios-security/references/privacy-manifest.md +0 -126
- package/pipeline/skills/shared/external/ios-sf-symbols/SKILL.md +0 -177
- package/pipeline/skills/shared/external/ios-sf-symbols/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/ios-sf-symbols/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/ios-sf-symbols/references/effects-and-custom-symbols.md +0 -144
- package/pipeline/skills/shared/external/ios-simulator/SKILL.md +0 -359
- package/pipeline/skills/shared/external/ios-simulator/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/ios-simulator/references/simctl-commands.md +0 -236
- package/pipeline/skills/shared/external/ios-simulator-debugging/SKILL.md +0 -99
- package/pipeline/skills/shared/external/ios-simulator-debugging/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/kotlin-coroutines-expert/SKILL.md +0 -153
- package/pipeline/skills/shared/external/kotlin-coroutines-expert/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/kotlin-coroutines-expert/references/patterns.md +0 -111
- package/pipeline/skills/shared/external/live-activities/SKILL.md +0 -363
- package/pipeline/skills/shared/external/live-activities/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/live-activities/references/activitykit-patterns.md +0 -742
- package/pipeline/skills/shared/external/live-activities/references/code-examples.md +0 -108
- package/pipeline/skills/shared/external/localization-reuse-map/SKILL.md +0 -88
- package/pipeline/skills/shared/external/localization-reuse-map/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/localization-reuse-map/example-mapping.json +0 -188
- package/pipeline/skills/shared/external/localization-reuse-map/references/format-and-output.md +0 -135
- package/pipeline/skills/shared/external/localization-reuse-map/references/project-settings.md +0 -22
- package/pipeline/skills/shared/external/localization-reuse-map/references/publish-and-snapshot.md +0 -78
- package/pipeline/skills/shared/external/localization-reuse-map/references/sources-and-recipes.md +0 -154
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/_shared.py +0 -201
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/build-artifact.py +0 -838
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/build-spreadsheet.py +0 -298
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/fetch-annotations.py +0 -291
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/fetch-legacy-labels.py +0 -114
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/publish-confluence.py +0 -224
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/render-key-shots.py +0 -234
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/render-overlay.py +0 -551
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/resolve-legacy-values.py +0 -191
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/resolve-new-values.py +0 -160
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/scan-screen-keys.py +0 -166
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/snapshot-resources.sh +0 -29
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/verify-map.py +0 -163
- package/pipeline/skills/shared/external/macos-app-distribution/SKILL.md +0 -149
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/bootstrap/Package.swift +0 -17
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/bootstrap/Sources/MyApp/MyApp.swift +0 -24
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/bootstrap/Sources/MyApp/Resources/.keep +0 -0
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/bootstrap/version.env +0 -4
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/build_icon.sh +0 -56
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/compile_and_run.sh +0 -84
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/launch.sh +0 -35
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/make_appcast.sh +0 -97
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/package_app.sh +0 -265
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/setup_dev_signing.sh +0 -63
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/sign-and-notarize.sh +0 -83
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/version.env +0 -4
- package/pipeline/skills/shared/external/macos-app-distribution/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/macos-app-distribution/evals/trigger-eval.json +0 -10
- package/pipeline/skills/shared/external/macos-app-distribution/references/packaging.md +0 -49
- package/pipeline/skills/shared/external/macos-app-distribution/references/release.md +0 -57
- package/pipeline/skills/shared/external/macos-app-distribution/references/scaffold.md +0 -109
- package/pipeline/skills/shared/external/macos-menubar-utility/SKILL.md +0 -206
- package/pipeline/skills/shared/external/macos-menubar-utility/evals/evals.json +0 -52
- package/pipeline/skills/shared/external/macos-menubar-utility/evals/trigger-eval.json +0 -10
- package/pipeline/skills/shared/external/mapkit-location/SKILL.md +0 -371
- package/pipeline/skills/shared/external/mapkit-location/evals/evals.json +0 -51
- package/pipeline/skills/shared/external/mapkit-location/references/code-examples.md +0 -117
- package/pipeline/skills/shared/external/mapkit-location/references/mapkit-corelocation-patterns.md +0 -639
- package/pipeline/skills/shared/external/mapkit-location/references/mapkit-patterns.md +0 -712
- package/pipeline/skills/shared/external/metrickit-diagnostics/SKILL.md +0 -255
- package/pipeline/skills/shared/external/metrickit-diagnostics/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/metrickit-diagnostics/references/metrickit-patterns.md +0 -183
- package/pipeline/skills/shared/external/monorepo-architect/SKILL.md +0 -166
- package/pipeline/skills/shared/external/monorepo-architect/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/monorepo-architect/references/patterns.md +0 -70
- package/pipeline/skills/shared/external/musickit-audio/SKILL.md +0 -298
- package/pipeline/skills/shared/external/musickit-audio/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/musickit-audio/references/musickit-patterns.md +0 -303
- package/pipeline/skills/shared/external/natural-language/SKILL.md +0 -292
- package/pipeline/skills/shared/external/natural-language/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/natural-language/references/translation-patterns.md +0 -282
- package/pipeline/skills/shared/external/nextjs-routing/SKILL.md +0 -333
- package/pipeline/skills/shared/external/nextjs-routing/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/nextjs-routing/references/app-router-examples.md +0 -127
- package/pipeline/skills/shared/external/nodejs-backend-patterns/SKILL.md +0 -104
- package/pipeline/skills/shared/external/nodejs-backend-patterns/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/nodejs-backend-patterns/references/runtime-patterns.md +0 -258
- package/pipeline/skills/shared/external/nodejs-backend-patterns/references/testing-and-frameworks.md +0 -57
- package/pipeline/skills/shared/external/observability-engineer/SKILL.md +0 -158
- package/pipeline/skills/shared/external/observability-engineer/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/observability-engineer/references/patterns.md +0 -75
- package/pipeline/skills/shared/external/package-build-audit/SKILL.md +0 -114
- package/pipeline/skills/shared/external/package-build-audit/evals/evals.json +0 -56
- package/pipeline/skills/shared/external/package-build-audit/references/build-optimization-sources.md +0 -119
- package/pipeline/skills/shared/external/package-build-audit/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/package-build-audit/references/spm-analysis-checks.md +0 -126
- package/pipeline/skills/shared/external/package-build-audit/scripts/check_spm_pins.py +0 -123
- package/pipeline/skills/shared/external/passkit-wallet/SKILL.md +0 -367
- package/pipeline/skills/shared/external/passkit-wallet/evals/evals.json +0 -52
- package/pipeline/skills/shared/external/passkit-wallet/references/wallet-passes.md +0 -249
- package/pipeline/skills/shared/external/pdfkit/SKILL.md +0 -468
- package/pipeline/skills/shared/external/pdfkit/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/pdfkit/references/pdfkit-patterns.md +0 -651
- package/pipeline/skills/shared/external/pencilkit-drawing/SKILL.md +0 -367
- package/pipeline/skills/shared/external/pencilkit-drawing/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/pencilkit-drawing/references/pencilkit-patterns.md +0 -279
- package/pipeline/skills/shared/external/permissionkit/SKILL.md +0 -359
- package/pipeline/skills/shared/external/permissionkit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/permissionkit/references/code-examples.md +0 -37
- package/pipeline/skills/shared/external/permissionkit/references/permissionkit-patterns.md +0 -374
- package/pipeline/skills/shared/external/photos-camera-media/SKILL.md +0 -451
- package/pipeline/skills/shared/external/photos-camera-media/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/photos-camera-media/references/av-playback.md +0 -470
- package/pipeline/skills/shared/external/photos-camera-media/references/camera-capture.md +0 -544
- package/pipeline/skills/shared/external/photos-camera-media/references/image-loading-caching.md +0 -539
- package/pipeline/skills/shared/external/photos-camera-media/references/photokit-patterns.md +0 -465
- package/pipeline/skills/shared/external/play-store-review/SKILL.md +0 -284
- package/pipeline/skills/shared/external/play-store-review/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/play-store-review/references/signing-and-policies.md +0 -83
- package/pipeline/skills/shared/external/push-notifications/SKILL.md +0 -359
- package/pipeline/skills/shared/external/push-notifications/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/push-notifications/references/notification-code.md +0 -176
- package/pipeline/skills/shared/external/push-notifications/references/notification-patterns.md +0 -523
- package/pipeline/skills/shared/external/push-notifications/references/rich-notifications.md +0 -541
- package/pipeline/skills/shared/external/python-patterns/SKILL.md +0 -235
- package/pipeline/skills/shared/external/python-patterns/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/python-patterns/references/python-examples.md +0 -176
- package/pipeline/skills/shared/external/react-best-practices/SKILL.md +0 -293
- package/pipeline/skills/shared/external/react-best-practices/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/realitykit-ar/SKILL.md +0 -327
- package/pipeline/skills/shared/external/realitykit-ar/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/realitykit-ar/references/realitykit-patterns.md +0 -365
- package/pipeline/skills/shared/external/release-video/SKILL.md +0 -147
- package/pipeline/skills/shared/external/release-video/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/rest-api-design/SKILL.md +0 -239
- package/pipeline/skills/shared/external/rest-api-design/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/rest-api-design/references/api-examples.md +0 -233
- package/pipeline/skills/shared/external/retrofit-networking/SKILL.md +0 -219
- package/pipeline/skills/shared/external/retrofit-networking/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/retrofit-networking/references/patterns.md +0 -654
- package/pipeline/skills/shared/external/reverse-engineer-own-app/SKILL.md +0 -230
- package/pipeline/skills/shared/external/reverse-engineer-own-app/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/room-database/SKILL.md +0 -227
- package/pipeline/skills/shared/external/room-database/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/room-database/references/patterns.md +0 -630
- package/pipeline/skills/shared/external/scenario-gap-analysis/SKILL.md +0 -129
- package/pipeline/skills/shared/external/scenario-gap-analysis/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/scenario-gap-analysis/references/scenario-schema.md +0 -60
- package/pipeline/skills/shared/external/search-first/SKILL.md +0 -73
- package/pipeline/skills/shared/external/search-first/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/security-review/SKILL.md +0 -76
- package/pipeline/skills/shared/external/security-review/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/security-review/references/agentic-systems.md +0 -93
- package/pipeline/skills/shared/external/security-review/references/firebase-rules.md +0 -100
- package/pipeline/skills/shared/external/security-review/references/graphql.md +0 -82
- package/pipeline/skills/shared/external/security-review/references/llm-prompt-injection.md +0 -93
- package/pipeline/skills/shared/external/security-review/references/oauth-oidc.md +0 -100
- package/pipeline/skills/shared/external/security-review/references/owasp-mobile-top10-2024.md +0 -53
- package/pipeline/skills/shared/external/security-review/references/owasp-web-api-top10-2021.md +0 -56
- package/pipeline/skills/shared/external/security-review/references/supabase.md +0 -73
- package/pipeline/skills/shared/external/shareplay-activities/SKILL.md +0 -329
- package/pipeline/skills/shared/external/shareplay-activities/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/shareplay-activities/references/shareplay-patterns.md +0 -453
- package/pipeline/skills/shared/external/short-video-craft/SKILL.md +0 -177
- package/pipeline/skills/shared/external/short-video-craft/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/short-video-craft/references/generated-defaults.md +0 -24
- package/pipeline/skills/shared/external/signal-community/SKILL.md +0 -78
- package/pipeline/skills/shared/external/signal-community/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/skill-creator/SKILL.md +0 -88
- package/pipeline/skills/shared/external/skill-creator/audit.md +0 -63
- package/pipeline/skills/shared/external/skill-creator/checklist.md +0 -40
- package/pipeline/skills/shared/external/skill-creator/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/skill-creator/examples.md +0 -65
- package/pipeline/skills/shared/external/skill-creator/label-check.md +0 -55
- package/pipeline/skills/shared/external/skill-creator/scripts/audit-panel.js +0 -110
- package/pipeline/skills/shared/external/skill-creator/template.md +0 -83
- package/pipeline/skills/shared/external/spec-persona-walk/SKILL.md +0 -118
- package/pipeline/skills/shared/external/spec-persona-walk/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/spec-persona-walk/scripts/persona-walk-anchors.mjs +0 -443
- package/pipeline/skills/shared/external/speech-recognition/SKILL.md +0 -296
- package/pipeline/skills/shared/external/speech-recognition/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/speech-recognition/references/speechanalyzer-patterns.md +0 -189
- package/pipeline/skills/shared/external/store-screenshots/SKILL.md +0 -441
- package/pipeline/skills/shared/external/store-screenshots/evals/evals.json +0 -115
- package/pipeline/skills/shared/external/store-screenshots/references/frames.md +0 -141
- package/pipeline/skills/shared/external/storekit/SKILL.md +0 -296
- package/pipeline/skills/shared/external/storekit/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/storekit/references/app-review-guidelines.md +0 -98
- package/pipeline/skills/shared/external/storekit/references/core-patterns.md +0 -445
- package/pipeline/skills/shared/external/storekit/references/storekit-advanced.md +0 -542
- package/pipeline/skills/shared/external/swift-api-design-guidelines/SKILL.md +0 -326
- package/pipeline/skills/shared/external/swift-api-design-guidelines/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/swift-api-design-guidelines/references/argument-labels-and-parameters.md +0 -171
- package/pipeline/skills/shared/external/swift-api-design-guidelines/references/conventions-and-special-rules.md +0 -156
- package/pipeline/skills/shared/external/swift-api-design-guidelines/references/naming-and-clarity.md +0 -156
- package/pipeline/skills/shared/external/swift-api-design-guidelines/references/side-effects-and-mutating-pairs.md +0 -123
- package/pipeline/skills/shared/external/swift-architecture/SKILL.md +0 -269
- package/pipeline/skills/shared/external/swift-architecture/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/swift-architecture/references/pattern-examples.md +0 -295
- package/pipeline/skills/shared/external/swift-charts/SKILL.md +0 -314
- package/pipeline/skills/shared/external/swift-charts/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swift-charts/references/charts-patterns.md +0 -589
- package/pipeline/skills/shared/external/swift-codable/SKILL.md +0 -360
- package/pipeline/skills/shared/external/swift-codable/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swift-codable/references/codable-recipes.md +0 -207
- package/pipeline/skills/shared/external/swift-compile-hotspots/SKILL.md +0 -93
- package/pipeline/skills/shared/external/swift-compile-hotspots/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/swift-compile-hotspots/references/build-optimization-sources.md +0 -119
- package/pipeline/skills/shared/external/swift-compile-hotspots/references/code-compilation-checks.md +0 -126
- package/pipeline/skills/shared/external/swift-compile-hotspots/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/swift-compile-hotspots/scripts/diagnose_compilation.py +0 -266
- package/pipeline/skills/shared/external/swift-concurrency/SKILL.md +0 -296
- package/pipeline/skills/shared/external/swift-concurrency/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/swift-concurrency/references/approachable-concurrency.md +0 -72
- package/pipeline/skills/shared/external/swift-concurrency/references/async-algorithms.md +0 -77
- package/pipeline/skills/shared/external/swift-concurrency/references/bridging-interop.md +0 -213
- package/pipeline/skills/shared/external/swift-concurrency/references/code-examples.md +0 -100
- package/pipeline/skills/shared/external/swift-concurrency/references/concurrency-patterns.md +0 -236
- package/pipeline/skills/shared/external/swift-concurrency/references/diagnostics.md +0 -64
- package/pipeline/skills/shared/external/swift-concurrency/references/swift-6-2-additions.md +0 -18
- package/pipeline/skills/shared/external/swift-concurrency/references/swiftui-concurrency.md +0 -170
- package/pipeline/skills/shared/external/swift-concurrency/references/synchronization-primitives.md +0 -293
- package/pipeline/skills/shared/external/swift-concurrency-fix/SKILL.md +0 -123
- package/pipeline/skills/shared/external/swift-concurrency-fix/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/swift-concurrency-fix/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/swift-concurrency-fix/references/approachable-concurrency.md +0 -67
- package/pipeline/skills/shared/external/swift-concurrency-fix/references/swift-6-2-concurrency.md +0 -214
- package/pipeline/skills/shared/external/swift-concurrency-fix/references/swiftui-concurrency-tour-wwdc.md +0 -79
- package/pipeline/skills/shared/external/swift-concurrency-review/SKILL.md +0 -148
- package/pipeline/skills/shared/external/swift-concurrency-review/evals/evals.json +0 -57
- package/pipeline/skills/shared/external/swift-concurrency-review/references/actors.md +0 -170
- package/pipeline/skills/shared/external/swift-concurrency-review/references/async-streams.md +0 -66
- package/pipeline/skills/shared/external/swift-concurrency-review/references/bridging.md +0 -100
- package/pipeline/skills/shared/external/swift-concurrency-review/references/bug-patterns.md +0 -138
- package/pipeline/skills/shared/external/swift-concurrency-review/references/cancellation.md +0 -114
- package/pipeline/skills/shared/external/swift-concurrency-review/references/diagnostics.md +0 -93
- package/pipeline/skills/shared/external/swift-concurrency-review/references/hotspots.md +0 -63
- package/pipeline/skills/shared/external/swift-concurrency-review/references/interop.md +0 -146
- package/pipeline/skills/shared/external/swift-concurrency-review/references/new-features.md +0 -256
- package/pipeline/skills/shared/external/swift-concurrency-review/references/structured.md +0 -113
- package/pipeline/skills/shared/external/swift-concurrency-review/references/testing.md +0 -244
- package/pipeline/skills/shared/external/swift-concurrency-review/references/unstructured.md +0 -69
- package/pipeline/skills/shared/external/swift-formatstyle/SKILL.md +0 -296
- package/pipeline/skills/shared/external/swift-formatstyle/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swift-formatstyle/references/formatstyle-examples.md +0 -113
- package/pipeline/skills/shared/external/swift-language/SKILL.md +0 -406
- package/pipeline/skills/shared/external/swift-language/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swift-language/references/code-examples.md +0 -65
- package/pipeline/skills/shared/external/swift-language/references/swift-attributes-interop.md +0 -127
- package/pipeline/skills/shared/external/swift-language/references/swift-patterns-extended.md +0 -489
- package/pipeline/skills/shared/external/swift-security/SKILL.md +0 -217
- package/pipeline/skills/shared/external/swift-security/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/swift-security/references/biometric-authentication.md +0 -456
- package/pipeline/skills/shared/external/swift-security/references/certificate-trust.md +0 -563
- package/pipeline/skills/shared/external/swift-security/references/common-anti-patterns.md +0 -457
- package/pipeline/skills/shared/external/swift-security/references/compliance-owasp-mapping.md +0 -382
- package/pipeline/skills/shared/external/swift-security/references/credential-storage-patterns.md +0 -773
- package/pipeline/skills/shared/external/swift-security/references/cryptokit-public-key.md +0 -485
- package/pipeline/skills/shared/external/swift-security/references/cryptokit-symmetric.md +0 -445
- package/pipeline/skills/shared/external/swift-security/references/keychain-access-control.md +0 -438
- package/pipeline/skills/shared/external/swift-security/references/keychain-fundamentals.md +0 -521
- package/pipeline/skills/shared/external/swift-security/references/keychain-item-classes.md +0 -531
- package/pipeline/skills/shared/external/swift-security/references/keychain-sharing.md +0 -417
- package/pipeline/skills/shared/external/swift-security/references/migration-legacy-stores.md +0 -530
- package/pipeline/skills/shared/external/swift-security/references/secure-enclave.md +0 -522
- package/pipeline/skills/shared/external/swift-security/references/testing-security-code.md +0 -569
- package/pipeline/skills/shared/external/swift-testing/SKILL.md +0 -280
- package/pipeline/skills/shared/external/swift-testing/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/swift-testing/references/testing-advanced.md +0 -129
- package/pipeline/skills/shared/external/swift-testing/references/testing-patterns.md +0 -540
- package/pipeline/skills/shared/external/swift-testing-review/SKILL.md +0 -118
- package/pipeline/skills/shared/external/swift-testing-review/evals/evals.json +0 -59
- package/pipeline/skills/shared/external/swift-testing-review/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/swift-testing-review/references/async-tests.md +0 -256
- package/pipeline/skills/shared/external/swift-testing-review/references/core-rules.md +0 -114
- package/pipeline/skills/shared/external/swift-testing-review/references/migrating-from-xctest.md +0 -51
- package/pipeline/skills/shared/external/swift-testing-review/references/new-features.md +0 -322
- package/pipeline/skills/shared/external/swift-testing-review/references/writing-better-tests.md +0 -293
- package/pipeline/skills/shared/external/swiftdata/SKILL.md +0 -379
- package/pipeline/skills/shared/external/swiftdata/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/swiftdata/references/code-examples.md +0 -140
- package/pipeline/skills/shared/external/swiftdata/references/core-data-coexistence.md +0 -316
- package/pipeline/skills/shared/external/swiftdata/references/indexing.md +0 -82
- package/pipeline/skills/shared/external/swiftdata/references/predicate-pitfalls.md +0 -78
- package/pipeline/skills/shared/external/swiftdata/references/swiftdata-advanced.md +0 -603
- package/pipeline/skills/shared/external/swiftdata/references/swiftdata-queries.md +0 -479
- package/pipeline/skills/shared/external/swiftdata-review/SKILL.md +0 -119
- package/pipeline/skills/shared/external/swiftdata-review/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/swiftdata-review/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/swiftdata-review/references/cloudkit.md +0 -37
- package/pipeline/skills/shared/external/swiftdata-review/references/indexing.md +0 -33
- package/pipeline/skills/shared/external/swiftdata-review/references/inheritance.md +0 -127
- package/pipeline/skills/shared/external/swiftdata-review/references/model-rules.md +0 -141
- package/pipeline/skills/shared/external/swiftdata-review/references/predicates.md +0 -67
- package/pipeline/skills/shared/external/swiftlint/SKILL.md +0 -288
- package/pipeline/skills/shared/external/swiftlint/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftlint/references/adoption-and-configuration.md +0 -241
- package/pipeline/skills/shared/external/swiftlint/references/custom-rules-and-analyze.md +0 -168
- package/pipeline/skills/shared/external/swiftlint/references/plugins-run-scripts-and-integrations.md +0 -300
- package/pipeline/skills/shared/external/swiftlint/references/rule-reference.md +0 -424
- package/pipeline/skills/shared/external/swiftlint/references/rules-suppressions-and-baselines.md +0 -232
- package/pipeline/skills/shared/external/swiftui-animation/SKILL.md +0 -401
- package/pipeline/skills/shared/external/swiftui-animation/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/swiftui-animation/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/swiftui-animation/references/animation-advanced.md +0 -562
- package/pipeline/skills/shared/external/swiftui-animation/references/core-animation-bridge.md +0 -519
- package/pipeline/skills/shared/external/swiftui-animation/references/scroll-effects.md +0 -197
- package/pipeline/skills/shared/external/swiftui-feature-builder/SKILL.md +0 -105
- package/pipeline/skills/shared/external/swiftui-feature-builder/evals/evals.json +0 -55
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/accessibility-patterns.md +0 -208
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/animation-advanced.md +0 -140
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/animation-basics.md +0 -229
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/animation-transitions.md +0 -216
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/charts-accessibility.md +0 -186
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/charts.md +0 -559
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/image-optimization.md +0 -189
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/latest-apis.md +0 -361
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/layout-best-practices.md +0 -238
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/liquid-glass.md +0 -33
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/list-patterns.md +0 -346
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/macos-scenes.md +0 -258
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/macos-views.md +0 -270
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/macos-window-styling.md +0 -216
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/performance-patterns.md +0 -364
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/scroll-patterns.md +0 -209
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/sheet-navigation-patterns.md +0 -307
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/state-management.md +0 -371
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/view-structure.md +0 -342
- package/pipeline/skills/shared/external/swiftui-flow-recipes/SKILL.md +0 -110
- package/pipeline/skills/shared/external/swiftui-flow-recipes/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/app-wiring.md +0 -218
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/async-state.md +0 -111
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/components-index.md +0 -63
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/controls.md +0 -58
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/deeplinks.md +0 -77
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/focus.md +0 -118
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/form.md +0 -114
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/grids.md +0 -69
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/haptics.md +0 -9
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/input-toolbar.md +0 -64
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/lightweight-clients.md +0 -119
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/list.md +0 -85
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/loading-placeholders.md +0 -49
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/macos-settings.md +0 -71
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/matched-transitions.md +0 -76
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/media.md +0 -81
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/menu-bar.md +0 -115
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/navigationstack.md +0 -185
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/overlay.md +0 -48
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/performance.md +0 -64
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/previews.md +0 -48
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/scroll-reveal.md +0 -138
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/scrollview.md +0 -94
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/searchable.md +0 -86
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/sheets.md +0 -198
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/split-views.md +0 -75
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/tabview.md +0 -124
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/theming.md +0 -76
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/title-menus.md +0 -83
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/top-bar.md +0 -65
- package/pipeline/skills/shared/external/swiftui-gestures/SKILL.md +0 -364
- package/pipeline/skills/shared/external/swiftui-gestures/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swiftui-gestures/references/gesture-patterns.md +0 -364
- package/pipeline/skills/shared/external/swiftui-glass-effects/SKILL.md +0 -247
- package/pipeline/skills/shared/external/swiftui-glass-effects/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/swiftui-glass-effects/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/swiftui-glass-effects/references/liquid-glass.md +0 -468
- package/pipeline/skills/shared/external/swiftui-glass-effects/references/uikit-glass.md +0 -241
- package/pipeline/skills/shared/external/swiftui-layout-components/SKILL.md +0 -353
- package/pipeline/skills/shared/external/swiftui-layout-components/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swiftui-layout-components/references/form.md +0 -123
- package/pipeline/skills/shared/external/swiftui-layout-components/references/grids.md +0 -179
- package/pipeline/skills/shared/external/swiftui-layout-components/references/list.md +0 -87
- package/pipeline/skills/shared/external/swiftui-layout-components/references/scrollview.md +0 -161
- package/pipeline/skills/shared/external/swiftui-navigation/SKILL.md +0 -297
- package/pipeline/skills/shared/external/swiftui-navigation/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-navigation/references/deeplinks.md +0 -206
- package/pipeline/skills/shared/external/swiftui-navigation/references/navigationstack.md +0 -187
- package/pipeline/skills/shared/external/swiftui-navigation/references/sheets.md +0 -217
- package/pipeline/skills/shared/external/swiftui-navigation/references/tabview.md +0 -161
- package/pipeline/skills/shared/external/swiftui-patterns/SKILL.md +0 -460
- package/pipeline/skills/shared/external/swiftui-patterns/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swiftui-patterns/references/architecture-patterns.md +0 -581
- package/pipeline/skills/shared/external/swiftui-patterns/references/deprecated-migration.md +0 -965
- package/pipeline/skills/shared/external/swiftui-patterns/references/platform-and-sharing.md +0 -634
- package/pipeline/skills/shared/external/swiftui-performance/SKILL.md +0 -314
- package/pipeline/skills/shared/external/swiftui-performance/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-performance/references/demystify-swiftui-performance-wwdc23.md +0 -142
- package/pipeline/skills/shared/external/swiftui-performance/references/optimizing-swiftui-performance-instruments.md +0 -139
- package/pipeline/skills/shared/external/swiftui-performance/references/understanding-hangs-in-your-app.md +0 -156
- package/pipeline/skills/shared/external/swiftui-performance/references/understanding-improving-swiftui-performance.md +0 -99
- package/pipeline/skills/shared/external/swiftui-performance/references/wwdc-session-sources.md +0 -21
- package/pipeline/skills/shared/external/swiftui-performance-triage/SKILL.md +0 -107
- package/pipeline/skills/shared/external/swiftui-performance-triage/evals/evals.json +0 -55
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/audit-layout.md +0 -50
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/capture-checklist.md +0 -51
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/hangs.md +0 -34
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/instruments-guide.md +0 -68
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/smell-catalog.md +0 -191
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/update-model.md +0 -69
- package/pipeline/skills/shared/external/swiftui-review/SKILL.md +0 -111
- package/pipeline/skills/shared/external/swiftui-review/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/swiftui-review/references/accessibility.md +0 -40
- package/pipeline/skills/shared/external/swiftui-review/references/api.md +0 -84
- package/pipeline/skills/shared/external/swiftui-review/references/data.md +0 -63
- package/pipeline/skills/shared/external/swiftui-review/references/design.md +0 -45
- package/pipeline/skills/shared/external/swiftui-review/references/hygiene.md +0 -18
- package/pipeline/skills/shared/external/swiftui-review/references/navigation.md +0 -24
- package/pipeline/skills/shared/external/swiftui-review/references/performance.md +0 -62
- package/pipeline/skills/shared/external/swiftui-review/references/swift.md +0 -84
- package/pipeline/skills/shared/external/swiftui-review/references/views.md +0 -60
- package/pipeline/skills/shared/external/swiftui-uikit-interop/SKILL.md +0 -311
- package/pipeline/skills/shared/external/swiftui-uikit-interop/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-uikit-interop/references/hosting-migration.md +0 -361
- package/pipeline/skills/shared/external/swiftui-uikit-interop/references/interop-code.md +0 -198
- package/pipeline/skills/shared/external/swiftui-uikit-interop/references/representable-recipes.md +0 -747
- package/pipeline/skills/shared/external/swiftui-view-splitting/SKILL.md +0 -242
- package/pipeline/skills/shared/external/swiftui-view-splitting/evals/evals.json +0 -56
- package/pipeline/skills/shared/external/swiftui-view-splitting/references/mv-patterns.md +0 -188
- package/pipeline/skills/shared/external/swiftui-webkit/SKILL.md +0 -229
- package/pipeline/skills/shared/external/swiftui-webkit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-webkit/references/loading-and-observation.md +0 -148
- package/pipeline/skills/shared/external/swiftui-webkit/references/local-content-and-custom-schemes.md +0 -98
- package/pipeline/skills/shared/external/swiftui-webkit/references/migration-and-fallbacks.md +0 -97
- package/pipeline/skills/shared/external/swiftui-webkit/references/navigation-and-javascript.md +0 -147
- package/pipeline/skills/shared/external/tailwind-styling/SKILL.md +0 -240
- package/pipeline/skills/shared/external/tailwind-styling/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/tailwind-styling/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/tailwind-styling/references/code-examples.md +0 -91
- package/pipeline/skills/shared/external/test-result-triage/SKILL.md +0 -160
- package/pipeline/skills/shared/external/test-result-triage/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/testing-backend/SKILL.md +0 -196
- package/pipeline/skills/shared/external/testing-backend/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/testing-backend/references/testing-examples.md +0 -266
- package/pipeline/skills/shared/external/thesis-writing/SKILL.md +0 -140
- package/pipeline/skills/shared/external/thesis-writing/evals/evals.json +0 -40
- package/pipeline/skills/shared/external/thesis-writing/references/review-checklist.md +0 -33
- package/pipeline/skills/shared/external/thesis-writing/references/turkish-thesis-conventions.md +0 -65
- package/pipeline/skills/shared/external/tipkit/SKILL.md +0 -381
- package/pipeline/skills/shared/external/tipkit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/tipkit/references/tipkit-patterns.md +0 -658
- package/pipeline/skills/shared/external/typescript-patterns/SKILL.md +0 -258
- package/pipeline/skills/shared/external/typescript-patterns/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/typescript-patterns/references/code-examples.md +0 -100
- package/pipeline/skills/shared/external/valven-rules/SKILL.md +0 -93
- package/pipeline/skills/shared/external/valven-rules/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/valven-rules/references/rules.yml +0 -186
- package/pipeline/skills/shared/external/vision-framework/SKILL.md +0 -346
- package/pipeline/skills/shared/external/vision-framework/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/vision-framework/references/code-examples.md +0 -26
- package/pipeline/skills/shared/external/vision-framework/references/vision-requests.md +0 -631
- package/pipeline/skills/shared/external/vision-framework/references/visionkit-scanner.md +0 -573
- package/pipeline/skills/shared/external/vue-composition/SKILL.md +0 -212
- package/pipeline/skills/shared/external/vue-composition/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/vue-composition/references/vue-examples.md +0 -187
- package/pipeline/skills/shared/external/weatherkit/SKILL.md +0 -256
- package/pipeline/skills/shared/external/weatherkit/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/weatherkit/references/weatherkit-patterns.md +0 -459
- package/pipeline/skills/shared/external/web-accessibility/SKILL.md +0 -209
- package/pipeline/skills/shared/external/web-accessibility/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/web-accessibility/references/a11y-examples.md +0 -178
- package/pipeline/skills/shared/external/web-performance/SKILL.md +0 -290
- package/pipeline/skills/shared/external/web-performance/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/web-performance/references/code-examples.md +0 -77
- package/pipeline/skills/shared/external/web-testing/SKILL.md +0 -270
- package/pipeline/skills/shared/external/web-testing/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/web-testing/references/testing-examples.md +0 -213
- package/pipeline/skills/shared/external/widgetkit/SKILL.md +0 -365
- package/pipeline/skills/shared/external/widgetkit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/widgetkit/references/widgetkit-advanced.md +0 -801
|
@@ -1,1959 +0,0 @@
|
|
|
1
|
-
version: 1.2.0
|
|
2
|
-
updated: 2026-07-29
|
|
3
|
-
owner: iOS platform
|
|
4
|
-
description: >
|
|
5
|
-
The rule registry. STANDARD.md teaches these to a newcomer with examples; EXAMPLES.md carries a
|
|
6
|
-
worked ✗/✓ pair per judgement rule; SKILL.md audits against them. IDs are stable and never
|
|
7
|
-
renumbered - a rule is retired by status, not deletion.
|
|
8
|
-
|
|
9
|
-
# What these rules may be applied to. A consumer resolves this BEFORE selecting rules,
|
|
10
|
-
# and records how many it dropped and why. Without it every rule below would be applied
|
|
11
|
-
# to every changed file, which on an Objective-C or UIKit diff manufactures findings and
|
|
12
|
-
# buries the real ones - worse than declaring no coverage at all.
|
|
13
|
-
#
|
|
14
|
-
# Per-rule `scope:` narrows this further and never widens it. A rule with no `scope:`
|
|
15
|
-
# inherits the block below.
|
|
16
|
-
scope:
|
|
17
|
-
languages: [swift]
|
|
18
|
-
paths:
|
|
19
|
-
- "**/*.swift"
|
|
20
|
-
excludePaths:
|
|
21
|
-
- "**/*.generated.swift"
|
|
22
|
-
- "**/Generated/**"
|
|
23
|
-
- "**/*.pb.swift"
|
|
24
|
-
# Named so a consumer can report the gap rather than silently covering nothing:
|
|
25
|
-
# these languages appear in iOS repos and this registry does NOT speak for them.
|
|
26
|
-
notCovered:
|
|
27
|
-
objective-c: "*.m / *.mm / *.h - no ObjC rules exist here; report as a coverage gap, never apply Swift rules to them"
|
|
28
|
-
uikit: "UIKit view controllers are Swift, so file-level rules apply, but the UI-* family assumes SwiftUI view construction and is scoped out below"
|
|
29
|
-
c-cpp: "*.c / *.cc / *.hpp - out of scope"
|
|
30
|
-
|
|
31
|
-
severity_levels: [blocking, important, suggestion]
|
|
32
|
-
enforcement_kinds:
|
|
33
|
-
format: the formatter owns it; not reviewed by humans
|
|
34
|
-
lint: a linter decides it mechanically
|
|
35
|
-
scan: a tool measures it (dead code, coverage, graph)
|
|
36
|
-
judgement: requires a human or an audit run
|
|
37
|
-
exception_marker: "// standard:exception(<RULE-ID>) <reason> <expiry:YYYY-MM-DD>"
|
|
38
|
-
|
|
39
|
-
# ---------------------------------------------------------------------------
|
|
40
|
-
# Roles - what the structure rules name instead of paths
|
|
41
|
-
# ---------------------------------------------------------------------------
|
|
42
|
-
# A structure rule never names a folder or a type; it names a role, and the module's overlay binds
|
|
43
|
-
# that role to its own spelling. An UNBOUND role disables every rule that reads it, and the audit
|
|
44
|
-
# reports that rather than guessing a shape. Substitutions available in a binding: {dir}, {stem}.
|
|
45
|
-
roles:
|
|
46
|
-
screen.root: the directory that is one screen; everything else resolves relative to it
|
|
47
|
-
screen.entry: the file a coordinator or factory constructs to show the screen
|
|
48
|
-
screen.viewmodel: the type holding the screen's behaviour and service calls
|
|
49
|
-
screen.state: the type holding UI state, when the module separates it from the view model
|
|
50
|
-
screen.analytics: the screen's analytics surface
|
|
51
|
-
screen.factory: the seam another module calls to build the screen
|
|
52
|
-
screen.mapper: the wire-to-domain translation for the screen
|
|
53
|
-
service.dir: one directory per service operation, holding that operation's models
|
|
54
|
-
service.request: the request half of a service operation
|
|
55
|
-
service.response: the response half of a service operation
|
|
56
|
-
subview.view: an extracted view belonging to one screen
|
|
57
|
-
subview.configuration: the value type an extracted view renders
|
|
58
|
-
repository.live: the production implementation of a screen's data access
|
|
59
|
-
repository.mock: the scripted implementation previews and the debug menu use
|
|
60
|
-
shared.root: the module's cross-screen folder
|
|
61
|
-
source.root: the module's source tree, as the mirror rule's counterpart to the test tree
|
|
62
|
-
test.root: the module's test tree
|
|
63
|
-
|
|
64
|
-
module_overlay_slots:
|
|
65
|
-
description: >
|
|
66
|
-
Some rules govern a CHOICE rather than a defect: two shapes are each internally coherent, the
|
|
67
|
-
cost is only in mixing them, and picking one is the module's call. Writing one of them into the
|
|
68
|
-
shared registry turns every module that chose the other into a hundred findings - which is a
|
|
69
|
-
migration proposal wearing a standards pass. Those rules bind to a slot here instead. The
|
|
70
|
-
module's `modules/<Module>.yml` overlay binds it; an UNBOUND slot disables its rules, and the
|
|
71
|
-
audit says so in the plan rather than defaulting to one dialect silently.
|
|
72
|
-
A slot is only legitimate when both values are genuinely defensible. `UI-04` is the
|
|
73
|
-
counter-example: a module with no copy surface has not chosen a different dialect, it is
|
|
74
|
-
missing the surface, so that rule is not slotted.
|
|
75
|
-
slots:
|
|
76
|
-
- id: ScreenLayerShape
|
|
77
|
-
governs: [STRUCT-02, STRUCT-03]
|
|
78
|
-
values:
|
|
79
|
-
layered: every screen carries the same layer folders, including the ones empty for it.
|
|
80
|
-
organic: a screen carries only the layers it actually has.
|
|
81
|
-
note: Decides whether "this screen has no data layer" is a finding or a fact.
|
|
82
|
-
- id: ServiceModelDir
|
|
83
|
-
governs: [STRUCT-09]
|
|
84
|
-
values:
|
|
85
|
-
under-data: the request/response pair sits in the data layer, beside the calling code.
|
|
86
|
-
under-mapper: the pair sits beside the mapper that translates it.
|
|
87
|
-
- id: ServiceModelPairing
|
|
88
|
-
governs: [STRUCT-09]
|
|
89
|
-
values:
|
|
90
|
-
both: every operation models a request and a response, even when the request is empty.
|
|
91
|
-
response-only: a request is modelled only when the call carries a body.
|
|
92
|
-
- id: ScreenAssemblyShape
|
|
93
|
-
governs: [STRUCT-10]
|
|
94
|
-
values:
|
|
95
|
-
per-screen-factory: each screen ships its own construction seam.
|
|
96
|
-
shared-factory: one factory per module builds every screen.
|
|
97
|
-
- id: UIStateHolder
|
|
98
|
-
governs: [STRUCT-11]
|
|
99
|
-
values:
|
|
100
|
-
separate-state-type: UI state lives in its own type beside the view model.
|
|
101
|
-
view-model-owned: the view model holds UI state directly.
|
|
102
|
-
- id: SubviewShape
|
|
103
|
-
governs: [READ-04b, STRUCT-12, STRUCT-13]
|
|
104
|
-
values:
|
|
105
|
-
folder-per-subview: each extracted view gets a folder holding it and its value type.
|
|
106
|
-
flat: extracted views sit loose in one folder, with no required companion.
|
|
107
|
-
- id: ScreenCompositionShape
|
|
108
|
-
governs: [STRUCT-07]
|
|
109
|
-
values:
|
|
110
|
-
extracted: a fragment of the screen becomes a named view beside it.
|
|
111
|
-
in-file: the entry file composes its own fragments.
|
|
112
|
-
note: >
|
|
113
|
-
Both keep the body readable, which is what STRUCT-07 protects. Counting view members on
|
|
114
|
-
entry files against extracted view files tells you which one the module chose.
|
|
115
|
-
- id: ServiceNamingScheme
|
|
116
|
-
governs: [SVC-07]
|
|
117
|
-
values:
|
|
118
|
-
send-path: >
|
|
119
|
-
a method wrapping one service call is named after the endpoint path, prefixed to say a
|
|
120
|
-
request leaves the device. One spelling on both sides of the wire; a grep from the
|
|
121
|
-
endpoint reaches every layer.
|
|
122
|
-
domain-verb: >
|
|
123
|
-
the method is named after what the domain asks for. Reads more naturally at the call site
|
|
124
|
-
and survives an endpoint being renamed, at the cost of the endpoint-to-code grep.
|
|
125
|
-
note: >
|
|
126
|
-
Module-wide, never per screen. Changing the bound value is a rename migration with its own
|
|
127
|
-
ticket, not a review comment.
|
|
128
|
-
- id: NavExitShape
|
|
129
|
-
governs: [NAME-01]
|
|
130
|
-
values:
|
|
131
|
-
coordinator-event: a typed event enum per screen plus a handler alias the coordinator applies.
|
|
132
|
-
output-closure: an output enum per screen delivered through a closure the factory injects.
|
|
133
|
-
note: Both enumerate every exit in one place, which is the property NAME-01 actually protects.
|
|
134
|
-
- id: ComponentsDir
|
|
135
|
-
governs: [READ-04b]
|
|
136
|
-
values:
|
|
137
|
-
Presentation/Components: the conventional spelling.
|
|
138
|
-
Presentation/Subviews: an equally clear alternative in use.
|
|
139
|
-
note: The name is free; using two of them in one module is not.
|
|
140
|
-
|
|
141
|
-
persistence_decision:
|
|
142
|
-
description: >
|
|
143
|
-
Answer this BEFORE reaching for storage. Keychain is the answer to "where does a persisted
|
|
144
|
-
secret live", not to "this value is sensitive". Most sensitive values in a flow never need to
|
|
145
|
-
persist at all, and persisting them is the more expensive mistake.
|
|
146
|
-
ladder:
|
|
147
|
-
- step: 1
|
|
148
|
-
question: Does this value need to outlive the current flow?
|
|
149
|
-
default: "No - assume transient until a requirement says otherwise"
|
|
150
|
-
if_no: >
|
|
151
|
-
Keep it in memory for the duration of the flow and drop it when the flow ends. Do NOT
|
|
152
|
-
write it to the Keychain: an unnecessary keychain item survives the flow, survives logout
|
|
153
|
-
unless someone remembers to delete it, and creates a cleanup obligation nobody owns.
|
|
154
|
-
Over-persisting is itself a finding, not a safe default.
|
|
155
|
-
if_yes: go to step 2
|
|
156
|
-
- step: 2
|
|
157
|
-
question: What does it need to survive - app backgrounding, app restart, or reinstall?
|
|
158
|
-
guidance: >
|
|
159
|
-
Backgrounding only -> in-memory state owned by the flow's model is still correct.
|
|
160
|
-
App restart -> Keychain with the accessibility class the data demands.
|
|
161
|
-
Reinstall -> a deliberate product decision that someone signs off; never a storage default.
|
|
162
|
-
- step: 3
|
|
163
|
-
question: Which data class is it?
|
|
164
|
-
guidance: >
|
|
165
|
-
The class (below) decides the storage tier and the logging rule. never-persist-locally
|
|
166
|
-
classes stay transient no matter what step 2 said - the answer to "it needs to survive"
|
|
167
|
-
for a payment instrument or a biometric is a server-side or system-provided token, not
|
|
168
|
-
local storage.
|
|
169
|
-
transient_obligations: >
|
|
170
|
-
Transient does not mean unregulated. A value held only in memory still obeys SEC-03 (never
|
|
171
|
-
logged), SEC-05 (cleared when the flow ends or the session drops, hidden from the app-switcher
|
|
172
|
-
snapshot), and SEC-06 (never sent to analytics).
|
|
173
|
-
|
|
174
|
-
sensitive_data_classes:
|
|
175
|
-
description: >
|
|
176
|
-
The SEC rules are written against these CLASSES, never against one module's field names.
|
|
177
|
-
Each audited module resolves its own concrete instances into a sensitive-data inventory
|
|
178
|
-
(SKILL.md Phase 2d), and the lint mechanisms are generated from that inventory rather than
|
|
179
|
-
hardcoded. A class with no instance in the module simply yields no rule.
|
|
180
|
-
The at_rest value below applies ONLY to values that passed the persistence ladder - it says
|
|
181
|
-
where a value goes IF it must persist, never that it must.
|
|
182
|
-
classes:
|
|
183
|
-
- id: auth-token
|
|
184
|
-
covers: session, access, refresh and bearer tokens; loyalty or membership auth tokens; API credentials
|
|
185
|
-
at_rest: keychain-required
|
|
186
|
-
loggable: never
|
|
187
|
-
- id: credential
|
|
188
|
-
covers: password, PIN, passcode, security answer, one-time code
|
|
189
|
-
at_rest: keychain-required
|
|
190
|
-
loggable: never
|
|
191
|
-
note: prefer never persisting at all; a one-time code has no reason to outlive its use
|
|
192
|
-
- id: government-id
|
|
193
|
-
covers: national identity number, tax number, driving licence number
|
|
194
|
-
at_rest: keychain-required
|
|
195
|
-
loggable: never
|
|
196
|
-
- id: identity-document
|
|
197
|
-
covers: passport number and expiry, visa data, residence permit
|
|
198
|
-
at_rest: keychain-required
|
|
199
|
-
loggable: never
|
|
200
|
-
- id: order-reference
|
|
201
|
-
covers: order number, reservation code, ticket number, confirmation barcode payload
|
|
202
|
-
at_rest: keychain-or-protected
|
|
203
|
-
loggable: never
|
|
204
|
-
note: individually low-value, but it authorises access to a customer record
|
|
205
|
-
- id: membership-identity
|
|
206
|
-
covers: loyalty or programme membership number, tier, account identifier
|
|
207
|
-
at_rest: keychain-or-protected
|
|
208
|
-
loggable: hashed-or-truncated-only
|
|
209
|
-
- id: payment-instrument
|
|
210
|
-
covers: card number, expiry, CVV, tokenised card reference, billing address
|
|
211
|
-
at_rest: never-persist-locally
|
|
212
|
-
loggable: never
|
|
213
|
-
- id: personal-contact
|
|
214
|
-
covers: full name, date of birth, email, phone, postal address
|
|
215
|
-
at_rest: protected-storage
|
|
216
|
-
loggable: never
|
|
217
|
-
note: name alone is low risk; name paired with date of birth or a document number is not
|
|
218
|
-
- id: biometric-or-health
|
|
219
|
-
covers: any biometric template, health or accessibility need, special-category data
|
|
220
|
-
at_rest: never-persist-locally
|
|
221
|
-
loggable: never
|
|
222
|
-
- id: precise-location
|
|
223
|
-
covers: device coordinates beyond city granularity
|
|
224
|
-
at_rest: never-persist-locally
|
|
225
|
-
loggable: never
|
|
226
|
-
|
|
227
|
-
rules:
|
|
228
|
-
# ── READ - format & readability ───────────────────────────────────────────
|
|
229
|
-
- id: READ-01
|
|
230
|
-
title: MARK sections separate concerns - business rules, service calls, UI, one group each
|
|
231
|
-
severity: important
|
|
232
|
-
predicate: vocabulary
|
|
233
|
-
params:
|
|
234
|
-
vocabulary_key: SectionHeadings
|
|
235
|
-
declaration: '^\s*//\s*MARK:\s*-\s*(.+)$'
|
|
236
|
-
exempt_patterns: ['^[a-z][a-zA-Z0-9/{}.\- ]*$', '→', '↔']
|
|
237
|
-
enforcement: lint
|
|
238
|
-
rationale: readability
|
|
239
|
-
check: >
|
|
240
|
-
A file mixing a service call, a business rule and a view fragment under one MARK (or none)
|
|
241
|
-
is a finding even when short. Section order follows the module's conventions doc.
|
|
242
|
-
In a use case or repository implementation the sections are named after WHAT EACH TALKS TO
|
|
243
|
-
- `Service requests`, `On-device cache`, and so on - so a reader sees at a glance which
|
|
244
|
-
calls leave the device and which do not.
|
|
245
|
-
|
|
246
|
-
- id: READ-02
|
|
247
|
-
title: Comments are clear statements; no AI or tool attribution anywhere
|
|
248
|
-
severity: blocking
|
|
249
|
-
enforcement: lint
|
|
250
|
-
mechanism: "custom regex: (?i)(generated by|copilot|co-authored-by:.*(claude|anthropic|ai))"
|
|
251
|
-
rationale: readability
|
|
252
|
-
check: >
|
|
253
|
-
Trim a comment by deleting what the code already says, the design-frame archaeology and the
|
|
254
|
-
historical aside - never the decision. If a sentence records WHY a shape was chosen, or what
|
|
255
|
-
breaks without it, it stays however long the block ends up.
|
|
256
|
-
|
|
257
|
-
Carve-out - a comment that IS data is not prose and is not trimmed: a trigger/prefix table,
|
|
258
|
-
a state-transition matrix, a wire-contract enumeration. Those exist nowhere else in the
|
|
259
|
-
codebase, so shortening them destroys the only copy. Judge a long block by whether it
|
|
260
|
-
repeats the code or replaces a missing document.
|
|
261
|
-
|
|
262
|
-
- id: READ-03
|
|
263
|
-
title: Size thresholds with carve-outs - screen 600 / file 400 / function 40 lines
|
|
264
|
-
severity: important
|
|
265
|
-
predicate: file_size
|
|
266
|
-
params:
|
|
267
|
-
test_marker: /Tests/
|
|
268
|
-
enforcement: lint
|
|
269
|
-
mechanism: swiftlint file_length, function_body_length, type_body_length
|
|
270
|
-
rationale: readability
|
|
271
|
-
exempt: [generated sources, mock/fixture data files]
|
|
272
|
-
tooling_limitation: >
|
|
273
|
-
SwiftLint's built-in length rules take no per-rule `excluded`, so the mock/fixture carve-out
|
|
274
|
-
cannot be expressed in the config - those files still report. Honour the exemption in the
|
|
275
|
-
audit pass and in the baseline; do not "fix" a fixture file to satisfy a line count.
|
|
276
|
-
check: File over 120 lines with zero MARK is a separate finding - a reader has no map.
|
|
277
|
-
|
|
278
|
-
- id: READ-04
|
|
279
|
-
title: Component placement is decided by call-site count, not by feel
|
|
280
|
-
severity: important
|
|
281
|
-
enforcement: judgement
|
|
282
|
-
rationale: readability
|
|
283
|
-
check: >
|
|
284
|
-
2+ call sites -> own file with its own configuration in the shared layer. Exactly one call
|
|
285
|
-
site and bound to the screen's state -> private view builder in a MARK'd extension.
|
|
286
|
-
Both directions are findings.
|
|
287
|
-
|
|
288
|
-
- id: READ-04e
|
|
289
|
-
title: Header chrome belongs to the header, not to the scroll content
|
|
290
|
-
severity: suggestion
|
|
291
|
-
enforcement: judgement
|
|
292
|
-
rationale: readability
|
|
293
|
-
check: >
|
|
294
|
-
A bar that reads as part of the screen's header - a route chip, a countdown, a step bar -
|
|
295
|
-
goes inside the header component's add-on slot, not as the first row of the scroll
|
|
296
|
-
content. Rendered below the header it squares off the header's rounded bottom corners and
|
|
297
|
-
scrolls away from the title it belongs to. The header component has the slot; use it.
|
|
298
|
-
|
|
299
|
-
- id: READ-04b
|
|
300
|
-
title: A view fragment that renders a thing is a component file with a preview
|
|
301
|
-
severity: important
|
|
302
|
-
predicate: sibling_required
|
|
303
|
-
params:
|
|
304
|
-
slot: SubviewShape
|
|
305
|
-
slot_value: folder-per-subview
|
|
306
|
-
subject_role: subview.view
|
|
307
|
-
strip_suffix_from_vocabulary: SubviewViewSuffix
|
|
308
|
-
append_suffix_from_vocabulary: SubviewConfigurationSuffix
|
|
309
|
-
enforcement: lint
|
|
310
|
-
rationale: testability
|
|
311
|
-
check: >
|
|
312
|
-
A `private var x: some View` inside a scene is a component in disguise. If it renders a
|
|
313
|
-
THING - a switcher, a chip row, a banner, a bar, a legend, a card - extract it to its own
|
|
314
|
-
file under the screen's component directory (the overlay's `ComponentsDir`, conventionally
|
|
315
|
-
`Presentation/Components/`), as a `struct` that takes DATA and
|
|
316
|
-
CALLBACKS, never the view model, and give it a `#Preview`.
|
|
317
|
-
The directory's NAME is a dialect choice and not a finding on its own; using two names for
|
|
318
|
-
it within one module is.
|
|
319
|
-
Taking data instead of the view model is what makes the preview possible at all: a
|
|
320
|
-
component holding a view model needs the DI container a canvas preview never configures,
|
|
321
|
-
and the workaround (a preview-only fixture type shipped in production sources) is itself
|
|
322
|
-
a finding.
|
|
323
|
-
What stays a `@ViewBuilder` on the scene: the composition itself - the piece that orders
|
|
324
|
-
the components, branches on loaded / error / empty, and reads the view model to decide
|
|
325
|
-
WHICH component shows. That is business-rule display and it belongs with the screen.
|
|
326
|
-
The test is what the fragment DOES, not how long it is. A row of icon + two labels + a
|
|
327
|
-
button is a component even at ten lines; a three-line `if loaded { a } else { b }` is
|
|
328
|
-
composition. A fragment that renders a thing AND takes no parameters is still a component -
|
|
329
|
-
"it needs no arguments" means the data is hardcoded or read off the view model, and both
|
|
330
|
-
are reasons to extract, not to keep it.
|
|
331
|
-
A component the design system already owns (the shared UI package) needs no wrapper and
|
|
332
|
-
no preview here; render it inline and let the design system own its previews.
|
|
333
|
-
|
|
334
|
-
- id: READ-04c
|
|
335
|
-
title: A business rule is a view-model member; the view reads it, never computes it
|
|
336
|
-
severity: important
|
|
337
|
-
enforcement: judgement
|
|
338
|
-
rationale: testability
|
|
339
|
-
check: >
|
|
340
|
-
A `private var x: Bool/String/Int` in a scene that reads the view model and decides
|
|
341
|
-
something - "is the header shown", "which tab is active", "what does the CTA say" - is a
|
|
342
|
-
business rule in the view layer. It belongs on the view model, in its business-rules
|
|
343
|
-
section, where a unit test can reach it. The scene reads `viewModel.x`.
|
|
344
|
-
Not this rule: building a design-system `Configuration` value. Moving those to the view
|
|
345
|
-
model drags UI types across the boundary; they belong inside the component that renders
|
|
346
|
-
them (READ-04b), which is where they disappear once the component takes data.
|
|
347
|
-
The view model is where such a rule GOES BY DEFAULT, and for a single-screen rule that is
|
|
348
|
-
the end of it. When the same question turns out to be several screens', SVC-08's ladder
|
|
349
|
-
decides between the entity and a named rule namespace (RULE-01); moving it out of the view
|
|
350
|
-
layer is this rule, choosing its final home is that one.
|
|
351
|
-
Also not this rule: reading the load state's own shape (NAME-06). `state.isLoading` decides
|
|
352
|
-
nothing - it reports what the enum already says.
|
|
353
|
-
|
|
354
|
-
- id: READ-04d
|
|
355
|
-
title: A pure transform is a shared helper, not a method on the view
|
|
356
|
-
severity: important
|
|
357
|
-
enforcement: judgement
|
|
358
|
-
rationale: flexibility
|
|
359
|
-
check: >
|
|
360
|
-
A function in a scene that touches no view-model state and returns no view - a date
|
|
361
|
-
format, a duration split, initials from a name, a unit conversion - is a value transform.
|
|
362
|
-
It belongs in the module's formatter / extension home (`Common/Formatters`, a typed
|
|
363
|
-
`X+Extension`), not on whichever screen needed it first.
|
|
364
|
-
The tell is duplication: the same `initials(_:)` written once in a scene and again in a
|
|
365
|
-
mapper is the normal outcome of leaving these where they were typed. Move it on the first
|
|
366
|
-
sighting, not the second.
|
|
367
|
-
**A domain-local formatter type is the second choice, not the first.** Search the shared
|
|
368
|
-
layer BEFORE writing one: a date/number/string transform with no domain vocabulary in it
|
|
369
|
-
is not a domain concern, and the app already has a home for it (`CoreExtensions`,
|
|
370
|
-
`CoreFormatters`). Grep the behaviour, not the name - the existing helper will be spelled
|
|
371
|
-
differently (`Date.localizedBFFDate` vs a hand-rolled `displayDate`), and a per-domain
|
|
372
|
-
`XFormatters` full of re-implementations of it is how three domains end up with three
|
|
373
|
-
subtly different renderings of one contract field. When the shared helper is 90% right,
|
|
374
|
-
extend IT (a new `Format` case, a defaulted parameter) rather than forking it.
|
|
375
|
-
A domain-local formatter type is correct only when it adds domain vocabulary on top of the
|
|
376
|
-
shared primitives - naming which two formats a screen's pickers exchange, for instance -
|
|
377
|
-
and implements no formatting of its own.
|
|
378
|
-
Not this rule: a function that builds a design-system `Configuration` from screen data.
|
|
379
|
-
That is the component's own lowering and belongs inside the component (READ-04b).
|
|
380
|
-
|
|
381
|
-
- id: READ-05
|
|
382
|
-
title: Multi-line signature style - open paren at line end, one parameter per line
|
|
383
|
-
severity: suggestion
|
|
384
|
-
enforcement: format
|
|
385
|
-
mechanism: swiftformat wrapArguments
|
|
386
|
-
rationale: readability
|
|
387
|
-
|
|
388
|
-
- id: READ-06
|
|
389
|
-
title: One extension per protocol conformance
|
|
390
|
-
severity: suggestion
|
|
391
|
-
enforcement: judgement
|
|
392
|
-
rationale: readability
|
|
393
|
-
|
|
394
|
-
- id: READ-07
|
|
395
|
-
title: Casing, boolean prefixes, guard-early / return-early
|
|
396
|
-
severity: suggestion
|
|
397
|
-
predicate: naming_pattern
|
|
398
|
-
params:
|
|
399
|
-
glob: '**/*.swift'
|
|
400
|
-
declaration: '^\s+(?:@\w+\s+)?(?:private\(set\)\s+)?(?:public\s+)?var\s+([a-z]\w*)\s*:\s*Bool\b'
|
|
401
|
-
accept_from_vocabulary: BooleanPrefixes
|
|
402
|
-
enforcement: lint
|
|
403
|
-
mechanism: swiftlint identifier_name, type_name, cyclomatic_complexity
|
|
404
|
-
rationale: readability
|
|
405
|
-
|
|
406
|
-
- id: READ-08
|
|
407
|
-
title: Forbidden constructs - force unwrap, force cast, IUO, magic numbers, raw colors/fonts, print
|
|
408
|
-
severity: blocking
|
|
409
|
-
enforcement: lint
|
|
410
|
-
mechanism: swiftlint force_unwrapping, force_cast, force_try, implicitly_unwrapped_optional; custom no_print, no_raw_hex, no_raw_font
|
|
411
|
-
rationale: security
|
|
412
|
-
|
|
413
|
-
- id: READ-09
|
|
414
|
-
title: Standard file header - own target module, and the author's FULL git identity
|
|
415
|
-
check: >
|
|
416
|
-
The author line carries the identity exactly as git records it, department included
|
|
417
|
-
("NAME - <Department> Mudurlugu"). A bare name does not say which team owns the file, and
|
|
418
|
-
the same person appears under several spellings once the department is dropped.
|
|
419
|
-
severity: suggestion
|
|
420
|
-
enforcement: lint
|
|
421
|
-
mechanism: swiftlint file_header
|
|
422
|
-
rationale: readability
|
|
423
|
-
|
|
424
|
-
# ── STRUCT - project structure ────────────────────────────────────────────
|
|
425
|
-
- id: STRUCT-01
|
|
426
|
-
title: One primary top-level type per file; nesting only for owned details
|
|
427
|
-
severity: important
|
|
428
|
-
predicate: naming_pattern
|
|
429
|
-
params:
|
|
430
|
-
glob: '**/*.swift'
|
|
431
|
-
declaration: '^(?:public\s+)?(?:final\s+)?(?:struct|class|enum|actor|protocol)\s+(\w+)'
|
|
432
|
-
match_file_stem: true
|
|
433
|
-
enforcement: lint
|
|
434
|
-
rationale: readability
|
|
435
|
-
check: >
|
|
436
|
-
Forbidden nested: entity, domain model, request/response payload, list element. Allowed
|
|
437
|
-
nested: a configuration/style/state helper with exactly one owner and no second reference
|
|
438
|
-
site; a nested type a MACRO or an external design mapping owns - a `@FormSection`-generated
|
|
439
|
-
`X.Section`, a Code Connect-mapped `X.State` - where flattening silently renames a
|
|
440
|
-
contract the generator or the design file still refers to (the compiler catches the macro
|
|
441
|
-
case, the design mapping fails silently); and a pure constants namespace - a caseless enum
|
|
442
|
-
whose members are only `static let`
|
|
443
|
-
literals (`AppConstant.Phone.defaultDialCode`), where the nesting IS the grouping and
|
|
444
|
-
flattening to `AppConstantPhone` buys nothing. Decide by reference count, never by keyword.
|
|
445
|
-
|
|
446
|
-
- id: STRUCT-02
|
|
447
|
-
title: A screen is a known file manifest, not a pile
|
|
448
|
-
severity: important
|
|
449
|
-
predicate: dir_required_in_dir
|
|
450
|
-
params:
|
|
451
|
-
slot: ScreenLayerShape
|
|
452
|
-
slot_value: layered
|
|
453
|
-
vocabulary_key: LayerDirs
|
|
454
|
-
enforcement: lint
|
|
455
|
-
rationale: readability
|
|
456
|
-
check: >
|
|
457
|
-
Scene, ViewModel, AnalyticsTracking, UseCase, Repository (+protocol +mock), Mapper +
|
|
458
|
-
models - each present when its responsibility exists. In a converted module the screen's
|
|
459
|
-
Output enum lives contract-side, not here, and a module-local CoordinatorEvent or
|
|
460
|
-
copy aggregator (`<Screen>Copy`) is pre-conversion residue reported as debt. Report a missing file
|
|
461
|
-
whose responsibility leaked elsewhere AND a ceremonial empty file.
|
|
462
|
-
|
|
463
|
-
- id: STRUCT-03
|
|
464
|
-
title: Every screen sits at the same depth with the same internal grouping
|
|
465
|
-
severity: important
|
|
466
|
-
predicate: dir_required_in_dir
|
|
467
|
-
params:
|
|
468
|
-
vocabulary_key: PresentationDir
|
|
469
|
-
enforcement: lint
|
|
470
|
-
rationale: readability
|
|
471
|
-
|
|
472
|
-
- id: STRUCT-04
|
|
473
|
-
title: Nothing lives outside the layout - no loose root type, no Utils/Helpers/Misc bucket
|
|
474
|
-
severity: important
|
|
475
|
-
predicate: naming_pattern
|
|
476
|
-
params:
|
|
477
|
-
glob: '**/*.swift'
|
|
478
|
-
declaration: '^(?:public\s+)?(?:final\s+)?(?:struct|class|enum|actor|protocol)\s+(\w+)'
|
|
479
|
-
reject_from_vocabulary: ForbiddenTypeSuffixes
|
|
480
|
-
enforcement: lint
|
|
481
|
-
rationale: readability
|
|
482
|
-
|
|
483
|
-
- id: STRUCT-05
|
|
484
|
-
title: Type placement follows a consumer-count ladder
|
|
485
|
-
severity: important
|
|
486
|
-
predicate: prefix_collision
|
|
487
|
-
params:
|
|
488
|
-
subject_role: shared.root
|
|
489
|
-
enforcement: lint
|
|
490
|
-
rationale: flexibility
|
|
491
|
-
check: >
|
|
492
|
-
2+ modules -> cross-module shared tier. 2+ screens -> module shared entities. One screen ->
|
|
493
|
-
that screen's own domain folder, in the sub-folder its KIND belongs to: an enum in
|
|
494
|
-
`Domain/Enums/`, a value object in `Domain/Entities/`. A screen-behaviour enum (NAME-05) is
|
|
495
|
-
a domain type, not a presentation one - it does not live beside the Scene.
|
|
496
|
-
Both over- and under-hoisting are findings: a single-consumer type in the shared tier
|
|
497
|
-
inflates the shared surface and reads as load-bearing when it is not.
|
|
498
|
-
|
|
499
|
-
# ── NAME ──────────────────────────────────────────────────────────────────
|
|
500
|
-
- id: NAME-01
|
|
501
|
-
title: One name per role - a screen's navigation exit has one spelling module-wide
|
|
502
|
-
severity: blocking
|
|
503
|
-
enforcement: lint
|
|
504
|
-
mechanism: >
|
|
505
|
-
custom regex scoped to Scene/ViewModel, generated from the module's bound `NavExitShape`:
|
|
506
|
-
any navigation-exit property or parameter whose name does not match the bound spelling.
|
|
507
|
-
rationale: readability
|
|
508
|
-
applies_when: >
|
|
509
|
-
the module's overlay binds `NavExitShape`. Unbound, this rule is DISABLED - a regex for one
|
|
510
|
-
spelling would report every module that chose the other one, which is a dialect difference,
|
|
511
|
-
not a defect.
|
|
512
|
-
check: >
|
|
513
|
-
What this rule protects is that a reader finds a screen's exits under ONE name across the
|
|
514
|
-
module. The settled shape is an `Output` enum consumed through a plain closure, with the
|
|
515
|
-
enum living in the flow-contracts target. A `CoordinatorEvent` enum with a handler alias
|
|
516
|
-
is the pre-conversion spelling: legitimate only in a module that has not converted yet, a
|
|
517
|
-
debt finding in one that has, and never a choice for new code. The hard finding is a module
|
|
518
|
-
that uses both, or a screen whose exits are spread across an enum and loose ad-hoc
|
|
519
|
-
callbacks. Report the spelling per screen and the count of each.
|
|
520
|
-
|
|
521
|
-
- id: NAME-02
|
|
522
|
-
title: Our models use RequestModel/ResponseModel; transport suffixes stop at the data layer
|
|
523
|
-
severity: blocking
|
|
524
|
-
enforcement: lint
|
|
525
|
-
mechanism: 'custom regex: Dto\b in Presentation paths'
|
|
526
|
-
rationale: flexibility
|
|
527
|
-
|
|
528
|
-
- id: NAME-03
|
|
529
|
-
title: Module naming scheme - forbidden affixes come from the module's own conventions doc
|
|
530
|
-
severity: important
|
|
531
|
-
enforcement: lint
|
|
532
|
-
mechanism: custom regex per module (Fetch prefix, Flow suffix, Manager/Helper/Util where banned)
|
|
533
|
-
rationale: readability
|
|
534
|
-
|
|
535
|
-
- id: NAME-04
|
|
536
|
-
title: Fixed value sets are enums with tolerant decoding, not raw strings
|
|
537
|
-
severity: blocking
|
|
538
|
-
enforcement: judgement
|
|
539
|
-
rationale: security
|
|
540
|
-
check: >
|
|
541
|
-
An unrecognised server value must land on a known-unknown case rather than failing or
|
|
542
|
-
silently carrying an arbitrary string into the UI.
|
|
543
|
-
**When the generator declares the same value set several times** - one inline enum per
|
|
544
|
-
response payload, because that is what the schema says - do not pick one of them as the
|
|
545
|
-
domain type and do not add a `switch` per mapper. Declare the domain enum once and bridge
|
|
546
|
-
through the shared raw code, in an extension on the domain type
|
|
547
|
-
(`extension X { init?(wireCode: String) }`) that lives beside it. Every mapper then maps
|
|
548
|
-
through one initialiser, the unknown value lands in one place, and adding a case is one edit
|
|
549
|
-
rather than one per payload. The bridge is a lowering, so it stays a mapper concern and does
|
|
550
|
-
not put the generated types in front of the view model (SVC-04).
|
|
551
|
-
Report per value set: how many generated declarations exist, how many hand-written mappings
|
|
552
|
-
of it the module has, and whether the unknown value is handled the same way in each.
|
|
553
|
-
|
|
554
|
-
- id: NAME-05
|
|
555
|
-
title: Screen behaviour is driven by an enum state, not by a spread of booleans
|
|
556
|
-
severity: important
|
|
557
|
-
enforcement: judgement
|
|
558
|
-
rationale: readability
|
|
559
|
-
check: >
|
|
560
|
-
Where the wire already carries the state (a status, a redirect, a form type), map it into
|
|
561
|
-
an enum and branch on that - NAME-04 covers the decoding side. Where it does not, but the
|
|
562
|
-
screen still renders materially different variants, declare the enum ON THE SCREEN and
|
|
563
|
-
derive it from whatever inputs decide it. A variant set spread across three or four
|
|
564
|
-
independent booleans is the finding: nothing states which combinations are legal, the
|
|
565
|
-
reader has to enumerate them by hand, and `switch` stops telling the compiler to check
|
|
566
|
-
exhaustiveness.
|
|
567
|
-
|
|
568
|
-
Two shapes qualify as a finding:
|
|
569
|
-
1. Three or more booleans read together to decide one visual outcome.
|
|
570
|
-
2. A boolean pair whose illegal combination is only prevented by call order.
|
|
571
|
-
|
|
572
|
-
The enum belongs to the view model as a derived value, not to stored state - deriving it
|
|
573
|
-
keeps a single source of truth, whereas a stored copy drifts from the inputs it mirrors.
|
|
574
|
-
Two independent booleans that never interact are fine; do not enum-ify for its own sake.
|
|
575
|
-
|
|
576
|
-
- id: NAME-06
|
|
577
|
-
title: The screen's load state is one enum with its payload attached, and the absent case is explained
|
|
578
|
-
severity: important
|
|
579
|
-
enforcement: judgement
|
|
580
|
-
rationale: readability
|
|
581
|
-
check: >
|
|
582
|
-
NAME-05 says a screen's behaviour is an enum rather than a spread of booleans. This rule is
|
|
583
|
-
about the LOAD state specifically - the one every screen with a service call has - and about
|
|
584
|
-
the shape, because the shape is what stops the booleans growing back.
|
|
585
|
-
- **The payload hangs off the case, not beside it.** `case loaded(Content)` where `Content`
|
|
586
|
-
is its own struct. The alternative - an `isLoading` flag next to an optional `data` next to
|
|
587
|
-
an optional `errorMessage` - permits `isLoading == true` with data present and an error
|
|
588
|
-
set, a combination nothing in the type rejects and every reader has to reason about.
|
|
589
|
-
- **The enum answers questions; the view does not destructure it.** Accessors on the enum
|
|
590
|
-
(`var isLoading`, `var <entity>`) keep `if case let` out of the view body. These are not
|
|
591
|
-
business rules (READ-04c) - they are reads of the state's own shape.
|
|
592
|
-
- **A case deliberately NOT modelled is stated in the file, with its reason.** "There is no
|
|
593
|
-
`empty` case: a successful response always represents a populated record; an empty payload
|
|
594
|
-
arrives as a not-found error." Without that line the next reader cannot tell a considered
|
|
595
|
-
omission from an oversight, and adds the case defensively.
|
|
596
|
-
- **A secondary source that may fail is an optional slot inside the payload, not a second
|
|
597
|
-
state.** When a screen's primary data loads but a supporting fetch fails, the failure
|
|
598
|
-
belongs in `Content` as an optional the view simply does not render - not as a screen-level
|
|
599
|
-
error that discards the data that did arrive. Say so at the property: what nil means and
|
|
600
|
-
why it is non-fatal. Promoting a non-critical failure to a screen error is the finding, and
|
|
601
|
-
so is silently defaulting it to an empty value, which makes "absent" and "empty" the same.
|
|
602
|
-
**The measurement:** count the mutually-dependent state properties the view reads to decide
|
|
603
|
-
what to render. Three or more that must be read together, or any pair whose illegal
|
|
604
|
-
combination the type permits, is the finding.
|
|
605
|
-
|
|
606
|
-
- id: STRUCT-07
|
|
607
|
-
title: A scene is one type - no inner view struct wrapping it
|
|
608
|
-
severity: important
|
|
609
|
-
predicate: forbidden_member
|
|
610
|
-
params:
|
|
611
|
-
slot: ScreenCompositionShape
|
|
612
|
-
slot_value: extracted
|
|
613
|
-
subject_role: screen.entry
|
|
614
|
-
pattern: '^\s+(?:@ViewBuilder\s+)?(?:private\s+)?(?:var|func)\s+(\w+)[^\n]*?some View'
|
|
615
|
-
allow: [body]
|
|
616
|
-
enforcement: lint
|
|
617
|
-
rationale: readability
|
|
618
|
-
check: >
|
|
619
|
-
`struct XScene: View { var body: some View { XView(viewModel: viewModel) } }` with the real
|
|
620
|
-
body in a second struct in the same file is two types where the reader expects one: the
|
|
621
|
-
scene's name is the one in the coordinator and the file, and everything about the screen
|
|
622
|
-
should be under it. Fold the inner view's body and state into the scene. The exception is a
|
|
623
|
-
genuinely reusable view with its own consumers - and that one belongs in
|
|
624
|
-
`Presentation/Components/` under READ-04b, not beside the scene.
|
|
625
|
-
|
|
626
|
-
- id: STRUCT-08
|
|
627
|
-
title: Each live implementation sits in its own file beside its protocol
|
|
628
|
-
severity: important
|
|
629
|
-
enforcement: judgement
|
|
630
|
-
rationale: readability
|
|
631
|
-
check: >
|
|
632
|
-
`XUseCase.swift` holds the protocol; `XUseCaseLive.swift` sits next to it. Same for a
|
|
633
|
-
repository. A reader opening the protocol sees the contract without scrolling past an
|
|
634
|
-
implementation, and the implementation file is where the collaborators are declared.
|
|
635
|
-
**The split earns its keep when there is an implementation to scroll past.** A repository, or
|
|
636
|
-
any implementation with a body - request construction, mapping, cache reads, error
|
|
637
|
-
projection - is split: that is the case the rule is for. A use case that is a pure
|
|
638
|
-
pass-through, whose whole body forwards one call to one collaborator, may keep the protocol,
|
|
639
|
-
the live type and its null object (TEST-08) in one file: there is no contract to scroll past,
|
|
640
|
-
and splitting a dozen of those produces three dozen files whose names differ by a suffix.
|
|
641
|
-
Decide by whether the implementation has anything a reader must skip, never by the layer's
|
|
642
|
-
name - and apply one answer across the module, because the cost of this rule is a reader
|
|
643
|
-
guessing which file a type is in.
|
|
644
|
-
A pass-through use case is worth a second look for a different reason: SVC-01 asks what it
|
|
645
|
-
adds over calling the repository directly. That is a separate finding from this one.
|
|
646
|
-
|
|
647
|
-
- id: STRUCT-06
|
|
648
|
-
title: A validation rule is a shared type until measurement says otherwise
|
|
649
|
-
severity: important
|
|
650
|
-
enforcement: judgement
|
|
651
|
-
rationale: flexibility
|
|
652
|
-
check: >
|
|
653
|
-
Form/validation rules are the classic silent duplication: each one is small enough to
|
|
654
|
-
re-type in ten seconds, so every module does, and the copies then drift. Before adding one,
|
|
655
|
-
grep the shared rule library AND every sibling module for the CONCEPT, not the name - the
|
|
656
|
-
same rule appears as `EmailFormatRule` / `EmailRule`, `NationalIdRule` / `NationalIdChecksumRule` /
|
|
657
|
-
`IdentityNumberRule`, `OrderNumberRule` / `OrderNumberOrEmailFormatRule` / `<Screen>OrderNumberOrEmailFormatRule`.
|
|
658
|
-
Name-matching alone finds none of those.
|
|
659
|
-
|
|
660
|
-
Placement follows STRUCT-05, with one addition: the error copy is NOT part of the rule.
|
|
661
|
-
A rule takes its error as an init parameter, so one shared implementation serves every
|
|
662
|
-
module while each keeps its own localized message - that is what makes hoisting cheap.
|
|
663
|
-
|
|
664
|
-
Report per concept: implementations · owning modules · whether the shared library already
|
|
665
|
-
has one · and any BEHAVIOURAL divergence between copies. Divergence outranks the
|
|
666
|
-
duplication itself: two same-named rules that accept different input mean a value valid on
|
|
667
|
-
one screen is rejected on another, and nothing in either module says so. Merging them is a
|
|
668
|
-
behaviour decision needing its own tests, never a silent move.
|
|
669
|
-
|
|
670
|
-
# ── SVC - service surface ─────────────────────────────────────────────────
|
|
671
|
-
- id: SVC-01
|
|
672
|
-
title: One request model in, one result out
|
|
673
|
-
severity: important
|
|
674
|
-
enforcement: judgement
|
|
675
|
-
rationale: readability
|
|
676
|
-
check: >
|
|
677
|
-
A boundary method past ~2 parameters is a finding - the parameters want to be a request
|
|
678
|
-
model. async, never a completion handler. No throws alongside the result family. Naming
|
|
679
|
-
is governed by SVC-07, which overrides "pick a domain verb" for anything that wraps a
|
|
680
|
-
single service call.
|
|
681
|
-
|
|
682
|
-
- id: SVC-02
|
|
683
|
-
title: Protocol, live implementation and test double share one signature
|
|
684
|
-
severity: important
|
|
685
|
-
enforcement: judgement
|
|
686
|
-
rationale: testability
|
|
687
|
-
|
|
688
|
-
- id: SVC-03
|
|
689
|
-
title: The call site reads as one awaited statement, handled in the data-loading section
|
|
690
|
-
severity: suggestion
|
|
691
|
-
enforcement: judgement
|
|
692
|
-
rationale: readability
|
|
693
|
-
|
|
694
|
-
- id: SVC-04
|
|
695
|
-
title: Generated networking is never hand-edited; generated types are touched only in the mapper
|
|
696
|
-
severity: blocking
|
|
697
|
-
enforcement: lint
|
|
698
|
-
mechanism: CI diff check on the generated path + custom regex for generated type names outside Mapper
|
|
699
|
-
rationale: flexibility
|
|
700
|
-
|
|
701
|
-
- id: SVC-05
|
|
702
|
-
title: One failure vocabulary per module, built through one factory - outcomes may be screen-scoped
|
|
703
|
-
severity: blocking
|
|
704
|
-
enforcement: judgement
|
|
705
|
-
rationale: testability
|
|
706
|
-
check: >
|
|
707
|
-
Two concerns meet in this rule, and conflating them pushes modules toward the wrong fix
|
|
708
|
-
in both directions. Separate them:
|
|
709
|
-
**The failure vocabulary is module-scoped.** The set of ways a call can fail - offline,
|
|
710
|
-
timeout, unauthorised, not-found, conflict, server, unknown - is one type the whole module
|
|
711
|
-
shares, produced by one factory that projects the transport error onto it. This is the
|
|
712
|
-
blocking half. The tell that it was skipped: the same offline / timeout / server triple
|
|
713
|
-
hand-written into a dozen screen-local types, each classifying the transport error again, so
|
|
714
|
-
a new failure kind means a dozen edits and the classifications drift apart. Count the
|
|
715
|
-
declarations of the same failure kind across the module; more than one home for the same
|
|
716
|
-
concept is the finding.
|
|
717
|
-
**The outcome type may be screen-scoped.** SVC-09 allows a screen to declare its own closed
|
|
718
|
-
outcome enum, whose success cases carry that screen's destinations. That is not a second
|
|
719
|
-
error family and does not violate this rule - provided the failure cases PROJECT FROM the
|
|
720
|
-
module vocabulary rather than redeclaring it. A screen-scoped outcome that reaches for the
|
|
721
|
-
transport error directly, or invents its own failure spelling, is the violation; one that
|
|
722
|
-
names the shared kinds is correct.
|
|
723
|
-
The distinction in one line: **how a call can fail is a module fact; what a screen does next
|
|
724
|
-
is a screen fact.**
|
|
725
|
-
|
|
726
|
-
- id: SVC-06
|
|
727
|
-
title: Spec discipline - nothing hand-written around the generator, no endpoint in two specs
|
|
728
|
-
severity: important
|
|
729
|
-
enforcement: scan
|
|
730
|
-
rationale: flexibility
|
|
731
|
-
|
|
732
|
-
- id: SVC-07
|
|
733
|
-
title: A method that wraps one service call is named after that service
|
|
734
|
-
severity: important
|
|
735
|
-
enforcement: lint
|
|
736
|
-
mechanism: custom regex - non-`send` funcs in repository protocols surface for an explicit marker
|
|
737
|
-
rationale: readability
|
|
738
|
-
applies_when: >
|
|
739
|
-
the module's overlay binds `ServiceNamingScheme: send-path`. Unbound, or bound to
|
|
740
|
-
`domain-verb`, this rule is DISABLED for the module - see module_overlay_slots. The scheme is
|
|
741
|
-
a module-wide decision because its whole value is one spelling on both sides of the wire;
|
|
742
|
-
what the rule then enforces is internal consistency with the declared scheme, never
|
|
743
|
-
conformity to a sibling module's choice.
|
|
744
|
-
check: >
|
|
745
|
-
`send` + the endpoint path, segments in their own order, camel-cased, path parameters
|
|
746
|
-
dropped: `check-open-status` → `sendCheckOpenStatus`, `order/items/save` →
|
|
747
|
-
`sendOrderItemsSave`, `session/extend` → `sendSessionExtend`,
|
|
748
|
-
`lookup/{brand}/product` → `sendLookupProduct`.
|
|
749
|
-
The path is the name, not the generated client method. A generator prefixes GET
|
|
750
|
-
endpoints with `get` and appends parameter suffixes (`getCatalogPageInfo`,
|
|
751
|
-
`getProductListByBrand`) - both are artifacts of the generator, and `get`
|
|
752
|
-
also reorders the segments the backend chose. Copying the generated name silently
|
|
753
|
-
renames the service; copying the path keeps one spelling on both sides of the wire.
|
|
754
|
-
The HTTP verb is never part of the name: the endpoint already implies it, and `send`
|
|
755
|
-
already says a request leaves the device. The name
|
|
756
|
-
carries down the whole chain - repository protocol, live implementation, mock, test
|
|
757
|
-
double, and any use case that is a straight pass-through - so one grep from the
|
|
758
|
-
endpoint reaches every layer that touches it, and a reader of the call site knows
|
|
759
|
-
which service will fire without opening the repository.
|
|
760
|
-
Transport verbs invented by the client (`fetch...`, `load...`, `get...`) are the violation:
|
|
761
|
-
they name what the code does, which the signature already says, instead of what the
|
|
762
|
-
backend is being asked, which nothing else says.
|
|
763
|
-
Two exceptions, and both must be visible:
|
|
764
|
-
- **Several methods over one service.** When screen-scoped variants share a call
|
|
765
|
-
(three country pickers filtering one `lookup/country`; an OTP path and a no-OTP path
|
|
766
|
-
over one `add-fqtv-number`), the single private caller takes `send<ServiceName>` and
|
|
767
|
-
the variants keep their screen names above it.
|
|
768
|
-
- **No service behind it yet.** A placeholder whose endpoint does not exist keeps its
|
|
769
|
-
domain name.
|
|
770
|
-
Both carry `standard:exception(SVC-07)` with the reason, so the exception is a line in
|
|
771
|
-
the file rather than an inconsistency a reader has to explain to themselves.
|
|
772
|
-
A use case that aggregates, transforms, or merges sources is NOT a pass-through and
|
|
773
|
-
keeps its domain name (SVC-01).
|
|
774
|
-
|
|
775
|
-
- id: SVC-08
|
|
776
|
-
title: A business rule lives in the view model or on its own struct - nowhere else
|
|
777
|
-
severity: important
|
|
778
|
-
enforcement: lint
|
|
779
|
-
mechanism: custom regex - arithmetic and conditional expressions inside Mapper paths
|
|
780
|
-
rationale: testability
|
|
781
|
-
check: >
|
|
782
|
-
There are exactly three homes for a business rule, and RULE-01 carries the ladder that
|
|
783
|
-
picks between them: the **view model** that owns the behaviour; a **computed property on
|
|
784
|
-
the struct the rule is about** (under a `// MARK: - Derived`), when more than one screen
|
|
785
|
-
asks the same question of data the struct already holds; or a **named rule namespace**
|
|
786
|
-
(RULE-01), when several screens share a rule that is screen policy rather than entity
|
|
787
|
-
state. Every other layer is transport. A mapper, a `UseCaseLive`, a repository, a DTO mirror, a
|
|
788
|
-
coordinator, a data source - each moves values between two shapes and decides nothing. A
|
|
789
|
-
`UseCaseLive` in particular reads as a tempting home because it already knows the domain
|
|
790
|
-
vocabulary: it does not get one. Its body is call → map → return, plus cache read/write;
|
|
791
|
-
the moment it branches on a status code, merges two responses by a rule, or defaults a
|
|
792
|
-
value nobody can derive from the payload, that rule has been hidden from the view model
|
|
793
|
-
that lives with it and from every test that would have covered it.
|
|
794
|
-
A mapper lowers one shape onto another and nothing else. Unwrapping an optional wire
|
|
795
|
-
field to its empty value (`?? ""`, `?? false`, `?? []`) is lowering and is fine - the
|
|
796
|
-
domain type is non-optional and the wire type is not.
|
|
797
|
-
These are NOT lowering, and each one belongs to the view model (or, when several screens
|
|
798
|
-
share it, a named domain rule the view models call):
|
|
799
|
-
- **Arithmetic and unit conversion.** `TimeInterval(ms) / 1000`, a currency scale, a
|
|
800
|
-
percentage. Carry the wire value with its unit in the name (`sessionTimeoutMs`) and
|
|
801
|
-
convert where it is read.
|
|
802
|
-
- **A clamp or a threshold.** `max(0, remaining)`, `count > 1`, "negative means none".
|
|
803
|
-
A past deadline meaning "no countdown" is a product decision, not a cast.
|
|
804
|
-
- **Choosing a screen state.** Resolving a variant, an enum case, or an error message
|
|
805
|
-
from a combination of flags. Carry the flags; decide in the view model.
|
|
806
|
-
- **A policy default.** `?? 180` seconds, `?? items.count`. A number nobody can
|
|
807
|
-
derive from the payload is policy and belongs next to the code that lives with it.
|
|
808
|
-
- **Dropping or promoting records.** Filtering a code out of a list, or turning one code
|
|
809
|
-
into a different field, encodes what that code MEANS. That meaning belongs on the
|
|
810
|
-
entity when several screens read it, and in the view model when one does.
|
|
811
|
-
Why the mapper is the wrong home: it is the one type with no screen context, and a rule
|
|
812
|
-
buried in it is invisible from the view model that owns the behaviour, untestable without
|
|
813
|
-
constructing a DTO, and silently duplicated the next time another screen needs it.
|
|
814
|
-
A shape read the mapper legitimately makes: choosing which array element the requested
|
|
815
|
-
index refers to, or grouping rows by a key. It moves values into position; it does not
|
|
816
|
-
decide what they mean.
|
|
817
|
-
When the SAME lowering appears in more than one screen's mapper, it does not become a
|
|
818
|
-
shared mapper type in a folder of its own - it moves onto the entity it produces, as an
|
|
819
|
-
`init(_ dto:)` in an extension under a `// MARK: - Wire Mapping` in the entity's own file.
|
|
820
|
-
The entity is where a reader looks for "how is this built"; a `FooMapper` parked at the top
|
|
821
|
-
of the module is a second place to look and belongs to no screen.
|
|
822
|
-
|
|
823
|
-
**Moving a rule OUT of a mapper is two edits, not one.** The reason these rules survive
|
|
824
|
-
review is that deleting the decision also deletes the data it was computed from: the mapper
|
|
825
|
-
stored `isFailure: Bool` and dropped `info.status`, so no later layer can re-derive it.
|
|
826
|
-
So: first make the entity CARRY the raw inputs the decision reads (`info: Info?`,
|
|
827
|
-
`hasPrevention: Bool`, `stepCompletions: [Bool]`), then express the decision as a computed
|
|
828
|
-
property. Where that property lives:
|
|
829
|
-
- **On the entity**, under a `// MARK: - Derived` - when more than one screen, or the
|
|
830
|
-
screen AND its mocks, ask the same question. This is also what keeps the mock
|
|
831
|
-
repositories honest: a mock can no longer hand-set a state the real payload could never
|
|
832
|
-
produce, because the state is computed from the same inputs in both.
|
|
833
|
-
- **In the view model** - when the question is that one screen's, or when the answer needs
|
|
834
|
-
anything the entity does not hold (localized copy, a feature flag, live user state).
|
|
835
|
-
- **In a named rule namespace** (RULE-01) - when several screens share the rule but it is
|
|
836
|
-
screen policy rather than entity state, so putting it on the entity would make a data
|
|
837
|
-
carrier answer a question about presentation. RULE-01 carries the selection ladder.
|
|
838
|
-
Never in the mapper, and never as a stored field the mapper fills, because a stored field
|
|
839
|
-
is indistinguishable from a wire value at every call site that reads it.
|
|
840
|
-
|
|
841
|
-
Auditing a module for this is a grep, but a noisy one. These MATCH the search and are NOT
|
|
842
|
-
violations - do not "fix" them: `init(x: T? = nil)` default-nil signatures, `?? ""` /
|
|
843
|
-
`?? false` / `?? []` lowering of an optional wire field onto a non-optional domain one,
|
|
844
|
-
`.first { $0.index == requested }` and `Dictionary(grouping:)` shape reads, and
|
|
845
|
-
`.filter { !$0.isEmpty }.joined()` name assembly. What IS a violation: a comparison that
|
|
846
|
-
names a code or a state (`== "TK"`, `== .error`, `status ?? "USABLE"`), a conditional that
|
|
847
|
-
emits or drops a field, an aggregation whose result is a screen state
|
|
848
|
-
(`contains { ... } ? .invalid : .valid`), and any localized string.
|
|
849
|
-
|
|
850
|
-
- id: SVC-09
|
|
851
|
-
title: A service outcome is a closed enum - a failure is a value, not control flow
|
|
852
|
-
severity: important
|
|
853
|
-
enforcement: judgement
|
|
854
|
-
rationale: testability
|
|
855
|
-
check: >
|
|
856
|
-
A boundary method returns ONE type that enumerates every outcome the caller must handle,
|
|
857
|
-
and the caller `switch`es over it exhaustively. The compiler then answers "is any outcome
|
|
858
|
-
unhandled?", which no `catch` can. SVC-01 already bans `throws` alongside a result family;
|
|
859
|
-
this rule says what the family looks like.
|
|
860
|
-
Three properties make it work, and each is a separate finding when missing:
|
|
861
|
-
- **Total.** Success, business failure, and every transport failure the screen renders
|
|
862
|
-
differently are cases of the same type. A method that returns a result AND throws has two
|
|
863
|
-
outcome channels, so no `switch` is exhaustive.
|
|
864
|
-
- **Projected, not leaked.** The transport error family (the networking package's own error
|
|
865
|
-
type) is projected onto the screen's outcome inside the data layer, through one shared
|
|
866
|
-
projection helper rather than a per-repository `switch`. The transport type never appears
|
|
867
|
-
in a Domain or Presentation signature (FLEX-05). A repository that returns the transport
|
|
868
|
-
error verbatim has moved the classification into every caller.
|
|
869
|
-
- **Named after the outcome, not the payload.** A success case may carry a DESTINATION
|
|
870
|
-
rather than data - a redirect the backend chose, resolved from the wire value into a case
|
|
871
|
-
(NAME-04) so no raw string reaches the view model. That is the shape's main advantage over
|
|
872
|
-
a bare `Result<Payload, Error>`, and it is why the two coexist.
|
|
873
|
-
Where the error spine lives is SVC-05's question, not this one: the outcome enum is
|
|
874
|
-
screen-scoped, the failure vocabulary it projects from is module-scoped. Duplicating the
|
|
875
|
-
same offline / timeout / server triple into each screen's enum is the SVC-05 finding.
|
|
876
|
-
**The measurement, for a finding to be one:** per boundary method, the outcome-channel count
|
|
877
|
-
(a result type plus a `throws` is two), the number of call sites that re-classify a transport
|
|
878
|
-
error, and whether any non-exhaustive `switch` over the result exists. No count, no finding.
|
|
879
|
-
|
|
880
|
-
# ── RULE - business-rule surface ──────────────────────────────────────────
|
|
881
|
-
- id: RULE-01
|
|
882
|
-
title: A shared business rule lives in a named rule namespace, as a pure static, traceable to its source
|
|
883
|
-
severity: important
|
|
884
|
-
enforcement: judgement
|
|
885
|
-
rationale: testability
|
|
886
|
-
check: >
|
|
887
|
-
SVC-08 names three homes for a business rule. The ladder that picks between them, cheapest
|
|
888
|
-
rung first:
|
|
889
|
-
1. **One screen asks it** -> the view model. Stop here. Do not create a namespace for one
|
|
890
|
-
caller; a namespace with a single consumer is over-hoisting (STRUCT-05).
|
|
891
|
-
2. **Several screens ask it, of data the entity already carries** -> a computed property on
|
|
892
|
-
the entity, under `// MARK: - Derived`. This is also what keeps test doubles honest: a
|
|
893
|
-
double can no longer hand-set a state the real payload could not produce.
|
|
894
|
-
3. **Several screens ask it, but the answer is screen POLICY rather than entity state** ->
|
|
895
|
-
a named rule namespace. Putting it on the entity would make a data carrier answer a
|
|
896
|
-
question about presentation; leaving it in one view model hides it from the others.
|
|
897
|
-
The namespace's shape, and each property is what makes it auditable:
|
|
898
|
-
- A **caseless enum** (never a struct with an initialiser, never a class), so it cannot be
|
|
899
|
-
instantiated or hold state.
|
|
900
|
-
- **Static, pure functions.** Inputs in, value out. No stored state, no I/O, no logging, no
|
|
901
|
-
localized copy. A rule that needs the environment takes it as a parameter - a clock as a
|
|
902
|
-
defaulted parameter is the accepted seam, and it is what keeps TEST-01 satisfied without
|
|
903
|
-
an injected container for a value transform.
|
|
904
|
-
- It lives in the module's **domain layer**, beside the entities it reads, not beside the
|
|
905
|
-
scene that needed it first.
|
|
906
|
-
- It is **not** a formatter, a mapper, or a validator. A value transform is READ-04d, a
|
|
907
|
-
shape lowering is SVC-08, a form rule is STRUCT-06. A namespace that accumulates all four
|
|
908
|
-
is a Utils bucket with a better name (STRUCT-04).
|
|
909
|
-
**Traceability is part of the rule, not a nicety.** Each function names the requirement it
|
|
910
|
-
enforces - the spec clause, business-rule ID, or ticket - in its doc comment, and the test
|
|
911
|
-
that covers it repeats that same token in its name. One grep then reaches requirement, code
|
|
912
|
-
and test. This is also the rule's own measurement: a namespace whose functions cite nothing
|
|
913
|
-
cannot be checked against anything, and a cited rule with no test of the same token is an
|
|
914
|
-
untested requirement, which is the finding.
|
|
915
|
-
**What the doc comment is for.** Recording the decision - which input the rule keys off and
|
|
916
|
-
why the obvious alternative was rejected - is exactly the case READ-02 protects; it is not
|
|
917
|
-
trimmed. This rule does not require such a comment, it requires the citation.
|
|
918
|
-
|
|
919
|
-
- id: PLAT-01
|
|
920
|
-
title: Platform affordances go through the app's own wrapper, not the OS API
|
|
921
|
-
severity: blocking
|
|
922
|
-
enforcement: lint
|
|
923
|
-
mechanism: custom regex - raw SwiftUI presentation APIs outside the shared wrapper's own module
|
|
924
|
-
rationale: flexibility
|
|
925
|
-
check: >
|
|
926
|
-
When the app ships a wrapper for a platform affordance - a sheet, a date picker, a toast -
|
|
927
|
-
a feature module calls the wrapper, never the OS API underneath. The wrapper exists
|
|
928
|
-
because the OS changes the affordance between releases: iOS 26 forced a
|
|
929
|
-
Liquid-Glass inset onto partial-detent sheets with no opt-out, which put a gap down the
|
|
930
|
-
side and bottom of every raw `.sheet` and swallowed a pushed picker's selection.
|
|
931
|
-
The tell that this rule was skipped: one module's sheets look different from the rest of
|
|
932
|
-
the app after an OS upgrade, and the fix already exists in the shared layer.
|
|
933
|
-
Exception: an affordance the OS itself owns end to end - a share sheet, an Add-to-Siri
|
|
934
|
-
sheet, a photo picker - stays on the system API. Wrapping those changes nothing and
|
|
935
|
-
breaks their behaviour.
|
|
936
|
-
|
|
937
|
-
- id: PLAT-02
|
|
938
|
-
title: A self-sizing presentation only works if the content reports its size
|
|
939
|
-
severity: important
|
|
940
|
-
enforcement: judgement
|
|
941
|
-
rationale: readability
|
|
942
|
-
check: >
|
|
943
|
-
A content-sized detent asks the content how tall it is. A plain geometry read inside the
|
|
944
|
-
presentation answers with the frame the presentation already gave it - so the sheet
|
|
945
|
-
latches onto its own current height and never grows. Either publish the height the way
|
|
946
|
-
the framework expects (per region, the way the shared scaffold does) or use a fixed
|
|
947
|
-
height. Do not mix: a content detent with no reporter is a sheet that opens at the wrong
|
|
948
|
-
size in one locale and looks right in another.
|
|
949
|
-
The mirror-image mistake is worse, because it looks like a fix: pre-sizing the content so
|
|
950
|
-
it "reports a better height". A `fixedSize(vertical:)` at the presentation root measures
|
|
951
|
-
the content against an unconstrained WIDTH proposal - every line of copy lays out on one
|
|
952
|
-
line, and the height that comes back is a fraction of the real one. The sheet then opens
|
|
953
|
-
at two lines tall with the text clipped. When the presentation already measures its
|
|
954
|
-
content (an intrinsic-size host, a per-region scaffold), the content must add NOTHING:
|
|
955
|
-
no `fixedSize`, no geometry read, no frame. Check which key the engine actually observes
|
|
956
|
-
before publishing one - publishing to a key nothing reads is dead code that reads as a fix.
|
|
957
|
-
A content-sized presentation is also only as good as WHEN it measures. If the panel reads
|
|
958
|
-
the content's intrinsic size during the present animation - before the hosting view has its
|
|
959
|
-
final width - copy that wraps reports a fraction of its real height and the sheet opens
|
|
960
|
-
short. It cannot recover on its own when the follow-up measurement reads the RENDERED
|
|
961
|
-
height, because the short panel is already clamping that: the wrong size is a fixed point
|
|
962
|
-
until the user drags the sheet, which is exactly what the bug report will describe. The fix
|
|
963
|
-
belongs in the presentation engine - one re-read after the transition settles - not in each
|
|
964
|
-
caller. The tell that it is a measurement-timing bug and not a detent choice: a wheel picker
|
|
965
|
-
in the same engine is fine, because its ideal height does not depend on width.
|
|
966
|
-
A fixed detent is not the workaround either. `[.medium, .large]` on short content leaves
|
|
967
|
-
dead space, and on tall content clips the primary button. If the content has a natural
|
|
968
|
-
height, say so with a content detent and one shared cap.
|
|
969
|
-
When a presentation moves to a different engine, DELETE the previous engine's modifiers
|
|
970
|
-
from the content. `presentationDetents` / `presentationDragIndicator` /
|
|
971
|
-
`presentationBackground` left on a view that a UIKit-hosted panel now presents are silent
|
|
972
|
-
no-ops, and the next reader will believe the sheet is sized there and debug the wrong file.
|
|
973
|
-
A content-sized panel asks its content one question: how tall do you want to be? The
|
|
974
|
-
content must be able to answer it. Two answers that are not answers, and each produces the
|
|
975
|
-
opposite symptom:
|
|
976
|
-
- **A trailing `Spacer`** answers "all of it". The panel opens at its cap with the real
|
|
977
|
-
content stranded at the top. A content-sized sheet's root stack has no `Spacer` - its own
|
|
978
|
-
height IS the answer; use padding for the bottom clearance.
|
|
979
|
-
- **Copy with no width** answers "one line per paragraph". Height that is entirely a
|
|
980
|
-
function of where lines break cannot be measured without a width, so the sheet opens
|
|
981
|
-
short and clips. Hand the presenting screen's measured width down to the content.
|
|
982
|
-
Diagnose by comparing against a sheet in the same engine that works. If one is fine and
|
|
983
|
-
another is not, the engine is not the bug - and a shared-engine change to fix one screen
|
|
984
|
-
puts every other domain's sheets at risk for a fix nobody has verified. Fix it where the
|
|
985
|
-
content is.
|
|
986
|
-
When a presentation moves to a different engine, DELETE the previous engine's modifiers
|
|
987
|
-
from the content. `presentationDetents` / `presentationDragIndicator` /
|
|
988
|
-
`presentationBackground` left on a view that a UIKit-hosted panel now presents are silent
|
|
989
|
-
no-ops, and the next reader will believe the sheet is sized there and debug the wrong file.
|
|
990
|
-
A fixed detent is not the workaround either: `[.medium, .large]` on short content leaves
|
|
991
|
-
dead space, and on tall content clips the primary button.
|
|
992
|
-
Verify presentation sizing on a device or simulator before calling it done. This is not a
|
|
993
|
-
thing a diff shows, and it is not a thing to guess at twice.
|
|
994
|
-
|
|
995
|
-
- id: PLAT-03
|
|
996
|
-
title: Assets come from the app's own CDN
|
|
997
|
-
severity: blocking
|
|
998
|
-
enforcement: lint
|
|
999
|
-
mechanism: "custom regex: https?:// host not on the app's own domains, in a non-test source"
|
|
1000
|
-
rationale: security
|
|
1001
|
-
check: >
|
|
1002
|
-
An image or asset URL pointing at a third-party host is a finding even when it renders
|
|
1003
|
-
correctly: the host is outside our control and versioning, it can change or disappear
|
|
1004
|
-
under us, and every render leaks a request to a party the user never agreed to. The
|
|
1005
|
-
carrier logo, the flag, the banner - they all exist on the app's own CDN. Put the URL in
|
|
1006
|
-
the module's constants namespace so there is one place to change it.
|
|
1007
|
-
|
|
1008
|
-
# ── SAFE ──────────────────────────────────────────────────────────────────
|
|
1009
|
-
- id: SAFE-01
|
|
1010
|
-
title: Escaping closures capture self weakly and unwrap immediately
|
|
1011
|
-
severity: important
|
|
1012
|
-
enforcement: lint
|
|
1013
|
-
mechanism: "custom regex: escaping closure body referencing self without a weak capture list"
|
|
1014
|
-
rationale: security
|
|
1015
|
-
|
|
1016
|
-
- id: SAFE-02
|
|
1017
|
-
title: A calendar day sent to a service uses the shared calendar-day helper
|
|
1018
|
-
severity: blocking
|
|
1019
|
-
enforcement: lint
|
|
1020
|
-
mechanism: "custom regex: DateFormatter constructed in a mapper or repository path"
|
|
1021
|
-
rationale: security
|
|
1022
|
-
|
|
1023
|
-
# ── VIS - declaration & visibility ────────────────────────────────────────
|
|
1024
|
-
- id: VIS-01
|
|
1025
|
-
title: Every class is final unless a real subclass exists in the module
|
|
1026
|
-
severity: important
|
|
1027
|
-
enforcement: lint
|
|
1028
|
-
mechanism: 'custom regex: ^\s*(public |internal )?class\b not preceded by final'
|
|
1029
|
-
rationale: readability
|
|
1030
|
-
|
|
1031
|
-
- id: VIS-02
|
|
1032
|
-
title: Explicit access level, private by default; internal handled consistently
|
|
1033
|
-
severity: important
|
|
1034
|
-
enforcement: lint
|
|
1035
|
-
mechanism: swiftlint private_outlet, explicit_acl (opt-in) - scoped to the module's convention
|
|
1036
|
-
rationale: readability
|
|
1037
|
-
|
|
1038
|
-
- id: VIS-03
|
|
1039
|
-
title: Mutability and conformance declared as narrowly as the type allows
|
|
1040
|
-
severity: suggestion
|
|
1041
|
-
enforcement: lint
|
|
1042
|
-
mechanism: swiftlint prefer_let, prefer_self_in_static_references
|
|
1043
|
-
rationale: testability
|
|
1044
|
-
|
|
1045
|
-
- id: VIS-04
|
|
1046
|
-
title: The surviving public surface and every seam contract carries a doc comment
|
|
1047
|
-
severity: important
|
|
1048
|
-
enforcement: lint
|
|
1049
|
-
mechanism: swiftlint missing_docs scoped to public declarations
|
|
1050
|
-
rationale: flexibility
|
|
1051
|
-
check: The one place the no-unnecessary-comments rule inverts - a cross-module contract cannot explain itself through naming.
|
|
1052
|
-
|
|
1053
|
-
# ── UI ────────────────────────────────────────────────────────────────────
|
|
1054
|
-
- id: UI-01
|
|
1055
|
-
scope:
|
|
1056
|
-
{
|
|
1057
|
-
frameworks: [swiftui],
|
|
1058
|
-
paths:
|
|
1059
|
-
[
|
|
1060
|
-
"**/*View.swift",
|
|
1061
|
-
"**/*Screen.swift",
|
|
1062
|
-
"**/*Scene.swift",
|
|
1063
|
-
"**/*Cell.swift",
|
|
1064
|
-
"**/*Configuration.swift",
|
|
1065
|
-
"**/*+Modifiers.swift",
|
|
1066
|
-
],
|
|
1067
|
-
}
|
|
1068
|
-
scope_reason: SwiftUI view composition - a UIKit view controller hierarchy expresses reuse differently
|
|
1069
|
-
title: A screen's composite view is never consumed by another screen
|
|
1070
|
-
severity: blocking
|
|
1071
|
-
enforcement: judgement
|
|
1072
|
-
rationale: flexibility
|
|
1073
|
-
|
|
1074
|
-
- id: UI-02
|
|
1075
|
-
scope:
|
|
1076
|
-
{
|
|
1077
|
-
frameworks: [swiftui],
|
|
1078
|
-
paths:
|
|
1079
|
-
[
|
|
1080
|
-
"**/*View.swift",
|
|
1081
|
-
"**/*Screen.swift",
|
|
1082
|
-
"**/*Scene.swift",
|
|
1083
|
-
"**/*Cell.swift",
|
|
1084
|
-
"**/*Configuration.swift",
|
|
1085
|
-
"**/*+Modifiers.swift",
|
|
1086
|
-
],
|
|
1087
|
-
}
|
|
1088
|
-
scope_reason: SwiftUI view construction
|
|
1089
|
-
title: No new component is added to a UI target the module marks as frozen
|
|
1090
|
-
severity: important
|
|
1091
|
-
enforcement: lint
|
|
1092
|
-
mechanism: CI check on new files under the frozen target path
|
|
1093
|
-
rationale: flexibility
|
|
1094
|
-
|
|
1095
|
-
- id: UI-03
|
|
1096
|
-
scope:
|
|
1097
|
-
{
|
|
1098
|
-
frameworks: [swiftui],
|
|
1099
|
-
paths:
|
|
1100
|
-
[
|
|
1101
|
-
"**/*View.swift",
|
|
1102
|
-
"**/*Screen.swift",
|
|
1103
|
-
"**/*Scene.swift",
|
|
1104
|
-
"**/*Cell.swift",
|
|
1105
|
-
"**/*Configuration.swift",
|
|
1106
|
-
"**/*+Modifiers.swift",
|
|
1107
|
-
],
|
|
1108
|
-
}
|
|
1109
|
-
scope_reason: SwiftUI view construction
|
|
1110
|
-
title: Every screen with user actions has its analytics surface; no direct generated-event calls
|
|
1111
|
-
severity: important
|
|
1112
|
-
predicate: file_required_in_dir
|
|
1113
|
-
params:
|
|
1114
|
-
role: screen.analytics
|
|
1115
|
-
enforcement: lint
|
|
1116
|
-
rationale: readability
|
|
1117
|
-
|
|
1118
|
-
- id: UI-04
|
|
1119
|
-
scope:
|
|
1120
|
-
{
|
|
1121
|
-
frameworks: [swiftui],
|
|
1122
|
-
paths:
|
|
1123
|
-
[
|
|
1124
|
-
"**/*View.swift",
|
|
1125
|
-
"**/*Screen.swift",
|
|
1126
|
-
"**/*Scene.swift",
|
|
1127
|
-
"**/*Cell.swift",
|
|
1128
|
-
"**/*Configuration.swift",
|
|
1129
|
-
"**/*+Modifiers.swift",
|
|
1130
|
-
],
|
|
1131
|
-
}
|
|
1132
|
-
scope_reason: SwiftUI copy surface (`<Screen>Copy`); UIKit modules localise through a different seam
|
|
1133
|
-
title: All user copy goes through the screen's copy surface
|
|
1134
|
-
severity: important
|
|
1135
|
-
enforcement: judgement
|
|
1136
|
-
mechanism: "custom regex: raw localization key access inside Scene/ViewModel"
|
|
1137
|
-
rationale: flexibility
|
|
1138
|
-
|
|
1139
|
-
# ── MOD - modularity ──────────────────────────────────────────────────────
|
|
1140
|
-
conflict: >
|
|
1141
|
-
The module-structure pass that produced STRUCT-09..14 came from a folder-structure document
|
|
1142
|
-
that says the opposite - copy is resolved AT THE RENDER SITE, and a per-screen copy type is
|
|
1143
|
-
the finding. One module has already been refactored to that shape and now has zero copy
|
|
1144
|
-
surfaces, which this rule reads as a violation on every screen. Two documents the same team
|
|
1145
|
-
owns disagree; until one is retired, this rule is not mechanically enforced. Do not resolve
|
|
1146
|
-
it by binding a slot: this registry's own slot doctrine names UI-04 as the counter-example -
|
|
1147
|
-
a module with no copy surface has not chosen a dialect, it is missing the surface.
|
|
1148
|
-
|
|
1149
|
-
- id: MOD-01
|
|
1150
|
-
title: A feature module never imports another feature module
|
|
1151
|
-
severity: blocking
|
|
1152
|
-
enforcement: lint
|
|
1153
|
-
mechanism: "custom regex per module: ^import (<sibling feature names>)"
|
|
1154
|
-
rationale: flexibility
|
|
1155
|
-
check: A feature that imports many siblings to compose them has promoted itself to a second composition root - highest severity in this section.
|
|
1156
|
-
|
|
1157
|
-
- id: MOD-02
|
|
1158
|
-
title: The manifest graph is one-way and acyclic; core never depends on a feature
|
|
1159
|
-
severity: blocking
|
|
1160
|
-
enforcement: scan
|
|
1161
|
-
rationale: flexibility
|
|
1162
|
-
check: Check as policy, not by trusting the build - a package-level cycle can still build. Report dead edges (declared, never imported).
|
|
1163
|
-
|
|
1164
|
-
- id: MOD-03
|
|
1165
|
-
title: Shared values walk the placement ladder, cheapest rung first, with a stated reason to climb
|
|
1166
|
-
severity: important
|
|
1167
|
-
enforcement: judgement
|
|
1168
|
-
rationale: flexibility
|
|
1169
|
-
|
|
1170
|
-
- id: MOD-04
|
|
1171
|
-
title: Removability delta - removing the module touches only the composition root
|
|
1172
|
-
severity: blocking
|
|
1173
|
-
enforcement: scan
|
|
1174
|
-
rationale: flexibility
|
|
1175
|
-
metric: "files touched to remove the module (target: composition root only)"
|
|
1176
|
-
|
|
1177
|
-
- id: MOD-05
|
|
1178
|
-
title: DI is by abstraction; each module wires only itself
|
|
1179
|
-
severity: blocking
|
|
1180
|
-
enforcement: judgement
|
|
1181
|
-
rationale: testability
|
|
1182
|
-
check: >
|
|
1183
|
-
Resolving a concrete type owned by another feature module is a compile-time dependency in a
|
|
1184
|
-
runtime disguise. The composition root is the only place that knows the module list.
|
|
1185
|
-
|
|
1186
|
-
- id: MOD-06
|
|
1187
|
-
title: The public surface is the plug - entry types only, everything else internal
|
|
1188
|
-
severity: important
|
|
1189
|
-
enforcement: scan
|
|
1190
|
-
rationale: flexibility
|
|
1191
|
-
metric: "public declarations divided by externally consumed symbols (target ~1)"
|
|
1192
|
-
|
|
1193
|
-
- id: MOD-07
|
|
1194
|
-
title: No shared mutable state across the boundary; the module owns its own assets and copy
|
|
1195
|
-
severity: blocking
|
|
1196
|
-
enforcement: judgement
|
|
1197
|
-
rationale: flexibility
|
|
1198
|
-
|
|
1199
|
-
# ── CONC - concurrency ────────────────────────────────────────────────────
|
|
1200
|
-
- id: CONC-01
|
|
1201
|
-
title: The isolation policy is one declared decision applied everywhere
|
|
1202
|
-
severity: important
|
|
1203
|
-
enforcement: judgement
|
|
1204
|
-
rationale: readability
|
|
1205
|
-
applies_when: module is in Swift 6 language mode (otherwise suggestion)
|
|
1206
|
-
check: A reader must know where a function runs from its declaration, without tracing callers.
|
|
1207
|
-
|
|
1208
|
-
- id: CONC-02
|
|
1209
|
-
title: Sendable conformance is stated where it is load-bearing, consistently
|
|
1210
|
-
severity: suggestion
|
|
1211
|
-
enforcement: judgement
|
|
1212
|
-
rationale: readability
|
|
1213
|
-
|
|
1214
|
-
- id: CONC-03
|
|
1215
|
-
title: Escape hatches are justified and counted
|
|
1216
|
-
severity: important
|
|
1217
|
-
enforcement: lint
|
|
1218
|
-
mechanism: 'custom regex: @preconcurrency|nonisolated\(unsafe\)|@unchecked Sendable'
|
|
1219
|
-
rationale: security
|
|
1220
|
-
metric: "escape-hatch count by kind (target: flat or falling)"
|
|
1221
|
-
check: A growing count silently returns the module to pre-Swift-6 guarantees while the build stays green.
|
|
1222
|
-
|
|
1223
|
-
- id: CONC-04
|
|
1224
|
-
title: One concurrency model - no GCD, semaphore or completion handler layered onto async
|
|
1225
|
-
severity: important
|
|
1226
|
-
enforcement: lint
|
|
1227
|
-
mechanism: "custom regex: DispatchQueue|DispatchSemaphore|DispatchGroup in async-adopted paths"
|
|
1228
|
-
rationale: readability
|
|
1229
|
-
|
|
1230
|
-
- id: CONC-05
|
|
1231
|
-
title: Every task has an owner and a cancellation story
|
|
1232
|
-
severity: important
|
|
1233
|
-
enforcement: judgement
|
|
1234
|
-
rationale: testability
|
|
1235
|
-
|
|
1236
|
-
# ── TEST - testability by design ──────────────────────────────────────────
|
|
1237
|
-
- id: TEST-01
|
|
1238
|
-
title: The environment is injected, never reached for
|
|
1239
|
-
severity: blocking
|
|
1240
|
-
enforcement: lint
|
|
1241
|
-
mechanism: 'custom regex scoped to logic paths: Date\(\)|UUID\(\)|UserDefaults|\.random|Locale\.current'
|
|
1242
|
-
rationale: testability
|
|
1243
|
-
check: >
|
|
1244
|
-
Time, calendar, randomness, UUID, locale, storage, network, feature flags and session state
|
|
1245
|
-
arrive through an abstraction. A logic type calling these directly is untestable by
|
|
1246
|
-
construction - no amount of test-writing discipline fixes it.
|
|
1247
|
-
|
|
1248
|
-
- id: TEST-02
|
|
1249
|
-
title: Business rules are callable without a view, navigation or network
|
|
1250
|
-
severity: important
|
|
1251
|
-
enforcement: judgement
|
|
1252
|
-
rationale: testability
|
|
1253
|
-
check: Decision logic returns a value rather than mutating far-away state.
|
|
1254
|
-
|
|
1255
|
-
- id: TEST-03
|
|
1256
|
-
title: No static or singleton access from the logic layer
|
|
1257
|
-
severity: important
|
|
1258
|
-
enforcement: lint
|
|
1259
|
-
mechanism: 'custom regex: \.shared\b|\.main\.container outside composition/DI paths'
|
|
1260
|
-
rationale: testability
|
|
1261
|
-
|
|
1262
|
-
- id: TEST-04
|
|
1263
|
-
title: Test doubles follow one named taxonomy - stub, spy, fake, mock, builder
|
|
1264
|
-
severity: suggestion
|
|
1265
|
-
enforcement: judgement
|
|
1266
|
-
rationale: testability
|
|
1267
|
-
check: >
|
|
1268
|
-
One kind per file, name states the kind, signature parity with the real type (SVC-02). All of
|
|
1269
|
-
them live in the test target (TEST-08).
|
|
1270
|
-
**The builder is the fifth kind and the one most often missing.** Where tests need many
|
|
1271
|
-
near-identical entities differing in one field, the alternative to a builder is a wall of
|
|
1272
|
-
full initialiser calls - so a test's actual subject drowns in fifty lines of scaffolding, and
|
|
1273
|
-
a new field on the entity breaks every test that never cared about it. A builder is a base
|
|
1274
|
-
value plus chainable single-field overrides returning a copy
|
|
1275
|
-
(`.<baseCase>().with<Field>(...)`), so each test states ONLY what it varies and reads as its
|
|
1276
|
-
own precondition. Two properties keep it honest: it produces the real type (never a
|
|
1277
|
-
parallel test-only mirror, which drifts), and each override sets one field, so a reader can
|
|
1278
|
-
tell what a test depends on from its chain.
|
|
1279
|
-
The finding is not "no builder exists" - it is a test file where the setup of a case is
|
|
1280
|
-
longer than its assertion, repeated. Report the ratio, not the absence.
|
|
1281
|
-
|
|
1282
|
-
- id: TEST-05
|
|
1283
|
-
title: Async behaviour is testable - no unstructured task in logic, no sleep, injected clock
|
|
1284
|
-
severity: important
|
|
1285
|
-
enforcement: lint
|
|
1286
|
-
mechanism: 'custom regex: Task\s*\{ in logic paths; sleep\( in test paths'
|
|
1287
|
-
rationale: testability
|
|
1288
|
-
|
|
1289
|
-
- id: TEST-06
|
|
1290
|
-
title: Tests mirror the source tree across the module's declared layers
|
|
1291
|
-
severity: important
|
|
1292
|
-
predicate: mirror_required
|
|
1293
|
-
params:
|
|
1294
|
-
test_role: test.root
|
|
1295
|
-
source_role: source.root
|
|
1296
|
-
enforcement: scan
|
|
1297
|
-
rationale: testability
|
|
1298
|
-
metric: "screens with production logic and no mirrored test folder (target 0)"
|
|
1299
|
-
|
|
1300
|
-
- id: TEST-07
|
|
1301
|
-
title: The module's test target compiles with no sibling feature present
|
|
1302
|
-
severity: blocking
|
|
1303
|
-
enforcement: scan
|
|
1304
|
-
rationale: testability
|
|
1305
|
-
|
|
1306
|
-
- id: TEST-08
|
|
1307
|
-
title: A null object may ship in production sources; a test double may not
|
|
1308
|
-
severity: important
|
|
1309
|
-
enforcement: lint
|
|
1310
|
-
mechanism: >
|
|
1311
|
-
custom regex - a type whose name marks it as a double (Mock / Stub / Spy / Fake / Fixture
|
|
1312
|
-
prefix or suffix) declared under the module's production source root rather than its test
|
|
1313
|
-
target. Whether a given production type is a null object or a disguised double is
|
|
1314
|
-
JUDGEMENT: the name is the signal a regex can see, the payload is not.
|
|
1315
|
-
rationale: testability
|
|
1316
|
-
check: >
|
|
1317
|
-
Two kinds of type conform to a protocol without doing the real work, and only one of them
|
|
1318
|
-
belongs in production sources.
|
|
1319
|
-
**A null object does.** It satisfies the protocol by doing nothing and returning the empty
|
|
1320
|
-
answer - no event sent, `nil` returned, an empty list. It is the honest default for a
|
|
1321
|
-
dependency the caller has legitimately not wired: a defaulted initialiser parameter, a
|
|
1322
|
-
canvas preview, a screen whose optional slot is not configured yet. It carries no data, so
|
|
1323
|
-
it cannot drift from the real payload, and it makes the seam visible in the DI graph instead
|
|
1324
|
-
of forcing an optional dependency on every call site. Name it so the reader knows what it is
|
|
1325
|
-
(a `Noop`-style prefix, consistently across the module) and let it be found by grep.
|
|
1326
|
-
**A test double does not.** A type that carries canned payloads - a mock repository
|
|
1327
|
-
returning a hand-built response, a fixture of sample records - ships that data to users,
|
|
1328
|
-
grows in the store binary, and can be resolved by accident because nothing but the name
|
|
1329
|
-
says it is not real. It belongs in the test target, where the compiler keeps it out of the
|
|
1330
|
-
app. Where a canned payload is genuinely needed AT RUNTIME (a demo build, an offline
|
|
1331
|
-
preview mode), that is a debug affordance and SEC-09 governs it: the question is what
|
|
1332
|
-
removes it from the store build, and "it is only referenced by the mock path" is not an
|
|
1333
|
-
answer.
|
|
1334
|
-
Distinguish by payload, never by name: a `Mock` that returns nothing is a null object with
|
|
1335
|
-
the wrong name (rename it), and a `Noop` that returns three sample orders is a double in
|
|
1336
|
-
the wrong target (move it).
|
|
1337
|
-
**The measurement:** per module, the count of double-named types under the production source
|
|
1338
|
-
root, split into carries-payload and returns-empty. The first number is the finding; the
|
|
1339
|
-
second is a naming fix.
|
|
1340
|
-
|
|
1341
|
-
# ── FLEX - intra-module flexibility ───────────────────────────────────────
|
|
1342
|
-
- id: FLEX-01
|
|
1343
|
-
title: Layers meet through protocols; no concrete cross-layer type in a signature
|
|
1344
|
-
severity: important
|
|
1345
|
-
enforcement: judgement
|
|
1346
|
-
rationale: testability
|
|
1347
|
-
|
|
1348
|
-
- id: FLEX-02
|
|
1349
|
-
title: Variants are configuration, not branching
|
|
1350
|
-
severity: important
|
|
1351
|
-
enforcement: judgement
|
|
1352
|
-
rationale: flexibility
|
|
1353
|
-
check: A conditional whose branches differ only in tokens or copy is a finding.
|
|
1354
|
-
|
|
1355
|
-
- id: FLEX-03
|
|
1356
|
-
title: Components are open for extension - a new variant does not edit the existing body
|
|
1357
|
-
severity: important
|
|
1358
|
-
enforcement: judgement
|
|
1359
|
-
rationale: flexibility
|
|
1360
|
-
|
|
1361
|
-
- id: FLEX-04
|
|
1362
|
-
title: Feature flags are resolved at the boundary and carry a removal condition
|
|
1363
|
-
severity: important
|
|
1364
|
-
enforcement: lint
|
|
1365
|
-
mechanism: "custom regex: flag access inside a view body"
|
|
1366
|
-
rationale: flexibility
|
|
1367
|
-
|
|
1368
|
-
- id: FLEX-05
|
|
1369
|
-
title: No layer's vocabulary leaks into another - presentation types never travel downward
|
|
1370
|
-
severity: important
|
|
1371
|
-
enforcement: judgement
|
|
1372
|
-
rationale: flexibility
|
|
1373
|
-
|
|
1374
|
-
# ── SEC - security & privacy ──────────────────────────────────────────────
|
|
1375
|
-
- id: SEC-01
|
|
1376
|
-
title: Sensitive data persists only when it must, and then only in the Keychain
|
|
1377
|
-
severity: blocking
|
|
1378
|
-
enforcement: lint
|
|
1379
|
-
mechanism: >
|
|
1380
|
-
custom regex generated from the module's sensitive-data inventory, in two directions:
|
|
1381
|
-
(a) a resolved sensitive symbol written to UserDefaults, a plist, a file or the local
|
|
1382
|
-
database; (b) a symbol the inventory marks transient appearing in ANY persistence call,
|
|
1383
|
-
keychain included
|
|
1384
|
-
rationale: security
|
|
1385
|
-
applies_to_classes: all
|
|
1386
|
-
check: >
|
|
1387
|
-
Walk persistence_decision first. Most sensitive values in a flow are used and dropped -
|
|
1388
|
-
those stay in memory, and writing them to the Keychain is itself a finding, because an
|
|
1389
|
-
unnecessary keychain item outlives the flow, survives logout unless someone deletes it, and
|
|
1390
|
-
creates a cleanup obligation with no owner. Only a value that must survive app restart is
|
|
1391
|
-
persisted, and then: Keychain only, with an explicit accessibility class matching the data
|
|
1392
|
-
(device-only unless a documented reason exists), no iCloud sync, biometric or passcode
|
|
1393
|
-
gating where policy requires. never-persist-locally classes stay transient regardless.
|
|
1394
|
-
Report both over-persistence and under-protection - they are equally findings.
|
|
1395
|
-
|
|
1396
|
-
- id: SEC-02
|
|
1397
|
-
title: No hardcoded secrets - anything in source is treated as already leaked
|
|
1398
|
-
severity: blocking
|
|
1399
|
-
enforcement: lint
|
|
1400
|
-
mechanism: 'custom regex: (api[_-]?key|secret|password|bearer|private[_-]?key)\s*[:=]\s*"'
|
|
1401
|
-
rationale: security
|
|
1402
|
-
|
|
1403
|
-
- id: SEC-03
|
|
1404
|
-
title: Logging never carries sensitive data; log interpolation defaults to private
|
|
1405
|
-
severity: blocking
|
|
1406
|
-
enforcement: lint
|
|
1407
|
-
mechanism: >
|
|
1408
|
-
custom regex generated from the module's sensitive-data inventory: any resolved symbol
|
|
1409
|
-
interpolated into a log call, plus a blanket ban on print( and on logging a raw
|
|
1410
|
-
request/response body
|
|
1411
|
-
rationale: security
|
|
1412
|
-
applies_to_classes: all
|
|
1413
|
-
check: >
|
|
1414
|
-
Every class marked loggable:never is redacted; membership-identity is hashed or truncated
|
|
1415
|
-
where it must appear at all. Interpolated values are private by default and only values
|
|
1416
|
-
explicitly known to be non-sensitive are made public - the default must fail safe, because
|
|
1417
|
-
the cost of a missed annotation is a logged credential.
|
|
1418
|
-
|
|
1419
|
-
- id: SEC-04
|
|
1420
|
-
title: Transport is HTTPS and ATS-compliant; an exception needs a written reason and an expiry
|
|
1421
|
-
severity: blocking
|
|
1422
|
-
enforcement: lint
|
|
1423
|
-
mechanism: Info.plist ATS key scan + custom regex for http:// literals
|
|
1424
|
-
rationale: security
|
|
1425
|
-
|
|
1426
|
-
- id: SEC-05
|
|
1427
|
-
title: Sensitive data has a lifetime
|
|
1428
|
-
severity: important
|
|
1429
|
-
enforcement: judgement
|
|
1430
|
-
rationale: security
|
|
1431
|
-
check: >
|
|
1432
|
-
Cleared on logout and session end; sensitive screens hidden from the app-switcher snapshot;
|
|
1433
|
-
pasteboard writes explicit and expiring; nothing sensitive cached to disk by default.
|
|
1434
|
-
|
|
1435
|
-
- id: SEC-06
|
|
1436
|
-
title: Analytics and crash payloads are redacted, through a named helper, with a test that proves it
|
|
1437
|
-
severity: blocking
|
|
1438
|
-
enforcement: judgement
|
|
1439
|
-
rationale: security
|
|
1440
|
-
check: >
|
|
1441
|
-
Cross-check every analytics event's parameter list, user properties, breadcrumbs and
|
|
1442
|
-
non-fatal payloads against the module's sensitive-data inventory. A class marked
|
|
1443
|
-
`loggable: never` must not appear at all; one marked `hashed-or-truncated-only` appears only
|
|
1444
|
-
in its reduced form.
|
|
1445
|
-
Redaction that lives at the call site is not redaction - it is a habit, and it fails on the
|
|
1446
|
-
event somebody adds next month. Three properties, each a separate finding:
|
|
1447
|
-
- **One named helper does the reduction.** A hashing or truncating function with a name,
|
|
1448
|
-
callable from anywhere the value is emitted, so there is one implementation to review and
|
|
1449
|
-
one thing to grep. Not an inline expression repeated per event.
|
|
1450
|
-
- **The event surface carries only the reduced form.** The typed event (UI-03) declares the
|
|
1451
|
-
parameter as the hash or the truncation, never the raw value with a comment asking callers
|
|
1452
|
-
to reduce it first. A parameter that CAN hold the raw value eventually does.
|
|
1453
|
-
- **The redaction has a test.** At minimum: the output is deterministic for the same input,
|
|
1454
|
-
differs for different inputs, and does not contain the input. A redaction nobody tested is
|
|
1455
|
-
a claim; these three assertions are cheap and turn it into a property. This is the rule's
|
|
1456
|
-
measurement - an untested reduction helper is the finding even when the code is correct.
|
|
1457
|
-
Truncation needs one extra check that hashing does not: that what remains cannot identify
|
|
1458
|
-
the subject on its own, and cannot be joined against another field in the same event to do
|
|
1459
|
-
so. Two separately-harmless truncations in one payload are not harmless.
|
|
1460
|
-
|
|
1461
|
-
- id: SEC-07
|
|
1462
|
-
title: Permissions are least-privilege with accurate purpose strings
|
|
1463
|
-
severity: important
|
|
1464
|
-
enforcement: scan
|
|
1465
|
-
rationale: security
|
|
1466
|
-
check: A permission requested but unused is a finding - a privacy problem and an App Review risk.
|
|
1467
|
-
|
|
1468
|
-
- id: SEC-08
|
|
1469
|
-
title: The privacy manifest is complete and honest
|
|
1470
|
-
severity: blocking
|
|
1471
|
-
enforcement: scan
|
|
1472
|
-
rationale: security
|
|
1473
|
-
check: Declared data types match what the module actually collects; required-reason APIs carry a valid reason code.
|
|
1474
|
-
|
|
1475
|
-
- id: SEC-09
|
|
1476
|
-
title: Debug and mock affordances are excluded from the store build by a real mechanism
|
|
1477
|
-
severity: blocking
|
|
1478
|
-
enforcement: lint
|
|
1479
|
-
mechanism: >
|
|
1480
|
-
custom regex for the commented-out compilation directive only (a "// #if" is not a guard -
|
|
1481
|
-
the code inside it ships). Whether an affordance is actually gated is JUDGEMENT: once the
|
|
1482
|
-
gate is a resolved capability rather than a compile-time condition, no regex can see it -
|
|
1483
|
-
a pattern that looked for "#if DEBUG nearby" flags the gated call site and the debug type's
|
|
1484
|
-
own declaration alike, which is noise, not signal.
|
|
1485
|
-
rationale: security
|
|
1486
|
-
check: >
|
|
1487
|
-
The rule is store-build exclusion, not "#if DEBUG" specifically. Internal, TestFlight and
|
|
1488
|
-
enterprise distributions may legitimately carry a debug menu; the store build must not. The
|
|
1489
|
-
question to answer per affordance is "what removes this from the store build?", and any
|
|
1490
|
-
mechanism that actually fires there is acceptable.
|
|
1491
|
-
|
|
1492
|
-
Three failure shapes, all findings:
|
|
1493
|
-
1. No gate - the affordance is unconditionally compiled and reachable.
|
|
1494
|
-
2. A commented-out gate - "// #if DEBUG" reads like protection and provides none. Usually a
|
|
1495
|
-
symptom of shape 3 rather than carelessness.
|
|
1496
|
-
3. A gate that fires in the wrong builds - "#if DEBUG" in a Release-configured internal
|
|
1497
|
-
build strips the affordance from exactly the testers who need it, so someone eventually
|
|
1498
|
-
comments it out and it reaches the store. Diagnose this as a missing mechanism, never as
|
|
1499
|
-
"restore the directive": restoring it re-breaks the internal build.
|
|
1500
|
-
|
|
1501
|
-
Know the constraint before proposing a fix. A SwiftPM module does not inherit the app
|
|
1502
|
-
target's SWIFT_ACTIVE_COMPILATION_CONDITIONS, and SwiftPM's .when(configuration:) predicate
|
|
1503
|
-
distinguishes only debug from release - a custom Xcode configuration is invisible inside the
|
|
1504
|
-
package. Where a module needs a three-way distinction (local / internal / store), a
|
|
1505
|
-
compile-time condition alone cannot express it.
|
|
1506
|
-
|
|
1507
|
-
Prefer, in order: (a) the composition root resolves the distribution channel once and
|
|
1508
|
-
injects it as a capability the module consumes through an abstraction, so the module never
|
|
1509
|
-
knows how it was distributed - this also satisfies MOD-05; (b) a build-injected Info.plist
|
|
1510
|
-
flag read at startup; (c) a runtime channel probe such as the absence of an embedded
|
|
1511
|
-
provisioning profile. Whichever is chosen it must be ONE shared mechanism: one per module
|
|
1512
|
-
means nobody can answer "is this in the store build?" without reading every call site.
|
|
1513
|
-
|
|
1514
|
-
# ── DEPR - deprecation debt ───────────────────────────────────────────────
|
|
1515
|
-
- id: DEPR-01
|
|
1516
|
-
title: No call site of a deprecated API - platform or in-repo
|
|
1517
|
-
severity: important
|
|
1518
|
-
enforcement: scan
|
|
1519
|
-
rationale: flexibility
|
|
1520
|
-
metric: "deprecated call sites (target 0, and never rising)"
|
|
1521
|
-
check: >
|
|
1522
|
-
Two sources, both count. Platform deprecations surface only in a build log, so harvest them
|
|
1523
|
-
from the build the module is actually verified with (WARN-01) rather than guessing. In-repo
|
|
1524
|
-
deprecations are greppable: find every `@available(*, deprecated)` declaration across the
|
|
1525
|
-
repo, then count this module's call sites of each.
|
|
1526
|
-
A deprecation nobody migrates is worse than no deprecation - it trains readers to ignore the
|
|
1527
|
-
warning, and it hides the one that matters. Report per deprecated symbol: declaration site ·
|
|
1528
|
-
replacement named in the message · this module's call-site count · migration owner.
|
|
1529
|
-
|
|
1530
|
-
- id: DEPR-02
|
|
1531
|
-
title: Our own deprecations name a replacement and have a removal condition
|
|
1532
|
-
severity: important
|
|
1533
|
-
enforcement: lint
|
|
1534
|
-
mechanism: "custom regex: @available(*, deprecated) without a message:, and a deprecated declaration still referenced in-module"
|
|
1535
|
-
rationale: flexibility
|
|
1536
|
-
check: >
|
|
1537
|
-
A deprecation without a stated replacement is a complaint, not a migration. Every
|
|
1538
|
-
`@available(*, deprecated, message:)` says what to use instead and, in the plan, who owns
|
|
1539
|
-
the removal and when. A deprecated symbol with zero remaining call sites is deleted, not
|
|
1540
|
-
left as furniture.
|
|
1541
|
-
|
|
1542
|
-
- id: DEPR-03
|
|
1543
|
-
title: Governance docs never prescribe a deprecated API
|
|
1544
|
-
severity: blocking
|
|
1545
|
-
enforcement: judgement
|
|
1546
|
-
rationale: readability
|
|
1547
|
-
check: >
|
|
1548
|
-
Cross-check the module's own docs against the deprecation list. When a doc mandates a
|
|
1549
|
-
pattern whose API is deprecated, every new screen built to the doc adds fresh debt, and the
|
|
1550
|
-
developer following the standard is punished for it. This outranks the individual call
|
|
1551
|
-
sites: fix the doc first, then migrate, or the count grows faster than the migration.
|
|
1552
|
-
|
|
1553
|
-
- id: DEPR-04
|
|
1554
|
-
title: Availability gates below the deployment target are removed
|
|
1555
|
-
severity: suggestion
|
|
1556
|
-
enforcement: lint
|
|
1557
|
-
mechanism: "custom regex: @available / #available naming a version at or below the package deployment target"
|
|
1558
|
-
rationale: readability
|
|
1559
|
-
check: >
|
|
1560
|
-
An `if #available(iOS 16)` in a module that already requires iOS 17 is dead branching a
|
|
1561
|
-
reader must still evaluate. Forward gates (above the target) are legitimate and stay.
|
|
1562
|
-
|
|
1563
|
-
# ── WARN - warning debt ───────────────────────────────────────────────────
|
|
1564
|
-
- id: WARN-01
|
|
1565
|
-
title: The module's build produces zero warnings, and the count never rises
|
|
1566
|
-
severity: important
|
|
1567
|
-
enforcement: scan
|
|
1568
|
-
rationale: readability
|
|
1569
|
-
metric: "compiler warnings for this module (target 0, hard requirement: not increasing)"
|
|
1570
|
-
check: >
|
|
1571
|
-
Harvest from the module's real verification build (an xcresult or a build log - the one the
|
|
1572
|
-
team actually runs, since some targets cannot be built from the CLI). Group by warning kind
|
|
1573
|
-
and report the top kinds, not just a total: one repeated warning across 40 files is a single
|
|
1574
|
-
fix, and a total hides that.
|
|
1575
|
-
Warnings are the canary for deprecation, concurrency and unused-code debt at once. A build
|
|
1576
|
-
with 300 warnings has no working warning channel - the next real one is invisible, which is
|
|
1577
|
-
the actual cost. Treat the count as a ratchet even when zero is out of reach today.
|
|
1578
|
-
|
|
1579
|
-
- id: WARN-02
|
|
1580
|
-
title: A TODO carries an owner or a ticket, and no FIXME survives a release
|
|
1581
|
-
severity: suggestion
|
|
1582
|
-
enforcement: lint
|
|
1583
|
-
mechanism: "custom regex: TODO or FIXME without a bracketed tag or ticket reference"
|
|
1584
|
-
rationale: readability
|
|
1585
|
-
metric: "untagged TODO count (target 0), FIXME count (target 0)"
|
|
1586
|
-
check: >
|
|
1587
|
-
`// TODO[SWAGGER-208458421]: ...` is a tracked decision; a bare `// TODO:` is a note to a
|
|
1588
|
-
person who has left. Tagging is cheap and makes the debt countable. FIXME means "known
|
|
1589
|
-
broken" and belongs in the tracker, not the source.
|
|
1590
|
-
|
|
1591
|
-
# ── A11Y ──────────────────────────────────────────────────────────────────
|
|
1592
|
-
- id: A11Y-01
|
|
1593
|
-
scope:
|
|
1594
|
-
{
|
|
1595
|
-
frameworks: [swiftui],
|
|
1596
|
-
paths:
|
|
1597
|
-
[
|
|
1598
|
-
"**/*View.swift",
|
|
1599
|
-
"**/*Screen.swift",
|
|
1600
|
-
"**/*Scene.swift",
|
|
1601
|
-
"**/*Cell.swift",
|
|
1602
|
-
"**/*Configuration.swift",
|
|
1603
|
-
"**/*+Modifiers.swift",
|
|
1604
|
-
],
|
|
1605
|
-
}
|
|
1606
|
-
scope_reason: SwiftUI accessibility modifiers
|
|
1607
|
-
title: An identifier from the shared source on every interactive element
|
|
1608
|
-
severity: important
|
|
1609
|
-
enforcement: lint
|
|
1610
|
-
mechanism: custom regex for interactive modifiers without an accessibility identifier
|
|
1611
|
-
rationale: testability
|
|
1612
|
-
|
|
1613
|
-
- id: A11Y-02
|
|
1614
|
-
scope:
|
|
1615
|
-
{
|
|
1616
|
-
frameworks: [swiftui],
|
|
1617
|
-
paths:
|
|
1618
|
-
[
|
|
1619
|
-
"**/*View.swift",
|
|
1620
|
-
"**/*Screen.swift",
|
|
1621
|
-
"**/*Scene.swift",
|
|
1622
|
-
"**/*Cell.swift",
|
|
1623
|
-
"**/*Configuration.swift",
|
|
1624
|
-
"**/*+Modifiers.swift",
|
|
1625
|
-
],
|
|
1626
|
-
}
|
|
1627
|
-
scope_reason: SwiftUI accessibility modifiers
|
|
1628
|
-
title: Localized VoiceOver label, plus a hint where the action is not obvious
|
|
1629
|
-
severity: important
|
|
1630
|
-
enforcement: judgement
|
|
1631
|
-
rationale: accessibility
|
|
1632
|
-
|
|
1633
|
-
- id: A11Y-03
|
|
1634
|
-
scope:
|
|
1635
|
-
{
|
|
1636
|
-
frameworks: [swiftui],
|
|
1637
|
-
paths:
|
|
1638
|
-
[
|
|
1639
|
-
"**/*View.swift",
|
|
1640
|
-
"**/*Screen.swift",
|
|
1641
|
-
"**/*Scene.swift",
|
|
1642
|
-
"**/*Cell.swift",
|
|
1643
|
-
"**/*Configuration.swift",
|
|
1644
|
-
"**/*+Modifiers.swift",
|
|
1645
|
-
],
|
|
1646
|
-
}
|
|
1647
|
-
scope_reason: SwiftUI accessibility modifiers
|
|
1648
|
-
title: Minimum 44x44 tap target; grouped content exposes one meaningful element
|
|
1649
|
-
severity: important
|
|
1650
|
-
enforcement: judgement
|
|
1651
|
-
rationale: accessibility
|
|
1652
|
-
|
|
1653
|
-
- id: A11Y-04
|
|
1654
|
-
scope:
|
|
1655
|
-
{
|
|
1656
|
-
frameworks: [swiftui],
|
|
1657
|
-
paths:
|
|
1658
|
-
[
|
|
1659
|
-
"**/*View.swift",
|
|
1660
|
-
"**/*Screen.swift",
|
|
1661
|
-
"**/*Scene.swift",
|
|
1662
|
-
"**/*Cell.swift",
|
|
1663
|
-
"**/*Configuration.swift",
|
|
1664
|
-
"**/*+Modifiers.swift",
|
|
1665
|
-
],
|
|
1666
|
-
}
|
|
1667
|
-
scope_reason: SwiftUI accessibility modifiers
|
|
1668
|
-
title: Dynamic Type does not break layout at the largest accessibility sizes
|
|
1669
|
-
severity: important
|
|
1670
|
-
enforcement: judgement
|
|
1671
|
-
rationale: accessibility
|
|
1672
|
-
check: No fixed-height container holding scalable text.
|
|
1673
|
-
|
|
1674
|
-
- id: A11Y-05
|
|
1675
|
-
scope:
|
|
1676
|
-
{
|
|
1677
|
-
frameworks: [swiftui],
|
|
1678
|
-
paths:
|
|
1679
|
-
[
|
|
1680
|
-
"**/*View.swift",
|
|
1681
|
-
"**/*Screen.swift",
|
|
1682
|
-
"**/*Scene.swift",
|
|
1683
|
-
"**/*Cell.swift",
|
|
1684
|
-
"**/*Configuration.swift",
|
|
1685
|
-
"**/*+Modifiers.swift",
|
|
1686
|
-
],
|
|
1687
|
-
}
|
|
1688
|
-
scope_reason: SwiftUI accessibility modifiers
|
|
1689
|
-
title: RTL mirrors correctly; no leading/trailing hardcoded as left/right
|
|
1690
|
-
severity: important
|
|
1691
|
-
enforcement: lint
|
|
1692
|
-
mechanism: 'custom regex: \.left|\.right in alignment and padding edges'
|
|
1693
|
-
rationale: accessibility
|
|
1694
|
-
|
|
1695
|
-
# ── PERF - minimal set; the boundary is declared in STANDARD.md ───────────
|
|
1696
|
-
- id: PERF-01
|
|
1697
|
-
title: No expensive computation inside a view body
|
|
1698
|
-
severity: important
|
|
1699
|
-
enforcement: judgement
|
|
1700
|
-
rationale: performance
|
|
1701
|
-
|
|
1702
|
-
- id: PERF-02
|
|
1703
|
-
title: Lists and grids use lazy containers with stable identity
|
|
1704
|
-
severity: important
|
|
1705
|
-
enforcement: lint
|
|
1706
|
-
mechanism: "custom regex: ForEach over indices as identity; VStack over a large collection"
|
|
1707
|
-
rationale: performance
|
|
1708
|
-
|
|
1709
|
-
- id: PERF-03
|
|
1710
|
-
title: No blocking work at init or on the main actor - decoding, file I/O, JSON
|
|
1711
|
-
severity: important
|
|
1712
|
-
enforcement: judgement
|
|
1713
|
-
rationale: performance
|
|
1714
|
-
|
|
1715
|
-
- id: PERF-04
|
|
1716
|
-
title: No per-render construction of formatters, calendars or regexes
|
|
1717
|
-
severity: suggestion
|
|
1718
|
-
enforcement: lint
|
|
1719
|
-
mechanism: "custom regex: DateFormatter(|NumberFormatter(|Regex( inside a view body"
|
|
1720
|
-
rationale: performance
|
|
1721
|
-
|
|
1722
|
-
# --- Tree, mechanically checked (added 0.2.0) ----------------------------
|
|
1723
|
-
- id: STRUCT-09
|
|
1724
|
-
title: A service operation's request and response live together, and neither travels alone
|
|
1725
|
-
severity: important
|
|
1726
|
-
enforcement: lint
|
|
1727
|
-
predicate: pair_required_in_dir
|
|
1728
|
-
params:
|
|
1729
|
-
slot: ServiceModelDir
|
|
1730
|
-
container_role: service.dir
|
|
1731
|
-
left_role: service.request
|
|
1732
|
-
right_role: service.response
|
|
1733
|
-
pairing_slot: ServiceModelPairing
|
|
1734
|
-
right_only_value: response-only
|
|
1735
|
-
rationale: navigability
|
|
1736
|
-
check: >
|
|
1737
|
-
A directory holding one half of a service operation holds the other. A lone response means
|
|
1738
|
-
the request is inlined somewhere a reader will not find it. Under `response-only` a lone
|
|
1739
|
-
response is normal and only a lone request is the finding.
|
|
1740
|
-
|
|
1741
|
-
- id: STRUCT-10
|
|
1742
|
-
title: A screen ships the construction seam its module's assembly shape declares
|
|
1743
|
-
severity: important
|
|
1744
|
-
enforcement: lint
|
|
1745
|
-
predicate: file_required_in_dir
|
|
1746
|
-
params:
|
|
1747
|
-
slot: ScreenAssemblyShape
|
|
1748
|
-
slot_value: per-screen-factory
|
|
1749
|
-
role: screen.factory
|
|
1750
|
-
applies_when: the module binds ScreenAssemblyShape to per-screen-factory. Otherwise DISABLED.
|
|
1751
|
-
rationale: module boundaries
|
|
1752
|
-
check: Under per-screen-factory each screen ships its own seam; under shared-factory the seam is one per module.
|
|
1753
|
-
|
|
1754
|
-
- id: STRUCT-11
|
|
1755
|
-
title: UI state lives where the module decided it lives
|
|
1756
|
-
severity: important
|
|
1757
|
-
enforcement: lint
|
|
1758
|
-
predicate: file_required_in_dir
|
|
1759
|
-
params:
|
|
1760
|
-
slot: UIStateHolder
|
|
1761
|
-
slot_value: separate-state-type
|
|
1762
|
-
role: screen.state
|
|
1763
|
-
trigger_role: screen.viewmodel
|
|
1764
|
-
trigger_pattern: '(FormField|\.Section\b|var\s+(is|selected|shows|expanded)\w*(Presented|Expanded|Sheet|Index|Visible|Selected|Shown)\b)'
|
|
1765
|
-
rationale: testability
|
|
1766
|
-
check: >
|
|
1767
|
-
A screen with bound form objects or visual state, in a module that separated that state out,
|
|
1768
|
-
carries the state type. A screen with neither is not missing anything.
|
|
1769
|
-
|
|
1770
|
-
- id: STRUCT-12
|
|
1771
|
-
title: The value type an extracted view renders holds values, not behaviour
|
|
1772
|
-
severity: blocking
|
|
1773
|
-
enforcement: lint
|
|
1774
|
-
predicate: forbidden_pattern
|
|
1775
|
-
params:
|
|
1776
|
-
slot: SubviewShape
|
|
1777
|
-
slot_value: folder-per-subview
|
|
1778
|
-
subject_role: subview.configuration
|
|
1779
|
-
pattern: '^\s+(let|var)\s+\w+\s*:\s*(@escaping\s+)?\('
|
|
1780
|
-
rationale: testability
|
|
1781
|
-
check: >
|
|
1782
|
-
A closure stored in the value type makes it non-comparable and drags the caller's lifetime
|
|
1783
|
-
into it. Actions reach the view as its own parameters.
|
|
1784
|
-
|
|
1785
|
-
- id: STRUCT-13
|
|
1786
|
-
title: An extracted view takes values, never the screen's view model
|
|
1787
|
-
severity: blocking
|
|
1788
|
-
enforcement: lint
|
|
1789
|
-
predicate: forbidden_pattern
|
|
1790
|
-
params:
|
|
1791
|
-
slot: SubviewShape
|
|
1792
|
-
subject_role: subview.view
|
|
1793
|
-
pattern: '^\s+(let|var)\s+\w+\s*:\s*(any\s+)?\w*ViewModel\b'
|
|
1794
|
-
rationale: testability
|
|
1795
|
-
check: >
|
|
1796
|
-
A view holding the view model can reach anything, so nothing about it can be asserted from
|
|
1797
|
-
its inputs, and it cannot be previewed without constructing the whole screen.
|
|
1798
|
-
|
|
1799
|
-
- id: STRUCT-14
|
|
1800
|
-
title: Fixture data lives with the fixtures, not inside the thing that serves it
|
|
1801
|
-
severity: suggestion
|
|
1802
|
-
enforcement: judgement
|
|
1803
|
-
predicate: none
|
|
1804
|
-
params: {}
|
|
1805
|
-
rationale: readability
|
|
1806
|
-
check: >
|
|
1807
|
-
A scripted implementation that also carries its payload literals mixes which scenario to
|
|
1808
|
-
answer with the content of the answer. The tool surfaces the size ratio; the split is a reading.
|
|
1809
|
-
|
|
1810
|
-
- id: NAME-07
|
|
1811
|
-
title: A positional index carries the same label everywhere
|
|
1812
|
-
severity: suggestion
|
|
1813
|
-
enforcement: lint
|
|
1814
|
-
predicate: naming_pattern
|
|
1815
|
-
params:
|
|
1816
|
-
glob: '**/*.swift'
|
|
1817
|
-
declaration: '\((for|_)\s+(?:index|\w+Index)\s*:\s*Int'
|
|
1818
|
-
accept_from_vocabulary: IndexLabel
|
|
1819
|
-
rationale: readability
|
|
1820
|
-
check: One spelling for "at this position" across the module; two make the call sites read as two concepts.
|
|
1821
|
-
|
|
1822
|
-
# ── UNIT - the settled screen dialect ────────────────────────────────────
|
|
1823
|
-
- id: UNIT-01
|
|
1824
|
-
title: A new screen's view model is the unit type, never the deprecated scene base
|
|
1825
|
-
severity: blocking
|
|
1826
|
-
enforcement: scan
|
|
1827
|
-
mechanism: >
|
|
1828
|
-
grep the diff's ADDED files for a subclass of the deprecated pre-unit scene base; grep the
|
|
1829
|
-
declaration of the unit generic (ViewModel<) for the four type parameters.
|
|
1830
|
-
rationale: flexibility
|
|
1831
|
-
check: >
|
|
1832
|
-
The unit dialect - ViewModel<State, ViewAction, Action, Output> with explicit conformer
|
|
1833
|
-
typealiases - is the only legal shape for new screen code. The pre-unit base class is
|
|
1834
|
-
deprecated at its declaration; existing screens convert on touch, and that migration is its
|
|
1835
|
-
own work. The finding is a NEW file building on the deprecated base, or a unit view model
|
|
1836
|
-
missing its typealias block (the all-compiler-version spelling).
|
|
1837
|
-
|
|
1838
|
-
- id: UNIT-02
|
|
1839
|
-
title: Unit state is written only inside the reducer
|
|
1840
|
-
severity: important
|
|
1841
|
-
enforcement: scan
|
|
1842
|
-
mechanism: 'custom regex: assignments to the unit state outside next(_:on:) in ViewModel files'
|
|
1843
|
-
rationale: readability
|
|
1844
|
-
check: >
|
|
1845
|
-
The unit's state moves in one place - the reducer - so a reader replays a screen's
|
|
1846
|
-
behaviour from a single function. A state write from an action handler, a task body or a
|
|
1847
|
-
view callback bypasses that replay and is the finding, wherever it compiles.
|
|
1848
|
-
|
|
1849
|
-
- id: UNIT-03
|
|
1850
|
-
title: A view model's dependencies are injected properties; init takes only input and output
|
|
1851
|
-
severity: important
|
|
1852
|
-
enforcement: lint
|
|
1853
|
-
mechanism: 'custom regex: a unit view model init with a parameter beyond input:/output:, or a dependency resolved inline at a call site'
|
|
1854
|
-
rationale: flexibility
|
|
1855
|
-
check: >
|
|
1856
|
-
A unit view model is constructible from its Input and its output sink ALONE - init(input:output:),
|
|
1857
|
-
collapsing to init(output:) when Input is Void. Every OTHER dependency is an @ObservationIgnored
|
|
1858
|
-
property resolved by injection (a keyed inject property wrapper, or the project's equivalent), never an
|
|
1859
|
-
init parameter and never resolved inline at the use site. Tests substitute a double through a
|
|
1860
|
-
task-local overlay or a preview registration - there is no init parameter to thread it through - and
|
|
1861
|
-
observation never tracks a service handle. The finding is an init carrying a dependency parameter
|
|
1862
|
-
(defaulted or not), or a dependency resolved at its call site. Scenes, coordinators and outside-contract
|
|
1863
|
-
answerers keep their resolving default arms; VIEW MODELS do not.
|
|
1864
|
-
|
|
1865
|
-
- id: UNIT-04
|
|
1866
|
-
title: Two typed send doors, never one untyped funnel
|
|
1867
|
-
severity: important
|
|
1868
|
-
enforcement: scan
|
|
1869
|
-
mechanism: 'custom regex: a public/internal send or handle on a view model taking a single action type that both the view and internal callers reach'
|
|
1870
|
-
rationale: flexibility
|
|
1871
|
-
check: >
|
|
1872
|
-
What the VIEW may send (the view-action type) and what the unit sends ITSELF (its own action type)
|
|
1873
|
-
are separate types, carried under one action envelope (a two-case `.view` / `.viewModel` enum) that the
|
|
1874
|
-
reducer switches on. A view physically cannot construct or send an internal action. The finding is one
|
|
1875
|
-
untyped funnel - a single action enum, or a `send`/`handle` entry point, that both the view and the
|
|
1876
|
-
machine's own effects/children reach - which lets a view invoke internal machinery. The outbound
|
|
1877
|
-
output stays a third, separate per-screen vocabulary.
|
|
1878
|
-
|
|
1879
|
-
- id: UNIT-05
|
|
1880
|
-
title: An effect returns the unit's own action and never touches state; loading is derived
|
|
1881
|
-
severity: important
|
|
1882
|
-
enforcement: scan
|
|
1883
|
-
mechanism: 'custom regex: a state write or a loading Bool/counter set inside an effect/task body in a view model'
|
|
1884
|
-
rationale: readability
|
|
1885
|
-
check: >
|
|
1886
|
-
Async work is registered by id and its closure RETURNS the unit's own action, which re-enters through
|
|
1887
|
-
the reducer - the closure cannot read or write state. Loading is DERIVED from the running-effects
|
|
1888
|
-
registry (the set of in-flight ids), never a hand-set Bool or a hand-balanced count that can drift from
|
|
1889
|
-
the truth; dismissing loading cancels the work rather than orphaning it, and a same-id re-run supersedes
|
|
1890
|
-
the one in flight. The finding is an effect body that assigns state, or a `isLoading`/loading counter set
|
|
1891
|
-
by hand instead of derived.
|
|
1892
|
-
|
|
1893
|
-
- id: UNIT-06
|
|
1894
|
-
title: A view holds the erased face, not the concrete unit
|
|
1895
|
-
severity: important
|
|
1896
|
-
enforcement: scan
|
|
1897
|
-
mechanism: 'custom regex: a SwiftUI view storing a concrete view model type instead of the erased face, or calling emit/run/an internal action from view code'
|
|
1898
|
-
rationale: flexibility
|
|
1899
|
-
check: >
|
|
1900
|
-
A view stores the ERASED face - a surface exposing only the projected view state, the view-action
|
|
1901
|
-
door, and bindings - not the concrete unit type. The concrete type's emit, effect-run, and own action
|
|
1902
|
-
are not spellable from view code; the fence is the TYPE, not a naming convention. The finding is a view
|
|
1903
|
-
whose stored model is the concrete unit (so it can reach `emit`/`run`/internal actions), or view code
|
|
1904
|
-
that calls one of those.
|
|
1905
|
-
|
|
1906
|
-
- id: UNIT-07
|
|
1907
|
-
title: Chrome on the unit path is one value-typed notice, not per-screen slots
|
|
1908
|
-
severity: important
|
|
1909
|
-
enforcement: scan
|
|
1910
|
-
mechanism: 'custom regex: a unit view model declaring its own alert/toast/modal slot properties instead of raising the shared value-typed notice'
|
|
1911
|
-
rationale: readability
|
|
1912
|
-
check: >
|
|
1913
|
-
On the unit system a failure or a prompt is one VALUE-typed notice (equatable, codable, closure-free -
|
|
1914
|
-
responses travel back as values through a respond entry point, never a callback stored beside the
|
|
1915
|
-
chrome) that the base escalates up the host chain to whoever renders it. A domain screen does not raise
|
|
1916
|
-
chrome by hand or hold its own alert/toast/modal slot trio (that is the pre-unit shape). The finding is a
|
|
1917
|
-
unit view model carrying per-screen chrome slots or passing a closure through the notice.
|
|
1918
|
-
|
|
1919
|
-
- id: UNIT-08
|
|
1920
|
-
title: View-facing state is projected from machine state, not the same type
|
|
1921
|
-
severity: important
|
|
1922
|
-
enforcement: lint
|
|
1923
|
-
mechanism: 'custom regex: a view reading the durable machine-state type directly instead of the projected view-state'
|
|
1924
|
-
rationale: readability
|
|
1925
|
-
check: >
|
|
1926
|
-
The durable machine state (every field the reducer needs, including bookkeeping the screen never draws)
|
|
1927
|
-
and the view-facing state the view renders are distinct: the view state is a PROJECTION produced by the
|
|
1928
|
-
view model (a typealias to a single machine-state field when that is all the view needs, an earned struct
|
|
1929
|
-
at two). A view reads the view state only, so adding an internal field to the machine state never changes
|
|
1930
|
-
what the view can see or spell. The finding is a view bound directly to the durable machine-state type,
|
|
1931
|
-
or a machine-state field with no reason to exist beyond what the view already renders.
|
|
1932
|
-
|
|
1933
|
-
- id: SAFE-03
|
|
1934
|
-
title: A field reset that must erase the value writes the value before clear()
|
|
1935
|
-
severity: important
|
|
1936
|
-
enforcement: scan
|
|
1937
|
-
mechanism: 'custom regex: .clear() on a form field with no value write in the surrounding statement group'
|
|
1938
|
-
rationale: flexibility
|
|
1939
|
-
check: >
|
|
1940
|
-
The shared form field's clear() resets STATE only - the value survives it. Every reset
|
|
1941
|
-
path that must also erase what was typed (switching an entry method, finishing a secure
|
|
1942
|
-
flow, leaving a screen that held credentials) writes value = "" (a picker: deselect())
|
|
1943
|
-
first, then clear(), in that order - the value write may fire a validation policy and the
|
|
1944
|
-
trailing clear() leaves the field pristine. A bare clear() on such a path has shipped
|
|
1945
|
-
stale identifiers and surviving passwords before; treat it as the finding unless the reset
|
|
1946
|
-
demonstrably must keep the value.
|
|
1947
|
-
|
|
1948
|
-
- id: MOD-08
|
|
1949
|
-
title: Screens bind the shared formatters and rule facades; a hand-rolled one is a finding
|
|
1950
|
-
severity: important
|
|
1951
|
-
enforcement: scan
|
|
1952
|
-
mechanism: 'custom regex: DateFormatter(/NumberFormatter( construction and digit/dial-code string surgery inside Screens/**'
|
|
1953
|
-
rationale: flexibility
|
|
1954
|
-
check: >
|
|
1955
|
-
Dates, money, grouped amounts, dial-code spellings and validation bounds each have one
|
|
1956
|
-
shared home - the core formatter families and the module's form-rules facade. A screen
|
|
1957
|
-
that constructs its own formatter or re-derives a bound duplicates a wire contract that
|
|
1958
|
-
already has an owner, and the copies drift apart silently. The finding is the construction
|
|
1959
|
-
site; the fix is binding, not re-deriving.
|