feat(foundry): validate generic file and artifact lifecycle parity

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
docker, python

Research direction

Start by reading the native Foundry responses/06-files sample and comparing its file-list/read behavior with AgentKit's generic remote MCP configuration and protocol adapter response extraction. Validate file input and generated-output retrieval for the standalone image and supported hosted /invocations or /responses paths. Done means documenting supported boundaries and demonstrating real file lifecycle behavior, not just code execution.

Written by the indexing model from the issue text.

Description

area/foundry enhancement needs design testing

This was generated by AI during triage.

Agent Brief

Category: enhancement
Summary: Prove full session file and artifact lifecycle parity for AgentKit-built images.

Current behavior:
AgentKit has validated Foundry Toolbox code execution through a remote MCP tool, but it has not proven the full file lifecycle expected by native Foundry hosted-agent samples. The current Foundry sample gallery includes responses/06-files, which combines local file-oriented tools with a Foundry Toolbox MCP endpoint. AgentKit currently models tools as MCP servers and does not have a generic session artifact/file ABI. The parity work only proved code-interpreter arithmetic, not upload/read/search/generated artifact lifecycle.

Desired behavior:
AgentKit should support or explicitly scope the file/artifact parity story generically. Prefer representing file and code services as remote MCP tools first. Only add a generic session artifact ABI if remote MCP cannot cover required scenarios.

The validation should prove parity across:

  • standalone AgentKit image
  • Foundry hosted /invocations, if applicable
  • Foundry hosted /responses

The test should exercise real file lifecycle behavior, not just code execution.

Key interfaces:

  • Generic remote MCP tool config: type: mcp, transport: streamable-http, urlEnv, auth, and non-secret headers.
  • Generic env declarations for file/tool endpoints and session paths.
  • Potential future generic session artifact shape, if MCP is insufficient.
  • Protocol adapter response extraction for generated artifacts/files, if artifacts are returned through protocol metadata rather than final text.

Investigation notes:

  • Code interpreter through Foundry Toolbox already passed standalone and hosted with CODE_SMOKE_OK and correct arithmetic.
  • Full file upload/read/search/artifact retrieval was not validated.
  • Native responses/06-files uses file-list/read behavior and a Toolbox MCP endpoint; this needs an AgentKit equivalent rather than a one-off native MAF sample run.
  • This should not be solved with foundry.files or Foundry-specific schema in AgentKit core.

Acceptance criteria:

  • Determine whether the native file sample requirements can be represented entirely as remote MCP tools.
  • If yes, add an AgentKit fixture using only generic remote MCP/env/auth config.
  • If no, propose and test the smallest provider-neutral session artifact/file ABI.
  • Standalone AgentKit image can read or use a runtime-supplied file.
  • Foundry hosted AgentKit image can use the equivalent file/artifact input through supported hosted-agent protocol/tooling.
  • Generated artifacts or file outputs are retrievable or verifiably surfaced in a provider-neutral way.
  • Validation distinguishes code-interpreter execution from file/artifact lifecycle behavior.
  • Documentation clearly states what file features are supported, remote-MCP-only, or intentionally unsupported.

Out of scope:

  • Unsafe local code execution by default.
  • Foundry-specific file schema in AgentKit core.
  • Revalidating generic remote MCP auth/header behavior already covered by existing tests except where needed for file tools.
Dominant language
Python
Stars
7
Forks
5
Avg merge
3h 39m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from orka-agents/agentkit

All issues in orka-agents/agentkit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.