Skip to content

docs(rfd): Add RFD D34 for patch-based resource delivery#830

Open
rxgrant wants to merge 2 commits into
mainfrom
rgrant-dev-changed-resource-patches
Open

docs(rfd): Add RFD D34 for patch-based resource delivery#830
rxgrant wants to merge 2 commits into
mainfrom
rgrant-dev-changed-resource-patches

Conversation

@rxgrant

@rxgrant rxgrant commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Proposes a third delivery outcome on top of RFD 067's deduplication decision point: when a previously delivered resource's content has changed but the prior full delivery is still within the LLM's effective context, JP sends a unified diff instead of resending the full content. This targets the edit-then-verify loop and frequently-refreshed listings, the two highest-volume sources of redundant tokens that plain reference-based deduplication cannot help with, since a changed checksum never matches.

Patches are always computed against the most recent full delivery (never against another patch), fall back to full content whenever any of five safety conditions fail, and ship disabled by default pending a validation phase that measures reconstruction reliability, token savings, and re-read thrashing across providers.

@rxgrant rxgrant force-pushed the rgrant-dev-changed-resource-patches branch from 9ae035e to d16ceb0 Compare July 2, 2026 02:58
rxgrant added 2 commits July 2, 2026 23:31
Proposes a third delivery outcome on top of RFD 067's deduplication
decision point: when a previously delivered resource's content has
changed but the prior full delivery is still within the LLM's
effective context, JP sends a unified diff instead of resending the
full content. This targets the edit-then-verify loop and
frequently-refreshed listings, the two highest-volume sources of
redundant tokens that plain reference-based deduplication cannot
help with, since a changed checksum never matches.

Patches are always computed against the most recent full delivery
(never against another patch), fall back to full content whenever
any of five safety conditions fail, and ship disabled by default
pending a validation phase that measures reconstruction reliability,
token savings, and re-read thrashing across providers.

Signed-off-by: rgrant <rgrant@contract.design>
Fill gaps found reviewing D34 against RFD 067's delivery model: the
patch conditions collapse the "prior delivery exists" and "was a full
delivery" checks into one, add a blob-retrieval-failure check, and
define what counts as text content. A new Delivery records subsection
states that a delivery record must carry its form (full, reference,
patch) and, for patch deliveries, the assembled content's checksum —
both required by the re-read rule but previously left implicit. Phase
1 of the implementation plan now names this record extension as part
of its scope.

Terminal rendering of a patch delivery is deferred to the existing
`style.tool_call` configuration rather than specified by this RFD.

Trims redundant passages (Terminology, Motivation's closing paragraph,
the base-invariant walkthrough, and the re-read rule) to bring the
draft closer to RFD 001's length guideline, and normalizes references
to RFD 067 in prose to the linked `[RFD 067]` form used across other
published RFDs.

Signed-off-by: rgrant <rgrant@contract.design>
@rxgrant rxgrant force-pushed the rgrant-dev-changed-resource-patches branch from d16ceb0 to daea8fc Compare July 2, 2026 23:32
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