Repository navigation
Supported way to forward caller-owned Bedrock reasoning without assigning provider-origin provenance? #3430
Unanswered
jeffbaylun
asked this question in
Q&A
Replies: 2 comments 1 reply
|
I’d put the opt-in before history adaptation, since the encoder cannot detect native blocks that were already dropped. Keep “caller supplied” separate from replay eligibility, and let the current request’s authorization select an explicit Bedrock destination. For a conformance fixture, compare the full encoded Drafted with Codex. |
0 replies
|
I'll look into this when I get some freetime, thx |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We maintain a stateless model gateway using Rig 0.45.0 and Bedrock Converse. Callers own conversation history and resend it on subsequent requests. We would appreciate guidance on the supported Rig boundary for preserving native reasoning material in this setting.
Desired behavior
The gateway faithfully forwards the submitted replay material and its required sequence, enforces current authorization and destination eligibility, and rejects unsupported transformations. It does not attest who originally produced the history or that the caller supplied the original system/tool context.
For Bedrock we want to preserve signed reasoning, signature-only material and redacted bytes, interleaved with text and tool calls/results. Display summaries cannot reconstruct those native blocks. Current system/tool context remains governed by the application's normal ownership and authorization rules; this forwarding path does not attest that it matches the context under which the historical material was produced.
We do not want to assign a matching
Originsolely to keep caller-supplied native data eligible for replay. We understandOriginis not cryptographic authentication; our concern is preserving the explicit distinction between claimed caller history and provider-origin history.What we inspected
In a bounded source inspection of published 0.46.0:
Model::openinvokesOperation::preparebeforewire.encode.Completion::prepareinvokes history adaptation before encoding.history::Same::isand assistant adaptation use origin/target and applicable context to determine native replay eligibility. Nonmatching redacted/empty reasoning can be dropped and other reasoning canonicalized.Conversestill uses the standard Completion operation, and its request encoder runs after preparation.This suggests an encoder-only addition would be too late for material removed by adaptation. We have not exhaustively investigated every extension point and are not claiming a core change is necessary. Our current integration includes a locally patched copy of
rig-bedrock; the observations above refer to the linked published sources, not claims that our vendor is upstream-equivalent. We have not upgraded to 0.46 or established a migration benefit.Invariants we need
Related work checked
I found #1674 (empty-text reasoning with signatures), #1684 (streaming signature preservation), and #3056 (mixed-origin normalization). These appear related, but address reasoning preservation or origin handling rather than an explicit path for unverified caller-carried native history. Please point me to an existing answer if this is already covered.
Question
Is there an existing supported mechanism that meets these invariants on 0.45 or 0.46?
We noticed the public
Wire/ associatedOperationcustomization APIs, includingOperation::prepare. Is there a recommended composition that retains the standard completion machinery while treating caller-carried native history distinctly? If not, would a narrow extension be appropriate, and at which boundary?We are looking for guidance on the supported approach before proposing Rust types or a PR. We are not asking Rig to authenticate history or assuming Bedrock validates every aspect of historical system/tool context. Provider-specific submission policy and preservation scope still need qualification; this question concerns how to express the distinction without losing data during preparation.
A minimal pointer or example would help us determine whether to use existing APIs, propose a narrowly scoped change, or defer the feature.
All reactions