native-update 2.0.0 → 3.1.1
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/Readme.md +28 -14
- package/android/manifest-additions.xml +28 -0
- package/android/src/main/AndroidManifest.xml +3 -7
- package/android/src/main/java/com/aoneahsan/nativeupdate/BackgroundNotificationManager.kt +21 -13
- package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +196 -29
- package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +21 -36
- package/cli/AGENTS.md +24 -1
- package/cli/CLAUDE.md +24 -1
- package/cli/commands/backend-create.js +56 -15
- package/cli/commands/bundle-create.js +39 -7
- package/cli/commands/monitor.js +72 -51
- package/cli/index.js +10 -24
- package/cli/package.json +11 -3
- package/dist/esm/app-review/app-review-manager.js +0 -1
- package/dist/esm/app-review/index.js +0 -1
- package/dist/esm/app-review/platform-review-handler.js +0 -1
- package/dist/esm/app-review/review-conditions-checker.js +0 -1
- package/dist/esm/app-review/review-rate-limiter.js +0 -1
- package/dist/esm/app-review/types.js +0 -1
- package/dist/esm/app-update/app-update-checker.d.ts +19 -0
- package/dist/esm/app-update/app-update-checker.js +19 -1
- package/dist/esm/app-update/app-update-installer.d.ts +1 -0
- package/dist/esm/app-update/app-update-installer.js +19 -8
- package/dist/esm/app-update/app-update-manager.js +0 -1
- package/dist/esm/app-update/app-update-notifier.js +0 -1
- package/dist/esm/app-update/index.js +0 -1
- package/dist/esm/app-update/platform-app-update.js +12 -3
- package/dist/esm/app-update/types.js +0 -1
- package/dist/esm/background-update/background-scheduler.d.ts +21 -0
- package/dist/esm/background-update/background-scheduler.js +47 -25
- package/dist/esm/background-update/index.js +0 -1
- package/dist/esm/background-update/notification-manager.js +0 -1
- package/dist/esm/config/support.js +0 -1
- package/dist/esm/core/analytics.d.ts +13 -0
- package/dist/esm/core/analytics.js +15 -1
- package/dist/esm/core/cache-manager.js +0 -1
- package/dist/esm/core/config.d.ts +0 -15
- package/dist/esm/core/config.js +0 -4
- package/dist/esm/core/errors.d.ts +1 -0
- package/dist/esm/core/errors.js +1 -1
- package/dist/esm/core/event-emitter.d.ts +0 -3
- package/dist/esm/core/event-emitter.js +8 -3
- package/dist/esm/core/logger.js +0 -1
- package/dist/esm/core/performance.js +0 -1
- package/dist/esm/core/plugin-manager.js +3 -1
- package/dist/esm/core/security.d.ts +11 -0
- package/dist/esm/core/security.js +27 -1
- package/dist/esm/core/update-check.d.ts +89 -0
- package/dist/esm/core/update-check.js +86 -0
- package/dist/esm/definitions.d.ts +11 -12
- package/dist/esm/definitions.js +0 -1
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +3 -1
- package/dist/esm/live-update/bundle-manager.d.ts +8 -0
- package/dist/esm/live-update/bundle-manager.js +20 -1
- package/dist/esm/live-update/certificate-pinning.js +0 -1
- package/dist/esm/live-update/delta-processor.d.ts +1 -1
- package/dist/esm/live-update/delta-processor.js +3 -1
- package/dist/esm/live-update/download-manager.js +9 -2
- package/dist/esm/live-update/rollout-checker.d.ts +1 -1
- package/dist/esm/live-update/rollout-checker.js +5 -6
- package/dist/esm/live-update/update-manager.js +0 -1
- package/dist/esm/live-update/version-manager.d.ts +0 -12
- package/dist/esm/live-update/version-manager.js +43 -95
- package/dist/esm/plugin.js +71 -51
- package/dist/esm/security/crypto.js +11 -7
- package/dist/esm/security/validator.js +0 -1
- package/dist/esm/types/rollout.d.ts +91 -0
- package/dist/esm/types/rollout.js +25 -0
- package/dist/esm/web.d.ts +8 -0
- package/dist/esm/web.js +148 -54
- package/dist/plugin.cjs.js +1 -2
- package/dist/plugin.esm.js +1 -2
- package/dist/plugin.js +2 -3
- package/docs/AGENTS.md +9 -0
- package/docs/CHANGELOG.md +140 -0
- package/docs/CLAUDE.md +10 -1
- package/docs/DEPLOY_NOTES.md +117 -0
- package/docs/MANUAL-TASKS.md +30 -0
- package/docs/MARKETING_WEBSITE_TRACKER.md +18 -2
- package/docs/MIGRATION.md +83 -0
- package/docs/PACKAGES.md +167 -0
- package/docs/PERFORMANCE.md +110 -0
- package/docs/PROJECT_COMPLETION_TRACKER.md +4 -35
- package/docs/README.md +0 -1
- package/docs/REMAINING_FEATURES.md +123 -76
- package/docs/ROADMAP.md +200 -120
- package/docs/SECURITY-IF-REPO-PUBLIC.md +232 -0
- package/docs/TESTING_REQUIREMENTS.md +1 -112
- package/docs/ai-knowledge-base/00-project-profile.md +38 -0
- package/docs/ai-knowledge-base/01-features.md +46 -0
- package/docs/ai-knowledge-base/02-routes.md +72 -0
- package/docs/ai-knowledge-base/03-tech-stack.md +57 -0
- package/docs/ai-knowledge-base/README.md +23 -0
- package/docs/analytics-tracking.md +37 -0
- package/docs/api/background-update-api.md +14 -1
- package/docs/capacitor-official-plugins.md +46 -0
- package/docs/capawesome-plugins.md +29 -0
- package/docs/deployment/HOSTINGER_DEPLOY.md +75 -34
- package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +184 -0
- package/docs/docs-site/plan.md +201 -0
- package/docs/docs-site/scope.md +127 -0
- package/docs/docs-site/tracker.json +235 -0
- package/docs/error-handling-tracking.md +37 -0
- package/docs/features/e2e-full-verification/00-overview.md +99 -0
- package/docs/features/e2e-full-verification/00-tracker.json +284 -0
- package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +183 -0
- package/docs/features/e2e-full-verification/phase02-test-auth.md +176 -0
- package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +63 -0
- package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +73 -0
- package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +69 -0
- package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +51 -0
- package/docs/features/e2e-full-verification/results/phase01-drift-report.md +50 -0
- package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +215 -0
- package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +139 -0
- package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +99 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
- package/docs/features/e2e-full-verification/results/route-list.json +1 -0
- package/docs/features/queues-and-emails/00-overview.md +41 -0
- package/docs/features/queues-and-emails/00-tracker.json +99 -0
- package/docs/features/queues-and-emails/phase01-foundation.md +15 -0
- package/docs/features/queues-and-emails/phase02-queued-jobs.md +19 -0
- package/docs/features/queues-and-emails/phase03-transactional-emails.md +16 -0
- package/docs/features/queues-and-emails/phase04-quota-ops.md +17 -0
- package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +16 -0
- package/docs/features/queues-and-emails/phase06-verify-deploy.md +17 -0
- package/docs/guides/testing-guide.md +15 -41
- package/docs/package-audit.md +41 -0
- package/docs/play-store/ASO-METADATA.md +5 -0
- package/docs/play-store/DATA-SAFETY.md +5 -0
- package/docs/play-store/DECLARATIONS.md +5 -0
- package/docs/play-store/README.md +27 -0
- package/docs/play-store/RELEASE-NOTES.md +99 -0
- package/docs/play-store/RELEASE-STEPS.md +6 -0
- package/docs/play-store/STORE-LISTING.md +7 -0
- package/docs/play-store/SUBMISSION-CHECKLIST.md +5 -0
- package/docs/production-readiness.md +1 -1
- package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +123 -0
- package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +227 -0
- package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +144 -0
- package/docs/project-audit/2026-05-16/sessions/batch-01.md +42 -0
- package/docs/project-audit/2026-05-16/sessions/batch-02.md +74 -0
- package/docs/project-audit/2026-05-16/sessions/batch-03.md +71 -0
- package/docs/project-audit/2026-05-16/sessions/batch-04.md +88 -0
- package/docs/project-audit/2026-05-16/sessions/batch-05.md +63 -0
- package/docs/project-audit/2026-05-16/sessions/batch-06.md +103 -0
- package/docs/project-audit/2026-05-16/sessions/batch-07.md +61 -0
- package/docs/project-audit/2026-05-16/sessions/batch-08.md +101 -0
- package/docs/project-audit/2026-05-16/sessions/batch-09.md +105 -0
- package/docs/project-audit/2026-05-16/sessions/batch-10.md +102 -0
- package/docs/project-audit/AUDIT-HISTORY.md +74 -0
- package/docs/project-audit/BATCH-PLAN.md +168 -0
- package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +73 -0
- package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +275 -0
- package/docs/project-finalization/00-tracker.json +60 -0
- package/docs/project-knowledge-base/01-system-overview.md +39 -30
- package/docs/project-knowledge-base/02-routes-pages-forms-users.md +87 -81
- package/docs/project-knowledge-base/03-tech-stack-modules-services.md +140 -108
- package/docs/project-knowledge-base/04-data-models-integrations.md +191 -254
- package/docs/project-knowledge-base/05-docs-corpus-inventory.md +83 -20
- package/docs/project-knowledge-base/06-operations-testing-legal-content.md +67 -29
- package/docs/project-knowledge-base/README.md +27 -14
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +81 -0
- package/docs/rules-tracker.md +102 -0
- package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +116 -0
- package/docs/server-requirements.md +41 -11
- package/docs/social-media-marketing/README.md +81 -0
- package/docs/social-media-marketing/posts-batch-01.md +613 -0
- package/docs/social-media-marketing/posts-batch-02.md +528 -0
- package/docs/social-media-marketing/whatsapp-messages-batch-01.md +458 -0
- package/docs/social-media-marketing/whatsapp-status-batch-01.md +355 -0
- package/docs/tracking/finalization-2026-05-16-tracker.json +346 -0
- package/docs/tracking/full-audit-tracker.json +121 -0
- package/docs/tracking/production-readiness-audit-tracker.json +429 -0
- package/ios/Plugin/BackgroundUpdate/BackgroundUpdatePlugin.swift +16 -3
- package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +71 -47
- package/ios/Plugin/NativeUpdatePlugin.swift +14 -9
- package/package.json +29 -29
- package/cli/node_modules/.yarn-integrity +0 -16
- package/cli/node_modules/commander/LICENSE +0 -22
- package/cli/node_modules/commander/Readme.md +0 -1148
- package/cli/node_modules/commander/esm.mjs +0 -16
- package/cli/node_modules/commander/index.js +0 -26
- package/cli/node_modules/commander/lib/argument.js +0 -145
- package/cli/node_modules/commander/lib/command.js +0 -2179
- package/cli/node_modules/commander/lib/error.js +0 -43
- package/cli/node_modules/commander/lib/help.js +0 -462
- package/cli/node_modules/commander/lib/option.js +0 -329
- package/cli/node_modules/commander/lib/suggestSimilar.js +0 -100
- package/cli/node_modules/commander/package-support.json +0 -16
- package/cli/node_modules/commander/package.json +0 -80
- package/cli/node_modules/commander/typings/esm.d.mts +0 -3
- package/cli/node_modules/commander/typings/index.d.ts +0 -884
- package/cli/yarn.lock +0 -8
- package/dist/esm/__tests__/bundle-manager.test.d.ts +0 -1
- package/dist/esm/__tests__/bundle-manager.test.js +0 -151
- package/dist/esm/__tests__/bundle-manager.test.js.map +0 -1
- package/dist/esm/__tests__/config.test.d.ts +0 -1
- package/dist/esm/__tests__/config.test.js +0 -70
- package/dist/esm/__tests__/config.test.js.map +0 -1
- package/dist/esm/__tests__/delta-processor.test.d.ts +0 -1
- package/dist/esm/__tests__/delta-processor.test.js +0 -77
- package/dist/esm/__tests__/delta-processor.test.js.map +0 -1
- package/dist/esm/__tests__/firestore-schema.test.d.ts +0 -1
- package/dist/esm/__tests__/firestore-schema.test.js +0 -74
- package/dist/esm/__tests__/firestore-schema.test.js.map +0 -1
- package/dist/esm/__tests__/integration.test.d.ts +0 -1
- package/dist/esm/__tests__/integration.test.js +0 -78
- package/dist/esm/__tests__/integration.test.js.map +0 -1
- package/dist/esm/__tests__/manifest-reader.test.d.ts +0 -1
- package/dist/esm/__tests__/manifest-reader.test.js +0 -271
- package/dist/esm/__tests__/manifest-reader.test.js.map +0 -1
- package/dist/esm/__tests__/rollout-checker.test.d.ts +0 -1
- package/dist/esm/__tests__/rollout-checker.test.js +0 -210
- package/dist/esm/__tests__/rollout-checker.test.js.map +0 -1
- package/dist/esm/__tests__/security-enforcement.test.d.ts +0 -1
- package/dist/esm/__tests__/security-enforcement.test.js +0 -95
- package/dist/esm/__tests__/security-enforcement.test.js.map +0 -1
- package/dist/esm/__tests__/security.test.d.ts +0 -1
- package/dist/esm/__tests__/security.test.js +0 -54
- package/dist/esm/__tests__/security.test.js.map +0 -1
- package/dist/esm/__tests__/version-manager.test.d.ts +0 -1
- package/dist/esm/__tests__/version-manager.test.js +0 -45
- package/dist/esm/__tests__/version-manager.test.js.map +0 -1
- package/dist/esm/app-review/app-review-manager.js.map +0 -1
- package/dist/esm/app-review/index.js.map +0 -1
- package/dist/esm/app-review/platform-review-handler.js.map +0 -1
- package/dist/esm/app-review/review-conditions-checker.js.map +0 -1
- package/dist/esm/app-review/review-rate-limiter.js.map +0 -1
- package/dist/esm/app-review/types.js.map +0 -1
- package/dist/esm/app-update/app-update-checker.js.map +0 -1
- package/dist/esm/app-update/app-update-installer.js.map +0 -1
- package/dist/esm/app-update/app-update-manager.js.map +0 -1
- package/dist/esm/app-update/app-update-notifier.js.map +0 -1
- package/dist/esm/app-update/index.js.map +0 -1
- package/dist/esm/app-update/platform-app-update.js.map +0 -1
- package/dist/esm/app-update/types.js.map +0 -1
- package/dist/esm/background-update/background-scheduler.js.map +0 -1
- package/dist/esm/background-update/index.js.map +0 -1
- package/dist/esm/background-update/notification-manager.js.map +0 -1
- package/dist/esm/config/support.js.map +0 -1
- package/dist/esm/core/analytics.js.map +0 -1
- package/dist/esm/core/cache-manager.js.map +0 -1
- package/dist/esm/core/config.js.map +0 -1
- package/dist/esm/core/errors.js.map +0 -1
- package/dist/esm/core/event-emitter.js.map +0 -1
- package/dist/esm/core/logger.js.map +0 -1
- package/dist/esm/core/performance.js.map +0 -1
- package/dist/esm/core/plugin-manager.js.map +0 -1
- package/dist/esm/core/security.js.map +0 -1
- package/dist/esm/definitions.js.map +0 -1
- package/dist/esm/firestore/firestore-client.d.ts +0 -109
- package/dist/esm/firestore/firestore-client.js +0 -264
- package/dist/esm/firestore/firestore-client.js.map +0 -1
- package/dist/esm/firestore/index.d.ts +0 -11
- package/dist/esm/firestore/index.js +0 -11
- package/dist/esm/firestore/index.js.map +0 -1
- package/dist/esm/firestore/manifest-reader.d.ts +0 -87
- package/dist/esm/firestore/manifest-reader.js +0 -294
- package/dist/esm/firestore/manifest-reader.js.map +0 -1
- package/dist/esm/firestore/schema.d.ts +0 -507
- package/dist/esm/firestore/schema.js +0 -73
- package/dist/esm/firestore/schema.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/live-update/bundle-manager.js.map +0 -1
- package/dist/esm/live-update/certificate-pinning.js.map +0 -1
- package/dist/esm/live-update/delta-processor.js.map +0 -1
- package/dist/esm/live-update/download-manager.js.map +0 -1
- package/dist/esm/live-update/rollout-checker.js.map +0 -1
- package/dist/esm/live-update/update-manager.js.map +0 -1
- package/dist/esm/live-update/version-manager.js.map +0 -1
- package/dist/esm/plugin.js.map +0 -1
- package/dist/esm/security/crypto.js.map +0 -1
- package/dist/esm/security/validator.js.map +0 -1
- package/dist/esm/web.js.map +0 -1
- package/dist/plugin.cjs.js.map +0 -1
- package/dist/plugin.esm.js.map +0 -1
- package/dist/plugin.js.map +0 -1
- package/docs/FIREBASE_INTEGRATION_TRACKER.md +0 -321
- package/docs/FIREBASE_QUERIES_AND_INDEXES_AUDIT.md +0 -221
- package/docs/examples/firebase-backend-example.md +0 -27
- package/docs/features/laravel-nova-backend/credentials.ignore.md +0 -34
- package/docs/guides/no-cost-backend-implementation-plan.md +0 -77
- package/docs/guides/no-cost-firestore-google-drive-backend.md +0 -60
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-03-16.md +0 -454
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-03-24.md +0 -66
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-03-25.md +0 -67
- /package/docs/{MARKETING_WEBSITE_PLAN.md → archive/MARKETING_WEBSITE_PLAN.md} +0 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "e2e-full-verification-tracker",
|
|
3
|
+
"description": "Resumable tracker. The first phase/sub-task with status 'pending' or 'in_progress' is the next thing to work on. Workflow: Fable 5 planned; Opus 4.8 executes phase specs; Fable 5 verifies.",
|
|
4
|
+
"module": "e2e-full-verification",
|
|
5
|
+
"createdAt": "2026-07-10",
|
|
6
|
+
"lastUpdated": "2026-07-11 (phase06.1 complete; awaiting owner deploy)",
|
|
7
|
+
"overview": "docs/features/e2e-full-verification/00-overview.md",
|
|
8
|
+
"results": {
|
|
9
|
+
"phase01": "docs/features/e2e-full-verification/results/phase01-drift-report.md",
|
|
10
|
+
"phase03": "docs/features/e2e-full-verification/results/phase03-coverage-matrix.md",
|
|
11
|
+
"phase03_routes": "docs/features/e2e-full-verification/results/route-list.json",
|
|
12
|
+
"phase04": "docs/features/e2e-full-verification/results/phase04-frontend-contract.md",
|
|
13
|
+
"phase05": "docs/features/e2e-full-verification/results/phase05-e2e-results.md",
|
|
14
|
+
"phase05_evidence": "docs/features/e2e-full-verification/results/phase05-evidence/"
|
|
15
|
+
},
|
|
16
|
+
"userDecisions": {
|
|
17
|
+
"testAuth": "prod + local, env-gated (TEST_AUTH_ENABLED), whitelist ^aoneahsan\\.apps\\.t1(\\+...)?@gmail\\.com$, 64-hex route slug, bcrypt hash in .env only",
|
|
18
|
+
"venue": "local-first full E2E; deploy at end via DEPLOY_NOTES queue; prod smoke after",
|
|
19
|
+
"phpunit": "explicitly requested — cover ALL API endpoints properly",
|
|
20
|
+
"paypal": "local/sandbox only; prod read-only GETs"
|
|
21
|
+
},
|
|
22
|
+
"knownRisks": [
|
|
23
|
+
"SQLite DQS quirk masks missing-column bugs — every phase gate includes one MySQL parity test run",
|
|
24
|
+
"No SSH to prod — phase06 blocks on owner's server agent",
|
|
25
|
+
"PayPal live on prod — never exercise write flows there",
|
|
26
|
+
"Plugin background-update module references endpoints (/updates/latest, /app-version, /check) the Laravel backend does not serve — phase04 must resolve"
|
|
27
|
+
],
|
|
28
|
+
"phases": [
|
|
29
|
+
{
|
|
30
|
+
"id": "phase01",
|
|
31
|
+
"title": "Apps schema-drift fix + full schema↔code drift audit",
|
|
32
|
+
"spec": "phase01-backend-schema-fixes.md",
|
|
33
|
+
"executor": "opus",
|
|
34
|
+
"status": "complete",
|
|
35
|
+
"completedAt": "2026-07-10",
|
|
36
|
+
"subTasks": [
|
|
37
|
+
{
|
|
38
|
+
"id": "phase01.1",
|
|
39
|
+
"title": "Migration: add bundle_id + platform to apps (+backfill)",
|
|
40
|
+
"status": "complete",
|
|
41
|
+
"note": "2026_07_10_000010; +cross-user dedup guard before the global unique index"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "phase01.2",
|
|
45
|
+
"title": "App model fillable/casts + AppFactory new contract",
|
|
46
|
+
"status": "complete",
|
|
47
|
+
"note": "bundle_id+platform fillable; app_id→UUID in factory"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "phase01.3",
|
|
51
|
+
"title": "Strengthen AppControllerTest assertions (bundle_id/platform in DB asserts)",
|
|
52
|
+
"status": "complete",
|
|
53
|
+
"note": "+duplicate-bundle_id 422 test"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "phase01.4",
|
|
57
|
+
"title": "Systematic drift audit: every model/request/query column vs MySQL schema; fix ALL findings",
|
|
58
|
+
"status": "complete",
|
|
59
|
+
"note": "4 real drifts fixed (apps cols, builds.status paused enum, UpdateController platform 'all'→null, AdminController plan 'beta'); 3 adjacent non-schema findings deferred. Report: results/phase01-drift-report.md"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "phase01.5",
|
|
63
|
+
"title": "Gates: suite green on sqlite AND MySQL; commit",
|
|
64
|
+
"status": "complete",
|
|
65
|
+
"note": "143 passed / 338 assertions on both sqlite :memory: AND MySQL 8.4 strict (laravel_nativeupdate_test)"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "phase02",
|
|
71
|
+
"title": "UI-less env-gated test-auth endpoint",
|
|
72
|
+
"spec": "phase02-test-auth.md",
|
|
73
|
+
"executor": "opus",
|
|
74
|
+
"status": "complete",
|
|
75
|
+
"completedAt": "2026-07-10",
|
|
76
|
+
"subTasks": [
|
|
77
|
+
{
|
|
78
|
+
"id": "phase02.1",
|
|
79
|
+
"title": "TestAuthController + gated route + config/testauth.php",
|
|
80
|
+
"status": "complete",
|
|
81
|
+
"note": "Route registered OUTSIDE the throttle:30,1 auth group (Laravel keys unauth throttle by sha1(domain|ip); a stacked throttle would double-increment → 429 on 3rd hit); carries its own throttle:5,1. firstOrCreate adapted to real users cols: password NOT NULL satisfied via throwaway bcrypt, synthetic unique google_id, plan omitted (not fillable; DB enum defaults 'free')."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "phase02.2",
|
|
85
|
+
"title": ".env/.env.example entries + bcrypt hash generation (no plaintext anywhere)",
|
|
86
|
+
"status": "complete",
|
|
87
|
+
"note": "Slug via openssl rand -hex 32; hash piped from ~/.secrets password into php password_hash (round-trip MATCH verified, plaintext never printed). .env hash single-quoted so dotenv treats $ literally. .env.example ships TEST_AUTH_ENABLED=false + empty tagged placeholders."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "phase02.3",
|
|
91
|
+
"title": "PHPUnit: disabled=404, bad email=422/403, bad password=401, happy path token works",
|
|
92
|
+
"status": "complete",
|
|
93
|
+
"note": "9 new tests (TestAuthTest 7 + TestAuthDisabledTest 2): route-registered, 422 malformed email, 403 non-whitelisted (4 emails), 401 wrong pw, 200 happy path + /me round-trip, alias distinct users, 429 throttle, disabled route absent + 404. Tests inject their OWN dummy hash; real password never used. phpunit.xml pins TEST_AUTH_* for deterministic boot-time route registration."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "phase02.4",
|
|
97
|
+
"title": "Global automation-accounts registry row + project CLAUDE/AGENTS pointer",
|
|
98
|
+
"status": "complete",
|
|
99
|
+
"note": "Project root CLAUDE.md + AGENTS.md Auth Stack note added (env-gated, whitelist, password stored globally, kill-switch). Global ~/.claude/rules/automation-test-accounts.md registry row is Fable's at verification (outside repo, not auto-committed)."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "phase02.5",
|
|
103
|
+
"title": "Gates + commit",
|
|
104
|
+
"status": "complete",
|
|
105
|
+
"note": "Full suite 152 passed / 380 assertions on sqlite AND MySQL 8.4 (laravel_nativeupdate_test). pint --dirty clean. Live curl (both servers, then killed): disabled=404, bad-email=403, wrong-pw=401, correct=200+token, /me=200, wrong-slug=404."
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "phase03",
|
|
111
|
+
"title": "PHPUnit coverage for every API route + MySQL parity",
|
|
112
|
+
"spec": "phase03-api-test-coverage.md",
|
|
113
|
+
"executor": "opus",
|
|
114
|
+
"status": "complete",
|
|
115
|
+
"completedAt": "2026-07-10",
|
|
116
|
+
"subTasks": [
|
|
117
|
+
{
|
|
118
|
+
"id": "phase03.1",
|
|
119
|
+
"title": "Route inventory → coverage matrix (existing vs missing)",
|
|
120
|
+
"status": "complete",
|
|
121
|
+
"note": "route-list.json generated (161 entries; 57 app routes in api.php). Matrix results/phase03-coverage-matrix.md maps every api.php route → 100% covered (23 pre-existing + 34 new)."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "phase03.2",
|
|
125
|
+
"title": "Write missing feature tests (dashboard, admin, v1, webhooks, auth)",
|
|
126
|
+
"status": "complete",
|
|
127
|
+
"note": "+92 tests (152→244). New: AnalyticsDashboard(8), Subscription(14), Build(15), SigningKey(8), GoogleDrive(12), Preferences(5), Me(4), BundleDownload(6), Health(1), NovaAdminLogin(2); extended App(+4), Rollout(+4), Admin(+7), Update(+1 rollout determinism), PayPalWebhook(+1). PayPal/Socialite/FilesHub/GoogleDrive all mocked (offline). Fixed analytics event_type bucketing (drift #5, TDD) + 2 adjacent real bugs found via tests: guarded-plan silent-drop on activate/webhook (forceFill) and promote() missing NOT-NULL storage_path (500). Deferred: finding #7 (fileshub-cleanup dead path) pinned; new finding #8 (changePlan calls non-existent srmklive updateSubscriptionPlan → 502) documented, guard-only tested."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "phase03.3",
|
|
131
|
+
"title": "MySQL parity run documented + green; commit",
|
|
132
|
+
"status": "complete",
|
|
133
|
+
"note": "244 passed / 690 assertions on BOTH sqlite :memory: AND MySQL 8.4 strict (laravel_nativeupdate_test). pint --dirty clean."
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "phase04",
|
|
139
|
+
"title": "Frontend + plugin contract audit vs backend",
|
|
140
|
+
"spec": "phase04-frontend-package-contract-audit.md",
|
|
141
|
+
"executor": "opus",
|
|
142
|
+
"status": "complete",
|
|
143
|
+
"completedAt": "2026-07-10",
|
|
144
|
+
"subTasks": [
|
|
145
|
+
{
|
|
146
|
+
"id": "phase04.1",
|
|
147
|
+
"title": "Website services field-by-field vs backend responses; fix mismatches",
|
|
148
|
+
"status": "complete",
|
|
149
|
+
"note": "Fixed: ApiBuild.status enum (rolled_back→real active/paused/archived/failed/…); AppsPage+UploadPage error rendering via new lib/api-errors.ts (422 per-field RHF setError, 403 plan-limit message, 5xx generic — the original 'blank Server Error' bug); build status badges in 4 pages; SettingsPage plan ?? 'beta'→'free'. Verified OK: /me↔AuthUser (roles/permissions), analytics aggregate shapes (already matched phase03-fixed controller), apps create/edit. constants/permissions.ts is Android perms not RBAC (plan note conflated). Backend finding #6 FIXED: RolloutController@index whereIn(active,paused) so paused rollouts stay listed/resumable (frontend proves it expects them) +2 tests. BuildController@index now honors channel/status params the frontend already sent (were ignored) +2 tests."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "phase04.2",
|
|
153
|
+
"title": "Plugin endpoint matrix (plugin.ts, background-update, version-manager, app-update) vs Laravel routes; resolve drift",
|
|
154
|
+
"status": "complete",
|
|
155
|
+
"note": "New single-source src/core/update-check.ts (checkForUpdate + BackendUpdateCheckResponse + wire JSDoc). ALIGNED to /v1/updates/check: plugin.ts (was correct, refactored to helper), version-manager (/check→helper, apiKey from config), background-scheduler live fallback (/updates/latest→helper) — the last two were 100% broken (backend never served those paths). DOCUMENTED custom-backend extension points (native app-store /app-version): background-scheduler.checkAppUpdate + app-update-checker.checkServerVersion (JSDoc + docs). definitions.ts JSDoc first, then docs/server-requirements.md (rewrote stale wire spec), docs/api/background-update-api.md (contracts table), fixed rollout.ts UpdateCheckResponse misleading comment. Analytics report-to-backend: NOT implemented (plugin never posted; docs don't promise it) — noted only."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "phase04.3",
|
|
159
|
+
"title": "Example app react-capacitor pointed at local backend; update-check round-trip verified",
|
|
160
|
+
"status": "complete",
|
|
161
|
+
"note": "capacitor.config.ts serverUrl→http://localhost:5946/api + apiKey placeholder; App.tsx + .env.example + vite-env + README wire VITE_UPDATE_API_KEY. file:../.. → portal:../.. (Yarn 4 file: OOMs packing the monorepo root). yarn install+build clean. Curl round-trip vs local MySQL backend (seeded user+app+key+active build): exact plugin request → 200 available:true with full contract (parses as BackendUpdateCheckResponse); available:false branch + 401 keyless control correct. FINDING P4-1 for phase05: php artisan serve appends welcome HTML to the update-check response (dispatch()->afterResponse() + no fastcgi_finish_request) — breaks response.json(); php-fpm/prod unaffected (harness green). Phase05 E2E-16 should serve via php-fpm."
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "phase04.4",
|
|
165
|
+
"title": "Gates (website typecheck/lint/build, plugin build) + commit",
|
|
166
|
+
"status": "complete",
|
|
167
|
+
"note": "website typecheck+lint(0 err)+build clean; plugin build+lint clean; example yarn build clean; backend 248 passed/709 assertions on BOTH sqlite AND MySQL 8.4 (244→+4 new tests); pint clean. Results: results/phase04-frontend-contract.md."
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "phase05",
|
|
173
|
+
"title": "Browser E2E full feature matrix (local, multi-user)",
|
|
174
|
+
"spec": "phase05-browser-e2e-matrix.md",
|
|
175
|
+
"executor": "opus",
|
|
176
|
+
"status": "complete",
|
|
177
|
+
"completedAt": "2026-07-11",
|
|
178
|
+
"subTasks": [
|
|
179
|
+
{
|
|
180
|
+
"id": "phase05.1",
|
|
181
|
+
"title": "Env up: MySQL fresh+seed, backend 5946, website 5942, 3 Chrome profiles (+Brave optional)",
|
|
182
|
+
"status": "complete",
|
|
183
|
+
"note": "migrate:fresh --seed on MySQL 8.4; +admin promoted via role-assign; all 4 accounts minted via test-auth. Tooling adaptation (documented in results): use_browser MCP = ONE Chrome; multi-user isolation/RBAC proven with concurrent per-user Sanctum bearer tokens (the real security boundary) + per-profile UI spot-checks via /auth/callback?token=; Brave not needed."
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "phase05.2",
|
|
187
|
+
"title": "Matrix rows E2E-01..E2E-17 executed with evidence log",
|
|
188
|
+
"status": "complete",
|
|
189
|
+
"note": "17/17 PASS. Prod-500 regression (E2E-04) verified fixed: create app 201 with bundle_id+platform persisted. Evidence: 15 screenshots in results/phase05-evidence/ + incremental results table."
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"id": "phase05.3",
|
|
193
|
+
"title": "Findings triaged: fix + re-run failed rows",
|
|
194
|
+
"status": "complete",
|
|
195
|
+
"note": "No row failed on a real defect — zero code changes needed. 8 phase01-04 fixes verified end-to-end. Deferred confirmed graceful: #7 (deletion storage cleanup dead code), #8 (changePlan guard-only, PayPal never touched), P4-1 (artisan-serve trailing HTML — leading-JSON parse). UI gaps documented (no api-key/signing-key/promote/subscription UI; no suspend button; axios 403 string cosmetic)."
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "phase05.4",
|
|
199
|
+
"title": "Teardown (kill servers/browsers) + results doc + commit",
|
|
200
|
+
"status": "complete",
|
|
201
|
+
"note": "Chrome killed, servers killed, lsof :5946/:5942 empty. Backend suite re-run green (248 passed / 709 assertions, sqlite). Results: results/phase05-e2e-results.md."
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"id": "phase06",
|
|
207
|
+
"title": "Deploy queue + prod smoke re-verify",
|
|
208
|
+
"spec": "phase06-deploy-prod-smoke.md",
|
|
209
|
+
"executor": "fable+owner",
|
|
210
|
+
"status": "in_progress",
|
|
211
|
+
"completedAt": null,
|
|
212
|
+
"subTasks": [
|
|
213
|
+
{
|
|
214
|
+
"id": "phase06.1",
|
|
215
|
+
"title": "Append DEPLOY_NOTES pending items (migrations, TEST_AUTH_* env, caches/FPM)",
|
|
216
|
+
"status": "complete",
|
|
217
|
+
"note": "DEPLOY_NOTES top item queued 2026-07-11 (2 migrations + TEST_AUTH_* env + cache/FPM + 401-curl verify); MANUAL-TASKS #9 added for the owner"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"id": "phase06.2",
|
|
221
|
+
"title": "Owner runs server deploy agent",
|
|
222
|
+
"status": "blocked",
|
|
223
|
+
"awaitingUser": true,
|
|
224
|
+
"note": "BLOCKED on owner: run the server deploy agent (MANUAL-TASKS #9)"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": "phase06.3",
|
|
228
|
+
"title": "Fable prod smoke: health, test-login, create app (the bug), api key, updates/check, analytics rows, cleanup",
|
|
229
|
+
"status": "pending"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"id": "phase06.4",
|
|
233
|
+
"title": "MANUAL-TASKS.md + trackers closed out; final commit",
|
|
234
|
+
"status": "pending"
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"runHistory": [
|
|
240
|
+
{
|
|
241
|
+
"date": "2026-07-11",
|
|
242
|
+
"phase": "phase05",
|
|
243
|
+
"summary": "Opus 4.8: full local browser E2E matrix — 17/17 PASS (results/phase05-e2e-results.md + 15 evidence screenshots). Env: MySQL 8.4 fresh+seed, artisan serve :5946, vite :5942, headless Chrome (use_browser CDP); accounts t1/t1+1/t1+admin/t1+del via the phase02 test-auth endpoint, +admin promoted super-admin. THE prod-500 regression verified fixed in-browser (E2E-04: create app 201, bundle_id+platform persisted, duplicate→inline 422, edit/delete + URL-state dialogs). Also verified end-to-end: plan-limit 403 UX, API-key lifecycle + revoked-key 401, signing-key create/rotate/delete, upload graceful-fail (FilesHub key empty by design) + factory-seeded build + promote 201 (NOT-NULL storage_path fix), plugin update-check round-trip (available:true contract + determinism + already-latest; P4-1 leading-JSON parse), rollout 25% (offline formula cross-validated with API 4/40 exact match, 27.1%@1000; pause→listed+Resume = finding #6 fix), analytics (76 events/59 device_activities with intact device_hash; dashboard 6/5/2 matches DB; MAU 59), Drive disconnected UI + google auth-url + disconnect no-op, subscription plans + subscribe config-guard 500 + changePlan 404 guard (PayPal never touched), multi-user isolation (B 403/422 on all of A's resources, concurrent tokens), admin RBAC + per-request suspension cycle (AppPolicy::isActive) + regular-user /admin redirect + api 403, account deletion lifecycle (dialog ?confirmDelete=1, DELETE /me, old token 401, DB purged, fresh re-login id bump), logout+guards+8 public pages (0 console errors, no h-scroll @375px). Zero code changes needed; deferred #7/#8/P4-1 confirmed graceful + UI gaps documented. Teardown clean (ports free); backend suite re-run 248 passed / 709 assertions.",
|
|
244
|
+
"commit": "pending"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"date": "2026-07-10",
|
|
248
|
+
"phase": "planning",
|
|
249
|
+
"summary": "Fable 5: root-caused the apps 500 (schema drift + sqlite DQS masking), confirmed prod wiring, wrote full 6-phase plan.",
|
|
250
|
+
"commit": "pending"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"date": "2026-07-10",
|
|
254
|
+
"phase": "phase01",
|
|
255
|
+
"summary": "Opus 4.8: added apps.bundle_id/platform migration (+dedup guard) fixing the prod 500; full drift audit found 3 more real MySQL-strict drifts — builds.status 'paused' enum (rollout pause), UpdateController platform 'all'→null (silent analytics loss), AdminController plan 'beta' removed. Nova App bundle_id/platform fields + Build paused badge. 9 new tests. Suite 143 passed on sqlite AND MySQL 8.4 strict. 3 adjacent non-schema findings (AnalyticsDashboard event_type mismatch, rollout index hides paused, deleteStoredFile 'fileshub' vs 'drive') documented + deferred.",
|
|
256
|
+
"commit": "pending"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"date": "2026-07-10",
|
|
260
|
+
"phase": "phase02",
|
|
261
|
+
"summary": "Opus 4.8: env-gated UI-less test-auth endpoint POST /api/auth/test-e2e/{64-hex-slug}/login → Sanctum token for browser E2E without Google. Five defense layers: route-registration kill-switch (TEST_AUTH_ENABLED → 404 off), unguessable 64-hex slug, aoneahsan.apps.t1* email whitelist (403), bcrypt Hash::check vs .env hash (401), throttle:5,1 (429); failures log email only, never the password. Route kept OUT of the throttle:30,1 auth group (shared sha1(domain|ip) key would double-count). firstOrCreate adapted to real users schema (password NOT NULL, synthetic unique google_id, plan omitted→DB default 'free'). Slug+hash generated without printing plaintext (round-trip MATCH); hash single-quoted in .env for dotenv. 9 new tests; suite 152 passed / 380 assertions on sqlite AND MySQL 8.4. pint clean. Live-curl verified all layers then killed servers. CLAUDE.md+AGENTS.md Auth Stack note added; global registry row left to Fable.",
|
|
262
|
+
"commit": "pending"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"date": "2026-07-10",
|
|
266
|
+
"phase": "phase04",
|
|
267
|
+
"summary": "Opus 4.8: frontend + plugin ↔ backend contract audit. WEBSITE: new lib/api-errors.ts translates Laravel errors — 422→per-field RHF setError, 403→plan-limit message, 5xx→friendly generic (kills the original 'blank Server Error' on app-create); wired into AppsPage+UploadPage. Fixed ApiBuild.status enum (bogus rolled_back → real active/paused/archived/failed/uploading/processing) + status badges in 4 pages + filter; SettingsPage plan 'beta'→'free'. /me↔AuthUser + analytics aggregate shapes verified OK. FINDING #6 FIXED (backend): RolloutController@index whereIn(active,paused) — paused rollouts stay listed & resumable (RolloutsPage proves it expects them); +BuildController@index now honors channel/status params the UI already sent; +4 backend tests. PLUGIN: extracted single-source src/core/update-check.ts and routed plugin.ts + version-manager (/check) + background-scheduler live fallback (/updates/latest) all through /v1/updates/check — the latter two were 100% broken (backend never served those paths); no public-API break (additive). Documented the native app-store /app-version paths as intentional custom-backend extension points (JSDoc + docs/server-requirements.md rewrite + background-update-api.md); definitions.ts JSDoc-first; fixed rollout.ts UpdateCheckResponse misleading comment. Plugin does not report to /v1/analytics/* (noted, not invented). EXAMPLE APP: pointed at local Laravel (http://localhost:5946/api) + apiKey via VITE_UPDATE_API_KEY (config/env/README); file:→portal: (Yarn4 file: OOMs). Curl round-trip vs seeded local MySQL backend proved the EXACT plugin request → 200 available:true full contract (parses as BackendUpdateCheckResponse), available:false branch + 401 keyless control correct. FINDING P4-1 for phase05: php artisan serve appends welcome HTML to the update-check response (dispatch()->afterResponse() + no fastcgi_finish_request) → breaks response.json(); php-fpm/prod clean (harness green) — E2E-16 should serve via php-fpm. Gates: website typecheck/lint(0err)/build + plugin build/lint + example build all clean; backend 248 passed/709 assertions on sqlite AND MySQL 8.4; pint clean.",
|
|
268
|
+
"commit": "pending"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"date": "2026-07-10",
|
|
272
|
+
"phase": "phase03",
|
|
273
|
+
"summary": "Opus 4.8: full PHPUnit coverage of EVERY routes/api.php route (57/57 = 100%). +92 tests (152→244 passed / 690 assertions) green on sqlite AND MySQL 8.4 strict; pint clean. New files: AnalyticsDashboard, Subscription, Build (index/show/update/destroy/promote), SigningKey, GoogleDrive, Preferences, Me, BundleDownload (signed URL), Health, NovaAdminLogin; extended App/Rollout/Admin/Update/PayPalWebhook. All externals mocked offline: PayPal (protected paypal() overridden by an anonymous-subclass fake — no live PayPal per owner), Socialite, FilesHub, Google Drive; signed bundle download via Storage::fake. FIXED (all test-first): (1) analytics dashboard event_type bucketing — buckets 'download'/'install'/'error' never written vs real download_complete/install_complete/download_failed/install_failed/rollback → totals always 0 (drift #5, mine); (2) guarded-'plan' silent mass-assignment drop on subscription activate + all PayPal webhook handlers → paid users never upgraded/downgraded (forceFill fix); (3) BuildController::promote missing NOT-NULL storage_path → hard 500 on every promotion (zero-copy mirror fix). Deferred + documented: finding #7 (account-deletion FilesHub cleanup is dead code — storage_provider enum lacks 'fileshub', real bundles are 'drive'), finding #8 (changePlan calls non-existent srmklive updateSubscriptionPlan → 502; guard-only tested). Coverage matrix + route-list.json under results/. Intentionally skipped: welcome view, Nova session-guard Google OAuth (equivalent API-plane logic already tested), admin/logout, Nova-internal/Ignition routes.",
|
|
274
|
+
"commit": "pending"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"date": "2026-07-11",
|
|
278
|
+
"phase": "phase06",
|
|
279
|
+
"summary": "Fable 5 (main context, per new no-default-subagents rule): verification pass over phases 01-05 (suite 248 green re-run, commit chain d11cb50..682a211 confirmed pushed, tracker consistent); queued the deploy batch in DEPLOY_NOTES + MANUAL-TASKS #9. Owner rule 'Sub-agents & Skills — Main-Context-First' mirrored across all project CLAUDE/AGENTS files. Awaiting owner deploy, then phase06.3 prod smoke.",
|
|
280
|
+
"commit": "pending"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"resumeInstructions": "1) Read this tracker. 2) First pending/in_progress sub-task. 3) Read its phase spec. 4) Invoke skills per RULE #0. 5) Execute; verify gates incl. one MySQL parity test run. 6) Update statuses + runHistory + lastUpdated. 7) ONE commit per phase, pushed."
|
|
284
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# Phase 01 — Apps schema-drift fix + full schema↔code drift audit
|
|
2
|
+
|
|
3
|
+
**Executor:** Opus 4.8 subagent · **Working dir:** `backend/`
|
|
4
|
+
**Gate for the WHOLE phase:** `php artisan test` green on sqlite **AND** on MySQL (§5), then ONE commit.
|
|
5
|
+
|
|
6
|
+
Global constraints (apply to every step):
|
|
7
|
+
- PHP ≥8.3, Laravel 13. Follow existing code style (typed signatures, JSDoc-style docblocks stating *why*).
|
|
8
|
+
- Never run dev servers here; one-shot commands only.
|
|
9
|
+
- MySQL 8.4 is at `127.0.0.1` (`brew`-installed, `mysql@8.4`). Local DB `laravel_nativeupdate` per `backend/.env`.
|
|
10
|
+
- NEVER echo secrets. NEVER `console.log`-equivalents left behind.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Task 1: Migration — add `bundle_id` + `platform` to `apps`
|
|
15
|
+
|
|
16
|
+
**Files:**
|
|
17
|
+
- Create: `backend/database/migrations/2026_07_10_000010_add_bundle_id_and_platform_to_apps.php`
|
|
18
|
+
|
|
19
|
+
**Why:** `StoreAppRequest` (`unique:apps,bundle_id`), `AppController::store()`, `UpdateAppRequest`
|
|
20
|
+
(`platform`), the website (`AppsPage.tsx`, `AppDetailPage.tsx`, `AdminAppsPage.tsx` render
|
|
21
|
+
`app.bundle_id`) all require columns that no migration creates → prod 500.
|
|
22
|
+
|
|
23
|
+
**Step 1 — write the migration (complete code):**
|
|
24
|
+
|
|
25
|
+
```php
|
|
26
|
+
<?php
|
|
27
|
+
|
|
28
|
+
use Illuminate\Database\Migrations\Migration;
|
|
29
|
+
use Illuminate\Database\Schema\Blueprint;
|
|
30
|
+
use Illuminate\Support\Facades\DB;
|
|
31
|
+
use Illuminate\Support\Facades\Schema;
|
|
32
|
+
|
|
33
|
+
return new class extends Migration
|
|
34
|
+
{
|
|
35
|
+
/**
|
|
36
|
+
* The dashboard contract (StoreAppRequest / AppController / website)
|
|
37
|
+
* writes `bundle_id` + `platform`, but create_apps_table only ever
|
|
38
|
+
* shipped the legacy shape (`platforms` json, no bundle_id) — on MySQL
|
|
39
|
+
* strict mode every app-create 500'd (Unknown column). 191 keeps the
|
|
40
|
+
* unique index under the utf8mb4 767-byte limit.
|
|
41
|
+
*/
|
|
42
|
+
public function up(): void
|
|
43
|
+
{
|
|
44
|
+
Schema::table('apps', function (Blueprint $table) {
|
|
45
|
+
$table->string('bundle_id', 191)->nullable()->after('app_id');
|
|
46
|
+
$table->string('platform', 20)->default('both')->after('bundle_id');
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// Backfill legacy rows: pre-drift rows stored the package id in
|
|
50
|
+
// app_id ("com.example.app"); post-fix rows use a UUID there. Only
|
|
51
|
+
// package-style values (contain a dot) are meaningful bundle_ids.
|
|
52
|
+
DB::table('apps')
|
|
53
|
+
->whereNull('bundle_id')
|
|
54
|
+
->where('app_id', 'like', '%.%')
|
|
55
|
+
->update(['bundle_id' => DB::raw('app_id')]);
|
|
56
|
+
|
|
57
|
+
Schema::table('apps', function (Blueprint $table) {
|
|
58
|
+
$table->unique('bundle_id'); // MySQL allows multiple NULLs in a unique index
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
public function down(): void
|
|
63
|
+
{
|
|
64
|
+
Schema::table('apps', function (Blueprint $table) {
|
|
65
|
+
$table->dropUnique(['bundle_id']);
|
|
66
|
+
$table->dropColumn(['bundle_id', 'platform']);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Step 2 — run it against BOTH engines:**
|
|
73
|
+
```bash
|
|
74
|
+
cd backend
|
|
75
|
+
php artisan migrate # local MySQL (laravel_nativeupdate)
|
|
76
|
+
DB_CONNECTION=sqlite DB_DATABASE=/tmp/nu-scratch.sqlite sh -c 'touch $DB_DATABASE; php artisan migrate:fresh --force'
|
|
77
|
+
```
|
|
78
|
+
Expected: both DONE without error. On MySQL verify:
|
|
79
|
+
```bash
|
|
80
|
+
mysql -h 127.0.0.1 -u root laravel_nativeupdate -e "SHOW COLUMNS FROM apps LIKE 'bundle_id'; SHOW COLUMNS FROM apps LIKE 'platform';"
|
|
81
|
+
```
|
|
82
|
+
Expected: `bundle_id varchar(191) YES UNI` and `platform varchar(20) NO 'both'`.
|
|
83
|
+
(If root has a password, read it from `backend/.env` `DB_PASSWORD` — never paste it into chat/output.)
|
|
84
|
+
|
|
85
|
+
## Task 2: App model + factory follow the new contract
|
|
86
|
+
|
|
87
|
+
**Files:**
|
|
88
|
+
- Modify: `backend/app/Models/App.php:16-32`
|
|
89
|
+
- Modify: `backend/database/factories/AppFactory.php`
|
|
90
|
+
|
|
91
|
+
**Step 1 — model:** add `'bundle_id'` and `'platform'` to `$fillable` (after `'app_id'`). Keep the
|
|
92
|
+
legacy `platforms`/`channels` casts — columns still exist; phase01 Task 4 decides their fate.
|
|
93
|
+
|
|
94
|
+
**Step 2 — factory (complete definition):**
|
|
95
|
+
```php
|
|
96
|
+
public function definition(): array
|
|
97
|
+
{
|
|
98
|
+
return [
|
|
99
|
+
'user_id' => User::factory(),
|
|
100
|
+
'app_id' => Str::uuid()->toString(),
|
|
101
|
+
'bundle_id' => 'com.' . fake()->unique()->domainWord() . '.' . fake()->domainWord(),
|
|
102
|
+
'platform' => fake()->randomElement(['ios', 'android', 'both']),
|
|
103
|
+
'name' => fake()->words(2, true),
|
|
104
|
+
'description' => fake()->sentence(),
|
|
105
|
+
'platforms' => ['ios', 'android'],
|
|
106
|
+
'channels' => ['production', 'staging'],
|
|
107
|
+
];
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
Note `app_id` becomes a UUID — matching what `AppController::store()` actually writes today.
|
|
111
|
+
Grep for tests relying on the old package-style `app_id` factory value and update them
|
|
112
|
+
(`grep -rn "app_id" backend/tests/`): the plugin-side lookups key on api-keys, not app_id format.
|
|
113
|
+
|
|
114
|
+
## Task 3: Strengthen the masked test assertions
|
|
115
|
+
|
|
116
|
+
**Files:**
|
|
117
|
+
- Modify: `backend/tests/Feature/AppControllerTest.php` (`test_create_app_successfully`, the
|
|
118
|
+
duplicate-bundle_id test if present, and the update test)
|
|
119
|
+
|
|
120
|
+
**Step 1:** in `test_create_app_successfully` replace the DB assertion with one that includes the
|
|
121
|
+
new columns (this is the assertion that would have caught the bug even on sqlite):
|
|
122
|
+
```php
|
|
123
|
+
$response->assertStatus(201)
|
|
124
|
+
->assertJson(['message' => 'App created successfully.'])
|
|
125
|
+
->assertJsonPath('app.name', 'My New App')
|
|
126
|
+
->assertJsonPath('app.bundle_id', 'com.test.myapp')
|
|
127
|
+
->assertJsonPath('app.platform', 'both');
|
|
128
|
+
|
|
129
|
+
$this->assertDatabaseHas('apps', [
|
|
130
|
+
'user_id' => $this->user->id,
|
|
131
|
+
'name' => 'My New App',
|
|
132
|
+
'bundle_id' => 'com.test.myapp',
|
|
133
|
+
'platform' => 'both',
|
|
134
|
+
]);
|
|
135
|
+
```
|
|
136
|
+
**Step 2:** add `test_create_app_rejects_duplicate_bundle_id`: create an app via factory with
|
|
137
|
+
`bundle_id => 'com.dup.app'`, POST the same bundle_id, expect 422 +
|
|
138
|
+
`assertJsonValidationErrors(['bundle_id'])`.
|
|
139
|
+
**Step 3:** run `php artisan test --filter=AppControllerTest` → all green.
|
|
140
|
+
|
|
141
|
+
## Task 4: Systematic schema↔code drift audit (ALL tables)
|
|
142
|
+
|
|
143
|
+
**Why:** third instance of this bug class (device_hash truncation, bundle_id missing). Find the
|
|
144
|
+
rest NOW.
|
|
145
|
+
|
|
146
|
+
**Method (exact):**
|
|
147
|
+
1. Fresh-migrate the MySQL test DB:
|
|
148
|
+
`mysql -h 127.0.0.1 -u root -e "CREATE DATABASE IF NOT EXISTS laravel_nativeupdate_audit"` then
|
|
149
|
+
`DB_DATABASE=laravel_nativeupdate_audit php artisan migrate:fresh --force`.
|
|
150
|
+
2. Dump real columns per table:
|
|
151
|
+
`mysql -h 127.0.0.1 -u root laravel_nativeupdate_audit -e "SELECT TABLE_NAME, COLUMN_NAME, COLUMN_TYPE FROM information_schema.COLUMNS WHERE TABLE_SCHEMA='laravel_nativeupdate_audit' ORDER BY TABLE_NAME, ORDINAL_POSITION"`.
|
|
152
|
+
3. For EVERY model in `app/Models/` (App, ApiKey, AnalyticsEvent, Build, DeviceActivity,
|
|
153
|
+
SigningKey, Subscription, SubscriptionItem, User): compare `$fillable`, `casts()`, and every
|
|
154
|
+
column referenced in model methods/scopes against the dump.
|
|
155
|
+
4. For EVERY FormRequest in `app/Http/Requests/` and every inline `validate()` in
|
|
156
|
+
`app/Http/Controllers/`: check `unique:<table>,<col>` / `exists:<table>,<col>` columns exist.
|
|
157
|
+
5. For EVERY Nova resource in `app/Nova/`: check each field's attribute exists on its model table.
|
|
158
|
+
6. Check column TYPES for truncation risks (the device_hash class): any sha256/uuid/token column
|
|
159
|
+
shorter than its written value; JSON written into string columns; enum drift
|
|
160
|
+
(values written by code vs allowed).
|
|
161
|
+
7. Write findings to `docs/features/e2e-full-verification/results/phase01-drift-report.md` as a
|
|
162
|
+
table: `location | reference | schema reality | severity | fix`. **Fix every REAL mismatch** in
|
|
163
|
+
this phase (new migrations following Task 1's pattern + model/request updates + tests). Legacy
|
|
164
|
+
write-only columns (`apps.platforms`, `apps.channels` if truly unread) → document, leave
|
|
165
|
+
columns in place, remove dead casts/fillable entries only if nothing reads them.
|
|
166
|
+
|
|
167
|
+
## Task 5: Gates + commit
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
cd backend
|
|
171
|
+
php artisan test # sqlite :memory:
|
|
172
|
+
mysql -h 127.0.0.1 -u root -e "CREATE DATABASE IF NOT EXISTS laravel_nativeupdate_test"
|
|
173
|
+
DB_CONNECTION=mysql DB_DATABASE=laravel_nativeupdate_test php artisan test # MySQL parity — MANDATORY
|
|
174
|
+
```
|
|
175
|
+
Expected: green on BOTH (count ≥134 + new tests). If MySQL parity finds additional failures
|
|
176
|
+
sqlite hid — they are in scope, fix them now.
|
|
177
|
+
|
|
178
|
+
Update `00-tracker.json` (phase01 → complete, runHistory row), then ONE commit:
|
|
179
|
+
```bash
|
|
180
|
+
git add backend/ docs/features/e2e-full-verification/
|
|
181
|
+
git commit -m "fix(backend): add missing apps.bundle_id/platform columns (prod 500 on app create) + schema-drift audit"
|
|
182
|
+
git push origin main
|
|
183
|
+
```
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Phase 02 — UI-less env-gated test-auth endpoint
|
|
2
|
+
|
|
3
|
+
**Executor:** Opus 4.8 subagent · **Working dir:** `backend/`
|
|
4
|
+
**Owner requirements (verbatim intent):** email+password auth for testing ONLY, no UI, only
|
|
5
|
+
`aoneahsan.apps.t1*` emails, URL unique + long so nobody guesses it, password never committed.
|
|
6
|
+
|
|
7
|
+
## Security contract (all five layers required)
|
|
8
|
+
|
|
9
|
+
1. Route **not registered at all** unless `TEST_AUTH_ENABLED=true` (config-gated) → 404 otherwise.
|
|
10
|
+
2. Path contains a 64-hex secret slug from env → unguessable URL.
|
|
11
|
+
3. Email whitelist regex: `^aoneahsan\.apps\.t1(\+[a-z0-9._-]+)?@gmail\.com$` (case-insensitive).
|
|
12
|
+
4. Password verified with `Hash::check()` against `TEST_AUTH_PASSWORD_HASH` (bcrypt in `.env` —
|
|
13
|
+
repo is PRIVATE; plaintext still never stored).
|
|
14
|
+
5. `throttle:5,1` + all failures logged (email only — NEVER the submitted password).
|
|
15
|
+
|
|
16
|
+
## Task 1: Config + env
|
|
17
|
+
|
|
18
|
+
**Files:**
|
|
19
|
+
- Create: `backend/config/testauth.php`
|
|
20
|
+
- Modify: `backend/.env`, `backend/.env.example`
|
|
21
|
+
|
|
22
|
+
`config/testauth.php` (complete):
|
|
23
|
+
```php
|
|
24
|
+
<?php
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* E2E test-only authentication (NO UI). Disabled unless TEST_AUTH_ENABLED
|
|
28
|
+
* is true; the route slug keeps the URL unguessable; only the global
|
|
29
|
+
* automation test accounts (aoneahsan.apps.t1*@gmail.com) may pass. The
|
|
30
|
+
* password is compared against a bcrypt hash — plaintext lives ONLY in
|
|
31
|
+
* ~/.secrets (see ~/.claude/rules/automation-test-accounts.md).
|
|
32
|
+
*/
|
|
33
|
+
return [
|
|
34
|
+
'enabled' => env('TEST_AUTH_ENABLED', false),
|
|
35
|
+
'route_slug' => env('TEST_AUTH_ROUTE_SLUG', ''),
|
|
36
|
+
'password_hash' => env('TEST_AUTH_PASSWORD_HASH', ''),
|
|
37
|
+
'email_pattern' => '/^aoneahsan\.apps\.t1(\+[a-z0-9._-]+)?@gmail\.com$/i',
|
|
38
|
+
];
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Generate the slug + hash WITHOUT echoing the password:
|
|
42
|
+
```bash
|
|
43
|
+
openssl rand -hex 32 # → TEST_AUTH_ROUTE_SLUG value (safe to display)
|
|
44
|
+
# Hash: read plaintext from the global secrets file into php via stdin — never into shell history/output.
|
|
45
|
+
# The password is the LAST non-empty line of the "Password" row in
|
|
46
|
+
# ~/.secrets/test-accounts/automation-accounts.md — extract with grep/sed INSIDE the pipeline:
|
|
47
|
+
grep -o 'A1[^|`]*C0m' ~/.secrets/test-accounts/automation-accounts.md | head -1 | tr -d '\n' \
|
|
48
|
+
| php -r 'echo password_hash(stream_get_contents(STDIN), PASSWORD_BCRYPT), PHP_EOL;'
|
|
49
|
+
```
|
|
50
|
+
Append to `backend/.env` (real values) and `backend/.env.example` (empty values + tags):
|
|
51
|
+
```
|
|
52
|
+
# --- E2E test auth (NO UI — agent-only) -------------------------------------
|
|
53
|
+
TEST_AUTH_ENABLED=true
|
|
54
|
+
# [OPTIONAL] Registers the hidden test-login route when true. Kill-switch: set false.
|
|
55
|
+
TEST_AUTH_ROUTE_SLUG=<64 hex chars>
|
|
56
|
+
# [REQUIRED*] (test auth) Secret path segment — long + unguessable by design.
|
|
57
|
+
TEST_AUTH_PASSWORD_HASH=<bcrypt hash>
|
|
58
|
+
# [REQUIRED*] (test auth) bcrypt hash of the global automation password (plaintext lives in ~/.secrets ONLY).
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Task 2: Controller + route
|
|
62
|
+
|
|
63
|
+
**Files:**
|
|
64
|
+
- Create: `backend/app/Http/Controllers/Auth/TestAuthController.php`
|
|
65
|
+
- Modify: `backend/routes/api.php` (auth prefix group)
|
|
66
|
+
|
|
67
|
+
Controller (complete):
|
|
68
|
+
```php
|
|
69
|
+
<?php
|
|
70
|
+
|
|
71
|
+
namespace App\Http\Controllers\Auth;
|
|
72
|
+
|
|
73
|
+
use App\Http\Controllers\Controller;
|
|
74
|
+
use App\Models\User;
|
|
75
|
+
use Illuminate\Http\JsonResponse;
|
|
76
|
+
use Illuminate\Http\Request;
|
|
77
|
+
use Illuminate\Support\Facades\Hash;
|
|
78
|
+
use Illuminate\Support\Facades\Log;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* E2E-only login (no UI). See config/testauth.php for the gating layers.
|
|
82
|
+
* Mirrors the Socialite flow's outcome: a Sanctum bearer token the SPA
|
|
83
|
+
* consumes via /auth/callback?token=… — so browser automation signs in
|
|
84
|
+
* without Google, and the rest of the stack behaves identically.
|
|
85
|
+
*/
|
|
86
|
+
class TestAuthController extends Controller
|
|
87
|
+
{
|
|
88
|
+
public function login(Request $request): JsonResponse
|
|
89
|
+
{
|
|
90
|
+
$validated = $request->validate([
|
|
91
|
+
'email' => ['required', 'email'],
|
|
92
|
+
'password' => ['required', 'string'],
|
|
93
|
+
]);
|
|
94
|
+
|
|
95
|
+
$email = strtolower($validated['email']);
|
|
96
|
+
|
|
97
|
+
if (!preg_match(config('testauth.email_pattern'), $email)) {
|
|
98
|
+
Log::warning('test-auth: rejected non-whitelisted email', ['email' => $email]);
|
|
99
|
+
return response()->json(['message' => 'Forbidden.'], 403);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
$hash = config('testauth.password_hash');
|
|
103
|
+
if ($hash === '' || !Hash::check($validated['password'], $hash)) {
|
|
104
|
+
Log::warning('test-auth: bad password attempt', ['email' => $email]);
|
|
105
|
+
return response()->json(['message' => 'Unauthenticated.'], 401);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
$user = User::firstOrCreate(
|
|
109
|
+
['email' => $email],
|
|
110
|
+
[
|
|
111
|
+
'name' => 'E2E ' . ucfirst(explode('@', $email)[0]),
|
|
112
|
+
'google_id' => 'test-e2e:' . $email,
|
|
113
|
+
'plan' => 'free',
|
|
114
|
+
]
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
if (!$user->hasAnyRole(['user', 'admin', 'super-admin'])) {
|
|
118
|
+
$user->assignRole('user');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
$token = $user->createToken('test-e2e')->plainTextToken;
|
|
122
|
+
Log::info('test-auth: issued token', ['email' => $email, 'user_id' => $user->id]);
|
|
123
|
+
|
|
124
|
+
return response()->json(['token' => $token, 'user' => $user->only(['id', 'email', 'name'])]);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
Adjust `firstOrCreate` defaults to the REAL users-table columns (check the
|
|
129
|
+
`swap_firebase_for_socialite_on_users` migration first — e.g. `avatar`, nullable google_id, no
|
|
130
|
+
`plan` column if plans live elsewhere). The values above are the intent, not gospel.
|
|
131
|
+
|
|
132
|
+
Route — inside the existing `Route::prefix('auth')` group in `routes/api.php`:
|
|
133
|
+
```php
|
|
134
|
+
if (config('testauth.enabled') && config('testauth.route_slug') !== '') {
|
|
135
|
+
Route::post('/test-e2e/' . config('testauth.route_slug') . '/login', [TestAuthController::class, 'login'])
|
|
136
|
+
->middleware('throttle:5,1')
|
|
137
|
+
->name('auth.test-e2e.login');
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
Route registration depends on config → `php artisan config:cache` note for deploy (phase06 covers it).
|
|
141
|
+
|
|
142
|
+
## Task 3: PHPUnit
|
|
143
|
+
|
|
144
|
+
**Create:** `backend/tests/Feature/TestAuthTest.php` — cases (use `config()->set('testauth.…')` in
|
|
145
|
+
each test; slug `str_repeat('a', 64)` for tests):
|
|
146
|
+
1. disabled → POST returns 404 (route absent; use a fresh app instance / `RefreshApplication`
|
|
147
|
+
pattern — route registration is boot-time, so set env in `phpunit.xml` OFF and enable via
|
|
148
|
+
`Config::set` + `Route::post` re-registration is unreliable: instead test with
|
|
149
|
+
`$this->app['config']` + re-bootstrapped kernel, or accept 404 by hitting the slug path with
|
|
150
|
+
config disabled in a separate test run. Pragmatic approach: keep TEST_AUTH_ENABLED=true in
|
|
151
|
+
`phpunit.xml` <env> with the dummy slug + a bcrypt hash of a dummy test password, and assert
|
|
152
|
+
the DISABLED case by asserting `Route::has('auth.test-e2e.login')` is false when config is off
|
|
153
|
+
in a unit test of the route-registration condition).
|
|
154
|
+
2. non-whitelisted email (`attacker@gmail.com`, `aoneahsan.apps.t2@gmail.com`,
|
|
155
|
+
`xaoneahsan.apps.t1@gmail.com`) → 403.
|
|
156
|
+
3. whitelisted email + wrong password → 401.
|
|
157
|
+
4. whitelisted email + correct dummy password → 200, token present; then
|
|
158
|
+
`getJson('/api/dashboard/me', ['Authorization' => 'Bearer '.$token])` → 200 with same email.
|
|
159
|
+
5. alias emails (`aoneahsan.apps.t1+1@gmail.com`, `+del`) → 200, distinct users created.
|
|
160
|
+
6. throttling: 6th rapid attempt → 429.
|
|
161
|
+
|
|
162
|
+
Never put the REAL password in tests — tests hash their own dummy (`password_hash('dummy-e2e', PASSWORD_BCRYPT)` in setUp).
|
|
163
|
+
|
|
164
|
+
## Task 4: Registry + docs (agent does repo files; Fable does global files at verify)
|
|
165
|
+
|
|
166
|
+
- Append to project `CLAUDE.md` + `AGENTS.md` (compact, in the Auth Stack section): test-auth
|
|
167
|
+
exists, env-gated, email committed OK, **password stored globally — see
|
|
168
|
+
`~/.claude/rules/automation-test-accounts.md`**, kill-switch TEST_AUTH_ENABLED=false.
|
|
169
|
+
- `~/.claude/rules/automation-test-accounts.md` per-project registry row (Fable adds at
|
|
170
|
+
verification — outside repo).
|
|
171
|
+
|
|
172
|
+
## Task 5: Gates + commit
|
|
173
|
+
|
|
174
|
+
`php artisan test` (sqlite) + MySQL parity run → green. ONE commit:
|
|
175
|
+
`feat(backend): env-gated UI-less test-auth endpoint for E2E automation (whitelisted t1 accounts)`.
|
|
176
|
+
Update tracker. Push.
|