b2c-app-builder 0.221.39
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/ACKNOWLEDGMENTS.md +168 -0
- package/LICENSE +21 -0
- package/README.md +252 -0
- package/SKILL.md +59 -0
- package/THIRD_PARTY_NOTICES.md +1091 -0
- package/adapters/app-review/archive.ts +55 -0
- package/adapters/app-review/asc-boundary.ts +85 -0
- package/adapters/app-review/asc-provider.ts +499 -0
- package/adapters/app-review/auth.ts +75 -0
- package/adapters/app-review/capability.ts +240 -0
- package/adapters/app-review/classify.ts +116 -0
- package/adapters/app-review/consume.ts +108 -0
- package/adapters/app-review/envelope.ts +119 -0
- package/adapters/app-review/events.ts +451 -0
- package/adapters/app-review/hmac.ts +106 -0
- package/adapters/app-review/implement.ts +81 -0
- package/adapters/app-review/index.ts +172 -0
- package/adapters/app-review/ingest.ts +108 -0
- package/adapters/app-review/mandate.ts +102 -0
- package/adapters/app-review/normalize.ts +281 -0
- package/adapters/app-review/packet.ts +365 -0
- package/adapters/app-review/persist.ts +93 -0
- package/adapters/app-review/plan.ts +321 -0
- package/adapters/app-review/plist.ts +219 -0
- package/adapters/app-review/poll.ts +310 -0
- package/adapters/app-review/projection.ts +149 -0
- package/adapters/app-review/queue.ts +138 -0
- package/adapters/app-review/receiver.ts +111 -0
- package/adapters/app-review/registration.ts +95 -0
- package/adapters/app-review/remediate.ts +218 -0
- package/adapters/app-review/render.ts +180 -0
- package/adapters/app-review/resubmit.ts +357 -0
- package/adapters/app-review/types.ts +540 -0
- package/adapters/app-review/uncertain-execution.ts +205 -0
- package/adapters/app-review/verification.ts +42 -0
- package/adapters/appkittie-category-revenue.ts +106 -0
- package/adapters/claude.ts +69 -0
- package/adapters/codex.ts +65 -0
- package/adapters/cursor.ts +66 -0
- package/adapters/device-proof.ts +814 -0
- package/adapters/greenfield/boundary.ts +200 -0
- package/adapters/greenfield/fail-safe.ts +204 -0
- package/adapters/greenfield/index.ts +33 -0
- package/adapters/inline.ts +46 -0
- package/adapters/install-control-permissions.ts +331 -0
- package/adapters/install-entrypoints.ts +422 -0
- package/adapters/install-schedule.ts +700 -0
- package/adapters/ios-app-evidence.ts +136 -0
- package/adapters/mobile-operation-host.ts +209 -0
- package/adapters/mobile-operation.ts +131 -0
- package/adapters/operating.ts +8 -0
- package/adapters/probe.ts +48 -0
- package/adapters/profile.ts +272 -0
- package/adapters/providers/capability-delta.ts +84 -0
- package/adapters/providers/contract.ts +89 -0
- package/adapters/providers/evaluate.ts +125 -0
- package/adapters/providers/expo/argv.ts +228 -0
- package/adapters/providers/expo/decode.ts +702 -0
- package/adapters/providers/expo/discovery.ts +145 -0
- package/adapters/providers/expo/doctor.ts +217 -0
- package/adapters/providers/expo/effects.ts +185 -0
- package/adapters/providers/expo/execute.ts +389 -0
- package/adapters/providers/expo/expo-device-bind.ts +176 -0
- package/adapters/providers/expo/expo-mcp-route.ts +394 -0
- package/adapters/providers/expo/hosting-prepare.ts +195 -0
- package/adapters/providers/expo/identity.ts +117 -0
- package/adapters/providers/expo/index.ts +176 -0
- package/adapters/providers/expo/jobs.ts +490 -0
- package/adapters/providers/expo/preflight.ts +319 -0
- package/adapters/providers/expo/process.ts +156 -0
- package/adapters/providers/expo/project-config.ts +184 -0
- package/adapters/providers/expo/sanitize.ts +51 -0
- package/adapters/providers/expo/signing-readiness.ts +157 -0
- package/adapters/providers/expo/store-handoff.ts +74 -0
- package/adapters/providers/expo/update-identity.ts +121 -0
- package/adapters/providers/expo/update-policy.ts +130 -0
- package/adapters/providers/expo/update-prepare.ts +176 -0
- package/adapters/providers/expo/update-recovery.ts +152 -0
- package/adapters/providers/expo/update-rollout.ts +114 -0
- package/adapters/providers/expo/update-signing.ts +100 -0
- package/adapters/providers/expo/web-api-contract.ts +185 -0
- package/adapters/providers/growth-agent/boundary.ts +178 -0
- package/adapters/providers/growth-agent/fail-safe.ts +306 -0
- package/adapters/providers/growth-agent/index.ts +36 -0
- package/adapters/providers/layers/effects.ts +94 -0
- package/adapters/providers/layers/index.ts +91 -0
- package/adapters/providers/layers/jobs.ts +269 -0
- package/adapters/providers/layers/onboarding.ts +144 -0
- package/adapters/providers/layers/route.ts +308 -0
- package/adapters/providers/layers/transport.ts +251 -0
- package/adapters/providers/load.ts +293 -0
- package/adapters/providers/mobile-ops/boundary.ts +137 -0
- package/adapters/providers/mobile-ops/fail-safe.ts +273 -0
- package/adapters/providers/mobile-ops/index.ts +27 -0
- package/adapters/providers/monetization-validation.ts +80 -0
- package/adapters/providers/revenuecat/cli-catalog-observe.ts +254 -0
- package/adapters/providers/revenuecat/cli-catalog.ts +1146 -0
- package/adapters/providers/revenuecat/cli-command-schema.ts +369 -0
- package/adapters/providers/revenuecat/cli-decode.ts +908 -0
- package/adapters/providers/revenuecat/cli-discovery.ts +248 -0
- package/adapters/providers/revenuecat/cli-doctor.ts +279 -0
- package/adapters/providers/revenuecat/cli-execute.ts +456 -0
- package/adapters/providers/revenuecat/cli-ledger.ts +488 -0
- package/adapters/providers/revenuecat/cli-operations.ts +927 -0
- package/adapters/providers/revenuecat/cli-preflight.ts +245 -0
- package/adapters/providers/revenuecat/cli-process.ts +195 -0
- package/adapters/providers/revenuecat/cli-proof.ts +159 -0
- package/adapters/providers/revenuecat/cli-reconcile-plan.ts +1144 -0
- package/adapters/providers/revenuecat/provisioning.ts +54 -0
- package/adapters/providers/revenuecat/revenue-validation.ts +1224 -0
- package/adapters/providers/runtime-pin.ts +112 -0
- package/adapters/providers/superwall/boundary.ts +107 -0
- package/adapters/providers/superwall/fail-safe.ts +231 -0
- package/adapters/providers/superwall/measurement.ts +62 -0
- package/adapters/providers/typesafe/assess.ts +264 -0
- package/adapters/providers/typesafe/binding.ts +47 -0
- package/adapters/providers/typesafe/connection.ts +89 -0
- package/adapters/providers/typesafe/decode.ts +348 -0
- package/adapters/providers/typesafe/effects.ts +101 -0
- package/adapters/providers/typesafe/encode.ts +97 -0
- package/adapters/providers/typesafe/index.ts +71 -0
- package/adapters/providers/typesafe/support.ts +109 -0
- package/adapters/providers/typesafe/transport.ts +395 -0
- package/adapters/provisioning/capability-gaps.ts +110 -0
- package/adapters/provisioning/capability-readiness.ts +60 -0
- package/adapters/provisioning/cli.ts +274 -0
- package/adapters/provisioning/requirements.ts +525 -0
- package/adapters/provisioning/resolve.ts +356 -0
- package/adapters/registry.ts +225 -0
- package/agents/skills/b2c-app-builder/references/business-lifecycle.md +75 -0
- package/agents/skills/b2c-app-builder/references/composition.md +7 -0
- package/agents/skills/b2c-app-builder/references/mobile-operation.md +5 -0
- package/agents/skills/b2c-app-builder/references/setup.md +18 -0
- package/agents/skills/b2c-define-product/SKILL.md +49 -0
- package/agents/skills/b2c-define-product/references/task.md +42 -0
- package/agents/skills/b2c-design-onboarding/SKILL.md +51 -0
- package/agents/skills/b2c-design-onboarding/references/stages.md +31 -0
- package/agents/skills/b2c-design-onboarding/references/task.md +31 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-conversion.md +43 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-01-current-state-trace.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-02-evidence-plan.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-03-current-guidance.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-04-competitor-reviews.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-05-onbo-hub-atlas.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-06-internal-guidance-audit.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-07-provider-policy-landscape.md +37 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-08-motion-research.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-09-evidence-join.md +37 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-10-first-value-activation.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-11-effort-question-audit.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-12-state-identity-contract.md +38 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-13-analytics-experiments.md +38 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-14-trust-lifecycle-policy.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-15-architecture-decision.md +35 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-16-journey-graph.md +37 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-17-screen-control-paywall-contract.md +40 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-18-visual-design-prototype.md +40 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-19-implementation-cutover-contract.md +37 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-20-adversarial-qa.md +38 -0
- package/agents/skills/b2c-design-onboarding/references/workflow.experience.onboarding-system.onb-21-compound-engineering-plan.md +35 -0
- package/agents/skills/b2c-plan-implementation/SKILL.md +66 -0
- package/agents/skills/b2c-plan-implementation/references/task.md +41 -0
- package/agents/skills/b2c-plan-launch/SKILL.md +50 -0
- package/agents/skills/b2c-plan-launch/references/task.md +37 -0
- package/agents/skills/b2c-research-opportunity/SKILL.md +63 -0
- package/agents/skills/b2c-research-opportunity/references/task.md +42 -0
- package/agents/skills/b2c-review-business-performance/SKILL.md +50 -0
- package/agents/skills/b2c-review-business-performance/references/task.md +37 -0
- package/agents/skills/b2c-review-experience/SKILL.md +48 -0
- package/agents/skills/b2c-review-experience/references/task.md +36 -0
- package/agents/skills/b2c-review-monetization/SKILL.md +50 -0
- package/agents/skills/b2c-review-monetization/references/task.md +40 -0
- package/agents/skills/b2c-verify-release-readiness/SKILL.md +47 -0
- package/agents/skills/b2c-verify-release-readiness/references/task.md +36 -0
- package/catalog/agent-graph/load.ts +110 -0
- package/catalog/agent-graph/types.ts +53 -0
- package/catalog/agent-graph/validate.ts +121 -0
- package/catalog/agent-graph/work.schema.json +65 -0
- package/catalog/agent-graph/work.yaml +173 -0
- package/catalog/areas.ts +95 -0
- package/catalog/artifacts.ts +40 -0
- package/catalog/authoring.ts +46 -0
- package/catalog/bridge.ts +220 -0
- package/catalog/business-primitives.ts +82 -0
- package/catalog/business-units.ts +18 -0
- package/catalog/capabilities/paid-generative-ai/capability.yaml +27 -0
- package/catalog/capabilities/paid-generative-ai/controls.md +37 -0
- package/catalog/capabilities/types.ts +25 -0
- package/catalog/capabilities/web-presence/capability.yaml +37 -0
- package/catalog/capabilities/web-presence/shared.md +5 -0
- package/catalog/context-packs.ts +78 -0
- package/catalog/domain-authority.ts +38 -0
- package/catalog/domains.ts +178 -0
- package/catalog/firstparty-declarations.ts +652 -0
- package/catalog/firstparty-recipes.ts +283 -0
- package/catalog/gates.ts +99 -0
- package/catalog/generated/catalog.json +18892 -0
- package/catalog/generated/contracts.md +1565 -0
- package/catalog/generated/firstparty/catalog/render-routing.ts +410 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/amir-brand-system.txt +395 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/amir-cinematic-scroll.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/appllama-skills.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/eronred-aso-skills.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/evanbacon-serve-sim.txt +202 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/parth-app-store-screenshots.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/posthog-wizard.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/revenuecat-ai-toolkit.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/revenuecat-cli.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/rork-app-store-connect-cli-skills.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/rork-app-store-connect-cli.txt +21 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/sentry-snapshotpreviews.txt +22 -0
- package/catalog/generated/firstparty/catalog/upstreams/notices/sentry-xcodebuildmcp.txt +21 -0
- package/catalog/generated/firstparty/catalog-pack.yaml +12960 -0
- package/catalog/generated/firstparty/checks/validation/business/data/check-analytics-catalog.ts +166 -0
- package/catalog/generated/firstparty/checks/validation/business/data/check-attribution-contract.ts +731 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-audience-identity.ts +260 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-browser-runtime-proof.ts +269 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-component-contracts.ts +365 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-content-assets.ts +600 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-design-acceptance.ts +6 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-design-md.ts +19 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-design-room-contract.ts +200 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-design-worthiness.ts +710 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-motion-contract.ts +1374 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-scrollytelling-contract.ts +1486 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-token-promotion.ts +75 -0
- package/catalog/generated/firstparty/checks/validation/business/design/check-vibecoded-tells.ts +396 -0
- package/catalog/generated/firstparty/checks/validation/business/design/validate-state.ts +15 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-archetype-starter.ts +457 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-backend-data-contract.ts +151 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-compound-engineering-routing.ts +153 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-mobai-proof.ts +486 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-native-android-proof.ts +486 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-native-ios-proof.ts +465 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-readiness-coverage.ts +242 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-roster-headless-safety.ts +70 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-roster-overlap.ts +159 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-source-checkpoint.ts +123 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-technical-docs-ste100.ts +319 -0
- package/catalog/generated/firstparty/checks/validation/business/engineering/check-template-safety.ts +75 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-emotional-design.ts +1246 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-onboarding-cutover-repository.ts +157 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-onboarding-evidence-packet.ts +263 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-onboarding-foundations.ts +16 -0
- package/catalog/generated/firstparty/checks/validation/business/experience/check-onboarding-graph.ts +795 -0
- package/catalog/generated/firstparty/checks/validation/business/growth/check-landing-funnel.ts +593 -0
- package/catalog/generated/firstparty/checks/validation/business/growth/check-paid-user-acquisition.ts +601 -0
- package/catalog/generated/firstparty/checks/validation/business/money/check-price-derivation.ts +127 -0
- package/catalog/generated/firstparty/checks/validation/business/money/check-revenue.ts +72 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-agent-operations.ts +709 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-email.ts +356 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-founder-operator-bootstrap.ts +759 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-paid-tool-intake.ts +71 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-portfolio-registry.ts +99 -0
- package/catalog/generated/firstparty/checks/validation/business/operations/check-post-launch-ops.ts +834 -0
- package/catalog/generated/firstparty/checks/validation/business/orchestration/check-continuity-contract.ts +266 -0
- package/catalog/generated/firstparty/checks/validation/business/orchestration/check-parallel-orchestration.ts +218 -0
- package/catalog/generated/firstparty/checks/validation/business/orchestration/validate-project-state.ts +357 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-artifact-templates.ts +103 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-change-cascade.ts +318 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-generated-pages.ts +153 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-lane-coverage.ts +377 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-live-provider-proof.ts +284 -0
- package/catalog/generated/firstparty/checks/validation/business/process/check-repository-profile.ts +43 -0
- package/catalog/generated/firstparty/checks/validation/business/product/check-app-archetype.ts +266 -0
- package/catalog/generated/firstparty/checks/validation/business/product/check-product-md.ts +67 -0
- package/catalog/generated/firstparty/checks/validation/business/research/check-evidence-schema-drift.ts +50 -0
- package/catalog/generated/firstparty/checks/validation/business/research/check-localization-research.ts +144 -0
- package/catalog/generated/firstparty/checks/validation/business/research/check-research-evidence.ts +1324 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-app-review-contract.ts +433 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-app-store-portfolio.ts +279 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-apple-app-store-requirements.ts +735 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-asc-command-contract.ts +175 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-aso-evidence.ts +162 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-store-console-packet.ts +480 -0
- package/catalog/generated/firstparty/checks/validation/business/store/check-store-screenshots.ts +1113 -0
- package/catalog/generated/firstparty/checks/validation/business/trust/check-ai-provider-controls.ts +127 -0
- package/catalog/generated/firstparty/checks/validation/business/trust/check-privacy-terms.ts +238 -0
- package/catalog/generated/firstparty/checks/validation/business/trust/check-secret-routing.ts +233 -0
- package/catalog/generated/firstparty/checks/validation/business/trust/check-security-release.ts +199 -0
- package/catalog/generated/firstparty/checks/validation/business/words/check-app-copy.ts +1019 -0
- package/catalog/generated/firstparty/checks/validation/business/words/check-founder-copy.ts +471 -0
- package/catalog/generated/firstparty/checks/validation/business/words/check-no-slop.ts +148 -0
- package/catalog/generated/firstparty/checks/validation/repository/audit-skill-links.ts +176 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-agent-entrypoints.ts +259 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-architecture.ts +393 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-autopilot-contract.ts +277 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-capability-delta.ts +30 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-catalog.ts +88 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-engine-e2e.ts +609 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-gates-layout.ts +109 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-graph-foundations.ts +158 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-hub-spoke.ts +144 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-learning-grounding.ts +323 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-operating-graph.ts +205 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-pack-composition.ts +94 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-package-parity.ts +632 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-provider-contracts.ts +24 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-reference-size.ts +354 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-repository-boundary.ts +2385 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-skill-supply-chain.ts +290 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-skill-version.ts +363 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-source-freshness.ts +627 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-task-skills.ts +40 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-upstreams.ts +189 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-validator-docs.ts +84 -0
- package/catalog/generated/firstparty/checks/validation/repository/check-version-discipline.ts +314 -0
- package/catalog/generated/firstparty/checks/validation/repository/run-agent-evals.ts +117 -0
- package/catalog/generated/firstparty/checks/validation/repository/run-behavioral-evals.ts +612 -0
- package/catalog/generated/firstparty/checks/validation/repository/run-launchbench.ts +246 -0
- package/catalog/generated/firstparty/checks/validation/repository/run-validator-fixtures.ts +173 -0
- package/catalog/generated/firstparty/examples/workspace/business/analytics/ANALYTICS.md +186 -0
- package/catalog/generated/firstparty/examples/workspace/business/analytics/analytics-plan.html +14 -0
- package/catalog/generated/firstparty/examples/workspace/business/design/motion-catalog/README.md +74 -0
- package/catalog/generated/firstparty/examples/workspace/business/design/system/PremiumCraft.swift +352 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/LAUNCH_NARRATIVE.md +241 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/PAID_UA.md +142 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/VIRAL_GROWTH.md +130 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/content-assets/CONTENT_ASSETS.md +127 -0
- package/catalog/generated/firstparty/examples/workspace/business/growth/landing/scrollytelling.portable.example.html +156 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/copy/COPY_BRIEF.md +64 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/copy/COPY_DECK.md +84 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/experience/11-star-experience/11_STAR_EXPERIENCE.md +93 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/experience/emotional-design/EMOTIONAL_DESIGN.md +355 -0
- package/catalog/generated/firstparty/examples/workspace/business/product/experience/ux-patterns/UX_PATTERNS.md +144 -0
- package/catalog/generated/firstparty/examples/workspace/business/state/LAUNCH_TRACE.md +29 -0
- package/catalog/generated/firstparty/examples/workspace/business/store/app-store-listing/APP_STORE_LISTING.md +160 -0
- package/catalog/generated/firstparty/examples/workspace/business/store/app-store-listing/SCREENSHOT_RUBRIC.md +202 -0
- package/catalog/generated/firstparty/extension.yaml +12344 -0
- package/catalog/generated/firstparty/kernel/schema/evidence-schema-version.ts +82 -0
- package/catalog/generated/firstparty/knowledge/data/analytics-attribution.md +317 -0
- package/catalog/generated/firstparty/knowledge/data/posthog-agent-tooling.md +101 -0
- package/catalog/generated/firstparty/knowledge/design/audience-derived-identity.md +55 -0
- package/catalog/generated/firstparty/knowledge/design/consumer-craft-benchmarks.md +72 -0
- package/catalog/generated/firstparty/knowledge/design/design-acceptance.md +199 -0
- package/catalog/generated/firstparty/knowledge/design/design-evidence-stack.md +130 -0
- package/catalog/generated/firstparty/knowledge/design/design-room.md +83 -0
- package/catalog/generated/firstparty/knowledge/design/design-visual-system.md +247 -0
- package/catalog/generated/firstparty/knowledge/design/design-worthiness.md +188 -0
- package/catalog/generated/firstparty/knowledge/design/editorial-scrollytelling.md +239 -0
- package/catalog/generated/firstparty/knowledge/design/landing-motion-craft.md +67 -0
- package/catalog/generated/firstparty/knowledge/design/mobile-flow-craft.md +177 -0
- package/catalog/generated/firstparty/knowledge/design/motion-craft-benchmarks.md +340 -0
- package/catalog/generated/firstparty/knowledge/design/premium-mobile-craft.md +137 -0
- package/catalog/generated/firstparty/knowledge/design/quality-lens.md +100 -0
- package/catalog/generated/firstparty/knowledge/design/refero-ux-patterns.md +131 -0
- package/catalog/generated/firstparty/knowledge/design/remotion-content-assets.md +370 -0
- package/catalog/generated/firstparty/knowledge/design/surfaces-b2c.md +84 -0
- package/catalog/generated/firstparty/knowledge/design/vibecoded-tells.md +129 -0
- package/catalog/generated/firstparty/knowledge/engineering/accessibility-readiness.md +24 -0
- package/catalog/generated/firstparty/knowledge/engineering/app-agent-roster.md +120 -0
- package/catalog/generated/firstparty/knowledge/engineering/app-quality.md +19 -0
- package/catalog/generated/firstparty/knowledge/engineering/backend-data-contract.md +187 -0
- package/catalog/generated/firstparty/knowledge/engineering/engineering-orchestration.md +365 -0
- package/catalog/generated/firstparty/knowledge/engineering/expo-compatibility.md +74 -0
- package/catalog/generated/firstparty/knowledge/engineering/expo-operations-map.md +84 -0
- package/catalog/generated/firstparty/knowledge/engineering/expo-stack-selection.md +75 -0
- package/catalog/generated/firstparty/knowledge/engineering/external-skill-packs.md +47 -0
- package/catalog/generated/firstparty/knowledge/engineering/mobai-toolbelt.md +389 -0
- package/catalog/generated/firstparty/knowledge/engineering/recommended-agent-skills.md +109 -0
- package/catalog/generated/firstparty/knowledge/engineering/technical-documentation-ste100.md +89 -0
- package/catalog/generated/firstparty/knowledge/engineering/xcodebuildmcp-testing.md +502 -0
- package/catalog/generated/firstparty/knowledge/experience/commitment-funnel.md +90 -0
- package/catalog/generated/firstparty/knowledge/experience/consumer-product-design-agency.md +268 -0
- package/catalog/generated/firstparty/knowledge/experience/eleven-star-experience.md +194 -0
- package/catalog/generated/firstparty/knowledge/experience/emotional-design-system.md +412 -0
- package/catalog/generated/firstparty/knowledge/experience/emotional-experience-design.md +359 -0
- package/catalog/generated/firstparty/knowledge/experience/emotional-experience-measurement.md +433 -0
- package/catalog/generated/firstparty/knowledge/experience/ethics-guardrail.md +460 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/commitment-card.md +36 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/endowed-progress-card.md +34 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/fresh-start-card.md +34 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/identity-and-self-expression-card.md +35 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/intent-mirroring-card.md +36 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/mastery-and-status-card.md +43 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/peak-end-card.md +44 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/perceived-effort-delay-card.md +37 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/reciprocity-card.md +38 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/recovery-and-trust-repair-card.md +40 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/streak-and-loss-aversion-card.md +37 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards/variable-reward-card.md +42 -0
- package/catalog/generated/firstparty/knowledge/experience/experience-cards.md +172 -0
- package/catalog/generated/firstparty/knowledge/experience/onboarding-conversion.md +422 -0
- package/catalog/generated/firstparty/knowledge/experience/onboarding-foundations.md +264 -0
- package/catalog/generated/firstparty/knowledge/experience/paywall-goal-headline.md +99 -0
- package/catalog/generated/firstparty/knowledge/experience/push-notification-lifecycle.md +79 -0
- package/catalog/generated/firstparty/knowledge/growth/appsflyer-mmp.md +99 -0
- package/catalog/generated/firstparty/knowledge/growth/cro-landing.md +86 -0
- package/catalog/generated/firstparty/knowledge/growth/fastlane-growth-ops.md +321 -0
- package/catalog/generated/firstparty/knowledge/growth/geo-seo.md +163 -0
- package/catalog/generated/firstparty/knowledge/growth/hdyhau-blended-roas.md +75 -0
- package/catalog/generated/firstparty/knowledge/growth/influencer-sponsorship-engine.md +224 -0
- package/catalog/generated/firstparty/knowledge/growth/ios-consumer-playbook-intake.md +65 -0
- package/catalog/generated/firstparty/knowledge/growth/launch-narrative-cadence.md +340 -0
- package/catalog/generated/firstparty/knowledge/growth/non-competitor-angle-discovery.md +80 -0
- package/catalog/generated/firstparty/knowledge/growth/paid-user-acquisition.md +283 -0
- package/catalog/generated/firstparty/knowledge/growth/ugc-creator-engine.md +259 -0
- package/catalog/generated/firstparty/knowledge/growth/viral-growth-loops.md +174 -0
- package/catalog/generated/firstparty/knowledge/money/billing-health-and-reactivation.md +54 -0
- package/catalog/generated/firstparty/knowledge/money/offer-and-pricing-decisions.md +33 -0
- package/catalog/generated/firstparty/knowledge/money/paywall-pricing-and-experiments.md +97 -0
- package/catalog/generated/firstparty/knowledge/money/revenue-monetization.md +107 -0
- package/catalog/generated/firstparty/knowledge/money/revenuecat-agent-tooling.md +174 -0
- package/catalog/generated/firstparty/knowledge/money/revenuecat-and-store-products.md +115 -0
- package/catalog/generated/firstparty/knowledge/money/stripe-and-web-billing.md +83 -0
- package/catalog/generated/firstparty/knowledge/money/subscription-price-derivation.md +105 -0
- package/catalog/generated/firstparty/knowledge/operations/autonomy-onboarding.md +269 -0
- package/catalog/generated/firstparty/knowledge/operations/doppler-organization.md +73 -0
- package/catalog/generated/firstparty/knowledge/operations/founder-zero-operator.md +184 -0
- package/catalog/generated/firstparty/knowledge/operations/frontier-agent-operations.md +189 -0
- package/catalog/generated/firstparty/knowledge/operations/paid-tool-routing.md +172 -0
- package/catalog/generated/firstparty/knowledge/operations/post-launch-operations.md +261 -0
- package/catalog/generated/firstparty/knowledge/operations/provider-state-recipes.md +80 -0
- package/catalog/generated/firstparty/knowledge/operations/resend-email-ops.md +339 -0
- package/catalog/generated/firstparty/knowledge/operations/secrets-management.md +215 -0
- package/catalog/generated/firstparty/knowledge/orchestration/compound-engineering-routing.md +101 -0
- package/catalog/generated/firstparty/knowledge/orchestration/dynamic-workflows.md +198 -0
- package/catalog/generated/firstparty/knowledge/orchestration/full-launch-program.md +179 -0
- package/catalog/generated/firstparty/knowledge/orchestration/isolated-review.md +144 -0
- package/catalog/generated/firstparty/knowledge/orchestration/parallel-agent-orchestration.md +335 -0
- package/catalog/generated/firstparty/knowledge/orchestration/project-state.md +96 -0
- package/catalog/generated/firstparty/knowledge/process/artifact-contracts.md +1527 -0
- package/catalog/generated/firstparty/knowledge/process/cascade-edges.yaml +217 -0
- package/catalog/generated/firstparty/knowledge/process/change-cascade.md +102 -0
- package/catalog/generated/firstparty/knowledge/process/current-truth.md +45 -0
- package/catalog/generated/firstparty/knowledge/process/failure-cards.md +114 -0
- package/catalog/generated/firstparty/knowledge/process/flow-traceability.md +189 -0
- package/catalog/generated/firstparty/knowledge/process/launch-coverage.md +298 -0
- package/catalog/generated/firstparty/knowledge/process/launch-phases.md +838 -0
- package/catalog/generated/firstparty/knowledge/process/learning-capture.md +77 -0
- package/catalog/generated/firstparty/knowledge/process/learnings/audit-runs-from-repo-root.md +22 -0
- package/catalog/generated/firstparty/knowledge/process/provider-contracts.md +49 -0
- package/catalog/generated/firstparty/knowledge/process/provider-proof.md +37 -0
- package/catalog/generated/firstparty/knowledge/process/repository-profiles.md +60 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/device-capture-and-proof.md +100 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/engineering-and-agent-orchestration.md +89 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/funnel-domain-and-privacy.md +142 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/growth-and-store-routing.md +192 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/research-intelligence.md +258 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/revenue-email-analytics.md +101 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/secrets-and-environment.md +35 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes/visual-and-motion-production.md +457 -0
- package/catalog/generated/firstparty/knowledge/process/tool-recipes.md +67 -0
- package/catalog/generated/firstparty/knowledge/product/ai-chat-companion.md +96 -0
- package/catalog/generated/firstparty/knowledge/product/core-loop-and-complete-scope.md +82 -0
- package/catalog/generated/firstparty/knowledge/product/core-loop-and-v1-scope.md +137 -0
- package/catalog/generated/firstparty/knowledge/product/habit-tracker.md +89 -0
- package/catalog/generated/firstparty/knowledge/product/photo-ai-media.md +96 -0
- package/catalog/generated/firstparty/knowledge/product/product-moat.md +64 -0
- package/catalog/generated/firstparty/knowledge/product/social-network.md +117 -0
- package/catalog/generated/firstparty/knowledge/research/distribution-first-niche.md +70 -0
- package/catalog/generated/firstparty/knowledge/research/distribution-offer-signal.md +190 -0
- package/catalog/generated/firstparty/knowledge/research/go-pivot-or-kill.md +120 -0
- package/catalog/generated/firstparty/knowledge/research/localization-market-research.md +145 -0
- package/catalog/generated/firstparty/knowledge/research/transformation-demo.md +70 -0
- package/catalog/generated/firstparty/knowledge/store/age-rating-questionnaire.md +75 -0
- package/catalog/generated/firstparty/knowledge/store/app-review-observe.md +314 -0
- package/catalog/generated/firstparty/knowledge/store/app-review-remediate.md +125 -0
- package/catalog/generated/firstparty/knowledge/store/app-review-resubmit.md +128 -0
- package/catalog/generated/firstparty/knowledge/store/app-store-connect-cli.md +347 -0
- package/catalog/generated/firstparty/knowledge/store/app-store-listing-prep.md +277 -0
- package/catalog/generated/firstparty/knowledge/store/apple-signing-release.md +551 -0
- package/catalog/generated/firstparty/knowledge/store/aso-apple-keyword-evidence.md +112 -0
- package/catalog/generated/firstparty/knowledge/store/aso-store-ops.md +316 -0
- package/catalog/generated/firstparty/knowledge/store/google-play-release.md +200 -0
- package/catalog/generated/firstparty/knowledge/store/marketplace-regional-compliance.md +21 -0
- package/catalog/generated/firstparty/knowledge/store/screenshot-toolchain.md +130 -0
- package/catalog/generated/firstparty/knowledge/store/store-console-workflow.md +760 -0
- package/catalog/generated/firstparty/knowledge/trust/community-safety.md +18 -0
- package/catalog/generated/firstparty/knowledge/trust/generative-ai-safety.md +27 -0
- package/catalog/generated/firstparty/knowledge/trust/paid-generative-ai-controls.md +85 -0
- package/catalog/generated/firstparty/knowledge/trust/privacy-terms.md +192 -0
- package/catalog/generated/firstparty/knowledge/trust/security-release-hardening.md +169 -0
- package/catalog/generated/firstparty/knowledge/words/consumer-copy-benchmarks.md +111 -0
- package/catalog/generated/firstparty/knowledge/words/conversion-copy.md +181 -0
- package/catalog/generated/firstparty/knowledge/words/no-slop-writing.md +173 -0
- package/catalog/generated/firstparty/package.json +290 -0
- package/catalog/generated/firstparty/schemas/mobile-evidence.json +177 -0
- package/catalog/generated/firstparty/schemas/mobile-input.json +191 -0
- package/catalog/generated/firstparty/schemas/mobile-output.json +228 -0
- package/catalog/generated/firstparty/schemas/monetization-unavailable.json +4 -0
- package/catalog/generated/firstparty/schemas/worker-evidence.json +21 -0
- package/catalog/generated/firstparty/schemas/worker-input.json +29 -0
- package/catalog/generated/firstparty/schemas/worker-output.json +41 -0
- package/catalog/generated/firstparty/snapshot.json +16229 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/README.md +41 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/00-positioning-strategy.md +45 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/01-database-schema.md +44 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/02-auth-system.md +38 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/03-chat-core-loop.md +42 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/04-model-integration.md +45 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/05-memory-personalization.md +38 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/06-usage-limits-metering.md +36 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/07-stripe-monetization.md +34 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/08-safety-and-moderation.md +39 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/variants/companion-character.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/prompts/variants/voice-first.md +37 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/.env.example +18 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/.github/workflows/ci.yml +30 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/.gitignore.template +9 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/README.md +48 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/api/chat/route.ts +70 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/api/stripe/checkout/route.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/api/stripe/webhook/route.ts +34 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/auth/confirm/route.ts +22 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/chat/page.tsx +78 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/layout.tsx +20 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/login/page.tsx +47 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/app/page.tsx +17 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/components/analytics-provider.tsx +14 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/analytics/events.ts +32 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/analytics/posthog-client.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/billing/revenuecat.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/billing/stripe.ts +15 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/strings.ts +32 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/supabase/client.ts +7 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/supabase/proxy.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/lib/supabase/server.ts +23 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/next.config.ts +5 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/package-lock.json +1294 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/package.json +29 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/proxy.ts +12 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/supabase/migrations/0001_init.sql +78 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/supabase/tests/0001_rls.test.sql +75 -0
- package/catalog/generated/firstparty/surfaces/starters/ai-chat-companion/starter/tsconfig.json +41 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/README.md +43 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/00-positioning-strategy.md +47 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/01-database-schema.md +54 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/02-auth-system.md +42 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/03-habit-core-loop.md +50 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/04-reminders-and-streaks.md +58 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/05-stats-and-insights.md +44 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/06-paywall-and-monetization.md +50 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/07-social-accountability.md +49 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/variants/simple-counter-utility.md +43 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/prompts/variants/wellness-coach.md +44 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/.env.example +14 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/.github/workflows/ci.yml +30 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/.gitignore.template +9 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/README.md +48 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/api/stripe/checkout/route.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/api/stripe/webhook/route.ts +34 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/auth/confirm/route.ts +22 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/layout.tsx +20 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/login/page.tsx +47 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/page.tsx +17 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/app/today/page.tsx +27 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/components/analytics-provider.tsx +14 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/analytics/events.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/analytics/posthog-client.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/billing/revenuecat.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/billing/stripe.ts +15 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/strings.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/supabase/client.ts +7 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/supabase/proxy.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/lib/supabase/server.ts +23 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/next.config.ts +5 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/package-lock.json +1222 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/package.json +28 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/proxy.ts +12 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/supabase/migrations/0001_init.sql +84 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/supabase/tests/0001_rls.test.sql +75 -0
- package/catalog/generated/firstparty/surfaces/starters/habit-tracker/starter/tsconfig.json +41 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/README.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/00-positioning-strategy.md +51 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/01-database-schema.md +55 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/02-auth-system.md +39 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/03-capture-and-library.md +42 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/04-ai-generation-pipeline.md +46 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/05-editing-and-presets.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/06-credits-and-monetization.md +47 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/07-sharing-and-virality.md +39 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/08-content-safety-and-rights.md +49 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/variants/avatar-headshot-studio.md +43 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/prompts/variants/photo-restoration.md +39 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/.env.example +16 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/.github/workflows/ci.yml +30 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/.gitignore.template +9 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/README.md +50 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/api/generate/route.ts +47 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/api/stripe/checkout/route.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/api/stripe/webhook/route.ts +34 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/auth/confirm/route.ts +22 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/layout.tsx +20 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/library/page.tsx +29 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/login/page.tsx +47 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/app/page.tsx +17 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/components/analytics-provider.tsx +14 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/analytics/events.ts +32 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/analytics/posthog-client.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/billing/revenuecat.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/billing/stripe.ts +15 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/strings.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/supabase/client.ts +7 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/supabase/proxy.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/lib/supabase/server.ts +23 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/next.config.ts +5 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/package-lock.json +1222 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/package.json +28 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/proxy.ts +12 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/supabase/migrations/0001_init.sql +74 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/supabase/tests/0001_rls.test.sql +72 -0
- package/catalog/generated/firstparty/surfaces/starters/photo-ai-media/starter/tsconfig.json +41 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/README.md +41 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/00-niche-strategy.md +44 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/01-database-schema.md +37 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/02-auth-system.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/03-feed-and-posts.md +43 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/04-profiles-and-follow.md +41 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/05-search-and-discovery.md +36 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/06-direct-messages.md +32 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/07-stripe-monetization.md +41 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/08-invite-system.md +37 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/variants/image-first-instagram.md +34 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/prompts/variants/video-first-tiktok.md +40 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/.env.example +14 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/.github/workflows/ci.yml +30 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/.gitignore.template +9 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/README.md +47 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/api/stripe/checkout/route.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/api/stripe/webhook/route.ts +34 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/auth/confirm/route.ts +22 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/feed/page.tsx +30 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/layout.tsx +20 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/login/page.tsx +47 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/app/page.tsx +17 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/components/analytics-provider.tsx +14 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/analytics/events.ts +31 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/analytics/posthog-client.ts +28 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/billing/revenuecat.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/billing/stripe.ts +15 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/strings.ts +27 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/supabase/client.ts +7 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/supabase/proxy.ts +29 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/lib/supabase/server.ts +23 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/next.config.ts +5 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/package-lock.json +1222 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/package.json +28 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/proxy.ts +12 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/supabase/migrations/0001_init.sql +81 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/supabase/tests/0001_rls.test.sql +70 -0
- package/catalog/generated/firstparty/surfaces/starters/social-network/starter/tsconfig.json +41 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/feedback.empty-state.md +22 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/feedback.haptics.md +21 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/feedback.skeleton.md +21 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/input.keyboard-behavior.md +22 -0
- package/catalog/generated/firstparty/surfaces/ui-library/components/interaction.press-feedback.md +22 -0
- package/catalog/generated/firstparty/tooling/catalog-scaffold.ts +181 -0
- package/catalog/generated/firstparty/tooling/render-artifact-pages.ts +93 -0
- package/catalog/generated/firstparty/tooling/render-credits.ts +301 -0
- package/catalog/generated/firstparty/tooling/render-design-room.ts +518 -0
- package/catalog/generated/firstparty/tooling/render-hosted-bundle.ts +201 -0
- package/catalog/generated/firstparty/tooling/render-product.ts +103 -0
- package/catalog/generated/firstparty/tooling/render-public-api.ts +91 -0
- package/catalog/generated/firstparty/tooling/render-task-skills.ts +69 -0
- package/catalog/generated/firstparty-pin.json +4 -0
- package/catalog/generated/hosted-knowledge.json +1 -0
- package/catalog/generated/knowledge-freshness.json +5 -0
- package/catalog/generated/packs.json +50 -0
- package/catalog/generated/repository-profiles.md +15 -0
- package/catalog/generated/routing.md +256 -0
- package/catalog/generated/spine.md +58 -0
- package/catalog/ids.ts +27 -0
- package/catalog/index.ts +40 -0
- package/catalog/knowledge/data/data-analytics-attribution.yaml +177 -0
- package/catalog/knowledge/data/data-posthog-agent-tooling.yaml +70 -0
- package/catalog/knowledge/design/design-audience-derived-identity.yaml +119 -0
- package/catalog/knowledge/design/design-consumer-craft-benchmarks.yaml +129 -0
- package/catalog/knowledge/design/design-design-acceptance.yaml +21 -0
- package/catalog/knowledge/design/design-design-evidence-stack.yaml +86 -0
- package/catalog/knowledge/design/design-design-room.yaml +18 -0
- package/catalog/knowledge/design/design-design-visual-system.yaml +215 -0
- package/catalog/knowledge/design/design-design-worthiness.yaml +40 -0
- package/catalog/knowledge/design/design-editorial-scrollytelling.yaml +56 -0
- package/catalog/knowledge/design/design-landing-motion-craft.yaml +34 -0
- package/catalog/knowledge/design/design-mobile-flow-craft.yaml +93 -0
- package/catalog/knowledge/design/design-motion-craft-benchmarks.yaml +84 -0
- package/catalog/knowledge/design/design-premium-mobile-craft.yaml +51 -0
- package/catalog/knowledge/design/design-quality-lens.yaml +29 -0
- package/catalog/knowledge/design/design-refero-ux-patterns.yaml +69 -0
- package/catalog/knowledge/design/design-remotion-content-assets.yaml +81 -0
- package/catalog/knowledge/design/design-surfaces-b2c.yaml +56 -0
- package/catalog/knowledge/design/design-vibecoded-tells.yaml +39 -0
- package/catalog/knowledge/engineering/engineering-accessibility-readiness.yaml +28 -0
- package/catalog/knowledge/engineering/engineering-app-agent-roster.yaml +14 -0
- package/catalog/knowledge/engineering/engineering-app-quality.yaml +20 -0
- package/catalog/knowledge/engineering/engineering-backend-data-contract.yaml +15 -0
- package/catalog/knowledge/engineering/engineering-engineering-orchestration.yaml +79 -0
- package/catalog/knowledge/engineering/engineering-expo-compatibility.yaml +44 -0
- package/catalog/knowledge/engineering/engineering-expo-operations-map.yaml +61 -0
- package/catalog/knowledge/engineering/engineering-expo-stack-selection.yaml +46 -0
- package/catalog/knowledge/engineering/engineering-external-skill-packs.yaml +112 -0
- package/catalog/knowledge/engineering/engineering-mobai-toolbelt.yaml +134 -0
- package/catalog/knowledge/engineering/engineering-recommended-agent-skills.yaml +66 -0
- package/catalog/knowledge/engineering/engineering-technical-documentation-ste100.yaml +16 -0
- package/catalog/knowledge/engineering/engineering-xcodebuildmcp-testing.yaml +344 -0
- package/catalog/knowledge/experience/experience-cards-commitment-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-endowed-progress-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-fresh-start-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-identity-and-self-expression-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-intent-mirroring-card.yaml +13 -0
- package/catalog/knowledge/experience/experience-cards-mastery-and-status-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-peak-end-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-perceived-effort-delay-card.yaml +13 -0
- package/catalog/knowledge/experience/experience-cards-reciprocity-card.yaml +13 -0
- package/catalog/knowledge/experience/experience-cards-recovery-and-trust-repair-card.yaml +13 -0
- package/catalog/knowledge/experience/experience-cards-streak-and-loss-aversion-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards-variable-reward-card.yaml +14 -0
- package/catalog/knowledge/experience/experience-cards.yaml +26 -0
- package/catalog/knowledge/experience/experience-commitment-funnel.yaml +22 -0
- package/catalog/knowledge/experience/experience-consumer-product-design-agency.yaml +14 -0
- package/catalog/knowledge/experience/experience-eleven-star-experience.yaml +26 -0
- package/catalog/knowledge/experience/experience-emotional-design-system.yaml +27 -0
- package/catalog/knowledge/experience/experience-emotional-experience-design.yaml +15 -0
- package/catalog/knowledge/experience/experience-emotional-experience-measurement.yaml +15 -0
- package/catalog/knowledge/experience/experience-ethics-guardrail.yaml +20 -0
- package/catalog/knowledge/experience/experience-onboarding-conversion.yaml +87 -0
- package/catalog/knowledge/experience/experience-onboarding-foundations.yaml +32 -0
- package/catalog/knowledge/experience/experience-paywall-goal-headline.yaml +40 -0
- package/catalog/knowledge/experience/experience-push-notification-lifecycle.yaml +14 -0
- package/catalog/knowledge/growth/growth-appsflyer-mmp.yaml +33 -0
- package/catalog/knowledge/growth/growth-cro-landing.yaml +38 -0
- package/catalog/knowledge/growth/growth-fastlane-growth-ops.yaml +37 -0
- package/catalog/knowledge/growth/growth-geo-seo.yaml +26 -0
- package/catalog/knowledge/growth/growth-hdyhau-blended-roas.yaml +18 -0
- package/catalog/knowledge/growth/growth-influencer-sponsorship-engine.yaml +15 -0
- package/catalog/knowledge/growth/growth-ios-consumer-playbook-intake.yaml +19 -0
- package/catalog/knowledge/growth/growth-launch-narrative-cadence.yaml +77 -0
- package/catalog/knowledge/growth/growth-non-competitor-angle-discovery.yaml +18 -0
- package/catalog/knowledge/growth/growth-paid-user-acquisition.yaml +25 -0
- package/catalog/knowledge/growth/growth-ugc-creator-engine.yaml +17 -0
- package/catalog/knowledge/growth/growth-viral-growth-loops.yaml +17 -0
- package/catalog/knowledge/money/money-billing-health-and-reactivation.yaml +16 -0
- package/catalog/knowledge/money/money-offer-and-pricing-decisions.yaml +15 -0
- package/catalog/knowledge/money/money-paywall-pricing-and-experiments.yaml +27 -0
- package/catalog/knowledge/money/money-revenue-monetization.yaml +148 -0
- package/catalog/knowledge/money/money-revenuecat-agent-tooling.yaml +108 -0
- package/catalog/knowledge/money/money-revenuecat-and-store-products.yaml +16 -0
- package/catalog/knowledge/money/money-stripe-and-web-billing.yaml +15 -0
- package/catalog/knowledge/money/money-subscription-price-derivation.yaml +41 -0
- package/catalog/knowledge/operations/operations-autonomy-onboarding.yaml +16 -0
- package/catalog/knowledge/operations/operations-doppler-organization.yaml +16 -0
- package/catalog/knowledge/operations/operations-founder-zero-operator.yaml +64 -0
- package/catalog/knowledge/operations/operations-frontier-agent-operations.yaml +15 -0
- package/catalog/knowledge/operations/operations-paid-tool-routing.yaml +29 -0
- package/catalog/knowledge/operations/operations-post-launch-operations.yaml +19 -0
- package/catalog/knowledge/operations/operations-provider-state-recipes.yaml +15 -0
- package/catalog/knowledge/operations/operations-resend-email-ops.yaml +205 -0
- package/catalog/knowledge/operations/operations-secrets-management.yaml +70 -0
- package/catalog/knowledge/orchestration/orchestration-compound-engineering-routing.yaml +30 -0
- package/catalog/knowledge/orchestration/orchestration-dynamic-workflows.yaml +89 -0
- package/catalog/knowledge/orchestration/orchestration-full-launch-program.yaml +24 -0
- package/catalog/knowledge/orchestration/orchestration-isolated-review.yaml +54 -0
- package/catalog/knowledge/orchestration/orchestration-parallel-agent-orchestration.yaml +145 -0
- package/catalog/knowledge/orchestration/orchestration-project-state.yaml +25 -0
- package/catalog/knowledge/process/learning-audit-runs-from-repo-root.yaml +16 -0
- package/catalog/knowledge/process/process-artifact-contracts.yaml +33 -0
- package/catalog/knowledge/process/process-cascade-edges.yaml +15 -0
- package/catalog/knowledge/process/process-change-cascade.yaml +17 -0
- package/catalog/knowledge/process/process-current-truth.yaml +15 -0
- package/catalog/knowledge/process/process-failure-cards.yaml +34 -0
- package/catalog/knowledge/process/process-flow-traceability.yaml +18 -0
- package/catalog/knowledge/process/process-launch-coverage.yaml +18 -0
- package/catalog/knowledge/process/process-launch-phases.yaml +21 -0
- package/catalog/knowledge/process/process-learning-capture.yaml +34 -0
- package/catalog/knowledge/process/process-provider-contracts.yaml +16 -0
- package/catalog/knowledge/process/process-provider-proof.yaml +18 -0
- package/catalog/knowledge/process/process-repository-profiles.yaml +15 -0
- package/catalog/knowledge/process/process-tool-recipes-device-capture-and-proof.yaml +155 -0
- package/catalog/knowledge/process/process-tool-recipes-engineering-and-agent-orchestration.yaml +32 -0
- package/catalog/knowledge/process/process-tool-recipes-funnel-domain-and-privacy.yaml +23 -0
- package/catalog/knowledge/process/process-tool-recipes-growth-and-store-routing.yaml +57 -0
- package/catalog/knowledge/process/process-tool-recipes-research-intelligence.yaml +52 -0
- package/catalog/knowledge/process/process-tool-recipes-revenue-email-analytics.yaml +14 -0
- package/catalog/knowledge/process/process-tool-recipes-secrets-and-environment.yaml +30 -0
- package/catalog/knowledge/process/process-tool-recipes-visual-and-motion-production.yaml +15 -0
- package/catalog/knowledge/process/process-tool-recipes.yaml +16 -0
- package/catalog/knowledge/product/product-ai-chat-companion.yaml +22 -0
- package/catalog/knowledge/product/product-core-loop-and-complete-scope.yaml +18 -0
- package/catalog/knowledge/product/product-habit-tracker.yaml +14 -0
- package/catalog/knowledge/product/product-photo-ai-media.yaml +14 -0
- package/catalog/knowledge/product/product-product-moat.yaml +15 -0
- package/catalog/knowledge/product/product-social-network.yaml +14 -0
- package/catalog/knowledge/research/research-distribution-first-niche.yaml +20 -0
- package/catalog/knowledge/research/research-distribution-offer-signal.yaml +31 -0
- package/catalog/knowledge/research/research-go-pivot-or-kill.yaml +16 -0
- package/catalog/knowledge/research/research-localization-market-research.yaml +18 -0
- package/catalog/knowledge/research/research-transformation-demo.yaml +17 -0
- package/catalog/knowledge/store/store-age-rating-questionnaire.yaml +44 -0
- package/catalog/knowledge/store/store-app-review-observe.yaml +87 -0
- package/catalog/knowledge/store/store-app-review-remediate.yaml +59 -0
- package/catalog/knowledge/store/store-app-review-resubmit.yaml +42 -0
- package/catalog/knowledge/store/store-app-store-connect-cli.yaml +90 -0
- package/catalog/knowledge/store/store-app-store-listing-prep.yaml +309 -0
- package/catalog/knowledge/store/store-apple-signing-release.yaml +234 -0
- package/catalog/knowledge/store/store-aso-apple-keyword-evidence.yaml +44 -0
- package/catalog/knowledge/store/store-aso-store-ops.yaml +24 -0
- package/catalog/knowledge/store/store-google-play-release.yaml +45 -0
- package/catalog/knowledge/store/store-marketplace-regional-compliance.yaml +20 -0
- package/catalog/knowledge/store/store-screenshot-toolchain.yaml +100 -0
- package/catalog/knowledge/store/store-store-console-workflow.yaml +431 -0
- package/catalog/knowledge/trust/trust-community-safety.yaml +28 -0
- package/catalog/knowledge/trust/trust-generative-ai-safety.yaml +29 -0
- package/catalog/knowledge/trust/trust-paid-generative-ai-controls.yaml +34 -0
- package/catalog/knowledge/trust/trust-privacy-terms.yaml +26 -0
- package/catalog/knowledge/trust/trust-security-release-hardening.yaml +43 -0
- package/catalog/knowledge/words/words-consumer-copy-benchmarks.yaml +169 -0
- package/catalog/knowledge/words/words-conversion-copy.yaml +95 -0
- package/catalog/knowledge/words/words-no-slop-writing.yaml +35 -0
- package/catalog/knowledge-packages.ts +210 -0
- package/catalog/knowledge-validation.ts +168 -0
- package/catalog/lane-graph.ts +37 -0
- package/catalog/lanes.ts +61 -0
- package/catalog/ontology/design-surface-applicability.ts +447 -0
- package/catalog/ontology/instance-load.ts +96 -0
- package/catalog/ontology/instance-types.ts +66 -0
- package/catalog/ontology/instance-validate.ts +104 -0
- package/catalog/ontology/instance.schema.json +171 -0
- package/catalog/ontology/load.ts +191 -0
- package/catalog/ontology/onboarding-applicability.ts +191 -0
- package/catalog/ontology/product-workspace.ts +58 -0
- package/catalog/ontology/query.ts +64 -0
- package/catalog/ontology/render-product.ts +30 -0
- package/catalog/ontology/types.ts +116 -0
- package/catalog/ontology/validate.ts +205 -0
- package/catalog/ontology/world.schema.json +191 -0
- package/catalog/ontology/world.yaml +458 -0
- package/catalog/operators.ts +276 -0
- package/catalog/overlays.ts +28 -0
- package/catalog/packs/compose.ts +424 -0
- package/catalog/packs/consumer-app/acquisition.md +4 -0
- package/catalog/packs/consumer-app/activation.md +4 -0
- package/catalog/packs/consumer-app/pack.yaml +66 -0
- package/catalog/packs/consumer-app/referral.md +4 -0
- package/catalog/packs/consumer-app/retention.md +4 -0
- package/catalog/packs/consumer-app/revenue.md +4 -0
- package/catalog/packs/firstparty-assets.ts +62 -0
- package/catalog/packs/firstparty-notices.ts +61 -0
- package/catalog/packs/firstparty.ts +146 -0
- package/catalog/packs/food-product-contrast/conversion.md +4 -0
- package/catalog/packs/food-product-contrast/manufacturing.md +4 -0
- package/catalog/packs/food-product-contrast/pack.yaml +108 -0
- package/catalog/packs/food-product-contrast/promise.md +4 -0
- package/catalog/packs/food-product-contrast/regulatory.md +4 -0
- package/catalog/packs/food-product-contrast/retailer.md +4 -0
- package/catalog/packs/food-product-contrast/sku.md +4 -0
- package/catalog/packs/installed-firstparty.ts +17 -0
- package/catalog/packs/isolation.ts +99 -0
- package/catalog/packs/load.ts +547 -0
- package/catalog/packs/paid-generative-ai/pack.yaml +73 -0
- package/catalog/packs/snapshots.ts +115 -0
- package/catalog/packs/types.ts +71 -0
- package/catalog/packs/web-presence/pack.yaml +54 -0
- package/catalog/phases.ts +139 -0
- package/catalog/principles/guards.ts +113 -0
- package/catalog/principles/load.ts +202 -0
- package/catalog/principles/principles.yaml +796 -0
- package/catalog/principles/types.ts +87 -0
- package/catalog/principles/vocabulary.yaml +68 -0
- package/catalog/profiles.ts +47 -0
- package/catalog/providers/agent-runtime-claude.yaml +17 -0
- package/catalog/providers/apple-asc-canonical-map.ts +499 -0
- package/catalog/providers/apple-asc.yaml +30 -0
- package/catalog/providers/capability-delta.yaml +41 -0
- package/catalog/providers/conformance.ts +64 -0
- package/catalog/providers/greenfield-70-applicability-closeout-map.ts +243 -0
- package/catalog/providers/greenfield-71-handoff-closeout-map.ts +376 -0
- package/catalog/providers/greenfield-72-benchmark-closeout-map.ts +502 -0
- package/catalog/providers/greenfield-73-overhead-closeout-map.ts +318 -0
- package/catalog/providers/greenfield-75-retrieval-closeout-map.ts +328 -0
- package/catalog/providers/greenfield-76-change-impact-closeout-map.ts +336 -0
- package/catalog/providers/greenfield-delivery-audit-map.ts +382 -0
- package/catalog/providers/growth-agent-canonical-map.ts +669 -0
- package/catalog/providers/mobile-ops-canonical-map.ts +581 -0
- package/catalog/providers/revenuecat.yaml +25 -0
- package/catalog/providers/semantic-batch-map.ts +70 -0
- package/catalog/providers/semantic-eval-baselines-map.ts +897 -0
- package/catalog/providers/semantic-graph-views-map.ts +74 -0
- package/catalog/providers/semantic-plan-lower-map.ts +62 -0
- package/catalog/providers/semantic-source-projection-map.ts +96 -0
- package/catalog/providers/superwall-canonical-map.ts +379 -0
- package/catalog/providers/typesafe-qualify-map.ts +250 -0
- package/catalog/recipes/default-monetization.ts +9 -0
- package/catalog/render-routing.ts +410 -0
- package/catalog/repository-profiles/compile.ts +435 -0
- package/catalog/repository-profiles/index.ts +19 -0
- package/catalog/repository-profiles/paid-generation-applicability.ts +106 -0
- package/catalog/repository-profiles/registry.ts +83 -0
- package/catalog/repository-profiles/types.ts +98 -0
- package/catalog/repository-profiles/workspace.ts +127 -0
- package/catalog/roles.ts +435 -0
- package/catalog/stacks/expo-agent-privacy.ts +140 -0
- package/catalog/stacks/expo-agent-tools.ts +337 -0
- package/catalog/stacks/expo-capability-matrix.ts +260 -0
- package/catalog/stacks/expo-capability-protocol.ts +775 -0
- package/catalog/stacks/expo-custom-module.ts +465 -0
- package/catalog/stacks/expo-eas-commands.ts +779 -0
- package/catalog/stacks/expo-eas-hosting.ts +224 -0
- package/catalog/stacks/expo-eas-operation-matrix.ts +243 -0
- package/catalog/stacks/expo-local-boot.ts +354 -0
- package/catalog/stacks/expo-local-capabilities.ts +328 -0
- package/catalog/stacks/expo-native-ownership.ts +469 -0
- package/catalog/stacks/expo-observability.ts +142 -0
- package/catalog/stacks/expo-proof-collection.ts +286 -0
- package/catalog/stacks/expo-quality-evidence.ts +212 -0
- package/catalog/stacks/expo-revenuecat-wiring.ts +168 -0
- package/catalog/stacks/expo-router-contract.ts +399 -0
- package/catalog/stacks/expo-sdk-upgrade.ts +186 -0
- package/catalog/stacks/expo-selection.ts +736 -0
- package/catalog/stacks/expo-starter-fixture/README.md +13 -0
- package/catalog/stacks/expo-starter-fixture/app/(tabs)/_layout.tsx +11 -0
- package/catalog/stacks/expo-starter-fixture/app/(tabs)/index.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app/(tabs)/settings.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app/+not-found.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app/README.md +1 -0
- package/catalog/stacks/expo-starter-fixture/app/_layout.tsx +16 -0
- package/catalog/stacks/expo-starter-fixture/app/detail/[id].tsx +7 -0
- package/catalog/stacks/expo-starter-fixture/app/modal.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app/sign-in.tsx +1 -0
- package/catalog/stacks/expo-starter-fixture/app.json +26 -0
- package/catalog/stacks/expo-starter-fixture/babel.config.js +4 -0
- package/catalog/stacks/expo-starter-fixture/gitignore.template +14 -0
- package/catalog/stacks/expo-starter-fixture/metro.config.js +3 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/NOTICE +1 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/README.md +1 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/android/build.gradle +15 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/android/src/main/AndroidManifest.xml +1 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/android/src/main/java/app/example/b2cnativecapability/B2cNativeCapabilityModule.kt +19 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/expo-module.config.json +9 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/ios/B2cNativeCapability.podspec +22 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/ios/B2cNativeCapabilityModule.swift +16 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/package.json +15 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/capability.ts +48 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/index.ts +3 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/index.web.ts +9 -0
- package/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/invoke.ts +13 -0
- package/catalog/stacks/expo-starter-fixture/package.json +38 -0
- package/catalog/stacks/expo-starter-fixture/src/capabilities/reducers.ts +146 -0
- package/catalog/stacks/expo-starter-fixture/src/native/capability-status.tsx +37 -0
- package/catalog/stacks/expo-starter-fixture/src/native/capability-status.web.tsx +13 -0
- package/catalog/stacks/expo-starter-fixture/src/navigation/deep-link.ts +12 -0
- package/catalog/stacks/expo-starter-fixture/src/navigation/journeys.ts +115 -0
- package/catalog/stacks/expo-starter-fixture/src/navigation/route-graph.ts +45 -0
- package/catalog/stacks/expo-starter-fixture/src/notifications/handoff.ts +13 -0
- package/catalog/stacks/expo-starter-fixture/src/offline/local-cache.ts +72 -0
- package/catalog/stacks/expo-starter-fixture/src/permissions/safe-state.ts +11 -0
- package/catalog/stacks/expo-starter-fixture/src/persistence/seam.ts +28 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/detail.tsx +20 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/home.tsx +84 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/modal.tsx +18 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/not-found.tsx +18 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/settings.tsx +40 -0
- package/catalog/stacks/expo-starter-fixture/src/screens/sign-in.tsx +34 -0
- package/catalog/stacks/expo-starter-fixture/src/session/local-session.ts +22 -0
- package/catalog/stacks/expo-starter-fixture/src/states/surface-state.ts +16 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/contract-binding.ts +9 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/empty-state.tsx +22 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/haptics.tsx +33 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/keyboard-behavior.tsx +18 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/press-feedback.tsx +37 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/skeleton.tsx +53 -0
- package/catalog/stacks/expo-starter-fixture/src/ui/tokens.ts +5 -0
- package/catalog/stacks/expo-starter-fixture/tsconfig.json +8 -0
- package/catalog/stacks/expo-starter.ts +400 -0
- package/catalog/stacks/expo-web-api-routes.ts +237 -0
- package/catalog/stacks/expo-web-static.ts +560 -0
- package/catalog/stacks/expo-web-surface-table.ts +228 -0
- package/catalog/task-skills.ts +369 -0
- package/catalog/taxonomy/concept-scheme.schema.json +92 -0
- package/catalog/taxonomy/concept-scheme.yaml +978 -0
- package/catalog/taxonomy/load.ts +115 -0
- package/catalog/taxonomy/types.ts +79 -0
- package/catalog/taxonomy/validate.ts +234 -0
- package/catalog/types.ts +452 -0
- package/catalog/upstreams/README.md +23 -0
- package/catalog/upstreams/amir-brand-system.yaml +78 -0
- package/catalog/upstreams/amir-cinematic-scroll.yaml +84 -0
- package/catalog/upstreams/appllama-skills.yaml +129 -0
- package/catalog/upstreams/eronred-aso-skills.yaml +107 -0
- package/catalog/upstreams/evanbacon-serve-sim.yaml +102 -0
- package/catalog/upstreams/last30days-skill.yaml +128 -0
- package/catalog/upstreams/layers-growth-mcp.yaml +128 -0
- package/catalog/upstreams/notices/amir-brand-system.txt +395 -0
- package/catalog/upstreams/notices/amir-cinematic-scroll.txt +21 -0
- package/catalog/upstreams/notices/appllama-skills.txt +21 -0
- package/catalog/upstreams/notices/eronred-aso-skills.txt +21 -0
- package/catalog/upstreams/notices/evanbacon-serve-sim.txt +202 -0
- package/catalog/upstreams/notices/last30days-skill.txt +21 -0
- package/catalog/upstreams/notices/layers-growth-mcp.txt +21 -0
- package/catalog/upstreams/notices/parth-app-store-screenshots.txt +21 -0
- package/catalog/upstreams/notices/posthog-wizard.txt +21 -0
- package/catalog/upstreams/notices/revenuecat-ai-toolkit.txt +21 -0
- package/catalog/upstreams/notices/revenuecat-cli.txt +21 -0
- package/catalog/upstreams/notices/rork-app-store-connect-cli-skills.txt +21 -0
- package/catalog/upstreams/notices/rork-app-store-connect-cli.txt +21 -0
- package/catalog/upstreams/notices/sentry-snapshotpreviews.txt +22 -0
- package/catalog/upstreams/notices/sentry-xcodebuildmcp.txt +21 -0
- package/catalog/upstreams/notices/typesafe-ai.txt +21 -0
- package/catalog/upstreams/observations/eronred-aso-skills.json +20 -0
- package/catalog/upstreams/observations/evanbacon-serve-sim.json +20 -0
- package/catalog/upstreams/observations/parth-app-store-screenshots.json +20 -0
- package/catalog/upstreams/observations/posthog-context-mill.json +28 -0
- package/catalog/upstreams/observations/posthog-wizard.json +27 -0
- package/catalog/upstreams/observations/revenuecat-ai-toolkit.json +27 -0
- package/catalog/upstreams/observations/revenuecat-cli.json +27 -0
- package/catalog/upstreams/observations/rork-app-store-connect-cli.json +78 -0
- package/catalog/upstreams/observations/sentry-snapshotpreviews.json +23 -0
- package/catalog/upstreams/observations/sentry-xcodebuildmcp.json +23 -0
- package/catalog/upstreams/observations/typesafe-ai.json +30 -0
- package/catalog/upstreams/parth-app-store-screenshots.yaml +105 -0
- package/catalog/upstreams/posthog-context-mill.yaml +62 -0
- package/catalog/upstreams/posthog-wizard.yaml +74 -0
- package/catalog/upstreams/revenuecat-ai-toolkit.yaml +98 -0
- package/catalog/upstreams/revenuecat-cli.yaml +166 -0
- package/catalog/upstreams/rork-app-store-connect-cli-skills.yaml +100 -0
- package/catalog/upstreams/rork-app-store-connect-cli.yaml +211 -0
- package/catalog/upstreams/sentry-snapshotpreviews.yaml +103 -0
- package/catalog/upstreams/sentry-xcodebuildmcp.yaml +101 -0
- package/catalog/upstreams/typesafe-ai.yaml +144 -0
- package/catalog/validate.ts +898 -0
- package/catalog/workflows/build-release.ts +735 -0
- package/catalog/workflows/growth-revenue.ts +338 -0
- package/catalog/workflows/helpers.ts +103 -0
- package/catalog/workflows/index.ts +9 -0
- package/catalog/workflows/maintenance.ts +283 -0
- package/catalog/workflows/operating-system.ts +261 -0
- package/catalog/workflows/operations-trust.ts +425 -0
- package/catalog/workflows/product-experience.ts +1263 -0
- package/checks/validation/README.md +6 -0
- package/checks/validation/business/data/check-analytics-catalog.ts +166 -0
- package/checks/validation/business/data/check-attribution-contract.ts +731 -0
- package/checks/validation/business/design/check-audience-identity.ts +260 -0
- package/checks/validation/business/design/check-browser-runtime-proof.ts +269 -0
- package/checks/validation/business/design/check-component-contracts.ts +365 -0
- package/checks/validation/business/design/check-content-assets.ts +600 -0
- package/checks/validation/business/design/check-design-acceptance.ts +6 -0
- package/checks/validation/business/design/check-design-md.ts +19 -0
- package/checks/validation/business/design/check-design-room-contract.ts +200 -0
- package/checks/validation/business/design/check-design-worthiness.ts +710 -0
- package/checks/validation/business/design/check-motion-contract.ts +1374 -0
- package/checks/validation/business/design/check-scrollytelling-contract.ts +1486 -0
- package/checks/validation/business/design/check-token-promotion.ts +75 -0
- package/checks/validation/business/design/check-vibecoded-tells.ts +396 -0
- package/checks/validation/business/design/color-contrast.ts +45 -0
- package/checks/validation/business/design/design-acceptance.ts +1861 -0
- package/checks/validation/business/design/lib/legal-navigation.ts +1766 -0
- package/checks/validation/business/design/lib/vibecode-tells.ts +112 -0
- package/checks/validation/business/design/lib/worthiness-mechanical.ts +196 -0
- package/checks/validation/business/design/runtime-reviewer-inputs.ts +59 -0
- package/checks/validation/business/design/surface-page-gates.ts +191 -0
- package/checks/validation/business/design/validate-state.ts +15 -0
- package/checks/validation/business/engineering/check-archetype-starter.ts +457 -0
- package/checks/validation/business/engineering/check-backend-data-contract.ts +151 -0
- package/checks/validation/business/engineering/check-compound-engineering-routing.ts +153 -0
- package/checks/validation/business/engineering/check-mobai-proof.ts +486 -0
- package/checks/validation/business/engineering/check-native-android-proof.ts +486 -0
- package/checks/validation/business/engineering/check-native-ios-proof.ts +465 -0
- package/checks/validation/business/engineering/check-readiness-coverage.ts +242 -0
- package/checks/validation/business/engineering/check-roster-headless-safety.ts +70 -0
- package/checks/validation/business/engineering/check-roster-overlap.ts +159 -0
- package/checks/validation/business/engineering/check-source-checkpoint.ts +123 -0
- package/checks/validation/business/engineering/check-technical-docs-ste100.ts +319 -0
- package/checks/validation/business/engineering/check-template-safety.ts +75 -0
- package/checks/validation/business/engineering/native-ios-retained-proof.ts +128 -0
- package/checks/validation/business/engineering/strict-ios-receipt.ts +387 -0
- package/checks/validation/business/experience/check-emotional-design.ts +1246 -0
- package/checks/validation/business/experience/check-onboarding-cutover-repository.ts +157 -0
- package/checks/validation/business/experience/check-onboarding-evidence-packet.ts +263 -0
- package/checks/validation/business/experience/check-onboarding-foundations.ts +16 -0
- package/checks/validation/business/experience/check-onboarding-graph.ts +795 -0
- package/checks/validation/business/experience/onboarding-foundations.ts +372 -0
- package/checks/validation/business/growth/check-landing-funnel.ts +593 -0
- package/checks/validation/business/growth/check-paid-user-acquisition.ts +601 -0
- package/checks/validation/business/money/check-price-derivation.ts +127 -0
- package/checks/validation/business/money/check-revenue.ts +72 -0
- package/checks/validation/business/money/price-evidence.ts +37 -0
- package/checks/validation/business/operations/check-agent-operations.ts +709 -0
- package/checks/validation/business/operations/check-email.ts +356 -0
- package/checks/validation/business/operations/check-founder-operator-bootstrap.ts +759 -0
- package/checks/validation/business/operations/check-metric-contracts.ts +114 -0
- package/checks/validation/business/operations/check-paid-tool-intake.ts +71 -0
- package/checks/validation/business/operations/check-portfolio-registry.ts +99 -0
- package/checks/validation/business/operations/check-post-launch-ops.ts +834 -0
- package/checks/validation/business/orchestration/check-continuity-contract.ts +266 -0
- package/checks/validation/business/orchestration/check-parallel-orchestration.ts +218 -0
- package/checks/validation/business/orchestration/validate-project-state.ts +357 -0
- package/checks/validation/business/process/check-artifact-templates.ts +103 -0
- package/checks/validation/business/process/check-change-cascade.ts +318 -0
- package/checks/validation/business/process/check-generated-pages.ts +153 -0
- package/checks/validation/business/process/check-lane-coverage.ts +377 -0
- package/checks/validation/business/process/check-live-provider-proof.ts +284 -0
- package/checks/validation/business/process/check-repository-profile.ts +43 -0
- package/checks/validation/business/product/check-app-archetype.ts +266 -0
- package/checks/validation/business/product/check-product-md.ts +67 -0
- package/checks/validation/business/research/check-evidence-schema-drift.ts +50 -0
- package/checks/validation/business/research/check-localization-research.ts +144 -0
- package/checks/validation/business/research/check-research-evidence.ts +1324 -0
- package/checks/validation/business/research/offer-evidence.ts +360 -0
- package/checks/validation/business/research/render-evidence-markdown.ts +378 -0
- package/checks/validation/business/research/research-evidence-helpers.ts +21 -0
- package/checks/validation/business/store/check-app-review-contract.ts +433 -0
- package/checks/validation/business/store/check-app-store-portfolio.ts +279 -0
- package/checks/validation/business/store/check-apple-app-store-requirements.ts +735 -0
- package/checks/validation/business/store/check-asc-command-contract.ts +175 -0
- package/checks/validation/business/store/check-aso-evidence.ts +162 -0
- package/checks/validation/business/store/check-store-console-packet.ts +480 -0
- package/checks/validation/business/store/check-store-screenshots.ts +1113 -0
- package/checks/validation/business/trust/check-ai-provider-controls.ts +127 -0
- package/checks/validation/business/trust/check-privacy-terms.ts +238 -0
- package/checks/validation/business/trust/check-secret-routing.ts +233 -0
- package/checks/validation/business/trust/check-security-release.ts +199 -0
- package/checks/validation/business/words/check-app-copy.ts +1019 -0
- package/checks/validation/business/words/check-founder-copy.ts +471 -0
- package/checks/validation/business/words/check-no-slop.ts +148 -0
- package/checks/validation/repository/README.md +31 -0
- package/checks/validation/repository/agent-guidance-contract.ts +283 -0
- package/checks/validation/repository/audit-skill-links.ts +176 -0
- package/checks/validation/repository/check-agent-entrypoints.ts +259 -0
- package/checks/validation/repository/check-architecture.ts +393 -0
- package/checks/validation/repository/check-autopilot-contract.ts +277 -0
- package/checks/validation/repository/check-capability-delta.ts +30 -0
- package/checks/validation/repository/check-catalog.ts +88 -0
- package/checks/validation/repository/check-engine-e2e.ts +609 -0
- package/checks/validation/repository/check-gates-layout.ts +109 -0
- package/checks/validation/repository/check-graph-foundations.ts +158 -0
- package/checks/validation/repository/check-hub-spoke.ts +144 -0
- package/checks/validation/repository/check-learning-grounding.ts +323 -0
- package/checks/validation/repository/check-operating-graph.ts +205 -0
- package/checks/validation/repository/check-pack-composition.ts +94 -0
- package/checks/validation/repository/check-package-parity.ts +632 -0
- package/checks/validation/repository/check-provider-boundary.ts +154 -0
- package/checks/validation/repository/check-provider-contracts.ts +24 -0
- package/checks/validation/repository/check-reference-size.ts +354 -0
- package/checks/validation/repository/check-repository-boundary.ts +2385 -0
- package/checks/validation/repository/check-skill-supply-chain.ts +290 -0
- package/checks/validation/repository/check-skill-version.ts +363 -0
- package/checks/validation/repository/check-source-freshness.ts +627 -0
- package/checks/validation/repository/check-task-skills.ts +40 -0
- package/checks/validation/repository/check-upstreams.ts +189 -0
- package/checks/validation/repository/check-validator-docs.ts +84 -0
- package/checks/validation/repository/check-version-discipline.ts +314 -0
- package/checks/validation/repository/evals/agent-behavior/ai-chat-companion-archetype-prompt-pack.yaml +21 -0
- package/checks/validation/repository/evals/agent-behavior/appllama-provider-boundary.yaml +18 -0
- package/checks/validation/repository/evals/agent-behavior/compound-engineering-core-work.yaml +16 -0
- package/checks/validation/repository/evals/agent-behavior/design-room-state-render.yaml +15 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-asc-command-contract.yaml +22 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-doctor-asc-winner.yaml +27 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-phase0-apple-honesty.yaml +28 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-portfolio-hold.yaml +29 -0
- package/checks/validation/repository/evals/agent-behavior/first-run-tool-intake-fallback.yaml +32 -0
- package/checks/validation/repository/evals/agent-behavior/founder-zero-business-operator.yaml +28 -0
- package/checks/validation/repository/evals/agent-behavior/frontier-agent-operations.yaml +25 -0
- package/checks/validation/repository/evals/agent-behavior/habit-tracker-archetype-prompt-pack.yaml +22 -0
- package/checks/validation/repository/evals/agent-behavior/last30days-research-boundary.yaml +22 -0
- package/checks/validation/repository/evals/agent-behavior/mobile-flow-craft.yaml +23 -0
- package/checks/validation/repository/evals/agent-behavior/onboarding-review-after-engaged-normal-use.yaml +21 -0
- package/checks/validation/repository/evals/agent-behavior/onboarding-system-graph-rebuild.yaml +26 -0
- package/checks/validation/repository/evals/agent-behavior/photo-ai-media-archetype-prompt-pack.yaml +26 -0
- package/checks/validation/repository/evals/agent-behavior/post-launch-ops-live-app.yaml +27 -0
- package/checks/validation/repository/evals/agent-behavior/provider-proof-before-ready.yaml +15 -0
- package/checks/validation/repository/evals/agent-behavior/session-continuity-resume.yaml +19 -0
- package/checks/validation/repository/evals/agent-behavior/social-network-archetype-prompt-pack.yaml +21 -0
- package/checks/validation/repository/evals/agent-behavior/stale-skill-upgrade.yaml +14 -0
- package/checks/validation/repository/evals/agent-behavior/task-skill-alternate-provider.yaml +17 -0
- package/checks/validation/repository/evals/agent-behavior/task-skill-focused-onboarding.yaml +17 -0
- package/checks/validation/repository/evals/agent-behavior/task-skill-managed-continuation.yaml +17 -0
- package/checks/validation/repository/evals/agent-behavior/task-skill-missing-runtime.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/age-rating-questionnaire-missing.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/agent-behavior-evals-missing.yaml +11 -0
- package/checks/validation/repository/evals/launchbench/app-archetype-pack-incomplete.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/app-preview-video-hook-missing.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/app-price-vs-iap-confusion.yaml +29 -0
- package/checks/validation/repository/evals/launchbench/app-review-accepted-webhook-not-consumed.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-agreements-status-blocks-poll.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-binary-old-archive.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-consume-fixture-as-truth.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-review-consumed-envelope-left-in-queue.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/app-review-invalid-state.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-live-poll-created-date.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-missing-49-capability.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-missing-state.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-pending-agreement.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-protected-policy.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-resubmit-cycle-cap.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-resubmit-timeout-readback.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-review-resubmit-unauthorized.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-reviewer-injection.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/app-review-unknown-state.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-review-unobserved-shape.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-review-unsigned-webhook.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-review-verifier-self.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/app-review-web-session-missing.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/app-review-webhook-payload-as-truth.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/app-review-webhooks-serve.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/app-store-screenshots-unvalidated.yaml +26 -0
- package/checks/validation/repository/evals/launchbench/app-strings-hardcoded-not-localization-ready.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/app-ui-copy-reads-like-spec.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/apple-requirements-thin.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/apple-signing-pre-upload-checklist.yaml +57 -0
- package/checks/validation/repository/evals/launchbench/apple-simulator-only.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/archetype-starter-ignored.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/artifact-template-coverage-gap.yaml +11 -0
- package/checks/validation/repository/evals/launchbench/asc-auth-recovery-not-attempted.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/asc-auth-unverifiable-on-knowledge-surface.yaml +38 -0
- package/checks/validation/repository/evals/launchbench/asc-cli-app-create-screenshot-orchestration-missed.yaml +29 -0
- package/checks/validation/repository/evals/launchbench/asc-flag-drift-runtime.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/asc-listing-thin.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/asc-name-fallback.yaml +12 -0
- package/checks/validation/repository/evals/launchbench/asc-promoted-iap-image-duplicate.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/asc-review-information-missing.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/asc-stale-command-guidance.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/aso-discover-without-ads.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/aso-metadata-appkittie-skipped.yaml +29 -0
- package/checks/validation/repository/evals/launchbench/aso-metadata-stale-log-source.yaml +25 -0
- package/checks/validation/repository/evals/launchbench/aso-unavailable-fabricated.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/attribution-event-only.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/authenticated-browser-mutation-unapproved.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/backend-data-contract-missing.yaml +35 -0
- package/checks/validation/repository/evals/launchbench/behavioral-eval-split-misclaimed.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/broad-request-narrated-not-routed.yaml +32 -0
- package/checks/validation/repository/evals/launchbench/browser-action-state-not-reconciled.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/browser-capability-skipped.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/browser-prompt-injection-followed.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/browser-research-untraceable.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/ce-unavailable-standalone-loop-missing.yaml +33 -0
- package/checks/validation/repository/evals/launchbench/change-cascade-incomplete.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/commitment-funnel-missing.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/compound-freshness-not-checked.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/compound-routing-skipped.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/context-budget-exceeded.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/continuity-drift-between-sessions.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/copy-deck-skipped-during-build.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/copy-ip-sweep-altered-brand-vocabulary.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/design-evidence-pass-skipped.yaml +32 -0
- package/checks/validation/repository/evals/launchbench/design-lock-landing-fanout-skipped.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/design-room-freeform-proposal.yaml +25 -0
- package/checks/validation/repository/evals/launchbench/design-token-promotion-missing.yaml +11 -0
- package/checks/validation/repository/evals/launchbench/design-worthiness-contrast-fail.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/design-worthiness-taste-missing.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/distribution-first-compliments.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/doppler-config-name-and-credential-routing.yaml +29 -0
- package/checks/validation/repository/evals/launchbench/doppler-raw-token-requested.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/email-lane-deep-proof-missing.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/emotional-audit-prose-without-card-mapping.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/emotional-claim-without-research-grounding.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/emotional-design-system-missing.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/evidence-bar-overengineered.yaml +34 -0
- package/checks/validation/repository/evals/launchbench/founder-gate-deferred-forever.yaml +33 -0
- package/checks/validation/repository/evals/launchbench/founder-gate-jargon-without-choice.yaml +27 -0
- package/checks/validation/repository/evals/launchbench/founder-zero-operator-skipped.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/geo-seo-landing-copy-skipped.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/graph-foundations-unenforceable-principle.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/hdyhau-survey-missing.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/higgsfield-design-brief-missing.yaml +25 -0
- package/checks/validation/repository/evals/launchbench/higgsfield-remotion-fallback-unapproved.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/higgsfield-soul-identity-retrained-duplicate.yaml +26 -0
- package/checks/validation/repository/evals/launchbench/house-style-adr-api-example.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/house-style-customer-voice.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/house-style-entrypoints.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/house-style-fixture-as-provider-ready.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/house-style-handoff.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/house-style-inspect-read-only-claim.yaml +26 -0
- package/checks/validation/repository/evals/launchbench/house-style-literal-controls.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/house-style-mixed-readme.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/house-style-packaged-ethos-path.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/house-style-partial-pr.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/house-style-readme-kitchen.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/house-style-timeout-uncertain-mutation.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/in-app-simulator-route-mishandled.yaml +26 -0
- package/checks/validation/repository/evals/launchbench/influencer-sponsorship-shortcuts.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/landing-funnel-deploy-gates.yaml +31 -0
- package/checks/validation/repository/evals/launchbench/landing-motion-progressive-enhancement-missing.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/launch-tier-overproduction.yaml +41 -0
- package/checks/validation/repository/evals/launchbench/live-effect-false-progress.yaml +28 -0
- package/checks/validation/repository/evals/launchbench/live-provider-proof-missing.yaml +12 -0
- package/checks/validation/repository/evals/launchbench/localization-malformed-seasonal-dates.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/localization-same-day-peak.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/missed-provider-deprecation-unmigrated.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/mobai-fallback-unapproved.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/mobai-onboarding-chain-unverified.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/mobai-v25-proof-conflated-or-unsafe.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/monetization-cozy-default-stack-unexamined.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/motion-craft-prose-never-applied.yaml +41 -0
- package/checks/validation/repository/evals/launchbench/multi-runtime-skill-pin-drift.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/native-ios-proof-route-skipped.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/non-competitor-angle-hunt-missing.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/onboarding-event-invented-without-catalog.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/onboarding-research-auth-analytics-skipped.yaml +33 -0
- package/checks/validation/repository/evals/launchbench/operating-graph-pack-leakage.yaml +24 -0
- package/checks/validation/repository/evals/launchbench/operator-stops-after-access-instructions.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/orchestration-preflight-missing.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/pack-composition-weakens-base.yaml +24 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-anonymous-generation.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-controls-file-missing.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-kill-switch-disables-free.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-not-applicable-with-product-evidence.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/paid-ai-pack-omitted-while-spend-active.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/paid-ua-pending-mmp-waiver.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/paid-ua-spend-discipline-missing.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/paid-ua-spend-ready-without-appsflyer.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/paid-user-acquisition-system-missing.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/parallel-file-overlap-unsafe.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/paywall-engine-mismatch.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/paywall-experiment-program-unowned.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/paywall-experimentation-never-starts.yaml +35 -0
- package/checks/validation/repository/evals/launchbench/paywall-goal-headline-missing.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/post-launch-metrics-never-operated.yaml +33 -0
- package/checks/validation/repository/evals/launchbench/post-launch-ops-runbook-missing.yaml +34 -0
- package/checks/validation/repository/evals/launchbench/post-launch-zombie-app-no-kill-decision.yaml +35 -0
- package/checks/validation/repository/evals/launchbench/pre-build-kill-gate-skipped.yaml +43 -0
- package/checks/validation/repository/evals/launchbench/price-derivation-apply-without-dry-run.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/price-derivation-multiplier-as-approval.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/project-state-stale-after-upload.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/remotion-assets-thin.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/remotion-license-unchecked.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/repository-profile-acceptance-incomplete.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/repository-profile-overlay-invalid-yaml.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/repository-profile-public-community-on-private.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/repository-profile-suppresses-privacy.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/resend-template-unbranded.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/revenuecat-entitlement-unproven.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/revenuecat-experiments-capability-unclassified.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/revenuecat-subscription-preflight-missing.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/review-prompt-teardown-race.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/scrollytelling-copy-visual-disconnect.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/scrollytelling-mobile-short-height-failure.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/scrollytelling-reduced-motion-no-js-failure.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/scrollytelling-scroll-sync-drift.yaml +16 -0
- package/checks/validation/repository/evals/launchbench/secret-routing-missing.yaml +13 -0
- package/checks/validation/repository/evals/launchbench/secrets-baseline-skipped.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/security-release-lane-missing.yaml +15 -0
- package/checks/validation/repository/evals/launchbench/social-shared-password-instead-of-delegation.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/source-checkpoint-missing.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/source-registry-url-untracked.yaml +18 -0
- package/checks/validation/repository/evals/launchbench/stale-blocker-after-authoritative-readback.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/stale-installed-skill-runtime.yaml +25 -0
- package/checks/validation/repository/evals/launchbench/standing-approval-reprompt-and-late-tool-preflight.yaml +23 -0
- package/checks/validation/repository/evals/launchbench/state-updated-but-never-narrated.yaml +30 -0
- package/checks/validation/repository/evals/launchbench/store-screenshots-raw-only.yaml +24 -0
- package/checks/validation/repository/evals/launchbench/subagent-dispatch-skipped.yaml +22 -0
- package/checks/validation/repository/evals/launchbench/subagent-findings-unintegrated.yaml +21 -0
- package/checks/validation/repository/evals/launchbench/subagent-forbidden-actions.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/transformation-demo-vitamin.yaml +19 -0
- package/checks/validation/repository/evals/launchbench/typed-skill-graph-drift.yaml +17 -0
- package/checks/validation/repository/evals/launchbench/variable-reward-without-ethics-guardrail.yaml +14 -0
- package/checks/validation/repository/evals/launchbench/virality-predictor-skipped-before-spend.yaml +24 -0
- package/checks/validation/repository/evals/launchbench/weekly-source-refresh-unreviewed.yaml +20 -0
- package/checks/validation/repository/evals/launchbench/xctest-signal-kill-loop.yaml +17 -0
- package/checks/validation/repository/evals/triggering/autopilot-triggering.yaml +140 -0
- package/checks/validation/repository/fixtures/_builders-ops.ts +358 -0
- package/checks/validation/repository/fixtures/_builders-store.ts +380 -0
- package/checks/validation/repository/fixtures/_evidence-header-constants.ts +37 -0
- package/checks/validation/repository/fixtures/_harness.ts +213 -0
- package/checks/validation/repository/fixtures/_source-http-checks.ts +258 -0
- package/checks/validation/repository/fixtures/_source-http-preload.mjs +71 -0
- package/checks/validation/repository/fixtures/_state.ts +29 -0
- package/checks/validation/repository/fixtures/_table-edit.ts +18 -0
- package/checks/validation/repository/fixtures/agent-entrypoints.fixtures.ts +277 -0
- package/checks/validation/repository/fixtures/agent-operations.fixtures.ts +614 -0
- package/checks/validation/repository/fixtures/appkittie-adapter.fixtures.ts +143 -0
- package/checks/validation/repository/fixtures/archetype.fixtures.ts +137 -0
- package/checks/validation/repository/fixtures/architecture.fixtures.ts +127 -0
- package/checks/validation/repository/fixtures/behavioral.fixtures.ts +19 -0
- package/checks/validation/repository/fixtures/check-json.fixtures.ts +145 -0
- package/checks/validation/repository/fixtures/continuity-length-budget.fixtures.ts +35 -0
- package/checks/validation/repository/fixtures/copy.fixtures.ts +1486 -0
- package/checks/validation/repository/fixtures/core-artifacts.fixtures.ts +3208 -0
- package/checks/validation/repository/fixtures/design-taste-grading.fixtures.ts +358 -0
- package/checks/validation/repository/fixtures/design-taste-rubric.fixtures.ts +136 -0
- package/checks/validation/repository/fixtures/design.fixtures.ts +5771 -0
- package/checks/validation/repository/fixtures/engineering.fixtures.ts +764 -0
- package/checks/validation/repository/fixtures/evidence-schema.fixtures.ts +448 -0
- package/checks/validation/repository/fixtures/founder-operator.fixtures.ts +897 -0
- package/checks/validation/repository/fixtures/graph-foundations.fixtures.ts +107 -0
- package/checks/validation/repository/fixtures/growth.fixtures.ts +908 -0
- package/checks/validation/repository/fixtures/learning.fixtures.ts +243 -0
- package/checks/validation/repository/fixtures/lifecycle.fixtures.ts +1958 -0
- package/checks/validation/repository/fixtures/mobai.fixtures.ts +277 -0
- package/checks/validation/repository/fixtures/onboarding.fixtures.ts +2447 -0
- package/checks/validation/repository/fixtures/operating-graph.fixtures.ts +24 -0
- package/checks/validation/repository/fixtures/pack-composition.fixtures.ts +117 -0
- package/checks/validation/repository/fixtures/probes-and-grading.fixtures.ts +122 -0
- package/checks/validation/repository/fixtures/provider-contracts.fixtures.ts +378 -0
- package/checks/validation/repository/fixtures/providers-and-secrets.fixtures.ts +1266 -0
- package/checks/validation/repository/fixtures/repo-gates.fixtures.ts +2451 -0
- package/checks/validation/repository/fixtures/repository-boundary.fixtures.ts +2281 -0
- package/checks/validation/repository/fixtures/repository-profile.fixtures.ts +244 -0
- package/checks/validation/repository/fixtures/roster.fixtures.ts +62 -0
- package/checks/validation/repository/fixtures/runtime-sync.fixtures.ts +286 -0
- package/checks/validation/repository/fixtures/skill-supply-chain.fixtures.ts +114 -0
- package/checks/validation/repository/fixtures/source-access.fixtures.ts +523 -0
- package/checks/validation/repository/fixtures/state-and-meta.fixtures.ts +1518 -0
- package/checks/validation/repository/fixtures/store.fixtures.ts +1573 -0
- package/checks/validation/repository/fixtures/upstreams.fixtures.ts +222 -0
- package/checks/validation/repository/launchbench-evals.md +150 -0
- package/checks/validation/repository/message-batches.ts +75 -0
- package/checks/validation/repository/refresh-source-freshness.ts +341 -0
- package/checks/validation/repository/run-agent-evals.ts +117 -0
- package/checks/validation/repository/run-behavioral-evals.ts +612 -0
- package/checks/validation/repository/run-launchbench.ts +246 -0
- package/checks/validation/repository/run-validator-fixtures.ts +173 -0
- package/checks/validation/repository/skill-versioning.md +91 -0
- package/checks/validation/repository/source-freshness-maintenance.md +129 -0
- package/checks/validation/repository/source-registry.yaml +2976 -0
- package/contracts/contribution/contract.ts +571 -0
- package/contracts/extensions/contract.ts +307 -0
- package/contracts/extensions/schemas/extension.schema.json +756 -0
- package/contracts/mobile-operation.ts +148 -0
- package/contracts/onboarding/foundations.ts +286 -0
- package/contracts/public-api/REFERENCE.md +206 -0
- package/contracts/public-api/connection-receipt.ts +645 -0
- package/contracts/public-api/contract.ts +786 -0
- package/contracts/public-api/examples/mobile-app-capture.json +5 -0
- package/contracts/public-api/examples/subscription-app.json +19 -0
- package/contracts/public-api/research-contract.ts +125 -0
- package/contracts/public-api/schemas/business.create.input.schema.json +38 -0
- package/contracts/public-api/schemas/business.create.result.schema.json +177 -0
- package/contracts/public-api/schemas/business.evidence.input.schema.json +19 -0
- package/contracts/public-api/schemas/business.evidence.result.schema.json +206 -0
- package/contracts/public-api/schemas/business.initialize.input.schema.json +20 -0
- package/contracts/public-api/schemas/business.initialize.result.schema.json +140 -0
- package/contracts/public-api/schemas/business.plan.input.schema.json +21 -0
- package/contracts/public-api/schemas/business.plan.result.schema.json +1007 -0
- package/contracts/public-api/schemas/business.recover.input.schema.json +25 -0
- package/contracts/public-api/schemas/business.recover.result.schema.json +179 -0
- package/contracts/public-api/schemas/business.research.decision.input.schema.json +53 -0
- package/contracts/public-api/schemas/business.research.decision.result.schema.json +184 -0
- package/contracts/public-api/schemas/business.research.lookup.input.schema.json +87 -0
- package/contracts/public-api/schemas/business.research.lookup.result.schema.json +281 -0
- package/contracts/public-api/schemas/business.research.record.input.schema.json +136 -0
- package/contracts/public-api/schemas/business.research.record.result.schema.json +149 -0
- package/contracts/public-api/schemas/business.run.input.schema.json +53 -0
- package/contracts/public-api/schemas/business.run.result.schema.json +218 -0
- package/contracts/public-api/schemas/business.status.input.schema.json +15 -0
- package/contracts/public-api/schemas/business.status.result.schema.json +319 -0
- package/contracts/public-api/schemas/catalog.list.input.schema.json +20 -0
- package/contracts/public-api/schemas/catalog.list.result.schema.json +208 -0
- package/contracts/public-api/schemas/composition.activate.input.schema.json +30 -0
- package/contracts/public-api/schemas/composition.activate.result.schema.json +161 -0
- package/contracts/public-api/schemas/composition.plan.input.schema.json +25 -0
- package/contracts/public-api/schemas/composition.plan.result.schema.json +253 -0
- package/contracts/public-api/schemas/composition.preview.input.schema.json +118 -0
- package/contracts/public-api/schemas/composition.preview.result.schema.json +284 -0
- package/contracts/public-api/schemas/composition.recover.input.schema.json +23 -0
- package/contracts/public-api/schemas/composition.recover.result.schema.json +161 -0
- package/contracts/public-api/schemas/composition.schema.json +101 -0
- package/contracts/public-api/schemas/market.report.input.schema.json +21 -0
- package/contracts/public-api/schemas/market.report.result.schema.json +377 -0
- package/contracts/public-api/schemas/packages.import.input.schema.json +29 -0
- package/contracts/public-api/schemas/packages.import.result.schema.json +177 -0
- package/contracts/public-api/schemas/packages.list.input.schema.json +15 -0
- package/contracts/public-api/schemas/packages.list.result.schema.json +189 -0
- package/contracts/research/observation.ts +27 -0
- package/contracts/semantic/canonicalize.ts +25 -0
- package/contracts/semantic/index.ts +116 -0
- package/contracts/semantic/package-resource.ts +53 -0
- package/contracts/semantic/query-ir.ts +215 -0
- package/contracts/semantic/question-pack.ts +176 -0
- package/contracts/semantic/questions.ts +149 -0
- package/contracts/semantic/receipts.ts +179 -0
- package/contracts/shared-resources.ts +18 -0
- package/contracts/source-access.ts +44 -0
- package/contracts/worker-artifact.ts +14 -0
- package/dist/adapters/app-review/archive.js +46 -0
- package/dist/adapters/app-review/asc-boundary.js +71 -0
- package/dist/adapters/app-review/asc-provider.js +474 -0
- package/dist/adapters/app-review/auth.js +53 -0
- package/dist/adapters/app-review/capability.js +195 -0
- package/dist/adapters/app-review/classify.js +107 -0
- package/dist/adapters/app-review/consume.js +77 -0
- package/dist/adapters/app-review/envelope.js +89 -0
- package/dist/adapters/app-review/events.js +381 -0
- package/dist/adapters/app-review/hmac.js +72 -0
- package/dist/adapters/app-review/implement.js +76 -0
- package/dist/adapters/app-review/index.js +29 -0
- package/dist/adapters/app-review/ingest.js +106 -0
- package/dist/adapters/app-review/mandate.js +76 -0
- package/dist/adapters/app-review/normalize.js +245 -0
- package/dist/adapters/app-review/packet.js +236 -0
- package/dist/adapters/app-review/persist.js +83 -0
- package/dist/adapters/app-review/plan.js +268 -0
- package/dist/adapters/app-review/plist.js +218 -0
- package/dist/adapters/app-review/poll.js +224 -0
- package/dist/adapters/app-review/projection.js +143 -0
- package/dist/adapters/app-review/queue.js +115 -0
- package/dist/adapters/app-review/receiver.js +78 -0
- package/dist/adapters/app-review/registration.js +52 -0
- package/dist/adapters/app-review/remediate.js +185 -0
- package/dist/adapters/app-review/render.js +175 -0
- package/dist/adapters/app-review/resubmit.js +322 -0
- package/dist/adapters/app-review/types.js +52 -0
- package/dist/adapters/app-review/uncertain-execution.js +151 -0
- package/dist/adapters/app-review/verification.js +35 -0
- package/dist/adapters/appkittie-category-revenue.js +69 -0
- package/dist/adapters/claude.js +51 -0
- package/dist/adapters/codex.js +47 -0
- package/dist/adapters/cursor.js +48 -0
- package/dist/adapters/device-proof.js +649 -0
- package/dist/adapters/greenfield/boundary.js +126 -0
- package/dist/adapters/greenfield/fail-safe.js +120 -0
- package/dist/adapters/greenfield/index.js +2 -0
- package/dist/adapters/inline.js +35 -0
- package/dist/adapters/install-control-permissions.js +264 -0
- package/dist/adapters/install-entrypoints.js +344 -0
- package/dist/adapters/install-schedule.js +571 -0
- package/dist/adapters/ios-app-evidence.js +111 -0
- package/dist/adapters/mobile-operation-host.js +206 -0
- package/dist/adapters/mobile-operation.js +93 -0
- package/dist/adapters/operating.js +7 -0
- package/dist/adapters/probe.js +40 -0
- package/dist/adapters/profile.js +134 -0
- package/dist/adapters/providers/capability-delta.js +59 -0
- package/dist/adapters/providers/contract.js +41 -0
- package/dist/adapters/providers/evaluate.js +116 -0
- package/dist/adapters/providers/expo/argv.js +222 -0
- package/dist/adapters/providers/expo/decode.js +593 -0
- package/dist/adapters/providers/expo/discovery.js +94 -0
- package/dist/adapters/providers/expo/doctor.js +145 -0
- package/dist/adapters/providers/expo/effects.js +142 -0
- package/dist/adapters/providers/expo/execute.js +299 -0
- package/dist/adapters/providers/expo/expo-device-bind.js +91 -0
- package/dist/adapters/providers/expo/expo-mcp-route.js +282 -0
- package/dist/adapters/providers/expo/hosting-prepare.js +116 -0
- package/dist/adapters/providers/expo/identity.js +99 -0
- package/dist/adapters/providers/expo/index.js +26 -0
- package/dist/adapters/providers/expo/jobs.js +424 -0
- package/dist/adapters/providers/expo/preflight.js +215 -0
- package/dist/adapters/providers/expo/process.js +117 -0
- package/dist/adapters/providers/expo/project-config.js +147 -0
- package/dist/adapters/providers/expo/sanitize.js +46 -0
- package/dist/adapters/providers/expo/signing-readiness.js +108 -0
- package/dist/adapters/providers/expo/store-handoff.js +52 -0
- package/dist/adapters/providers/expo/update-identity.js +70 -0
- package/dist/adapters/providers/expo/update-policy.js +93 -0
- package/dist/adapters/providers/expo/update-prepare.js +104 -0
- package/dist/adapters/providers/expo/update-recovery.js +96 -0
- package/dist/adapters/providers/expo/update-rollout.js +69 -0
- package/dist/adapters/providers/expo/update-signing.js +69 -0
- package/dist/adapters/providers/expo/web-api-contract.js +112 -0
- package/dist/adapters/providers/growth-agent/boundary.js +143 -0
- package/dist/adapters/providers/growth-agent/fail-safe.js +220 -0
- package/dist/adapters/providers/growth-agent/index.js +2 -0
- package/dist/adapters/providers/layers/effects.js +72 -0
- package/dist/adapters/providers/layers/index.js +9 -0
- package/dist/adapters/providers/layers/jobs.js +207 -0
- package/dist/adapters/providers/layers/onboarding.js +114 -0
- package/dist/adapters/providers/layers/route.js +242 -0
- package/dist/adapters/providers/layers/transport.js +144 -0
- package/dist/adapters/providers/load.js +300 -0
- package/dist/adapters/providers/mobile-ops/boundary.js +114 -0
- package/dist/adapters/providers/mobile-ops/fail-safe.js +190 -0
- package/dist/adapters/providers/mobile-ops/index.js +2 -0
- package/dist/adapters/providers/monetization-validation.js +72 -0
- package/dist/adapters/providers/revenuecat/cli-catalog-observe.js +230 -0
- package/dist/adapters/providers/revenuecat/cli-catalog.js +941 -0
- package/dist/adapters/providers/revenuecat/cli-command-schema.js +319 -0
- package/dist/adapters/providers/revenuecat/cli-decode.js +740 -0
- package/dist/adapters/providers/revenuecat/cli-discovery.js +205 -0
- package/dist/adapters/providers/revenuecat/cli-doctor.js +199 -0
- package/dist/adapters/providers/revenuecat/cli-execute.js +345 -0
- package/dist/adapters/providers/revenuecat/cli-ledger.js +371 -0
- package/dist/adapters/providers/revenuecat/cli-operations.js +875 -0
- package/dist/adapters/providers/revenuecat/cli-preflight.js +175 -0
- package/dist/adapters/providers/revenuecat/cli-process.js +149 -0
- package/dist/adapters/providers/revenuecat/cli-proof.js +121 -0
- package/dist/adapters/providers/revenuecat/cli-reconcile-plan.js +901 -0
- package/dist/adapters/providers/revenuecat/provisioning.js +52 -0
- package/dist/adapters/providers/revenuecat/revenue-validation.js +772 -0
- package/dist/adapters/providers/runtime-pin.js +92 -0
- package/dist/adapters/providers/superwall/boundary.js +86 -0
- package/dist/adapters/providers/superwall/fail-safe.js +171 -0
- package/dist/adapters/providers/superwall/measurement.js +49 -0
- package/dist/adapters/providers/typesafe/assess.js +160 -0
- package/dist/adapters/providers/typesafe/binding.js +35 -0
- package/dist/adapters/providers/typesafe/connection.js +58 -0
- package/dist/adapters/providers/typesafe/decode.js +255 -0
- package/dist/adapters/providers/typesafe/effects.js +67 -0
- package/dist/adapters/providers/typesafe/encode.js +61 -0
- package/dist/adapters/providers/typesafe/index.js +12 -0
- package/dist/adapters/providers/typesafe/support.js +65 -0
- package/dist/adapters/providers/typesafe/transport.js +318 -0
- package/dist/adapters/provisioning/capability-gaps.js +66 -0
- package/dist/adapters/provisioning/capability-readiness.js +39 -0
- package/dist/adapters/provisioning/cli.js +259 -0
- package/dist/adapters/provisioning/requirements.js +458 -0
- package/dist/adapters/provisioning/resolve.js +217 -0
- package/dist/adapters/registry.js +180 -0
- package/dist/catalog/agent-graph/load.js +102 -0
- package/dist/catalog/agent-graph/types.js +15 -0
- package/dist/catalog/agent-graph/validate.js +110 -0
- package/dist/catalog/areas.js +83 -0
- package/dist/catalog/artifacts.js +38 -0
- package/dist/catalog/authoring.js +43 -0
- package/dist/catalog/bridge.js +221 -0
- package/dist/catalog/business-primitives.js +80 -0
- package/dist/catalog/business-units.js +13 -0
- package/dist/catalog/capabilities/types.js +3 -0
- package/dist/catalog/context-packs.js +76 -0
- package/dist/catalog/domain-authority.js +32 -0
- package/dist/catalog/domains.js +170 -0
- package/dist/catalog/firstparty-declarations.js +625 -0
- package/dist/catalog/firstparty-recipes.js +273 -0
- package/dist/catalog/gates.js +93 -0
- package/dist/catalog/ids.js +18 -0
- package/dist/catalog/index.js +36 -0
- package/dist/catalog/knowledge-packages.js +210 -0
- package/dist/catalog/knowledge-validation.js +160 -0
- package/dist/catalog/lane-graph.js +30 -0
- package/dist/catalog/lanes.js +59 -0
- package/dist/catalog/ontology/design-surface-applicability.js +383 -0
- package/dist/catalog/ontology/instance-load.js +97 -0
- package/dist/catalog/ontology/instance-types.js +25 -0
- package/dist/catalog/ontology/instance-validate.js +86 -0
- package/dist/catalog/ontology/load.js +174 -0
- package/dist/catalog/ontology/onboarding-applicability.js +166 -0
- package/dist/catalog/ontology/product-workspace.js +36 -0
- package/dist/catalog/ontology/query.js +62 -0
- package/dist/catalog/ontology/render-product.js +26 -0
- package/dist/catalog/ontology/types.js +24 -0
- package/dist/catalog/ontology/validate.js +173 -0
- package/dist/catalog/operators.js +246 -0
- package/dist/catalog/overlays.js +28 -0
- package/dist/catalog/packs/compose.js +386 -0
- package/dist/catalog/packs/firstparty-assets.js +68 -0
- package/dist/catalog/packs/firstparty-notices.js +52 -0
- package/dist/catalog/packs/firstparty.js +134 -0
- package/dist/catalog/packs/installed-firstparty.js +20 -0
- package/dist/catalog/packs/isolation.js +77 -0
- package/dist/catalog/packs/load.js +543 -0
- package/dist/catalog/packs/snapshots.js +122 -0
- package/dist/catalog/packs/types.js +11 -0
- package/dist/catalog/phases.js +137 -0
- package/dist/catalog/principles/guards.js +101 -0
- package/dist/catalog/principles/load.js +176 -0
- package/dist/catalog/principles/types.js +26 -0
- package/dist/catalog/profiles.js +40 -0
- package/dist/catalog/providers/apple-asc-canonical-map.js +449 -0
- package/dist/catalog/providers/conformance.js +41 -0
- package/dist/catalog/providers/greenfield-70-applicability-closeout-map.js +210 -0
- package/dist/catalog/providers/greenfield-71-handoff-closeout-map.js +331 -0
- package/dist/catalog/providers/greenfield-72-benchmark-closeout-map.js +449 -0
- package/dist/catalog/providers/greenfield-73-overhead-closeout-map.js +276 -0
- package/dist/catalog/providers/greenfield-75-retrieval-closeout-map.js +283 -0
- package/dist/catalog/providers/greenfield-76-change-impact-closeout-map.js +287 -0
- package/dist/catalog/providers/greenfield-delivery-audit-map.js +319 -0
- package/dist/catalog/providers/growth-agent-canonical-map.js +599 -0
- package/dist/catalog/providers/mobile-ops-canonical-map.js +513 -0
- package/dist/catalog/providers/semantic-batch-map.js +62 -0
- package/dist/catalog/providers/semantic-eval-baselines-map.js +735 -0
- package/dist/catalog/providers/semantic-graph-views-map.js +66 -0
- package/dist/catalog/providers/semantic-plan-lower-map.js +54 -0
- package/dist/catalog/providers/semantic-source-projection-map.js +78 -0
- package/dist/catalog/providers/superwall-canonical-map.js +325 -0
- package/dist/catalog/providers/typesafe-qualify-map.js +224 -0
- package/dist/catalog/recipes/default-monetization.js +9 -0
- package/dist/catalog/render-routing.js +394 -0
- package/dist/catalog/repository-profiles/compile.js +381 -0
- package/dist/catalog/repository-profiles/index.js +4 -0
- package/dist/catalog/repository-profiles/paid-generation-applicability.js +111 -0
- package/dist/catalog/repository-profiles/registry.js +75 -0
- package/dist/catalog/repository-profiles/types.js +17 -0
- package/dist/catalog/repository-profiles/workspace.js +128 -0
- package/dist/catalog/roles.js +266 -0
- package/dist/catalog/stacks/expo-agent-privacy.js +101 -0
- package/dist/catalog/stacks/expo-agent-tools.js +264 -0
- package/dist/catalog/stacks/expo-capability-matrix.js +209 -0
- package/dist/catalog/stacks/expo-capability-protocol.js +521 -0
- package/dist/catalog/stacks/expo-custom-module.js +367 -0
- package/dist/catalog/stacks/expo-eas-commands.js +677 -0
- package/dist/catalog/stacks/expo-eas-hosting.js +160 -0
- package/dist/catalog/stacks/expo-eas-operation-matrix.js +194 -0
- package/dist/catalog/stacks/expo-local-boot.js +301 -0
- package/dist/catalog/stacks/expo-local-capabilities.js +240 -0
- package/dist/catalog/stacks/expo-native-ownership.js +362 -0
- package/dist/catalog/stacks/expo-observability.js +101 -0
- package/dist/catalog/stacks/expo-proof-collection.js +231 -0
- package/dist/catalog/stacks/expo-quality-evidence.js +148 -0
- package/dist/catalog/stacks/expo-revenuecat-wiring.js +103 -0
- package/dist/catalog/stacks/expo-router-contract.js +340 -0
- package/dist/catalog/stacks/expo-sdk-upgrade.js +126 -0
- package/dist/catalog/stacks/expo-selection.js +572 -0
- package/dist/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/capability.js +36 -0
- package/dist/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/index.web.js +11 -0
- package/dist/catalog/stacks/expo-starter-fixture/modules/b2c-native-capability/src/invoke.js +17 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/capabilities/reducers.js +116 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/navigation/deep-link.js +14 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/navigation/journeys.js +94 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/navigation/route-graph.js +36 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/notifications/handoff.js +15 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/offline/local-cache.js +62 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/permissions/safe-state.js +10 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/persistence/seam.js +25 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/session/local-session.js +24 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/states/surface-state.js +12 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/ui/contract-binding.js +11 -0
- package/dist/catalog/stacks/expo-starter-fixture/src/ui/tokens.js +8 -0
- package/dist/catalog/stacks/expo-starter.js +292 -0
- package/dist/catalog/stacks/expo-web-api-routes.js +145 -0
- package/dist/catalog/stacks/expo-web-static.js +407 -0
- package/dist/catalog/stacks/expo-web-surface-table.js +162 -0
- package/dist/catalog/task-skills.js +345 -0
- package/dist/catalog/taxonomy/load.js +109 -0
- package/dist/catalog/taxonomy/types.js +30 -0
- package/dist/catalog/taxonomy/validate.js +199 -0
- package/dist/catalog/types.js +6 -0
- package/dist/catalog/validate.js +745 -0
- package/dist/catalog/workflows/build-release.js +704 -0
- package/dist/catalog/workflows/growth-revenue.js +322 -0
- package/dist/catalog/workflows/helpers.js +61 -0
- package/dist/catalog/workflows/index.js +8 -0
- package/dist/catalog/workflows/maintenance.js +269 -0
- package/dist/catalog/workflows/operating-system.js +250 -0
- package/dist/catalog/workflows/operations-trust.js +407 -0
- package/dist/catalog/workflows/product-experience.js +1214 -0
- package/dist/checks/validation/business/design/color-contrast.js +41 -0
- package/dist/checks/validation/business/design/design-acceptance.js +1716 -0
- package/dist/checks/validation/business/design/lib/vibecode-tells.js +78 -0
- package/dist/checks/validation/business/design/lib/worthiness-mechanical.js +157 -0
- package/dist/checks/validation/business/design/runtime-reviewer-inputs.js +51 -0
- package/dist/checks/validation/business/design/surface-page-gates.js +140 -0
- package/dist/checks/validation/repository/agent-guidance-contract.js +257 -0
- package/dist/checks/validation/repository/check-agent-entrypoints.js +210 -0
- package/dist/checks/validation/repository/check-architecture.js +327 -0
- package/dist/checks/validation/repository/check-autopilot-contract.js +198 -0
- package/dist/checks/validation/repository/check-capability-delta.js +28 -0
- package/dist/checks/validation/repository/check-catalog.js +80 -0
- package/dist/checks/validation/repository/check-gates-layout.js +76 -0
- package/dist/checks/validation/repository/check-graph-foundations.js +130 -0
- package/dist/checks/validation/repository/check-hub-spoke.js +110 -0
- package/dist/checks/validation/repository/check-learning-grounding.js +259 -0
- package/dist/checks/validation/repository/check-operating-graph.js +171 -0
- package/dist/checks/validation/repository/check-pack-composition.js +87 -0
- package/dist/checks/validation/repository/check-package-parity.js +410 -0
- package/dist/checks/validation/repository/check-provider-boundary.js +116 -0
- package/dist/checks/validation/repository/check-provider-contracts.js +21 -0
- package/dist/checks/validation/repository/check-upstreams.js +123 -0
- package/dist/checks/validation/repository/check-validator-docs.js +57 -0
- package/dist/contracts/contribution/contract.js +496 -0
- package/dist/contracts/extensions/contract.js +317 -0
- package/dist/contracts/mobile-operation.js +137 -0
- package/dist/contracts/onboarding/foundations.js +268 -0
- package/dist/contracts/public-api/connection-receipt.js +468 -0
- package/dist/contracts/public-api/contract.js +682 -0
- package/dist/contracts/public-api/research-contract.js +119 -0
- package/dist/contracts/research/observation.js +26 -0
- package/dist/contracts/semantic/canonicalize.js +24 -0
- package/dist/contracts/semantic/index.js +12 -0
- package/dist/contracts/semantic/package-resource.js +42 -0
- package/dist/contracts/semantic/query-ir.js +185 -0
- package/dist/contracts/semantic/question-pack.js +155 -0
- package/dist/contracts/semantic/questions.js +124 -0
- package/dist/contracts/semantic/receipts.js +152 -0
- package/dist/contracts/shared-resources.js +11 -0
- package/dist/contracts/source-access.js +36 -0
- package/dist/contracts/worker-artifact.js +13 -0
- package/dist/entrypoints/cli/business.js +245 -0
- package/dist/entrypoints/cli/contribute.js +256 -0
- package/dist/entrypoints/mcp/business.js +17 -0
- package/dist/entrypoints/mcp/contribute.js +36 -0
- package/dist/entrypoints/mcp/run-process.js +58 -0
- package/dist/entrypoints/mcp/server.js +664 -0
- package/dist/kernel/autonomy/budget.js +110 -0
- package/dist/kernel/autonomy/evaluator.js +81 -0
- package/dist/kernel/autonomy/grants.js +88 -0
- package/dist/kernel/autonomy/killswitch.js +16 -0
- package/dist/kernel/autonomy/prerequisites.js +71 -0
- package/dist/kernel/autonomy/probes/budget.js +50 -0
- package/dist/kernel/autonomy/probes/doppler.js +34 -0
- package/dist/kernel/autonomy/standing-approvals.js +272 -0
- package/dist/kernel/autonomy/waivers.js +97 -0
- package/dist/kernel/composition/activation.js +474 -0
- package/dist/kernel/composition/compile-bindings.js +241 -0
- package/dist/kernel/composition/notices.js +179 -0
- package/dist/kernel/composition/onboarding-selection.js +172 -0
- package/dist/kernel/composition/providers.js +29 -0
- package/dist/kernel/composition/resolve.js +201 -0
- package/dist/kernel/composition/resources.js +284 -0
- package/dist/kernel/composition/semantic-plan-lower.js +659 -0
- package/dist/kernel/composition/worker-context.js +54 -0
- package/dist/kernel/context/budget.js +12 -0
- package/dist/kernel/context/compile.js +54 -0
- package/dist/kernel/context/receipt.js +7 -0
- package/dist/kernel/context/selectors.js +25 -0
- package/dist/kernel/contribution/accepted-upstreams.js +71 -0
- package/dist/kernel/contribution/adoption-map.js +103 -0
- package/dist/kernel/contribution/check.js +157 -0
- package/dist/kernel/contribution/evaluate.js +251 -0
- package/dist/kernel/contribution/existing-owners.js +89 -0
- package/dist/kernel/contribution/github-metadata.js +178 -0
- package/dist/kernel/contribution/host-observe.js +117 -0
- package/dist/kernel/contribution/intake.js +559 -0
- package/dist/kernel/contribution/manifest-io.js +238 -0
- package/dist/kernel/contribution/plan.js +358 -0
- package/dist/kernel/contribution/preview.js +198 -0
- package/dist/kernel/contribution/provider-capability-delta.js +142 -0
- package/dist/kernel/contribution/service.js +208 -0
- package/dist/kernel/contribution/types.js +1 -0
- package/dist/kernel/contribution/untrusted.js +164 -0
- package/dist/kernel/contribution/upstream-coverage.js +99 -0
- package/dist/kernel/contribution/upstreams-load.js +157 -0
- package/dist/kernel/contribution/upstreams.js +1134 -0
- package/dist/kernel/engine/artifact-fingerprint.js +29 -0
- package/dist/kernel/engine/compile.js +201 -0
- package/dist/kernel/engine/design-taste-authority.js +191 -0
- package/dist/kernel/engine/dispatch.js +60 -0
- package/dist/kernel/engine/founder-decision-receipt.js +474 -0
- package/dist/kernel/engine/founder-trust-store.js +645 -0
- package/dist/kernel/engine/frontier.js +123 -0
- package/dist/kernel/engine/node-brief.js +199 -0
- package/dist/kernel/engine/proof-rung.js +47 -0
- package/dist/kernel/engine/review-evidence.js +292 -0
- package/dist/kernel/engine/review-facet.js +6 -0
- package/dist/kernel/engine/runstate.js +1032 -0
- package/dist/kernel/engine/source-fingerprint.js +89 -0
- package/dist/kernel/engine/verification-policy.js +4 -0
- package/dist/kernel/engine/verification.js +130 -0
- package/dist/kernel/knowledge-service/journey.js +46 -0
- package/dist/kernel/knowledge-service/projection-helpers.js +196 -0
- package/dist/kernel/knowledge-service/sections.js +58 -0
- package/dist/kernel/knowledge-service/semantic-graph-views.js +514 -0
- package/dist/kernel/knowledge-service/service.js +767 -0
- package/dist/kernel/knowledge-service/tools.js +101 -0
- package/dist/kernel/knowledge-service/types.js +27 -0
- package/dist/kernel/lib/atomic-file.js +39 -0
- package/dist/kernel/lib/bounded-file.js +29 -0
- package/dist/kernel/lib/cli.js +42 -0
- package/dist/kernel/lib/empty-equivalent-evidence.js +33 -0
- package/dist/kernel/lib/later-guidance.js +101 -0
- package/dist/kernel/lib/required-table-section.js +535 -0
- package/dist/kernel/operating-model/agreements.js +17 -0
- package/dist/kernel/operating-model/authorize.js +65 -0
- package/dist/kernel/operating-model/erasure-metadata.js +6 -0
- package/dist/kernel/operating-model/events.js +123 -0
- package/dist/kernel/operating-model/mandates.js +64 -0
- package/dist/kernel/operating-model/market-experiment.js +290 -0
- package/dist/kernel/operating-model/measurement.js +400 -0
- package/dist/kernel/operating-model/parties.js +12 -0
- package/dist/kernel/operating-model/projections.js +109 -0
- package/dist/kernel/operating-model/types.js +41 -0
- package/dist/kernel/operating-model/validate.js +316 -0
- package/dist/kernel/reducer/audit.js +103 -0
- package/dist/kernel/reducer/cli.js +489 -0
- package/dist/kernel/reducer/current-truth.js +383 -0
- package/dist/kernel/reducer/erasure-guard.js +16 -0
- package/dist/kernel/reducer/erasure.js +683 -0
- package/dist/kernel/reducer/lock.js +137 -0
- package/dist/kernel/reducer/patch.js +320 -0
- package/dist/kernel/reducer/semantic-batch-ownership.js +27 -0
- package/dist/kernel/reducer/semantic-graph-ownership.js +41 -0
- package/dist/kernel/reducer/shared-claims.js +124 -0
- package/dist/kernel/routing/eligibility.js +63 -0
- package/dist/kernel/routing/rank.js +14 -0
- package/dist/kernel/routing/resolve.js +89 -0
- package/dist/kernel/routing/signals.js +27 -0
- package/dist/kernel/routing/types.js +3 -0
- package/dist/kernel/schema/domain-authority.js +3 -0
- package/dist/kernel/schema/evidence-grammar.js +104 -0
- package/dist/kernel/schema/evidence-schema-version.js +64 -0
- package/dist/kernel/schema/index.js +283 -0
- package/dist/kernel/schema/types.js +91 -0
- package/dist/kernel/services/business.js +307 -0
- package/dist/kernel/services/installed-composition.js +148 -0
- package/dist/kernel/services/lifecycle.js +242 -0
- package/dist/kernel/services/plan-projection.js +211 -0
- package/dist/kernel/services/research-decision.js +209 -0
- package/dist/kernel/services/research.js +99 -0
- package/dist/kernel/services/source-projection.js +364 -0
- package/dist/kernel/session/app-review-ingress.js +230 -0
- package/dist/kernel/session/approve.js +364 -0
- package/dist/kernel/session/attempt-failure.js +108 -0
- package/dist/kernel/session/bootstrap.js +480 -0
- package/dist/kernel/session/brief.js +69 -0
- package/dist/kernel/session/catalog-contract.js +262 -0
- package/dist/kernel/session/check.js +184 -0
- package/dist/kernel/session/deterministic-gates.js +60 -0
- package/dist/kernel/session/digest.js +280 -0
- package/dist/kernel/session/doctor-host.js +187 -0
- package/dist/kernel/session/doctor.js +275 -0
- package/dist/kernel/session/executor.js +803 -0
- package/dist/kernel/session/firstparty-worker-host.js +30 -0
- package/dist/kernel/session/founder-brief.js +106 -0
- package/dist/kernel/session/founder-gate.js +133 -0
- package/dist/kernel/session/founder-key.js +118 -0
- package/dist/kernel/session/initialization-guard.js +16 -0
- package/dist/kernel/session/initialize.js +205 -0
- package/dist/kernel/session/input-inventory.js +207 -0
- package/dist/kernel/session/inspect.js +237 -0
- package/dist/kernel/session/ios-proof-receipt.js +232 -0
- package/dist/kernel/session/market-experiment.js +77 -0
- package/dist/kernel/session/new.js +177 -0
- package/dist/kernel/session/onboard.js +448 -0
- package/dist/kernel/session/operate-bind.js +52 -0
- package/dist/kernel/session/operate.js +211 -0
- package/dist/kernel/session/operating-service.js +431 -0
- package/dist/kernel/session/operating-transport.js +102 -0
- package/dist/kernel/session/operating-types.js +4 -0
- package/dist/kernel/session/operation-routes.js +569 -0
- package/dist/kernel/session/plan.js +473 -0
- package/dist/kernel/session/planning-context.js +92 -0
- package/dist/kernel/session/planning-limits.js +2 -0
- package/dist/kernel/session/proof.js +258 -0
- package/dist/kernel/session/reducer-cli.js +23 -0
- package/dist/kernel/session/research-observations.js +58 -0
- package/dist/kernel/session/research-proof-projection.js +62 -0
- package/dist/kernel/session/route-scoring.js +537 -0
- package/dist/kernel/session/route-utterance.js +321 -0
- package/dist/kernel/session/run.js +2042 -0
- package/dist/kernel/session/runtime-write-audit.js +47 -0
- package/dist/kernel/session/scope.js +75 -0
- package/dist/kernel/session/semantic-batch.js +535 -0
- package/dist/kernel/session/setup.js +126 -0
- package/dist/kernel/session/status.js +320 -0
- package/dist/kernel/session/stepper.js +188 -0
- package/dist/kernel/session/update.js +95 -0
- package/dist/kernel/session/verify.js +122 -0
- package/dist/kernel/session/worker-prompt.js +477 -0
- package/dist/kernel/session/workspace-revision.js +58 -0
- package/dist/kernel/session/workspaces.js +68 -0
- package/dist/kernel/work-orders/instantiate.js +51 -0
- package/dist/kernel/work-orders/lifecycle.js +156 -0
- package/dist/kernel/work-orders/outcomes.js +107 -0
- package/dist/kernel/work-orders/types.js +1 -0
- package/dist/tooling/browser-proof.js +1128 -0
- package/dist/tooling/calibrate-utterance-router.js +278 -0
- package/dist/tooling/catalog-scaffold.js +182 -0
- package/dist/tooling/export-task-skill.js +181 -0
- package/dist/tooling/grade-design-surface.js +341 -0
- package/dist/tooling/grade-screenshots.js +462 -0
- package/dist/tooling/knowledge.js +208 -0
- package/dist/tooling/lib/app-copy-rules.js +369 -0
- package/dist/tooling/lib/artifact-pages.js +136 -0
- package/dist/tooling/lib/audit-plan.js +382 -0
- package/dist/tooling/lib/canonical-json.js +26 -0
- package/dist/tooling/lib/cli-entrypoint.js +13 -0
- package/dist/tooling/lib/content-assets.js +246 -0
- package/dist/tooling/lib/design-exploration.js +165 -0
- package/dist/tooling/lib/design-md.js +381 -0
- package/dist/tooling/lib/design-state.js +278 -0
- package/dist/tooling/lib/design-taste-rubric.js +326 -0
- package/dist/tooling/lib/founder-copy.js +522 -0
- package/dist/tooling/lib/git-root.js +11 -0
- package/dist/tooling/lib/grading.js +43 -0
- package/dist/tooling/lib/html.js +31 -0
- package/dist/tooling/lib/knowledge-freshness-pin.js +69 -0
- package/dist/tooling/lib/launch-state.js +794 -0
- package/dist/tooling/lib/markdown-lite.js +294 -0
- package/dist/tooling/lib/no-slop-rules.js +243 -0
- package/dist/tooling/lib/packed-check.js +60 -0
- package/dist/tooling/lib/posthog-retention.js +96 -0
- package/dist/tooling/lib/render-artifact-page.js +312 -0
- package/dist/tooling/lib/runtime-sync-lib.js +122 -0
- package/dist/tooling/lib/script-paths.js +117 -0
- package/dist/tooling/lib/shard-pool.js +99 -0
- package/dist/tooling/lib/skill-root.js +31 -0
- package/dist/tooling/lib/source-freshness-state.js +31 -0
- package/dist/tooling/lib/source-http.js +166 -0
- package/dist/tooling/lib/spawn.js +30 -0
- package/dist/tooling/lib/tsx-bin.js +64 -0
- package/dist/tooling/lib/tsx-launcher.mjs +57 -0
- package/dist/tooling/print-hosted-version.js +46 -0
- package/dist/tooling/probe-eas.js +91 -0
- package/dist/tooling/probe-posthog.js +263 -0
- package/dist/tooling/probe-revenuecat-cli.js +399 -0
- package/dist/tooling/probe-revenuecat.js +234 -0
- package/dist/tooling/promote-design-tokens.js +215 -0
- package/dist/tooling/provision-posthog-platform.js +126 -0
- package/dist/tooling/prune-posthog-persons.js +270 -0
- package/dist/tooling/render-artifact-pages.js +70 -0
- package/dist/tooling/render-credits.js +269 -0
- package/dist/tooling/render-design-room.js +451 -0
- package/dist/tooling/render-hosted-bundle.js +186 -0
- package/dist/tooling/render-product.js +102 -0
- package/dist/tooling/render-public-api.js +95 -0
- package/dist/tooling/render-task-skills.js +71 -0
- package/dist/tooling/report-research-evidence-failures.js +135 -0
- package/dist/tooling/run-audit.js +332 -0
- package/dist/tooling/runtime-sync.js +392 -0
- package/dist/tooling/seed-design-brief.js +65 -0
- package/dist/tooling/test-public-api.js +37 -0
- package/entrypoints/cli/b2c.mjs +51 -0
- package/entrypoints/cli/business.ts +255 -0
- package/entrypoints/cli/contribute.ts +273 -0
- package/entrypoints/cli/help.d.mts +23 -0
- package/entrypoints/cli/help.mjs +262 -0
- package/entrypoints/mcp/b2c-app-builder-mcp.mjs +12 -0
- package/entrypoints/mcp/business.ts +22 -0
- package/entrypoints/mcp/contribute.ts +42 -0
- package/entrypoints/mcp/run-process.ts +59 -0
- package/entrypoints/mcp/server.ts +808 -0
- package/examples/extensions/layers-growth/LICENSE-layers-mcp.txt +21 -0
- package/examples/extensions/layers-growth/README.md +39 -0
- package/examples/extensions/layers-growth/draft-input.json +31 -0
- package/examples/extensions/layers-growth/evidence.json +17 -0
- package/examples/extensions/layers-growth/extension.yaml +200 -0
- package/examples/extensions/layers-growth/integration.md +122 -0
- package/examples/extensions/layers-growth/output.json +23 -0
- package/examples/extensions/layers-growth/pack.yaml +58 -0
- package/examples/extensions/layers-growth/read-input.json +11 -0
- package/examples/extensions/postiz-social/README.md +11 -0
- package/examples/extensions/postiz-social/extension.yaml +178 -0
- package/examples/extensions/postiz-social/integration.md +24 -0
- package/examples/extensions/postiz-social/schemas/post.evidence.json +13 -0
- package/examples/extensions/postiz-social/schemas/post.input.json +13 -0
- package/examples/extensions/postiz-social/schemas/post.output.json +11 -0
- package/examples/extensions/store-screenshot-compose/README.md +108 -0
- package/examples/extensions/store-screenshot-compose/compose.mjs +683 -0
- package/examples/extensions/store-screenshot-compose/compositor.md +51 -0
- package/examples/extensions/store-screenshot-compose/copy.sample.json +28 -0
- package/examples/extensions/store-screenshot-compose/extension.yaml +212 -0
- package/examples/extensions/store-screenshot-compose/pack.yaml +60 -0
- package/examples/extensions/store-screenshot-compose/schemas/compose-layout.input.json +17 -0
- package/examples/extensions/store-screenshot-compose/schemas/compose-layout.output.json +32 -0
- package/examples/extensions/store-screenshot-compose/schemas/export-localized.input.json +28 -0
- package/examples/extensions/store-screenshot-compose/schemas/export-localized.output.json +29 -0
- package/examples/extensions/store-screenshot-compose/schemas/provenance.evidence.json +80 -0
- package/examples/extensions/store-screenshot-compose/schemas/validate-deliverables.evidence.json +41 -0
- package/examples/extensions/store-screenshot-compose/schemas/validate-deliverables.input.json +12 -0
- package/examples/extensions/store-screenshot-compose/schemas/validate-deliverables.output.json +56 -0
- package/examples/extensions/store-screenshot-compose/templates/device-well.svg.tmpl +8 -0
- package/examples/extensions/store-screenshot-compose/wells.json +38 -0
- package/examples/extensions/superwall-ios/README.md +47 -0
- package/examples/extensions/superwall-ios/dependency-checksums.json +6 -0
- package/examples/extensions/superwall-ios/evidence.json +19 -0
- package/examples/extensions/superwall-ios/extension.yaml +174 -0
- package/examples/extensions/superwall-ios/input.json +15 -0
- package/examples/extensions/superwall-ios/integration.md +9 -0
- package/examples/extensions/superwall-ios/local-proof.json +44 -0
- package/examples/extensions/superwall-ios/native/Package.resolved +32 -0
- package/examples/extensions/superwall-ios/native/Package.swift +20 -0
- package/examples/extensions/superwall-ios/native/Sources/MonetizationCore/EntitlementState.swift +54 -0
- package/examples/extensions/superwall-ios/native/Sources/MonetizationNative/RevenueCatController.swift +129 -0
- package/examples/extensions/superwall-ios/native/Tests/MonetizationCoreTests/EntitlementStateTests.swift +46 -0
- package/examples/extensions/superwall-ios/output.json +16 -0
- package/examples/extensions/superwall-ios/pack.yaml +56 -0
- package/examples/extensions/support-case/README.md +7 -0
- package/examples/extensions/support-case/evidence.json +21 -0
- package/examples/extensions/support-case/extension.yaml +83 -0
- package/examples/extensions/support-case/input.json +16 -0
- package/examples/extensions/support-case/output.json +18 -0
- package/examples/extensions/support-case/pack.yaml +38 -0
- package/examples/extensions/support-case/support.md +3 -0
- package/examples/workspace/README.md +3 -0
- package/examples/workspace/business/DESIGN.md +338 -0
- package/examples/workspace/business/PRODUCT.md +91 -0
- package/examples/workspace/business/README.md +20 -0
- package/examples/workspace/business/analytics/ANALYTICS.md +186 -0
- package/examples/workspace/business/analytics/README.md +3 -0
- package/examples/workspace/business/analytics/analytics-plan.html +14 -0
- package/examples/workspace/business/analytics/posthog-proof.example.json +11 -0
- package/examples/workspace/business/design/README.md +12 -0
- package/examples/workspace/business/design/design-room.html +219 -0
- package/examples/workspace/business/design/motion-catalog/DemoBloom.swift +208 -0
- package/examples/workspace/business/design/motion-catalog/DemoCardReveal.swift +312 -0
- package/examples/workspace/business/design/motion-catalog/DemoExtrude.swift +255 -0
- package/examples/workspace/business/design/motion-catalog/DemoGesture.swift +315 -0
- package/examples/workspace/business/design/motion-catalog/DemoGrid.swift +215 -0
- package/examples/workspace/business/design/motion-catalog/DemoMascot.swift +535 -0
- package/examples/workspace/business/design/motion-catalog/DemoMeter.swift +335 -0
- package/examples/workspace/business/design/motion-catalog/DemoScratch.swift +357 -0
- package/examples/workspace/business/design/motion-catalog/DemoScrub.swift +267 -0
- package/examples/workspace/business/design/motion-catalog/DemoShiny.swift +325 -0
- package/examples/workspace/business/design/motion-catalog/DemoSphereCloud.swift +337 -0
- package/examples/workspace/business/design/motion-catalog/DemoTreasure.swift +484 -0
- package/examples/workspace/business/design/motion-catalog/MotionLabControls.swift +48 -0
- package/examples/workspace/business/design/motion-catalog/MotionLabIndex.swift +120 -0
- package/examples/workspace/business/design/motion-catalog/MotionLabTheme.swift +54 -0
- package/examples/workspace/business/design/motion-catalog/README.md +74 -0
- package/examples/workspace/business/design/motion-catalog/TokenSpring.swift +96 -0
- package/examples/workspace/business/design/motion-catalog/motion-tokens.ts +109 -0
- package/examples/workspace/business/design/system/DesignTokens.swift +57 -0
- package/examples/workspace/business/design/system/PremiumCraft.swift +352 -0
- package/examples/workspace/business/design/system/design-tokens.ts +84 -0
- package/examples/workspace/business/design/system/design_tokens.dart +14 -0
- package/examples/workspace/business/design/system/tokens.css +45 -0
- package/examples/workspace/business/design/system/tokens.json +313 -0
- package/examples/workspace/business/engineering/ACCESSIBILITY_READINESS.md +10 -0
- package/examples/workspace/business/engineering/APP_QUALITY.md +23 -0
- package/examples/workspace/business/engineering/ENGINEERING_PLAN.md +13 -0
- package/examples/workspace/business/engineering/PRODUCTION_READINESS.md +91 -0
- package/examples/workspace/business/engineering/README.md +3 -0
- package/examples/workspace/business/engineering/TECH_SPEC.md +57 -0
- package/examples/workspace/business/engineering/app-agent-roster/APP_AGENTS.md +88 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/accessibility-device-qa.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/backend-infrastructure-engineer.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/copy-specialist.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/customer-success.md +54 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/design-guru.md +56 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/engineering-leader.md +60 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/launch-surface-producer.md +118 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/marketing-guru.md +59 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/mobile-engineer.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/operator-readiness.md +61 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/orchestrator.md +56 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/product-leader.md +52 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/research-strategist.md +36 -0
- package/examples/workspace/business/engineering/app-agent-roster/agents/security-architect.md +63 -0
- package/examples/workspace/business/growth/DEMO_VIDEO.md +44 -0
- package/examples/workspace/business/growth/EMAIL_OPS.md +109 -0
- package/examples/workspace/business/growth/FASTLANE_OPS.md +5 -0
- package/examples/workspace/business/growth/LAUNCH_NARRATIVE.md +241 -0
- package/examples/workspace/business/growth/PAID_UA.md +142 -0
- package/examples/workspace/business/growth/README.md +3 -0
- package/examples/workspace/business/growth/UGC_PLAYBOOK.md +21 -0
- package/examples/workspace/business/growth/VIRAL_GROWTH.md +130 -0
- package/examples/workspace/business/growth/content-assets/CONTENT_ASSETS.md +127 -0
- package/examples/workspace/business/growth/content-assets/content-assets.html +97 -0
- package/examples/workspace/business/growth/content-assets/manifest.json +73 -0
- package/examples/workspace/business/growth/content-assets/remotion-README.md +26 -0
- package/examples/workspace/business/growth/content-intelligence.csv +1 -0
- package/examples/workspace/business/growth/format-lab.csv +2 -0
- package/examples/workspace/business/growth/landing/README.md +81 -0
- package/examples/workspace/business/growth/landing/lib/motion-tokens.ts +103 -0
- package/examples/workspace/business/growth/landing/lib/scene-progress.ts +286 -0
- package/examples/workspace/business/growth/landing/lib/scroll-scene-controller.ts +464 -0
- package/examples/workspace/business/growth/landing/motion.css +405 -0
- package/examples/workspace/business/growth/landing/scrollytelling.portable.example.html +156 -0
- package/examples/workspace/business/growth/landing/sections/Bento.tsx +51 -0
- package/examples/workspace/business/growth/landing/sections/Cta.tsx +48 -0
- package/examples/workspace/business/growth/landing/sections/Hero.tsx +62 -0
- package/examples/workspace/business/growth/landing/sections/Marquee.tsx +34 -0
- package/examples/workspace/business/growth/landing/sections/Pricing.tsx +73 -0
- package/examples/workspace/business/growth/landing/sections/Scrollytelling.tsx +193 -0
- package/examples/workspace/business/growth/landing/sections/Stats.tsx +74 -0
- package/examples/workspace/business/growth/landing/sections/Testimonials.tsx +61 -0
- package/examples/workspace/business/growth/landing/surface-contract.example.json +790 -0
- package/examples/workspace/business/growth/paid-ua-report.csv +2 -0
- package/examples/workspace/business/growth/resend/email-templates.ts +608 -0
- package/examples/workspace/business/operations/AGENT_OPERATIONS.md +56 -0
- package/examples/workspace/business/operations/BUSINESS_ACCESS.md +114 -0
- package/examples/workspace/business/operations/FAILURE_CARDS.md +21 -0
- package/examples/workspace/business/operations/LAUNCH_RETRO.md +53 -0
- package/examples/workspace/business/operations/METRIC_CONTRACTS.md +48 -0
- package/examples/workspace/business/operations/ORCHESTRATION.md +142 -0
- package/examples/workspace/business/operations/POST_LAUNCH_OPS.md +84 -0
- package/examples/workspace/business/operations/PROVIDER_PROOF.md +20 -0
- package/examples/workspace/business/operations/README.md +3 -0
- package/examples/workspace/business/operations/agent-operations.json +130 -0
- package/examples/workspace/business/operations/agent-operations.schema.json +274 -0
- package/examples/workspace/business/operations/business-access.json +418 -0
- package/examples/workspace/business/operations/business-access.schema.json +285 -0
- package/examples/workspace/business/operations/metric-contracts.json +346 -0
- package/examples/workspace/business/operations/metric-contracts.schema.json +255 -0
- package/examples/workspace/business/operations/orchestration.html +326 -0
- package/examples/workspace/business/product/ONBOARDING.md +306 -0
- package/examples/workspace/business/product/README.md +8 -0
- package/examples/workspace/business/product/copy/COPY_BRIEF.md +64 -0
- package/examples/workspace/business/product/copy/COPY_DECK.md +84 -0
- package/examples/workspace/business/product/experience/11-star-experience/11-star-experience.html +326 -0
- package/examples/workspace/business/product/experience/11-star-experience/11_STAR_EXPERIENCE.md +93 -0
- package/examples/workspace/business/product/experience/emotional-design/EMOTIONAL_AUDIT.md +608 -0
- package/examples/workspace/business/product/experience/emotional-design/EMOTIONAL_DESIGN.md +355 -0
- package/examples/workspace/business/product/experience/emotional-design/emotional-design.html +737 -0
- package/examples/workspace/business/product/experience/ux-patterns/UX_PATTERNS.md +144 -0
- package/examples/workspace/business/product/experience/ux-patterns/ux-patterns.html +102 -0
- package/examples/workspace/business/product/onboarding.html +58 -0
- package/examples/workspace/business/product.yaml +125 -0
- package/examples/workspace/business/revenue/README.md +3 -0
- package/examples/workspace/business/revenue/REVENUE_OPS.md +210 -0
- package/examples/workspace/business/revenue/revenuecat-proof.example.json +16 -0
- package/examples/workspace/business/revenue/revenuecat-proof.md +70 -0
- package/examples/workspace/business/state/LAUNCH_TRACE.md +29 -0
- package/examples/workspace/business/state/README.md +9 -0
- package/examples/workspace/business/state/business-state.json +520 -0
- package/examples/workspace/business/store/APPLE_APP_STORE_REQUIREMENTS.md +84 -0
- package/examples/workspace/business/store/APPLE_SIGNING.md +103 -0
- package/examples/workspace/business/store/APP_REVIEW.md +10 -0
- package/examples/workspace/business/store/GOOGLE_PLAY_RELEASE.md +71 -0
- package/examples/workspace/business/store/MARKETPLACE_COMPLIANCE.md +8 -0
- package/examples/workspace/business/store/README.md +3 -0
- package/examples/workspace/business/store/STORE_CONSOLE.md +62 -0
- package/examples/workspace/business/store/app-store-listing/APP_STORE_LISTING.md +160 -0
- package/examples/workspace/business/store/app-store-listing/SCREENSHOTS.md +246 -0
- package/examples/workspace/business/store/app-store-listing/SCREENSHOT_RUBRIC.md +202 -0
- package/examples/workspace/business/store/app-store-listing/app-privacy-questionnaire.html +156 -0
- package/examples/workspace/business/store/app-store-listing/app-store-listing.html +154 -0
- package/examples/workspace/business/store/app-store-listing/screenshot-rubric-scores.example.json +117 -0
- package/examples/workspace/business/store/store-console.html +271 -0
- package/examples/workspace/business/strategy/BRAND.md +48 -0
- package/examples/workspace/business/strategy/OFFER_TEST.md +43 -0
- package/examples/workspace/business/strategy/PORTFOLIO_REGISTRY.md +34 -0
- package/examples/workspace/business/strategy/README.md +3 -0
- package/examples/workspace/business/strategy/RESEARCH.md +87 -0
- package/examples/workspace/business/strategy/SIGNAL_CORPUS.md +34 -0
- package/examples/workspace/business/strategy/TOOL_DECISIONS.md +30 -0
- package/examples/workspace/business/strategy/localization-market-research/LOCALIZATION_MARKET_RESEARCH.md +93 -0
- package/examples/workspace/business/strategy/localization-market-research/localization-market-research.html +62 -0
- package/examples/workspace/business/studio/seed/business.json +57 -0
- package/examples/workspace/business/trust/AI_SAFETY.md +10 -0
- package/examples/workspace/business/trust/COMMUNITY_SAFETY.md +10 -0
- package/examples/workspace/business/trust/PRIVACY.md +31 -0
- package/examples/workspace/business/trust/README.md +3 -0
- package/examples/workspace/business/trust/SECURITY.md +145 -0
- package/examples/workspace/business/trust/TERMS.md +21 -0
- package/examples/workspace/business/trust/secrets/.env.example +2 -0
- package/examples/workspace/business/trust/secrets/SECRETS.md +77 -0
- package/examples/workspace/business/trust/secrets/doppler.yaml +3 -0
- package/examples/workspace/business/trust/security-review.html +373 -0
- package/examples/workspace/business/ugc/script-bank.md +9 -0
- package/kernel/autonomy/budget.ts +130 -0
- package/kernel/autonomy/evaluator.ts +136 -0
- package/kernel/autonomy/grants.ts +124 -0
- package/kernel/autonomy/killswitch.ts +27 -0
- package/kernel/autonomy/prerequisites.ts +94 -0
- package/kernel/autonomy/probes/budget.ts +55 -0
- package/kernel/autonomy/probes/doppler.ts +66 -0
- package/kernel/autonomy/standing-approvals.ts +336 -0
- package/kernel/autonomy/waivers.ts +129 -0
- package/kernel/composition/activation.ts +471 -0
- package/kernel/composition/compile-bindings.ts +297 -0
- package/kernel/composition/notices.ts +226 -0
- package/kernel/composition/onboarding-selection.ts +210 -0
- package/kernel/composition/providers.ts +43 -0
- package/kernel/composition/resolve.ts +252 -0
- package/kernel/composition/resources.ts +298 -0
- package/kernel/composition/semantic-plan-lower.ts +831 -0
- package/kernel/composition/worker-context.ts +63 -0
- package/kernel/context/budget.ts +16 -0
- package/kernel/context/compile.ts +66 -0
- package/kernel/context/receipt.ts +34 -0
- package/kernel/context/selectors.ts +30 -0
- package/kernel/contribution/accepted-upstreams.ts +83 -0
- package/kernel/contribution/adoption-map.ts +153 -0
- package/kernel/contribution/check.ts +197 -0
- package/kernel/contribution/evaluate.ts +275 -0
- package/kernel/contribution/existing-owners.ts +115 -0
- package/kernel/contribution/github-metadata.ts +241 -0
- package/kernel/contribution/host-observe.ts +146 -0
- package/kernel/contribution/intake.ts +611 -0
- package/kernel/contribution/manifest-io.ts +277 -0
- package/kernel/contribution/plan.ts +422 -0
- package/kernel/contribution/preview.ts +217 -0
- package/kernel/contribution/provider-capability-delta.ts +178 -0
- package/kernel/contribution/service.ts +291 -0
- package/kernel/contribution/types.ts +180 -0
- package/kernel/contribution/untrusted.ts +198 -0
- package/kernel/contribution/upstream-coverage.ts +116 -0
- package/kernel/contribution/upstreams-load.ts +184 -0
- package/kernel/contribution/upstreams.ts +1206 -0
- package/kernel/engine/artifact-fingerprint.ts +25 -0
- package/kernel/engine/compile.ts +419 -0
- package/kernel/engine/design-taste-authority.ts +264 -0
- package/kernel/engine/dispatch.ts +96 -0
- package/kernel/engine/founder-decision-receipt.ts +580 -0
- package/kernel/engine/founder-trust-store.ts +771 -0
- package/kernel/engine/frontier.ts +157 -0
- package/kernel/engine/node-brief.ts +285 -0
- package/kernel/engine/proof-rung.ts +95 -0
- package/kernel/engine/review-evidence.ts +343 -0
- package/kernel/engine/review-facet.ts +9 -0
- package/kernel/engine/runstate.ts +1113 -0
- package/kernel/engine/source-fingerprint.ts +100 -0
- package/kernel/engine/verification-policy.ts +6 -0
- package/kernel/engine/verification.ts +154 -0
- package/kernel/knowledge-service/journey.ts +50 -0
- package/kernel/knowledge-service/projection-helpers.ts +306 -0
- package/kernel/knowledge-service/sections.ts +68 -0
- package/kernel/knowledge-service/semantic-graph-views.ts +727 -0
- package/kernel/knowledge-service/service.ts +835 -0
- package/kernel/knowledge-service/tools.ts +118 -0
- package/kernel/knowledge-service/types.ts +236 -0
- package/kernel/lib/atomic-file.ts +34 -0
- package/kernel/lib/bounded-file.ts +24 -0
- package/kernel/lib/cli.ts +44 -0
- package/kernel/lib/empty-equivalent-evidence.ts +35 -0
- package/kernel/lib/later-guidance.ts +128 -0
- package/kernel/lib/required-table-section.ts +679 -0
- package/kernel/operating-model/agreements.ts +29 -0
- package/kernel/operating-model/authorize.ts +117 -0
- package/kernel/operating-model/erasure-metadata.ts +19 -0
- package/kernel/operating-model/events.ts +142 -0
- package/kernel/operating-model/mandates.ts +81 -0
- package/kernel/operating-model/market-experiment.ts +354 -0
- package/kernel/operating-model/measurement.ts +542 -0
- package/kernel/operating-model/parties.ts +23 -0
- package/kernel/operating-model/projections.ts +111 -0
- package/kernel/operating-model/types.ts +306 -0
- package/kernel/operating-model/validate.ts +388 -0
- package/kernel/reducer/audit.ts +146 -0
- package/kernel/reducer/cli.ts +552 -0
- package/kernel/reducer/current-truth.ts +432 -0
- package/kernel/reducer/erasure-guard.ts +17 -0
- package/kernel/reducer/erasure.ts +741 -0
- package/kernel/reducer/lock.ts +169 -0
- package/kernel/reducer/patch.ts +395 -0
- package/kernel/reducer/semantic-batch-ownership.ts +36 -0
- package/kernel/reducer/semantic-graph-ownership.ts +54 -0
- package/kernel/reducer/shared-claims.ts +133 -0
- package/kernel/routing/eligibility.ts +71 -0
- package/kernel/routing/rank.ts +21 -0
- package/kernel/routing/resolve.ts +97 -0
- package/kernel/routing/signals.ts +28 -0
- package/kernel/routing/types.ts +84 -0
- package/kernel/schema/app-review-webhook-envelope.schema.json +39 -0
- package/kernel/schema/app-review.schema.json +1504 -0
- package/kernel/schema/budget-ledger.schema.json +84 -0
- package/kernel/schema/business-state.schema.json +909 -0
- package/kernel/schema/checkpoint.schema.json +17 -0
- package/kernel/schema/control.schema.json +40 -0
- package/kernel/schema/current-truth.schema.json +56 -0
- package/kernel/schema/domain-authority.ts +22 -0
- package/kernel/schema/evidence-grammar.ts +132 -0
- package/kernel/schema/evidence-schema-version.json +5 -0
- package/kernel/schema/evidence-schema-version.ts +82 -0
- package/kernel/schema/grants.schema.json +102 -0
- package/kernel/schema/index.ts +518 -0
- package/kernel/schema/market-experiment.schema.json +212 -0
- package/kernel/schema/metric-contracts.schema.json +601 -0
- package/kernel/schema/offer-test.schema.json +88 -0
- package/kernel/schema/operation-envelope.schema.json +31 -0
- package/kernel/schema/research-evidence.schema.json +144 -0
- package/kernel/schema/run-state.schema.json +430 -0
- package/kernel/schema/signal-corpus.schema.json +94 -0
- package/kernel/schema/status.schema.json +25 -0
- package/kernel/schema/types.ts +701 -0
- package/kernel/schema/waivers.schema.json +97 -0
- package/kernel/services/business.ts +431 -0
- package/kernel/services/installed-composition.ts +146 -0
- package/kernel/services/lifecycle.ts +262 -0
- package/kernel/services/plan-projection.ts +230 -0
- package/kernel/services/research-decision.ts +234 -0
- package/kernel/services/research.ts +102 -0
- package/kernel/services/source-projection.ts +503 -0
- package/kernel/session/app-review-ingress.ts +254 -0
- package/kernel/session/approve.ts +411 -0
- package/kernel/session/attempt-failure.ts +113 -0
- package/kernel/session/bootstrap.ts +497 -0
- package/kernel/session/brief.ts +94 -0
- package/kernel/session/catalog-contract.ts +293 -0
- package/kernel/session/check.ts +206 -0
- package/kernel/session/deterministic-gates.ts +76 -0
- package/kernel/session/digest.ts +405 -0
- package/kernel/session/doctor-host.ts +219 -0
- package/kernel/session/doctor.ts +387 -0
- package/kernel/session/executor.ts +934 -0
- package/kernel/session/firstparty-worker-host.ts +30 -0
- package/kernel/session/founder-brief.ts +110 -0
- package/kernel/session/founder-gate.ts +188 -0
- package/kernel/session/founder-key.ts +119 -0
- package/kernel/session/initialization-guard.ts +17 -0
- package/kernel/session/initialize.ts +209 -0
- package/kernel/session/input-inventory.ts +217 -0
- package/kernel/session/inspect.ts +304 -0
- package/kernel/session/ios-proof-receipt.ts +273 -0
- package/kernel/session/market-experiment.ts +81 -0
- package/kernel/session/new.ts +202 -0
- package/kernel/session/onboard.ts +551 -0
- package/kernel/session/operate-bind.ts +58 -0
- package/kernel/session/operate.ts +239 -0
- package/kernel/session/operating-service.ts +452 -0
- package/kernel/session/operating-transport.ts +125 -0
- package/kernel/session/operating-types.ts +107 -0
- package/kernel/session/operation-routes.ts +673 -0
- package/kernel/session/plan.ts +667 -0
- package/kernel/session/planning-context.ts +96 -0
- package/kernel/session/planning-limits.ts +2 -0
- package/kernel/session/proof.ts +302 -0
- package/kernel/session/reducer-cli.ts +30 -0
- package/kernel/session/research-observations.ts +59 -0
- package/kernel/session/research-proof-projection.ts +76 -0
- package/kernel/session/route-scoring.ts +560 -0
- package/kernel/session/route-utterance.ts +486 -0
- package/kernel/session/run.ts +2214 -0
- package/kernel/session/runtime-write-audit.ts +44 -0
- package/kernel/session/scope.ts +85 -0
- package/kernel/session/semantic-batch.ts +834 -0
- package/kernel/session/setup.ts +142 -0
- package/kernel/session/status.ts +397 -0
- package/kernel/session/stepper.ts +258 -0
- package/kernel/session/update.ts +106 -0
- package/kernel/session/verify.ts +135 -0
- package/kernel/session/worker-prompt.ts +572 -0
- package/kernel/session/workspace-revision.ts +59 -0
- package/kernel/session/workspaces.ts +73 -0
- package/kernel/work-orders/instantiate.ts +68 -0
- package/kernel/work-orders/lifecycle.ts +178 -0
- package/kernel/work-orders/outcomes.ts +161 -0
- package/kernel/work-orders/types.ts +64 -0
- package/knowledge/README.md +81 -0
- package/knowledge/data/analytics-attribution.md +317 -0
- package/knowledge/data/posthog-agent-tooling.md +101 -0
- package/knowledge/design/audience-derived-identity.md +55 -0
- package/knowledge/design/consumer-craft-benchmarks.md +72 -0
- package/knowledge/design/design-acceptance.md +199 -0
- package/knowledge/design/design-evidence-stack.md +130 -0
- package/knowledge/design/design-room.md +83 -0
- package/knowledge/design/design-visual-system.md +247 -0
- package/knowledge/design/design-worthiness.md +188 -0
- package/knowledge/design/editorial-scrollytelling.md +239 -0
- package/knowledge/design/landing-motion-craft.md +67 -0
- package/knowledge/design/mobile-flow-craft.md +177 -0
- package/knowledge/design/motion-craft-benchmarks.md +340 -0
- package/knowledge/design/premium-mobile-craft.md +137 -0
- package/knowledge/design/quality-lens.md +100 -0
- package/knowledge/design/refero-ux-patterns.md +131 -0
- package/knowledge/design/remotion-content-assets.md +370 -0
- package/knowledge/design/surfaces-b2c.md +84 -0
- package/knowledge/design/vibecoded-tells.md +129 -0
- package/knowledge/engineering/accessibility-readiness.md +24 -0
- package/knowledge/engineering/app-agent-roster.md +120 -0
- package/knowledge/engineering/app-quality.md +19 -0
- package/knowledge/engineering/backend-data-contract.md +187 -0
- package/knowledge/engineering/engineering-orchestration.md +365 -0
- package/knowledge/engineering/expo-compatibility.md +74 -0
- package/knowledge/engineering/expo-operations-map.md +84 -0
- package/knowledge/engineering/expo-stack-selection.md +75 -0
- package/knowledge/engineering/external-skill-packs.md +47 -0
- package/knowledge/engineering/mobai-toolbelt.md +389 -0
- package/knowledge/engineering/recommended-agent-skills.md +109 -0
- package/knowledge/engineering/technical-documentation-ste100.md +89 -0
- package/knowledge/engineering/xcodebuildmcp-testing.md +502 -0
- package/knowledge/experience/commitment-funnel.md +90 -0
- package/knowledge/experience/consumer-product-design-agency.md +268 -0
- package/knowledge/experience/eleven-star-experience.md +194 -0
- package/knowledge/experience/emotional-design-system.md +412 -0
- package/knowledge/experience/emotional-experience-design.md +359 -0
- package/knowledge/experience/emotional-experience-measurement.md +433 -0
- package/knowledge/experience/ethics-guardrail.md +460 -0
- package/knowledge/experience/experience-cards/commitment-card.md +36 -0
- package/knowledge/experience/experience-cards/endowed-progress-card.md +34 -0
- package/knowledge/experience/experience-cards/fresh-start-card.md +34 -0
- package/knowledge/experience/experience-cards/identity-and-self-expression-card.md +35 -0
- package/knowledge/experience/experience-cards/intent-mirroring-card.md +36 -0
- package/knowledge/experience/experience-cards/mastery-and-status-card.md +43 -0
- package/knowledge/experience/experience-cards/peak-end-card.md +44 -0
- package/knowledge/experience/experience-cards/perceived-effort-delay-card.md +37 -0
- package/knowledge/experience/experience-cards/reciprocity-card.md +38 -0
- package/knowledge/experience/experience-cards/recovery-and-trust-repair-card.md +40 -0
- package/knowledge/experience/experience-cards/streak-and-loss-aversion-card.md +37 -0
- package/knowledge/experience/experience-cards/variable-reward-card.md +42 -0
- package/knowledge/experience/experience-cards.md +172 -0
- package/knowledge/experience/onboarding-conversion.md +422 -0
- package/knowledge/experience/onboarding-foundations.md +264 -0
- package/knowledge/experience/paywall-goal-headline.md +99 -0
- package/knowledge/experience/push-notification-lifecycle.md +79 -0
- package/knowledge/growth/appsflyer-mmp.md +99 -0
- package/knowledge/growth/cro-landing.md +86 -0
- package/knowledge/growth/fastlane-growth-ops.md +321 -0
- package/knowledge/growth/geo-seo.md +163 -0
- package/knowledge/growth/hdyhau-blended-roas.md +75 -0
- package/knowledge/growth/influencer-sponsorship-engine.md +224 -0
- package/knowledge/growth/ios-consumer-playbook-intake.md +65 -0
- package/knowledge/growth/launch-narrative-cadence.md +340 -0
- package/knowledge/growth/non-competitor-angle-discovery.md +80 -0
- package/knowledge/growth/paid-user-acquisition.md +283 -0
- package/knowledge/growth/ugc-creator-engine.md +259 -0
- package/knowledge/growth/viral-growth-loops.md +174 -0
- package/knowledge/money/billing-health-and-reactivation.md +54 -0
- package/knowledge/money/offer-and-pricing-decisions.md +33 -0
- package/knowledge/money/paywall-pricing-and-experiments.md +97 -0
- package/knowledge/money/revenue-monetization.md +107 -0
- package/knowledge/money/revenuecat-agent-tooling.md +174 -0
- package/knowledge/money/revenuecat-and-store-products.md +115 -0
- package/knowledge/money/stripe-and-web-billing.md +83 -0
- package/knowledge/money/subscription-price-derivation.md +105 -0
- package/knowledge/operations/autonomy-onboarding.md +269 -0
- package/knowledge/operations/doppler-organization.md +73 -0
- package/knowledge/operations/founder-zero-operator.md +184 -0
- package/knowledge/operations/frontier-agent-operations.md +189 -0
- package/knowledge/operations/paid-tool-routing.md +172 -0
- package/knowledge/operations/post-launch-operations.md +261 -0
- package/knowledge/operations/provider-state-recipes.md +80 -0
- package/knowledge/operations/resend-email-ops.md +339 -0
- package/knowledge/operations/secrets-management.md +215 -0
- package/knowledge/orchestration/compound-engineering-routing.md +101 -0
- package/knowledge/orchestration/dynamic-workflows.md +198 -0
- package/knowledge/orchestration/full-launch-program.md +179 -0
- package/knowledge/orchestration/isolated-review.md +144 -0
- package/knowledge/orchestration/parallel-agent-orchestration.md +335 -0
- package/knowledge/orchestration/project-state.md +96 -0
- package/knowledge/process/artifact-contracts.md +1527 -0
- package/knowledge/process/cascade-edges.yaml +217 -0
- package/knowledge/process/change-cascade.md +102 -0
- package/knowledge/process/current-truth.md +45 -0
- package/knowledge/process/failure-cards.md +114 -0
- package/knowledge/process/flow-traceability.md +189 -0
- package/knowledge/process/launch-coverage.md +298 -0
- package/knowledge/process/launch-phases.md +838 -0
- package/knowledge/process/learning-capture.md +77 -0
- package/knowledge/process/learnings/audit-runs-from-repo-root.md +22 -0
- package/knowledge/process/provider-contracts.md +49 -0
- package/knowledge/process/provider-proof.md +37 -0
- package/knowledge/process/repository-profiles.md +60 -0
- package/knowledge/process/tool-recipes/device-capture-and-proof.md +100 -0
- package/knowledge/process/tool-recipes/engineering-and-agent-orchestration.md +89 -0
- package/knowledge/process/tool-recipes/funnel-domain-and-privacy.md +142 -0
- package/knowledge/process/tool-recipes/growth-and-store-routing.md +192 -0
- package/knowledge/process/tool-recipes/research-intelligence.md +258 -0
- package/knowledge/process/tool-recipes/revenue-email-analytics.md +101 -0
- package/knowledge/process/tool-recipes/secrets-and-environment.md +35 -0
- package/knowledge/process/tool-recipes/visual-and-motion-production.md +457 -0
- package/knowledge/process/tool-recipes.md +67 -0
- package/knowledge/product/ai-chat-companion.md +96 -0
- package/knowledge/product/core-loop-and-complete-scope.md +82 -0
- package/knowledge/product/habit-tracker.md +89 -0
- package/knowledge/product/photo-ai-media.md +96 -0
- package/knowledge/product/product-moat.md +64 -0
- package/knowledge/product/social-network.md +117 -0
- package/knowledge/research/distribution-first-niche.md +70 -0
- package/knowledge/research/distribution-offer-signal.md +190 -0
- package/knowledge/research/go-pivot-or-kill.md +120 -0
- package/knowledge/research/localization-market-research.md +145 -0
- package/knowledge/research/transformation-demo.md +70 -0
- package/knowledge/store/age-rating-questionnaire.md +75 -0
- package/knowledge/store/app-review-observe.md +314 -0
- package/knowledge/store/app-review-remediate.md +125 -0
- package/knowledge/store/app-review-resubmit.md +128 -0
- package/knowledge/store/app-store-connect-cli.md +347 -0
- package/knowledge/store/app-store-listing-prep.md +277 -0
- package/knowledge/store/apple-signing-release.md +551 -0
- package/knowledge/store/aso-apple-keyword-evidence.md +112 -0
- package/knowledge/store/aso-store-ops.md +316 -0
- package/knowledge/store/google-play-release.md +200 -0
- package/knowledge/store/marketplace-regional-compliance.md +21 -0
- package/knowledge/store/screenshot-toolchain.md +130 -0
- package/knowledge/store/store-console-workflow.md +760 -0
- package/knowledge/trust/community-safety.md +18 -0
- package/knowledge/trust/generative-ai-safety.md +27 -0
- package/knowledge/trust/paid-generative-ai-controls.md +85 -0
- package/knowledge/trust/privacy-terms.md +192 -0
- package/knowledge/trust/security-release-hardening.md +169 -0
- package/knowledge/words/consumer-copy-benchmarks.md +111 -0
- package/knowledge/words/conversion-copy.md +181 -0
- package/knowledge/words/no-slop-writing.md +173 -0
- package/package.json +290 -0
- package/skill-version.json +149 -0
- package/surfaces/starters/ai-chat-companion/README.md +41 -0
- package/surfaces/starters/ai-chat-companion/prompts/00-positioning-strategy.md +45 -0
- package/surfaces/starters/ai-chat-companion/prompts/01-database-schema.md +44 -0
- package/surfaces/starters/ai-chat-companion/prompts/02-auth-system.md +38 -0
- package/surfaces/starters/ai-chat-companion/prompts/03-chat-core-loop.md +42 -0
- package/surfaces/starters/ai-chat-companion/prompts/04-model-integration.md +45 -0
- package/surfaces/starters/ai-chat-companion/prompts/05-memory-personalization.md +38 -0
- package/surfaces/starters/ai-chat-companion/prompts/06-usage-limits-metering.md +36 -0
- package/surfaces/starters/ai-chat-companion/prompts/07-stripe-monetization.md +34 -0
- package/surfaces/starters/ai-chat-companion/prompts/08-safety-and-moderation.md +39 -0
- package/surfaces/starters/ai-chat-companion/prompts/variants/companion-character.md +40 -0
- package/surfaces/starters/ai-chat-companion/prompts/variants/voice-first.md +37 -0
- package/surfaces/starters/ai-chat-companion/starter/.env.example +18 -0
- package/surfaces/starters/ai-chat-companion/starter/.github/workflows/ci.yml +30 -0
- package/surfaces/starters/ai-chat-companion/starter/.gitignore.template +9 -0
- package/surfaces/starters/ai-chat-companion/starter/README.md +48 -0
- package/surfaces/starters/ai-chat-companion/starter/app/api/chat/route.ts +70 -0
- package/surfaces/starters/ai-chat-companion/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/surfaces/starters/ai-chat-companion/starter/app/api/stripe/checkout/route.ts +28 -0
- package/surfaces/starters/ai-chat-companion/starter/app/api/stripe/webhook/route.ts +34 -0
- package/surfaces/starters/ai-chat-companion/starter/app/auth/confirm/route.ts +22 -0
- package/surfaces/starters/ai-chat-companion/starter/app/chat/page.tsx +78 -0
- package/surfaces/starters/ai-chat-companion/starter/app/layout.tsx +20 -0
- package/surfaces/starters/ai-chat-companion/starter/app/login/page.tsx +47 -0
- package/surfaces/starters/ai-chat-companion/starter/app/page.tsx +17 -0
- package/surfaces/starters/ai-chat-companion/starter/components/analytics-provider.tsx +14 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/analytics/events.ts +32 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/analytics/posthog-client.ts +28 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/billing/revenuecat.ts +27 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/billing/stripe.ts +15 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/strings.ts +32 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/supabase/client.ts +7 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/supabase/proxy.ts +29 -0
- package/surfaces/starters/ai-chat-companion/starter/lib/supabase/server.ts +23 -0
- package/surfaces/starters/ai-chat-companion/starter/next.config.ts +5 -0
- package/surfaces/starters/ai-chat-companion/starter/package-lock.json +1294 -0
- package/surfaces/starters/ai-chat-companion/starter/package.json +29 -0
- package/surfaces/starters/ai-chat-companion/starter/proxy.ts +12 -0
- package/surfaces/starters/ai-chat-companion/starter/supabase/migrations/0001_init.sql +78 -0
- package/surfaces/starters/ai-chat-companion/starter/supabase/tests/0001_rls.test.sql +75 -0
- package/surfaces/starters/ai-chat-companion/starter/tsconfig.json +41 -0
- package/surfaces/starters/habit-tracker/README.md +43 -0
- package/surfaces/starters/habit-tracker/prompts/00-positioning-strategy.md +47 -0
- package/surfaces/starters/habit-tracker/prompts/01-database-schema.md +54 -0
- package/surfaces/starters/habit-tracker/prompts/02-auth-system.md +42 -0
- package/surfaces/starters/habit-tracker/prompts/03-habit-core-loop.md +50 -0
- package/surfaces/starters/habit-tracker/prompts/04-reminders-and-streaks.md +58 -0
- package/surfaces/starters/habit-tracker/prompts/05-stats-and-insights.md +44 -0
- package/surfaces/starters/habit-tracker/prompts/06-paywall-and-monetization.md +50 -0
- package/surfaces/starters/habit-tracker/prompts/07-social-accountability.md +49 -0
- package/surfaces/starters/habit-tracker/prompts/variants/simple-counter-utility.md +43 -0
- package/surfaces/starters/habit-tracker/prompts/variants/wellness-coach.md +44 -0
- package/surfaces/starters/habit-tracker/starter/.env.example +14 -0
- package/surfaces/starters/habit-tracker/starter/.github/workflows/ci.yml +30 -0
- package/surfaces/starters/habit-tracker/starter/.gitignore.template +9 -0
- package/surfaces/starters/habit-tracker/starter/README.md +48 -0
- package/surfaces/starters/habit-tracker/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/surfaces/starters/habit-tracker/starter/app/api/stripe/checkout/route.ts +28 -0
- package/surfaces/starters/habit-tracker/starter/app/api/stripe/webhook/route.ts +34 -0
- package/surfaces/starters/habit-tracker/starter/app/auth/confirm/route.ts +22 -0
- package/surfaces/starters/habit-tracker/starter/app/layout.tsx +20 -0
- package/surfaces/starters/habit-tracker/starter/app/login/page.tsx +47 -0
- package/surfaces/starters/habit-tracker/starter/app/page.tsx +17 -0
- package/surfaces/starters/habit-tracker/starter/app/today/page.tsx +27 -0
- package/surfaces/starters/habit-tracker/starter/components/analytics-provider.tsx +14 -0
- package/surfaces/starters/habit-tracker/starter/lib/analytics/events.ts +29 -0
- package/surfaces/starters/habit-tracker/starter/lib/analytics/posthog-client.ts +28 -0
- package/surfaces/starters/habit-tracker/starter/lib/billing/revenuecat.ts +27 -0
- package/surfaces/starters/habit-tracker/starter/lib/billing/stripe.ts +15 -0
- package/surfaces/starters/habit-tracker/starter/lib/strings.ts +27 -0
- package/surfaces/starters/habit-tracker/starter/lib/supabase/client.ts +7 -0
- package/surfaces/starters/habit-tracker/starter/lib/supabase/proxy.ts +29 -0
- package/surfaces/starters/habit-tracker/starter/lib/supabase/server.ts +23 -0
- package/surfaces/starters/habit-tracker/starter/next.config.ts +5 -0
- package/surfaces/starters/habit-tracker/starter/package-lock.json +1222 -0
- package/surfaces/starters/habit-tracker/starter/package.json +28 -0
- package/surfaces/starters/habit-tracker/starter/proxy.ts +12 -0
- package/surfaces/starters/habit-tracker/starter/supabase/migrations/0001_init.sql +84 -0
- package/surfaces/starters/habit-tracker/starter/supabase/tests/0001_rls.test.sql +75 -0
- package/surfaces/starters/habit-tracker/starter/tsconfig.json +41 -0
- package/surfaces/starters/photo-ai-media/README.md +40 -0
- package/surfaces/starters/photo-ai-media/prompts/00-positioning-strategy.md +51 -0
- package/surfaces/starters/photo-ai-media/prompts/01-database-schema.md +55 -0
- package/surfaces/starters/photo-ai-media/prompts/02-auth-system.md +39 -0
- package/surfaces/starters/photo-ai-media/prompts/03-capture-and-library.md +42 -0
- package/surfaces/starters/photo-ai-media/prompts/04-ai-generation-pipeline.md +46 -0
- package/surfaces/starters/photo-ai-media/prompts/05-editing-and-presets.md +40 -0
- package/surfaces/starters/photo-ai-media/prompts/06-credits-and-monetization.md +47 -0
- package/surfaces/starters/photo-ai-media/prompts/07-sharing-and-virality.md +39 -0
- package/surfaces/starters/photo-ai-media/prompts/08-content-safety-and-rights.md +49 -0
- package/surfaces/starters/photo-ai-media/prompts/variants/avatar-headshot-studio.md +43 -0
- package/surfaces/starters/photo-ai-media/prompts/variants/photo-restoration.md +39 -0
- package/surfaces/starters/photo-ai-media/starter/.env.example +16 -0
- package/surfaces/starters/photo-ai-media/starter/.github/workflows/ci.yml +30 -0
- package/surfaces/starters/photo-ai-media/starter/.gitignore.template +9 -0
- package/surfaces/starters/photo-ai-media/starter/README.md +50 -0
- package/surfaces/starters/photo-ai-media/starter/app/api/generate/route.ts +47 -0
- package/surfaces/starters/photo-ai-media/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/surfaces/starters/photo-ai-media/starter/app/api/stripe/checkout/route.ts +28 -0
- package/surfaces/starters/photo-ai-media/starter/app/api/stripe/webhook/route.ts +34 -0
- package/surfaces/starters/photo-ai-media/starter/app/auth/confirm/route.ts +22 -0
- package/surfaces/starters/photo-ai-media/starter/app/layout.tsx +20 -0
- package/surfaces/starters/photo-ai-media/starter/app/library/page.tsx +29 -0
- package/surfaces/starters/photo-ai-media/starter/app/login/page.tsx +47 -0
- package/surfaces/starters/photo-ai-media/starter/app/page.tsx +17 -0
- package/surfaces/starters/photo-ai-media/starter/components/analytics-provider.tsx +14 -0
- package/surfaces/starters/photo-ai-media/starter/lib/analytics/events.ts +32 -0
- package/surfaces/starters/photo-ai-media/starter/lib/analytics/posthog-client.ts +28 -0
- package/surfaces/starters/photo-ai-media/starter/lib/billing/revenuecat.ts +27 -0
- package/surfaces/starters/photo-ai-media/starter/lib/billing/stripe.ts +15 -0
- package/surfaces/starters/photo-ai-media/starter/lib/strings.ts +27 -0
- package/surfaces/starters/photo-ai-media/starter/lib/supabase/client.ts +7 -0
- package/surfaces/starters/photo-ai-media/starter/lib/supabase/proxy.ts +29 -0
- package/surfaces/starters/photo-ai-media/starter/lib/supabase/server.ts +23 -0
- package/surfaces/starters/photo-ai-media/starter/next.config.ts +5 -0
- package/surfaces/starters/photo-ai-media/starter/package-lock.json +1222 -0
- package/surfaces/starters/photo-ai-media/starter/package.json +28 -0
- package/surfaces/starters/photo-ai-media/starter/proxy.ts +12 -0
- package/surfaces/starters/photo-ai-media/starter/supabase/migrations/0001_init.sql +74 -0
- package/surfaces/starters/photo-ai-media/starter/supabase/tests/0001_rls.test.sql +72 -0
- package/surfaces/starters/photo-ai-media/starter/tsconfig.json +41 -0
- package/surfaces/starters/social-network/README.md +41 -0
- package/surfaces/starters/social-network/prompts/00-niche-strategy.md +44 -0
- package/surfaces/starters/social-network/prompts/01-database-schema.md +37 -0
- package/surfaces/starters/social-network/prompts/02-auth-system.md +40 -0
- package/surfaces/starters/social-network/prompts/03-feed-and-posts.md +43 -0
- package/surfaces/starters/social-network/prompts/04-profiles-and-follow.md +41 -0
- package/surfaces/starters/social-network/prompts/05-search-and-discovery.md +36 -0
- package/surfaces/starters/social-network/prompts/06-direct-messages.md +32 -0
- package/surfaces/starters/social-network/prompts/07-stripe-monetization.md +41 -0
- package/surfaces/starters/social-network/prompts/08-invite-system.md +37 -0
- package/surfaces/starters/social-network/prompts/variants/image-first-instagram.md +34 -0
- package/surfaces/starters/social-network/prompts/variants/video-first-tiktok.md +40 -0
- package/surfaces/starters/social-network/starter/.env.example +14 -0
- package/surfaces/starters/social-network/starter/.github/workflows/ci.yml +30 -0
- package/surfaces/starters/social-network/starter/.gitignore.template +9 -0
- package/surfaces/starters/social-network/starter/README.md +47 -0
- package/surfaces/starters/social-network/starter/app/api/revenuecat/webhook/route.ts +21 -0
- package/surfaces/starters/social-network/starter/app/api/stripe/checkout/route.ts +28 -0
- package/surfaces/starters/social-network/starter/app/api/stripe/webhook/route.ts +34 -0
- package/surfaces/starters/social-network/starter/app/auth/confirm/route.ts +22 -0
- package/surfaces/starters/social-network/starter/app/feed/page.tsx +30 -0
- package/surfaces/starters/social-network/starter/app/layout.tsx +20 -0
- package/surfaces/starters/social-network/starter/app/login/page.tsx +47 -0
- package/surfaces/starters/social-network/starter/app/page.tsx +17 -0
- package/surfaces/starters/social-network/starter/components/analytics-provider.tsx +14 -0
- package/surfaces/starters/social-network/starter/lib/analytics/events.ts +31 -0
- package/surfaces/starters/social-network/starter/lib/analytics/posthog-client.ts +28 -0
- package/surfaces/starters/social-network/starter/lib/billing/revenuecat.ts +27 -0
- package/surfaces/starters/social-network/starter/lib/billing/stripe.ts +15 -0
- package/surfaces/starters/social-network/starter/lib/strings.ts +27 -0
- package/surfaces/starters/social-network/starter/lib/supabase/client.ts +7 -0
- package/surfaces/starters/social-network/starter/lib/supabase/proxy.ts +29 -0
- package/surfaces/starters/social-network/starter/lib/supabase/server.ts +23 -0
- package/surfaces/starters/social-network/starter/next.config.ts +5 -0
- package/surfaces/starters/social-network/starter/package-lock.json +1222 -0
- package/surfaces/starters/social-network/starter/package.json +28 -0
- package/surfaces/starters/social-network/starter/proxy.ts +12 -0
- package/surfaces/starters/social-network/starter/supabase/migrations/0001_init.sql +81 -0
- package/surfaces/starters/social-network/starter/supabase/tests/0001_rls.test.sql +70 -0
- package/surfaces/starters/social-network/starter/tsconfig.json +41 -0
- package/surfaces/studio/seed/schema/business.empty.json +45 -0
- package/surfaces/studio/seed/schema/business.schema.json +664 -0
- package/surfaces/ui-library/README.md +42 -0
- package/surfaces/ui-library/adapters/expo.json +57 -0
- package/surfaces/ui-library/adapters/swiftui.json +57 -0
- package/surfaces/ui-library/component-index.json +26 -0
- package/surfaces/ui-library/components/feedback.empty-state.md +22 -0
- package/surfaces/ui-library/components/feedback.haptics.md +21 -0
- package/surfaces/ui-library/components/feedback.skeleton.md +21 -0
- package/surfaces/ui-library/components/input.keyboard-behavior.md +22 -0
- package/surfaces/ui-library/components/interaction.press-feedback.md +22 -0
- package/surfaces/ui-library/schemas/adapter-manifest.schema.json +101 -0
- package/surfaces/ui-library/schemas/component-contract.schema.json +56 -0
- package/surfaces/ui-library/schemas/component-index.schema.json +34 -0
- package/surfaces/workspace-template/new-business/DESIGN.md +198 -0
- package/surfaces/workspace-template/new-business/PRODUCT.md +69 -0
- package/surfaces/workspace-template/new-business/operations/metric-contracts.json +34 -0
- package/surfaces/workspace-template/new-business/product.yaml +87 -0
- package/surfaces/workspace-template/new-business/strategy/OFFER_TEST.md +43 -0
- package/surfaces/workspace-template/new-business/strategy/RESEARCH.md +69 -0
- package/surfaces/workspace-template/new-business/strategy/SIGNAL_CORPUS.md +34 -0
- package/surfaces/workspace-template/repo-agent-entrypoints/.claude/settings.json +48 -0
- package/surfaces/workspace-template/repo-agent-entrypoints/.cursor/rules/agents.mdc +12 -0
- package/surfaces/workspace-template/repo-agent-entrypoints/AGENTS.md +102 -0
- package/surfaces/workspace-template/repo-agent-entrypoints/CLAUDE.md +14 -0
- package/tooling/README.md +3 -0
- package/tooling/browser-proof.ts +1254 -0
- package/tooling/calibrate-utterance-router.ts +374 -0
- package/tooling/catalog-scaffold.ts +181 -0
- package/tooling/ci-aggregate.mjs +105 -0
- package/tooling/ci-lane.mjs +275 -0
- package/tooling/copy-runtime-assets.mjs +18 -0
- package/tooling/export-task-skill.ts +181 -0
- package/tooling/grade-design-surface.ts +404 -0
- package/tooling/grade-screenshots.ts +586 -0
- package/tooling/knowledge.ts +219 -0
- package/tooling/lib/app-copy-rules.ts +428 -0
- package/tooling/lib/artifact-pages.ts +143 -0
- package/tooling/lib/audit-plan.ts +492 -0
- package/tooling/lib/canonical-json.ts +30 -0
- package/tooling/lib/cli-entrypoint.ts +12 -0
- package/tooling/lib/content-assets.ts +228 -0
- package/tooling/lib/design-exploration.ts +232 -0
- package/tooling/lib/design-md.ts +442 -0
- package/tooling/lib/design-state.ts +333 -0
- package/tooling/lib/design-taste-rubric.ts +375 -0
- package/tooling/lib/founder-copy.ts +548 -0
- package/tooling/lib/git-root.ts +12 -0
- package/tooling/lib/grading.ts +92 -0
- package/tooling/lib/html.ts +32 -0
- package/tooling/lib/knowledge-freshness-pin.ts +83 -0
- package/tooling/lib/launch-state.ts +965 -0
- package/tooling/lib/markdown-lite.ts +351 -0
- package/tooling/lib/no-slop-rules.ts +273 -0
- package/tooling/lib/packed-check.ts +69 -0
- package/tooling/lib/posthog-retention.ts +144 -0
- package/tooling/lib/render-artifact-page.ts +342 -0
- package/tooling/lib/runtime-sync-lib.ts +171 -0
- package/tooling/lib/script-paths.ts +131 -0
- package/tooling/lib/shard-pool.ts +121 -0
- package/tooling/lib/skill-root.ts +35 -0
- package/tooling/lib/source-freshness-state.ts +43 -0
- package/tooling/lib/source-http.ts +167 -0
- package/tooling/lib/spawn.ts +36 -0
- package/tooling/lib/tsx-bin.ts +65 -0
- package/tooling/lib/tsx-launcher.d.mts +4 -0
- package/tooling/lib/tsx-launcher.mjs +57 -0
- package/tooling/print-hosted-version.ts +49 -0
- package/tooling/probe-eas.ts +99 -0
- package/tooling/probe-posthog.ts +318 -0
- package/tooling/probe-revenuecat-cli.ts +426 -0
- package/tooling/probe-revenuecat.ts +282 -0
- package/tooling/promote-design-tokens.ts +244 -0
- package/tooling/provision-posthog-platform.ts +138 -0
- package/tooling/prune-posthog-persons.ts +295 -0
- package/tooling/render-artifact-pages.ts +93 -0
- package/tooling/render-credits.ts +301 -0
- package/tooling/render-design-room.ts +518 -0
- package/tooling/render-hosted-bundle.ts +201 -0
- package/tooling/render-product.ts +103 -0
- package/tooling/render-public-api.ts +91 -0
- package/tooling/render-task-skills.ts +69 -0
- package/tooling/report-research-evidence-failures.ts +144 -0
- package/tooling/run-audit.ts +386 -0
- package/tooling/runtime-sync.ts +404 -0
- package/tooling/seed-design-brief.ts +69 -0
- package/tooling/test-public-api.ts +39 -0
- package/tsconfig.json +32 -0
|
@@ -0,0 +1,1861 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { existsSync, lstatSync, readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { inflateSync } from "node:zlib";
|
|
5
|
+
import { parse as parseYaml } from "yaml";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import { outputFingerprintPath } from "../../../../kernel/engine/artifact-fingerprint.js";
|
|
8
|
+
import { boundedFileBytes } from "../../../../kernel/lib/bounded-file.js";
|
|
9
|
+
import { fingerprintAppSource } from "../../../../kernel/engine/source-fingerprint.js";
|
|
10
|
+
import { loadDesignSystem, parseFrontmatter, typographyDependencyPaths } from "../../../../tooling/lib/design-md.js";
|
|
11
|
+
import { contentAssetDependencyPaths, CONTENT_ASSETS_VERSION } from "../../../../tooling/lib/content-assets.js";
|
|
12
|
+
import { isRecord, issue, type Issue } from "../../../../tooling/lib/launch-state.js";
|
|
13
|
+
import { loadDesignSurfaceApplicability } from "../../../../catalog/ontology/design-surface-applicability.js";
|
|
14
|
+
import { surfaceRequiresMotionInteractionEvidence, validateFrozenPageTechniqueGates } from "./surface-page-gates.js";
|
|
15
|
+
|
|
16
|
+
/** Evidence integrity, not a beauty scorer or an approval authority. The existing
|
|
17
|
+
* design authority owns scope; existing frozen rubrics own judgment criteria. */
|
|
18
|
+
export const DESIGN_ACCEPTANCE_REPORT = "design/proofs/design-acceptance.json";
|
|
19
|
+
export const DESIGN_IMPLEMENTATION_REVIEW = "design/reviews/IMPLEMENTATION_REVIEW.md";
|
|
20
|
+
const IMPLEMENTATION_CRAFT_AUDIT_WORKFLOW = "workflow.design.implementation-craft-audit";
|
|
21
|
+
const IMPLEMENTATION_CRAFT_AUDIT_NODE = "run.design.implementation-craft-audit";
|
|
22
|
+
const IMPLEMENTATION_CRAFT_AUDIT_OUTPUTS = [
|
|
23
|
+
{ artifactId: "artifact.design-proofs-design-acceptance-json", path: DESIGN_ACCEPTANCE_REPORT },
|
|
24
|
+
{ artifactId: "artifact.design-reviews-implementation-review-md", path: DESIGN_IMPLEMENTATION_REVIEW },
|
|
25
|
+
] as const;
|
|
26
|
+
const NATIVE_EVIDENCE_WORKFLOW = "workflow.engineering.native-ios-proof-route-ladder";
|
|
27
|
+
const BROWSER_EVIDENCE_WORKFLOW = "workflow.growth.pre-launch-funnel-landing-waitlist";
|
|
28
|
+
export const DESIGN_FACETS = ["coherence", "originality", "craft", "functionality", "accessibility", "motion", "cross_surface_identity"] as const;
|
|
29
|
+
const nonempty = z.string().trim().min(1);
|
|
30
|
+
const observation = z.string().trim().min(24);
|
|
31
|
+
const digest = z.string().regex(/^[a-f0-9]{64}$/);
|
|
32
|
+
const sourceDigest = z.string().regex(/^sha256:[a-f0-9]{64}$/);
|
|
33
|
+
const timestamp = z.iso.datetime({ offset: true });
|
|
34
|
+
const artifact = z.strictObject({ path: nonempty, sha256: digest });
|
|
35
|
+
const browserUrl = z.url({ protocol: /^https?$/ });
|
|
36
|
+
const browserRoutePath = z
|
|
37
|
+
.string()
|
|
38
|
+
.trim()
|
|
39
|
+
.regex(/^\/(?:[^?#]*)$/, "must be an absolute URL path without a query or fragment");
|
|
40
|
+
const identity = z.strictObject({ id: nonempty, sessionId: nonempty });
|
|
41
|
+
const androidPackageName = z
|
|
42
|
+
.string()
|
|
43
|
+
.trim()
|
|
44
|
+
.regex(/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)+$/, "must be an Android application ID");
|
|
45
|
+
const androidVersionCode = z.number().int().positive().max(2_100_000_000);
|
|
46
|
+
const apkPath = z
|
|
47
|
+
.string()
|
|
48
|
+
.trim()
|
|
49
|
+
.min(1)
|
|
50
|
+
.regex(/\.apk$/i, "must name an APK");
|
|
51
|
+
const aabPath = z
|
|
52
|
+
.string()
|
|
53
|
+
.trim()
|
|
54
|
+
.min(1)
|
|
55
|
+
.regex(/\.aab$/i, "must name an AAB");
|
|
56
|
+
const uniqueStrings = z
|
|
57
|
+
.array(nonempty)
|
|
58
|
+
.min(1)
|
|
59
|
+
.refine((v) => new Set(v).size === v.length, "must not contain duplicate values");
|
|
60
|
+
const verdict = z.enum(["fails", "meets", "exceeds"]);
|
|
61
|
+
const dimensions = z.strictObject({ width: z.number().finite().int().positive(), height: z.number().finite().int().positive() });
|
|
62
|
+
const uniqueStringList = z.array(nonempty).refine((v) => new Set(v).size === v.length, "must not contain duplicate values");
|
|
63
|
+
const machineTool = z.strictObject({ name: nonempty, version: nonempty });
|
|
64
|
+
const receiptProducer = z.strictObject({
|
|
65
|
+
workflowId: z
|
|
66
|
+
.string()
|
|
67
|
+
.trim()
|
|
68
|
+
.regex(/^workflow\.[a-z0-9][a-z0-9.-]*$/),
|
|
69
|
+
attemptId: nonempty,
|
|
70
|
+
outputFingerprint: digest,
|
|
71
|
+
});
|
|
72
|
+
const evidenceReference = z.strictObject({ id: nonempty, receipt: artifact, producer: receiptProducer });
|
|
73
|
+
const nativeEvidenceDevice = z.strictObject({ id: nonempty, modelIdentifier: nonempty, osVersion: nonempty, osBuild: nonempty });
|
|
74
|
+
const browserIdentity = z.strictObject({ name: nonempty, version: nonempty });
|
|
75
|
+
|
|
76
|
+
const surfaceScope = z.strictObject({
|
|
77
|
+
id: nonempty,
|
|
78
|
+
surfaceId: nonempty,
|
|
79
|
+
kind: z.enum(["native", "landing", "web"]),
|
|
80
|
+
platform: nonempty,
|
|
81
|
+
viewport: z.enum(["native", "mobile", "desktop"]),
|
|
82
|
+
routePath: browserRoutePath.optional(),
|
|
83
|
+
productScreenIds: z.array(nonempty),
|
|
84
|
+
implementationPaths: uniqueStrings,
|
|
85
|
+
rubricPath: nonempty,
|
|
86
|
+
locales: uniqueStrings,
|
|
87
|
+
states: uniqueStrings,
|
|
88
|
+
stateExclusions: z.array(z.strictObject({ state: nonempty, reason: observation })),
|
|
89
|
+
interactions: z.array(z.strictObject({ id: nonempty, action: observation, expected: observation })).min(1),
|
|
90
|
+
});
|
|
91
|
+
export const designAcceptanceScopeSchema = z.strictObject({
|
|
92
|
+
schemaVersion: z.literal(1),
|
|
93
|
+
status: z.literal("accepted"),
|
|
94
|
+
designContractPaths: uniqueStringList,
|
|
95
|
+
surfaces: z.array(surfaceScope).min(1),
|
|
96
|
+
exclusions: z.array(z.strictObject({ surfaceId: nonempty, reason: observation })),
|
|
97
|
+
});
|
|
98
|
+
export type DesignAcceptanceScope = z.infer<typeof designAcceptanceScopeSchema>;
|
|
99
|
+
|
|
100
|
+
export const designSourceResolutionSchema = z.strictObject({
|
|
101
|
+
status: z.enum(["resolved", "retained_snapshot", "expired", "unavailable", "unverified"]),
|
|
102
|
+
observedAt: timestamp,
|
|
103
|
+
validUntil: timestamp.optional(),
|
|
104
|
+
provider: nonempty,
|
|
105
|
+
sourceId: nonempty,
|
|
106
|
+
substitutesFor: nonempty.optional(),
|
|
107
|
+
});
|
|
108
|
+
export type DesignSourceResolution = z.infer<typeof designSourceResolutionSchema>;
|
|
109
|
+
|
|
110
|
+
/** Evaluate already-observed candidates in their declared order. This never invokes a provider or grants fallback authority. */
|
|
111
|
+
export function selectDesignReference(
|
|
112
|
+
candidates: readonly { id: string; kind: "visual" | "interaction" | "documentation"; resolution: DesignSourceResolution }[],
|
|
113
|
+
requiredKind: "visual" | "interaction" | "documentation",
|
|
114
|
+
at = new Date().toISOString(),
|
|
115
|
+
) {
|
|
116
|
+
const attempts = candidates.map((candidate) => ({
|
|
117
|
+
id: candidate.id,
|
|
118
|
+
reason:
|
|
119
|
+
candidate.kind !== requiredKind
|
|
120
|
+
? "incompatible_evidence_kind"
|
|
121
|
+
: !["resolved", "retained_snapshot"].includes(candidate.resolution.status)
|
|
122
|
+
? candidate.resolution.status
|
|
123
|
+
: Date.parse(candidate.resolution.observedAt) > Date.parse(at)
|
|
124
|
+
? "future_observation"
|
|
125
|
+
: candidate.resolution.validUntil && Date.parse(candidate.resolution.validUntil) <= Date.parse(at)
|
|
126
|
+
? "expired"
|
|
127
|
+
: "available",
|
|
128
|
+
}));
|
|
129
|
+
return { selectedId: attempts.find((attempt) => attempt.reason === "available")?.id ?? null, attempts, authorityGranted: false as const };
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export const designRubricSchema = z.strictObject({
|
|
133
|
+
schemaVersion: z.literal(2),
|
|
134
|
+
id: nonempty,
|
|
135
|
+
frozenAt: timestamp,
|
|
136
|
+
references: z
|
|
137
|
+
.array(
|
|
138
|
+
z.strictObject({
|
|
139
|
+
id: nonempty,
|
|
140
|
+
resolution: designSourceResolutionSchema,
|
|
141
|
+
url: z.url({ protocol: /^https$/ }),
|
|
142
|
+
artifact,
|
|
143
|
+
kind: z.enum(["visual", "interaction", "documentation"]),
|
|
144
|
+
observation,
|
|
145
|
+
}),
|
|
146
|
+
)
|
|
147
|
+
.min(2),
|
|
148
|
+
criteria: z
|
|
149
|
+
.array(
|
|
150
|
+
z.strictObject({
|
|
151
|
+
id: nonempty,
|
|
152
|
+
facet: z.enum(DESIGN_FACETS),
|
|
153
|
+
condition: observation,
|
|
154
|
+
minimum: z.enum(["meets", "exceeds"]),
|
|
155
|
+
referenceIds: uniqueStrings,
|
|
156
|
+
}),
|
|
157
|
+
)
|
|
158
|
+
.min(DESIGN_FACETS.length),
|
|
159
|
+
});
|
|
160
|
+
export type DesignRubric = z.infer<typeof designRubricSchema>;
|
|
161
|
+
|
|
162
|
+
const captureReceiptCommon = {
|
|
163
|
+
schemaVersion: z.literal(1),
|
|
164
|
+
kind: z.literal("design-capture"),
|
|
165
|
+
surfaceId: nonempty,
|
|
166
|
+
evidenceId: nonempty,
|
|
167
|
+
state: nonempty,
|
|
168
|
+
locale: nonempty,
|
|
169
|
+
artifact,
|
|
170
|
+
capturedAt: timestamp,
|
|
171
|
+
candidateSha256: digest,
|
|
172
|
+
tool: machineTool,
|
|
173
|
+
sessionId: nonempty,
|
|
174
|
+
dimensions,
|
|
175
|
+
viewport: dimensions,
|
|
176
|
+
scale: z.number().finite().positive().max(4),
|
|
177
|
+
settings: z.strictObject({ reducedMotion: z.boolean(), screenReader: z.boolean(), largeText: z.boolean(), javascript: z.boolean() }),
|
|
178
|
+
};
|
|
179
|
+
export const designCaptureReceiptSchema = z.discriminatedUnion("source", [
|
|
180
|
+
z.strictObject({
|
|
181
|
+
...captureReceiptCommon,
|
|
182
|
+
source: z.literal("native-runtime"),
|
|
183
|
+
runtimeId: nonempty,
|
|
184
|
+
platform: z.enum(["ios", "android"]),
|
|
185
|
+
device: nativeEvidenceDevice,
|
|
186
|
+
}),
|
|
187
|
+
z.strictObject({
|
|
188
|
+
...captureReceiptCommon,
|
|
189
|
+
source: z.literal("browser-runtime"),
|
|
190
|
+
runtimeId: nonempty,
|
|
191
|
+
platform: z.literal("web"),
|
|
192
|
+
browser: browserIdentity,
|
|
193
|
+
browserContextId: nonempty,
|
|
194
|
+
os: nonempty,
|
|
195
|
+
}),
|
|
196
|
+
]);
|
|
197
|
+
export type DesignCaptureReceipt = z.infer<typeof designCaptureReceiptSchema>;
|
|
198
|
+
|
|
199
|
+
const interactionReceiptCommon = {
|
|
200
|
+
schemaVersion: z.literal(1),
|
|
201
|
+
kind: z.literal("design-interaction"),
|
|
202
|
+
surfaceId: nonempty,
|
|
203
|
+
evidenceId: nonempty,
|
|
204
|
+
interactionId: nonempty,
|
|
205
|
+
locale: nonempty,
|
|
206
|
+
executedAt: timestamp,
|
|
207
|
+
candidateSha256: digest,
|
|
208
|
+
artifact,
|
|
209
|
+
tool: machineTool,
|
|
210
|
+
sessionId: nonempty,
|
|
211
|
+
captureIds: uniqueStrings,
|
|
212
|
+
result: z.literal("pass"),
|
|
213
|
+
observation,
|
|
214
|
+
};
|
|
215
|
+
export const designInteractionReceiptSchema = z.discriminatedUnion("source", [
|
|
216
|
+
z.strictObject({
|
|
217
|
+
...interactionReceiptCommon,
|
|
218
|
+
source: z.literal("native-runtime"),
|
|
219
|
+
runtimeId: nonempty,
|
|
220
|
+
platform: z.enum(["ios", "android"]),
|
|
221
|
+
device: nativeEvidenceDevice,
|
|
222
|
+
}),
|
|
223
|
+
z.strictObject({
|
|
224
|
+
...interactionReceiptCommon,
|
|
225
|
+
source: z.literal("browser-runtime"),
|
|
226
|
+
runtimeId: nonempty,
|
|
227
|
+
platform: z.literal("web"),
|
|
228
|
+
browser: browserIdentity,
|
|
229
|
+
browserContextId: nonempty,
|
|
230
|
+
os: nonempty,
|
|
231
|
+
}),
|
|
232
|
+
]);
|
|
233
|
+
export type DesignInteractionReceipt = z.infer<typeof designInteractionReceiptSchema>;
|
|
234
|
+
|
|
235
|
+
const installedSimulatorBuildSchema = z.strictObject({
|
|
236
|
+
deviceId: nonempty,
|
|
237
|
+
bundleId: nonempty,
|
|
238
|
+
buildNumber: nonempty,
|
|
239
|
+
scheme: nonempty,
|
|
240
|
+
projectPath: nonempty,
|
|
241
|
+
derivedDataPath: nonempty,
|
|
242
|
+
appPath: nonempty,
|
|
243
|
+
appFingerprint: digest,
|
|
244
|
+
bundleContentSha256: digest,
|
|
245
|
+
installedAppPath: nonempty,
|
|
246
|
+
executable: z.strictObject({ path: nonempty, sha256: digest }),
|
|
247
|
+
source: z.strictObject({ root: nonempty, roots: uniqueStrings, fingerprint: sourceDigest }),
|
|
248
|
+
});
|
|
249
|
+
const nativeSourceIdentitySchema = z.strictObject({ root: nonempty, roots: uniqueStrings, fingerprint: sourceDigest });
|
|
250
|
+
export const designSimulatorDeviceProofReceiptSchema = z.strictObject({
|
|
251
|
+
rung: z.literal("rung-2-xcodebuild"),
|
|
252
|
+
platform: z.literal("ios"),
|
|
253
|
+
target: z.literal("ios-simulator"),
|
|
254
|
+
reasonForRung: nonempty,
|
|
255
|
+
flow: nonempty,
|
|
256
|
+
verificationScope: z.literal("adapter-actions-only"),
|
|
257
|
+
steps: z
|
|
258
|
+
.array(
|
|
259
|
+
z.strictObject({
|
|
260
|
+
name: nonempty,
|
|
261
|
+
ok: z.boolean(),
|
|
262
|
+
screenshotPath: nonempty.optional(),
|
|
263
|
+
transcriptPath: nonempty.optional(),
|
|
264
|
+
error: nonempty.optional(),
|
|
265
|
+
installedBuild: installedSimulatorBuildSchema.optional(),
|
|
266
|
+
}),
|
|
267
|
+
)
|
|
268
|
+
.min(1),
|
|
269
|
+
verdict: z.literal("passed"),
|
|
270
|
+
failingStep: nonempty.optional(),
|
|
271
|
+
strictReceiptPath: nonempty.optional(),
|
|
272
|
+
startedAt: timestamp,
|
|
273
|
+
finishedAt: timestamp,
|
|
274
|
+
});
|
|
275
|
+
/** Compatibility export for the Route Ladder receipt consumed by existing callers. */
|
|
276
|
+
export const designDeviceProofReceiptSchema = designSimulatorDeviceProofReceiptSchema;
|
|
277
|
+
export const designPhysicalDeviceProofReceiptSchema = z.strictObject({
|
|
278
|
+
schemaVersion: z.literal(1),
|
|
279
|
+
kind: z.literal("physical-ios-install"),
|
|
280
|
+
platform: z.literal("ios"),
|
|
281
|
+
flow: nonempty,
|
|
282
|
+
candidateSha256: digest,
|
|
283
|
+
tool: z.strictObject({ name: nonempty, version: nonempty }),
|
|
284
|
+
sessionId: nonempty,
|
|
285
|
+
device: z.strictObject({
|
|
286
|
+
id: nonempty,
|
|
287
|
+
physical: z.literal(true),
|
|
288
|
+
deviceClass: z.literal("iphone"),
|
|
289
|
+
modelIdentifier: nonempty,
|
|
290
|
+
osVersion: nonempty,
|
|
291
|
+
osBuild: nonempty,
|
|
292
|
+
}),
|
|
293
|
+
builtApp: z.strictObject({
|
|
294
|
+
appPath: nonempty,
|
|
295
|
+
bundleId: nonempty,
|
|
296
|
+
buildNumber: nonempty,
|
|
297
|
+
executable: z.strictObject({ path: nonempty, sha256: digest }),
|
|
298
|
+
bundleContentSha256: digest,
|
|
299
|
+
source: nativeSourceIdentitySchema,
|
|
300
|
+
}),
|
|
301
|
+
install: z.strictObject({
|
|
302
|
+
appPath: nonempty,
|
|
303
|
+
bundleId: nonempty,
|
|
304
|
+
buildNumber: nonempty,
|
|
305
|
+
executableSha256: digest,
|
|
306
|
+
bundleContentSha256: digest,
|
|
307
|
+
installedAt: timestamp,
|
|
308
|
+
}),
|
|
309
|
+
installedAppReadback: z.strictObject({ bundleId: nonempty, buildNumber: nonempty, readAt: timestamp }),
|
|
310
|
+
launch: z.strictObject({ bundleId: nonempty, launchedAt: timestamp }),
|
|
311
|
+
evidence: z.strictObject({
|
|
312
|
+
buildLog: artifact,
|
|
313
|
+
installLog: artifact,
|
|
314
|
+
deviceReadback: artifact,
|
|
315
|
+
launchLog: artifact,
|
|
316
|
+
}),
|
|
317
|
+
verdict: z.literal("passed"),
|
|
318
|
+
startedAt: timestamp,
|
|
319
|
+
finishedAt: timestamp,
|
|
320
|
+
});
|
|
321
|
+
const androidPackageArtifactSchema = z.discriminatedUnion("format", [
|
|
322
|
+
z.strictObject({ format: z.literal("apk"), path: apkPath, sha256: digest }),
|
|
323
|
+
z.strictObject({
|
|
324
|
+
format: z.literal("aab"),
|
|
325
|
+
path: aabPath,
|
|
326
|
+
sha256: digest,
|
|
327
|
+
installApk: z.strictObject({ path: apkPath, sha256: digest }),
|
|
328
|
+
conversionEvidence: artifact,
|
|
329
|
+
}),
|
|
330
|
+
]);
|
|
331
|
+
const androidReceiptCommon = {
|
|
332
|
+
schemaVersion: z.literal(1),
|
|
333
|
+
platform: z.literal("android"),
|
|
334
|
+
flow: nonempty,
|
|
335
|
+
candidateSha256: digest,
|
|
336
|
+
tool: z.strictObject({ name: nonempty, version: nonempty }),
|
|
337
|
+
sessionId: nonempty,
|
|
338
|
+
builtPackage: z.strictObject({
|
|
339
|
+
packageName: androidPackageName,
|
|
340
|
+
versionCode: androidVersionCode,
|
|
341
|
+
artifact: androidPackageArtifactSchema,
|
|
342
|
+
source: nativeSourceIdentitySchema,
|
|
343
|
+
}),
|
|
344
|
+
install: z.strictObject({
|
|
345
|
+
deviceId: nonempty,
|
|
346
|
+
apkPath,
|
|
347
|
+
apkSha256: digest,
|
|
348
|
+
packageName: androidPackageName,
|
|
349
|
+
versionCode: androidVersionCode,
|
|
350
|
+
installedAt: timestamp,
|
|
351
|
+
}),
|
|
352
|
+
installedAppReadback: z.strictObject({
|
|
353
|
+
deviceId: nonempty,
|
|
354
|
+
packageName: androidPackageName,
|
|
355
|
+
versionCode: androidVersionCode,
|
|
356
|
+
readAt: timestamp,
|
|
357
|
+
}),
|
|
358
|
+
launch: z.strictObject({ deviceId: nonempty, packageName: androidPackageName, activity: nonempty, launchedAt: timestamp }),
|
|
359
|
+
evidence: z.strictObject({
|
|
360
|
+
buildLog: artifact,
|
|
361
|
+
installLog: artifact,
|
|
362
|
+
deviceReadback: artifact,
|
|
363
|
+
launchLog: artifact,
|
|
364
|
+
}),
|
|
365
|
+
verdict: z.literal("passed"),
|
|
366
|
+
startedAt: timestamp,
|
|
367
|
+
finishedAt: timestamp,
|
|
368
|
+
};
|
|
369
|
+
const androidDeviceIdentity = {
|
|
370
|
+
id: nonempty,
|
|
371
|
+
modelIdentifier: nonempty,
|
|
372
|
+
apiLevel: z.number().int().positive(),
|
|
373
|
+
osVersion: nonempty,
|
|
374
|
+
osBuild: nonempty,
|
|
375
|
+
};
|
|
376
|
+
export const designAndroidEmulatorProofReceiptSchema = z.strictObject({
|
|
377
|
+
...androidReceiptCommon,
|
|
378
|
+
kind: z.literal("android-emulator-install"),
|
|
379
|
+
target: z.literal("emulator"),
|
|
380
|
+
device: z.strictObject({
|
|
381
|
+
...androidDeviceIdentity,
|
|
382
|
+
physical: z.literal(false),
|
|
383
|
+
deviceClass: z.literal("android-emulator"),
|
|
384
|
+
}),
|
|
385
|
+
});
|
|
386
|
+
export const designAndroidPhysicalDeviceProofReceiptSchema = z.strictObject({
|
|
387
|
+
...androidReceiptCommon,
|
|
388
|
+
kind: z.literal("physical-android-install"),
|
|
389
|
+
target: z.literal("physical-device"),
|
|
390
|
+
device: z.strictObject({
|
|
391
|
+
...androidDeviceIdentity,
|
|
392
|
+
physical: z.literal(true),
|
|
393
|
+
deviceClass: z.literal("android-device"),
|
|
394
|
+
}),
|
|
395
|
+
});
|
|
396
|
+
const nativeRuntimeIdentity = {
|
|
397
|
+
id: nonempty,
|
|
398
|
+
platform: z.literal("ios"),
|
|
399
|
+
candidateSha256: digest,
|
|
400
|
+
bundleId: nonempty,
|
|
401
|
+
buildNumber: nonempty,
|
|
402
|
+
executableSha256: digest,
|
|
403
|
+
bundleContentSha256: digest,
|
|
404
|
+
sourceFingerprint: sourceDigest,
|
|
405
|
+
deviceId: nonempty,
|
|
406
|
+
receipt: artifact,
|
|
407
|
+
};
|
|
408
|
+
const designSimulatorNativeRuntimeSchema = z.strictObject({
|
|
409
|
+
...nativeRuntimeIdentity,
|
|
410
|
+
target: z.literal("simulator"),
|
|
411
|
+
});
|
|
412
|
+
const designPhysicalNativeRuntimeSchema = z.strictObject({
|
|
413
|
+
...nativeRuntimeIdentity,
|
|
414
|
+
target: z.literal("physical-device"),
|
|
415
|
+
deviceModelIdentifier: nonempty,
|
|
416
|
+
osVersion: nonempty,
|
|
417
|
+
osBuild: nonempty,
|
|
418
|
+
});
|
|
419
|
+
const androidNativeRuntimeIdentity = {
|
|
420
|
+
id: nonempty,
|
|
421
|
+
platform: z.literal("android"),
|
|
422
|
+
candidateSha256: digest,
|
|
423
|
+
packageName: androidPackageName,
|
|
424
|
+
versionCode: androidVersionCode,
|
|
425
|
+
packageArtifact: z.strictObject({ format: z.enum(["apk", "aab"]), sha256: digest }),
|
|
426
|
+
installApkSha256: digest,
|
|
427
|
+
sourceFingerprint: sourceDigest,
|
|
428
|
+
deviceId: nonempty,
|
|
429
|
+
deviceModelIdentifier: nonempty,
|
|
430
|
+
apiLevel: z.number().int().positive(),
|
|
431
|
+
osVersion: nonempty,
|
|
432
|
+
osBuild: nonempty,
|
|
433
|
+
receipt: artifact,
|
|
434
|
+
};
|
|
435
|
+
const designAndroidEmulatorNativeRuntimeSchema = z.strictObject({
|
|
436
|
+
...androidNativeRuntimeIdentity,
|
|
437
|
+
target: z.literal("emulator"),
|
|
438
|
+
});
|
|
439
|
+
const designAndroidPhysicalNativeRuntimeSchema = z.strictObject({
|
|
440
|
+
...androidNativeRuntimeIdentity,
|
|
441
|
+
target: z.literal("physical-device"),
|
|
442
|
+
});
|
|
443
|
+
export const designNativeRuntimeSchema = z.union([
|
|
444
|
+
designSimulatorNativeRuntimeSchema,
|
|
445
|
+
designPhysicalNativeRuntimeSchema,
|
|
446
|
+
designAndroidEmulatorNativeRuntimeSchema,
|
|
447
|
+
designAndroidPhysicalNativeRuntimeSchema,
|
|
448
|
+
]);
|
|
449
|
+
export type DesignNativeRuntime = z.infer<typeof designNativeRuntimeSchema>;
|
|
450
|
+
|
|
451
|
+
export const designBrowserBuildManifestSchema = z.strictObject({
|
|
452
|
+
schemaVersion: z.literal(1),
|
|
453
|
+
sourceFingerprint: sourceDigest,
|
|
454
|
+
entrypoint: artifact,
|
|
455
|
+
files: z.array(artifact).min(1),
|
|
456
|
+
});
|
|
457
|
+
export type DesignBrowserBuildManifest = z.infer<typeof designBrowserBuildManifestSchema>;
|
|
458
|
+
|
|
459
|
+
export function designBrowserBuildFingerprint(manifest: DesignBrowserBuildManifest): string {
|
|
460
|
+
return createHash("sha256")
|
|
461
|
+
.update(
|
|
462
|
+
JSON.stringify({
|
|
463
|
+
schemaVersion: manifest.schemaVersion,
|
|
464
|
+
sourceFingerprint: manifest.sourceFingerprint,
|
|
465
|
+
entrypoint: manifest.entrypoint,
|
|
466
|
+
files: [...manifest.files].sort((left, right) => left.path.localeCompare(right.path)),
|
|
467
|
+
}),
|
|
468
|
+
)
|
|
469
|
+
.digest("hex");
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export const designBrowserResourceManifestSchema = z.strictObject({
|
|
473
|
+
schemaVersion: z.literal(1),
|
|
474
|
+
origin: browserUrl,
|
|
475
|
+
documentUrl: browserUrl,
|
|
476
|
+
browserContextId: nonempty,
|
|
477
|
+
resources: z.array(z.strictObject({ url: browserUrl, buildPath: nonempty, response: artifact })).min(1),
|
|
478
|
+
});
|
|
479
|
+
export type DesignBrowserResourceManifest = z.infer<typeof designBrowserResourceManifestSchema>;
|
|
480
|
+
|
|
481
|
+
/** Authored input to `b2c browser-proof`. The producer recomputes every digest and
|
|
482
|
+
* refuses a config that no longer names the current accepted DESIGN.md candidate.
|
|
483
|
+
* `urlPath` is explicit so a response cannot be reassigned to a different build file. */
|
|
484
|
+
export const designBrowserProofConfigSchema = z
|
|
485
|
+
.strictObject({
|
|
486
|
+
schemaVersion: z.literal(1),
|
|
487
|
+
runtimeId: nonempty.regex(/^[a-z0-9][a-z0-9._-]*$/i, "must be a filename-safe runtime id"),
|
|
488
|
+
candidateSha256: digest,
|
|
489
|
+
surfaceIds: uniqueStrings,
|
|
490
|
+
sourceRoots: uniqueStrings,
|
|
491
|
+
build: z.strictObject({
|
|
492
|
+
entrypoint: nonempty,
|
|
493
|
+
resources: z
|
|
494
|
+
.array(
|
|
495
|
+
z.strictObject({
|
|
496
|
+
path: nonempty,
|
|
497
|
+
urlPath: browserRoutePath,
|
|
498
|
+
}),
|
|
499
|
+
)
|
|
500
|
+
.min(1),
|
|
501
|
+
}),
|
|
502
|
+
served: z.strictObject({ origin: browserUrl, url: browserUrl }),
|
|
503
|
+
browser: z.strictObject({ channel: z.literal("chrome") }),
|
|
504
|
+
})
|
|
505
|
+
.superRefine((value, context) => {
|
|
506
|
+
const paths = value.build.resources.map((resource) => resource.path);
|
|
507
|
+
const urlPaths = value.build.resources.map((resource) => resource.urlPath);
|
|
508
|
+
if (new Set(paths).size !== paths.length)
|
|
509
|
+
context.addIssue({ code: "custom", path: ["build", "resources"], message: "build resource paths must be unique" });
|
|
510
|
+
if (new Set(urlPaths).size !== urlPaths.length)
|
|
511
|
+
context.addIssue({ code: "custom", path: ["build", "resources"], message: "build resource URL paths must be unique" });
|
|
512
|
+
if (!paths.includes(value.build.entrypoint))
|
|
513
|
+
context.addIssue({ code: "custom", path: ["build", "entrypoint"], message: "entrypoint must be one of the build resource paths" });
|
|
514
|
+
});
|
|
515
|
+
export type DesignBrowserProofConfig = z.infer<typeof designBrowserProofConfigSchema>;
|
|
516
|
+
|
|
517
|
+
export const designBrowserRuntimeProofReceiptSchema = z.strictObject({
|
|
518
|
+
schemaVersion: z.literal(1),
|
|
519
|
+
kind: z.literal("browser-runtime-launch"),
|
|
520
|
+
platform: z.literal("web"),
|
|
521
|
+
candidateSha256: digest,
|
|
522
|
+
tool: machineTool,
|
|
523
|
+
sessionId: nonempty,
|
|
524
|
+
source: nativeSourceIdentitySchema,
|
|
525
|
+
build: z.strictObject({ fingerprint: digest, manifest: artifact }),
|
|
526
|
+
served: z.strictObject({ origin: browserUrl, url: browserUrl, resourceManifest: artifact }),
|
|
527
|
+
context: z.strictObject({ id: nonempty, browser: browserIdentity, os: nonempty }),
|
|
528
|
+
launch: z.strictObject({ startedAt: timestamp, finishedAt: timestamp, transcript: artifact }),
|
|
529
|
+
navigation: z.strictObject({
|
|
530
|
+
requestedUrl: browserUrl,
|
|
531
|
+
finalUrl: browserUrl,
|
|
532
|
+
statusCode: z.number().int().min(200).max(399),
|
|
533
|
+
startedAt: timestamp,
|
|
534
|
+
finishedAt: timestamp,
|
|
535
|
+
transcript: artifact,
|
|
536
|
+
}),
|
|
537
|
+
verdict: z.literal("passed"),
|
|
538
|
+
startedAt: timestamp,
|
|
539
|
+
finishedAt: timestamp,
|
|
540
|
+
});
|
|
541
|
+
export type DesignBrowserRuntimeProofReceipt = z.infer<typeof designBrowserRuntimeProofReceiptSchema>;
|
|
542
|
+
|
|
543
|
+
export const designBrowserRuntimeSchema = z.strictObject({
|
|
544
|
+
id: nonempty,
|
|
545
|
+
platform: z.literal("web"),
|
|
546
|
+
candidateSha256: digest,
|
|
547
|
+
sourceFingerprint: sourceDigest,
|
|
548
|
+
buildFingerprint: digest,
|
|
549
|
+
origin: browserUrl,
|
|
550
|
+
url: browserUrl,
|
|
551
|
+
browser: browserIdentity,
|
|
552
|
+
browserContextId: nonempty,
|
|
553
|
+
os: nonempty,
|
|
554
|
+
launchTranscriptSha256: digest,
|
|
555
|
+
navigationTranscriptSha256: digest,
|
|
556
|
+
receipt: artifact,
|
|
557
|
+
});
|
|
558
|
+
export type DesignBrowserRuntime = z.infer<typeof designBrowserRuntimeSchema>;
|
|
559
|
+
|
|
560
|
+
export const designAcceptanceReportSchema = z.strictObject({
|
|
561
|
+
schemaVersion: z.literal(1),
|
|
562
|
+
sources: z.array(artifact).min(3),
|
|
563
|
+
candidate: z.strictObject({ sha256: digest, producedAt: timestamp, producer: identity }),
|
|
564
|
+
nativeRuntimes: z.array(designNativeRuntimeSchema),
|
|
565
|
+
browserRuntimes: z.array(designBrowserRuntimeSchema),
|
|
566
|
+
reviewer: identity,
|
|
567
|
+
reviewedAt: timestamp,
|
|
568
|
+
verdict: z.literal("pass"),
|
|
569
|
+
surfaces: z.array(
|
|
570
|
+
z.strictObject({
|
|
571
|
+
id: nonempty,
|
|
572
|
+
runtimeIds: uniqueStrings.optional(),
|
|
573
|
+
rubric: artifact,
|
|
574
|
+
captures: z.array(evidenceReference),
|
|
575
|
+
interactions: z.array(evidenceReference),
|
|
576
|
+
criteria: z.array(z.strictObject({ id: nonempty, verdict, observation, evidenceIds: uniqueStrings })).min(1),
|
|
577
|
+
}),
|
|
578
|
+
),
|
|
579
|
+
findings: z.array(z.strictObject({ id: nonempty, severity: z.enum(["blocker", "major", "minor"]), status: z.enum(["open", "resolved"]), observation })),
|
|
580
|
+
});
|
|
581
|
+
export type DesignAcceptanceReport = z.infer<typeof designAcceptanceReportSchema>;
|
|
582
|
+
|
|
583
|
+
const CANONICAL_SOURCES = ["product.yaml", "DESIGN.md", "studio/seed/business.json"] as const;
|
|
584
|
+
const STATE_FLOOR = ["default", "loading", "empty", "error", "offline", "permission-denied"];
|
|
585
|
+
const NATIVE_STATES = ["reduced-motion", "large-text", "screen-reader"];
|
|
586
|
+
const WEB_STATES = ["reduced-motion", "no-js", "keyboard"];
|
|
587
|
+
const MAX_ARTIFACT_BYTES = 128 * 1024 * 1024;
|
|
588
|
+
const MAX_SOURCE_FILES = 5000;
|
|
589
|
+
const MAX_SOURCE_BYTES = 256 * 1024 * 1024;
|
|
590
|
+
const PRODUCER_PROOF_ROOTS = [
|
|
591
|
+
"growth/landing/proof",
|
|
592
|
+
"growth/landing/browser-proof.json",
|
|
593
|
+
"proof/ios-simulator",
|
|
594
|
+
"proof/ios-device",
|
|
595
|
+
"proof/android-emulator",
|
|
596
|
+
"proof/android-device",
|
|
597
|
+
] as const;
|
|
598
|
+
const evidenceRunStateSchema = z
|
|
599
|
+
.object({
|
|
600
|
+
artifactBindings: z.array(
|
|
601
|
+
z.object({
|
|
602
|
+
artifactId: nonempty,
|
|
603
|
+
path: nonempty,
|
|
604
|
+
fingerprint: digest.optional(),
|
|
605
|
+
accepted: z.boolean(),
|
|
606
|
+
producedBy: nonempty.optional(),
|
|
607
|
+
attemptId: nonempty.optional(),
|
|
608
|
+
}),
|
|
609
|
+
),
|
|
610
|
+
nodes: z.record(
|
|
611
|
+
z.string(),
|
|
612
|
+
z.object({
|
|
613
|
+
status: nonempty,
|
|
614
|
+
blocker: nonempty.optional(),
|
|
615
|
+
acceptedOutputFingerprint: digest.optional(),
|
|
616
|
+
attempts: z.array(
|
|
617
|
+
z.object({
|
|
618
|
+
id: nonempty,
|
|
619
|
+
status: nonempty,
|
|
620
|
+
ownerSessionId: nonempty,
|
|
621
|
+
startedAt: timestamp.optional(),
|
|
622
|
+
finishedAt: timestamp.optional(),
|
|
623
|
+
}),
|
|
624
|
+
),
|
|
625
|
+
}),
|
|
626
|
+
),
|
|
627
|
+
})
|
|
628
|
+
.passthrough();
|
|
629
|
+
|
|
630
|
+
/** Refuse traversal, absolute paths, and symlinks in every path segment. */
|
|
631
|
+
function localPath(root: string, relative: string): string {
|
|
632
|
+
if (path.isAbsolute(relative) || relative.includes("\\") || relative.split("/").some((part) => !part || part === "." || part === ".." || part === ".git")) {
|
|
633
|
+
throw new Error(`Unsafe workspace evidence path: ${relative}`);
|
|
634
|
+
}
|
|
635
|
+
const base = realpathSync(root);
|
|
636
|
+
let current = base;
|
|
637
|
+
for (const part of relative.split("/")) {
|
|
638
|
+
current = path.join(current, part);
|
|
639
|
+
if (lstatSync(current).isSymbolicLink()) throw new Error(`Symlink evidence is not accepted: ${relative}`);
|
|
640
|
+
}
|
|
641
|
+
if (!realpathSync(current).startsWith(`${base}${path.sep}`)) throw new Error(`Evidence escapes workspace: ${relative}`);
|
|
642
|
+
return current;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
function bytes(root: string, relative: string): Buffer {
|
|
646
|
+
const target = localPath(root, relative);
|
|
647
|
+
const stat = lstatSync(target);
|
|
648
|
+
if (!stat.isFile() || stat.size === 0 || stat.size > MAX_ARTIFACT_BYTES)
|
|
649
|
+
throw new Error(`Evidence must be a nonempty regular file at most 128 MiB: ${relative}`);
|
|
650
|
+
return readFileSync(target);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export function designArtifact(root: string, relative: string): { path: string; sha256: string } {
|
|
654
|
+
return { path: relative, sha256: createHash("sha256").update(bytes(root, relative)).digest("hex") };
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/** Browser proof is written beneath the landing implementation tree in many
|
|
658
|
+
* businesses. Exclude its authored candidate pointer and generated evidence so
|
|
659
|
+
* producing proof cannot make its own source fingerprint stale. */
|
|
660
|
+
export function designBrowserSourceFingerprint(root: string, roots: readonly string[]): string {
|
|
661
|
+
return fingerprintAppSource(root, roots, {
|
|
662
|
+
excludedPaths: ["growth/landing/browser-proof.json", "growth/landing/proof"],
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/** Snapshot every detailed design contract and every file beneath the implementation
|
|
667
|
+
* paths authored in DESIGN.md. A report cannot retain acceptance after changing a
|
|
668
|
+
* linked screen/flow contract or cherry-pick one unchanged implementation file. */
|
|
669
|
+
export function designCandidateFingerprint(root: string, scope: DesignAcceptanceScope): string {
|
|
670
|
+
const entries = new Map<string, string>();
|
|
671
|
+
let totalBytes = 0;
|
|
672
|
+
const visit = (relative: string): number => {
|
|
673
|
+
if (PRODUCER_PROOF_ROOTS.some((proofRoot) => relative === proofRoot || relative.startsWith(`${proofRoot}/`))) return 0;
|
|
674
|
+
const target = localPath(root, relative);
|
|
675
|
+
const stat = lstatSync(target);
|
|
676
|
+
if (stat.isDirectory()) {
|
|
677
|
+
const children = readdirSync(target).sort();
|
|
678
|
+
return children.reduce((count, name) => count + visit(`${relative}/${name}`), 0);
|
|
679
|
+
} else {
|
|
680
|
+
if (entries.has(relative)) return 1;
|
|
681
|
+
if (!stat.isFile()) throw new Error(`Candidate source evidence must be regular files: ${relative}`);
|
|
682
|
+
totalBytes += stat.size;
|
|
683
|
+
if (entries.size >= MAX_SOURCE_FILES || totalBytes > MAX_SOURCE_BYTES)
|
|
684
|
+
throw new Error("Candidate source evidence exceeds 5000 files or 256 MiB; select design and implementation paths without build caches");
|
|
685
|
+
// Empty ordinary source files are valid; captures and execution evidence are not.
|
|
686
|
+
entries.set(relative, createHash("sha256").update(readFileSync(target)).digest("hex"));
|
|
687
|
+
return 1;
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
// Resource declarations extend candidate identity even if implementation roots omit them.
|
|
691
|
+
// The canonical DESIGN.md digest remains separately bound by the report's authored inputs.
|
|
692
|
+
const frontmatter = parseFrontmatter(boundedFileBytes(localPath(root, "DESIGN.md"), 1024 * 1024).toString("utf8"), []);
|
|
693
|
+
const assetDependencies: string[] = [];
|
|
694
|
+
// Match the content validator: the first nonempty manifest owns this packet.
|
|
695
|
+
// An unrelated root manifest must not override the selected primary location.
|
|
696
|
+
for (const assetsPath of ["growth/content-assets/manifest.json", "manifest.json"]) {
|
|
697
|
+
if (!existsSync(path.join(root, assetsPath))) continue;
|
|
698
|
+
const manifestText = boundedFileBytes(localPath(root, assetsPath), 4 * 1024 * 1024).toString("utf8");
|
|
699
|
+
if (!manifestText) continue;
|
|
700
|
+
const manifest: unknown = JSON.parse(manifestText);
|
|
701
|
+
if (isRecord(manifest) && manifest.schema_version === CONTENT_ASSETS_VERSION) {
|
|
702
|
+
assetDependencies.push(assetsPath, ...contentAssetDependencyPaths(manifest));
|
|
703
|
+
}
|
|
704
|
+
break;
|
|
705
|
+
}
|
|
706
|
+
const authoredPaths = [
|
|
707
|
+
...scope.designContractPaths,
|
|
708
|
+
...scope.surfaces.flatMap((surface) => surface.implementationPaths),
|
|
709
|
+
...typographyDependencyPaths(frontmatter),
|
|
710
|
+
...assetDependencies,
|
|
711
|
+
];
|
|
712
|
+
for (const relative of new Set(authoredPaths)) {
|
|
713
|
+
if (visit(relative) === 0) throw new Error(`Empty candidate source root: ${relative}`);
|
|
714
|
+
}
|
|
715
|
+
return createHash("sha256")
|
|
716
|
+
.update(JSON.stringify([...entries].sort(([a], [b]) => a.localeCompare(b))))
|
|
717
|
+
.digest("hex");
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
function frozenRubric(root: string, relative: string): DesignRubric {
|
|
721
|
+
if (!relative.startsWith("design/reviews/rubrics/")) throw new Error("Use the existing design/reviews/rubrics/ owner for frozen rubrics");
|
|
722
|
+
const text = bytes(root, relative).toString("utf8");
|
|
723
|
+
if (relative.endsWith(".json")) return designRubricSchema.parse(JSON.parse(text));
|
|
724
|
+
const match = text.match(/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);
|
|
725
|
+
const parsed: unknown = match ? parseYaml(match[1] ?? "") : undefined;
|
|
726
|
+
return designRubricSchema.parse(isRecord(parsed) ? parsed.designRubric : undefined);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/** Resolve frozen reference artifacts before accepting a design direction, not only at final implementation review. */
|
|
730
|
+
export function validateDesignSourceReferences(root: string, now = new Date().toISOString()): Issue[] {
|
|
731
|
+
const loaded = loadDesignSystem(root),
|
|
732
|
+
issues: Issue[] = [];
|
|
733
|
+
const locked = loaded.frontmatter?.acceptance !== undefined || /^Status:\s*(?:accepted|locked)\b/im.test(loaded.markdown);
|
|
734
|
+
if (!locked) return issues;
|
|
735
|
+
try {
|
|
736
|
+
const scope = designAcceptanceScopeSchema.parse(loaded.frontmatter?.acceptance);
|
|
737
|
+
for (const relative of new Set(scope.surfaces.map((surface) => surface.rubricPath))) {
|
|
738
|
+
const rubric = frozenRubric(root, relative);
|
|
739
|
+
for (const reference of rubric.references) {
|
|
740
|
+
const result = selectDesignReference([reference], reference.kind, now);
|
|
741
|
+
if (!result.selectedId)
|
|
742
|
+
issues.push(
|
|
743
|
+
issue(
|
|
744
|
+
"error",
|
|
745
|
+
"design_source.unresolved",
|
|
746
|
+
`${reference.id}: ${result.attempts[0]!.reason}. Select an authorized, coverage-compatible source or leave the design unresolved.`,
|
|
747
|
+
relative,
|
|
748
|
+
),
|
|
749
|
+
);
|
|
750
|
+
if (Date.parse(reference.resolution.observedAt) > Date.parse(rubric.frozenAt))
|
|
751
|
+
issues.push(issue("error", "design_source.chronology", `${reference.id} was not resolved before the rubric was frozen.`, relative));
|
|
752
|
+
if (designArtifact(root, reference.artifact.path).sha256 !== reference.artifact.sha256)
|
|
753
|
+
issues.push(issue("error", "design_source.changed", `${reference.id} retained evidence changed.`, relative));
|
|
754
|
+
if (reference.kind === "visual" && !imageDimensions(bytes(root, reference.artifact.path)))
|
|
755
|
+
issues.push(issue("error", "design_source.visual_missing", `${reference.id} requires inspected image evidence, not internal prose.`, relative));
|
|
756
|
+
if (reference.kind === "interaction" && /\.(?:md|txt)$/i.test(reference.artifact.path))
|
|
757
|
+
issues.push(
|
|
758
|
+
issue(
|
|
759
|
+
"error",
|
|
760
|
+
"design_source.interaction_missing",
|
|
761
|
+
`${reference.id} needs an observed interaction artifact, not instructions describing motion.`,
|
|
762
|
+
relative,
|
|
763
|
+
),
|
|
764
|
+
);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
} catch {
|
|
768
|
+
issues.push(
|
|
769
|
+
issue(
|
|
770
|
+
"error",
|
|
771
|
+
"design_source.contract_invalid",
|
|
772
|
+
"A locked design needs valid frozen rubrics with resolved, retained source evidence and provenance. Refresh legacy rubrics explicitly.",
|
|
773
|
+
"DESIGN.md",
|
|
774
|
+
),
|
|
775
|
+
);
|
|
776
|
+
}
|
|
777
|
+
return issues;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/** Detailed screen and flow contracts remain optional, but every one linked from the
|
|
781
|
+
* DESIGN.md body becomes an explicit acceptance input and every declared input must
|
|
782
|
+
* be linked. Frontmatter text does not satisfy the link requirement. */
|
|
783
|
+
function linkedDesignContracts(markdown: string): string[] {
|
|
784
|
+
const body = markdown.replace(/^---\r?\n[\s\S]*?\r?\n---(?:\r?\n|$)/, "");
|
|
785
|
+
const links: string[] = [];
|
|
786
|
+
const pattern = /\]\(<?([^\s)>]+)>?(?:\s+["'][^)]*["'])?\)/g;
|
|
787
|
+
for (const match of body.matchAll(pattern)) {
|
|
788
|
+
const target = (match[1] ?? "").split("#", 1)[0]!;
|
|
789
|
+
if (target.startsWith("design/screens/") || target.startsWith("design/flows/")) links.push(target);
|
|
790
|
+
}
|
|
791
|
+
return [...new Set(links)].sort();
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
function imageDimensions(data: Buffer): { width: number; height: number } | undefined {
|
|
795
|
+
if (data.length >= 24 && data.subarray(0, 8).equals(Buffer.from([137, 80, 78, 71, 13, 10, 26, 10])) && data.toString("ascii", 12, 16) === "IHDR") {
|
|
796
|
+
const size = { width: data.readUInt32BE(16), height: data.readUInt32BE(20) };
|
|
797
|
+
let offset = 8;
|
|
798
|
+
const compressed: Buffer[] = [];
|
|
799
|
+
let ended = false;
|
|
800
|
+
while (offset + 12 <= data.length) {
|
|
801
|
+
const length = data.readUInt32BE(offset);
|
|
802
|
+
if (offset + length + 12 > data.length) return undefined;
|
|
803
|
+
const kind = data.toString("ascii", offset + 4, offset + 8);
|
|
804
|
+
if (kind === "IDAT") compressed.push(data.subarray(offset + 8, offset + 8 + length));
|
|
805
|
+
offset += length + 12;
|
|
806
|
+
if (kind === "IEND") {
|
|
807
|
+
ended = true;
|
|
808
|
+
break;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
if (!ended || offset !== data.length || !compressed.length || size.width > 16384 || size.height > 16384) return undefined;
|
|
812
|
+
try {
|
|
813
|
+
// Parse actual image data so a renamed text file or PNG header is not proof.
|
|
814
|
+
if (!inflateSync(Buffer.concat(compressed), { maxOutputLength: MAX_ARTIFACT_BYTES }).length) return undefined;
|
|
815
|
+
} catch {
|
|
816
|
+
return undefined;
|
|
817
|
+
}
|
|
818
|
+
return size;
|
|
819
|
+
}
|
|
820
|
+
if (data[0] === 0xff && data[1] === 0xd8 && data[data.length - 2] === 0xff && data[data.length - 1] === 0xd9 && data.includes(Buffer.from([0xff, 0xda]))) {
|
|
821
|
+
let offset = 2;
|
|
822
|
+
while (offset + 9 < data.length && data[offset] === 0xff) {
|
|
823
|
+
const marker = data[offset + 1]!;
|
|
824
|
+
const length = data.readUInt16BE(offset + 2);
|
|
825
|
+
if (length < 2 || offset + 2 + length > data.length) break;
|
|
826
|
+
if ([0xc0, 0xc1, 0xc2].includes(marker)) return { height: data.readUInt16BE(offset + 5), width: data.readUInt16BE(offset + 7) };
|
|
827
|
+
offset += length + 2;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
return undefined;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/** Public closeout seam. Strict even when report is missing; invoke this gate only
|
|
834
|
+
* for actual complete-design acceptance, not the advisory reference workspace. */
|
|
835
|
+
export function validateDesignAcceptance(root: string, reportPath = DESIGN_ACCEPTANCE_REPORT): Issue[] {
|
|
836
|
+
const issues: Issue[] = [...validateDesignSourceReferences(root), ...validateFrozenPageTechniqueGates(root, "design_acceptance.page_gates")];
|
|
837
|
+
const surfaceApplicability = loadDesignSurfaceApplicability(root);
|
|
838
|
+
const fail = (code: string, message: string, file = reportPath): void => {
|
|
839
|
+
issues.push(issue("error", `design_acceptance.${code}`, message, file));
|
|
840
|
+
};
|
|
841
|
+
const attempt = <T>(code: string, work: () => T, file = reportPath): T | undefined => {
|
|
842
|
+
try {
|
|
843
|
+
return work();
|
|
844
|
+
} catch (error) {
|
|
845
|
+
fail(code, error instanceof Error ? error.message : String(error), file);
|
|
846
|
+
return undefined;
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
|
+
const checkArtifact = (value: z.infer<typeof artifact>, missingCode = "evidence_artifact"): boolean => {
|
|
850
|
+
try {
|
|
851
|
+
if (designArtifact(root, value.path).sha256 !== value.sha256) {
|
|
852
|
+
fail("stale_evidence_artifact", `Artifact changed: ${value.path}`, value.path);
|
|
853
|
+
return false;
|
|
854
|
+
}
|
|
855
|
+
return true;
|
|
856
|
+
} catch (error) {
|
|
857
|
+
fail(missingCode, error instanceof Error ? error.message : String(error), value.path);
|
|
858
|
+
return false;
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
const exactIds = (actual: string[], expected: string[], label: string, code: "report_coverage" | "surface_coverage" | "scope" = "report_coverage"): void => {
|
|
862
|
+
if (new Set(actual).size !== actual.length) fail("report_coverage", `${label} must not contain duplicate values`);
|
|
863
|
+
else if (actual.length !== expected.length || expected.some((id) => !actual.includes(id)))
|
|
864
|
+
fail(code, `${label} must cover exactly: ${expected.join(", ")}`);
|
|
865
|
+
};
|
|
866
|
+
const time = (value: string): number => Date.parse(value);
|
|
867
|
+
const now = Date.now();
|
|
868
|
+
const product = attempt("product", () => parseYaml(bytes(root, "product.yaml").toString("utf8")) as unknown);
|
|
869
|
+
if (!isRecord(product) || !isRecord(product.meta) || product.meta.status !== "accepted")
|
|
870
|
+
fail("product_not_accepted", "product.yaml meta.status must be accepted", "product.yaml");
|
|
871
|
+
// Check the file boundary before using the shared DESIGN.md loader.
|
|
872
|
+
const designMarkdown = attempt("scope", () => bytes(root, "DESIGN.md").toString("utf8"));
|
|
873
|
+
const scope = attempt("scope", () => designAcceptanceScopeSchema.parse(loadDesignSystem(root).frontmatter?.acceptance));
|
|
874
|
+
const studio = attempt("inventory", () => JSON.parse(bytes(root, "studio/seed/business.json").toString("utf8")) as unknown);
|
|
875
|
+
const reportBytes = attempt("report_coverage", () => bytes(root, reportPath), reportPath);
|
|
876
|
+
const report = reportBytes
|
|
877
|
+
? attempt("report_coverage", () => designAcceptanceReportSchema.parse(JSON.parse(reportBytes.toString("utf8"))), reportPath)
|
|
878
|
+
: undefined;
|
|
879
|
+
if (!scope || !report || designMarkdown === undefined) return issues;
|
|
880
|
+
|
|
881
|
+
const reportSha256 = createHash("sha256").update(reportBytes!).digest("hex");
|
|
882
|
+
const implementationReview = attempt("report_coverage", () => bytes(root, DESIGN_IMPLEMENTATION_REVIEW).toString("utf8"), DESIGN_IMPLEMENTATION_REVIEW);
|
|
883
|
+
if (implementationReview !== undefined) {
|
|
884
|
+
const markerCount = implementationReview.match(/Acceptance report SHA-256:/g)?.length ?? 0;
|
|
885
|
+
const markerLines = implementationReview.split(/\r?\n/).filter((line) => line.startsWith("Acceptance report SHA-256:"));
|
|
886
|
+
if (markerCount !== 1 || markerLines.length !== 1 || !/^Acceptance report SHA-256: [a-f0-9]{64}$/.test(markerLines[0]!))
|
|
887
|
+
fail("report_coverage", `${DESIGN_IMPLEMENTATION_REVIEW} must contain exactly one Acceptance report SHA-256 marker`, DESIGN_IMPLEMENTATION_REVIEW);
|
|
888
|
+
else if (markerLines[0] !== `Acceptance report SHA-256: ${reportSha256}`)
|
|
889
|
+
fail("report_coverage", `${DESIGN_IMPLEMENTATION_REVIEW} does not bind the current acceptance report bytes`, DESIGN_IMPLEMENTATION_REVIEW);
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
const runState = attempt(
|
|
893
|
+
"surface_coverage",
|
|
894
|
+
() => evidenceRunStateSchema.parse(JSON.parse(bytes(root, "run/run-state.json").toString("utf8"))),
|
|
895
|
+
"run/run-state.json",
|
|
896
|
+
);
|
|
897
|
+
const inside = (relative: string, ancestor: string): boolean => relative === ancestor || relative.startsWith(`${ancestor}/`);
|
|
898
|
+
|
|
899
|
+
// The report's reviewer label is evidence only after it joins the engine-issued audit attempt
|
|
900
|
+
// that produced both audit files. Without this join, an audit worker could write any invented
|
|
901
|
+
// session id into the JSON and make ordinary producer evidence look independent. Permit the
|
|
902
|
+
// exact pending-verification lifecycle used while this gate runs and the exact succeeded
|
|
903
|
+
// lifecycle used by a later read-only recheck; every other state is incomplete.
|
|
904
|
+
if (runState) {
|
|
905
|
+
const auditState = runState.nodes[IMPLEMENTATION_CRAFT_AUDIT_NODE];
|
|
906
|
+
const auditAttempt = auditState?.attempts.at(-1);
|
|
907
|
+
const pending = auditState?.status === "blocked" && auditState.blocker === "Verification required" && auditAttempt?.status === "blocked";
|
|
908
|
+
const accepted = auditState?.status === "succeeded" && auditAttempt?.status === "succeeded";
|
|
909
|
+
if (!auditState || !auditAttempt || (!pending && !accepted)) {
|
|
910
|
+
fail(
|
|
911
|
+
"report_coverage",
|
|
912
|
+
"Acceptance report and implementation review require the current engine-issued implementation-craft audit attempt",
|
|
913
|
+
"run/run-state.json",
|
|
914
|
+
);
|
|
915
|
+
} else {
|
|
916
|
+
if (report.reviewer.sessionId !== auditAttempt.ownerSessionId) {
|
|
917
|
+
fail("self_review", "Report reviewer session must equal the current engine-issued implementation-craft audit owner session");
|
|
918
|
+
}
|
|
919
|
+
if (
|
|
920
|
+
auditAttempt.startedAt === undefined ||
|
|
921
|
+
auditAttempt.finishedAt === undefined ||
|
|
922
|
+
time(report.reviewedAt) < time(auditAttempt.startedAt) ||
|
|
923
|
+
time(report.reviewedAt) > time(auditAttempt.finishedAt)
|
|
924
|
+
) {
|
|
925
|
+
fail("chronology", "Implementation review time must fall inside the current engine-issued audit attempt");
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
const auditBindings = IMPLEMENTATION_CRAFT_AUDIT_OUTPUTS.map((expected) => {
|
|
929
|
+
const matches = runState.artifactBindings.filter(
|
|
930
|
+
(binding) =>
|
|
931
|
+
binding.artifactId === expected.artifactId &&
|
|
932
|
+
binding.path === expected.path &&
|
|
933
|
+
binding.producedBy === IMPLEMENTATION_CRAFT_AUDIT_NODE &&
|
|
934
|
+
binding.attemptId === auditAttempt.id &&
|
|
935
|
+
binding.fingerprint !== undefined &&
|
|
936
|
+
binding.accepted === accepted,
|
|
937
|
+
);
|
|
938
|
+
if (matches.length !== 1) {
|
|
939
|
+
fail("report_coverage", `${expected.path} requires one current implementation-craft audit output binding`, "run/run-state.json");
|
|
940
|
+
return undefined;
|
|
941
|
+
}
|
|
942
|
+
try {
|
|
943
|
+
const current = outputFingerprintPath(localPath(root, expected.path));
|
|
944
|
+
if (current !== matches[0]!.fingerprint) {
|
|
945
|
+
fail("report_coverage", `${expected.path} changed after the current implementation-craft audit produced it`, expected.path);
|
|
946
|
+
return undefined;
|
|
947
|
+
}
|
|
948
|
+
} catch (error) {
|
|
949
|
+
fail("report_coverage", error instanceof Error ? error.message : String(error), expected.path);
|
|
950
|
+
return undefined;
|
|
951
|
+
}
|
|
952
|
+
return matches[0]!;
|
|
953
|
+
});
|
|
954
|
+
if (accepted && auditBindings.every((binding) => binding !== undefined)) {
|
|
955
|
+
const acceptedFingerprint = createHash("sha256")
|
|
956
|
+
.update(auditBindings.map((binding) => binding!.fingerprint).join("|"))
|
|
957
|
+
.digest("hex");
|
|
958
|
+
if (auditState.acceptedOutputFingerprint !== acceptedFingerprint) {
|
|
959
|
+
fail("report_coverage", "Accepted implementation-craft audit fingerprint does not match its two current outputs", "run/run-state.json");
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
const validateProducerBinding = (
|
|
966
|
+
reference: z.infer<typeof evidenceReference>,
|
|
967
|
+
receiptSessionId: string,
|
|
968
|
+
artifactPath: string,
|
|
969
|
+
expectedWorkflowId: string,
|
|
970
|
+
expectedRoot: string,
|
|
971
|
+
expectedBindingPath: string,
|
|
972
|
+
): void => {
|
|
973
|
+
const problem = (message: string): void => fail("surface_coverage", `${reference.id} lacks current producer evidence: ${message}`);
|
|
974
|
+
const rootPath = expectedRoot.replace(/\/+$/, "");
|
|
975
|
+
if (reference.producer.workflowId === IMPLEMENTATION_CRAFT_AUDIT_WORKFLOW || reference.producer.workflowId !== expectedWorkflowId) {
|
|
976
|
+
problem(`receipt producer must be ${expectedWorkflowId}, never the implementation audit`);
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
if (!inside(reference.receipt.path, rootPath) || !inside(artifactPath, rootPath)) {
|
|
980
|
+
problem(`receipt and artifact must remain in producer-owned ${rootPath}/`);
|
|
981
|
+
return;
|
|
982
|
+
}
|
|
983
|
+
if (!runState) return;
|
|
984
|
+
const nodeId = `run.${reference.producer.workflowId.slice("workflow.".length)}`;
|
|
985
|
+
const state = runState.nodes[nodeId];
|
|
986
|
+
const latestAttempt = state?.attempts.at(-1);
|
|
987
|
+
if (
|
|
988
|
+
state?.status !== "succeeded" ||
|
|
989
|
+
latestAttempt?.id !== reference.producer.attemptId ||
|
|
990
|
+
latestAttempt.status !== "succeeded" ||
|
|
991
|
+
latestAttempt.ownerSessionId !== receiptSessionId ||
|
|
992
|
+
receiptSessionId === report.reviewer.sessionId
|
|
993
|
+
) {
|
|
994
|
+
problem("workflow, attempt, output fingerprint, or producer session does not match the current accepted run-state attempt");
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
const bindings = runState.artifactBindings
|
|
998
|
+
.map((binding) => ({ ...binding, path: binding.path.replace(/\/+$/, "") }))
|
|
999
|
+
.filter(
|
|
1000
|
+
(binding) =>
|
|
1001
|
+
binding.accepted &&
|
|
1002
|
+
binding.producedBy === nodeId &&
|
|
1003
|
+
binding.attemptId === latestAttempt.id &&
|
|
1004
|
+
binding.fingerprint !== undefined &&
|
|
1005
|
+
binding.path === expectedBindingPath,
|
|
1006
|
+
);
|
|
1007
|
+
if (bindings.length !== 1) {
|
|
1008
|
+
problem(`expected one current accepted ${expectedBindingPath} producer binding`);
|
|
1009
|
+
return;
|
|
1010
|
+
}
|
|
1011
|
+
const binding = bindings[0]!;
|
|
1012
|
+
if (!inside(reference.receipt.path, binding.path) || !inside(artifactPath, binding.path)) {
|
|
1013
|
+
problem("receipt path and evidence artifact are not covered by the current accepted producer binding");
|
|
1014
|
+
return;
|
|
1015
|
+
}
|
|
1016
|
+
try {
|
|
1017
|
+
const currentBindingFingerprint = outputFingerprintPath(localPath(root, binding.path));
|
|
1018
|
+
if (currentBindingFingerprint !== binding.fingerprint) {
|
|
1019
|
+
problem(`accepted producer binding changed after ${latestAttempt.id}`);
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
const currentOutputFingerprint = createHash("sha256").update(currentBindingFingerprint).digest("hex");
|
|
1023
|
+
if (state.acceptedOutputFingerprint !== currentOutputFingerprint || reference.producer.outputFingerprint !== currentOutputFingerprint)
|
|
1024
|
+
problem("output fingerprint does not match the current accepted producer binding");
|
|
1025
|
+
} catch (error) {
|
|
1026
|
+
problem(error instanceof Error ? error.message : String(error));
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
exactIds(linkedDesignContracts(designMarkdown), scope.designContractPaths, "Linked design contracts", "scope");
|
|
1031
|
+
for (const relative of scope.designContractPaths) {
|
|
1032
|
+
if ((!relative.startsWith("design/screens/") && !relative.startsWith("design/flows/")) || !relative.endsWith(".md"))
|
|
1033
|
+
fail("scope", `Detailed design contract must be Markdown under design/screens/ or design/flows/: ${relative}`, "DESIGN.md");
|
|
1034
|
+
}
|
|
1035
|
+
const sources = report.sources.map((source) => source.path);
|
|
1036
|
+
exactIds(sources, [...CANONICAL_SOURCES, ...scope.designContractPaths], "Authored inputs");
|
|
1037
|
+
report.sources.forEach((source) => checkArtifact(source));
|
|
1038
|
+
exactIds(
|
|
1039
|
+
report.surfaces.map((surface) => surface.id),
|
|
1040
|
+
scope.surfaces.map((surface) => surface.id),
|
|
1041
|
+
"Surface reviews",
|
|
1042
|
+
"surface_coverage",
|
|
1043
|
+
);
|
|
1044
|
+
if (new Set(scope.surfaces.map((surface) => surface.id)).size !== scope.surfaces.length)
|
|
1045
|
+
fail("scope", "DESIGN.md acceptance contains duplicate surface IDs", "DESIGN.md");
|
|
1046
|
+
const producer = report.candidate.producer;
|
|
1047
|
+
if (producer.id.trim().toLowerCase() === report.reviewer.id.trim().toLowerCase() || producer.sessionId === report.reviewer.sessionId)
|
|
1048
|
+
fail("self_review", "Producer and reviewer require distinct identities and session IDs");
|
|
1049
|
+
if (time(report.reviewedAt) > now || time(report.candidate.producedAt) > time(report.reviewedAt))
|
|
1050
|
+
fail("chronology", "Review must follow candidate production and cannot be future-dated");
|
|
1051
|
+
if (report.findings.some((finding) => finding.status === "open"))
|
|
1052
|
+
fail("open_findings", "Resolve all recorded findings and re-review the resulting candidate before acceptance");
|
|
1053
|
+
const candidate = attempt("candidate", () => designCandidateFingerprint(root, scope));
|
|
1054
|
+
if (candidate && candidate !== report.candidate.sha256)
|
|
1055
|
+
fail("stale_candidate", "Candidate implementation changed; recapture and re-review affected surfaces");
|
|
1056
|
+
|
|
1057
|
+
const runtimeProofFinishedAt = new Map<string, number>();
|
|
1058
|
+
const androidImplementationRoots = [
|
|
1059
|
+
...new Set(
|
|
1060
|
+
scope.surfaces.filter((surface) => surface.kind === "native" && surface.platform === "android").flatMap((surface) => surface.implementationPaths),
|
|
1061
|
+
),
|
|
1062
|
+
].sort();
|
|
1063
|
+
const currentReceiptSource = (
|
|
1064
|
+
runtimeId: string,
|
|
1065
|
+
source: z.infer<typeof nativeSourceIdentitySchema>,
|
|
1066
|
+
expectedRoots?: readonly string[],
|
|
1067
|
+
): string | undefined => {
|
|
1068
|
+
try {
|
|
1069
|
+
const workspaceAbsolute = path.resolve(root);
|
|
1070
|
+
if (!path.isAbsolute(source.root)) throw new Error("receipt source root is not absolute");
|
|
1071
|
+
const unresolvedSourceRoot = path.resolve(source.root);
|
|
1072
|
+
if (unresolvedSourceRoot !== workspaceAbsolute && !unresolvedSourceRoot.startsWith(`${workspaceAbsolute}${path.sep}`))
|
|
1073
|
+
throw new Error("receipt source root is outside the business workspace");
|
|
1074
|
+
const workspaceRoot = realpathSync(workspaceAbsolute);
|
|
1075
|
+
const receiptSourceRoot = realpathSync(unresolvedSourceRoot);
|
|
1076
|
+
if (receiptSourceRoot !== workspaceRoot && !receiptSourceRoot.startsWith(`${workspaceRoot}${path.sep}`))
|
|
1077
|
+
throw new Error("receipt source root is outside the business workspace");
|
|
1078
|
+
if (expectedRoots) {
|
|
1079
|
+
const actualRoots = [...source.roots].sort();
|
|
1080
|
+
if (
|
|
1081
|
+
receiptSourceRoot !== workspaceRoot ||
|
|
1082
|
+
actualRoots.length !== expectedRoots.length ||
|
|
1083
|
+
expectedRoots.some((expected, index) => actualRoots[index] !== expected)
|
|
1084
|
+
)
|
|
1085
|
+
throw new Error(
|
|
1086
|
+
`Android receipt source must use the business workspace root and exactly the authored Android implementation paths: ${expectedRoots.join(", ")}`,
|
|
1087
|
+
);
|
|
1088
|
+
}
|
|
1089
|
+
return fingerprintAppSource(receiptSourceRoot, source.roots);
|
|
1090
|
+
} catch (error) {
|
|
1091
|
+
fail(
|
|
1092
|
+
"native_runtime",
|
|
1093
|
+
`${runtimeId} cannot verify its receipt source against the current workspace: ${error instanceof Error ? error.message : String(error)}`,
|
|
1094
|
+
);
|
|
1095
|
+
return undefined;
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1098
|
+
const nativeRuntimeIds = report.nativeRuntimes.map((runtime) => runtime.id);
|
|
1099
|
+
const browserRuntimeIds = report.browserRuntimes.map((runtime) => runtime.id);
|
|
1100
|
+
const runtimeIds = [...nativeRuntimeIds, ...browserRuntimeIds];
|
|
1101
|
+
if (new Set(nativeRuntimeIds).size !== nativeRuntimeIds.length) fail("report_coverage", "Native runtime IDs must be unique");
|
|
1102
|
+
if (new Set(browserRuntimeIds).size !== browserRuntimeIds.length) fail("report_coverage", "Browser runtime IDs must be unique");
|
|
1103
|
+
if (new Set(runtimeIds).size !== runtimeIds.length) fail("report_coverage", "Native and browser runtime IDs must be globally unique");
|
|
1104
|
+
const nativeProducerRoot = (runtime: DesignNativeRuntime): string => {
|
|
1105
|
+
if (runtime.platform === "ios") return runtime.target === "simulator" ? "proof/ios-simulator" : "proof/ios-device";
|
|
1106
|
+
return runtime.target === "emulator" ? "proof/android-emulator" : "proof/android-device";
|
|
1107
|
+
};
|
|
1108
|
+
for (const runtime of report.nativeRuntimes) {
|
|
1109
|
+
const producerRoot = nativeProducerRoot(runtime);
|
|
1110
|
+
if (!inside(runtime.receipt.path, producerRoot)) {
|
|
1111
|
+
fail("native_runtime", `${runtime.id} receipt must live under producer-owned ${producerRoot}/`);
|
|
1112
|
+
continue;
|
|
1113
|
+
}
|
|
1114
|
+
if (!checkArtifact(runtime.receipt, "surface_coverage")) continue;
|
|
1115
|
+
if (runtime.candidateSha256 !== report.candidate.sha256) fail("native_runtime", `${runtime.id} does not identify this candidate`);
|
|
1116
|
+
const rawReceipt = attempt("native_receipt", () => JSON.parse(bytes(root, runtime.receipt.path).toString("utf8")) as unknown);
|
|
1117
|
+
if (!rawReceipt) continue;
|
|
1118
|
+
if (runtime.platform === "android") {
|
|
1119
|
+
const receipt =
|
|
1120
|
+
runtime.target === "emulator"
|
|
1121
|
+
? attempt("native_receipt", () => designAndroidEmulatorProofReceiptSchema.parse(rawReceipt))
|
|
1122
|
+
: attempt("native_receipt", () => designAndroidPhysicalDeviceProofReceiptSchema.parse(rawReceipt));
|
|
1123
|
+
if (!receipt) continue;
|
|
1124
|
+
const startedAt = time(receipt.startedAt);
|
|
1125
|
+
const installedAt = time(receipt.install.installedAt);
|
|
1126
|
+
const readAt = time(receipt.installedAppReadback.readAt);
|
|
1127
|
+
const launchedAt = time(receipt.launch.launchedAt);
|
|
1128
|
+
const finishedAt = time(receipt.finishedAt);
|
|
1129
|
+
if (
|
|
1130
|
+
startedAt < time(report.candidate.producedAt) ||
|
|
1131
|
+
installedAt < startedAt ||
|
|
1132
|
+
readAt < installedAt ||
|
|
1133
|
+
launchedAt < readAt ||
|
|
1134
|
+
finishedAt < launchedAt ||
|
|
1135
|
+
finishedAt > time(report.reviewedAt)
|
|
1136
|
+
)
|
|
1137
|
+
fail("native_runtime", `${runtime.id} Android proof must build, install, read back, and launch after candidate production and before review`);
|
|
1138
|
+
const transcriptEvidence = Object.values(receipt.evidence);
|
|
1139
|
+
for (const evidence of transcriptEvidence) checkArtifact(evidence);
|
|
1140
|
+
const builtArtifact = receipt.builtPackage.artifact;
|
|
1141
|
+
checkArtifact(builtArtifact);
|
|
1142
|
+
if (builtArtifact.format === "aab") {
|
|
1143
|
+
checkArtifact(builtArtifact.installApk);
|
|
1144
|
+
checkArtifact(builtArtifact.conversionEvidence);
|
|
1145
|
+
}
|
|
1146
|
+
const allEvidencePaths = [
|
|
1147
|
+
builtArtifact.path,
|
|
1148
|
+
...(builtArtifact.format === "aab" ? [builtArtifact.installApk.path, builtArtifact.conversionEvidence.path] : []),
|
|
1149
|
+
...transcriptEvidence.map((entry) => entry.path),
|
|
1150
|
+
];
|
|
1151
|
+
if (new Set(allEvidencePaths).size !== allEvidencePaths.length)
|
|
1152
|
+
fail("native_runtime", `${runtime.id} Android receipt requires distinct package, conversion, build, install, readback, and launch artifacts`);
|
|
1153
|
+
const installApk = builtArtifact.format === "apk" ? builtArtifact : builtArtifact.installApk;
|
|
1154
|
+
const currentSourceFingerprint = currentReceiptSource(runtime.id, receipt.builtPackage.source, androidImplementationRoots);
|
|
1155
|
+
if (
|
|
1156
|
+
receipt.candidateSha256 !== report.candidate.sha256 ||
|
|
1157
|
+
runtime.candidateSha256 !== receipt.candidateSha256 ||
|
|
1158
|
+
runtime.packageName !== receipt.builtPackage.packageName ||
|
|
1159
|
+
runtime.packageName !== receipt.install.packageName ||
|
|
1160
|
+
runtime.packageName !== receipt.installedAppReadback.packageName ||
|
|
1161
|
+
runtime.packageName !== receipt.launch.packageName ||
|
|
1162
|
+
runtime.versionCode !== receipt.builtPackage.versionCode ||
|
|
1163
|
+
runtime.versionCode !== receipt.install.versionCode ||
|
|
1164
|
+
runtime.versionCode !== receipt.installedAppReadback.versionCode ||
|
|
1165
|
+
runtime.packageArtifact.format !== builtArtifact.format ||
|
|
1166
|
+
runtime.packageArtifact.sha256 !== builtArtifact.sha256 ||
|
|
1167
|
+
runtime.installApkSha256 !== installApk.sha256 ||
|
|
1168
|
+
receipt.install.apkPath !== installApk.path ||
|
|
1169
|
+
receipt.install.apkSha256 !== installApk.sha256 ||
|
|
1170
|
+
runtime.sourceFingerprint !== receipt.builtPackage.source.fingerprint ||
|
|
1171
|
+
currentSourceFingerprint !== receipt.builtPackage.source.fingerprint ||
|
|
1172
|
+
runtime.deviceId !== receipt.device.id ||
|
|
1173
|
+
runtime.deviceId !== receipt.install.deviceId ||
|
|
1174
|
+
runtime.deviceId !== receipt.installedAppReadback.deviceId ||
|
|
1175
|
+
runtime.deviceId !== receipt.launch.deviceId ||
|
|
1176
|
+
runtime.deviceModelIdentifier !== receipt.device.modelIdentifier ||
|
|
1177
|
+
runtime.apiLevel !== receipt.device.apiLevel ||
|
|
1178
|
+
runtime.osVersion !== receipt.device.osVersion ||
|
|
1179
|
+
runtime.osBuild !== receipt.device.osBuild
|
|
1180
|
+
)
|
|
1181
|
+
fail("native_runtime", `${runtime.id} candidate, package, versionCode, APK/AAB, source, device, or OS identity does not match its Android receipt`);
|
|
1182
|
+
runtimeProofFinishedAt.set(runtime.id, finishedAt);
|
|
1183
|
+
continue;
|
|
1184
|
+
}
|
|
1185
|
+
if (runtime.target === "simulator") {
|
|
1186
|
+
const receipt = attempt("native_receipt", () => designSimulatorDeviceProofReceiptSchema.parse(rawReceipt));
|
|
1187
|
+
if (!receipt) continue;
|
|
1188
|
+
const startedAt = time(receipt.startedAt);
|
|
1189
|
+
const finishedAt = time(receipt.finishedAt);
|
|
1190
|
+
if (startedAt < time(report.candidate.producedAt) || finishedAt < startedAt || finishedAt > time(report.reviewedAt))
|
|
1191
|
+
fail("native_runtime", `${runtime.id} proof must run after candidate production and finish before review`);
|
|
1192
|
+
if (receipt.failingStep || receipt.steps.some((step) => !step.ok)) fail("native_runtime", `${runtime.id} receipt cannot contain a failed step`);
|
|
1193
|
+
const requiredSteps = ["build", "verify_build", "install", "verify_install", "launch"];
|
|
1194
|
+
const positions = requiredSteps.map((name) => receipt.steps.findIndex((step) => step.name === name && step.ok));
|
|
1195
|
+
if (
|
|
1196
|
+
requiredSteps.some((name) => receipt.steps.filter((step) => step.name === name).length !== 1) ||
|
|
1197
|
+
positions.some((position) => position < 0) ||
|
|
1198
|
+
positions.some((position, index) => index > 0 && position <= positions[index - 1]!)
|
|
1199
|
+
) {
|
|
1200
|
+
fail("native_runtime", `${runtime.id} simulator receipt must build, verify, install, read back, and launch in order`);
|
|
1201
|
+
continue;
|
|
1202
|
+
}
|
|
1203
|
+
const installSteps = receipt.steps.filter((step) => step.name === "verify_install" && step.ok && step.installedBuild);
|
|
1204
|
+
if (installSteps.length !== 1) {
|
|
1205
|
+
fail("native_runtime", `${runtime.id} simulator receipt must contain one exact installed-build readback`);
|
|
1206
|
+
continue;
|
|
1207
|
+
}
|
|
1208
|
+
const installed = installSteps[0]!.installedBuild!;
|
|
1209
|
+
const currentSourceFingerprint = currentReceiptSource(runtime.id, installed.source);
|
|
1210
|
+
if (
|
|
1211
|
+
runtime.bundleId !== installed.bundleId ||
|
|
1212
|
+
runtime.buildNumber !== installed.buildNumber ||
|
|
1213
|
+
runtime.executableSha256 !== installed.executable.sha256 ||
|
|
1214
|
+
runtime.bundleContentSha256 !== installed.bundleContentSha256 ||
|
|
1215
|
+
runtime.sourceFingerprint !== installed.source.fingerprint ||
|
|
1216
|
+
currentSourceFingerprint !== installed.source.fingerprint ||
|
|
1217
|
+
runtime.deviceId !== installed.deviceId
|
|
1218
|
+
)
|
|
1219
|
+
fail("native_runtime", `${runtime.id} bundle, build, binary, source, or device identity does not match its installed simulator receipt`);
|
|
1220
|
+
runtimeProofFinishedAt.set(runtime.id, finishedAt);
|
|
1221
|
+
continue;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
const receipt = attempt("native_receipt", () => designPhysicalDeviceProofReceiptSchema.parse(rawReceipt));
|
|
1225
|
+
if (!receipt) continue;
|
|
1226
|
+
const startedAt = time(receipt.startedAt);
|
|
1227
|
+
const installedAt = time(receipt.install.installedAt);
|
|
1228
|
+
const readAt = time(receipt.installedAppReadback.readAt);
|
|
1229
|
+
const launchedAt = time(receipt.launch.launchedAt);
|
|
1230
|
+
const finishedAt = time(receipt.finishedAt);
|
|
1231
|
+
if (
|
|
1232
|
+
startedAt < time(report.candidate.producedAt) ||
|
|
1233
|
+
installedAt < startedAt ||
|
|
1234
|
+
readAt < installedAt ||
|
|
1235
|
+
launchedAt < readAt ||
|
|
1236
|
+
finishedAt < launchedAt ||
|
|
1237
|
+
finishedAt > time(report.reviewedAt)
|
|
1238
|
+
)
|
|
1239
|
+
fail("native_runtime", `${runtime.id} physical-device proof must build, install, read back, and launch after candidate production and before review`);
|
|
1240
|
+
for (const evidence of Object.values(receipt.evidence)) checkArtifact(evidence);
|
|
1241
|
+
if (new Set(Object.values(receipt.evidence).map((entry) => entry.path)).size !== Object.keys(receipt.evidence).length)
|
|
1242
|
+
fail("native_runtime", `${runtime.id} physical-device receipt requires distinct build, install, readback, and launch evidence`);
|
|
1243
|
+
const currentSourceFingerprint = currentReceiptSource(runtime.id, receipt.builtApp.source);
|
|
1244
|
+
if (
|
|
1245
|
+
receipt.candidateSha256 !== report.candidate.sha256 ||
|
|
1246
|
+
runtime.candidateSha256 !== receipt.candidateSha256 ||
|
|
1247
|
+
runtime.bundleId !== receipt.builtApp.bundleId ||
|
|
1248
|
+
runtime.bundleId !== receipt.install.bundleId ||
|
|
1249
|
+
runtime.bundleId !== receipt.installedAppReadback.bundleId ||
|
|
1250
|
+
runtime.bundleId !== receipt.launch.bundleId ||
|
|
1251
|
+
runtime.buildNumber !== receipt.builtApp.buildNumber ||
|
|
1252
|
+
runtime.buildNumber !== receipt.install.buildNumber ||
|
|
1253
|
+
runtime.buildNumber !== receipt.installedAppReadback.buildNumber ||
|
|
1254
|
+
runtime.executableSha256 !== receipt.builtApp.executable.sha256 ||
|
|
1255
|
+
runtime.executableSha256 !== receipt.install.executableSha256 ||
|
|
1256
|
+
runtime.bundleContentSha256 !== receipt.builtApp.bundleContentSha256 ||
|
|
1257
|
+
runtime.bundleContentSha256 !== receipt.install.bundleContentSha256 ||
|
|
1258
|
+
runtime.sourceFingerprint !== receipt.builtApp.source.fingerprint ||
|
|
1259
|
+
currentSourceFingerprint !== receipt.builtApp.source.fingerprint ||
|
|
1260
|
+
runtime.deviceId !== receipt.device.id ||
|
|
1261
|
+
runtime.deviceModelIdentifier !== receipt.device.modelIdentifier ||
|
|
1262
|
+
runtime.osVersion !== receipt.device.osVersion ||
|
|
1263
|
+
runtime.osBuild !== receipt.device.osBuild ||
|
|
1264
|
+
receipt.builtApp.appPath !== receipt.install.appPath
|
|
1265
|
+
)
|
|
1266
|
+
fail("native_runtime", `${runtime.id} candidate, bundle, build, binary, source, device, or OS identity does not match its physical iPhone receipt`);
|
|
1267
|
+
runtimeProofFinishedAt.set(runtime.id, finishedAt);
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
const browserRuntimeReadyAt = new Map<string, number>();
|
|
1271
|
+
const browserRuntimeReceiptById = new Map<string, DesignBrowserRuntimeProofReceipt>();
|
|
1272
|
+
const currentBrowserSource = (
|
|
1273
|
+
runtimeId: string,
|
|
1274
|
+
source: z.infer<typeof nativeSourceIdentitySchema>,
|
|
1275
|
+
expectedRoots: readonly string[],
|
|
1276
|
+
): string | undefined => {
|
|
1277
|
+
try {
|
|
1278
|
+
const workspaceAbsolute = path.resolve(root);
|
|
1279
|
+
if (!path.isAbsolute(source.root)) throw new Error("receipt source root is not absolute");
|
|
1280
|
+
if (realpathSync(path.resolve(source.root)) !== realpathSync(workspaceAbsolute))
|
|
1281
|
+
throw new Error("receipt source root is not the canonical business workspace root");
|
|
1282
|
+
const actualRoots = [...source.roots].sort();
|
|
1283
|
+
if (!expectedRoots.length || actualRoots.length !== expectedRoots.length || expectedRoots.some((expected, index) => actualRoots[index] !== expected))
|
|
1284
|
+
throw new Error(`receipt source roots must equal the authored browser implementation paths: ${expectedRoots.join(", ")}`);
|
|
1285
|
+
return designBrowserSourceFingerprint(workspaceAbsolute, actualRoots);
|
|
1286
|
+
} catch (error) {
|
|
1287
|
+
fail("browser_runtime", `${runtimeId} cannot verify its source against the current workspace: ${error instanceof Error ? error.message : String(error)}`);
|
|
1288
|
+
return undefined;
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
const parsedBrowserUrl = (value: string, runtimeId: string, label: string): URL | undefined => {
|
|
1292
|
+
try {
|
|
1293
|
+
const parsed = new URL(value);
|
|
1294
|
+
const loopback = parsed.hostname === "localhost" || parsed.hostname === "127.0.0.1" || parsed.hostname === "[::1]";
|
|
1295
|
+
if (parsed.protocol !== "https:" && !(parsed.protocol === "http:" && loopback)) throw new Error("must use HTTPS, except for an explicit loopback origin");
|
|
1296
|
+
if (parsed.username || parsed.password || parsed.hash) throw new Error("cannot contain credentials or a fragment");
|
|
1297
|
+
return parsed;
|
|
1298
|
+
} catch (error) {
|
|
1299
|
+
fail("browser_runtime", `${runtimeId} ${label} is invalid: ${error instanceof Error ? error.message : String(error)}`);
|
|
1300
|
+
return undefined;
|
|
1301
|
+
}
|
|
1302
|
+
};
|
|
1303
|
+
const sameArtifact = (left: z.infer<typeof artifact>, right: z.infer<typeof artifact>): boolean => left.path === right.path && left.sha256 === right.sha256;
|
|
1304
|
+
for (const runtime of report.browserRuntimes) {
|
|
1305
|
+
const producerRoot = "growth/landing/proof";
|
|
1306
|
+
if (!inside(runtime.receipt.path, producerRoot)) {
|
|
1307
|
+
fail("browser_runtime", `${runtime.id} receipt must live under producer-owned ${producerRoot}/`);
|
|
1308
|
+
continue;
|
|
1309
|
+
}
|
|
1310
|
+
if (!checkArtifact(runtime.receipt, "surface_coverage")) continue;
|
|
1311
|
+
if (runtime.candidateSha256 !== report.candidate.sha256) fail("browser_runtime", `${runtime.id} does not identify this candidate`);
|
|
1312
|
+
const receipt = attempt("browser_runtime", () =>
|
|
1313
|
+
designBrowserRuntimeProofReceiptSchema.parse(JSON.parse(bytes(root, runtime.receipt.path).toString("utf8"))),
|
|
1314
|
+
);
|
|
1315
|
+
if (!receipt) continue;
|
|
1316
|
+
browserRuntimeReceiptById.set(runtime.id, receipt);
|
|
1317
|
+
|
|
1318
|
+
const mappedSurfaces = report.surfaces.flatMap((review) => {
|
|
1319
|
+
if (!review.runtimeIds?.includes(runtime.id)) return [];
|
|
1320
|
+
const declared = scope.surfaces.find((surface) => surface.id === review.id);
|
|
1321
|
+
return declared && declared.kind !== "native" ? [declared] : [];
|
|
1322
|
+
});
|
|
1323
|
+
const expectedSourceRoots = [...new Set(mappedSurfaces.flatMap((surface) => surface.implementationPaths))].sort();
|
|
1324
|
+
const currentSourceFingerprint = currentBrowserSource(runtime.id, receipt.source, expectedSourceRoots);
|
|
1325
|
+
|
|
1326
|
+
const startedAt = time(receipt.startedAt);
|
|
1327
|
+
const launchStartedAt = time(receipt.launch.startedAt);
|
|
1328
|
+
const launchFinishedAt = time(receipt.launch.finishedAt);
|
|
1329
|
+
const navigationStartedAt = time(receipt.navigation.startedAt);
|
|
1330
|
+
const navigationFinishedAt = time(receipt.navigation.finishedAt);
|
|
1331
|
+
const finishedAt = time(receipt.finishedAt);
|
|
1332
|
+
if (
|
|
1333
|
+
startedAt < time(report.candidate.producedAt) ||
|
|
1334
|
+
launchStartedAt < startedAt ||
|
|
1335
|
+
launchFinishedAt < launchStartedAt ||
|
|
1336
|
+
navigationStartedAt < launchFinishedAt ||
|
|
1337
|
+
navigationFinishedAt < navigationStartedAt ||
|
|
1338
|
+
finishedAt < navigationFinishedAt ||
|
|
1339
|
+
finishedAt > time(report.reviewedAt)
|
|
1340
|
+
)
|
|
1341
|
+
fail("browser_runtime", `${runtime.id} must launch and navigate after candidate production and before review`);
|
|
1342
|
+
|
|
1343
|
+
for (const evidence of [receipt.build.manifest, receipt.served.resourceManifest, receipt.launch.transcript, receipt.navigation.transcript])
|
|
1344
|
+
checkArtifact(evidence);
|
|
1345
|
+
const runtimeEvidencePaths = [
|
|
1346
|
+
receipt.build.manifest.path,
|
|
1347
|
+
receipt.served.resourceManifest.path,
|
|
1348
|
+
receipt.launch.transcript.path,
|
|
1349
|
+
receipt.navigation.transcript.path,
|
|
1350
|
+
];
|
|
1351
|
+
if (runtimeEvidencePaths.some((relative) => !inside(relative, producerRoot)) || new Set(runtimeEvidencePaths).size !== runtimeEvidencePaths.length)
|
|
1352
|
+
fail("browser_runtime", `${runtime.id} requires distinct producer-owned build, resource, launch, and navigation evidence`);
|
|
1353
|
+
|
|
1354
|
+
const buildManifest = attempt("browser_runtime", () =>
|
|
1355
|
+
designBrowserBuildManifestSchema.parse(JSON.parse(bytes(root, receipt.build.manifest.path).toString("utf8"))),
|
|
1356
|
+
);
|
|
1357
|
+
const resourceManifest = attempt("browser_runtime", () =>
|
|
1358
|
+
designBrowserResourceManifestSchema.parse(JSON.parse(bytes(root, receipt.served.resourceManifest.path).toString("utf8"))),
|
|
1359
|
+
);
|
|
1360
|
+
if (!buildManifest || !resourceManifest) continue;
|
|
1361
|
+
|
|
1362
|
+
const buildPaths = buildManifest.files.map((entry) => entry.path);
|
|
1363
|
+
if (new Set(buildPaths).size !== buildPaths.length) fail("browser_runtime", `${runtime.id} build manifest contains duplicate file paths`);
|
|
1364
|
+
if (!buildManifest.files.some((entry) => sameArtifact(entry, buildManifest.entrypoint)))
|
|
1365
|
+
fail("browser_runtime", `${runtime.id} build entrypoint is not one of its exact manifest files`);
|
|
1366
|
+
for (const file of buildManifest.files) {
|
|
1367
|
+
if (!expectedSourceRoots.some((sourceRoot) => inside(file.path, sourceRoot)))
|
|
1368
|
+
fail("browser_runtime", `${runtime.id} build file is outside its authored browser implementation paths: ${file.path}`);
|
|
1369
|
+
checkArtifact(file);
|
|
1370
|
+
}
|
|
1371
|
+
const currentBuildFingerprint = designBrowserBuildFingerprint(buildManifest);
|
|
1372
|
+
|
|
1373
|
+
const servedOrigin = parsedBrowserUrl(receipt.served.origin, runtime.id, "served origin");
|
|
1374
|
+
const servedUrl = parsedBrowserUrl(receipt.served.url, runtime.id, "served URL");
|
|
1375
|
+
const requestedUrl = parsedBrowserUrl(receipt.navigation.requestedUrl, runtime.id, "requested navigation URL");
|
|
1376
|
+
const finalUrl = parsedBrowserUrl(receipt.navigation.finalUrl, runtime.id, "final navigation URL");
|
|
1377
|
+
const manifestOrigin = parsedBrowserUrl(resourceManifest.origin, runtime.id, "resource-manifest origin");
|
|
1378
|
+
const documentUrl = parsedBrowserUrl(resourceManifest.documentUrl, runtime.id, "resource-manifest document URL");
|
|
1379
|
+
if (
|
|
1380
|
+
servedOrigin &&
|
|
1381
|
+
servedUrl &&
|
|
1382
|
+
requestedUrl &&
|
|
1383
|
+
finalUrl &&
|
|
1384
|
+
manifestOrigin &&
|
|
1385
|
+
documentUrl &&
|
|
1386
|
+
(receipt.served.origin !== servedOrigin.origin ||
|
|
1387
|
+
servedUrl.origin !== servedOrigin.origin ||
|
|
1388
|
+
requestedUrl.origin !== servedOrigin.origin ||
|
|
1389
|
+
finalUrl.origin !== servedOrigin.origin ||
|
|
1390
|
+
manifestOrigin.origin !== servedOrigin.origin ||
|
|
1391
|
+
documentUrl.origin !== servedOrigin.origin ||
|
|
1392
|
+
receipt.served.url !== receipt.navigation.finalUrl ||
|
|
1393
|
+
resourceManifest.origin !== receipt.served.origin ||
|
|
1394
|
+
resourceManifest.documentUrl !== receipt.served.url)
|
|
1395
|
+
)
|
|
1396
|
+
fail("browser_runtime", `${runtime.id} origin, served URL, navigation, and resource manifest do not identify one page`);
|
|
1397
|
+
|
|
1398
|
+
const resourceUrls = resourceManifest.resources.map((resource) => resource.url);
|
|
1399
|
+
const resourceBuildPaths = resourceManifest.resources.map((resource) => resource.buildPath);
|
|
1400
|
+
if (new Set(resourceUrls).size !== resourceUrls.length || new Set(resourceBuildPaths).size !== resourceBuildPaths.length)
|
|
1401
|
+
fail("browser_runtime", `${runtime.id} resource manifest contains duplicate URLs or build paths`);
|
|
1402
|
+
for (const resource of resourceManifest.resources) {
|
|
1403
|
+
const parsed = parsedBrowserUrl(resource.url, runtime.id, `resource URL ${resource.url}`);
|
|
1404
|
+
if (parsed && servedOrigin && parsed.origin !== servedOrigin.origin)
|
|
1405
|
+
fail("browser_runtime", `${runtime.id} resource ${resource.url} is outside the served origin`);
|
|
1406
|
+
if (!inside(resource.response.path, producerRoot))
|
|
1407
|
+
fail("browser_runtime", `${runtime.id} resource response must remain under producer-owned ${producerRoot}/`);
|
|
1408
|
+
checkArtifact(resource.response);
|
|
1409
|
+
const buildFile = buildManifest.files.find((entry) => entry.path === resource.buildPath);
|
|
1410
|
+
if (!buildFile || buildFile.sha256 !== resource.response.sha256)
|
|
1411
|
+
fail("browser_runtime", `${runtime.id} served resource ${resource.url} does not match its current build file`);
|
|
1412
|
+
}
|
|
1413
|
+
exactIds(resourceBuildPaths, buildPaths, `${runtime.id} served build resources`);
|
|
1414
|
+
const documentResource = resourceManifest.resources.find((resource) => resource.url === resourceManifest.documentUrl);
|
|
1415
|
+
if (!documentResource || documentResource.buildPath !== buildManifest.entrypoint.path)
|
|
1416
|
+
fail("browser_runtime", `${runtime.id} served document does not match the current build entrypoint`);
|
|
1417
|
+
|
|
1418
|
+
if (
|
|
1419
|
+
receipt.candidateSha256 !== report.candidate.sha256 ||
|
|
1420
|
+
runtime.candidateSha256 !== receipt.candidateSha256 ||
|
|
1421
|
+
runtime.sourceFingerprint !== receipt.source.fingerprint ||
|
|
1422
|
+
buildManifest.sourceFingerprint !== receipt.source.fingerprint ||
|
|
1423
|
+
currentSourceFingerprint !== receipt.source.fingerprint ||
|
|
1424
|
+
runtime.buildFingerprint !== receipt.build.fingerprint ||
|
|
1425
|
+
runtime.buildFingerprint !== currentBuildFingerprint ||
|
|
1426
|
+
runtime.origin !== receipt.served.origin ||
|
|
1427
|
+
runtime.url !== receipt.served.url ||
|
|
1428
|
+
runtime.browser.name !== receipt.context.browser.name ||
|
|
1429
|
+
runtime.browser.version !== receipt.context.browser.version ||
|
|
1430
|
+
runtime.browserContextId !== receipt.context.id ||
|
|
1431
|
+
runtime.os !== receipt.context.os ||
|
|
1432
|
+
runtime.launchTranscriptSha256 !== receipt.launch.transcript.sha256 ||
|
|
1433
|
+
runtime.navigationTranscriptSha256 !== receipt.navigation.transcript.sha256 ||
|
|
1434
|
+
resourceManifest.browserContextId !== receipt.context.id
|
|
1435
|
+
)
|
|
1436
|
+
fail("browser_runtime", `${runtime.id} candidate, source, build, origin, URL, browser context, or transcript identity does not match its launch receipt`);
|
|
1437
|
+
browserRuntimeReadyAt.set(runtime.id, finishedAt);
|
|
1438
|
+
}
|
|
1439
|
+
const nativeRuntimeById = new Map(report.nativeRuntimes.map((runtime) => [runtime.id, runtime]));
|
|
1440
|
+
const browserRuntimeById = new Map(report.browserRuntimes.map((runtime) => [runtime.id, runtime]));
|
|
1441
|
+
const resolvedReviewById = new Map<string, { captures: DesignCaptureReceipt[]; interactions: DesignInteractionReceipt[] }>();
|
|
1442
|
+
const receiptPaths = new Set<string>();
|
|
1443
|
+
for (const review of report.surfaces) {
|
|
1444
|
+
const declared = scope.surfaces.find((surface) => surface.id === review.id);
|
|
1445
|
+
const captures: DesignCaptureReceipt[] = [];
|
|
1446
|
+
const interactions: DesignInteractionReceipt[] = [];
|
|
1447
|
+
for (const reference of review.captures) {
|
|
1448
|
+
if (receiptPaths.has(reference.receipt.path)) fail("report_coverage", `Producer receipt may be referenced only once: ${reference.receipt.path}`);
|
|
1449
|
+
receiptPaths.add(reference.receipt.path);
|
|
1450
|
+
if (!checkArtifact(reference.receipt, "surface_coverage")) continue;
|
|
1451
|
+
const receipt = attempt(
|
|
1452
|
+
"surface_coverage",
|
|
1453
|
+
() => designCaptureReceiptSchema.parse(JSON.parse(bytes(root, reference.receipt.path).toString("utf8"))),
|
|
1454
|
+
reference.receipt.path,
|
|
1455
|
+
);
|
|
1456
|
+
if (!receipt) continue;
|
|
1457
|
+
if (!declared || receipt.surfaceId !== review.id || receipt.evidenceId !== reference.id) {
|
|
1458
|
+
fail("report_coverage", `${review.id}/${reference.id} does not reference a receipt for the same surface and evidence ID`);
|
|
1459
|
+
continue;
|
|
1460
|
+
}
|
|
1461
|
+
if (reference.receipt.path === receipt.artifact.path) {
|
|
1462
|
+
fail("surface_coverage", `${review.id}/${reference.id} receipt and capture artifact must be distinct producer files`);
|
|
1463
|
+
continue;
|
|
1464
|
+
}
|
|
1465
|
+
if (!checkArtifact(receipt.artifact, "surface_coverage")) continue;
|
|
1466
|
+
if (receipt.source === "native-runtime") {
|
|
1467
|
+
const runtime = nativeRuntimeById.get(receipt.runtimeId);
|
|
1468
|
+
if (!runtime) fail("surface_coverage", `${review.id}/${reference.id} has no current producer runtime`);
|
|
1469
|
+
else validateProducerBinding(reference, receipt.sessionId, receipt.artifact.path, NATIVE_EVIDENCE_WORKFLOW, nativeProducerRoot(runtime), "proof");
|
|
1470
|
+
} else {
|
|
1471
|
+
const runtime = browserRuntimeById.get(receipt.runtimeId);
|
|
1472
|
+
if (!runtime) fail("surface_coverage", `${review.id}/${reference.id} has no current browser runtime`);
|
|
1473
|
+
else validateProducerBinding(reference, receipt.sessionId, receipt.artifact.path, BROWSER_EVIDENCE_WORKFLOW, "growth/landing/proof", "growth/landing");
|
|
1474
|
+
}
|
|
1475
|
+
captures.push(receipt);
|
|
1476
|
+
}
|
|
1477
|
+
for (const reference of review.interactions) {
|
|
1478
|
+
if (receiptPaths.has(reference.receipt.path)) fail("report_coverage", `Producer receipt may be referenced only once: ${reference.receipt.path}`);
|
|
1479
|
+
receiptPaths.add(reference.receipt.path);
|
|
1480
|
+
if (!checkArtifact(reference.receipt, "surface_coverage")) continue;
|
|
1481
|
+
const receipt = attempt(
|
|
1482
|
+
"surface_coverage",
|
|
1483
|
+
() => designInteractionReceiptSchema.parse(JSON.parse(bytes(root, reference.receipt.path).toString("utf8"))),
|
|
1484
|
+
reference.receipt.path,
|
|
1485
|
+
);
|
|
1486
|
+
if (!receipt) continue;
|
|
1487
|
+
if (!declared || receipt.surfaceId !== review.id || receipt.evidenceId !== reference.id) {
|
|
1488
|
+
fail("report_coverage", `${review.id}/${reference.id} does not reference a receipt for the same surface and evidence ID`);
|
|
1489
|
+
continue;
|
|
1490
|
+
}
|
|
1491
|
+
if (reference.receipt.path === receipt.artifact.path) {
|
|
1492
|
+
fail("surface_coverage", `${review.id}/${reference.id} receipt and interaction artifact must be distinct producer files`);
|
|
1493
|
+
continue;
|
|
1494
|
+
}
|
|
1495
|
+
if (!checkArtifact(receipt.artifact, "surface_coverage")) continue;
|
|
1496
|
+
if (receipt.source === "native-runtime") {
|
|
1497
|
+
const runtime = nativeRuntimeById.get(receipt.runtimeId);
|
|
1498
|
+
if (!runtime) fail("surface_coverage", `${review.id}/${reference.id} has no current producer runtime`);
|
|
1499
|
+
else validateProducerBinding(reference, receipt.sessionId, receipt.artifact.path, NATIVE_EVIDENCE_WORKFLOW, nativeProducerRoot(runtime), "proof");
|
|
1500
|
+
} else {
|
|
1501
|
+
const runtime = browserRuntimeById.get(receipt.runtimeId);
|
|
1502
|
+
if (!runtime) fail("surface_coverage", `${review.id}/${reference.id} has no current browser runtime`);
|
|
1503
|
+
else validateProducerBinding(reference, receipt.sessionId, receipt.artifact.path, BROWSER_EVIDENCE_WORKFLOW, "growth/landing/proof", "growth/landing");
|
|
1504
|
+
}
|
|
1505
|
+
interactions.push(receipt);
|
|
1506
|
+
}
|
|
1507
|
+
resolvedReviewById.set(review.id, { captures, interactions });
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
const evidenceIndex = new Map<string, { surfaceId: string; kind: "native" | "landing" | "web"; type: "capture" | "interaction" }>();
|
|
1511
|
+
for (const review of report.surfaces) {
|
|
1512
|
+
const declared = scope.surfaces.find((surface) => surface.id === review.id);
|
|
1513
|
+
if (!declared) continue;
|
|
1514
|
+
for (const [type, entries] of [
|
|
1515
|
+
["capture", review.captures],
|
|
1516
|
+
["interaction", review.interactions],
|
|
1517
|
+
] as const) {
|
|
1518
|
+
for (const entry of entries) {
|
|
1519
|
+
if (evidenceIndex.has(entry.id)) fail("report_coverage", `Evidence ID must be globally unique: ${entry.id}`);
|
|
1520
|
+
else evidenceIndex.set(entry.id, { surfaceId: review.id, kind: declared.kind, type });
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
const usedNativeRuntimeIds = new Set<string>();
|
|
1525
|
+
const usedBrowserRuntimeIds = new Set<string>();
|
|
1526
|
+
const runtimeIdFor = (evidence: DesignCaptureReceipt | DesignInteractionReceipt): string => evidence.runtimeId;
|
|
1527
|
+
|
|
1528
|
+
const inventory = isRecord(studio) && isRecord(studio.surfaces) ? studio.surfaces : {};
|
|
1529
|
+
const mobile = isRecord(inventory.mobileApp) ? inventory.mobileApp : {};
|
|
1530
|
+
const platforms = Array.isArray(mobile.platforms) ? mobile.platforms.filter((p): p is string => typeof p === "string") : [];
|
|
1531
|
+
const supportedNativePlatforms = new Set(["ios", "android"]);
|
|
1532
|
+
for (const platform of platforms)
|
|
1533
|
+
if (!supportedNativePlatforms.has(platform))
|
|
1534
|
+
fail(
|
|
1535
|
+
"inventory",
|
|
1536
|
+
`Unsupported native target ${platform}; mobileApp.platforms accepts target operating systems ios or android, while stack names belong in mobileApp.stack`,
|
|
1537
|
+
"studio/seed/business.json",
|
|
1538
|
+
);
|
|
1539
|
+
for (const platform of platforms.filter((value) => supportedNativePlatforms.has(value)))
|
|
1540
|
+
if (!report.nativeRuntimes.some((runtime) => runtime.platform === platform))
|
|
1541
|
+
fail("surface_coverage", `Selected native platform ${platform} has no current installed runtime receipt`);
|
|
1542
|
+
const inventoryRows = (key: string): Record<string, unknown>[] => {
|
|
1543
|
+
const rows = key === "native" ? mobile.screens : inventory[key];
|
|
1544
|
+
if (!Array.isArray(rows) || rows.some((row) => !isRecord(row) || typeof row.id !== "string")) {
|
|
1545
|
+
fail("inventory", `Invalid ${key} surface inventory`, "studio/seed/business.json");
|
|
1546
|
+
return [];
|
|
1547
|
+
}
|
|
1548
|
+
return rows.filter(isRecord);
|
|
1549
|
+
};
|
|
1550
|
+
const native = inventoryRows("native");
|
|
1551
|
+
const landing = inventoryRows("landingPages");
|
|
1552
|
+
const web = inventoryRows("webFunnels");
|
|
1553
|
+
const known = [...native, ...landing, ...web];
|
|
1554
|
+
if (!native.some((row) => row.status !== "not_needed") || !landing.some((row) => row.status !== "not_needed") || !platforms.length)
|
|
1555
|
+
fail("inventory", "Complete consumer design requires native screens, selected native platforms, and a landing page", "studio/seed/business.json");
|
|
1556
|
+
if (
|
|
1557
|
+
new Set(known.map((row) => row.id)).size !== known.length ||
|
|
1558
|
+
new Set(platforms).size !== platforms.length ||
|
|
1559
|
+
new Set(scope.exclusions.map((entry) => entry.surfaceId)).size !== scope.exclusions.length
|
|
1560
|
+
)
|
|
1561
|
+
fail("inventory", "Surface IDs, selected platforms, and exclusions must be unique");
|
|
1562
|
+
for (const row of known) {
|
|
1563
|
+
const mapped = scope.surfaces.filter((surface) => surface.surfaceId === row.id);
|
|
1564
|
+
const exclusion = scope.exclusions.find((entry) => entry.surfaceId === row.id);
|
|
1565
|
+
if (row.status === "not_needed") {
|
|
1566
|
+
if (!exclusion || mapped.length) fail("scope", `Not-needed surface ${String(row.id)} requires an authored exclusion and no review mapping`, "DESIGN.md");
|
|
1567
|
+
} else if (row.status !== "ready")
|
|
1568
|
+
fail("surface_not_ready", `Surface ${String(row.id)} is ${String(row.status)}; blocked or draft work is incomplete`, "studio/seed/business.json");
|
|
1569
|
+
else if (exclusion) fail("scope", `Required surface ${String(row.id)} cannot be excluded in DESIGN.md`, "DESIGN.md");
|
|
1570
|
+
else if (native.includes(row)) {
|
|
1571
|
+
for (const platform of platforms)
|
|
1572
|
+
if (!mapped.some((surface) => surface.kind === "native" && surface.platform === platform && surface.viewport === "native"))
|
|
1573
|
+
fail("surface_coverage", `Missing native surface ${String(row.id)} on ${platform}`);
|
|
1574
|
+
} else {
|
|
1575
|
+
for (const viewport of ["mobile", "desktop"])
|
|
1576
|
+
if (
|
|
1577
|
+
!mapped.some((surface) => surface.kind === (landing.includes(row) ? "landing" : "web") && surface.platform === "web" && surface.viewport === viewport)
|
|
1578
|
+
)
|
|
1579
|
+
fail("surface_coverage", `Missing ${String(row.id)} ${viewport} browser surface`);
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
for (const exclusion of scope.exclusions)
|
|
1583
|
+
if (!known.some((row) => row.id === exclusion.surfaceId && row.status === "not_needed"))
|
|
1584
|
+
fail("scope", `Unknown or required surface exclusion ${exclusion.surfaceId}`, "DESIGN.md");
|
|
1585
|
+
const productScreens =
|
|
1586
|
+
isRecord(product) && Array.isArray(product.instances)
|
|
1587
|
+
? product.instances.filter((row) => isRecord(row) && row.class_id === "class.screen").map((row) => String((row as Record<string, unknown>).id))
|
|
1588
|
+
: [];
|
|
1589
|
+
for (const id of productScreens)
|
|
1590
|
+
if (!scope.surfaces.some((surface) => surface.productScreenIds.includes(id)))
|
|
1591
|
+
fail("surface_coverage", `Accepted product screen ${id} has no reviewed surface`, "DESIGN.md");
|
|
1592
|
+
|
|
1593
|
+
for (const surface of scope.surfaces) {
|
|
1594
|
+
const row = known.find((entry) => entry.id === surface.surfaceId);
|
|
1595
|
+
if (!row || row.status === "not_needed") fail("scope", `Unknown or excluded surface mapping ${surface.surfaceId}`, "DESIGN.md");
|
|
1596
|
+
for (const id of surface.productScreenIds) if (!productScreens.includes(id)) fail("scope", `Unknown product screen ${id}`, "DESIGN.md");
|
|
1597
|
+
if (
|
|
1598
|
+
surface.kind === "native"
|
|
1599
|
+
? !platforms.includes(surface.platform) || surface.viewport !== "native" || surface.routePath !== undefined || !native.includes(row ?? {})
|
|
1600
|
+
: surface.platform !== "web" ||
|
|
1601
|
+
surface.viewport === "native" ||
|
|
1602
|
+
surface.routePath === undefined ||
|
|
1603
|
+
!(surface.kind === "landing" ? landing : web).includes(row ?? {})
|
|
1604
|
+
)
|
|
1605
|
+
fail("scope", `Surface ${surface.id} has an incorrect native/web platform mapping`, "DESIGN.md");
|
|
1606
|
+
const mandatory = ["default", ...(surface.kind === "native" ? NATIVE_STATES : WEB_STATES)];
|
|
1607
|
+
for (const state of mandatory) if (!surface.states.includes(state)) fail("states", `${surface.id} requires ${state} evidence`, "DESIGN.md");
|
|
1608
|
+
for (const state of STATE_FLOOR)
|
|
1609
|
+
if (!surface.states.includes(state) && !surface.stateExclusions.some((entry) => entry.state === state))
|
|
1610
|
+
fail("states", `${surface.id} must cover or explain non-applicability of ${state}`, "DESIGN.md");
|
|
1611
|
+
if (new Set(surface.stateExclusions.map((entry) => entry.state)).size !== surface.stateExclusions.length)
|
|
1612
|
+
fail("states", `${surface.id} has duplicate state exclusions`, "DESIGN.md");
|
|
1613
|
+
for (const entry of surface.stateExclusions)
|
|
1614
|
+
if (surface.states.includes(entry.state) || !STATE_FLOOR.includes(entry.state) || mandatory.includes(entry.state))
|
|
1615
|
+
fail("states", `${surface.id} has contradictory or unknown state exclusion ${entry.state}`, "DESIGN.md");
|
|
1616
|
+
if (new Set(surface.interactions.map((entry) => entry.id)).size !== surface.interactions.length)
|
|
1617
|
+
fail("scope", `${surface.id} has duplicate interaction IDs`, "DESIGN.md");
|
|
1618
|
+
const review = report.surfaces.find((entry) => entry.id === surface.id);
|
|
1619
|
+
if (!review) continue;
|
|
1620
|
+
const resolvedReview = resolvedReviewById.get(surface.id) ?? { captures: [], interactions: [] };
|
|
1621
|
+
if (surface.kind === "native") {
|
|
1622
|
+
const evidenceRuntimeIds = [...new Set([...resolvedReview.captures, ...resolvedReview.interactions].map((evidence) => runtimeIdFor(evidence)))];
|
|
1623
|
+
if (!review.runtimeIds) fail("native_runtime", `${surface.id} must declare every installed native runtime used by its evidence`);
|
|
1624
|
+
else exactIds(review.runtimeIds, evidenceRuntimeIds, `${surface.id} native runtimes`);
|
|
1625
|
+
for (const evidence of [...resolvedReview.captures, ...resolvedReview.interactions]) {
|
|
1626
|
+
const runtimeId = runtimeIdFor(evidence);
|
|
1627
|
+
const runtime = nativeRuntimeById.get(runtimeId);
|
|
1628
|
+
if (!runtime) {
|
|
1629
|
+
fail("native_runtime", `${surface.id}/${evidence.evidenceId} must link to a registered installed native runtime`);
|
|
1630
|
+
continue;
|
|
1631
|
+
}
|
|
1632
|
+
usedNativeRuntimeIds.add(runtime.id);
|
|
1633
|
+
if (runtime.platform !== surface.platform)
|
|
1634
|
+
fail("native_runtime", `${surface.id}/${evidence.evidenceId} runtime platform does not match its authored surface`);
|
|
1635
|
+
if (!runtimeProofFinishedAt.has(runtime.id))
|
|
1636
|
+
fail("native_runtime", `${surface.id}/${evidence.evidenceId} runtime does not have a valid current install receipt`);
|
|
1637
|
+
}
|
|
1638
|
+
} else {
|
|
1639
|
+
const evidenceRuntimeIds = [...new Set([...resolvedReview.captures, ...resolvedReview.interactions].map((evidence) => runtimeIdFor(evidence)))];
|
|
1640
|
+
if (!review.runtimeIds) fail("browser_runtime", `${surface.id} must declare every browser runtime used by its evidence`);
|
|
1641
|
+
else exactIds(review.runtimeIds, evidenceRuntimeIds, `${surface.id} browser runtimes`);
|
|
1642
|
+
for (const evidence of [...resolvedReview.captures, ...resolvedReview.interactions]) {
|
|
1643
|
+
const runtime = browserRuntimeById.get(evidence.runtimeId);
|
|
1644
|
+
if (!runtime) {
|
|
1645
|
+
fail("browser_runtime", `${surface.id}/${evidence.evidenceId} must link to a registered browser runtime`);
|
|
1646
|
+
continue;
|
|
1647
|
+
}
|
|
1648
|
+
usedBrowserRuntimeIds.add(runtime.id);
|
|
1649
|
+
const receipt = browserRuntimeReceiptById.get(runtime.id);
|
|
1650
|
+
if (!receipt || !browserRuntimeReadyAt.has(runtime.id))
|
|
1651
|
+
fail("browser_runtime", `${surface.id}/${evidence.evidenceId} browser runtime does not have a valid current launch receipt`);
|
|
1652
|
+
const servedUrl = parsedBrowserUrl(runtime.url, runtime.id, "served URL");
|
|
1653
|
+
if (servedUrl && servedUrl.pathname !== surface.routePath)
|
|
1654
|
+
fail("browser_runtime", `${surface.id}/${evidence.evidenceId} runtime URL does not match its authored route ${surface.routePath}`);
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
if (review.rubric.path !== surface.rubricPath) fail("rubric", `${surface.id} reviewed a different rubric than DESIGN.md specifies`);
|
|
1658
|
+
checkArtifact(review.rubric);
|
|
1659
|
+
const rubric = attempt("rubric", () => frozenRubric(root, surface.rubricPath));
|
|
1660
|
+
if (!rubric) continue;
|
|
1661
|
+
if (time(rubric.frozenAt) > time(report.candidate.producedAt)) fail("rubric_chronology", `${surface.id} rubric must be frozen before candidate production`);
|
|
1662
|
+
if (
|
|
1663
|
+
new Set(rubric.criteria.map((entry) => entry.id)).size !== rubric.criteria.length ||
|
|
1664
|
+
new Set(rubric.references.map((entry) => entry.id)).size !== rubric.references.length
|
|
1665
|
+
)
|
|
1666
|
+
fail("rubric", `${surface.id} rubric has duplicate criteria or reference IDs`);
|
|
1667
|
+
for (const facet of DESIGN_FACETS)
|
|
1668
|
+
if (!rubric.criteria.some((criterion) => criterion.facet === facet)) fail("rubric", `${surface.id} rubric omits ${facet}`);
|
|
1669
|
+
if (!rubric.references.some((ref) => ref.kind === "visual") || !rubric.references.some((ref) => ref.kind !== "visual"))
|
|
1670
|
+
fail("calibration", `${surface.id} needs visual and complementary behavior/documentation calibration`);
|
|
1671
|
+
rubric.references.forEach((ref) => {
|
|
1672
|
+
checkArtifact(ref.artifact);
|
|
1673
|
+
if (ref.kind === "visual" && !attempt("reference_image", () => imageDimensions(bytes(root, ref.artifact.path))))
|
|
1674
|
+
fail("reference_image", `${surface.id}/${ref.id} needs an inspected PNG/JPEG image, not a prose-only visual reference`);
|
|
1675
|
+
});
|
|
1676
|
+
exactIds(
|
|
1677
|
+
review.criteria.map((entry) => entry.id),
|
|
1678
|
+
rubric.criteria.map((entry) => entry.id),
|
|
1679
|
+
`${surface.id} criterion judgments`,
|
|
1680
|
+
);
|
|
1681
|
+
const captureKeys = resolvedReview.captures.map((capture) => `${capture.state}:${capture.locale}`);
|
|
1682
|
+
exactIds(
|
|
1683
|
+
captureKeys,
|
|
1684
|
+
surface.states.flatMap((state) => surface.locales.map((locale) => `${state}:${locale}`)),
|
|
1685
|
+
`${surface.id} captures`,
|
|
1686
|
+
"surface_coverage",
|
|
1687
|
+
);
|
|
1688
|
+
const evidenceIds = [...resolvedReview.captures, ...resolvedReview.interactions].map((entry) => entry.evidenceId);
|
|
1689
|
+
if (new Set(evidenceIds).size !== evidenceIds.length) fail("report_coverage", `${surface.id} evidence IDs must be unique`);
|
|
1690
|
+
for (const capture of resolvedReview.captures) {
|
|
1691
|
+
checkArtifact(capture.artifact);
|
|
1692
|
+
const size = attempt("capture", () => imageDimensions(bytes(root, capture.artifact.path)));
|
|
1693
|
+
if (!size || size.width !== capture.dimensions.width || size.height !== capture.dimensions.height || Math.min(size.width, size.height) < 240)
|
|
1694
|
+
fail("capture", `${surface.id}/${capture.evidenceId} must be a PNG/JPEG runtime capture with correct dimensions, at least 240 pixels per side`);
|
|
1695
|
+
if (
|
|
1696
|
+
Math.round(capture.viewport.width * capture.scale) !== capture.dimensions.width ||
|
|
1697
|
+
Math.round(capture.viewport.height * capture.scale) !== capture.dimensions.height
|
|
1698
|
+
)
|
|
1699
|
+
fail("capture_viewport", `${surface.id}/${capture.evidenceId} pixel dimensions do not match its viewport and scale`);
|
|
1700
|
+
if ((surface.viewport === "mobile" && capture.viewport.width > 600) || (surface.viewport === "desktop" && capture.viewport.width < 900))
|
|
1701
|
+
fail("capture_viewport", `${surface.id}/${capture.evidenceId} does not demonstrate its declared mobile/desktop composition`);
|
|
1702
|
+
if (capture.source !== (surface.kind === "native" ? "native-runtime" : "browser-runtime"))
|
|
1703
|
+
fail("capture", `${surface.id} needs actual ${surface.kind === "native" ? "native" : "browser"} capture provenance`);
|
|
1704
|
+
if (capture.platform !== surface.platform) fail("capture_platform", `${surface.id}/${capture.evidenceId} was captured on a different platform`);
|
|
1705
|
+
if (
|
|
1706
|
+
capture.candidateSha256 !== report.candidate.sha256 ||
|
|
1707
|
+
time(capture.capturedAt) < time(report.candidate.producedAt) ||
|
|
1708
|
+
time(capture.capturedAt) > time(report.reviewedAt)
|
|
1709
|
+
)
|
|
1710
|
+
fail("capture_chronology", `${surface.id}/${capture.evidenceId} capture must belong to this candidate and precede review`);
|
|
1711
|
+
const captureRuntime = capture.source === "native-runtime" ? nativeRuntimeById.get(capture.runtimeId) : undefined;
|
|
1712
|
+
if (surface.kind === "native" && capture.source === "native-runtime" && captureRuntime) {
|
|
1713
|
+
if (
|
|
1714
|
+
capture.device.id !== captureRuntime.deviceId ||
|
|
1715
|
+
time(capture.capturedAt) < (runtimeProofFinishedAt.get(captureRuntime.id) ?? Number.POSITIVE_INFINITY)
|
|
1716
|
+
)
|
|
1717
|
+
fail(
|
|
1718
|
+
"native_runtime",
|
|
1719
|
+
`${surface.id}/${capture.evidenceId} must come from the receipt-verified device after the current binary was installed and launched`,
|
|
1720
|
+
);
|
|
1721
|
+
if (
|
|
1722
|
+
(captureRuntime.platform === "android" || captureRuntime.target === "physical-device") &&
|
|
1723
|
+
(capture.device.modelIdentifier !== captureRuntime.deviceModelIdentifier ||
|
|
1724
|
+
capture.device.osVersion !== captureRuntime.osVersion ||
|
|
1725
|
+
capture.device.osBuild !== captureRuntime.osBuild)
|
|
1726
|
+
)
|
|
1727
|
+
fail("native_runtime", `${surface.id}/${capture.evidenceId} device and OS must match its installed-device receipt`);
|
|
1728
|
+
if (capture.settings.screenReader && captureRuntime.target !== "physical-device")
|
|
1729
|
+
fail(
|
|
1730
|
+
"native_runtime",
|
|
1731
|
+
`${surface.id}/${capture.evidenceId} screen-reader evidence requires a receipt-verified physical ${captureRuntime.platform === "ios" ? "iPhone" : "Android device"}`,
|
|
1732
|
+
);
|
|
1733
|
+
} else if (surface.kind !== "native" && capture.source === "browser-runtime") {
|
|
1734
|
+
const browserRuntime = browserRuntimeById.get(capture.runtimeId);
|
|
1735
|
+
const browserReceipt = browserRuntime ? browserRuntimeReceiptById.get(browserRuntime.id) : undefined;
|
|
1736
|
+
if (
|
|
1737
|
+
!browserRuntime ||
|
|
1738
|
+
!browserReceipt ||
|
|
1739
|
+
capture.browser.name !== browserRuntime.browser.name ||
|
|
1740
|
+
capture.browser.version !== browserRuntime.browser.version ||
|
|
1741
|
+
capture.browserContextId !== browserRuntime.browserContextId ||
|
|
1742
|
+
capture.os !== browserRuntime.os ||
|
|
1743
|
+
capture.sessionId !== browserReceipt.sessionId ||
|
|
1744
|
+
time(capture.capturedAt) < (browserRuntimeReadyAt.get(capture.runtimeId) ?? Number.POSITIVE_INFINITY)
|
|
1745
|
+
)
|
|
1746
|
+
fail("browser_runtime", `${surface.id}/${capture.evidenceId} must come from the receipt-verified browser context after the current page loaded`);
|
|
1747
|
+
}
|
|
1748
|
+
if (
|
|
1749
|
+
(capture.state === "reduced-motion" && !capture.settings.reducedMotion) ||
|
|
1750
|
+
(capture.state === "large-text" && !capture.settings.largeText) ||
|
|
1751
|
+
(capture.state === "screen-reader") !== capture.settings.screenReader ||
|
|
1752
|
+
(capture.state === "no-js" && capture.settings.javascript)
|
|
1753
|
+
)
|
|
1754
|
+
fail("capture_settings", `${surface.id}/${capture.evidenceId} settings contradict the tested state`);
|
|
1755
|
+
}
|
|
1756
|
+
exactIds(
|
|
1757
|
+
resolvedReview.interactions.map((entry) => `${entry.interactionId}:${entry.locale}`),
|
|
1758
|
+
surface.interactions.flatMap((entry) => surface.locales.map((locale) => `${entry.id}:${locale}`)),
|
|
1759
|
+
`${surface.id} interactions`,
|
|
1760
|
+
"surface_coverage",
|
|
1761
|
+
);
|
|
1762
|
+
for (const interaction of resolvedReview.interactions) {
|
|
1763
|
+
checkArtifact(interaction.artifact);
|
|
1764
|
+
if (
|
|
1765
|
+
interaction.candidateSha256 !== report.candidate.sha256 ||
|
|
1766
|
+
time(interaction.executedAt) < time(report.candidate.producedAt) ||
|
|
1767
|
+
time(interaction.executedAt) > time(report.reviewedAt)
|
|
1768
|
+
)
|
|
1769
|
+
fail("interaction_chronology", `${surface.id}/${interaction.evidenceId} interaction must belong to this candidate and precede review`);
|
|
1770
|
+
if (interaction.source !== (surface.kind === "native" ? "native-runtime" : "browser-runtime") || interaction.platform !== surface.platform)
|
|
1771
|
+
fail("interaction", `${surface.id}/${interaction.evidenceId} machine identity does not match its authored surface`);
|
|
1772
|
+
const interactionRuntime = interaction.source === "native-runtime" ? nativeRuntimeById.get(interaction.runtimeId) : undefined;
|
|
1773
|
+
if (surface.kind === "native" && interaction.source === "native-runtime" && interactionRuntime) {
|
|
1774
|
+
if (time(interaction.executedAt) < (runtimeProofFinishedAt.get(interactionRuntime.id) ?? Number.POSITIVE_INFINITY))
|
|
1775
|
+
fail("native_runtime", `${surface.id}/${interaction.evidenceId} must execute after the current binary was installed and launched`);
|
|
1776
|
+
if (
|
|
1777
|
+
interaction.device.id !== interactionRuntime.deviceId ||
|
|
1778
|
+
((interactionRuntime.platform === "android" || interactionRuntime.target === "physical-device") &&
|
|
1779
|
+
(interaction.device.modelIdentifier !== interactionRuntime.deviceModelIdentifier ||
|
|
1780
|
+
interaction.device.osVersion !== interactionRuntime.osVersion ||
|
|
1781
|
+
interaction.device.osBuild !== interactionRuntime.osBuild))
|
|
1782
|
+
)
|
|
1783
|
+
fail("native_runtime", `${surface.id}/${interaction.evidenceId} device and OS must match its installed-device receipt`);
|
|
1784
|
+
const citedCaptures = interaction.captureIds.flatMap((id) => resolvedReview.captures.filter((capture) => capture.evidenceId === id));
|
|
1785
|
+
if (citedCaptures.some((capture) => capture.source !== "native-runtime" || capture.runtimeId !== interactionRuntime.id))
|
|
1786
|
+
fail("native_runtime", `${surface.id}/${interaction.evidenceId} can cite only captures from the same receipt-verified runtime`);
|
|
1787
|
+
if (citedCaptures.some((capture) => capture.settings.screenReader) && interactionRuntime.target !== "physical-device")
|
|
1788
|
+
fail(
|
|
1789
|
+
"native_runtime",
|
|
1790
|
+
`${surface.id}/${interaction.evidenceId} screen-reader interaction evidence requires a receipt-verified physical ${interactionRuntime.platform === "ios" ? "iPhone" : "Android device"}`,
|
|
1791
|
+
);
|
|
1792
|
+
} else if (surface.kind !== "native" && interaction.source === "browser-runtime") {
|
|
1793
|
+
const browserRuntime = browserRuntimeById.get(interaction.runtimeId);
|
|
1794
|
+
const browserReceipt = browserRuntime ? browserRuntimeReceiptById.get(browserRuntime.id) : undefined;
|
|
1795
|
+
const citedCaptures = interaction.captureIds.flatMap((id) => resolvedReview.captures.filter((capture) => capture.evidenceId === id));
|
|
1796
|
+
if (
|
|
1797
|
+
!browserRuntime ||
|
|
1798
|
+
!browserReceipt ||
|
|
1799
|
+
interaction.browser.name !== browserRuntime.browser.name ||
|
|
1800
|
+
interaction.browser.version !== browserRuntime.browser.version ||
|
|
1801
|
+
interaction.browserContextId !== browserRuntime.browserContextId ||
|
|
1802
|
+
interaction.os !== browserRuntime.os ||
|
|
1803
|
+
interaction.sessionId !== browserReceipt.sessionId ||
|
|
1804
|
+
time(interaction.executedAt) < (browserRuntimeReadyAt.get(interaction.runtimeId) ?? Number.POSITIVE_INFINITY) ||
|
|
1805
|
+
citedCaptures.some(
|
|
1806
|
+
(capture) =>
|
|
1807
|
+
capture.source !== "browser-runtime" ||
|
|
1808
|
+
capture.runtimeId !== interaction.runtimeId ||
|
|
1809
|
+
capture.browserContextId !== interaction.browserContextId ||
|
|
1810
|
+
capture.browser.name !== interaction.browser.name ||
|
|
1811
|
+
capture.browser.version !== interaction.browser.version ||
|
|
1812
|
+
capture.os !== interaction.os,
|
|
1813
|
+
)
|
|
1814
|
+
)
|
|
1815
|
+
fail("browser_runtime", `${surface.id}/${interaction.evidenceId} browser runtime does not match its receipt or cited captures`);
|
|
1816
|
+
}
|
|
1817
|
+
if (interaction.captureIds.some((id) => !resolvedReview.captures.some((capture) => capture.evidenceId === id && capture.locale === interaction.locale)))
|
|
1818
|
+
fail("interaction_capture", `${surface.id}/${interaction.evidenceId} references unknown or wrong-locale captures`);
|
|
1819
|
+
}
|
|
1820
|
+
for (const state of mandatory.filter((entry) => entry !== "default")) {
|
|
1821
|
+
for (const locale of surface.locales)
|
|
1822
|
+
if (
|
|
1823
|
+
!resolvedReview.interactions.some(
|
|
1824
|
+
(interaction) =>
|
|
1825
|
+
interaction.locale === locale &&
|
|
1826
|
+
interaction.captureIds.some((id) => resolvedReview.captures.some((capture) => capture.evidenceId === id && capture.state === state)),
|
|
1827
|
+
)
|
|
1828
|
+
)
|
|
1829
|
+
fail("interaction_state", `${surface.id} needs observed ${state} interaction evidence for ${locale}`);
|
|
1830
|
+
}
|
|
1831
|
+
for (const criterion of rubric.criteria) {
|
|
1832
|
+
if (criterion.referenceIds.some((id) => !rubric.references.some((ref) => ref.id === id)))
|
|
1833
|
+
fail("calibration", `${surface.id}/${criterion.id} cites unknown references`);
|
|
1834
|
+
const result = review.criteria.find((entry) => entry.id === criterion.id);
|
|
1835
|
+
if (!result) continue;
|
|
1836
|
+
if (result.verdict === "fails" || (criterion.minimum === "exceeds" && result.verdict !== "exceeds"))
|
|
1837
|
+
fail("criterion_floor", `${surface.id}/${criterion.id} does not ${criterion.minimum} its frozen reference criterion`);
|
|
1838
|
+
if (criterion.facet === "cross_surface_identity") {
|
|
1839
|
+
const cited = result.evidenceIds.map((id) => evidenceIndex.get(id));
|
|
1840
|
+
if (cited.some((entry) => !entry)) fail("criterion_evidence", `${surface.id}/${criterion.id} cites unknown evidence`);
|
|
1841
|
+
else if (
|
|
1842
|
+
!cited.some((entry) => entry!.surfaceId === surface.id && entry!.type === "capture") ||
|
|
1843
|
+
!cited.some((entry) => entry!.kind === "native" && entry!.type === "capture") ||
|
|
1844
|
+
!cited.some((entry) => entry!.kind === "landing" && entry!.type === "capture")
|
|
1845
|
+
)
|
|
1846
|
+
fail("criterion_evidence", `${surface.id}/${criterion.id} must compare its own current capture with both native and landing captures`);
|
|
1847
|
+
} else if (result.evidenceIds.some((id) => !evidenceIds.includes(id)))
|
|
1848
|
+
fail("criterion_evidence", `${surface.id}/${criterion.id} cites evidence from another surface`);
|
|
1849
|
+
const requiresInteractionEvidence =
|
|
1850
|
+
["functionality", "accessibility"].includes(criterion.facet) ||
|
|
1851
|
+
(criterion.facet === "motion" && surfaceRequiresMotionInteractionEvidence(surface.surfaceId, surface.kind, surfaceApplicability));
|
|
1852
|
+
if (requiresInteractionEvidence && !result.evidenceIds.some((id) => resolvedReview.interactions.some((entry) => entry.evidenceId === id)))
|
|
1853
|
+
fail("criterion_evidence", `${surface.id}/${criterion.id} requires observed interaction evidence; screenshots alone are insufficient`);
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
for (const runtime of report.nativeRuntimes)
|
|
1857
|
+
if (!usedNativeRuntimeIds.has(runtime.id)) fail("native_runtime", `Native runtime receipt is not used by an authored surface: ${runtime.id}`);
|
|
1858
|
+
for (const runtime of report.browserRuntimes)
|
|
1859
|
+
if (!usedBrowserRuntimeIds.has(runtime.id)) fail("browser_runtime", `Browser runtime receipt is not used by an authored surface: ${runtime.id}`);
|
|
1860
|
+
return issues;
|
|
1861
|
+
}
|