Skip to content

docs(plan): define session artifact contract - #1881

Closed
samuv wants to merge 2 commits into
mainfrom
plan/sdk-pdf-artifacts
Closed

samuv wants to merge 2 commits into
mainfrom
plan/sdk-pdf-artifacts

Conversation

@samuv

@samuv samuv commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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 UploadArtifact and DownloadArtifact in gRPC, /artifacts in HTTP, Session.uploadArtifact and Session.downloadArtifact in TypeScript, ArtifactLifecycle in the server, and artifacts as the deployment capability. Upload returns bounded UploadedArtifact metadata. 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 main now uses ADR 0360 for root-session correlation. The decision and behavior are otherwise unchanged.

Verification

  • Acceptance-plan checker passed: 10 criteria with verification lines.
  • CGO_ENABLED=0 task docs passed after the rebase, including strict link checks.
  • git diff --check passed.

This PR is for human contract review. A human alone merges it.

@samuv samuv self-assigned this Sep 24, 2026
@samuv samuv changed the title Plan / Interface: SDK PDF artifacts docs(plan): define SDK PDF artifacts contract Sep 24, 2026
@samuv
samuv added this pull request to stack #1911 September 24, 2026 23:57
@samuv samuv changed the title docs(plan): define SDK PDF artifacts contract docs(plan): define session artifact contract Sep 25, 2026
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
samuv force-pushed the plan/sdk-pdf-artifacts branch from 497aa94 to d2afe06 Compare September 25, 2026 15:44
@samuv
samuv marked this pull request as draft October 4, 2026 20:48
@samuv samuv closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant