Stage 0 for agents: setup and style
Source of truth: stages/00_setup.md.
Goal
A repository skeleton, the published record in hand, the deposit identified, and an approved STYLE.md.
Do
- Collect the publisher’s rendered PDFs: the article (version of record), the online appendix, and any published corrigendum. Do not use a preprint or accepted manuscript as a source of published values.
- Find the replication deposit and record its DOI. Do not copy the data into the repository.
- Ask the author which materials outside the deposit exist (production
.texor.docx, proofs, accepted manuscript, old working scripts) and where they are. Treat a working-folder.texas the published text only if its compiled PDF matches the publisher’s. - Create the repository with the layout in the stage file:
run_all.R(or the language’s equivalent),download_original.R,maintained/,maintained/output/,ground_truth/,errata.qmd,README.qmd, a.gitignorethat excludesoriginal/, and a license. - Use paths relative to the repository root everywhere.
- Read the recent code the author points you to, and draft
STYLE.md: script organization, naming, data manipulation idioms, modeling defaults, figures (with a CSV of plotted values beside each), tables, and things to avoid. Quote examples from the author’s code. - Give the draft to the author and revise it until they approve it. Commit the approved version.
Do not
- Let
STYLE.mdoverride the paper’s own choices. The rewrite keeps the original estimator, specification, sample, standard errors, and seed whateverSTYLE.mdprefers. Say so inSTYLE.md. - Use materials outside the deposit as inputs to the rewrite. They explain errors; they do not supply numbers.
Done when
The repository exists with its entry point and layout, the published PDFs are in hand, the deposit DOI is recorded, and an approved STYLE.md is committed.