/empirical-ingest
Convert one empirical paper into reusable research-design assets. This is not a generic summary command: extract variables, data, model specification, mechanisms, identification, robustness, and heterogeneity before writing generic concepts.
Workflow
- Confirm the cwd contains
wiki/,raw/, andtools/. - Resolve the source. For PDFs, inspect the first page for a confident title, then run
tools/prepare_paper_source.py --raw-root raw --source <source> [--title "<title>"]. - Extract only text-supported empirical facts: research question, mechanisms, hypotheses, sample period, data sources, variables, measurement formulas, baseline model, fixed effects, clustered standard errors, endogeneity handling, mechanism tests, heterogeneity tests, robustness checks, key tables, and reproduction notes.
- Open
docs/runtime-page-templates.en.mdand create or update the relevant pages underpapers/,variables/,datasets/,models/,mechanisms/,hypotheses/,identification/,robustness/,heterogeneity/, andtables/. - Add graph edges through
tools/research_wiki.py add-edge, using empirical edge types such asoperationalizes,uses_dataset,estimates_model,tests_mechanism,addresses_endogeneity_with,uses_robustness_check, anduses_heterogeneity_split. - Rebuild
index.md,context_brief.md, andopen_questions.md; then runtools/lint.py --wiki-dir wiki.
Constraints
- Do not invent formulas, database table names, variable names, or identification strategies.
- If a paper does not report a detail, write
not reported. - Local Chinese-language PDFs without arXiv/Semantic Scholar metadata are valid sources; rely on the paper text and the local project.
- Never overwrite or move user-owned files under
raw/papers/.