Maintain a codebase Exercise 9 of 9
Bootstrap codebase docs
Use the maintenance copy to practice giving an Elephant navigable project context for future work. Scope the job to the source tree.
- Select
egm-bootstrapand pass the absolute path to the maintenance lab'ssrc/directory. Ask for the defaultREADME.mdcontracts and authorize subagent workers if the skill uses them. - Inspect the generated README in
src/and the one insrc/delivery/. Follow the source links from both files. Locate the description of the exported batch sender and check it against the code. - From the lab root, run
git status --short -- src,git diff HEAD -- src/delivery/deliver-batch.mjs, andnode --test test/deliver-batch.test.mjs. - Give a new Elephant chat the source README as its starting point. Ask it to locate the batch sender, identify its caller-facing contract, and cite the source function.
You're done when the generated notes lead the new chat to the right file and describe behavior that agrees with the starter tests.
Reference answer
At the end, the lab's src/README.md should point readers to
delivery/README.md, and that child document should point to
deliver-batch.mjs and describe deliverBatch(events, send).
Check that the description agrees with this contract: the function processes events serially, calls the injected sender once per event, returns one ordered status record per event, and keeps going after a failure. A README that describes the earlier capstone retry policy is inaccurate for the clean maintenance copy.
The source diff should be empty and both starter tests should pass. The documentation files should be visible in Git status from the lab root. Bootstrap skill