Skip to content

feat(work-item): add AI SRE assignee fields to work-item OpenAPI spec and SDK - #81

Merged
debidong merged 1 commit into
mainfrom
feat/work-item-ai-sre
Sep 23, 2026
Merged

debidong merged 1 commit into
mainfrom
feat/work-item-ai-sre

Conversation

@debidong

Copy link
Copy Markdown
Contributor

What

Work-item API gains AI SRE as an assignee type (spec openapi.en.json / openapi.zh.json + regenerated models_gen.go; no handwritten Go changes):

  • POST /incident/work-item/create and /assignees/reset: new assignees array ({type: person|ai_sre, id?}, ai_sre omits id, max 20). Mutually exclusive with legacy assignee_ids (sending both is an error); assignee_ids remains as the all-person alias.
  • WorkItemItem response: new assignees, agent_session_id, agent_session_venue (web / im).
  • POST /incident/work-item/list: new assignee_type filter (person / ai_sre); an AI caller uses it to list its own tasks.

Notes

  • The spec source of truth lives in flashduty-docs (api-reference/); the matching source-side update is on branch feat/work-item-ai-sre there as well. Until that lands, please do not run make sync-spec on main.
  • Verified: go build ./..., go test -race ./..., go vet ./..., go generate ./... (idempotent — a second run produces no diff).

Create and reset take assignees ({type, id?}) beside the legacy
assignee_ids alias. List can filter with assignee_type. Work item
responses include structured assignees and the AI session id and venue.

The vendored spec was edited in this repo; it is normally copied from
flashduty-docs. Regenerated the SDK from the English spec.
@debidong
debidong merged commit 2e8f575 into main Sep 23, 2026
4 checks passed
@debidong
debidong deleted the feat/work-item-ai-sre branch September 23, 2026 09:00
debidong added a commit to flashcatcloud/flashduty-cli that referenced this pull request Sep 23, 2026
Point create and assignees-reset at the assignees object array, and add
--assignee-type on list. Response help and the incident skill card follow.

go-flashduty is pinned to the pre-release pseudo-version of
flashcatcloud/go-flashduty#81; repin to the next release tag once that
PR merges and ships.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant