Skip to content

docs(cache): define prompt cache ownership and lifecycle contract - #249

Closed
627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-191-cache-contract
Closed

docs(cache): define prompt cache ownership and lifecycle contract#249
627150795 wants to merge 1 commit into
openpi-dev:mainfrom
627150795:docs/issue-191-cache-contract

Conversation

@627150795

Copy link
Copy Markdown
Contributor

Problem

Prompt-cache ownership, identity, accounting, and lifecycle boundaries are easy to conflate with Session context, memory, compaction, pruning, summarization, or replay.

Value

This gives contributors and maintainers one explicit contract for what OpenPI, Pi, providers, and operators can claim, including cache evidence and invalidation limits.

Approach

Added a focused design document and linked it from the design index. The contract keeps provider cache state in the provider/client layer and does not introduce a cache registry or runtime behavior.

Validation

  • git diff --cached --check
  • bun run lint
  • bun run typecheck

Impact

Documentation-only; no runtime, API, or persisted-data behavior changes.

Fixes #191

@tt-a1i

tt-a1i commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Thank you for preserving this research. We are closing this PR as a source record for the Context and model invocation consolidation tracked in #277. This is not a finding that the content is wrong. The current queue contains overlapping contracts from one stale base, so we will extract only settled facts, recommendations, and unknowns into at most one successor record, citing this PR explicitly. Please do not spend time rebasing this branch.

@tt-a1i tt-a1i closed this Aug 29, 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.

docs(cache): clarify prompt-cache ownership, identity, accounting, and lifecycle boundaries

2 participants