\$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, '正在加载…'), 'Invoice HTML must contain the first records instead of a client-only loading placeholder.'); $assert(!str_contains($module, '/cloud/runtime.js') && !str_contains($module, '/api/v1/session') && str_contains($module, 'function hydrate()') && str_contains($module, 'state.invoices.some(invoiceNeedsPolling)') && str_contains($module, "['completed', 'succeeded', 'active', 'failed', 'refunded'") && str_contains($module, "'needs_attention'].includes(fulfillmentStatus(invoice))") && !str_contains($module, 'setInterval('), 'Invoice list module must be lightweight and stop polling terminal records.'); $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";