Fran Marcano
Release layer, back to the systems

Release confidence · Architecture · 4 min read

Code got cheap. Confidence didn't.

Agents can now write the code and the tests. To decide whether a version ships, every mobile team uses a release platform whose core I built. The tests an agent writes go through it like anyone else's.

Record
Case · result · platform · version
Gate
Criteria · critical flows · sign-off
Services
API Gateway for tests · MCP for agents
Contents

Every release ends with the same question: is this version ready? Where I work, release status used to live in chat threads, and test cases in a paid test-management tool, away from the code. Knowing what had been tested on which version meant asking around.

When I built an agent that writes end-to-end tests, a new mobile test went from about 85 minutes of an automation engineer's time to about 3–4 minutes before the team's review. Release readiness didn't get cheaper with it. That still takes a record of what ran on which version, and a technical lead who signs for it.

The record

A record of what ran on which version

Test cases now live as code, versioned in each team's repository on GitHub. A sync loads them into a relational database, where every result is tied to the platform and the version of the app it ran against. A release runs as a campaign per team and platform, and results arrive while it runs.

A sign-off gate in the pipeline reads that record and blocks a release that doesn't meet the process's criteria. Pass rate is one of them, and a failing case in a critical flow blocks the release on its own. Even with a green campaign, each team's technical lead signs off on the release from the same record, and the record keeps who signed.

The gate does not decide which cases matter; the team does, and removing or weakening a case is a commit with its history. The gate checks that those cases ran on this version and that they meet the criteria.

Editing a case now takes a pull request. It wasn't easy in the old test tools either, and many changes weren't tracked at all. Once merged, the change reaches the campaigns, the gate and the lead's sign-off through the same record.

Where the answer comes from

Release readiness before and after the record

Fig. 1: where a team looked to learn whether a version was ready, before and after test cases moved into the repository. Left, before. Test cases lived in a paid test-management tool and release status in a chat thread; a person asked around, and both reached that person only by dashed lines. Right, after. The team's repository holds the test cases as code, versioned, with history, and a sync loads them into a database of linked rows: case, result, platform and app version. Device and CI runs send it results, per platform and version. From the database, the campaign, per team and platform, gets a live view and live status. The sign-off gate reads the same record against its criteria and critical flows, and either passes or blocks the release. The technical lead reads the same record and signs off, and the sign-off is recorded. Before After Paid test-management tool test cases Chat thread release status Person asks around Team's repository test cases as code versioned, with history Device and CI runs Database linked rows caseresultplatformapp version Campaign per team and platform live status Sign-off gate criteria, critical flows Technical lead SIGNS OFF recorded sync results, per platform and version live view same record same record passes blocks Fig. 1: where the answer comes from, before on top and after below. Before. Test cases lived in a paid test-management tool and release status in a chat thread; a person asked around, and both reached that person only by dashed lines. After. The team's repository holds the test cases as code, versioned, with history, and a sync loads them into a database of linked rows: case, result, platform and app version. Device and CI runs send it results, per platform and version. From the database, the campaign, per team and platform, gets a live view and live status. The sign-off gate reads the same record against its criteria and critical flows, and either passes or blocks the release. The technical lead reads the same record and signs off, and the sign-off is recorded. Before Paid test-management tool test cases Chat thread release status Person asks around After Team's repository test cases as code versioned, with history Device and CI runs Database linked rows caseresult platformapp version Campaign per team and platform live status Sign-off gate criteria, critical flows Technical lead SIGNS OFF recorded sync results, per platform and version live view same record passes blocks same record
Fig. 1Before, the answer was spread across a paid tool and chat threads. After, the gate and the lead's sign-off read the same record of cases, results and versions.

Failures

When a release is blocked

The critical flows are the user's: login, one-time passwords, cash-in and cash-out, customer support. When one fails, the team sees it while the campaign is still running, filtered to its platform and version, with the log of why it failed. On mobile that log is Appium's, with its trace, and a model reads it and suggests fixes.

The gate has stopped releases several times. The cause can be the app or the test itself; the model's suggestion shortens the debugging either way, and the team chooses the fix. A hotfix has its own flow, with a new campaign over the flows it can affect.

Adoption

How every mobile team ended up on it

Earlier, at a crypto platform, each release took about three days of manual testing, and only QA could run the automation we had. We automated 90% of the critical flows and wired them into CI. Release testing dropped to about two hours, and teams tested and released without waiting for QA.

Here it started with the engineering leads, who agreed to change the process, and a pilot with four teams. The early teams came because their tools were tedious and nothing standard replaced them. On the internal developer platform I built for quality, a team could start a device run or a campaign on its own, in the cloud and behind SSO. Before, it filed a request with QA or ran scripts on someone's laptop with no record.

There was resistance at first. It eased as teams saw other teams using the platform, and as its tools started to work as one ecosystem, each making the next easier to adopt. Every mobile team adopted the release platform, it became the system of record for mobile releases, and the paid license was retired.

Services

One service, two ways in

A mobile release needs more than test cases. Builds go out through the stores, and backend load tests and API tests run beside the mobile ones. The tests need users, cards, balances, one-time passwords, second factors and bank transactions that behave like real ones, and there was no standard way to get them.

The ones every team needed became services on AWS Lambda and ECS, each built in three layers, controller, client and service, with each layer owning its part of the logic.

Each service is exposed twice. API Gateway serves the test automation, and MCP servers behind the company's SSO serve the agents. When a test needs to log in, it gets the test account's one-time password with an HTTP request. An agent gets it from the same service as a tool call, at the point in its turn where the model decides it needs one. Packaged with agent skills as a QA plugin for Cursor and Claude Code, those tools became the most installed plugin in the internal marketplace.

One service, two ways in

A test-data service as automation and agents see it

Fig. 2: the three layers of one shared service and the two doors to it. Left, test automation sends an HTTP request through API Gateway for a test account's one-time password, a test user or a card. Right, an agent makes the same request, as a tool call, through MCP servers behind SSO. Both doors lead to the same shared service, which runs on Lambda or ECS and is built in three layers side by side: controller, client and service. Test automation HTTP request Agent tool call API Gateway MCP servers behind SSO Shared service LAMBDA OR ECS Controller Client Service test account's one-time password, test user, card same request, as a tool Fig. 2: the two callers on top, their doors under them and the shared service below. Test automation, on the left, sends an HTTP request through API Gateway for a test account's one-time password, a test user or a card. The agent, on the right, makes the same request, as a tool call, through MCP servers behind SSO. Both doors lead to the same shared service below, which runs on Lambda or ECS and is built in three layers side by side: controller, client and service. Test automation HTTP request Agent tool call API Gateway MCP servers behind SSO Shared service LAMBDA OR ECS Controller Client Service test account's one-time password, test user, card same request, as a tool
Fig. 2One implementation answers both: an HTTP request from a test and a tool call from an agent.

Agents

What the test-writing agent found in place

The agent needed a service of its own, to own each job, lend a test account and a phone, and publish what it wrote, plus a shared runtime for its tests (how that agent works). Two things it relied on were already in use: the scenarios it automates are test cases the team already wrote and the platform syncs, and its tests get one-time passwords from the same test-data service.

Its step code reaches the team's repository through a pull request like any other change, and a person on the team reviews and merges it. From then on its tests run in the same campaigns as tests a person wrote, their results land in the same record, and the same lead signs off on the release.

Next system

What turns a model into an agent?

The harness around it: tools, memory, runtime and guardrails. I build that layer, including what the agent is not allowed to do.

Agent layer

Contact

What should your team stop doing by hand?

LinkedIn