Skip to content

fix(epac): promotion from closed atom, unpaired accounting, subshell ordering - #21

Merged
erinepshovel-code merged 1 commit into
mainfrom
repair/epac-promotion
Sep 1, 2026
Merged

erinepshovel-code merged 1 commit into
mainfrom
repair/epac-promotion

Conversation

@erinepshovel-code

Copy link
Copy Markdown
Contributor

EPAC promotion repair (rebuilt from closed #2 concept)

Built from current main. Keeps sealed-shape prediction FALSIFIED; no
shape evidence changes.

Repairs

  • Promotion derives from the already-closed atomic object: molecular
    attachment sites now read the element gonol's carried
    unpaired-valence-lm / promoted-unpaired-lm evidence. The periodic-table
    relookup (atomic_of) is removed from molecular construction.
  • Promoted unpaired-electron accounting: promotion moves the spin-down
    valence s electron into the first empty valence p and flips it to spin-up,
    so every promoted unpaired electron carries m_s = +1, matching the ground
    _unpaired_valence convention.
  • Subshell ordering: the promoted set is canonical — s before p, p
    orbitals in ascending m_l (0:0, 1:-1, 1:0, 1:1 for carbon).
  • Promotion flags: center_used_atomic_promotion now computed from the
    closed gonol's ground set vs required ligand sites; CH4 and CO2 both flag
    promotion, H2O/NH3 do not.

Regression tests added

  • promoted carbon (4 unpaired, all m_s=+1, canonical order)
  • promoted beryllium (2 unpaired, all m_s=+1)
  • ordinary atoms (He/O/N promotion equals ground when no empty valence p)
  • configuration serialization round-trip (element gonol carried options)
  • updated CH4/CO2 center_unpaired_lm expectations to the canonical order

Gates

  • PYTHONPATH=research/epac:libs/ucns/src python -m unittest discover -s research/epac/tests -q — 41 OK
  • sealed-shape comparison standings remain FALSIFIED
  • new .github/workflows/epac.yml runs the suite on PRs touching EPAC/UCNS

…ing and ordering

- molecular attachment sites now derive from the already-closed element
  gonol's carried unpaired/promoted valence evidence; no periodic-table
  relookup at construction time.
- promoted unpaired accounting: promote the spin-down valence s electron
  into the first empty valence p and flip it, so every promoted unpaired
  electron carries m_s = +1 like the ground convention.
- subshell ordering: promoted set is canonical (s before p, p ascending m_l).
- regression tests for CH4/CO2 promotion flags, promoted carbon/beryllium,
  ordinary atoms, and configuration serialization.
- sealed-shape prediction remains FALSIFIED (existing comparison gate green).
- add epac CI workflow (unittest discovery with libs/ucns on PYTHONPATH).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T23:27:29.992285Z 3f5b275 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@erinepshovel-code
erinepshovel-code merged commit 7c4f1c1 into main Sep 1, 2026
5 checks passed
@erinepshovel-code
erinepshovel-code deleted the repair/epac-promotion branch September 1, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant