You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
Repair programmatic particle names across the domain model
The vendored Scikit-HEP particle source under /app/vendor/particle has a
semantic regression in its Python-safe identifier generation. A trailing 0
has two meanings in the package's domain data:
for an ordinary neutral particle it is a charge suffix and must be separated
in the programmatic identifier, such as H0 becoming H_0;
for a nucleus it can be the final digit of the atomic mass number and must
remain attached, such as C10 and Ag100 remaining C10 and Ag100.
Repair the existing implementation in place. Both of these source modules must
be changed:
The lower-level programmatic_name utility must accept explicit nucleus
classification while remaining backward compatible for ordinary one-argument
callers. The public Particle.programmatic_name property must pass the domain
object's actual PDG nucleus classification into that utility. Direct utility
callers and the public property must therefore agree.
Preserve all established normalization behavior for ordinary neutral names,
charged particles, multi-character charges, resonances, parentheses, stars,
and antiparticle markers. In particular, fixing terminal-zero nuclei must not
regress names such as pi0, K*(892)0, Delta(1232)++, or Lambda~, and an
anti-nucleus must still receive normal antiparticle normalization.
Do not replace the project with a new evaluator, hard-code only the visible
examples, remove bundled PDG/nucleus data, edit or disable tests, or bypass the
existing Particle lookup and property path. The repaired source tree must
remain importable offline and the existing focused utility tests must continue
to pass.