fix(foundry): prove durable memory provider parity
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- azure, docker, python
- Domain
- ai-infra-agents, cloud, testing
Research direction
Start by reading the existing deployment and test tooling under deploy/foundry and test/foundry-hosted-agent, then check how memory-provider scope and session IDs are configured. Build on that tooling to seed and verify a unique canary through the Memory Store API, then test fresh-session recall through standalone, hosted /invocations, and hosted /responses. Done means all three return the seeded canary without embedding-auth errors.
Written by the indexing model from the issue text.
Description
This was generated by AI during triage.
Summary
Follow up on AgentKit ↔ Microsoft Agent Framework / Foundry hosted-agent parity for durable external memory.
The generic AgentKit memory wiring has been added behind provider-neutral config:
context:
providers:
- name: validation-memory
type: memory
endpointEnv: MEMORY_ENDPOINT
storeNameEnv: MEMORY_STORE_NAME
auth:
type: workload-identity-token
audience: https://ai.azure.com/.default
However, live validation did not prove true durable Memory Store parity. Some same-session recall worked, but that can come from conversation/session history rather than the external Memory Store.
Current evidence
What works
- AgentKit MAF image builds with generic
context.providers[].type: memory. - Standalone and Foundry hosted memory agents start successfully.
- Hosted
/invocationsand/responsesreturn HTTP 200. - Session propagation now works generically:
- standalone:
X-AgentKit-Session-Id - Foundry hosted: Foundry session query/header forwarded to runtime
- standalone:
- Same-session hosted recall can return a remembered value.
What did not pass
A true durable-memory test was not proven.
Observed failures/suspicious behavior:
-
Standalone second-turn recall failed in one run:
You have not asked me to remember any validation codename yet. -
Hosted
/responsesrecalled a stale/wrong value in one run:MEMORY_OK_2291instead of the new value requested for that session:
MEMORY_RESP_OK_2291 -
Earlier hosted logs showed Foundry Memory Store search failing internally against the embedding deployment:
Memory search failed ... Authentication to the Azure OpenAI resource failed. deployment: text-embedding-3-small
After additional RBAC changes, that specific log did not appear in the latest run, but durable memory recall was still not clearly proven.
Likely causes to investigate
-
Memory Store backing auth/RBAC
- Ensure the Foundry project identity and hosted-agent identity can call the AI account and embedding deployment used by the Memory Store.
- If RBAC was granted after Memory Store creation, the Memory Store may need to be recreated or refreshed.
-
Scope/session mismatch
- Validate how
scopemaps to the MAFFoundryMemoryProviderand hosted sessions. - Use unique memory scopes per test run to avoid stale cross-test recall.
- Validate how
-
False positives from session history
- Same-session recall is not enough to prove external memory.
- Need a fresh-session/fresh-container test where only the Memory Store can provide the answer.
-
Memory extraction/commit semantics
- Asking the model to “remember this” may not synchronously create a durable memory item.
- Use the Memory Store API directly to seed/list/search memory before invoking the AgentKit image.
Proposed validation flow
Create a deterministic durable-memory validation script under deploy/foundry or test/foundry-hosted-agent:
-
Generate a unique scope, e.g.
agentkit-memory-test-<timestamp>. -
Seed memory directly through the Memory Store API with a canary value, e.g.
MEMORY_DURABLE_OK_<nonce>. -
Verify the seeded memory can be listed/searched through the Memory Store API.
-
Start a fresh standalone AgentKit container with:
MEMORY_ENDPOINT=... MEMORY_STORE_NAME=... AGENTKIT_MEMORY_SCOPE=<unique-scope> -
Ask for the canary in a fresh AgentKit session and assert the response contains it.
-
Deploy the same AgentKit-built image as a Foundry hosted agent.
-
Ask for the same canary through both:
/invocations/responses
-
Assert all three paths retrieve the same durable memory canary:
- standalone
/v1/chat/completions - hosted
/invocations - hosted
/responses
- standalone
Acceptance criteria
- No Foundry-specific keys are added to AgentKit core schema.
- Durable memory uses only generic AgentKit config:
context.providers[].type: memoryplus env declarations. - Foundry-specific provisioning/seeding lives in deployment/test tooling.
- Memory validation seeds memory through the Memory Store API, not only through model conversation.
- Validation uses a unique scope per run.
- Validation starts a fresh session/container before recall so chat history cannot satisfy the assertion.
- Standalone AgentKit image recalls the seeded memory canary.
- Foundry hosted AgentKit image recalls the seeded memory canary through
/invocations. - Foundry hosted AgentKit image recalls the seeded memory canary through
/responses. - Logs show no Memory Store embedding auth errors during validation.
Non-goals
- Do not add core schema such as
foundry.memoryStore. - Do not depend on session-history recall as proof of Memory Store parity.
- Do not delete shared validation resources as part of the fix unless explicitly approved.
- Dominant language
- Python
- Stars
- 7
- Forks
- 5
- Avg merge
- 3h 39m
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from orka-agents/agentkit
-
fix(pydantic-ai): CI fails with newest pydantic-ai (unexpected 'history' argument)Possibly taken @gambtho claimed this 30 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
orka-agents/agentkit#77 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
orka-agents/agentkit#76 · 3 comments ·
-
area/build area/orka area/runtime blocked enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
orka-agents/agentkit#69 ·
-
area/build area/orka area/runtime enhancement
Difficulty 4/5 3-5 days Newbie friendliness 68/100
orka-agents/agentkit#68 ·
-
area/build enhancement testing
Difficulty 5/5 Over a week Newbie friendliness 42/100
orka-agents/agentkit#65 ·
All issues in orka-agents/agentkit
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 62/100
DaoCloud/DaoCloud-docs#7839 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
sav-oss-org/ptusa_main#1610 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug status/accepted type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
microsoft/apm#4925 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
sagemathinc/sagebrush#1701 ·
Maintainers usually reply within 1 day