Checkpoint, resume and file conflicts in a multi-agent code generator

HardSystem design35 minSWEMLEPro outline

The question

Design a code generation pipeline where several agents work on one repository. The service may restart mid-task. How do you save and restore state, and how do you stop two agents from clobbering the same file?

What the interviewer is looking for

  • Defines each pipeline step with inputs, outputs and a failure signal
  • Checkpoints task graph, completed steps and artifact versions
  • Verifies workspace state against the checkpoint before resuming
  • Prefers partitioning write sets and optimistic versioning over global locks
  • Uses lease locks with TTL and owner checks if locks are needed

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Moonshot AI (Kimi) question type: checkpoint and resume for a long code generation pipeline; agents editing the same file; codebase memory upkeep; idempotency keys.

Reported in: mj.mianlingai.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Moonshot AI (Kimi) question.