native-update 3.1.0 → 3.1.2
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 +88 -58
- package/Readme.md +57 -88
- package/cli/AGENTS.md +9 -0
- package/cli/CLAUDE.md +9 -0
- package/cli/package.json +2 -2
- package/dist/esm/app-update/app-update-checker.d.ts +19 -0
- package/dist/esm/app-update/app-update-checker.js +19 -0
- package/dist/esm/background-update/background-scheduler.d.ts +21 -0
- package/dist/esm/background-update/background-scheduler.js +47 -24
- 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 -1
- package/dist/esm/live-update/version-manager.js +43 -27
- package/dist/esm/plugin.js +14 -20
- package/dist/esm/types/rollout.d.ts +9 -3
- package/dist/plugin.cjs.js +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.js +2 -2
- package/docs/AGENTS.md +9 -0
- package/docs/CHANGELOG.md +51 -0
- package/docs/CLAUDE.md +9 -0
- package/docs/DEPLOY_NOTES.md +116 -0
- package/docs/MANUAL-TASKS.md +18 -5
- package/docs/api/background-update-api.md +14 -1
- 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/server-requirements.md +41 -11
- package/package.json +1 -1
package/docs/MANUAL-TASKS.md
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
# Manual / User-Only Tasks — Native Update
|
|
2
2
|
> The ONE place for everything only you (the human) can do. Fixed path: docs/MANUAL-TASKS.md.
|
|
3
|
-
> Global spec: ~/.claude/rules/manual-tasks.md. Last updated: 2026-07-
|
|
3
|
+
> Global spec: ~/.claude/rules/manual-tasks.md. Last updated: 2026-07-13 (queues+emails batch: row 8 narrowed to ONE cron — queue:work cron now DELETED, scheduler drives the worker; row 10 — grant the FilesHub API key the `email` permission — email sends via FilesHub, NOT SMTP)
|
|
4
|
+
>
|
|
5
|
+
> ✅ Server agent 2026-07-10: rows 1, 2, 3 CONFIRMED superseded and moved to Completed — prod is live
|
|
6
|
+
> (`/api/health` → 200 JSON), PHP 8.3.30 (≥8.3), both new migrations applied on prod MySQL. Row 8's
|
|
7
|
+
> `device_hash` half is verified DONE; row 8 now tracks ONLY the still-broken hPanel retention cron
|
|
8
|
+
> (owner/hPanel-UI action — the shell has no `crontab` access; see `docs/DEPLOY_NOTES.md`).
|
|
4
9
|
|
|
5
10
|
## ⏳ Pending manual tasks
|
|
6
11
|
|
|
7
12
|
| # | Task | Why only you | Detail | Status |
|
|
8
13
|
|---|------|--------------|--------|--------|
|
|
9
|
-
| 1 | 🔴 **URGENT — production backend is DOWN.** Every route on `https://nativeupdatebe.aoneahsan.com` returns HTTP 500 (verified 2026-07-02: root, `/api/v1/updates/check`, `/api/auth/google/redirect`). Dashboard sign-in and mobile update checks are broken in production right now. | Needs Hostinger SSH + server logs | 1) SSH in, read `storage/logs/laravel-*.log` to find the fatal (likely PHP version — **Laravel 13 requires PHP ≥ 8.3**; or a missing `.env` key / uncached config). 2) Deploy the fresh zip from `production-deploy/` per `docs/deployment/HOSTINGER_DEPLOY.md` §6 + §9: unzip → `composer install --no-dev --optimize-autoloader` → `php artisan migrate --force` (applies the new covering index) → `php artisan config:cache && route:cache && view:cache` → `nova:publish`. 3) Confirm the `schedule:run` cron (§5) exists. 4) Smoke: `curl https://nativeupdatebe.aoneahsan.com/api/health`. | ☐ Not started |
|
|
10
|
-
| 2 | Verify the backend **Laravel 11→13 + spatie-permission 6→8** upgrade against the real production DB | Needs the configured MySQL (agent runs tests only on sqlite `:memory:`) | Agent already runs the full suite locally: **134 PHPUnit tests pass** (`cd backend && php artisan test`, sqlite in-memory — all migrations incl. the new `builds_channel_lookup_idx` apply cleanly). Remaining for you: `php artisan migrate --force` against production MySQL (review spatie v8 changes: `php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"` if prompted), then smoke-test sign-in + RBAC + a build upload. | ☐ Not started |
|
|
11
|
-
| 3 | Ensure production server runs **PHP ≥ 8.3** and **Node ≥ 24.16.0** | Server/host change | Laravel 13 requires PHP 8.3+ (hPanel → PHP Configuration). `engines.node` is ≥24.16.0 across all units (the published `native-update@3.1.0` declares this floor too). The current 500 is very likely a PHP-version mismatch — check this first. | ☐ Not started |
|
|
12
14
|
| 4 | Deploy the Docusaurus docs site (`native-update-docs/`) | Needs Firebase Hosting auth | `cd native-update-docs && yarn build` → `yarn firebase:deploy`. Runbook: `native-update-docs/DEPLOY.md`. (This repo's marketing site + dashboard were deployed by the agent — see Completed.) | ☐ Not started |
|
|
13
15
|
| 5 | On-device OTA verification (Android + iOS) | Device-only; agent cannot run emulators/`cap run` | Per `docs/CLAUDE.md` Bundle/OTA Release Safety: test bundles on both platforms, verify checksum validation + rollback + background-update behavior before any live release. | ☐ Not started |
|
|
16
|
+
| 6 | Add the **Nova admin Google redirect URI** to the OAuth client | Needs Google Cloud Console access | Google Cloud Console → APIs & Services → Credentials → the OAuth 2.0 Client (`686131007016-…`) → **Authorized redirect URIs** → add BOTH `http://localhost:5946/admin/login/google/callback` (dev) and `https://nativeupdatebe.aoneahsan.com/admin/login/google/callback` (prod). Without it, admin sign-in returns Google's `redirect_uri_mismatch`. (The Nova admin panel is now **Google-only** — password login/reset removed; only admins can enter. `GOOGLE_ADMIN_REDIRECT_URI` already set in `.env`/`.env.example`.) | ☐ Not started |
|
|
17
|
+
| 8 | 🟠 **Fix the `schedule:run` hPanel cron + DELETE the `queue:work` cron** so the scheduler (and with it analytics cleanup + the queue worker) actually runs | hPanel UI only — no `crontab` binary in this CageFS shell | `device_hash` `VARCHAR(191)` half is **DONE + verified**. Still open: the crons error every minute (Hostinger passes `>/dev/null` as a literal arg). **Since 2026-07-13 only ONE cron is needed** — the scheduler now drives the queue worker itself (`routes/console.php`), so in **hPanel → Advanced → Cron Jobs**: fix `schedule:run` with the `/bin/sh -c "…"` form (exact line in the 2026-07-10 item of `docs/DEPLOY_NOTES.md`) and **delete the `queue:work` cron entirely**. Verify: arg-parse errors stop in `storage/logs/laravel-*.log`. | ☐ Not started (hPanel) |
|
|
18
|
+
| 10 | 🟡 **Run the pending FilesHub PROD migration** so `/emails/send` stops 503ing, then flip this app's prod `MAIL_MAILER=fileshub` | FilesHub prod server access (Hostinger) — owner/server-agent only | **Key DONE (agent, 2026-07-13):** the owner-provided `fh_live_…` key is in `~/.secrets/native-update/fileshub-api-key` + committed `backend/.env`; verified live — auth + `email` permission PASS (request reaches FilesHub's send pipeline). **Blocked on FilesHub's side:** prod `/api/v1/emails/send` throws `Unknown column 'email_attachments.updated_at'` → 503. The fix is ALREADY COMMITTED in the files-hub repo (migration `2026_07_03_100000_add_updated_at_to_email_attachments_table`, commit `af19905`) — it just needs `git pull` + `php artisan migrate --force` on the **FilesHub** prod app. Then: set this app's prod `FILESHUB_API_KEY` to the same key, `MAIL_MAILER=fileshub`, `php artisan config:cache`, and re-run the test-mail check (DEPLOY_NOTES 2026-07-13 item step 5). **Until then, prod stays on `MAIL_MAILER=log` — safe.** | ☐ FilesHub migrate pending |
|
|
19
|
+
| 7 | 🟡 Set **`GOOGLE_CLIENT_SECRET`** in the **prod** Hostinger `.env` (dev `.env` ✅ done by agent 2026-07-10) | Secret must be set on the server — needs Hostinger SSH/hPanel | **Dev done:** the rotated secret (`GOCSPX-RKrsCCFZP…`, the only working one after the old one was deleted in Google Cloud Console 2026-07-10) is now in committed `backend/.env` (private repo) and stored in `~/.secrets/native-update/google-oauth-client-secret` + `~/.secrets/INDEX.md`. **Still for you:** during the #1 Hostinger deploy, set the SAME `GOOGLE_CLIENT_SECRET=GOCSPX-RKrsCCFZP…` in the production `.env`, then `php artisan config:clear` (or re-cache). Without it, Google sign-in (admin + dashboard) fails token exchange with `client_secret is missing`. | ☐ Not started (prod only) |
|
|
20
|
+
| 9 | ✅ **Server deploy of the E2E-verification batch — DONE + verified 2026-07-10** (commits `d11cb50..682a211`) | — | Server agent pulled `main`, overlaid `backend/`, `composer install --no-dev`, applied both migrations (`apps.bundle_id` → `varchar(191) UNI`, `builds.status` enum gained `paused`), added the 3 `TEST_AUTH_*` vars to prod `.env`, rebuilt config/route/view cache. Verified live: `POST /api/auth/test-e2e/<slug>/login` with a wrong password → **401**, bogus slug → **404**. **Handed to the LOCAL agent:** run the full prod smoke (phase06.3 — create app → API key → update-check → analytics rows → cleanup) and close the feature. Residual server item: the hPanel crons → row 8. | ✅ Done (server) — local smoke pending |
|
|
14
21
|
|
|
15
22
|
## ✅ Completed manual tasks
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
| Task | Done | Date |
|
|
25
|
+
|------|------|------|
|
|
26
|
+
| (#1) Production backend restored + live — `curl https://nativeupdatebe.aoneahsan.com/api/health` → 200 JSON (`{"status":"ok",…,"env":"production"}`) | verified by server agent | 2026-07-10 |
|
|
27
|
+
| (#2) Laravel 11→13 + spatie-permission 6→8 upgrade against prod MySQL — all migrations applied clean on prod DB; app serving | verified by server agent | 2026-07-10 |
|
|
28
|
+
| (#3) Production PHP ≥ 8.3 — `php -v` → **PHP 8.3.30** (Node not needed at runtime; Vite assets ship pre-built) | verified by server agent | 2026-07-10 |
|
|
29
|
+
| Publish `native-update@3.1.0` to npm (`npm view native-update version` → 3.1.0, tag `latest`) | by agent at user request | 2026-07-02 |
|
|
30
|
+
| Deploy marketing site + dashboard (`website/`) to Firebase Hosting (project `native-update`; live bundle `index-BgWyydoP.js`, immutable asset caching) | by agent at user request | 2026-07-02 |
|
|
@@ -154,4 +154,17 @@ NativeUpdate.addListener('backgroundUpdateNotification', (event) => {
|
|
|
154
154
|
|
|
155
155
|
### Web
|
|
156
156
|
- Uses Service Workers when available
|
|
157
|
-
- Falls back to periodic checks when app is active
|
|
157
|
+
- Falls back to periodic checks when app is active
|
|
158
|
+
|
|
159
|
+
## Server contracts (what a background check calls)
|
|
160
|
+
|
|
161
|
+
A background check can look for two different kinds of update, each with its
|
|
162
|
+
own backend contract:
|
|
163
|
+
|
|
164
|
+
| `updateType` | Endpoint | Auth | Purpose |
|
|
165
|
+
|---|---|---|---|
|
|
166
|
+
| `LIVE_UPDATE` | `GET {serverUrl}/v1/updates/check?channel=…` | `X-API-Key` + `X-Device-ID` headers | OTA bundle check — the **same** endpoint `NativeUpdate.checkForUpdate()` uses (implemented once in `src/core/update-check.ts`). Full contract: `docs/server-requirements.md`. |
|
|
167
|
+
| `APP_UPDATE` | `GET {serverUrl}/app-version` | `X-Current-Version` + `X-Platform` headers | **Optional custom extension point** for server-driven *native app-store* update prompts. Not part of the Native Update (Laravel) OTA backend; a no-op unless you implement it. Returns `{ "version": "2.1.0", "priority": 3 }`. |
|
|
168
|
+
|
|
169
|
+
The primary native app-update path is the platform store API (Play Core /
|
|
170
|
+
App Store); the `/app-version` endpoint is only the optional server fallback.
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
|
@@ -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
|
+
}
|