Skip to content

Commit 01a22fc

Browse files
Merge pull request #323 from bg-playground/copilot/remove-sha-256-deduplication-content
Spec cleanup: remove unimplemented artifact dedup semantics from External Results v1
2 parents e2c0385 + e337c5a commit 01a22fc

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

docs/specs/external_results_v1.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,7 @@ When a runner POSTs a case result with an `external_id` that already exists for
426426

427427
Inserting a `(test_case_id, requirement_id)` link that already exists is a **no-op**. No error is raised.
428428

429-
### Artifacts — deduplication by SHA-256
430-
431-
If the body of a new artifact upload has the same SHA-256 as an artifact already attached to the same `case_result_id`, BGSTM returns the **existing artifact row** (`200 OK`) rather than creating a second copy. The `409` code in the error table above is the response shape, but the HTTP status is `200` (not an error condition — the caller's intent is fulfilled).
429+
Artifact uploads are not deduplicated; reporters that retry an upload (for example on transient network errors) may create duplicate artifact rows, and this is acceptable for v0.1.
432430

433431
---
434432

@@ -493,7 +491,6 @@ All error responses share a single envelope:
493491
| `artifact.not_found` | Artifact UUID does not exist. |
494492
| `artifact.too_large` | Artifact body exceeds size limit. |
495493
| `artifact.unsupported_type` | `content_type` is not in the allowed list. |
496-
| `artifact.duplicate` | Identical artifact already exists (see §d). |
497494
| `validation_error` | Request body failed Pydantic schema validation. |
498495
| `internal_error` | Unhandled server-side error. |
499496

0 commit comments

Comments
 (0)