Document HTTP maintenance scope and remediation

This commit is contained in:
2026-11-25 17:37:57 +00:00
parent aaa436d0f7
commit 9867d6eb12
8 changed files with 47 additions and 11 deletions

View File

@@ -71,6 +71,13 @@ func TestHandlerCancellationDuringRestrictedArtifactAcquisition(t *testing.T) {
}
}
func TestHandlerRejectsDirectoryArtifact(t *testing.T) {
h := newArtifactRootHandler(t, t.TempDir())
w := httptest.NewRecorder()
h.ServeHTTP(w, httptest.NewRequest(http.MethodPost, "/v1/runs", strings.NewReader(`{"prompt_id":"p","inputs":{"input":{"type":"file","uri":"."}}}`)))
assertHTTPErrorCode(t, w, http.StatusBadRequest, "artifact_read_failed")
}
func (run runnerFunc) Run(ctx context.Context, req promptkit.RunRequest) (*promptkit.RunResult, error) {
return run(ctx, req)
}