Repository navigation
Conversation
Co-Authored-By: OpenAI <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
Name transfer, storage, capability, and result references as artifacts while retaining PDF-only validation and prompt semantics. Update the proposed ADR and acceptance contract for the stacked implementation. Co-Authored-By: OpenAI Codex <[email protected]> Signed-off-by: Samuele Verzi <[email protected]>
samuv
force-pushed
the
plan/sdk-pdf-artifacts
branch
from
September 25, 2026 15:44
497aa94 to
d2afe06
Compare
samuv
marked this pull request as draft
October 4, 2026 20:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stage
Plan / Interface, stacked below Implementation PR #1910.
Proposed contract
The SDK gains session-owned artifact upload and download APIs in both gRPC and HTTP. The first release accepts only
application/pdf: PDF prompt parts, model capability, validation, and native provider translation remain PDF-specific. PDFs returned as tool-result bytes become generic artifact reference blocks.The contract names
UploadArtifactandDownloadArtifactin gRPC,/artifactsin HTTP,Session.uploadArtifactandSession.downloadArtifactin TypeScript,ArtifactLifecyclein the server, andartifactsas the deployment capability. Upload returns boundedUploadedArtifactmetadata. Mecak8s keeps bytes in a private S3-compatible bucket, including MinIO, while Redis keeps references and cleanup state.The acceptance plan has 10 PDF acceptance criteria. Other MIME types remain for a later contract. The proposed artifact decision is ADR 0367; this rebase renumbered it because
mainnow uses ADR 0360 for root-session correlation. The decision and behavior are otherwise unchanged.Verification
CGO_ENABLED=0 task docspassed after the rebase, including strict link checks.git diff --checkpassed.This PR is for human contract review. A human alone merges it.