A synthetic Azure DevOps organisation and GitHub repository that a Zammo SaaS release runs against, sharing one state. Runs move on a real clock and stop at exclusive locks, approvals and manual validations until someone acts, through the API or the release page, and push service-hook events to subscribers as they go.
| Azure DevOps | http://localhost:8136, organisation Zammo, project Zammo Web (Zammo%20Web), project id 5d1c7a3e-2b8f-4e6a-9c0d-71a2b3c4d5e6 |
|---|---|
| ADO auth | PAT ado-lab-pat: Authorization: Basic base64(":ado-lab-pat") (any user name) or Authorization: Bearer ado-lab-pat. Anything else is 401. |
| GitHub | http://localhost:8137 (also under /api/v3), repository zammo-ai/Zammo |
| GitHub auth | Authorization: Bearer github-lab-token or token github-lab-token. Anything else is 401 Bad credentials. |
Paths are under /Zammo/Zammo%20Web/ (the project id works too) unless shown. api-version is ignored.
GET _apis/build/builds/{id}: the build. A zammo-saas-prod run carries triggerInfo.pipelineId and triggerInfo.version of the Production run that triggered it.GET _apis/build/builds?definitions=143&statusFilter=inProgress,notStarted&$top=5&queryOrder=queueTimeDescending: {count, value}.PATCH _apis/build/builds/{id} with {"status":"cancelling"}: cancels the run; its in-progress stage and open wait become canceled.GET _apis/build/builds/{id}/timeline: Stage, Checkpoint, Checkpoint.Approval, Phase, Job and Task records. A lock or approval is a Checkpoint under the stage (with a Checkpoint.Approval under it for an approval); a manual validation is Phase → Job → Task ManualValidation; a detached-resources validation also has a completed Job 🌓 Create Or Update Deployment Stack whose Task AzureCLI2 has a log.GET _apis/build/builds/{id}/logs/{logId}: plain text, or {count, value} lines with Accept: application/json.GET _apis/pipelines/checks/runs/{checkpointRecordId}?$expand=1: context.GraphNode.Name is the stage identifier; checkRuns are ExclusiveLock and Approval checks with their status.GET _apis/pipelines/approvals/{approvalRecordId}?$expand=steps; PATCH _apis/pipelines/approvals with [{"approvalId","status":"approved|rejected","comment"}].POST /Zammo/{projectId}/_apis/distributedtask/hubs/build/plans/{planId}/events with {"name":"TaskCompleted","taskId":"<ManualValidation record id>","jobId":"<its Job id>","result":"succeeded|failed"}: resumes or rejects a manual validation.POST /Zammo/_apis/hooks/subscriptions with {"publisherId":"pipelines","eventType","consumerId":"webHooks","consumerActionId":"httpRequest","consumerInputs":{"url","httpHeaders":"Name:Value\nName2:Value2"},"publisherInputs":{}}, GET to list, DELETE …/subscriptions/{id}. Event types: ms.vss-pipelines.run-state-changed-event, ms.vss-pipelines.stage-state-changed-event, ms.vss-pipelinechecks-events.approval-pending. publisherInputs.pipelineId and projectId filter; other inputs are accepted and ignored.Every event is POSTed as JSON with the subscription's headers: {subscriptionId, notificationId, id, eventType, publisherId, message, detailedMessage, resource, resourceVersion, resourceContainers, createdDate}. Every resource has run {id, name, state, result, pipeline}, pipeline {id, name} and runId; stage events add stage {name, displayName, state: running|waiting|completed, result}; approval-pending adds approval {id, status}, stage and resource {type: environment, name}. Run events are sent when a run starts and completes; stage events when a stage starts, completes, and starts waiting because it has to: a lock another run holds, a pending approval or a manual validation. A lock nobody holds is taken on the spot, and the stage goes straight to running with no waiting event.
GET /repos/zammo-ai/Zammo/milestones?state=all, POST …/milestones (422 if the title exists), GET/PATCH …/milestones/{n}.GET …/issues?milestone=<n>|none|*&state=open|closed|all&since=<ISO 8601>: pull requests as issues with a pull_request object; since filters on updated_at.PATCH …/issues/{n} with {"milestone": n|null} moves a pull request and updates updated_at.GET …/pulls?state=all&base=master, newest first; GET …/pulls/{n} adds merged.GET …/compare/{base}...{head} on a linear master: status, ahead_by, behind_by.GET …/git/matching-refs/tags[/prefix], GET …/commits/{ref}.Lists take per_page (up to 100) and page, with a Link header naming the next page.
Run ids move up by 10 on every reset, because Azure DevOps never reuses one: the first seed is 900000, 900001 and 900002, the next 900010, 900011 and 900012, and so on; GET /_lab/state and the build list say which are current. Below, the ids are the first seed's. Production (definition 143) run 900000 is parked on the manual validation “👍 Confirm Delete Detached Resources” in stage 3, so it holds the InternalStaging exclusive lock. Run 900001 builds HEAD of master (pull requests 9001, 9005, 9002 and 9003 merged since tag 2.121.0) and waits on that lock. Cancel 900000 and 900001 takes it, then waits on the detached-resources validation in stage 3, an approval on zammo-production before stage 13 (ProductionInstaller) and the validation “📦 Create Marketplace Application” in stage 13. When it completes, zammo-saas-prod (definition 214) run 900002 is queued with triggerInfo pointing at it; it waits on an approval on zammo-saas-prod before stage 2, its own detached-resources validation in stage 3 and an approval before stage 4 (UpdateApplication). Milestones: rNext, 2026 (open, 9001–9004), today's (closed). Stages that are not waiting take 20 seconds each by default.
GET /_lab/state: everything the page shows.POST /_lab/reset: back to the seeded release, under new run ids (base + 10). Subscriptions and the stage speed are kept; deliveries are forgotten. Resetting the system in the Control Centre does the same.POST /_lab/speed with {"stageSeconds": 1–3600}.POST /_lab/act with {"run", "action": "approve|reject|resume|fail|cancel|finish", "comment"}: what a person does on the page. finish ends the running stage now. 409 if the run is not waiting for that.POST /_lab/queue: a new Production run on HEAD. POST /_lab/github/merge with {"number"}: merges an open pull request with a merge commit on master.POST /_lab/subscriptions, DELETE /_lab/subscriptions/{id}: the service-hook calls without credentials.