where('purpose', \$purpose)") && str_contains($service, 'normalizePurpose(') && str_contains($service, 'public const USER_PAGE_SIZE = 100;') && str_contains($service, "if (\$purpose === 'all')") && str_contains($service, "status IN ('open', 'overdue')") && str_contains($service, 'CloudInvoiceService::listSummaries') && str_contains($service, "'per_page' => \$perPage") && str_contains($service, "->limit(\$perPage)"), 'Shared invoice pagination must remain owner scoped and bounded.'); $assert(str_contains($template, 'id="invoices-bootstrap"') && str_contains($template, '{foreach $cloud_invoice_rows as $invoice}') && str_contains($template, 'id="invoices-purpose-filter"') && str_contains($template, '= 1, 'The user invoice HTML endpoint must use the bounded full-list page size.'); $assert(!str_contains($shell, '/theme/venix/js/qrcode.min.js'), 'The shared cloud shell must not block first paint on the QR code library.'); $assert(str_contains($topbar, "\$user->user_name|default:'账户'") && !str_contains($topbar, '{if $panel_cloud_mode}账户{else}'), 'Cloud pages must render the authenticated account name without a session API request.'); echo "Invoice server-rendered first-page performance contract passed.\n";