LifeMate — Personal, Family & Learning Companion

feat/flutter-mobile-navigation
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 41 lines 2.47 KB
Rendered Raw
1 # Local content review and publication tooling
2
3 This package prepares the existing0013/0015 publication gates for explicit,
4 reviewable operation. It does not approve school material or deploy anything.
5
6 `inspect` reads current catalogue context and hashes. `dry-run` validates an
7 exact JSON operation against that context in a read-only transaction. `apply`
8 requires a separate `CONTENT_REVIEW_DATABASE_URL`, an explicit
9 `CONTENT_REVIEW_SYNTHETIC_ONLY=true` flag and a loopback, explicitly named test
10 database. Apply further requires a `synthetic-publication:` book fixture and,
11 for publication, an explicitly marked synthetic reviewer receipt. Existing
12 research material and the real mathematics pilot remain draft.
13
14 Video publication compares the expected metadata material hash and freshly
15 computed book/unit context hash, then validates every existing full-review,
16 rights, suitability and question-coverage field. This metadata hash does not
17 prove the bytes hosted by the provider have remained unchanged. No media is
18 downloaded, observed or approved by this tool.
19
20 Assessment drafting creates a stable UUID/version1 definition or revises an
21 existing draft/withdrawn definition with the next version and recomputed
22 question/context hashes. A published definition cannot be edited. Withdrawal
23 preserves learner attempts and question snapshots. Publishing requires a
24 complete matching accuracy/objective/suitability receipt and a verified current
25 book edition. No automated content creation or review claims are made.
26
27 All writes share the catalogue-import advisory lock and lock catalogue context
28 plus target rows. A stable operation UUID and canonical request hash provide
29 durable exact replay. Replays return the current state: a later withdrawal or
30 revision dominates an older publish receipt. Stale status/hash/version and
31 reused operation IDs fail without mutation. Dry-run never inserts audit rows.
32
33 Migration0020 adds only `content_publication_audit`, an identifier/hash/status
34 mutation journal. It contains no feedback summaries, chats, notes, health data
35 or reviewer prose. The HTTP runtime/backup cannot write it or teaching tables;
36 only the separate operator/migrator can. No public review/grant endpoint exists.
37
38 Tests use a new disposable local PostgreSQL database with stable migrations
39 0001–0015 plus0020, independent of concurrent schema work. Full integrated
40 migrations, runtime policy, builds and real device verification remain the
41 coordinator's checks. Real human content approval remains UNVERIFIED.