LifeMate — Personal, Family & Learning Companion

feat/standalone-weekly-planner
chore/phase1-repository-cleanup deploy/stable-web-apk deployment-static design/mobile-accessibility-v2 design/mobile-navigation-review docs/child-education-access-decision docs/offline-data-rescue-options docs/owner-guide-and-delivery-plan docs/phase1-policy-options docs/public-review-live-2026-10-15 feat/aparat-learning-library feat/child-device-safety feat/child-identity-schema feat/flutter-mobile-navigation feat/learning-content-operations feat/local-signing-preflight feat/online-family-stage0 feat/personal-encrypted-recovery feat/private-planner-series-api feat/public-review-page feat/standalone-weekly-planner feat/weekly-planner-android final-feature-1/iran-family-school fix/auth-abuse-expiry-safety fix/auth-expiry-after-lock fix/backend-request-safety fix/lifeguide-bootstrap-naming-ci fix/lifeguide-pages-qa-base-preflight fix/lifeguide-qa-pages-env-deployment fix/local-task-persistence fix/managed-child-session-boundary fix/personal-jalali-dates fix/personal-notification-controls fix/personal-upgrade-delivery-guard fix/sms-approval-gates fix/study-duration-display infra/cloudflare-neon-migration infra/lifeguide-cloudflare-qa infra/lifeguide-github-pages-qa infra/lifeguide-supabase-qa main phase-1/foundation-completion phase-2/product-foundation-identity phase-3/planner-school-family-core phase-4/ai-learning-wellbeing phase-5/hardening-observability-release test/android-reminder-acceptance test/personal-notification-settings test/personal-recovery-acceptance test/role-entry-apk
md 2.47 KB

Local content review and publication tooling

This package prepares the existing0013/0015 publication gates for explicit, reviewable operation. It does not approve school material or deploy anything.

inspect reads current catalogue context and hashes. dry-run validates an exact JSON operation against that context in a read-only transaction. apply requires a separate CONTENT_REVIEW_DATABASE_URL, an explicit CONTENT_REVIEW_SYNTHETIC_ONLY=true flag and a loopback, explicitly named test database. Apply further requires a synthetic-publication: book fixture and, for publication, an explicitly marked synthetic reviewer receipt. Existing research material and the real mathematics pilot remain draft.

Video publication compares the expected metadata material hash and freshly computed book/unit context hash, then validates every existing full-review, rights, suitability and question-coverage field. This metadata hash does not prove the bytes hosted by the provider have remained unchanged. No media is downloaded, observed or approved by this tool.

Assessment drafting creates a stable UUID/version1 definition or revises an existing draft/withdrawn definition with the next version and recomputed question/context hashes. A published definition cannot be edited. Withdrawal preserves learner attempts and question snapshots. Publishing requires a complete matching accuracy/objective/suitability receipt and a verified current book edition. No automated content creation or review claims are made.

All writes share the catalogue-import advisory lock and lock catalogue context plus target rows. A stable operation UUID and canonical request hash provide durable exact replay. Replays return the current state: a later withdrawal or revision dominates an older publish receipt. Stale status/hash/version and reused operation IDs fail without mutation. Dry-run never inserts audit rows.

Migration0020 adds only content_publication_audit, an identifier/hash/status mutation journal. It contains no feedback summaries, chats, notes, health data or reviewer prose. The HTTP runtime/backup cannot write it or teaching tables; only the separate operator/migrator can. No public review/grant endpoint exists.

Tests use a new disposable local PostgreSQL database with stable migrations 0001–0015 plus0020, independent of concurrent schema work. Full integrated migrations, runtime policy, builds and real device verification remain the coordinator's checks. Real human content approval remains UNVERIFIED.