Log inBook a Demo
BuildSeniorFull-stackAuto-graded

Full-Stack Engineer: Build a live drone fleet map with expiring commands and replay

A hands-on test of building a real-time app with an AI agent: turn a live stream into state, keep commands safe when a drone drops out, and replay the past.Operators need one screen for a simulated fleet of about 100 drones that report their position 5 times a second through a vendor gateway you can't change. Build it with your coding agent: a live map, commands that wait for a drone that has lost its link and expire when their TTL runs out, and a replay of any moment of the mission. Your backend's API is checked with scripted fleet scenarios.
110 min
react, vite, typescript, fastapi, python, postgresql, websockets

Goals

  • GET /api/drones lists every drone the gateway has reported, each with its id, its connectivity (offline while its link is down) and its latest position with a timestamp, read from the telemetry stream and never from the gateway's /admin hooks.
  • WS /api/stream keeps pushing drone positions, so the map moves without a reload.
  • POST /api/drones/{id}/commands returns {command_id, status}, and GET /api/drones/{id}/commands lists each command sent with its status.
  • A command for an offline drone waits for it: delivered within 5 seconds of the drone reconnecting while still valid, never once its TTL has run out.
  • GET /api/history?at= returns the fleet as it was at that instant, in the same shape as GET /api/drones.

What it measures

Live state from a streamTurning about 500 messages a second into each drone's current state, including backlogs that arrive late with their original timestamps.
Replay of the pastStoring telemetry so the fleet can be shown as it was at any earlier moment.
Commands to offline dronesHolding commands for drones that are offline and expiring them on time, with a gateway that rejects what it can't deliver.
Working with the agentHow you brief the agent on a fixed API and check its work where a first pass usually breaks: expiry, reconnection, replay.

Your environment

Terminal + editorA full shell in the browser
Coding agentAlready signed in, no API key to set up
Isolated workspaceOnly yours, wiped when you finish

Start this lab

110 min
Start labYou'll need to sign in to Anthropos first. The lab opens in a private cloud workspace with your coding agent ready to use.
AI Labs is part of Anthropos Workforce. Not on your plan yet? Book a demo