# Cryomics Lab Reports: guide for agents Rules for writing and maintaining interactive reports at **cryomics.org/reports/**: distill.pub-style write-ups of the lab's results, with explorable figures. Most are drafted by AI agents and checked by a person before they go live. Read this file and [STYLE.md](STYLE.md) (writing, numbers, type, figures) in full before starting. **Online copies** (for agents working away from the repo): this file at https://cryomics.org/reports/AGENTS.md, the style guide at https://cryomics.org/reports/STYLE.md, the template at https://cryomics.org/reports/_template/ (source: `view-source:`, plus `report.json` beside it), the shared https://cryomics.org/assets/css/report.css and https://cryomics.org/assets/js/report.js, and the build script https://cryomics.org/reports/build_reports.py (away from the repo, run `python3 build_reports.py check ` to validate a report folder; the lab's build fills in the marked regions). The repo copy (`/data/dev/cryomics.org/site/reports/`) is authoritative. Read `/data/dev/cryomics.org/CLAUDE.md` for the site as a whole (static HTML, DreamHost, deploy). ## The person's side (you guide them through it) Lab members don't need to know this file. They give you a brief, review, and say when to publish; **you do everything else and tell them, at each hand-off, exactly what's left for them.** Their steps: 1. **Brief:** the question, the data (repo path, BioProject, files) and a slug. If any of these is missing, ask before starting. Ask too whether the data come with partner or community agreements. 2. **Look at the draft:** you give them the local preview URL, and the live draft URL if they want co-authors to see it (you deploy the draft when they say so; drafts are listed on /reports/ with a DRAFT tag, and their pages are `noindex`). 3. **Review:** only a person can do this. You give them a short checklist specific to the report: which numbers to check against which files, which claims rest on which citations, which interpretations are judgement calls, anything from partner data. They reply with corrections in plain words; you make them. 4. **Publish:** they say "publish it, reviewed by ". You set the fields, build, deploy with `./deploy.sh --go`, and confirm the live URL and its place on /reports/. 5. **First published report only:** add "Reports" to the nav of every page (see `CLAUDE.md`: rebuild people.html, rerun `build_reports.py`, deploy), then remind them to re-run the photo-site build on concentration, which you can't do from here. 6. **Later fixes:** they ask for the change; you decide with them whether it changes a result (if so, set `updated` and add a `changelog` entry). Never rename a published slug; a wrong report is corrected or retracted, not deleted. **End every working session with a hand-off note:** the report's status, its URLs (local, and live if deployed), what you did, the review checklist, and the person's next step in one line (e.g. "Next: review, then tell me 'publish it, reviewed by …'"). ## What a report is - **One question, answered with our own data.** A report explains one result from lab work (a dataset, an analysis, a method), shows the evidence in figures the reader can explore, and says what it does and doesn't show. Typically 1,500–4,000 words and 2–6 figures. - **Not a paper and not a press release.** No hype, no claims beyond the data. Reports aren't peer-reviewed, and the index page says so. - **Honest about how it was made.** Each report's title block states the AI tools used, what they did, and who reviewed it. `build_reports.py` writes this from `report.json`; don't remove it. ## Files ``` site/reports/ AGENTS.md this file (public, deployed) CLAUDE.md imports this file for Claude Code (public, deployed) index.html the listing page; the list between markers is GENERATED _template/ working example of every component (deployed as a noindex draft; folders starting with `_` are never listed). Copy it; don't edit it / one folder per report, lowercase-with-dashes, short and permanent report.json metadata: the single source of title, authors, dates, status, AI disclosure index.html the report data/ small derived data the figures load (CSV/JSON) img/ static images; thumb.png (1200×800) for the index and social cards site/assets/css/report.css shared report styles + chart palette tokens (--c1..--c8, --seq-*, --div-*, --grid, --axis) site/assets/js/report.js shared runtime: footnotes, citations, figure numbers, contents, chart helpers site/assets/vendor/ pinned third-party libraries, when needed (see "Libraries") tools/build_reports.py new / build / check ``` ## Workflow 1. **Start:** `python3 tools/build_reports.py new ` copies `_template/` and sets `status: "draft"`. 2. **Analysis goes in its own repository, named `reports-`** in the Cryomics-Lab GitHub org (e.g. `reports-closed-genome-markers` for `site/reports/closed-genome-markers/`), not under `site/`. The report folder holds only the *derived* numbers the figures need, written by a script in that repo. Put the repo link at a fixed commit in `report.json` `code`, and list raw data sources (accessions, DOIs) in `data` and in the Methods section. 3. **Write** `index.html` (the body) and `report.json`. Touch only what's outside the `` markers. 4. **Build and check:** `python3 tools/build_reports.py`. It rewrites the marked regions (head, nav, title block, citation, footer), regenerates the index and checks every report. Fix every `ERROR` and read every `warn`. `--check` validates without writing. 5. **Look at it:** `cd site && python3 -m http.server 8765` → http://127.0.0.1:8765/reports//. Check it in light *and* dark mode (footer "theme" button) and at phone width (~390 px). Try every control. Check the browser console for warnings (unknown citation keys and figure ids are logged there). 6. **Hand off for review.** Leave `status: "draft"` and write the hand-off note (see "The person's side"). Drafts deploy to their URL with `noindex` and are listed on /reports/ with a DRAFT tag; deploy one (`./deploy.sh`, then `--go`) when the person wants it online for co-authors. 7. **Publish, only when a person tells you to and names the reviewer(s):** set `status: "published"`, `published` (YYYY-MM-DD), `ai.reviewed_by` (those names) and `ai.reviewed`. The build refuses to publish an AI-written report without a reviewer. Then `./deploy.sh` (dry run: check it lists only this report's files and the index), `./deploy.sh --go`, and check the live page. If it's the first published report, do step 5 of "The person's side". 8. **Later changes:** set `updated` and add a `changelog` entry for any change to results or conclusions, not just typos. Never change a published slug. If a report turns out wrong, correct it with a changelog note, or set `status: "retracted"` and say why at the top. Don't delete it. ## report.json ```json { "slug": "sea-ice-persistence", // = folder name "title": "…", // sentence case, states the finding or the question "dek": "…", // one-sentence subtitle "summary": "…", // 2–3 sentences: index, meta description, social card "status": "draft", // draft | published | retracted "published": null, "updated": null, // YYYY-MM-DD "authors": [{"name": "…", "url": "…", "affil": [1]}], "affiliations": ["Cryomics Lab, University of Manitoba"], "ai": {"tools": ["Claude Opus 5.5"], "role": "drafted the text, analysis code and figures from …", "reviewed_by": [], "reviewed": null}, "code": "https://github.com/Cryomics-Lab/reports-/tree/", "data": [{"label": "NCBI BioProject PRJNA…", "url": "…"}], "doi": null, "thumbnail": "img/thumb.png", "tags": [], "changelog": [{"date": "…", "note": "…"}] } ``` (The real file is plain JSON: no comments.) **Authors** are the people responsible for the work. AI tools go in `ai.tools`, not in `authors`. Don't add a person as author or reviewer without being told to. ## Content rules How a report reads and looks (voice, structure, numbers, type, figures, tables) is in **[STYLE.md](STYLE.md)**. Follow it. The rules here are about what may go into a report. - **Every number** in the text comes from the data files or the cited source. - **Citations:** only works you've verified exist, with a DOI wherever possible. Copy lab papers' details from `site/publications.html`. Never cite from memory without checking: a wrong DOI is worse than no citation. - **Indigenous knowledge, community data and place names:** follow the data agreements of the project the data came from (several lab projects are co-developed with Inuit, First Nations and Métis partners). Credit partners as the project does. If you're unsure whether data or knowledge may be published, stop and ask. - **No personal data** about community members, students or volunteers beyond what is already public. ## Libraries and size - **Plain SVG + `report.js` first.** The template's figure needs no library. - If a library is really needed (D3, Observable Plot, Leaflet, KaTeX, Vega-Lite), **vendor a pinned release** into `site/assets/vendor/-/` (with its licence file) and load it from there. Every report shares the same copy. No CDN `