The handover of a workflow automation bot succeeds only when the buyer can operate the system without the original vendor. That transfers through two linked artifacts: a runbook that documents deployment, restart, rollback, and secret rotation, and a credential arrangement where environment secrets live in a controlled store under the buyer’s account. The sequence below covers the inventory of credentials, the runbook sections that must exist, the rotation and revocation steps, the handover drill that proves the documents work, and the idempotency check that keeps a redeploy from duplicating live records. A build that cannot be restarted and redeployed by someone other than its author has not been handed over, however well it runs on the vendor’s staging.
The credential inventory that must be listed before handover
Handover starts with an inventory of every secret and account the bot uses: the hosting account, database and queue broker credentials, webhook signing secret, tokens for each connected system (CRM, ERP, messaging, billing, support tool), any API keys for external services, and service account passwords. Each entry should record what it grants, which system holds it, who owns the account, its minimum role, and its expiry or rotation date. A list that says “credentials in our dashboard” is not an inventory; the buyer must be able to identify and revoke each secret independently.
Account ownership is the boundary question. Hosting, database, and connected system accounts should be registered under the buyer’s organization or identity, with the vendor added as an operator or administrator whose access can be revoked. Where a Chinese vendor registered accounts under its own email during development, those accounts must be transferred or re-created under the buyer’s identity before handover, not promised to be moved later. Accounts left in the vendor’s name mean the exit stays under the vendor’s control even after the build fee is paid.
Development secrets used during the build should be revoked at handover. Any token the vendor issued to itself, shared in a chat note, or left in a repository history should be rotated, because a surviving token is a standing access path. Production credentials should be issued only after acceptance, under the buyer’s control, and stored in the environment’s secret store rather than written into flow code, configuration files committed to the repository, or shared documentation. The inventory should follow a proper secret-storage model rather than improvise storage in shared notes or committed files, and each secret should be traceable to the system it grants access to.
Where environment secrets are stored and how they are injected
Environment secrets should live in a dedicated secret store: the deployment platform’s secret manager, an encrypted vault, or environment variables managed through the hosting account, rather than in plain configuration. The bot reads secrets at runtime; the repository contains configuration templates and placeholders, not the secret values. Access to the secret store should follow the least-privilege rule, with separate roles for reading runtime secrets and administering the store itself. Buyers should confirm whether logs or error messages ever print a secret, because a token echoed in an error response or run log leaks through a different path than the code repository.
Configuration should separate secrets from non-sensitive settings: feature flags, rule thresholds, queue sizes, and notification recipients can live in version-controlled configuration, while credentials and signing secrets stay in the store. This separation lets operations staff adjust ordinary settings without touching the secret store, and lets a new engineer read the configuration without receiving production credentials. Environment templates should show which variables are required, their format, and an example placeholder, so a fresh deployment knows what to supply.
Secrets should be injectable per environment: staging secrets differ from production secrets, and test credentials have an expiry date. The handover should include the process for adding a new connected system’s token: where it is stored, which role it uses, and how it is rotated. Rotation should not require a full redeploy or a code change; if rotating a token means editing committed configuration, the secret handling is not properly separated.
The runbook sections a fresh engineer can follow
The runbook is the operating manual the handover proves out. It should open with a one-page system overview: what the bot does, which systems it connects to, where it is hosted, and where logs and queues live. The deployment section walks through provisioning the environment, applying configuration, connecting secrets, starting the engine, and verifying the service is healthy. It should list prerequisites: required platform versions, accounts, network access, and external services, so a redeploy does not stall on a missing dependency.
The restart and rollback sections cover the everyday operations an operator needs. Restart: how to stop and start the engine or worker, how to check the queue drains, and what health check confirms the service is back. Rollback: how to return to the previous deployed version, how to identify which version is running, and what to do if a restart fails to come up healthy. The runbook should describe where backups and snapshots live and how a database restore is performed, since recovery from a corrupted state is part of operations, not just deployment.
The runbook should also document the exception queue: how to inspect pending failures, how to read an error entry, how to resolve a field or reference problem, and how to replay a queued record deliberately. It should cover alert channels and escalation contacts, the schedule for scheduled flows, and the routine checks an operator runs after a deployment. Maintenance ownership and response commitments belong in the retainer contract rather than the runbook, but the runbook should point to where incident records are tracked. The maintenance terms that define who repairs a broken flow after handover are examined in maintenance terms with Chinese vendors, and the two documents should agree on who does what.
Rotation, revocation, and the access that survives handover
Rotation procedures should be documented for each secret type: webhook signing secret, connected-system tokens, database credentials, and service account passwords. The runbook should state how to rotate without downtime, how to verify the new secret works after rotation, and how to confirm the old secret no longer grants access. A rotation that leaves the old token valid is incomplete; revoked secrets should be checked against the connected system’s own access list, not assumed invalid because the deployment was updated. The schedule for periodic rotation should be stated in the retainer or operations policy, so secrets are not changed only after a suspected compromise.
Vendor access after handover should be revocable and time-bound. Any operator access the Chinese team retains for ongoing maintenance should be recorded, with a defined scope and a process to revoke it when the retainer ends. Shared accounts that cannot be attributed to an individual should be avoided, because they cannot be selectively revoked. Buyers should confirm that the vendor does not hold a back-door token, a second admin account, or access to the secret store outside the recorded operator role.
When the relationship ends, the exit should remove vendor access and transfer the buyer’s records and configuration. The contract should describe the exit deliverables: exported records, flow definitions, configuration, mapping tables, logs, and the runbook itself. Deletion of any buyer data held on vendor-side systems should be confirmable where required. A handover that transfers the running system but leaves a persistent vendor path undermines the account-ownership boundary the rest of the handover was meant to establish.
The handover drill and the idempotent redeploy check
The proof of handover is a drill: an engineer who did not write the bot redeploys from the repository to a fresh staging environment following the runbook, while the vendor watches and answers questions. The drill should cover provisioning, secret injection, startup, a test event, queue inspection, and a rollback to the previous version. If the redeploy requires undocumented steps, a secret the vendor holds, or a guess at a missing configuration, the runbook is incomplete and the build is not accepted yet.
The drill must also verify idempotency in the redeploy path. A second deployment or replay must not create duplicate records, notifications, or assignments in the destination systems. The bot should match existing records by a stable reference before writing, and a redeployed flow should skip records already marked processed. The reviewer should run a duplicate delivery and a batch replay during the drill and confirm one outcome each. The webhook and replay patterns behind this check are collected in webhook design notes from Chinese builds, and the drill should exercise the same dedup behavior in a clean environment.
Payment milestones should tie to this drill and to the written acceptance cases, with a holdback released after an initial production watch run under the buyer’s own operations. The staging evidence and handover checklist are covered in sandbox testing before go-live, and the runbook and credentials review should be part of that go-live sign-off. Handover is not a closing conversation about accounts; it is a demonstrated ability of the buyer’s side to deploy, restart, roll back, rotate secrets, and recover queued failures without the original vendor. When that ability is proven, the automation has become the buyer’s operating asset rather than the vendor’s running configuration.
Leave a Reply