Add Foundry and custom durable history samples - #99
Draft
Tamir Dresher (tamirdresher) wants to merge 2 commits into
Draft
Conversation
Tamir Dresher (tamirdresher)
added this pull request to stack #96
September 11, 2026 22:03
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Validate marker text against a conservative 1 KiB UTF-8 limit before durable session creation, with deterministic boundary coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Tamir Dresher (tamirdresher)
force-pushed
the
tamirdresher-microsoft-stack-5-history-samples
branch
from
September 12, 2026 17:13
92fcae7 to
d3c09e9
Compare
Copilot started reviewing on behalf of
Tamir Dresher (tamirdresher)
September 12, 2026 17:13
View session
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds the experimental durable history Samples 08 and 09. This is stack position 5 of 6, based on
tamirdresher-microsoft-stack-4-retention-metrics; Sample 10 is intentionally excluded.These are draft/experimental samples only. They do not expose a public
EnableMailboxWritesAPI or activate production schema2 behavior. Samples and tests use an internal, default-disabled activation path. Mixed-runtime production use remains blocked until Python, dashboard, and poller compatibility reaches the rollout floor.08_FoundryManagedAgentuses a stable logical service key withKeepAll. It exercises an actual versioned Microsoft Foundry durable proxy and cold restart, preserves mailbox and completion state without mirroring the service transcript into entityconversationHistory, restores the service binding and opaque continuation/reference, verifies continued callability, and cleans up the exact agent version created by the sample.09_CustomHistoryProvideruses a stable external provider key withKeepAll. It verifies proxy start and cold-restart reference continuity/callability with a compatible provider, rejects a changed provider key, preserves mailbox and completion state without transcript mirrors, projects bounded input into model context, and cleans up its local history. Marker input is explicitly limited to 1 KiB of UTF-8 before durable activity starts. Its cumulative history test exceeds 1 MiB through moderate records and does not claim to solve a single oversized payload.Configuration
The samples use:
FOUNDRY_PROJECT_ENDPOINTFOUNDRY_MODELDURABLE_TASK_SCHEDULER_CONNECTION_STRINGAuthentication uses
DefaultAzureCredential; no credentials or connection secrets are included.Validation
gpt-5.6-solreview: ACCEPT for exact headd3c09e9ad91602a596993950a8b893a8756d26a8.Known limitations
Change summary
1479c5322f61544fd13be65805e6bf0b96d668b3d3c09e9ad91602a596993950a8b893a8756d26a8origin/main(62afdbac03f0a81b0917abe6328203b706a2f294): 130 files changed, 27,074 insertions, 395 deletionsIncremental commits
04380e51e964a8330304e0645a3b8d2cfe1c881cAdd gated durable history samplesd3c09e9ad91602a596993950a8b893a8756d26a8Bound custom history sample marker input