Skip to content

Define the shared inference and session contracts #360

Open

Description

@franciscojavierarceo

Parent RFC: #359

Summary

Define the supported inference boundary jointly with vLLM and llm-d before implementing native and distributed adapters. Ground the contract in the session-centric KV work and preserve the distinction between logical session policy and exact cache locality.

Acceptance criteria

  • Document typed inference requests, generated events, terminal outcomes, usage, capability reporting, cancellation, deadlines, bounded streaming, and retry behavior after output begins.
  • Agree on placement and reuse of rendering, tokenization, multimodal preparation, and output parsing for native and distributed deployments.
  • Define how resolved Responses history and lineage map to tenant-scoped session/continuation coordinates. Keep public response identifiers distinct from stable session identity and exact KV identity.
  • Specify the exact-input and execution metadata needed by llm-d to compute canonical keys and interpret engine-confirmed residency; include model/tokenizer/template/parser, cache-salt, LoRA, multimodal, and relevant execution compatibility.
  • Define residency/eviction visibility and engine instance or epoch semantics, plus capability-gated lifecycle signals and supported directives. Distinguish soft affinity/retention from backend-specific worker-pinned sessions.
  • Resolve the existing Rust frontend and llm-d gRPC schema differences through an agreed supported contract or explicit adapter, with versioning and cross-project ownership recorded.
  • Document representative sequences for tool pauses, continuation, forks, compaction, eviction, and worker restart, and obtain review from the participating projects.

Dependencies

No implementation prerequisite.

Related work and scope

Build on #69, #73, #159, #314, and #330. Reconcile the proposed llm-d-policy/Agentic-API-lifecycle boundary with the earlier cache-management discussion in #18. Upstream context: vLLM session-centric KV RFC, llm-d session lifecycle RFC, and Session Control experiment. These proposals are inputs to the agreement, not assumptions that every capability has shipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions