Skip to content

a2a-server persistence should be A2A compliant #8118

@sammccauley117

Description

@sammccauley117

What would you like to be added?

a2a-server persistence should be updated to be A2A compliant and enable associating multiple tasks with individual context IDs.

Why is this needed?

A2A states that "a contextId is a crucial identifier that logically groups multiple Task objects". However, the current implementation of task v. context is convoluted. The current persistence model has tasks being stored as a directory in tasks/{taskId}/ and the metadata which contains the context ID is stored within that directory. This makes it infeasible to group multiple tasks.

Additional context

Currently, the file structure is like so:

tasks/
├── task-01/
│   ├── metadata.tar.gz
│   └── workspace.tar.gz
├── task-02/
│   ├── metadata.tar.gz
│   └── workspace.tar.gz
└── task-03/
    ├── metadata.tar.gz
    └── workspace.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions