Run the TS E0 check for reactions with a monoatomic participant - #1012
Open
calvinp0 wants to merge 1 commit into
Open
Run the TS E0 check for reactions with a monoatomic participant#1012calvinp0 wants to merge 1 commit into
calvinp0 wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1012 +/- ##
==========================================
+ Coverage 64.60% 64.62% +0.02%
==========================================
Files 119 119
Lines 39785 39789 +4
Branches 10307 10308 +1
==========================================
+ Hits 25703 25714 +11
+ Misses 11105 11096 -9
- Partials 2977 2979 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
calvinp0
force-pushed
the
fix_ts_e0_monoatomic_readiness
branch
from
August 23, 2026 08:56
7712ad3 to
396150e
Compare
calvinp0
force-pushed
the
fix_ts_e0_monoatomic_readiness
branch
from
August 23, 2026 12:14
396150e to
8bafd1e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The E0 sanity check for a transition state was gated on every reaction participant having both a converged single-point energy and frequencies.
A monoatomic participant —
[O],[H],[Cl]— never runs a frequency job, because it has no vibrational modes. So that gate could never be satisfied, and the E0 check silently never ran for any reaction involving an atom.The fix, in two halves
Readiness. A new
species_is_ready_for_e0()requires an SP energy from all participants but frequencies only from the non-monoatomic ones. Both readiness sites route through it.The trigger.
post_sp_actions()calledcheck_rxn_e0_by_spc()only whenspecies_has_freq()was true. So when the last job to complete was an atom's single-point, the newly-satisfied reaction was never re-evaluated, and the TS kept an unvalidatedts_checks['E0'] is Nonefor the rest of the run. It now re-checks on the same readiness predicate.The participant loop also iterates
set(labels)and indexesself.outputdirectly, rather than filteringself.output.items()— so a participant absent fromself.outputnow fails the gate instead of being skipped as vacuously ready.Tests
Three, covering the predicate itself; a monoatomic participant reaching
check_tsand drivingswitch_tson a failed E0; and an atomic SP completing last as the event that triggers the check.None of them touch the class-level
sched1/sched3fixtures — two buildobject.__new__(Scheduler)directly and one calls the module function — so they are unaffected by #1009'ssetUpClass→setUprestructuring ofTestScheduler.Verification
Rebased from 146 behind onto current
main. One conflict, inarc/scheduler_test.py'sfrom arc.scheduler import (...)block:mainhad addedtsg_method_matches_adapterto the same line this branch extended withspecies_is_ready_for_e0. Resolved as a union across two lines.Content identity against the old merge-base accounts for every difference — all four changed lines are that one resolution, and there is no unexplained only-in-old line, so no hunk was dropped.
arc/scheduler.pyauto-merged;check_rxn_e0_by_spc,post_sp_actionsand the new helper were each re-read on the new base, andARCSpecies.is_monoatomic()still exists onmain.Tests serial: 82 passed on the pre-rebase head → 99 passed after (main added tests). Nothing introduced. One commit, two files, each touched once.
Note
The original commit message is a single subject line with no body, so it records no measurement or failure-mode detail beyond what the diff shows. The description above is derived from the code.
🤖 Generated with Claude Code