@salesforce/afv-skills 1.24.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/package.json +1 -1
  2. package/skills/commerce-b2b-open-code-components-replace/SKILL.md +244 -0
  3. package/skills/commerce-b2b-open-code-components-replace/assets/ootb-to-open-code-mapping.json +66 -0
  4. package/skills/dx-devops-test-failures-analyze/SKILL.md +89 -0
  5. package/skills/dx-devops-test-failures-analyze/references/code-analyzer-violations.md +26 -0
  6. package/skills/dx-devops-test-failures-analyze/references/failure-categories.md +85 -0
  7. package/skills/{checking-devops-prerequisites/SKILL.md → dx-devops-test-failures-analyze/references/prerequisite-checks.md} +8 -37
  8. package/skills/{creating-fix-work-item/SKILL.md → dx-devops-test-failures-analyze/references/work-item-creation.md} +8 -12
  9. package/skills/dx-devops-test-pipeline-configure/SKILL.md +72 -0
  10. package/skills/dx-devops-test-pipeline-configure/references/configuring-quality-gate.md +133 -0
  11. package/skills/dx-devops-test-pipeline-configure/references/configuring-test-provider.md +80 -0
  12. package/skills/dx-devops-test-pipeline-configure/references/error-handling.md +39 -0
  13. package/skills/dx-devops-test-pipeline-configure/references/gotchas.md +37 -0
  14. package/skills/dx-devops-test-pipeline-configure/references/prerequisite-checks.md +112 -0
  15. package/skills/dx-devops-test-pipeline-configure/references/syncing-test-providers.md +69 -0
  16. package/skills/dx-devops-test-suite-assignments-configure/SKILL.md +74 -0
  17. package/skills/dx-devops-test-suite-assignments-configure/references/api-endpoint.md +30 -0
  18. package/skills/dx-devops-test-suite-assignments-configure/references/error-handling.md +14 -0
  19. package/skills/dx-devops-test-suite-assignments-configure/references/prerequisite-checks.md +112 -0
  20. package/skills/{recommending-devops-tests/SKILL.md → dx-devops-test-suite-assignments-configure/references/recommendation-logic.md} +10 -26
  21. package/skills/dx-devops-test-suite-assignments-configure/references/suite-assignment-modes.md +99 -0
  22. package/skills/dx-devops-test-suite-run/SKILL.md +111 -0
  23. package/skills/dx-devops-test-suite-run/references/error-handling.md +31 -0
  24. package/skills/dx-devops-test-suite-run/references/polling-configuration.md +78 -0
  25. package/skills/dx-devops-test-suite-run/references/prerequisite-checks.md +112 -0
  26. package/skills/dx-devops-test-suite-run/references/retrigger-mode.md +51 -0
  27. package/skills/dx-org-manage/SKILL.md +192 -0
  28. package/skills/dx-org-manage/examples/README.md +45 -0
  29. package/skills/dx-org-manage/examples/scratch-orgs/error_no_devhub.json +9 -0
  30. package/skills/dx-org-manage/examples/scratch-orgs/error_timeout.json +13 -0
  31. package/skills/dx-org-manage/examples/scratch-orgs/success_definition_file.json +28 -0
  32. package/skills/dx-org-manage/examples/scratch-orgs/success_edition.json +26 -0
  33. package/skills/dx-org-manage/examples/scratch-orgs/success_snapshot.json +27 -0
  34. package/skills/dx-org-manage/examples/snapshots/error_output.json +9 -0
  35. package/skills/dx-org-manage/examples/snapshots/success_output.json +15 -0
  36. package/skills/dx-org-manage/references/cli_flags.md +67 -0
  37. package/skills/dx-org-manage/references/creating-scratch-org.md +164 -0
  38. package/skills/dx-org-manage/references/creating-snapshot.md +103 -0
  39. package/skills/dx-org-manage/references/definition_file_options.md +224 -0
  40. package/skills/dx-org-manage/references/edition_types.md +78 -0
  41. package/skills/dx-org-manage/references/opening-org.md +160 -0
  42. package/skills/dx-org-manage/references/snapshot_usage.md +74 -0
  43. package/skills/dx-org-permission-set-assign/SKILL.md +98 -0
  44. package/skills/dx-org-permission-set-assign/examples/error_output.json +19 -0
  45. package/skills/dx-org-permission-set-assign/examples/success_output.json +16 -0
  46. package/skills/dx-org-permission-set-assign/references/cli_flags.md +68 -0
  47. package/skills/experience-cms-brand-apply/SKILL.md +1 -1
  48. package/skills/experience-ui-bundle-app-coordinate/SKILL.md +31 -19
  49. package/skills/experience-ui-bundle-file-upload-generate/SKILL.md +1 -1
  50. package/skills/experience-ui-bundle-frontend-generate/implementation/header-footer.md +1 -1
  51. package/skills/experience-ui-bundle-salesforce-data-access/SKILL.md +336 -581
  52. package/skills/experience-ui-bundle-salesforce-data-access/references/caching.md +172 -0
  53. package/skills/experience-ui-bundle-salesforce-data-access/references/graphiti-cli.md +373 -0
  54. package/skills/experience-ui-bundle-salesforce-data-access/references/graphql-hand-authoring.md +376 -0
  55. package/skills/experience-ui-bundle-salesforce-data-access/references/migration.md +119 -0
  56. package/skills/experience-ui-bundle-salesforce-data-access/references/rest-and-integration.md +152 -0
  57. package/skills/experience-ui-bundle-salesforce-data-access/references/sdk-api.md +217 -0
  58. package/skills/experience-ui-bundle-salesforce-data-access/scripts/graphql-search.sh +36 -9
  59. package/skills/platform-agentsetup-categories-fetch/SKILL.md +109 -0
  60. package/skills/platform-agentsetup-categories-fetch/references/api-response-schema.md +121 -0
  61. package/skills/platform-custom-object-generate/SKILL.md +62 -7
  62. package/skills/platform-custom-object-generate/references/description-enrichment.md +125 -0
  63. package/skills/platform-metadata-retrieve/SKILL.md +121 -0
  64. package/skills/platform-metadata-retrieve/examples/error_output.json +10 -0
  65. package/skills/platform-metadata-retrieve/examples/success_output.json +27 -0
  66. package/skills/platform-metadata-retrieve/references/cli_flags.md +138 -0
  67. package/skills/platform-metadata-retrieve/references/retrieval_modes.md +181 -0
  68. package/skills/platform-sharing-rules-generate/SKILL.md +165 -0
  69. package/skills/platform-sharing-rules-generate/references/rule-types.md +199 -0
  70. package/skills/platform-tracing-agentforce-configure/SKILL.md +118 -0
  71. package/skills/platform-tracing-agentforce-configure/assets/AgentforcePlatformTracing-template.xml +4 -0
  72. package/skills/platform-tracing-configure/SKILL.md +118 -0
  73. package/skills/platform-tracing-configure/assets/EventSettings-template.xml +4 -0
  74. package/skills/platform-trust-archive-manage/SKILL.md +25 -11
  75. package/skills/platform-trust-archive-manage/examples/monitor-failed-jobs.md +2 -2
  76. package/skills/platform-trust-archive-manage/references/archive-activity-entity.md +1 -1
  77. package/skills/platform-trust-archive-manage/references/connect-api-operations.md +51 -12
  78. package/skills/analyzing-test-failures/SKILL.md +0 -159
  79. package/skills/configuring-quality-gate/SKILL.md +0 -120
  80. package/skills/configuring-test-provider/SKILL.md +0 -113
  81. package/skills/managing-suite-assignments/SKILL.md +0 -161
  82. package/skills/polling-test-results/SKILL.md +0 -72
  83. package/skills/running-devops-test-suite/SKILL.md +0 -144
  84. package/skills/syncing-test-providers/SKILL.md +0 -108
@@ -20,33 +20,31 @@ Operate Salesforce Archive (also called Trusted Services Archive) through its Co
20
20
 
21
21
  Gather or infer before acting:
22
22
 
23
- - **Operation intent**: search, view, unarchive, analyze, mask, RTBF, storage check, or job-status/log lookup.
23
+ - **Operation intent**: search (this is also how you view archived records), unarchive, analyze, mask, RTBF, storage check, or job-status/log lookup.
24
24
  - **Target sObject** (`sobjectName`): required for search and unarchive.
25
25
  - **Filters**: search and unarchive require `sobjectName` + at least one filter.
26
26
  - **For log downloads**: the `requestId` (an `ArchiveActivity` Id, `8qv…` prefix) of a completed, log-producing job, and `reportType` = that activity's `Type`.
27
27
 
28
28
  Preconditions (confirm or surface to the user if a call returns a not-permitted error):
29
- - The **org** must have Salesforce Archive enabled (the `TrustedServicesArchive` / `TrustedServicesArchiveBt` org permission). Every operation is gated on this first.
29
+ - The **org** must have Salesforce Archive enabled. Every operation is gated on this first.
30
30
  - Each operation requires a **specific user permission** on top of the org gate — see the Permissions table below. There is no single "archive admin" role; access is per-capability.
31
31
 
32
32
  ---
33
33
 
34
34
  ## Permissions
35
35
 
36
- Every operation first requires the org to have Salesforce Archive enabled (`hasTrustedServicesArchive` = `OrgPermissions.TrustedServicesArchive || TrustedServicesArchiveBt`). On top of that org gate, each capability is gated by a distinct **user permission**. A call the user isn't permitted for fails with a "not permitted" error — match the error to the missing permission below.
36
+ Every operation first requires the org to have Salesforce Archive enabled. On top of that org gate, each capability is gated by a distinct **user permission**. A call the user isn't permitted for fails with a "not permitted" error — match the error to the missing permission below.
37
37
 
38
38
  | Operation | User permission required |
39
39
  |-----------|--------------------------|
40
- | `search-archived-records`, `get-search-archived-records-next-page` | `ViewSearchPage` (Archive Search) — the Connect search endpoint runs the global-search path, gated by Archive Search, **not** `ViewArchivedRecords` |
41
- | `search-archived-records-with-sharing-rules` (Agentforce) | `ViewArchivedRecords` |
40
+ | `search-archived-records`, `get-search-archived-records-next-page` | `ViewSearchPage` (Archive Search) — **not** `ViewArchivedRecords` |
41
+ | `search-archived-records-with-sharing-rules` | `ViewArchivedRecords` |
42
42
  | `unarchive-records` | `UnarchiveSdk` |
43
43
  | `forget-archived-records` (RTBF) + `get-rtbf-status` | `Rtbf` |
44
44
  | `mask-archived-records` + `get-masking-status` | `Rtbf` (masking shares the same `Rtbf` permission — **not** a separate entitlement) |
45
45
  | `run-analyzer`, `get-analyzer-report`, `get-archive-storage-used` | `ArchiveAnalyzer` |
46
46
  | `get-execution-details-stream-url`, `get-failed-records-stream-url` | `ViewActivitiesPage` (Archive Activities) |
47
47
 
48
- > Source of truth: the Connect API resource classes in `trusted-services-archive-connect-impl` → `TrustedServicesArchiveSdkImpl` guards → `TrustedServicesArchive.accessChecks.xml`. Note `search-archived-records` routes through `performArchiverGlobalSearch` (gated by `canRunArchiveSearch` = `ViewSearchPage`); the separate Apex-SDK `searchArchivedRecords()` method is gated by `ViewArchivedRecords`, but the **Connect API** search endpoint does not use it.
49
-
50
48
  ---
51
49
 
52
50
  ## Workflow
@@ -57,7 +55,24 @@ All steps are sequential within a task. Read the referenced file the first time
57
55
 
58
56
  2. **For job status / monitoring, read the data model** — when the task involves archive jobs, failures, progress, counts, or logs, load `references/archive-activity-entity.md` for the `ArchiveActivity` field reference and how it links to the Connect API. Query `ArchiveActivity` via SOQL or Connect — **not** Flow. For a worked end-to-end example (find failed/in-progress jobs, then pull their execution-detail and failed-records logs), load `examples/monitor-failed-jobs.md`.
59
57
 
60
- 3. **Construct and send the call** — follow the contract exactly. For searches, supply `sobjectName` + ≥1 filter; for date filtering use the plural `dateRanges` array of `{field, from, to}` with full ISO-8601 datetimes.
58
+ 3. **Construct and send the call** — every operation is a `{method, path, body}` REST call. Send it with whatever Connect/REST API tool your environment provides (an MCP server that invokes Connect/REST APIs, the `sf` CLI, or any REST client). Two path rules are critical (full per-operation contracts are in `references/connect-api-operations.md`):
59
+
60
+ - **The operation names in this skill are NOT URL paths.** `search-archived-records`, `unarchive-records`, etc. are labels; never put them in the path. Use the short literal paths below (each relative to base `/platform/data-resilience/archive`). Sending the operation name as a path segment (e.g. `/…/archive/search-archived-records`) returns **404**.
61
+ - **The path stops at `/platform/data-resilience/archive/…` — there is NO `/connect` segment**, even though this is a Connect API. A **404 / `NOT_FOUND` here means the path is wrong, NOT that Archive is disabled** — fix the path before concluding the add-on is missing.
62
+
63
+ | Operation | Method + Path | Notes |
64
+ |-----------|---------------|-------|
65
+ | search-archived-records | `POST /search` | requires `sobjectName` + ≥1 filter |
66
+ | search next page | `GET /search/next/{scrollId}` | stop when `scroll_id == "-1"` |
67
+ | search with sharing rules | `POST /search/with-sharing-rules` | uses `filtersJson` object map |
68
+ | unarchive-records | `POST /unarchive` | `sobjectName` + filters |
69
+ | run-analyzer / report | `POST /analyzer/run` · `GET /analyzer/report` | |
70
+ | forget / RTBF + status | `POST /rtbf` · `GET /rtbf/{requestId}` | |
71
+ | mask + status | `POST /mask` · `GET /mask/{requestId}` | |
72
+ | storage used | `GET /storage/archive-used` | |
73
+ | execution-detail / failed-records log | `GET /log/execution-details-stream-url` · `GET /log/failed-records-stream-url` | query params `requestId`, `reportType` |
74
+
75
+ With the `sf` CLI, prefix the path with `/services/data/v67.0`; some MCP/REST tools take the bare path and add the version themselves (tool-dependent — see the reference). Then follow the contract: for searches, supply `sobjectName` + ≥1 filter; for date filtering use the plural `dateRanges` array of `{field, from, to}` with full ISO-8601 datetimes.
61
76
 
62
77
  4. **Branch on the right signal** — some operations return HTTP 201 with a body-level success flag (`body.statusCode`, `body.isSuccess`). Read `references/connect-api-operations.md` for which signal to trust per operation; never assume the HTTP status alone means success.
63
78
 
@@ -80,12 +95,11 @@ All steps are sequential within a task. Read the referenced file the first time
80
95
 
81
96
  | Constraint | Rationale |
82
97
  |-----------|-----------|
83
- | Search & unarchive require `sobjectName` + at least one filter | The controller rejects an unfiltered request with "Search must be based on at least 1 field" — a full-object operation is never allowed. |
98
+ | Search & unarchive require `sobjectName` + at least one filter | An unfiltered request is rejected with "Search must be based on at least 1 field" — a full-object operation is never allowed. |
84
99
  | Date filters must be full ISO-8601 datetimes (`2020-01-01T00:00:00Z`) | A date-only value (`2020-01-01`) returns `400 JSON_PARSER_ERROR` because the field is typed `xsd:dateTime`. |
85
100
  | Search uses `dateRanges` (plural array); unarchive uses `dateRange` (singular) | They are genuinely different fields on the two endpoints; using the wrong shape silently drops the filter or 400s. |
86
101
  | Stop pagination when `scroll_id == "-1"` | Calling `get-search-archived-records-next-page` with `"-1"` returns 500. |
87
102
  | Log downloads need a real `ArchiveActivity` Id as `requestId` + that activity's `Type` as `reportType` | The backend resolves the log by the activity record; a mismatched `reportType` returns no log. |
88
- | Never use the deprecated lookups | `global-search-by-id`, `get-global-search-results`, and `view-archived-records` are deprecated with no successor and currently 500. Use `search-archived-records` (+ next-page) instead. |
89
103
  | Excluded objects are not retrievable | `Feed`, `History`, `Relation`, `Share` are not searchable; Files/Attachments are not retrievable via this API — do not promise them. |
90
104
  | Query `ArchiveActivity` via SOQL/Connect, never Flow | `ArchiveActivity` has `isProcessEnabled=false`, so a Flow "Get Records" element on it fails with "You can't get ArchiveActivity records in a flow." |
91
105
 
@@ -97,7 +111,7 @@ All steps are sequential within a task. Read the referenced file the first time
97
111
  |-------|------------|
98
112
  | Treating HTTP 201 as success | Several operations return 201 with a body-level outcome. Branch on `body.statusCode` (search) or `body.isSuccess` (`with-sharing-rules`), not the HTTP code. |
99
113
  | `run-analyzer.isRunning` used as a signal | It is **always** `null`; the endpoint only populates `message`. Poll `get-analyzer-report` to confirm completion instead. |
100
- | `search-archived-records-with-sharing-rules` (Agentforce) filters as an array | `filtersJson` must be a JSON-encoded **object map** `{"Field":"Value"}`, not an array of `{field,value}`; the array form returns `isSuccess:false "No valid filters provided"`. |
114
+ | `search-archived-records-with-sharing-rules` filters as an array | `filtersJson` must be a JSON-encoded **object map** `{"Field":"Value"}`, not an array of `{field,value}`; the array form returns `isSuccess:false "No valid filters provided"`. |
101
115
  | Log `url` treated as present because status is 201 | `get-*-stream-url` returns `{url}`; `url: null` means no log was resolved. Always check `url != null`. |
102
116
  | Misreading `get-archive-storage-used` | `usedStorage[]`/`availableStorage[]` are parallel positional arrays: index 0=org DATA, 1=org FILE, 2=archive RECORDS, 3=archive FILE. `availableStorage[2]`/`[3]` are **always 0** (archive tier is unmetered) — that means "not tracked", not "full". |
103
117
  | Expecting `ArchiveActivity` in a Flow | It is not Flow-enabled (`isProcessEnabled=false`). Use SOQL/Connect/Reports. |
@@ -23,13 +23,13 @@ Read each row's `ProgressPercentage`, `SucceededCount`/`FailedCount`, `RootEntit
23
23
  Take the job's `Id` (`8qv…`) as `requestId` and its `Type` as `reportType`. `{activity.Type}` below is a placeholder for that job's own `Type` field value (e.g. `Archive`, `Purge`, `Unarchive`, `Analyzer`) — substitute the actual value per job; a hardcoded/mismatched `reportType` returns no log.
24
24
 
25
25
  **Execution-detail log:**
26
- ```
26
+ ```text
27
27
  GET /platform/data-resilience/archive/log/execution-details-stream-url
28
28
  ?requestId={activity.Id}&reportType={activity.Type}
29
29
  ```
30
30
 
31
31
  **Failed-records log:**
32
- ```
32
+ ```text
33
33
  GET /platform/data-resilience/archive/log/failed-records-stream-url
34
34
  ?requestId={activity.Id}&reportType={activity.Type}
35
35
  ```
@@ -10,7 +10,7 @@
10
10
  | Key prefix | `8qv` (record Ids start `8qv…`) |
11
11
  | Owning product | Salesforce Archive (Trusted Services Archive) |
12
12
  | Kind | **Standard platform entity** (not a custom object) |
13
- | License gate | Requires the Trusted Services Archive add-on (`TrustedServicesArchive.hasTrustedServicesArchive`) — absent on orgs without the add-on |
13
+ | License gate | Requires the Trusted Services Archive add-on — absent on orgs without the add-on |
14
14
  | Name field | Auto-number, mask `ARCV-{0000000000}` |
15
15
  | Flow-enabled? | **No** — `isProcessEnabled=false`. A Flow "Get Records" element on it fails: "You can't get ArchiveActivity records in a flow." Query via SOQL / Connect / Reports. |
16
16
 
@@ -1,13 +1,54 @@
1
1
  # Salesforce Archive Connect API — Operations Reference
2
2
 
3
- All operations are under the base path `/platform/data-resilience/archive/`. Contracts verified live against archived data. Read the operation you need before constructing the call — several contracts are non-obvious.
3
+ Read the operation you need before constructing the call — several contracts are non-obvious.
4
+
5
+ ## How to call these operations
6
+
7
+ Every operation is a REST call defined by three things:
8
+
9
+ - **method** — `GET` or `POST` (see the `Method + Path` column below)
10
+ - **path** — the resource path, e.g. `/platform/data-resilience/archive/search`
11
+ - **body** — a JSON object (POST only); GET operations carry their inputs as query-string params and send no body
12
+
13
+ ```text
14
+ {method} /platform/data-resilience/archive/{operation-path}
15
+ ```
16
+
17
+ The `/platform/...` path *is* the complete resource path — there is **no `/connect` segment** and you do not append the operation name (details below). Use API version `67.0`.
18
+
19
+ **Send it with whatever Connect/REST API tool your environment provides** — an MCP server that invokes Connect/REST APIs, the `sf` CLI, or any REST client. Map the three primitives above to that tool's parameters.
20
+
21
+ **Whether the path needs the `/services/data/v67.0` prefix depends on the tool, not on MCP-vs-CLI** — some tools want the full versioned URL, others take the bare `/platform/...` path and add the version/host themselves. Check the tool's own docs; if a bare path returns `NOT_FOUND`, try the full versioned form (and vice-versa).
22
+
23
+ **If using the `sf` CLI** — supply the **full versioned URL** and pass the body inline. The `--body` flag takes the JSON itself, **not** a filename (a bare filename is sent verbatim → `JSON_PARSER_ERROR`):
24
+
25
+ ```bash
26
+ sf api request rest "/services/data/v67.0/platform/data-resilience/archive/search" \
27
+ --method POST \
28
+ --body '{"sobjectName":"Account","filters":[{"field":"Name","value":"salesforce.com"}],"fields":["Id","Name","Phone"]}' \
29
+ --target-org <org-alias>
30
+ ```
31
+
32
+ **If using an MCP server / other REST client** — map method, path, and body to its parameters (names vary per tool; check its docs). For example, the body for the same search is:
33
+
34
+ ```text
35
+ {"sobjectName":"Account","filters":[{"field":"Name","value":"salesforce.com"}],"fields":["Id","Name","Phone"]}
36
+ ```
37
+
38
+ (For GET operations, append the inputs as query-string params on the path and send no body.)
39
+
40
+ > Two path rules that otherwise surface as a misleading error, **regardless of how you send the call**:
41
+ > - **Use the literal path from the `Method + Path` column below — never build one from the operation name.** The operation identifiers in this doc (`search-archived-records`, `unarchive-records`, …) are *names*, not URL segments. The real path is short and rarely matches the name: `searchArchivedRecords` → `POST /search` (NOT `/search-archived-records`), `unarchiveRecords` → `POST /unarchive`, `getArchiveStorageUsed` → `GET /storage/archive-used`. Synthesizing the path from the operation name (e.g. kebab-casing it and appending it) produces a route that returns **404** even though the operation exists. Always copy the path string verbatim from the table.
42
+ > - **The path stops at `/platform/data-resilience/archive/...`** — there is no `/connect` segment, even though this is a Connect API. Inserting one returns `NOT_FOUND` for the whole namespace, which can read as "Archive is disabled" — it isn't; it's the path.
4
43
 
5
44
  ## Operations Summary
6
45
 
7
- | Operation | Purpose | Method + Path | Verify with |
46
+ The first column is the **operation name** used to refer to each op in this skill — it is **not** part of the path. The method and path to send are in the **Method + Path** column; each path shown (e.g. `POST /search`) is shorthand for `POST /platform/data-resilience/archive/search`.
47
+
48
+ | Operation (name only — NOT a path segment) | Purpose | Method + Path (send THIS) | Verify with |
8
49
  |-----------|---------|---------------|-------------|
9
50
  | `search-archived-records` | read | `POST /search` | — |
10
- | `search-archived-records-with-sharing-rules` | read (Agentforce) | `POST /search/with-sharing-rules` | — |
51
+ | `search-archived-records-with-sharing-rules` | read | `POST /search/with-sharing-rules` | — |
11
52
  | `get-search-archived-records-next-page` | read | `GET /search/next/{scrollId}` | — |
12
53
  | `run-analyzer` | write | `POST /analyzer/run` | `get-analyzer-report` |
13
54
  | `get-analyzer-report` | read | `GET /analyzer/report` | — |
@@ -20,8 +61,6 @@ All operations are under the base path `/platform/data-resilience/archive/`. Con
20
61
  | `get-failed-records-stream-url` | read | `GET /log/failed-records-stream-url` | — |
21
62
  | `get-archive-storage-used` | read | `GET /storage/archive-used` | — |
22
63
 
23
- **Deprecated — do not use** (no successor; currently 500): `global-search-by-id`, `get-global-search-results`, `view-archived-records`. Use `search-archived-records` (+ `get-search-archived-records-next-page`) for all archived-record lookups.
24
-
25
64
  ### Verify-after-write dependencies
26
65
 
27
66
  ```mermaid
@@ -44,12 +83,12 @@ Search archived records by object, filters, date ranges, and sort.
44
83
  - `sobjectName` *(string)* — API name of the sObject to search.
45
84
  - `filters` *(array)* — Filter conditions, each `{field, value}` where **both are required strings**. `value` is a single string — **not** an array, **not** nullable (null/omitted → `400 "This field may not be null"`). There is **no `operator` field**. **At least 1, up to 6 filters, combined with AND only** (OR is not supported). Example: `[{"field":"Subject","value":"Foo"}]`.
46
85
  - `dateRanges` *(array)* — Primary date filter: array of `{field, from, to}`. `from`/`to` must be full ISO-8601 datetime (`"2020-01-01T00:00:00Z"`); date-only → `400 JSON_PARSER_ERROR` (xsd:dateTime). Use the special field `archive_date` to filter by archive date instead of `CreatedDate`/`ModifiedDate`.
47
- - `dateRange` *(object)* — Optional **singular** convenience range `{field, from, to}`; the controller folds it into `dateRanges` (one-element equivalent). Same singular shape that `unarchive-records` uses.
86
+ - `dateRange` *(object)* — Optional **singular** convenience range `{field, from, to}`; treated as a one-element `dateRanges`. Same singular shape that `unarchive-records` uses.
48
87
  - `fields` *(array)* — Field API names to return.
49
88
  - `pageSize` *(integer)* — Records per page; default 25, max 1000.
50
89
  - `sortDirection` *(string)* — `asc`/`desc`, case-insensitive, default `asc`; an invalid value → 400.
51
90
 
52
- **Output**: HTTP **201**, `body = { records[], total_result_count, scroll_id }`, `body.statusCode = 200`, `errorMessage` null on success. **Branch on `body.statusCode`, not the HTTP code** — once past framework validation the response is always 200/201 even on logical failure, with the error in `errorMessage` + `statusCode`.
91
+ **Output**: HTTP **201**, `body = { records[], total_result_count, scroll_id }`, `body.statusCode = 200`, `errorMessage` null on success. **Branch on `body.statusCode`, not the HTTP code** — once past request validation the response is always 200/201 even on logical failure, with the error in `errorMessage` + `statusCode`.
53
92
 
54
93
  **Excluded objects**: `Feed`, `History`, `Relation`, `Share` are not searchable; Files/Attachments are not retrievable.
55
94
 
@@ -66,7 +105,7 @@ Read records inline from each response. If `body.scroll_id != "-1"`, call `get-s
66
105
 
67
106
  ## search-archived-records-with-sharing-rules (`POST /search/with-sharing-rules`)
68
107
 
69
- Archive search **optimized for Agentforce agents**. (There is no `/search/related` endpoint — this is the operation that takes the JSON filter map.) Gated by the **`ViewArchivedRecords`** user permission (unlike plain `search-archived-records`, which uses `ViewSearchPage`).
108
+ Archive search that enforces the user's sharing rules. (There is no `/search/related` endpoint — this is the operation that takes the JSON filter map.) Gated by the **`ViewArchivedRecords`** user permission (unlike plain `search-archived-records`, which uses `ViewSearchPage`).
70
109
 
71
110
  **Required**: `objectName`, `filtersJson`.
72
111
 
@@ -83,7 +122,7 @@ Archive search **optimized for Agentforce agents**. (There is no `/search/relate
83
122
 
84
123
  ## run-analyzer (`POST /analyzer/run`) + get-analyzer-report (`GET /analyzer/report`)
85
124
 
86
- `run-analyzer` triggers the analyzer; HTTP 201, output `message` *(string, human-readable status)*. **`isRunning` is ALWAYS `null`** — the controller only populates `message`; never branch on `isRunning`. Poll `get-analyzer-report` to confirm completion. Non-destructive / idempotent.
125
+ `run-analyzer` triggers the analyzer; HTTP 201, output `message` *(string, human-readable status)*. **`isRunning` is ALWAYS `null`** — only `message` is populated; never branch on `isRunning`. Poll `get-analyzer-report` to confirm completion. Non-destructive / idempotent.
87
126
 
88
127
  `get-analyzer-report` returns `body` with: `topRecords[]` (`{objectName, objectLabel, objectIcon, size, count, usagePercent}` per archivable sObject), `topFiles[]` (parallel shape for files), `fileGeneralStorage`/`dataGeneralStorage` (`{storageUsed, storageRemaining, usagePercent}`), and `createdDateReport` (`"DD/MM/YYYY HH:MM:SS"`).
89
128
 
@@ -96,7 +135,7 @@ Restore archived records back into live storage by criteria.
96
135
  **Inputs**:
97
136
  - `sobjectName` *(string)* — sObject whose records to unarchive.
98
137
  - `filters` *(array)* — criteria identifying which archived records to restore.
99
- - `dateRange` *(object)* — optional **SINGULAR** range `{field, from, to}` (reads `getDateRange()`, unlike `/search` which uses plural `dateRanges`); full ISO-8601 datetimes. Omit to unarchive by filters alone.
138
+ - `dateRange` *(object)* — optional **SINGULAR** range `{field, from, to}` (unlike `/search`, which uses the plural `dateRanges`); full ISO-8601 datetimes. Omit to unarchive by filters alone.
100
139
 
101
140
  **Caps**: ≤1000 matched records (else not processed); ≤50 unarchive requests/hour/org. Restores the **whole archived hierarchy** of each match. Requires the **`UnarchiveSdk`** user permission (on top of org-level Archive enablement).
102
141
 
@@ -122,7 +161,7 @@ Submits a PII-masking (anonymization) request — irreversibly replaces detected
122
161
 
123
162
  **Behavior**: permanent; one-time per record (re-requests on an already-masked record are ignored); shares the 10,000/day RTBF rate limit; **PII fields are auto-detected** (you cannot choose them); records under legal hold / retention lock are excluded; cascades to child records. Available **only via this API** (not in the Archive UI).
124
163
 
125
- **Permission**: gated by the **`Rtbf`** user permission — the SAME permission as RTBF (`maskArchivedRecords` runs the RTBF access check), not a separate masking entitlement.
164
+ **Permission**: gated by the **`Rtbf`** user permission — the SAME permission as RTBF, not a separate masking entitlement.
126
165
 
127
166
  **Output**: HTTP 201, `body.request_id` *(UUID)*. Poll `get-masking-status` (path param `requestId`); status reaches **HANDLED** when complete. **Rollback**: none — anonymization is permanent.
128
167
 
@@ -154,4 +193,4 @@ Returns `body.usedStorage[4]` (doubles — per-tier bytes consumed) and `body.av
154
193
  | 2 | Archive-tier **RECORDS** storage |
155
194
  | 3 | Archive-tier **FILE** storage |
156
195
 
157
- **`availableStorage[2]` and `[3]` (the archive tier) are ALWAYS 0**: the controller hardcodes them (`ARCHIVER_AVAILABLE_STORAGE = 0`) because archive storage is unmetered, so a `0` there means "not tracked", NOT "no space left". Only `availableStorage[0]`/`[1]` (live org data/file remaining) are real. All values rounded to 2 decimals.
196
+ **`availableStorage[2]` and `[3]` (the archive tier) are ALWAYS 0**: archive storage is unmetered, so a `0` there means "not tracked", NOT "no space left". Only `availableStorage[0]`/`[1]` (live org data/file remaining) are real. All values rounded to 2 decimals.
@@ -1,159 +0,0 @@
1
- ---
2
- name: analyzing-test-failures
3
- description: "Parses a DevOps Center test-failure or Code Analyzer violation payload and explains it in plain language — failure category, offending file/class/method/line, rule violated, and fix direction — then gives prioritized test-improvement suggestions (distinguishing test-code from production-code fixes). Pure reasoning: no system calls or code authoring. TRIGGER when: a test run failed and the user wants root cause; a quality gate failure needs explaining; Code Analyzer violations need translating to plain language; the user shares a failure payload and asks how to address it; tests keep failing and the user wants suggestions; or the user wants to close coverage gaps, strengthen assertions, or fix flaky/weak tests. DO NOT TRIGGER when: the user wants fix code written (use platform-apex-generate) or new test classes authored (use platform-apex-test-generate)."
4
- metadata:
5
- version: "1.0"
6
- minApiVersion: "67.0"
7
- ---
8
-
9
- # analyzing-test-failures
10
-
11
- **Type:** Pure reasoning — no system calls, no code authoring.
12
-
13
- **What it does:** Parses a test failure or Code Analyzer violation payload and produces a plain-language explanation, then follows up with concrete, prioritized improvement suggestions per failed test — including whether each fix belongs in the test or in production code. Never exposes raw JSON, stack traces, or API error bodies to the user.
14
-
15
- ---
16
-
17
- ## Prerequisites
18
-
19
- If you need to fetch the failure payload yourself rather than receiving it, load `checking-devops-prerequisites` first, then use `polling-test-results` to obtain the execution result. If the payload is already in context, no prerequisites are needed — this is pure reasoning.
20
-
21
- ---
22
-
23
- ## Inputs
24
-
25
- - JSON failure payload provided by the `polling-test-results` skill, or pasted directly into context from a test run or Code Analyzer execution. Specifically required per failed test:
26
- - Test method name
27
- - Failure message (the assertion error or exception text)
28
- - Failure category (assertion failure, unhandled exception, timeout, compile error)
29
-
30
- ---
31
-
32
- ## Empty-org / no-data case
33
-
34
- If the payload contains no failures or violations, report that clearly (e.g. "No failures found in the provided execution results.") and stop. Do NOT fabricate failures, violations, or improvement suggestions when none are present.
35
-
36
- ---
37
-
38
- ## Reasoning steps
39
-
40
- 1. Determine the failure category:
41
-
42
- | Category | Description |
43
- |---|---|
44
- | **Assertion failure** | A test assertion failed (expected vs actual mismatch) |
45
- | **Exception** | An unhandled exception was thrown |
46
- | **Code Analyzer violation** | A static analysis rule was violated (e.g. `ApexCRUDViolation`, `ApexSharingViolations`) |
47
- | **Timeout** | Test exceeded execution time limit |
48
- | **Compile error** | Class failed to compile |
49
-
50
- 2. For each failure, extract and translate to plain language:
51
- - Offending file and class name
52
- - Method name
53
- - Line number
54
- - What rule or assertion was violated, in plain language
55
- - Suggested fix direction (without writing code)
56
-
57
- 3. Group failures by category if more than one.
58
-
59
- ---
60
-
61
- ## Output format
62
-
63
- ```text
64
- Test failure summary:
65
-
66
- <N> failure(s) found:
67
-
68
- 1. [<Category>] `<ClassName>.cls` — `<methodName>()` at line <N>
69
- What happened: <plain-language description>
70
- Rule violated: <ruleName or assertion description>
71
- Fix direction: <plain-language suggestion>
72
-
73
- 2. [<Category>] `<ClassName2>.cls` — `<methodName2>()` at line <N>
74
- ...
75
- ```
76
-
77
- ---
78
-
79
- ## Code Analyzer violations
80
-
81
- For violations, always include:
82
- - The rule name translated to plain English (e.g. "ApexCRUDViolation" → "A SOQL query was made without checking object-level permissions first")
83
- - The exact line number
84
- - The fix direction (e.g. "Add a `Schema.sObjectType.Account.isAccessible()` check before the query")
85
-
86
- ---
87
-
88
- ## Plain-language rule
89
-
90
- Never paste raw stack traces, JSON payloads, or internal Salesforce error codes into the output. Always translate to file name, method, line, and plain description.
91
-
92
- ---
93
-
94
- ## Suggesting improvements
95
-
96
- Invoke this section **after test execution completes with failures**, not on static source code. The failure message is the primary signal — it describes what the test expected vs. what actually happened, which directly informs what the test needs to handle better.
97
-
98
- ### 1 — Read each failure message
99
-
100
- For each failed test in the execution result, extract:
101
- - Test method name
102
- - Failure message (the assertion error or exception message)
103
- - Failure category (assertion failure, unhandled exception, timeout, compile error)
104
-
105
- ### 2 — Infer what the test is not handling
106
-
107
- Reason over the failure message to identify the root cause pattern:
108
-
109
- | Failure pattern | Improvement suggestion |
110
- |---|---|
111
- | `NullPointerException` | The test is not handling null input — add a null check or a test setup that ensures the data exists |
112
- | `Assertion failed: expected X but was Y` | The expected value in the assertion is wrong or the test data setup does not produce the right state |
113
- | `List has no rows for assignment` | The test is querying for data that doesn't exist — test setup is incomplete |
114
- | `System.LimitException: Too many SOQL queries` | The test is hitting governor limits — the code under test or test setup is making too many queries |
115
- | `Insufficient access rights on cross-reference id` | The test user lacks the required permissions — the test needs to run as a user with appropriate profile/permission set |
116
- | `DML currently not allowed` | The test is performing DML inside a method called from a context that doesn't allow it |
117
- | Code Analyzer violation message | The production code violates a specific rule — the test exposed it but the fix is in the production code, not the test |
118
-
119
- ### 3 — Produce actionable suggestions
120
-
121
- For each failure, describe in plain language:
122
- - What the failure reveals about what the test is not handling
123
- - What specifically should be added or changed to make the test robust
124
- - Whether the fix is in the **test** (assertion, setup, permissions) or in the **production code** (the test is correct but the code under test is broken)
125
-
126
- Do not rewrite the test. Only describe what needs to change and why.
127
-
128
- ### Output format for improvements
129
-
130
- ```text
131
- Test improvement suggestions based on execution results:
132
-
133
- `<testMethodName>()` — [Assertion Failure / Exception / etc.]
134
- Failure: "<failure message>"
135
- What this reveals: <plain-language explanation>
136
- Suggestion: <specific, actionable recommendation>
137
- Fix location: Test | Production code
138
-
139
- `<testMethodName2>()` — [NullPointerException]
140
- Failure: "Attempt to de-reference a null object"
141
- What this reveals: The test is calling the method without setting up the required input data
142
- Suggestion: Add test data setup for <object/field> before calling the method
143
- Fix location: Test
144
-
145
- Overall: <N> improvement(s) across <M> failed test(s).
146
- ```
147
-
148
- ### Test fix vs. production-code fix
149
-
150
- Suggestions flagged as **Fix location: Production code** indicate a code defect exposed by the test — the test logic itself is sound. These should not block suite promotion on the grounds of test quality; they should be tracked separately as production defects.
151
-
152
- Suggestions flagged as **Fix location: Test** indicate the test needs to be hardened — missing setup, wrong assertions, inadequate coverage of edge cases (null inputs, bulk record volumes, mixed permission contexts, governor-limit boundaries).
153
-
154
- ---
155
-
156
- ## Related skills
157
-
158
- - **`polling-test-results`** — obtains the failure payload that feeds into this skill.
159
- - **`creating-fix-work-item`** — use to create a tracked fix item from the analysis output or to track an approved improvement suggestion as a work item once the user decides to act on it.
@@ -1,120 +0,0 @@
1
- ---
2
- name: configuring-quality-gate
3
- description: "Creates a DevOps Center quality gate with associated rules (PASS_PERCENTAGE, SEVERITY, ESSENTIAL) and links it to a pipeline-stage suite assignment, after showing a mandatory impact preview and obtaining explicit confirmation. Use this skill when a user wants to set or configure a quality gate, change a coverage threshold, or establish testing benchmarks on a pipeline stage. TRIGGER when: the user wants to set/configure a quality gate, change a coverage threshold, or set testing benchmarks on a stage. DO NOT TRIGGER when: only re-running an existing gate (use running-devops-test-suite in retrigger mode)."
4
- metadata:
5
- version: "1.0"
6
- minApiVersion: "67.0"
7
- ---
8
-
9
- ## Prerequisites
10
-
11
- Load `checking-devops-prerequisites` first — Prerequisites 1–4 AND Prerequisite 5 (stage). You need `doce-org-alias`, `pipelineId`, `stageId`, and the target `DevopsTestSuiteStage` record Id.
12
-
13
- ## Inputs required
14
-
15
- | Input | Source |
16
- |---|---|
17
- | `name` | User-provided name for the quality gate |
18
- | `rules` | List of `{type, threshold?}` — see rule types below |
19
- | `doce-org-alias` | Established in Prereq 1 |
20
- | `testSuiteStageId` | Target `DevopsTestSuiteStage` record Id (Prereq 5) |
21
-
22
- ## Rule types
23
-
24
- | Type | Description | Threshold |
25
- |---|---|---|
26
- | `PASS_PERCENTAGE` | Minimum % of tests that must pass | Required (0–100) |
27
- | `SEVERITY` | Maximum allowed severity level of failures | Required (numeric, e.g. 1–5) |
28
- | `ESSENTIAL` | All essential tests must pass | Not required |
29
-
30
- ---
31
-
32
- ## MANDATORY IMPACT PREVIEW
33
-
34
- **Before executing any commands**, show the user this preview and wait for explicit confirmation:
35
-
36
- > "Here's what this quality gate will enforce on `<stageName>`:
37
- > - Rule: `<type>` — `<description>`
38
- > - Threshold: `<value>`
39
- > - Affected pipelines: `<list>`
40
- >
41
- > Confirm to apply?"
42
-
43
- **Never proceed past this point without showing the impact preview first and receiving explicit confirmation.**
44
-
45
- ---
46
-
47
- ## Confirmation gate
48
-
49
- Only proceed with the steps below after the user has explicitly confirmed (e.g., "yes", "confirm", "go ahead"). If the user declines or does not confirm, stop and do not execute any commands.
50
-
51
- ---
52
-
53
- ## Step 1 — Create the gate record
54
-
55
- ```bash
56
- sf api request rest \
57
- "/services/data/v67.0/connect/devopstesting/qualityGate" \
58
- --method POST \
59
- --body '{"name": "<gateName>"}' \
60
- --target-org <doce-org-alias>
61
- ```
62
-
63
- Extract `qualityGateId` from the response.
64
-
65
- ## Step 2 — Create each rule as a sObject record
66
-
67
- Rules are not accepted in the Connect API payload — create them as `DevopsQualityGateRule` records directly. Only create rules the user has requested. `ESSENTIAL` has no threshold.
68
-
69
- ```bash
70
- sf data create record \
71
- --sobject DevopsQualityGateRule \
72
- --values "DevopsQualityGateId='<qualityGateId>' Rule='PASS_PERCENTAGE' Threshold=<value>" \
73
- --target-org <doce-org-alias> --json
74
-
75
- sf data create record \
76
- --sobject DevopsQualityGateRule \
77
- --values "DevopsQualityGateId='<qualityGateId>' Rule='ESSENTIAL'" \
78
- --target-org <doce-org-alias> --json
79
-
80
- sf data create record \
81
- --sobject DevopsQualityGateRule \
82
- --values "DevopsQualityGateId='<qualityGateId>' Rule='SEVERITY' Threshold=<value>" \
83
- --target-org <doce-org-alias> --json
84
- ```
85
-
86
- ## Step 3 — Link the gate to the suite stage
87
-
88
- Update the `DevopsTestSuiteStage` record to link the new gate:
89
-
90
- ```bash
91
- sf data update record \
92
- --sobject DevopsTestSuiteStage \
93
- --record-id <testSuiteStageId> \
94
- --values "IsQualityGateEnabled=true DevopsQualityGateId='<qualityGateId>'" \
95
- --target-org <doce-org-alias> --json
96
- ```
97
-
98
- ---
99
-
100
- ## On success
101
-
102
- Confirm to the user:
103
- > "Quality gate `<gateName>` created with `<N>` rule(s) and assigned to `<suiteName>` on `<stageName>`."
104
-
105
- ## Error handling
106
-
107
- Never expose raw API errors. Use the following responses:
108
-
109
- | Status | Response |
110
- |---|---|
111
- | 400 | "The quality gate configuration is invalid. Check that all rule types and thresholds are correct." |
112
- | 403 | "You don't have permission to configure quality gates on this org." |
113
- | 500 | "A server error occurred. Try again in a few minutes." |
114
-
115
- ---
116
-
117
- ## Related skills
118
-
119
- - To re-run a gate after meeting threshold, use `running-devops-test-suite` (retrigger mode).
120
- - To assign or map suites to stages, use `managing-suite-assignments`.
@@ -1,113 +0,0 @@
1
- ---
2
- name: configuring-test-provider
3
- description: "Configures an available test provider (e.g. Apex Unit Tests, Code Analyzer, Flow Tests, Provar) on a DevOps Center pipeline via the Connect API, after explicit user confirmation, so the provider's test suites become available for assignment to pipeline stages. Takes a pipelineId and a testProviderId. Use this skill when a provider is available on the pipeline but not yet configured and the user wants to enable it. TRIGGER when: the user wants to configure, enable, set up, or add a test provider on a pipeline, or wants a not-yet-configured provider's suites to become available. DO NOT TRIGGER when: re-syncing an already-configured provider to pick up new suites (use syncing-test-providers), or assigning existing suites to a stage (use managing-suite-assignments)."
4
- metadata:
5
- version: "1.0"
6
- minApiVersion: "67.0"
7
- ---
8
-
9
- # Configuring a Test Provider
10
-
11
- Configures an available test provider on a DevOps Center pipeline, making its test suites available for assignment to pipeline stages.
12
-
13
- **Confirmation required:** Yes — explicit confirmation before the provider is configured.
14
-
15
- ## Prerequisites
16
-
17
- Load `checking-devops-prerequisites` first — Prerequisites 1–4 (org login, Agentforce DX plugin, DevOps Center org auth, pipeline identified). Prerequisite 5 (stage) is **not** required: providers are configured at the pipeline level, not the stage level.
18
-
19
- | Variable | Source |
20
- |---|---|
21
- | `doce-org-alias` | Established in Prerequisite 1 |
22
- | `pipelineId` | Identified in Prerequisite 4 (pipeline selection) |
23
- | `testProviderId` | Resolved by fetching the pipeline's test providers (below) |
24
-
25
- ---
26
-
27
- ## Step 1 — Fetch test providers to resolve the provider ID
28
-
29
- Get all test providers for the pipeline so you can resolve the `testProviderId` and confirm which providers are still available to configure:
30
-
31
- ```bash
32
- sf api request rest \
33
- "/services/data/v67.0/connect/devopstesting/pipeline/<pipelineId>/testProviders?status=all" \
34
- --target-org <doce-org-alias>
35
- ```
36
-
37
- Each provider entry includes `testProviderId`, `testProviderName`, and a status (Configured vs. Available). Present a short summary grouped by status:
38
-
39
- ```text
40
- Test providers for <pipelineName>:
41
-
42
- ✓ Configured:
43
- - Code Analyzer (63 suites)
44
- - Apex Unit Tests (5 suites)
45
-
46
- Available (not yet configured):
47
- - Flow Tests
48
- ```
49
-
50
- - **Only an Available provider can be configured.** If the pipeline has no available providers, report that and stop — do NOT fabricate a provider or ID.
51
-
52
- ### If the named provider is already Configured
53
-
54
- Do **not** present the confirmation gate and do **not** POST to the configure endpoint (Steps 2–3) — that would create a duplicate `DevopsPipelineTestProvider`. Instead:
55
-
56
- 1. State plainly that the provider is already configured, including its synced suite count and last-sync time if returned (e.g. *"Flow Tests is already configured on `<pipelineName>` with 3 suites synced (last sync 2026-06-23)."*).
57
- 2. Diagnose the user's actual goal and redirect **by name**:
58
- - If the user says the provider's **suites don't appear when assigning tests to a stage**, this is a **stage-assignment gap, not a provider-configuration gap** — the suites already exist at the pipeline level; they just need to be linked to the stage. Redirect to **`managing-suite-assignments`**.
59
- - If the user expects **newly created suites** that aren't yet synced, redirect to **`syncing-test-providers`** (re-sync via `POST /connect/devops/sync`) to pull them in.
60
- 3. Do not loop back to configuring — finish cleanly after the explanation and redirect.
61
-
62
- ## Step 2 — Confirmation gate
63
-
64
- **Required — do not call the API before the user confirms.**
65
-
66
- > "I'll configure `<testProviderName>` on the `<pipelineName>` pipeline. This will make its suites available for assignment to stages. Confirm?"
67
-
68
- Do not proceed until the user gives an affirmative response.
69
-
70
- ## Step 3 — Configure the provider
71
-
72
- On confirmation, call the configure endpoint with the provider ID:
73
-
74
- ```bash
75
- sf api request rest \
76
- "/services/data/v67.0/connect/devops/pipeline/<pipelineId>/testProvider" \
77
- --method POST \
78
- --body '{"testProviderId": "<testProviderId>"}' \
79
- --target-org <doce-org-alias>
80
- ```
81
-
82
- ## On success
83
-
84
- > "Provider `<testProviderName>` is now configured on the `<pipelineName>` pipeline. Its suites are available for assignment to stages."
85
-
86
- Newly configured suites can then be assigned to stages with `managing-suite-assignments`.
87
-
88
- ---
89
-
90
- ## Critical gotcha
91
-
92
- This `POST .../pipeline/<pipelineId>/testProvider` endpoint **creates a new provider configuration record** (`DevopsPipelineTestProvider`). Use it ONLY to configure a provider for the first time. To re-sync an already-configured provider for new suites, use `syncing-test-providers` (`POST /connect/devops/sync`) — calling this configure endpoint on an already-configured provider produces **duplicate** `DevopsPipelineTestProvider` records.
93
-
94
- ## Error Handling
95
-
96
- Never expose raw API error messages, stack traces, or JSON payloads to the user. Map response status codes to plain-language messages:
97
-
98
- | Status | User-facing message |
99
- |---|---|
100
- | 400 | "The request was invalid. Check that the provider ID and pipeline ID are correct." |
101
- | 403 | "You don't have permission to configure test providers on this pipeline." |
102
- | 404 | "The pipeline or test provider was not found." |
103
- | 409 | "That provider appears to already be configured on this pipeline. To pick up new suites, re-sync it instead." |
104
- | 500 | "A server error occurred. Try again in a few minutes." |
105
-
106
- ---
107
-
108
- ## Related skills
109
-
110
- - **`checking-devops-prerequisites`** — loaded first to establish org and pipeline context.
111
- - **`syncing-test-providers`** — once a provider is configured, use this to re-sync it later and pull in newly added suites.
112
- - **`managing-suite-assignments`** — after configuring a provider, use this to assign or map its suites to a pipeline stage.
113
- - **`recommending-devops-tests`** — to recommend which of the newly available suites to run.