Skip to content
ContractSpec
Start here

lib.app-submission-readiness-runtime

Pure, deterministic runtime audit engine for mobile app submission readiness (ReviewReady). No network calls; integrations feed it snapshots to audit.

domainslibraryv2.0.4experimentalservernode
@lssm-tech/lib.app-submission-readiness-runtime
bun add @lssm-tech/lib.app-submission-readiness-runtime
Package source ↗Manifest ↗

Manifest declarations describe the current workspace; they do not verify registry publication or runtime execution.

Package guide

Pure, deterministic runtime audit engine for mobile app submission readiness (ReviewReady). It owns the app-submission-readiness contract domain at @lssm-tech/lib.app-submission-readiness-runtime/contracts (and ./contracts/<leaf>; legacy @lssm-tech/lib.contracts-spec/app-submission-readiness imports forward to the same instances) and provides the fuller audit engine described in the ReviewReady PRD (Phase 2).

No network calls

This package performs no network I/O. Integrations (App Store Connect, Google Play Developer) are responsible for fetching and handing in submission snapshots; this runtime only audits the materials it is given. Timestamps and ids must be supplied by the caller (no Date.now() / Math.random()).

Public API

  • normalizeSubmissionInput(materials) — normalize raw/partial submission materials (assets, legal links, privacy disclosures, manifests, SDK inventory, reviewer access refs) into a canonical AppSubmissionReadinessAuditInput.
  • buildDisclosureMatrix(materials) — cross-reference SDK collection, manifest permissions, privacy-policy declarations, Apple App Privacy answers, and Google Data Safety answers; returns a typed matrix with per-cell consistency state and evidence refs.
  • runReadinessAudit(materials, policy?) — orchestrate normalize -> disclosure matrix -> findings -> score -> decision into a full report plus matrix and per-store checklists. Composes the contracts-spec audit primitive.
  • scoreReadiness(report) — readiness score wrapper over contracts-spec scoring.
  • buildStoreChecklists(report) — per-store (Apple / Google Play) ordered blocker/warning/improvement checklists.
  • draftRejectionResponse(rejectionMessage, report) — structured, evidence-cited resubmission draft. Avoids legal-advice and approval-guarantee phrasing.
  • redactSubmissionReport(report, policy?) — canonical redaction entrypoint; never serializes raw secret values.

Fixtures

@lssm-tech/lib.app-submission-readiness-runtime/fixtures exports SampleSubmissionMaterials (with a known disclosure inconsistency) and ReadySubmissionMaterials (a passing baseline).

Relationships

THIS PACKAGElib.app-submission-readiness-runtime32 import paths

Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.

2 declarations

Declared capabilities

Lib App Submission Readiness Runtime

Pure, deterministic runtime audit engine for mobile app submission readiness (ReviewReady). No network calls; integrations feed it snapshots to audit.

Scripts

  • publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
  • publish:pkg:canarybun publish:pkg --tag canary
  • buildcontractspec-bun-build build
  • build:bundlecontractspec-bun-build transpile
  • build:typescontractspec-bun-build types
  • devcontractspec-bun-build dev
  • cleanrimraf dist .turbo
  • lintbun lint:fix
  • lint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .
  • lint:checknode ../../../../scripts/biome.cjs check .
  • testbun test --pass-with-no-tests
  • prebuildcontractspec-bun-build prebuild
  • typechecktsgo --noEmit