Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions docs/reference/crew-api/owner-consent.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Read one grant request.
| Stability | stable |
| Callers the API defines | The owner, with the owner's own sign-in. |

Returns one grant request by its id, answered or not, so the owner can see how it was answered and which grant it led to (amendment, proposed). The request stays readable until it and its authorization code have expired, or for as long as the grant it led to exists; after that it is 404. The host owner's credential is required; Shared Crew teammates and app tokens receive 403 owner_only.
Returns one grant request by its id, answered or not, so the owner can see how it was answered and which grant it led to (amendment, accepted by a maintainer on 2026-12-02). The request stays readable until it and its authorization code have expired, or for as long as the grant it led to exists; after that it is 404. The host owner's credential is required; Shared Crew teammates and app tokens receive 403 owner_only.

Path parameters:

Expand Down Expand Up @@ -104,11 +104,11 @@ Response body fields (`application/json`), [GrantRequest](schemas.md#grantreques
| `requested_bots` | array of string | no | The Bot names the app sends as the repeated bots query parameter of GET /oauth/authorize, one Bot per occurrence, without splitting; empty when omitted. The app is expected to send the exact model id from GET /v1/models. Names follow kiro_crew.members.is_dispatchable_member_name with the MEMBER_NAME_MAX_CHARS length limit; duplicates are refused. Asking checks format, never existence. Malformed bots gives 400 invalid_request even with an invalid scope. Asking again requires the same bots values in the same order. MAX_REQUESTED_BOTS is the chosen bound for one request and one decision, set equal to crew_teams.TEAM_MEMBERS_MAX (500), the largest Bot list the product keeps elsewhere. The request must fit aiohttp's 8190-byte request line. The decision body must fit 4 KiB (_BODY_MAX); a bots list that does not fit gives 400 invalid_request, and the owner gives a shorter list. |
| `created_at` | [Timestamp](schemas.md#timestamp) | yes | Unix seconds. |
| `expires_at` | [Timestamp](schemas.md#timestamp) | yes | Unix seconds. |
| `decided_at` | integer or null | no | When the owner answered (amendment, proposed) |
| `decided_by` | object or null | no | Who answered: the kind of caller, never a token (amendment, proposed) |
| `granted_scopes` | array of string | no | Only when approved; what the owner gave, which may be fewer than requested (amendment, proposed) |
| `decided_at` | integer or null | no | When the owner answered (amendment, accepted by a maintainer on 2026-12-02) |
| `decided_by` | object or null | no | Who answered: the kind of caller, never a token (amendment, accepted by a maintainer on 2026-12-02) |
| `granted_scopes` | array of string | no | Only when approved; what the owner gave, which may be fewer than requested (amendment, accepted by a maintainer on 2026-12-02) |
| `granted_bots` | array of string | no | Only when approved; the Bot names the owner gave, which may be none. They become the grant's bots with mode selected. Names follow kiro_crew.members.is_dispatchable_member_name and MEMBER_NAME_MAX_CHARS, with no duplicates. MAX_REQUESTED_BOTS is the chosen bound for one request and one decision, set equal to crew_teams.TEAM_MEMBERS_MAX (500), the largest Bot list the product keeps elsewhere. The decision body must fit 4 KiB (_BODY_MAX); a bots list that does not fit gives 400 invalid_request, and the owner gives a shorter list. The decision checks expiry, pending status and the requested subset before reading the roster. The grants list returns the owner's recorded selection, and GET /v1/crew/bots lists the app only Bots from it. |
| `grant_id` | string or null | no | The grant this request led to, set once the app redeemed its code (amendment, proposed) |
| `grant_id` | string or null | no | The grant this request led to, set once the app redeemed its code (amendment, accepted by a maintainer on 2026-12-02) |

Errors. The response body is [Error](schemas.md#error); its `error.code` field holds the code.

Expand Down Expand Up @@ -180,11 +180,11 @@ Response body fields (`application/json`), [GrantRequest](schemas.md#grantreques
| `requested_bots` | array of string | no | The Bot names the app sends as the repeated bots query parameter of GET /oauth/authorize, one Bot per occurrence, without splitting; empty when omitted. The app is expected to send the exact model id from GET /v1/models. Names follow kiro_crew.members.is_dispatchable_member_name with the MEMBER_NAME_MAX_CHARS length limit; duplicates are refused. Asking checks format, never existence. Malformed bots gives 400 invalid_request even with an invalid scope. Asking again requires the same bots values in the same order. MAX_REQUESTED_BOTS is the chosen bound for one request and one decision, set equal to crew_teams.TEAM_MEMBERS_MAX (500), the largest Bot list the product keeps elsewhere. The request must fit aiohttp's 8190-byte request line. The decision body must fit 4 KiB (_BODY_MAX); a bots list that does not fit gives 400 invalid_request, and the owner gives a shorter list. |
| `created_at` | [Timestamp](schemas.md#timestamp) | yes | Unix seconds. |
| `expires_at` | [Timestamp](schemas.md#timestamp) | yes | Unix seconds. |
| `decided_at` | integer or null | no | When the owner answered (amendment, proposed) |
| `decided_by` | object or null | no | Who answered: the kind of caller, never a token (amendment, proposed) |
| `granted_scopes` | array of string | no | Only when approved; what the owner gave, which may be fewer than requested (amendment, proposed) |
| `decided_at` | integer or null | no | When the owner answered (amendment, accepted by a maintainer on 2026-12-02) |
| `decided_by` | object or null | no | Who answered: the kind of caller, never a token (amendment, accepted by a maintainer on 2026-12-02) |
| `granted_scopes` | array of string | no | Only when approved; what the owner gave, which may be fewer than requested (amendment, accepted by a maintainer on 2026-12-02) |
| `granted_bots` | array of string | no | Only when approved; the Bot names the owner gave, which may be none. They become the grant's bots with mode selected. Names follow kiro_crew.members.is_dispatchable_member_name and MEMBER_NAME_MAX_CHARS, with no duplicates. MAX_REQUESTED_BOTS is the chosen bound for one request and one decision, set equal to crew_teams.TEAM_MEMBERS_MAX (500), the largest Bot list the product keeps elsewhere. The decision body must fit 4 KiB (_BODY_MAX); a bots list that does not fit gives 400 invalid_request, and the owner gives a shorter list. The decision checks expiry, pending status and the requested subset before reading the roster. The grants list returns the owner's recorded selection, and GET /v1/crew/bots lists the app only Bots from it. |
| `grant_id` | string or null | no | The grant this request led to, set once the app redeemed its code (amendment, proposed) |
| `grant_id` | string or null | no | The grant this request led to, set once the app redeemed its code (amendment, accepted by a maintainer on 2026-12-02) |

Errors. The response body is [Error](schemas.md#error); its `error.code` field holds the code.

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/crew-api/owner-grants.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Revoke a grant.
| Stability | stable |
| Callers the API defines | The owner, with the owner's own sign-in. |

Takes effect locally first (status=revoked), then the issuer of the grant is told over the control channel. Open streams receive grant.revoked and are closed. For a grant made through local authorization (amendment, proposed), the host owner's credential is required and Shared Crew teammates and app tokens receive 403 owner_only; every access and refresh token under the grant is refused from the next request; a second call answers the same 200 until the grant's own expiry, then 404. Such a grant has no outside issuer to tell.
Takes effect locally first (status=revoked), then the issuer of the grant is told over the control channel. Open streams receive grant.revoked and are closed. For a grant made through local authorization (amendment, accepted by a maintainer on 2026-12-02), the host owner's credential is required and Shared Crew teammates and app tokens receive 403 owner_only; every access and refresh token under the grant is refused from the next request; a second call answers the same 200 until the grant's own expiry, then 404. Such a grant has no outside issuer to tell.

Path parameters:

Expand Down
12 changes: 6 additions & 6 deletions docs/reference/crew-api/public-conversations.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Not served yet:

- Response headers: `X-Crew-Quota-Limit`, `X-Crew-Quota-Remaining`, `X-Crew-Quota-Reset`.

OpenAI has no such endpoint; Crew adds it. A delegated credential lists only conversations opened under its grant. Proposed amendments, 2026-11-26, waiting for a maintainer's sign-off: (1) The list holds every conversation of the caller that is still kept, the ones a turn started for itself included (a POST /v1/responses that named no conversation). (2) The order is by `created_at`, then by id; `desc`, the default, is newest first. A conversation keeps its place while turns run in it. (3) `after` is a conversation id of the caller's own list; any other value is 400 invalid_request, whether or not a conversation of that id exists. A `limit` or `order` outside what the parameters allow is 400 invalid_request too; the 400 response is part of this amendment.
OpenAI has no such endpoint; Crew adds it. A delegated credential lists only conversations opened under its grant. Amendments, 2026-11-26, accepted by a maintainer on 2026-12-02: (1) The list holds every conversation of the caller that is still kept, the ones a turn started for itself included (a POST /v1/responses that named no conversation). (2) The order is by `created_at`, then by id; `desc`, the default, is newest first. A conversation keeps its place while turns run in it. (3) `after` is a conversation id of the caller's own list; any other value is 400 invalid_request, whether or not a conversation of that id exists. A `limit` or `order` outside what the parameters allow is 400 invalid_request too; the 400 response is part of this amendment.

Query parameters:

Expand Down Expand Up @@ -85,7 +85,7 @@ Not served yet:
- Request headers: `Idempotency-Key`.
- Response headers: `X-Crew-Quota-Limit`, `X-Crew-Quota-Remaining`, `X-Crew-Quota-Reset`.

The conversation is tagged with the grant id. The external id is conv_, never the internal session key. Proposed amendments, 2026-11-26, waiting for a maintainer's sign-off: (1) A conversation is kept 30 days after its latest turn ended, or 30 days after it was made while it holds no turn; 30 days is the retention a stored response already has. Admitting a continuation checks that it has not expired, then renews retention for the conversation and its listed turns before reading history; completion renews retention again. This keeps them through a turn shorter than the 30-day retention period. After retention expires, reading it or naming it in a turn is 404 not_found, and so is reading a turn that ran in it: the stored responses of a conversation's turns are kept exactly as long as the conversation. (2) A conversation is a record of its turns, not a dashboard chat: it is not shown in the dashboard, and a dashboard chat has no conv_ id.
The conversation is tagged with the grant id. The external id is conv_, never the internal session key. Amendments, 2026-11-26, accepted by a maintainer on 2026-12-02: (1) A conversation is kept 30 days after its latest turn ended, or 30 days after it was made while it holds no turn; 30 days is the retention a stored response already has. Admitting a continuation checks that it has not expired, then renews retention for the conversation and its listed turns before reading history; completion renews retention again. This keeps them through a turn shorter than the 30-day retention period. After retention expires, reading it or naming it in a turn is 404 not_found, and so is reading a turn that ran in it: the stored responses of a conversation's turns are kept exactly as long as the conversation. (2) A conversation is a record of its turns, not a dashboard chat: it is not shown in the dashboard, and a dashboard chat has no conv_ id.

Request headers:

Expand Down Expand Up @@ -150,7 +150,7 @@ Not served yet:

- Response headers: `X-Crew-Quota-Limit`, `X-Crew-Quota-Remaining`, `X-Crew-Quota-Reset`.

Proposed amendments, 2026-11-26, waiting for a maintainer's sign-off: (1) `crew.title` is null: a conversation is given no title. `crew.model` is the model its latest turn named, and is absent before the first turn ends. `crew.status` is running while a turn runs in the conversation and idle otherwise; needs_approval is not reported yet, and a turn that waits for an approval reads running. `crew.latest_seq` is absent. (2) A conversation whose retention is over, and an id that names none, are the same 404 not_found.
Amendments, 2026-11-26, accepted by a maintainer on 2026-12-02: (1) `crew.title` is null: a conversation is given no title. `crew.model` is the model its latest turn named, and is absent before the first turn ends. `crew.status` is running while a turn runs in the conversation and idle otherwise; needs_approval is not reported yet, and a turn that waits for an approval reads running. `crew.latest_seq` is absent. (2) A conversation whose retention is over, and an id that names none, are the same 404 not_found.

Path parameters:

Expand Down Expand Up @@ -214,7 +214,7 @@ Not served yet:
- Request headers: `Idempotency-Key`.
- Response headers: `X-Crew-Quota-Limit`, `X-Crew-Quota-Remaining`, `X-Crew-Quota-Reset`.

Proposed amendments, 2026-11-26, waiting for a maintainer's sign-off: (1) `metadata` replaces the conversation's metadata whole: a pair the request does not send is removed, and `{}` removes them all. (2) An update is not a turn: it does not renew the conversation's retention, which still counts from its latest turn. (3) A conversation can be updated while a turn runs in it.
Amendments, 2026-11-26, accepted by a maintainer on 2026-12-02: (1) `metadata` replaces the conversation's metadata whole: a pair the request does not send is removed, and `{}` removes them all. (2) An update is not a turn: it does not renew the conversation's retention, which still counts from its latest turn. (3) A conversation can be updated while a turn runs in it.

Path parameters:

Expand Down Expand Up @@ -285,7 +285,7 @@ Not served yet:

- Response headers: `X-Crew-Quota-Limit`, `X-Crew-Quota-Remaining`, `X-Crew-Quota-Reset`.

A delegated credential can delete only conversations opened under its grant; others get 404. 409 response_in_progress while a turn is running. Proposed amendments, 2026-11-26, waiting for a maintainer's sign-off: (1) Deleting a conversation deletes the stored responses of the turns that ran in it. Afterwards the conversation, each of those responses and their input items read 404 not_found, and a turn that names the conversation or one of those responses is 404 not_found. (2) A turn asked for in the conversation while the delete is in progress is 409 response_in_progress.
A delegated credential can delete only conversations opened under its grant; others get 404. 409 response_in_progress while a turn is running. Amendments, 2026-11-26, accepted by a maintainer on 2026-12-02: (1) Deleting a conversation deletes the stored responses of the turns that ran in it. Afterwards the conversation, each of those responses and their input items read 404 not_found, and a turn that names the conversation or one of those responses is 404 not_found. (2) A turn asked for in the conversation while the delete is in progress is 409 response_in_progress.

Path parameters:

Expand Down Expand Up @@ -347,7 +347,7 @@ Not served yet:

- Response headers: `X-Crew-Quota-Limit`, `X-Crew-Quota-Remaining`, `X-Crew-Quota-Reset`.

Proposed amendments, 2026-11-26, waiting for a maintainer's sign-off: (1) The history is the conversation's stored turns in the order they ran: for each turn its input items, then its reply. `asc` is that order and `desc`, the default, is its reverse. The texts are the stored ones, which are redacted. (2) A turn that failed, was cancelled or was cut short is listed too, and each of its items has `status: incomplete`. (3) A turn still running is not listed until it ends. (4) Every item is a `message`: tool call and approval items are not served yet. (5) `after` is an item id of this history; any other value is 400 invalid_request, as is a `limit` or `order` outside what the parameters allow; the 400 response is part of this amendment.
Amendments, 2026-11-26, accepted by a maintainer on 2026-12-02: (1) The history is the conversation's stored turns in the order they ran: for each turn its input items, then its reply. `asc` is that order and `desc`, the default, is its reverse. The texts are the stored ones, which are redacted. (2) A turn that failed, was cancelled or was cut short is listed too, and each of its items has `status: incomplete`. (3) A turn still running is not listed until it ends. (4) Every item is a `message`: tool call and approval items are not served yet. (5) `after` is an item id of this history; any other value is 400 invalid_request, as is a `limit` or `order` outside what the parameters allow; the 400 response is part of this amendment.

Path parameters:

Expand Down
Loading
Loading