Research Crew
A team of agents in which a coordinator hands each task to a specialist with a narrower token, and every result names the whole chain.
ApplicationPlanned
This example is planned. Not built yet. This page is the specification for the example.
Scenario
An analyst asks for a market report. A coordinator agent splits the work: one agent searches internal documents, one reads the data warehouse, one writes. The searcher can read documents and nothing else. The writer can read nothing. The document service sees, for each request, the analyst, the coordinator and the specialist.
People and agents
| Who | Role in the application | Identity in LumoAuth |
|---|---|---|
| Analyst | Asks for the report. | A user. |
| Coordinator | Splits and assigns the work. | An agent that acts for the analyst. |
| Searcher, reader, writer | Do one job each. | Three agents, each with one or two capabilities and its own budget. |
| Document service | Returns documents. | A resource that reads the actor chain. |
Flows
| Flow | What happens | What LumoAuth does |
|---|---|---|
| Hand over | The analyst allows the coordinator to act. | A delegated token. |
| Narrow | The coordinator hands the search to the searcher. | A token exchange with fewer scopes. The chain grows by one actor. |
| Read | The searcher asks for a document. | The service checks that the analyst may read it and that the searcher holds the capability. |
| Inside the service | The request crosses three internal services. | A transaction token that lives for seconds carries the identity. |
| Trace | The crew runs under one trace. | Each audit row stores the trace ID. |
| Cards | Each agent publishes a card. | The coordinator verifies a card before it hands work over. |
Parts
| Part | Built with | Job |
|---|---|---|
| Crew | CrewAI, the Python SDK | Four agents and the handover between them. |
| Document service | Go, the Go SDK | Verifies tokens and prints the chain. |
| Chain view | React | Draws the chain of each request. |
What the seed script creates
- Four agents with their capabilities and budgets.
- The document service as a resource.
- Transaction tokens turned on.
Walkthrough
- Ask for the report.
- Read the chain of the first document request.
- Ask the writer to read a document, and read the refusal.
- Open the trace in the tracing tool.
Before you run it
- Check that your plan includes acting for users and tracing in the plans matrix.