-
Notifications
You must be signed in to change notification settings - Fork 0
feat(agent): define the provider replay checkpoint contract (stage 1 of 4, emission disabled) #4301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
cac705d
feat(agent): define the provider replay checkpoint contract (stage 1)
kojiwakayama b94dd10
fix(agent): type the replay checkpoint fixture and publish its error …
kojiwakayama 2eddfb1
fix(agent): harden the replay contract per review findings
kojiwakayama 0a8dcc7
Guard provider replay delivery scope
kwakayama 7a5086b
fix(agent): reject provider replay checkpoints anchored to segmented …
kwakayama 371ac15
docs(changelog): drop provider replay checkpoint entry with no behavi…
kwakayama 66ccbac
refactor(runtime): drop redundant provider replay checkpoint re-parse
kwakayama 05cd09e
Honor internal runtime import boundaries
kojiwakayama e0c4d45
Anchor provider replay only by exact message id
kojiwakayama 4e0c853
Clarify split provider metadata failures
kojiwakayama 5e21bde
Validate replay checkpoints before reuse
kojiwakayama 4a64ac4
Stabilize remote project path expectations
kojiwakayama 1e3442e
Keep replay preservation out of the chat monolith
kojiwakayama c194223
Keep opaque replay validation on the public transcript boundary
kojiwakayama 1956a0c
Keep provider replay anchors intact through preparation
kojiwakayama d86cf1c
Keep replay preservation within the chat size budget
kojiwakayama 62529ae
Prevent late workflow reads from escaping teardown
kojiwakayama 0cbbd7a
Keep message preparation under the chat ratchet
kojiwakayama fe7c870
fix(agent): forward replay checkpoint ids through hosted preparation
kwakayama 32642a3
Keep replay checkpoints inside typed contracts
kojiwakayama 0d5aae3
fix(chat): carry providerExecuted through provider message conversion
kwakayama b981fc5
docs(api-reference): regenerate agent reference
kwakayama 9231c65
fix(agent): normalize transcript text when validating replay checkpoints
kwakayama a35bd2c
revert(chat): stop carrying providerExecuted through message preparation
kwakayama 3307af2
fix(typecheck): use the augmented field's value in the consumer fixture
kwakayama 66c97aa
Keep replay checkpoints authoritative through preparation
kojiwakayama 39b70ca
Separate split provider metadata from replay checkpoints
kojiwakayama f6c9a97
docs(api-reference): regenerate for the replay checkpoint contract co…
kwakayama 1e974a9
fix(agent): accept every supported provider-result content shape
kwakayama 83474bb
test(errors): record the provider-metadata-split-unsupported slug
kwakayama 78213bd
Publish the split provider metadata error contract
kojiwakayama fe150c8
Fail closed on invalid replay result state
kojiwakayama 835a216
Keep replay API reference current
kojiwakayama e2d8fda
Remove duplicate generated error entry
kojiwakayama 8a6c961
Preserve checkpoint history through direct message prep
kojiwakayama 73def1a
Preserve provider replay across durable resume boundaries
kojiwakayama a8185f7
fix(agent): validate provider result caller and raw message group count
kwakayama c1ef871
Preserve provider replay across durable resume boundaries
kojiwakayama 7cf18a9
fix(agent): reject outer provider tool-result error block types
kwakayama a5d851d
test(chat): cover tool-pair repair and split replay metadata branches
kwakayama 988879c
chore(docs): regenerate api reference source line anchors
kwakayama f09f2a5
fix(agent): close replay validation gaps
kojiwakayama 4e1723f
docs(agent): refresh replay source anchors
kojiwakayama e4996dd
fix(agent): validate replay before transcript matching
kojiwakayama 16a2aa9
Merge remote-tracking branch 'origin/main' into HEAD
kojiwakayama 9dfa6d2
fix(agent): close replay fail-open paths
kojiwakayama 5e6cd1e
fix(agent): keep replay stage 1 off the always-on message path
36f17e6
fix(agent): dedupe shared-id anchor groups and classify hosted runtim…
72744a7
test(agent): pin persisted provider-executed turns at the prompt boun…
3edc793
fix(agent): preserve replay across hosted preparation
kojiwakayama bbc4a5e
Merge remote-tracking branch 'origin/feat/522-provider-replay-stage1'…
kojiwakayama 1ae3786
fix(lint): re-pin message-prep size ceiling after gated repair call site
02aac17
fix(agent): retain trailing replay anchors
kojiwakayama 2637f89
Merge remote-tracking branch 'origin/feat/522-provider-replay-stage1'…
kojiwakayama b3cdb37
fix(chat): scope tool deduplication by turn
kojiwakayama 9711d56
Merge origin/main into feat/522-provider-replay-stage1
fae901a
fix(agent): keep trailing replay anchors only for delivered checkpoints
fea6b72
Merge remote-tracking branch 'origin/feat/522-provider-replay-stage1'…
a480d0e
fix(lint): re-pin message-prep size ceiling after turn-scoped dedupe
1b59b59
fix(agent): distribute split replay metadata
kojiwakayama 71bf634
Merge remote-tracking branch 'origin/feat/522-provider-replay-stage1'…
kojiwakayama 1eaddaf
fix(agent): reject duplicate replay tool ids
kojiwakayama File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
19 changes: 19 additions & 0 deletions
19
scripts/typecheck/fixtures/chat-message-prep-augmentation.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| // Consumer fixture — documented `veryfront/chat/message-prep` declaration merging. | ||
| // | ||
| // Never executed. It exists so the consumer `tsc --noEmit` gate proves the | ||
| // published options contract remains an augmentable interface for downstream | ||
| // TypeScript consumers. | ||
| import type { PrepareProviderModelMessagesFromUiMessagesOptions } from "veryfront/chat/message-prep"; | ||
|
|
||
| declare module "veryfront/chat/message-prep" { | ||
| interface PrepareProviderModelMessagesFromUiMessagesOptions { | ||
| downstreamTraceId?: string; | ||
| } | ||
| } | ||
|
|
||
| const options: PrepareProviderModelMessagesFromUiMessagesOptions = { | ||
| downstreamTraceId: "consumer-owned-field", | ||
| }; | ||
|
|
||
| // The annotation is the proof: augmentation must widen the interface with a string. | ||
| export const upperTraceId: string | undefined = options.downstreamTraceId?.toUpperCase(); |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.