acc_create_issue
Create a new ACC issue (field observation, coordination clash, safety, quality, etc.) in the target project via the APS Construction Issues API.
When to use: The user wants to log a new issue — e.g. 'open a high-priority issue about the leaking valve on level 3' or a downstream agent detected a defect during a model review and needs to record it for the project team.
When NOT to use: Do not use to modify an existing issue (use acc_update_issue) and do not use for RFIs (use acc_create_rfi).
APS scopes: data:read data:write account:read.
Rate limits: ACC Issues API limited to ~100 req/min per app; APS default ~50 req/min per endpoint — batch creations with backoff.
Errors: 401 (APS token expired — refresh); 403 (user lacks 'Create Issues' permission on the project or scope insufficient — surface to user); 404 (project_id not found — verify the 'b.' prefix and that the project belongs to a hub the app can see via acc_list_projects); 422 (validation — required field like title/description missing or priority enum invalid); 429 (rate limit — retry after 60s); 5xx (ACC upstream — retry with jitter, do not double-create).
Side effects: Creates a persistent issue record visible to all project members. NOT idempotent — a retry on a 5xx may create duplicates; dedupe by title before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Short issue title, 1–255 chars. Required. | |
| due_date | No | Optional due date in ISO 8601 date format (YYYY-MM-DD). | |
| priority | No | Issue priority. Defaults to 'medium' if omitted. | |
| project_id | Yes | ACC project ID. MUST use the 'b.' prefix literal (e.g. 'b.a1b2c3d4-...'). The worker strips the prefix internally for the Issues endpoint. Obtain via acc_list_projects. | |
| assigned_to | No | Optional APS user ID (oxygen ID / ACC user UUID) of the assignee. Leave null for unassigned. | |
| description | Yes | Detailed issue description / body. Plain text, up to ~10,000 chars. Required. |