MARIO + AIK / WEB SPACE Stay curious. Keep thinking.
Mario and AikMario & Aik Space
Share
Small experiments. Human direction. AI assistance.
← All notes

ZETTELWIRTSCHAFT / 069 · SEARCH OPERATIONS

When a test is part of production

A misleading test name, a deleted dependency and a restored search: what we learned about finishing experiments.

Before restoration: the public search API status address displayed Cloudflare’s “There is nothing here yet”. Screenshot from 18 November 2026.
Before restoration: the public search API status address displayed Cloudflare’s “There is nothing here yet”. Screenshot from 18 November 2026.

A search page with no search

On 18 November 2026, Mario tried Mario & Aik Search and found the input disabled. The page said search was temporarily unavailable, beside the general allowance of 500 searches daily and 15,000 monthly. That allowance text did not show that either limit had been exhausted. The API status address instead displayed Cloudflare’s “There is nothing here yet”.

The test had become a dependency

Cloudflare’s audit log confirmed that the API Worker had been deleted on 11 November 2026 at 09:35:56 MEZ through the dashboard. Mario explained that he probably removed it because he understood the test to be complete and no longer needed. The public search still depended on that historically named test service. The findings establish a deleted production dependency; they do not establish a bot attack. The exact beginning of the public outage was not measured.

What we learned about finishing a test

Mario drew the practical lesson: when a test is complete, either remove it cleanly after checking its dependencies, or explicitly classify it as a retained part of the running system and name and document it accordingly. A test label must not remain on an essential component as if it were disposable. Aik’s implementation had left that distinction unclear. For recovery, we retained the original API address to reconnect the existing interface; the operating record now clearly marks it as production. A future rename requires a coordinated change to the API address, frontend and connection policy.

Restoring the existing collection

At Mario’s request, Aik restored the API Worker through the integrated browser using the existing search implementation and reconnected the existing D1 database, Vectorize index and Workers AI. The stored collection and shared counters were retained. The status view showed nine approved websites and 88 pages. Two deliberate searches for “human and AI collaboration” each returned ten results. The second left 498 of 500 daily attempts and 14,997 of 15,000 monthly attempts. These are application counters at that moment, not account-wide billing or a guarantee of continuous availability.

The name on the separate search site

The search site was hosted separately and still displayed “Mario & Aik Lab” after the main website became Mario & Aik Space. We corrected its header, return link and browser title, the search privacy page and the private review desk. We also changed the old brand suffix in ten stored result titles for mario-aik.space. Historical note titles and older text extracts remain dated records; this correction did not recrawl the whole collection or regenerate its embeddings. External links in the search interface now open in a new tab with noopener noreferrer.

Evidence and responsibility

The screenshots below show the unavailable public API endpoint and the restored public search. The account audit screenshot stays in the private working evidence; account details and visitor information are not published here. Local checks passed for search allowances, simultaneous requests, period resets, failure accounting, approved-result filtering, suggestions and administrator access validation. The restored API’s Workers logs and traces were confirmed disabled. Mario directs and reviews the work and retains editorial responsibility; Aik is his AI assistant.

Follow-up: a clear production name

Later on 18 November 2026, Mario asked us to make the distinction visible in the infrastructure name itself. We renamed the production API Worker from mario-aik-search-test to mario-aik-search-api and changed the frontend API address, its Content Security Policy connection allowlist and the search privacy notice together. The existing D1 database remains named mario-aik-search-test: it is a separate production data resource, not the renamed Worker. Its binding, the Vectorize index, Workers AI and the stored collection remain in use. The operating documentation now distinguishes those resources explicitly.

A database name is a separate operation

Mario also asked to rename the production D1 database to mario-aik-search-db. We checked the database settings and the action menu in Cloudflare’s integrated-browser dashboard. Neither inspected view offered a rename operation. We therefore left the existing database unchanged rather than treating a replacement database as an in-place rename. The API and administrator/crawler DB bindings both pointed to the same existing database ID. The inspected collection held 88 indexed pages, 11 website records and 91 crawl jobs; the search, suggestion and crawl counters were recorded for comparison. A migration to a new database would require its own preparation and verification before either binding is switched.

Migration completed: the production database

On 18 November 2026, Mario authorized the prepared migration. We temporarily paused both public writes and the administrator’s scheduled crawler, confirmed that no crawl job or lease was active, and captured the seven application tables through the integrated browser. The fresh snapshot contained 88 pages, 12 website records and 91 crawl jobs: 196 rows across all seven tables. Repeated source captures matched. We created mario-aik-search-db with EU jurisdiction, imported the existing schema and rows without seed migrations, and compared every stored field using complete-table hashes. All seven tables matched exactly. Both production DB bindings now resolve to the same new database ID; the Vectorize index and page IDs remain unchanged. After Mario’s separate approval, both preview-base DB bindings were also switched to the same new database ID and verified after reloading the dashboard.

Counters preserved, then one deliberate test

Before reopening, source and target still matched, including search, suggestion and crawl counters, pause values and timestamps. Search usage was four daily attempts and five monthly attempts. One deliberate live collaboration search returned ten results and advanced those counts normally to five and six, leaving 495 daily and 14,994 monthly attempts. Cloudflare rejected PRAGMA integrity_check in its dashboard console; the complete captured target passed the local SQLite integrity and foreign-key checks, and a direct live join found no orphan crawl jobs. Worker logs and traces remained disabled. The old database was retained, not deleted. Private exports and account screenshots remain outside the public site.

Cleanup after the dependency check

After the migration, we checked all 46 current Workers in the Cloudflare account. Thirty-two serve static assets only and cannot have database bindings; for the other fourteen, we inspected both production and preview-base bindings. None referred to the old database. The search API and administrator/crawler use mario-aik-search-db in both configurations. The executable local search source also contained no reference to the old database name or ID. Historical records and private migration backups remain as evidence.

Mario removed the retired database

Mario then deleted the retired mario-aik-search-test database himself. The refreshed D1 list no longer contained it and still showed mario-aik-search-db with its existing ID. A subsequent live collaboration search returned ten results. The shared allowance moved normally from 495 to 494 daily searches remaining and from 14,994 to 14,993 monthly searches remaining. The private migration exports remain outside the public site. This completes the cleanup: the running search has clearly named API and database resources, and the retired database is no longer left behind as a misleading test resource.

After restoration: Mario & Aik Space branding, a working search and ten real results. Screenshot from 18 November 2026.
After restoration: Mario & Aik Space branding, a working search and ten real results. Screenshot from 18 November 2026.
After the database migration: a live search returns ten results. The deliberate test used one normally counted attempt. Screenshot from 18 November 2026.
After the database migration: a live search returns ten results. The deliberate test used one normally counted attempt. Screenshot from 18 November 2026.