Both servers returned HTTP 200. Both answered the same URL. The Mini App page showed “Available” with one response and “Unknown” with the other. The change that explained the difference was small enough to miss in a code review. Somebody had put quotation marks around a boolean.
We built a small experiment to separate two claims that often get tangled together in a Super App architecture discussion. Can a service team change the language it uses on the server while leaving its Mini App alone? And if the server remains reachable, how much can the service team change about its response before the page has to change too?
The experiment ran one JavaScript Mini App page against a Node HTTP server and a Python HTTP server. Both listened on the same loopback address, one at a time. The page used the same request and state-update code in every run. A small Node harness supplied the page registration, network callback and state update. Those are the specific pieces we exercised. FinClip Studio, the mobile SDK, native networking rules and screen rendering were outside this run. The shape of the page follows the documented Mini App page and request interfaces. FinClip page lifecycle and state updates · FinClip network request documentation
What went across the boundary
The agreement was deliberately narrow. A GET to /v1/availability returns a JSON object. With an HTTP 200 response, the property available must be a boolean. A value of true selects “Available” and false selects “Unavailable”. An unexpected value selects “Unknown”. This last outcome matters. A client that treats any nonempty string as true could turn a provider’s attempt to say “unavailable” into the opposite message.
Here is the observed output, condensed into a table. Each row ran the same page and harness in a fresh process. The probe asserted the HTTP status, the parsed JSON object including its type, and the page’s resulting state.
| Server and fixture | HTTP | Parsed available value | Page state |
|---|---|---|---|
| Node, open | 200 | true | Available |
| Python, open | 200 | true | Available |
| Python, closed | 200 | false | Unavailable |
| Python, broken | 200 | "false" | Unknown |
The first pair isolates the server implementation change. The third row establishes that the client understands a provider that actually reports the service closed. The final pair isolates the type change while keeping the server language, HTTP result, property name and endpoint fixed. Recording only the page label in the final run would leave a hole. A stopped server would also lead the page to “Unknown”. The assertion on the received payload rules out that explanation.
Reproduce it locally
Our run used Node 24.22.3 and Python 3.12.14 with their standard libraries. Save the four files below in the same directory. Port 18731 on the loopback interface must be free. Use two terminals, one for the server and the other for the probe.
The page definition in page.js owns the mapping from an answer to a state. The URL stays fixed while the server process changes.
Page({ data: { label: "Checking" }, onLoad() { ft.request({ url: "http://127.0.0.1:18731/v1/availability", success: ({ statusCode, data }) => { let label = "Unknown" if (statusCode === 200 && data && typeof data.available === "boolean") { label = data.available ? "Available" : "Unavailable" } this.setData({ label }) }, fail: () => this.setData({ label: "Unknown" }) }) } }) The local host adapter in probe.mjs implements only the three operations this page needs. Its setData records the state that a page would ask the runtime to display. The expected fixture is for the assertions and never enters the page’s request.
import assert from "node:assert/strict" let page let observed globalThis.Page = definition => { page = definition } globalThis.ft = { async request({ url, success, fail }) { try { const response = await fetch(url, { signal: AbortSignal.timeout(5000) }) const data = await response.json() observed = { statusCode: response.status, data } success(observed) } catch (error) { fail(error) } } } await import("./page.js") const [expectedLabel, fixture] = process.argv.slice(2) const expectedValue = { open: true, closed: false, broken: "false" }[fixture] const result = new Promise(resolve => { page.setData = values => { Object.assign(page.data, values) resolve(page.data.label) } }) page.onLoad() const label = await result assert.equal(observed?.statusCode, 200) assert.deepEqual(observed.data, { available: expectedValue }) assert.equal(label, expectedLabel) console.log(`${observed.statusCode} ${JSON.stringify(observed.data)} ${label}`) The first backend, service.mjs, has one valid response.
import { createServer } from "node:http" const server = createServer((req, res) => { if (req.method !== "GET" || req.url !== "/v1/availability") { res.writeHead(404).end() return } res.writeHead(200, { "Content-Type": "application/json" }) res.end(JSON.stringify({ available: true })) }) server.listen(18731, "127.0.0.1", () => console.log("Ready")) The second backend, service.py, can produce the same response, a valid negative response, or an incompatible one. Each process gets its fixture from the command line.
import json import sys from http.server import BaseHTTPRequestHandler, HTTPServer values = {"open": True, "closed": False, "broken": "false"} value = values[sys.argv[1]] class Service(BaseHTTPRequestHandler): def do_GET(self): if self.path != "/v1/availability": self.send_error(404) return body = json.dumps({"available": value}).encode() self.send_response(200) self.send_header("Content-Type", "application/json") self.send_header("Content-Length", str(len(body))) self.end_headers() self.wfile.write(body) with HTTPServer(("127.0.0.1", 18731), Service) as server: print("Ready", flush=True) server.serve_forever() Start the server shown in the left column and wait for “Ready”. Run the corresponding probe in the second terminal. Stop the server with Ctrl+C before proceeding to the next row. If your Python 3 executable is called python3, use that name for the Python commands.
| Start in terminal one | Run in terminal two |
|---|---|
node service.mjs | node probe.mjs Available open |
python service.py open | node probe.mjs Available open |
python service.py closed | node probe.mjs Unavailable closed |
python service.py broken | node probe.mjs Unknown broken |
Which team needs to know?
The page continued to work when the implementation moved from Node to Python because both services observed the same agreement. It also continued to work when an ordinary business fact changed from open to closed. Those are valuable freedoms for a provider. The provider can change how it runs its service and can report new business conditions through an existing channel without asking the mobile team to rewrite the page.
Changing the representation of a fact is a different decision. If one side wants to support “pending” as well as open and closed, several sensible designs are possible. A boolean field called available can stay in place while a new field carries additional detail, provided the teams still agree what the old boolean means. A new contract version may be clearer if that meaning has changed. The customer-facing team has to participate because someone has to decide what a pending customer should see and be able to do.
The test also sharpens the title question. The Mini App depends on the business response. The host supplies the runtime and capabilities that let the Mini App operate. Our adapter saw bytes and conveyed a result. The decision that a string should lead to “Unknown” belonged to the page. An enterprise can choose to put business validation elsewhere, but it should be able to point to its actual owner and test that component when the agreement changes.
For a release decision, carry the same fixtures into a supported Host App with the real SDK, an approved test domain and the target devices. Exercise the actual request path, the on-screen result and the customer action that follows it. The loopback harness answers a narrower question quickly enough for a service team to ask on every change. Can the version of the page that already exists still make sense of the answer the provider plans to send?

![[Gemini in Action] Dev.to Text & Image Translator: Redrawing Chinese Screenshots with Nano Banana Pro & Gemini 4 Neon as Judge](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmqgw1txph1efru186j3r.jpg)
