videogen/BUILD-LOG-2026-10-23.md
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

207 lines
14 KiB
Markdown

# Build Log — 2026-10-23
## Round 1
Backlog worked from (highest priority first), see task brief. Built items 1, 10 and 8 in full;
investigated and skipped items 2, 5, 11 and 12 with reasons below.
### Item 1 — `/from-app-store` acquisition page + public app-listing preview (BUILT, full)
New public, unauthenticated growth surface: paste an App Store or Google Play URL, see the
real listing (icon, title, developer, rating, description, screenshots) and a Claude-written
3-hook-script preview, before any sign-up. The actual render stays gated behind the free-credit
sign-up flow.
- `apps/api/app/domains/applisting/hookscript.py` — hook-script generator (3 opening lines),
Relay-LLM-backed with a deterministic, fact-only fallback. Mirrors
`app.domains.appaudit.rewrite`'s pattern (same Relay env resolution, same "never invent a
claim" prompt discipline).
- `apps/api/app/domains/applisting/service.py` — `build_preview(url)`: classifies the URL
(`app.domains.capture.sources.classify`), fetches the live listing
(`app.domains.capture.store.fetch_app_store` / `fetch_play_store` — the same fetchers the
capture pipeline and the App Store audit already use), builds the listing card + hook preview.
- `apps/api/app/domains/applisting/router.py` — `POST /api/v1/public/app-listing-preview`,
public, rate-limited per caller IP (20/hour), mirrors `app.domains.appaudit.router`.
- Mounted in `apps/api/app/router.py`; added to the production API allowlist
(`api_surface_allowlist.json` + `docs/api/ROUTE-AUDIT.md`, regenerated via
`apps/api/tools/ops/api_surface_audit.py` — additive only, also picked up 2 pre-existing
Growth Tasks routes a prior commit never re-ran the audit for).
- `apps/web/src/features/app-listing/api.ts` — typed client (`previewAppListing`, anonymous).
- `apps/web/components/marketing/app-listing/ListingPreviewView.tsx` +
`AppListingPreviewRunner.tsx` — listing card, screenshot strip, hook-preview list with copy
buttons, and a `RenderGateCta` that routes signed-out visitors to sign-up and signed-in
visitors straight to `/create?q=<url>&auto=1` (verified `/create`'s `OneFlowCreate` already
classifies `app_store`/`play_store` links as a first-class link kind).
- `apps/web/app/(marketing)/from-app-store/page.tsx` — full landing page: hero, the preview
runner, two body sections, 5 FAQ entries written as direct, citable Q&A paragraphs (robots.ts
already allowlists GPTBot/ClaudeBot/PerplexityBot/Google-Extended — this gives them real
content to cite on this route, closing part of backlog item 9 for this page), FAQPage +
Breadcrumb JSON-LD.
- Cross-linked from `/tools/app-store-audit` and the `/video-ads/mobile-app` vertical page.
Added to `lib/seo/urls.ts` sitemap entries.
- Verified end-to-end live: ran the API locally and hit real App Store (WhatsApp) and Play
Store (`com.whatsapp`) listings — both returned real icon/screenshots/rating/description and
a 3-hook fallback preview (no Relay configured locally); verified a bad URL returns a clean
422; ran the web app's dev server and confirmed the page renders 200 with the FAQPage JSON-LD
and the input form in the HTML. `tsc --noEmit` clean across the whole web app both before and
after this item.
### Item 10 — Creator-profile SEO/discovery completion (BUILT, full)
Audited `/creators/[handle]` (confirmed gap: it was a `"use client"` shell with zero
server-rendered content — no `generateMetadata`, no structured data, every visit incl. crawlers
saw an empty div until JS hydrated and fetched the profile) and `/discover/creators` (confirmed
intentionally excluded — it's in `robots.ts`'s disallow list as an authenticated app surface, not
a public marketing index; left untouched, matches existing policy).
- Split `apps/web/app/creators/[handle]/page.tsx` into a server component (`generateMetadata` +
Person JSON-LD, using the already-public `GET /creators/{handleOrId}`) and a new
`CreatorProfileClient.tsx` carrying all the follow/unfollow interactivity, seeded from the
server-fetched profile instead of starting from a loading skeleton.
- Added `personLd()` to `apps/web/lib/seo/jsonld.ts` (Person node + `interactionStatistic` for
follower/template counts — no invented rating).
- A creator with zero published templates gets `noindex, follow` (thin-profile guard, mirrors
the vertical pages' `isIndexableVertical` pattern); a real creator gets full indexing +
OpenGraph `profile` metadata.
- `apps/web/app/sitemap.ts` now also pulls the public, capped (`limit: 100`)
`GET /creators/leaderboard` and adds an entry per creator with at least one published
template; any fetch failure degrades to zero creator entries rather than failing the sitemap.
- Verified live: `tsc --noEmit` clean; dev server returned 200 for `/from-app-store`,
`/creators/<unknown-handle>` (degrades to the client's own "Creator not found" panel, same
behavior as before — not a hard 404, confirmed not a regression) and `/sitemap.xml`;
`/sitemap.xml` contains `/from-app-store`; confirmed against the real production API that
`GET /creators/leaderboard` currently returns `[]` (nobody has published a template yet), so
zero creator sitemap entries today is correct live behavior, not a bug — the code is fully
wired and will populate itself once a creator publishes.
### Item 8 — Post-render conversion funnel instrumentation (BUILT, full)
Extended the existing, real activation-funnel system (`app/services/funnel`: `FunnelEvent` rows,
`record_step`/`sync_events`, the daily digest email from commit `148123f5`) with the three
missing post-render steps, instead of inventing a parallel tracker.
- `apps/api/app/services/funnel/report.py` — `STEPS` now reads
`signup → card_check → first_link → first_reel → share_page_viewed → pricing_viewed →
checkout_started → paid`. Every report/digest function (`build_report`, `biggest_drop_off`,
the daily/weekly text+HTML bodies) already iterates `STEPS` generically, so the existing daily
digest email now reports real before/after numbers on the exact drop-off step named in
STRATEGY.md, with zero changes to the email code itself.
- `share_page_viewed` — recorded inline in `app/controllers/v1/share.py`'s
`POST /jobs/{job_id}/share` (a creator minting a share link for their own finished reel),
after the write session closes (never nested inside it).
- `checkout_started` — recorded inline at all four checkout-session-creation endpoints:
`POST /billing/checkout`, `POST /credit-packs/{pack_id}/checkout` (web channel only — the
store/RevenueCat redemption channel is an already-completed purchase, not a "started" one),
`POST /billing/monthly-plan/checkout`, `POST /billing/premium/checkout`.
- `pricing_viewed` — no other DB row exists for a page view, so added one small new endpoint
`POST /api/v1/funnel/pricing-viewed` (authenticated, rate-limited 30/hour per caller) and a
tiny client-only ping component (`apps/web/app/(marketing)/pricing/PricingViewedPing.tsx`,
fires once per mount for signed-in visitors only, silently swallows failures) mounted on
`/pricing`.
- `record_step` itself never raises (best-effort, logs a warning on failure); every new call
site additionally guards its own lazy import, so none of this can break a real checkout or
share action.
- Updated the one existing test whose fixture needed the three new step keys
(`tests/reelforge/test_funnel.py::test_report_math_and_drop_off` — not a new test file, an
existing assertion updated to match the intentional `STEPS` change) and the API-surface cap
test (`PUBLIC_PATH_CAP` 612 → 617, with a dated changelog comment, same pattern as every prior
bump in that file) for the two new public/authenticated paths plus the two pre-existing
Growth Tasks paths a prior commit never re-ran the audit for.
- Regenerated `api_surface_allowlist.json` + `docs/api/ROUTE-AUDIT.md` (additive only — diffed
before committing).
- Verified: `pytest tests/reelforge -k "funnel or share or billing or credit_pack or
monthly_plan or premium or api_surface"` → 272 passed, 1 skipped, 0 failed. `ruff check` clean
on every changed file (one pre-existing, unrelated `F841` in `credit_packs.py:132` left
untouched — not introduced by this change, confirmed via `git diff`). `tsc --noEmit` clean.
### Item 2 — Named-competitor `/compare/menivor-vs-{creatify,arcads,heygen,adcreative,icon}` pages — SKIPPED (policy conflict, not a code gap)
The repo's own `lib/seo/competitors.ts` explicitly documents this as settled, deliberate policy:
*"INTERNAL research dataset. Not rendered: there are no /vs, /alternatives or /templates routes,
and the graph's dead-link guard drops every link to them... Competitor names stay here as
research only (claims rule 2: no competitor names in public copy); a page that renders this data
must pass the copy gate first."* This matches the owner's standing no-comparison-ads rule
recorded in memory (`feedback-claim-gate-2026-10-10`: *"Pain-point ads must not name
competitors"*) and the project's "claims rules" convention used consistently across
`lib/seo/features.ts`, `platforms.ts`, `ScenePanel.tsx` and `posture.ts`. Building named
competitor marketing pages would directly reverse that standing decision without a fresh
go-ahead, so it was skipped rather than built. (The 5 target `/tools/*` free-tool pages this item
would have linked to already exist and needed no changes.)
### Item 5 — Hook Performance Loop into `/ideas` and `/hook-lab` — SKIPPED (already built / not applicable)
Verified current wiring as instructed before building:
- `/ideas`: `app/services/ideas.py:generate_ideas` **already** fetches the caller's
`winning_hooks` (`app/services/hook_performance.py`) and appends a "these hook patterns
already earned strong engagement for THIS creator" bias block to the prompt, additive and
best-effort. This is the exact feature the backlog item asked for — already shipped.
- `/hook-lab`: this page is not a generation call at all — it's a client-only, local slider
sandbox over `@reelforge/growth-analytics.hookScore` (the pipeline's first-3-seconds
motion/contrast/audio/text hook-gate model), with no backend request. There is no generation
call here to bias with retention data; the backlog item's premise doesn't match what this
route is. Nothing built here; `app/domains/growth/hook_ranker.py` (a separate, real Jev-scored
multi-variant ranker) was also inspected and is unrelated to this item.
### Item 11 — AppLovin campaign management — SKIPPED (confirmed platform limitation, not a code gap)
Per the task brief, confirmed and left untouched: the connector's own docstring states campaign
management needs AppLovin's partner-gated API, separate from the reporting API this codebase
has. Not buildable here.
### Item 12 — Flip `NEXT_PUBLIC_WAITLIST_MODE` — SKIPPED (owner-only env step)
Noted, not attempted — requires production env access only the owner has. Items 3 and 8 (and
STRATEGY.md's whole growth-move section) only convert live traffic once this flips.
## Remaining from the backlog (not started this round)
- Item 3 — launch-offer / discount-code billing primitive (`discount_codes` table + redemption +
`/pricing` banner). Real gap confirmed (no promo/coupon primitive anywhere in the billing
domain); substantial, untouched this round.
- Item 4 — "Launch as paid ad" action on `/ad-studio/[id]` wiring the existing Meta/TikTok
clients into the `/ads/new → /ads/[key] → /ads/report` flow. Not audited/started this round.
- Item 6 — Template Marketplace remix attribution + revenue-share ledger
(`/creators/[handle]/earnings`). Not started.
- Item 7 — `/from-app-store/[category]` programmatic pages (fitness/finance/games/productivity),
extending the `VERTICALS` pattern to the app-marketer ICP. Not started — natural next step now
that item 1's base `/from-app-store` page and preview endpoint exist.
- Item 9 — partially done (the new `/from-app-store` page itself has FAQ/Q&A blocks); the
`/compare/*` half is blocked on item 2's policy conflict above.
## Files changed / lines
- New files: 10 (`apps/api/app/domains/applisting/{__init__,hookscript,service,router}.py`,
`apps/api/app/controllers/v1/funnel_events.py`, `apps/web/src/features/app-listing/api.ts`,
`apps/web/components/marketing/app-listing/{ListingPreviewView,AppListingPreviewRunner}.tsx`,
`apps/web/app/(marketing)/from-app-store/page.tsx`,
`apps/web/app/creators/[handle]/CreatorProfileClient.tsx`,
`apps/web/app/(marketing)/pricing/PricingViewedPing.tsx`).
- Modified: `apps/api/app/router.py`, `apps/api/app/core/api_surface_allowlist.json`,
`docs/api/ROUTE-AUDIT.md`, `apps/api/app/controllers/v1/{share,billing,credit_packs,
monthly_plans,premium_credits}.py`, `apps/api/app/services/funnel/report.py`,
`apps/web/lib/seo/{urls,jsonld}.ts`, `apps/web/app/sitemap.ts`,
`apps/web/app/creators/[handle]/page.tsx`,
`apps/web/app/(marketing)/tools/app-store-audit/page.tsx`,
`apps/web/app/(marketing)/video-ads/[business]/page.tsx`,
`apps/web/app/(marketing)/pricing/page.tsx`, `tests/reelforge/test_funnel.py`,
`tests/reelforge/test_m3_3_api_surface.py`.
- Full `git diff --stat` at commit time has the exact file/line counts.
## Verification summary
- `apps/web`: `npx tsc --noEmit` — clean, 0 errors (full web app, run 3x across the round).
- `apps/api`: `pytest tests/reelforge -k "funnel or share or billing or credit_pack or
monthly_plan or premium or api_surface"` — 272 passed, 1 skipped, 0 failed.
`ruff check` clean on every file this round touched.
- Live dev-server checks: real API hit against live Apple/Google listing data (WhatsApp on both
stores); real Next.js dev server serving `/from-app-store`, `/creators/[handle]`,
`/sitemap.xml` all 200 with the expected content.
- No automated test files were added, per the owner's standing instruction; verification was by
running the real API and web app and exercising the endpoints/pages directly.
## Owner-only blockers (noted, not attempted)
- `NEXT_PUBLIC_WAITLIST_MODE` flip (item 12) — production env access only the owner has.
- AppLovin campaign management (item 11) — partner-gated API Menivor has no access to; not a
code gap.