# Plan an observable agent integration test

Audience: Developers and technical evaluators preparing one host-authorized pilot exchange.
Status: Guided pilot evaluation method; no new access, SDK or production authority.
Reviewed: 2026-10-30. Use the current API reference and confirm the supported client with Stoin.

## At a glance

- **Pick one outcome:** an admitted agent asks one question, receives a matching outcome and leaves.
- **Choose one extension only if needed:** a private file offer or an action proposal has its own human decision.
- **Record what happened:** accepted, answered, unavailable, unverified and ended are different states.

An evaluation is useful when another person can tell what was attempted, what was observed and what remains unknown. Start with the [developer overview](/developers/) and [integration questions](/developers/integration/). This guide helps define acceptance; it does not establish that your runtime is supported or that a test has run.

## Write a small test brief

Use synthetic or otherwise permitted information. Before connecting, agree on the following with the inviting person and host:

| Question | Example of a bounded choice |
| --- | --- |
| What should the agent contribute? | Ask the resident synth for the next step agreed in this exercise |
| Who is responsible? | One inviting person and the actual meeting host |
| Which path is being evaluated? | The guided personal-agent HTTP pilot, not a company-synth integration |
| Which resident should answer? | The handle selected for this meeting, confirmed with the host |
| What will count as success? | Admission, one accepted question, a matching answer outcome and cleanup |
| How long will observation run? | A finite window agreed before the request; timeout remains unverified |
| What evidence may be kept? | Operation IDs and outcomes only, unless the person authorizes more |

Confirm the distribution, version, runtime and access with Stoin before choosing installation steps. A package name in a development repository or a public protocol example does not establish a supported install channel. The existing authorized-checkout example is described in the [meeting-agent guide](/documentation/meeting-agents/#existing-client-example); this page adds no runnable setup command.

Use the [blank guided-agent brief](/documentation/integration-checklist/evaluation-brief.txt) to prepare the discussion and record the actual result later. It contains no installation command or credential field. A template is not evidence that a test ran.

## Walk through the evidence in order

![Confirm the pilot scope, observe admission, open the event stream, retain the question ID, classify the matching result and leave.](/images/documentation-integration-checklist.svg)

1. **Connection:** use the meeting-displayed API origin and a one-time code supplied through the permitted flow. Observe the actual connect result, keeping secrets out of evidence.
2. **Admission:** distinguish `waiting` from `present`. Receiving a token does not mean the agent may act yet.
3. **Observation:** open the event feed before posting the question. Account for keepalives and non-chat events instead of treating every frame as an answer.
4. **Request identity:** post only the authorized question and retain the returned message ID when supplied. The accepted post establishes that request, not an answer.
5. **Outcome:** match `in_reply_to` to the retained ID. Inspect the actual outcome and the content the person is permitted to review.
6. **Cleanup:** leave the seat on normal completion or timeout. Stop further operations after removal, denial or an ended seat.

The order matters. Listening only after the post can miss the evidence you intended to observe. Counting another participant's answer can make a failed integration look successful. Neither problem is solved by repeatedly asking the question.

## Use an outcome vocabulary people can review

| State you observed | What you can say | What remains unknown |
| --- | --- | --- |
| Connect returned a waiting seat | A seat was created and is awaiting admission | Whether it will be admitted |
| Chat POST returned an ID | This question was accepted for posting | Whether the intended synth answered |
| A linked answer matches that ID | This question has a correlated answer outcome | Whether the answer is correct and useful |
| A matching unavailable outcome | This request explicitly could not be answered | Whether a different, separately authorized attempt would work |
| Only unrelated messages arrived | The meeting produced other messages | The requested answer remains unverified |
| No matching result before the bound | The observation timed out | Whether the operation completed outside the observed window |
| Seat ended or host removed it | Participation ended | No continuing authority is implied |
| Cleanup could not be confirmed | The cleanup result is unknown | Whether the seat is still attached |

For a synthetic question `example-question-a`, a reply linked to `example-question-b` does not satisfy acceptance. Do not turn silence into success or turn every unavailable answer into a transport failure.

## Reconcile before retrying

The API reference does not promise a universal idempotency key for chat, private messages, file offers or action proposals. After a network failure, the server may have accepted the first operation. Preserve the original request's known identity and reconcile available state before repeating it.

- If a post was accepted and only its answer is missing, continue the bounded observation or record an unverified result; do not automatically post it again.
- If the returned outcome is a definite refusal, use that reason. Correctable input and missing authority need different next steps.
- If the host removes the agent or the seat ends, stop. A new token is not a way to continue a refused action.
- If you cannot determine whether an upload or proposal exists, ask the responsible person to review the supported UI/state. Record the uncertainty instead of claiming a clean retry.

Do not store a bearer token to make troubleshooting easier. A diagnostic should contain enough to explain the result without disclosing the meeting's private content or access material.

## Add a file offer only when it serves the use case

A private file handoff needs an eligible hosting-company member's agent and the person's actual sharing decision. Use [the private-file walkthrough](/documentation/private-file-handoff/) for the sequence and identifier boundaries. A `201` with `shared: false` satisfies the private-offer checkpoint only.

If the evaluation only needs a person to share a document and ask a synth about it, the ordinary [working-together guide](/help/files/) is the simpler product path. A successful human workflow does not prove that a personal-agent integration was exercised.

## Add an action proposal only when authorized

The agent-side route can propose an action item. The human review and Assign decision are separate. Choose an exercise that ends with reviewing the proposal unless actual assignment is within the person's authority and the test's agreed scope.

Record proposal creation, human decision and any later work as separate observations. Neither a proposal ID nor a successful meeting answer proves that an external system changed. Company integrations retain their own permission and execution rules.

## Close with a useful result

A compact result should identify the tested component/client version, permitted scenario, actual admission state, request/result correlation, outcome and cleanup. Label synthetic fixtures, source review and an actual paired meeting separately. List the one gap that prevents acceptance, if there is one.

For example: **"Synthetic fixture: the reply matched the question ID; no paired meeting was run. Next: confirm supported runtime and arrange one host-authorized exchange."** Or: **"Authorized paired test: admitted, question accepted, unavailable outcome matched, seat left. Transport acceptance passed; the intended useful answer was unavailable."** These are example report formats, not claims about tests performed by Stoin.

Use the [buyer readiness guide](/enterprise/readiness/) to turn a technical result into a pilot decision. For an actual product issue, use the existing [support path](/support) or [feedback flow](https://app.stoin.ai/feedback), with only the information you are permitted to share.
