Integrations
How integration works
GAOS plans and tracks the work; two external systems do the rest. ai-manager runs every model turn in the product's own workspace, and the QA tools run the test scripts and report back. Any other client — a mobile app, a chat bot — can ask the operator a question through the same machine API. This page shows each connection, who starts it, and how it is authenticated.
The picture
Read it left to right as the life of a piece of work: a client or the QA tools talk to GAOS's machine API; GAOS keeps the graph, the board and the operator's inbox; every model turn goes out through ai-manager, which runs a worker such as ai-claude-cli inside the product's provisioned workspace. GAOS never runs a model tool itself (D-055).
/api/v1/v1 and /adminThe back office's Integrations view shows the live state of every connection below: what is configured, the last turn, the last webhook delivery and the registered clients. It never shows a token.
Every connection
Twelve connections, and only twelve. Every credential is a file on the host, mode 600, named by an environment variable; none is ever in the repository, a log line or a page. The pull-request flow and the platforms bound to a product are switched on per product; with none configured, the first seven are all there is.
| Direction | Paths | Auth | Credential | Started by |
|---|---|---|---|---|
| QA tools → GAOS | /api/v1/products…: summary, cases, results, inbox | Bearer, QA scope | GAOS_API_QA_TOKEN_FILE | the QA tools, after a CI run or a button |
| A registered client → GAOS | /api/v1/products/{id}/inbox… only | Bearer, its own token | a line of GAOS_API_CLIENTS_FILE | the client |
| GAOS → QA tools: sync | GET /api/v1/gaos/results, POST /api/v1/gaos/catalog | Bearer, outbound | GAOS_QA_TOKEN_FILE, base GAOS_QA_URL | the operator's two sync buttons |
| GAOS → QA tools: answer webhook | POST /api/v1/gaos/inbox-answer | Bearer, outbound | the same file and base | GAOS, after an answer or an expiry |
| GAOS → ai-manager: turns | /v1/chat, /v1/requests/…, /v1/questions/…, /v1/providers | HTTP Basic | GAOS_AIM_CHAT_AUTH_FILE, base GAOS_AIM_URL | the board or the scheduler |
| GAOS → Brain Town (optional) | POST to the one URL you configure | Bearer, the receiver's token | BRAIN_TOWN_TOKEN_FILE, BRAIN_TOWN_URL | GAOS, after a committed task or product change; off by default (Brain Town feed) |
| GAOS → ai-manager: admin | /admin/workspaces/…, /admin/sessions/… | Bearer, admin key | GAOS_AIM_ADMIN_KEY_FILE | a Blueprint sync, a review, a prune |
| A client with the tasks capability → GAOS | /api/v1/products/{id}/tasks… | Bearer, its own token | a line of GAOS_API_CLIENTS_FILE | the client (External tasks API, D-099) |
| GAOS ⇄ GitHub | the pull requests of the followed repositories: read, review, comment | Bearer, a fine-grained token | GAOS_GITHUB_TOKEN_FILE | GAOS’s poller and the review cards (Pull-request agents) |
| GAOS → GitHub: auto-fix writes | read the base, create blobs, a tree, a commit and a gaos/fix- branch, open a draft pull request, label and comment it, and close only its own drafts a retarget replaced or an admin closed as a duplicate | Bearer, a separate write token | GAOS_GITHUB_WRITE_TOKEN_FILE | a finished fix card, a retarget, an admin’s duplicate close (Defect auto-fix, D-108) |
| GAOS → WhatsApp gateway | one line per notice, to a person or the pinned group | HTTP Basic | GAOS_WA_BASIC_AUTH_FILE, GAOS_WA_URL | a notice (WhatsApp and the contacts) |
| GAOS → QA tools: case proposals | POST /api/v1/gaos/case-proposals | Bearer, outbound | GAOS_QA_TOKEN_FILE | a bundle’s test plan (D-100) |
| GAOS → a task tracker (optional) | The task-tracker contract over gRPC: ListPeople, GetTask, AddComment, over TLS to a pinned certificate | HTTP Basic, a credential limited to the three methods | GAOS_TRACKERS_DIR (one profile folder per tracker credential) | GAOS: the directory refresh, a polled pull request, a finished test plan (Task tracker, D-118) |
Three GAOS tokens, never equal
GAOS's own API has three tokens: admin (seeding and catalog import, by an operator),
QA (the QA tools calling GAOS) and outbound (GAOS calling the QA tools). If two
of them are equal GAOS disables its whole API at boot and logs disabled (two of the admin, QA and outbound
tokens are equal): the QA tools holding admin rights, or replaying GAOS's own credential back at it, is the
failure this refuses. A registered client's token must differ from all three and from every other client's.
A token is gaos_ followed by 32 or more letters and digits; GAOS keeps only its SHA-256 digest.
A question round trip
A client asks the operator something; the operator answers in the back office; the answer goes back. The QA tools are told by webhook, any other client polls. The first answer wins, from wherever it came.
client GAOS operator (back office)
│ POST /api/v1/products/p-1/inbox {externalId, question, options}
│──────────────────────────▶│ ExternalQuestionAsked
│◀──── 201 {status: open} ──│ ──── "Needs you" shows the item ───▶│
│ │ │ picks an option
│ │◀──────────── answer ─────────────────│
│ │ ExternalQuestionAnswered (source: gaos, back-office)
│ │
│ (QA tools only) │ worker, within 10 s:
│◀─ POST {GAOS_QA_URL}/api/v1/gaos/inbox-answer {externalId, status, choice, …}
│── 2xx ───────────────────▶│ ExternalAnswerDelivery: delivered
│ (else: retry after 30 s, 2 min, 10 min, 1 h; gave-up after 5 attempts)
│
│ (any client, any time)
│ GET /api/v1/products/p-1/inbox/{externalId}
│◀──── 200 {status: answered, choice, optionLabel, source} ──
A client may also answer its own item (POST …/inbox/{externalId}/answer); the answer records its
source — kind, client, origin and the actor the client reported
(BR-57). The details are in
Webhooks and external clients and the
QA sync API.
A results push
The QA tools own the automation facts of a test case — implemented, spec, result, run time — and GAOS owns the plan. A run's results reach GAOS one of two ways, and both end in the same store operation.
CI run ends ──▶ QA tools ── POST /api/v1/products/p-1/qa/results {items[≤200]} ──▶ GAOS
◀── 200 {applied, unchanged, rejected[]} ──
GAOS: automation facts applied; the epic card's badge moves; no task moves
operator presses "Pull results" on the QA tab
GAOS ── GET {GAOS_QA_URL}/api/v1/gaos/results?product=…&after=… ──▶ QA tools
◀── 200 {items, next, more} (up to 20 pages, 60 s) ──
GAOS: each page applied exactly like a push
A result never moves a card (OQ-35); the badge on the epic's
card is a live view of the catalog. Push catalog is the reverse direction: GAOS sends the planning fields
to POST /api/v1/gaos/catalog.
A model turn
When the board (or the scheduler, under GAOS_RUNNER=on) dispatches a task, GAOS freezes the
task's context, screens it for secrets, and sends one turn:
GAOS ── POST /v1/chat X-Request-ID: gaos.<tenant>.<run> {prompt, workspace_id | session_id, …} ──▶ ai-manager
◀── 202 ──
GAOS ── GET /v1/requests/<id>/result every 2 s, up to 660 s ──▶
◀── 202 (running) … 200 {text, session_id, cost_usd, question?} ──
GAOS: the reply's handoff block is extracted; the card moves; a question goes to "Needs you"
Before a product's first turn, a Blueprint sync provisions its workspace through
POST /admin/workspaces/provision. Every call is listed, with its statuses and its caller, in the
ai-manager REST reference.
A task from an outside platform
A client with the tasks capability plans work without signing in (D-099). GAOS checks the body, the product and the pull request, makes one card, and says who will start it; the client polls by its own id.
client ── POST /api/v1/products/p-1/tasks {kind, externalId, pr} ──▶ GAOS
GAOS: client scope → tasks capability → product → body
the product follows the repository? the runner is not off?
the same externalId again → 200, the same card (no second card)
GitHub: the pull request is open (review) or merged (unit test)
◀── 201 {taskId, status, column, labels, dispatch} ──
dispatch: scheduler | auto | operator | manual-review | qa-tool
client ── GET /api/v1/products/p-1/tasks?externalId=… ──▶ GAOS
◀── 200 {status, column, reason, updatedAt} ── (until DONE, FAILED or CANCELED)
A manual review is never dispatched: GAOS announces it to the WhatsApp group, naming the client. An e2e kind is
worked by the QA tool, and automation-run can be cancelled by the client that started it.
A defect to a draft pull request
The QA tool reports a defect; two agents judge and fix it; GAOS alone writes to GitHub, with its own write token (Defect auto-fix).
QA tool ── POST /api/v1/products/p-1/qa/defects ──▶ GAOS: DefectReported, a triage card
GAOS ── turn ──▶ ai-manager: Defect Triager → easy | medium | complex (DefectTriaged)
GAOS ── turn ──▶ ai-manager: Defect Fixer → edits + a test (easy, switch on, cap left)
GAOS ── write token ──▶ GitHub: blobs, tree, commit, gaos/fix-<ref>, draft PR, labels, comment
FixPROpened · one WhatsApp line
GitHub ◀── poller ── GAOS: draft | ready | merged | closed (FixPRStateChanged)
retarget: admin ──▶ GAOS: next-generation fix card ──▶ … new draft on gaos/fix-<ref>-<gen>
GAOS ── write token ──▶ GitHub: close the replaced draft, branch kept (D-108)
duplicate: admin ── POST /products/p-1/prs/{fixPRID}/close ──▶ GAOS ──▶ GitHub: close · defect unchanged
A bundle to a test plan
For a product in GAOS_PR_TEMPLATE_PRODUCTS, the PR template ties pull requests in several repositories
into one bundle, and one test plan is made when all of them are finished
(D-100).
GitHub PR body ──▶ GAOS poller: the code, the cross-repo links, the QA notes
bundle key task:<code> or pr:<owner/repo#n> of the linker
no code, no source → one comment + one WhatsApp line (missing code)
bound to a tracker → GetTask(<code>); unknown → one comment + one line
every member merged or closed, one merged, 10 min quiet
GAOS: one Test plan card (role test-planner) → a model turn proposes cases
GAOS ── POST /api/v1/gaos/case-proposals ──▶ QA tools: draft cases, links to the PR URLs
the card ends DONE (each member's review card moved to DONE on its own merge, rule pr-merged)
bundle:planned → GAOS's Notifications page only (D-129, no WhatsApp); bound to a tracker → one note on the task
A notice
A review finding of medium or worse, a held review, a failed run, a manual or needs-manual review label (D-101), and a missing or unknown task code each send one WhatsApp line with the card’s id — never code; the findings only for a high or critical review, to the default recipient (D-130). A ready test plan is GAOS-only (D-129): it is kept as a notice and sent nowhere.
event on a card ──▶ notifier: the login (the PR author, or the last committer)
GAOS contact for the login? yes → that contact, if its filter wants the kind; else the group
no contact, product bound to a tracker → its person with that verified login (alias ext:<user>)
nobody → the pinned group
NoticeRaised {kind, cleaned text, card, PR} (D-128: first, sent or not; the bell and /notifications)
GAOS-only kind (bundle:planned)? yes → stop here: kept in GAOS, no WhatsApp, no ContactNotified (D-129)
ContactNotified {alias, kind, outcome} (never the number, never the text)
A bound task tracker
A product can be bound to a task tracker that implements the task-tracker contract GAOS publishes (D-104, D-118). GAOS reads people and tasks over gRPC with TLS and writes one note per finished bundle; the people stay in memory (BR-63).
ListPeople fills the directory every fifteen minutes; GetTask checks a pull request’s
code and, again, a finished test plan’s task; AddComment writes the note; since v0.89.0
RecordMerge moves a task whose pull requests have merged to merged
(D-132). A refused credential or an
outage opens a circuit breaker, and every use falls back to the contact, the group and no validation. The whole
path is on the Task tracker page, and Connect a task tracker shows how to connect one.