native-update 3.1.1 → 3.1.3
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/AI-INTEGRATION-GUIDE.md +98 -63
- package/Readme.md +89 -120
- package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +88 -12
- package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +45 -18
- package/cli/package.json +2 -2
- package/dist/esm/definitions.d.ts +8 -0
- package/dist/esm/plugin.js +16 -2
- package/dist/plugin.cjs.js +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.js +2 -2
- package/docs/CHANGELOG.md +108 -0
- package/docs/KNOWN_LIMITATIONS.md +2 -2
- package/docs/MIGRATION.md +1 -1
- package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +64 -8
- package/ios/Plugin/NativeUpdatePlugin.swift +39 -13
- package/package.json +8 -3
- package/docs/AGENTS.md +0 -47
- package/docs/APP_REVIEW_GUIDE.md +0 -768
- package/docs/BUNDLE_SIGNING.md +0 -277
- package/docs/CLAUDE.md +0 -110
- package/docs/COMPREHENSIVE_AUDIT_REPORT.md +0 -526
- package/docs/DEPLOY_NOTES.md +0 -117
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_PLAN.md +0 -384
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_TRACKER.md +0 -390
- package/docs/LIVE_UPDATES_GUIDE.md +0 -675
- package/docs/MANUAL-TASKS.md +0 -30
- package/docs/MARKETING_WEBSITE_TRACKER.md +0 -677
- package/docs/NATIVE_UPDATES_GUIDE.md +0 -695
- package/docs/PACKAGES.md +0 -167
- package/docs/PERFORMANCE.md +0 -110
- package/docs/PROJECT_COMPLETION_TRACKER.md +0 -411
- package/docs/QUICK_START.md +0 -595
- package/docs/README.md +0 -130
- package/docs/REMAINING_FEATURES.md +0 -192
- package/docs/ROADMAP.md +0 -295
- package/docs/SECURITY-IF-REPO-PUBLIC.md +0 -232
- package/docs/SECURITY.md +0 -356
- package/docs/TESTING_REQUIREMENTS.md +0 -201
- package/docs/ai-knowledge-base/00-project-profile.md +0 -38
- package/docs/ai-knowledge-base/01-features.md +0 -46
- package/docs/ai-knowledge-base/02-routes.md +0 -72
- package/docs/ai-knowledge-base/03-tech-stack.md +0 -57
- package/docs/ai-knowledge-base/README.md +0 -23
- package/docs/analytics-tracking.md +0 -37
- package/docs/api/API.md +0 -558
- package/docs/api/FEATURES.md +0 -414
- package/docs/api/app-review-api.md +0 -239
- package/docs/api/app-update-api.md +0 -154
- package/docs/api/background-update-api.md +0 -170
- package/docs/api/events-api.md +0 -323
- package/docs/api/live-update-api.md +0 -258
- package/docs/archive/MARKETING_WEBSITE_PLAN.md +0 -659
- package/docs/background-updates.md +0 -392
- package/docs/capacitor-official-plugins.md +0 -46
- package/docs/capawesome-plugins.md +0 -29
- package/docs/cli-reference.md +0 -321
- package/docs/deployment/HOSTINGER_DEPLOY.md +0 -370
- package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +0 -184
- package/docs/docs-site/plan.md +0 -201
- package/docs/docs-site/scope.md +0 -127
- package/docs/docs-site/tracker.json +0 -235
- package/docs/error-handling-tracking.md +0 -37
- package/docs/examples/advanced-scenarios.md +0 -394
- package/docs/examples/android-manifest-example.xml +0 -77
- package/docs/examples/basic-usage.md +0 -206
- package/docs/examples/node-express-backend-example.md +0 -28
- package/docs/examples/react-capacitor-example.md +0 -29
- package/docs/features/app-reviews.md +0 -975
- package/docs/features/app-updates.md +0 -785
- package/docs/features/e2e-full-verification/00-overview.md +0 -99
- package/docs/features/e2e-full-verification/00-tracker.json +0 -284
- package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +0 -183
- package/docs/features/e2e-full-verification/phase02-test-auth.md +0 -176
- package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +0 -63
- package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +0 -73
- package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +0 -69
- package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +0 -51
- package/docs/features/e2e-full-verification/results/phase01-drift-report.md +0 -50
- package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +0 -215
- package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +0 -139
- package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +0 -99
- 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 +0 -1
- package/docs/features/laravel-nova-backend/ASSESSMENT-SUMMARY.md +0 -96
- package/docs/features/laravel-nova-backend/IMPLEMENTATION-PLAN.md +0 -504
- package/docs/features/laravel-nova-backend/progress-tracker.json +0 -184
- package/docs/features/live-updates.md +0 -642
- package/docs/features/queues-and-emails/00-overview.md +0 -41
- package/docs/features/queues-and-emails/00-tracker.json +0 -99
- package/docs/features/queues-and-emails/phase01-foundation.md +0 -15
- package/docs/features/queues-and-emails/phase02-queued-jobs.md +0 -19
- package/docs/features/queues-and-emails/phase03-transactional-emails.md +0 -16
- package/docs/features/queues-and-emails/phase04-quota-ops.md +0 -17
- package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +0 -16
- package/docs/features/queues-and-emails/phase06-verify-deploy.md +0 -17
- package/docs/getting-started/configuration.md +0 -469
- package/docs/getting-started/installation.md +0 -300
- package/docs/getting-started/quick-start.md +0 -430
- package/docs/guides/BACKEND_TEMPLATES_GUIDE.md +0 -183
- package/docs/guides/admin-panel.md +0 -268
- package/docs/guides/channel-management.md +0 -343
- package/docs/guides/dashboard-guide.md +0 -365
- package/docs/guides/deployment-guide.md +0 -335
- package/docs/guides/end-to-end-workflow.md +0 -491
- package/docs/guides/key-management.md +0 -284
- package/docs/guides/migration-from-codepush.md +0 -145
- package/docs/guides/security-best-practices.md +0 -1057
- package/docs/guides/testing-guide.md +0 -346
- package/docs/guides/troubleshooting.md +0 -482
- package/docs/package-audit.md +0 -41
- package/docs/plans/PLANNING_COMPLETE_SUMMARY.md +0 -361
- package/docs/plans/TASK_1_ANDROID_EXAMPLE_APP.md +0 -401
- package/docs/plans/TASK_2_API_ENDPOINTS.md +0 -856
- package/docs/plans/TASK_2_DASHBOARD_UI_UX.md +0 -820
- package/docs/plans/TASK_2_DATABASE_SCHEMA.md +0 -704
- package/docs/plans/TASK_2_GOOGLE_DRIVE_INTEGRATION.md +0 -646
- package/docs/plans/TASK_2_SAAS_ARCHITECTURE.md +0 -587
- package/docs/plans/TASK_2_USER_AUTHENTICATION.md +0 -600
- package/docs/play-store/ASO-METADATA.md +0 -5
- package/docs/play-store/DATA-SAFETY.md +0 -5
- package/docs/play-store/DECLARATIONS.md +0 -5
- package/docs/play-store/README.md +0 -27
- package/docs/play-store/RELEASE-NOTES.md +0 -99
- package/docs/play-store/RELEASE-STEPS.md +0 -6
- package/docs/play-store/STORE-LISTING.md +0 -7
- package/docs/play-store/SUBMISSION-CHECKLIST.md +0 -5
- package/docs/production-readiness.md +0 -475
- package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +0 -123
- package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +0 -227
- package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +0 -144
- package/docs/project-audit/2026-05-16/sessions/batch-01.md +0 -42
- package/docs/project-audit/2026-05-16/sessions/batch-02.md +0 -74
- package/docs/project-audit/2026-05-16/sessions/batch-03.md +0 -71
- package/docs/project-audit/2026-05-16/sessions/batch-04.md +0 -88
- package/docs/project-audit/2026-05-16/sessions/batch-05.md +0 -63
- package/docs/project-audit/2026-05-16/sessions/batch-06.md +0 -103
- package/docs/project-audit/2026-05-16/sessions/batch-07.md +0 -61
- package/docs/project-audit/2026-05-16/sessions/batch-08.md +0 -101
- package/docs/project-audit/2026-05-16/sessions/batch-09.md +0 -105
- package/docs/project-audit/2026-05-16/sessions/batch-10.md +0 -102
- package/docs/project-audit/AUDIT-HISTORY.md +0 -74
- package/docs/project-audit/BATCH-PLAN.md +0 -168
- package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +0 -73
- package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +0 -275
- package/docs/project-finalization/00-tracker.json +0 -60
- package/docs/project-knowledge-base/01-system-overview.md +0 -227
- package/docs/project-knowledge-base/02-routes-pages-forms-users.md +0 -352
- package/docs/project-knowledge-base/03-tech-stack-modules-services.md +0 -379
- package/docs/project-knowledge-base/04-data-models-integrations.md +0 -244
- package/docs/project-knowledge-base/05-docs-corpus-inventory.md +0 -256
- package/docs/project-knowledge-base/06-operations-testing-legal-content.md +0 -208
- package/docs/project-knowledge-base/README.md +0 -103
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +0 -81
- package/docs/reports/AUDIT_SUMMARY_2025-12-26.md +0 -203
- package/docs/reports/CLAUDE-CODE-COMPLETION-PROMPT.md +0 -403
- package/docs/reports/CLAUDE_CODE_PROMPT.md +0 -29
- package/docs/reports/CODEBASE_STATUS_REPORT.md +0 -272
- package/docs/reports/COMPLETE_VERIFICATION.md +0 -106
- package/docs/reports/COMPREHENSIVE-PROJECT-AUDIT-2026-02-24.md +0 -747
- package/docs/reports/EVENT_FLOW_VERIFICATION.md +0 -80
- package/docs/reports/EXAMPLE_APPS_SIMPLIFICATION_COMPLETE.md +0 -369
- package/docs/reports/FINAL_STATUS.md +0 -122
- package/docs/reports/FINAL_VERIFICATION_CHECKLIST.md +0 -425
- package/docs/reports/MARKETING_WEBSITE_COMPLETE.md +0 -466
- package/docs/reports/PACKAGE_COMPLETENESS_REPORT.md +0 -130
- package/docs/reports/PRODUCTION_STATUS.md +0 -115
- package/docs/reports/PROJECT_RESTRUCTURE_2025-12-27.md +0 -287
- package/docs/reports/PROJECT_RESTRUCTURE_FINAL_SUMMARY.md +0 -464
- package/docs/reports/PUBLISHING_VERIFICATION.md +0 -144
- package/docs/reports/RELEASE_READY_SUMMARY.md +0 -99
- package/docs/reports/claude-completion.json +0 -241
- package/docs/rules-tracker.md +0 -102
- package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +0 -116
- package/docs/security/certificate-pinning.md +0 -122
- package/docs/seo-aeo-rules.json +0 -3043
- package/docs/social-media-marketing/README.md +0 -81
- package/docs/social-media-marketing/posts-batch-01.md +0 -613
- package/docs/social-media-marketing/posts-batch-02.md +0 -528
- package/docs/social-media-marketing/whatsapp-messages-batch-01.md +0 -458
- package/docs/social-media-marketing/whatsapp-status-batch-01.md +0 -355
- package/docs/tracking/IMPLEMENTATION_TRACKER.md +0 -303
- package/docs/tracking/capacitor-rollout-note-2026-03-01.md +0 -21
- package/docs/tracking/completion-tracker-2026-02-24.json +0 -174
- package/docs/tracking/finalization-2026-05-16-tracker.json +0 -346
- package/docs/tracking/full-audit-tracker.json +0 -121
- package/docs/tracking/production-readiness-audit-tracker.json +0 -429
- package/docs/tracking/seo-checklist-tracker.json +0 -333
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# E2E Full Verification — Overview
|
|
2
|
-
|
|
3
|
-
> **For agentic workers:** Execute phase-by-phase per `00-tracker.json`. Each phase has its own
|
|
4
|
-
> spec file (`phaseNN-*.md`) with exact files, code, commands, and verification gates. Do NOT
|
|
5
|
-
> re-plan from zero — resume at the first `pending`/`in_progress` sub-task.
|
|
6
|
-
|
|
7
|
-
**Goal:** Fix the production 500 on app creation (apps-table schema drift), audit + fix ALL
|
|
8
|
-
schema↔code drift, add a UI-less env-gated test-auth endpoint, achieve full PHPUnit coverage of
|
|
9
|
-
every backend API route, verify frontend + plugin contracts against the backend, run a complete
|
|
10
|
-
multi-user browser E2E of every dashboard feature locally, then deploy and re-verify prod.
|
|
11
|
-
|
|
12
|
-
**Architecture of the work (3-model workflow, owner-mandated):**
|
|
13
|
-
1. **Fable 5** — planned this feature (this folder) and verifies at the end of each phase batch.
|
|
14
|
-
2. **Opus 4.8** — executes each phase spec (dispatched as subagents with `model: opus`).
|
|
15
|
-
3. **Fable 5** — final verification pass; any gaps get appended to the tracker and re-dispatched.
|
|
16
|
-
|
|
17
|
-
## Root cause (found 2026-07-10, Fable 5)
|
|
18
|
-
|
|
19
|
-
`POST /api/dashboard/apps` → 500 on prod because **no migration ever added `bundle_id` or
|
|
20
|
-
`platform` to the `apps` table** (`2026_03_28_000002_create_apps_table.php` ships the old shape:
|
|
21
|
-
`platforms` JSON, no `bundle_id`), while `StoreAppRequest` validates `unique:apps,bundle_id` and
|
|
22
|
-
`AppController::store()` inserts both. MySQL (prod, strict) throws Unknown column → 500.
|
|
23
|
-
|
|
24
|
-
**Why 134 PHPUnit tests stayed green (two masking layers):**
|
|
25
|
-
1. SQLite's double-quoted-string quirk: `WHERE "bundle_id" = 'x'` on a missing column silently
|
|
26
|
-
becomes a string-literal comparison (verified empirically on a scratch DB) instead of erroring.
|
|
27
|
-
2. `App::$fillable` lacks `bundle_id`/`platform`, so `create()` silently drops both fields; the
|
|
28
|
-
test asserted only `name`/`user_id` in `assertDatabaseHas`.
|
|
29
|
-
|
|
30
|
-
**Lesson (applies to every phase):** run the suite at least once against **local MySQL 8.4**
|
|
31
|
-
(same engine as prod) and write `assertDatabaseHas` assertions that include the NEW columns.
|
|
32
|
-
This is the same bug class as the 2026-07-09 `device_hash` VARCHAR(64) truncation.
|
|
33
|
-
|
|
34
|
-
## Environments
|
|
35
|
-
|
|
36
|
-
| Env | Backend | Frontend | DB | Notes |
|
|
37
|
-
|---|---|---|---|---|
|
|
38
|
-
| Local E2E | `php artisan serve` → http://localhost:5946 | Vite dev → http://localhost:5942 (`VITE_API_URL=http://localhost:5946/api`) | MySQL 8.4 (`laravel_nativeupdate`, host 127.0.0.1) | Primary test venue. Run-to-verify amendment (2026-07-03) authorizes servers + headless browser; kill everything at turn end. |
|
|
39
|
-
| PHPUnit | sqlite `:memory:` (fast) **AND** one MySQL parity run | — | `laravel_nativeupdate_test` (create if missing) | MySQL parity run is MANDATORY per phase gate. |
|
|
40
|
-
| Prod | https://nativeupdatebe.aoneahsan.com | https://nativeupdate.aoneahsan.com | MySQL (Hostinger) | No SSH from this machine. Deploys via `docs/DEPLOY_NOTES.md` queue + the owner's server agent. Phase 6 only. |
|
|
41
|
-
|
|
42
|
-
## Test accounts (global standard — see `~/.claude/rules/automation-test-accounts.md`)
|
|
43
|
-
|
|
44
|
-
- Primary: `aoneahsan.apps.t1@gmail.com` — regular `user` role.
|
|
45
|
-
- `aoneahsan.apps.t1+1@gmail.com` — second regular user (cross-user isolation tests).
|
|
46
|
-
- `aoneahsan.apps.t1+admin@gmail.com` — LOCAL-ONLY super-admin (promoted via
|
|
47
|
-
`php artisan native-update:role-assign`); on prod, test accounts stay regular users.
|
|
48
|
-
- `aoneahsan.apps.t1+del@gmail.com` — disposable, account-deletion lifecycle.
|
|
49
|
-
- **Password: NEVER in this repo.** It lives ONLY in the global files
|
|
50
|
-
(`~/.secrets/test-accounts/automation-accounts.md`, `~/.claude/rules/automation-test-accounts.md`).
|
|
51
|
-
The backend stores only a **bcrypt hash** in `.env` (`TEST_AUTH_PASSWORD_HASH`).
|
|
52
|
-
|
|
53
|
-
## Test-auth endpoint (owner decisions, 2026-07-10)
|
|
54
|
-
|
|
55
|
-
- Exists in prod AND local, but hard-gated: route not registered unless `TEST_AUTH_ENABLED=true`.
|
|
56
|
-
- Email whitelist: regex `^aoneahsan\.apps\.t1(\+[a-z0-9._-]+)?@gmail\.com$` — nothing else, ever.
|
|
57
|
-
- URL must be long + unguessable: path contains a 64-hex-char slug from `TEST_AUTH_ROUTE_SLUG` env.
|
|
58
|
-
- Password checked against `TEST_AUTH_PASSWORD_HASH` (bcrypt) — plaintext never in repo/logs/output.
|
|
59
|
-
- No UI. E2E flow: POST endpoint → Sanctum token → browser navigates to
|
|
60
|
-
`${FRONTEND}/auth/callback?token=…` (existing callback stores it; zero frontend changes).
|
|
61
|
-
|
|
62
|
-
## Owner decisions record (2026-07-10)
|
|
63
|
-
|
|
64
|
-
| Decision | Choice |
|
|
65
|
-
|---|---|
|
|
66
|
-
| Test auth exposure | Prod + local, env-gated, whitelisted `aoneahsan.apps.t1*`, long unguessable URL |
|
|
67
|
-
| Testing venue | Local-first full E2E; deploy at end; prod smoke re-verify |
|
|
68
|
-
| PHPUnit | Explicitly requested: "test it properly, all API end points" → full route coverage |
|
|
69
|
-
| PayPal | Local/sandbox only; prod read-only (plans/status GETs); no live transactions |
|
|
70
|
-
|
|
71
|
-
## Phases
|
|
72
|
-
|
|
73
|
-
1. **phase01** — Fix apps schema drift + systematic schema↔code drift audit (all tables).
|
|
74
|
-
2. **phase02** — Test-auth endpoint (env-gated, no UI) + global registry updates.
|
|
75
|
-
3. **phase03** — PHPUnit coverage for EVERY API route + MySQL parity run.
|
|
76
|
-
4. **phase04** — Frontend + plugin (npm package) ↔ backend contract audit + fixes.
|
|
77
|
-
5. **phase05** — Browser E2E: full feature matrix, multi-profile/multi-user, local.
|
|
78
|
-
6. **phase06** — Deploy queue + prod smoke re-verification (Fable + owner's server agent).
|
|
79
|
-
|
|
80
|
-
## Acceptance criteria (the whole feature is DONE when)
|
|
81
|
-
|
|
82
|
-
- [ ] `POST /api/dashboard/apps` returns 201 on prod for a signed-in user (the reported bug).
|
|
83
|
-
- [ ] Zero schema↔code drift: every fillable/cast/validation-rule column exists in the migrated
|
|
84
|
-
MySQL schema; drift report saved and all fixes migrated.
|
|
85
|
-
- [ ] Every route in `routes/api.php` has PHPUnit coverage (auth gate + happy path + key failure
|
|
86
|
-
modes) and the suite is green on sqlite AND MySQL.
|
|
87
|
-
- [ ] Test-auth endpoint works locally + on prod, refuses non-whitelisted emails/wrong password,
|
|
88
|
-
404s when disabled; password appears nowhere in the repo.
|
|
89
|
-
- [ ] Browser E2E matrix (phase05) fully executed with evidence (screenshots + logged results):
|
|
90
|
-
auth, profile, apps CRUD, api keys, signing keys, builds, rollouts, analytics, subscriptions
|
|
91
|
-
(local), admin RBAC, multi-user isolation (3 profiles), account deletion, logout, plugin
|
|
92
|
-
update-check round-trip.
|
|
93
|
-
- [ ] Frontend + plugin contract audits show zero unfixed mismatches.
|
|
94
|
-
- [ ] Prod deployed (migrations incl. yesterday's device_hash item), prod smoke green, analytics
|
|
95
|
-
rows appearing, DEPLOY_NOTES queue cleared by the server agent.
|
|
96
|
-
- [ ] Trackers, CLAUDE.md/AGENTS.md pointers, MANUAL-TASKS.md, and the global automation-accounts
|
|
97
|
-
registry updated. One commit per phase, pushed.
|
|
98
|
-
|
|
99
|
-
**Created:** 2026-07-10 by Fable 5 · Owner: aoneahsan
|
|
@@ -1,284 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,183 +0,0 @@
|
|
|
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
|
-
```
|