Browser Bot Handover From China: Scripts, Environments, Secrets

A source code handover for a Chinese-built browser automation bot is not a file dump at the end of a project. It transfers four things the buyer needs to operate independently: the scripts and selector maps, a reproducible environment, the secrets and credentials, and the records and audit evidence, each verified through a dry deployment run. Whether the stack is selenium, Playwright, or another framework, the handover succeeds only when an engineer who did not write the system can deploy it from the repository, restart it after a stop, read its logs, and repair a seeded failure following the runbook. This article walks through the handover sequence, the artifacts that must transfer, how environments and secrets are moved securely, and the verification gate that should hold the final payment.

What a complete browser bot handover contains

The script package holds the production flows, the queue and scheduler logic, retry and exception handling, and the logging and evidence capture code. Alongside it, the selector map lists each target element, primary and fallback anchors, and fixture references; without this map, a later repair requires reverse-engineering the flow. Test fixtures, sample records, and replay or regression scripts transfer too, so the buyer can prove the system still works after changes.

The environment package defines how the system runs: machine image or container definition, pinned framework and browser versions, dependencies, environment variables, startup and restart commands, and the configuration that separates staging from production. A handover that leaves the environment implied on the vendor’s existing machine cannot be rebuilt on a fresh host. The secrets package covers credential storage, account references, and access controls; the records package covers produced records, session evidence, and audit history, with export and deletion rules.

The runbook ties these together: how to deploy, start, stop, restart, roll back, read logs, work the exception queue, and rotate credentials. It should be written so a new engineer can follow it without oral explanation. The broader handover and credential transfer mechanics for Chinese automation vendors are covered in runbooks and credentials handover with Chinese automation vendors; this article focuses on the browser-bot specifics of scripts, environments, and secrets.

Pre-handover preparation on the vendor side

Before the handover session, the vendor should bring the repository into a clean transferable state: committed history, release tags for each version, no private libraries referenced only on the vendor’s machines, and configuration separated from scripts. Dependencies should be pinned and documented, so the deployed runtime matches what was tested. The selector map, fixtures, and runbook should be drafted and reviewed against the actual production flows, not written from memory at the handover meeting.

The vendor should also prepare an inventory of accounts, credentials, and external services used by the bot: portal accounts, hosting accounts, secrets store, proxy or network arrangements, notification relays, and any third-party document or OCR service. Each item needs an owner, a transfer path, and a note on billing. Missing items in this inventory are the usual source of post-handover surprises, where the buyer discovers a service the bot depends on but cannot access.

Documentation should be checked for accuracy before the session. Runbooks that describe an older version of the flow, selector maps that reference renamed elements, or fixture pages no longer in the repository undermine the handover even if the scripts themselves transfer cleanly. A dry run of the deployment from a fresh environment, performed by the vendor before the buyer’s own verification, surfaces these issues early.

The handover sequence: repository, environment, secrets, records

The transfer proceeds in a defined order so each layer can be verified before the next. First, the repository transfers to the buyer’s namespace or an agreed escrow arrangement, with history and tags intact. The buyer confirms access, reviews the structure, and checks that scripts, maps, fixtures, and documentation are all present. Second, the environment definition transfers: image or container, pinned versions, dependencies, and configuration templates, with instructions to provision a clean worker.

Third, secrets and credentials transfer under buyer control. Portal accounts move to the buyer’s name or are added to the buyer’s secrets store; any credentials the vendor used during development are revoked and rotated. Vendor access is recorded as revocable operator access, not permanent ownership. Fourth, records and evidence transfer: produced records, session logs, audit history, and evidence files, exported in a readable format, with the retention and deletion rules written down.

The handover should also include a walkthrough of the operating flow: how a batch starts, how the queue progresses, how exceptions surface, and where reports are read. A recorded walkthrough or documentation session helps the buyer’s team reference the arrangement later. The RPA handover pattern for process maps and credentials, which parallels this sequence, is detailed in RPA handover from Chinese vendors: process maps and credentials.

Environment transfer and reproducible deployment

A reproducible environment means a fresh machine or container can be provisioned from the delivered definition without the vendor’s live assistance. The deployment artifact should install the browser and framework versions the scripts expect, configure environment variables from the secrets store, and start the queue and workers with documented commands. If the deployment depends on a vendor-proprietary panel or private runtime that does not transfer, the buyer cannot operate independently, and that dependency must be flagged as a retained arrangement rather than a full handover.

Network and hosting arrangements transfer as part of the environment. Where the bot relies on a specific network route, region, or registered connection, that arrangement is documented and moved or re-established in the buyer’s name. The buyer should know the hosting region, why it was chosen, and what would change if the bot moves regions. Staging and production environments are defined separately, with their own configuration and test data, so production settings are not baked into deployable scripts.

Restart and recovery behavior should be demonstrated, not described. The handover should show a worker stopping and restarting, the queue resuming pending jobs without duplicates, and logs showing the recovery. A deployment that cannot survive a restart has an undocumented state dependency that will surface during the first outage after the vendor’s involvement ends.

Environment documentation should also cover troubleshooting entry points: where to look when a session fails to start, which logs show queue state, how to confirm a secrets store connection, and how to distinguish a configuration problem from a portal-side failure. These pointers let the buyer’s team perform first-line diagnosis before escalating to the vendor, and they reduce the round-trip time during an early post-handover incident. The handover package should distinguish issues the buyer can resolve itself from those that require the vendor’s engineering support.

Secrets, credentials, and access revocation

Secrets handling in the handover follows the security controls the deployment should already have used. Credentials are never committed to the repository or written in runbooks; they live in a secrets store the buyer controls, with access limited to the bot’s run-time identity and named support staff. The handover inventory lists each secret, its store location, rotation schedule, and who holds access.

All development-stage credentials issued to the vendor are revoked at handover, and production credentials are rotated so any token held in chat logs, internal notes, or vendor systems cannot be reused. Vendor staff accounts on hosting, secrets, and portal systems are converted to revocable operator access or removed. Access reviews after handover confirm that former vendor personnel no longer hold live credentials. The secrets and access review controls for automation deployments are laid out in security and secrets management for workflow bots; handover is the point where those controls are confirmed in practice.

Data secrets follow the same transfer logic. Records produced during development, session evidence, and any test data that includes real supplier or customer detail are reviewed for retention: keep what compliance requires, export what the buyer needs, and delete vendor-held copies on schedule. The deletion path should be documented and confirmed rather than assumed.

Verification gate and post-handover support

The verification gate is the final and most important checkpoint. Someone other than the original engineer, ideally the buyer’s own engineer or a third-party contractor, deploys the system from the transferred repository to a fresh environment following the runbook, runs two sample sessions, reads the logs and evidence, and repairs a seeded failure such as a broken selector or a stopped worker. If this dry run fails, the handover is not complete, regardless of how well the bot ran in the vendor’s demo environment.

The final payment should be contingent on this gate, with a holdback released after a short production running period during which the buyer’s team can operate the system independently. Post-handover support should be defined in the retainer: response windows, what repairs are covered, how change orders are raised, and how long transition support continues. A clear support period after the gate lets the buyer’s team build confidence before full ownership.

After handover, the delivered package should support long-term independence: the selector map lets a new engineer locate and repair elements, the fixtures and replay scripts let changes be regression-tested, the runbook covers restart and rollback, and the audit trail lets any later action be reviewed. A bot that transfers only scripts, without the environment definition, secrets control, and verified deployment, leaves the buyer dependent on the original vendor for every restart and repair. The complete handover, verified through an independent dry run, is what converts a China-built automation into an asset the buyer can keep operating long after the engagement ends.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *