Brief for module-curation agents (YeastPathways module project)

Warnings (1)

Brief for module-curation agents (YeastPathways module project)

Repo: ai-gene-review. You are creating or revising modules/<slug>.yaml
documents that generalise YeastPathways (SGD YeastCyc) pathways into reusable
biological modules. This is NOT a rote translation of YeastCyc.

Read first

What to produce

  1. Critical pathway assessment. For each YeastCyc reaction decide whether it
    belongs in the module, which enzyme really catalyses it (YeastCyc gene lists
    are incomplete or stale in places: e.g. missing ARO10, SOL3/SOL4, GND1/2, THI4,
    MEU1/MRI1/MDE1/UTR4/ADI1, GLG1/2, DUG1-3), and the compartment. Find the
    primary literature: use WebSearch / the article tools, then cache each cited
    paper with just fetch-pmid <PMID> so publications/PMID_<n>.md exists
    before you cite it. Only cite PMIDs whose cached file you have read.
  2. Generalisation. Model at the scope in the crosswalk: species-neutral
    label/description, parts in pathway order, variant_sets for real
    alternatives (architecture fusions, route variants, lineage-specific steps),
    connections with PRECEDES (+ chaining_status/chaining_note when the
    CoA check would mis-fire). MF terms on leaf annotons only. Module-level
    concepts: the most specific GO BP term(s).
  3. Exemplar grounding. Every leaf role gets representative_members (or a
    concrete GENE_PRODUCT participant) that include the S. cerevisiae S288C
    protein(s) (UniProtKB accession from the summary YAML or the gene's UniProt
    file) and, when the group lists a PomBase GO-CAM, the S. pombe ortholog(s)
    (accessions from the PomBase GO-CAM / UniProt). Keep existing non-fungal
    representatives. Use a FAMILY selector with a PANTHER family id only if you
    have verified it (grep -A1 "^id: PANTHER:PTHRxxxxx$" interpro/panther/panther.obo
    and membership); otherwise omit term and keep preferred_term (see CLAUDE.md
    "PANTHER ids"). Never guess PTN ids.
  4. GO-CAM grounding. Add gocam_associations on the module node for each
    listed model (with title), and on leaf annotons where a specific
    activity id clearly corresponds (format gomodel:<model>/<activity>; for
    YeastPathways models the activity ids look like gomodel:HISTCYCLOHYD-RXN
    -- copy them exactly from the src file). Where the GO-CAM disagrees with your
    module (wrong MF, missing step, extra gene), say so in notes.
  5. Evidence: top-level evidence must cite YeastPathways:<frame id> for each
    source frame (url https://pathway.yeastgenome.org/YEAST/NEW-IMAGE?object=<id>),
    GO terms used as concepts, and the PMIDs.
  6. Exemplar gene list. Append (or create) a section for each of your modules
    in projects/YEAST_PATHWAYS/module_members/<slug>.yaml:
    ```yaml
    module:
    scerevisiae: # every S. cerevisiae gene product used anywhere in the module
    • {symbol: HIS1, uniprot: P00498}
      spombe: # every S. pombe gene product used (only if a PomBase GO-CAM is linked)
    • {symbol: his1, uniprot: ...} # PomBase symbol as used for genes/SCHPO/
      panther_families: [PTHR...] # verified family ids used as role families
      ```
      This file drives which genes and families get reviewed, so include every
      exemplar gene product, including ones you added beyond YeastCyc.

Validate

uv run linkml-validate -s src/ai_gene_review/schema/gene_review.yaml -C ModuleReview modules/<slug>.yaml
uv run python -m ai_gene_review.validation.module_validator modules/<slug>.yaml
just render-module modules/<slug>.yaml

Errors must be fixed. Warnings about missing gene/family reviews are expected
(those reviews are being produced in parallel) -- do not create gene reviews.
Do not commit, push, or edit files outside modules/<your slugs>.yaml,
pages/modules/<your slugs>.html, projects/YEAST_PATHWAYS/module_members/,
and publications/ (via fetch-pmid). Revert incidental cache/ changes
(git checkout -- cache/).

Also create a history record per module:
just new-history --kind module --slug <slug> --event CREATE|EDIT --outcome changed --summary "..." --agent-tool claude-code --details "..."
and just validate-history <path>.

Final answer

Per module: action taken, boundary/generalisation decision, parts and
variant sets, YeastCyc corrections (missing/wrong enzymes, compartments),
GO-CAM disagreements, validation status, and counts of S. cerevisiae /
S. pombe exemplars.

Note: the scratchpad is shared by parallel agents; use a uniquely named
subfolder for any helper scripts.