python-math #41: feat(math): mode collapse C5+C6 — driver mod semantics + poller flag plumbing deleted - #2670
Draft
jucor wants to merge 1 commit into
Draft
python-math #41: feat(math): mode collapse C5+C6 — driver mod semantics + poller flag plumbing deleted#2670jucor wants to merge 1 commit into
jucor wants to merge 1 commit into
Conversation
This was referenced Jul 27, 2026
python-math #43: docs(delphi): s7 goal state + journal — mode collapse executed, battery 20/20
#2672
Draft
Draft
Draft
Draft
Draft
Draft
Draft
Draft
Draft
This was referenced Jul 27, 2026
Draft
Draft
Draft
Draft
This was referenced Jul 28, 2026
Draft
…cs + poller flag plumbing deleted ## What Phase 2, chunks C5+C6 of `GOAL_CUTOVER_READY.md` (the standing goal document for the Python math cutover) — continuing the mode collapse, the removal of the engine-mode switch (`POLISMATH_ENGINE_MODE`, clojure-legacy vs improved) so only the Clojure-exact behavior remains. - Replay driver: the `mod_update` reducer semantics — a moderation update triggers a votes-recompute first and updates only the moderation sets and watermark, with the effect landing on the next tick — is now the only moderation path. Deleted: the improved-mode `update_moderation` path, its cumulative `mod_state`, the emptying-transition guard (`_guard_moderation_clear` / `_mod_dict`), and the `NotImplementedError` raised on improved mode + restart. - Poller service (the service that polls Postgres for new votes and runs math ticks): the `engine_mode` config field, the `apply_engine_mode` passthrough, and the env import and startup-log field are deleted — the poller no longer reads or writes `POLISMATH_ENGINE_MODE`. `poller/__init__` and `env_flags` docstrings updated. - `utils/engine_mode.py` itself survives until the harness purge in the next commit: `certify.py` / `store.py` / `poller_equiv.py` still import it. ## Testing Deleted the 3 driver tests and 2 poller tests that pinned the removed paths. 21 driver + 93 poller tests green. commit-id:a4c818c8
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.
What
Phase 2, chunks C5+C6 of
GOAL_CUTOVER_READY.md(the standing goal document for the Python math cutover) — continuing the mode collapse, the removal of the engine-mode switch (POLISMATH_ENGINE_MODE, clojure-legacy vs improved) so only the Clojure-exact behavior remains.mod_updatereducer semantics — a moderation update triggers a votes-recompute first and updates only the moderation sets and watermark, with the effect landing on the next tick — is now the only moderation path. Deleted: the improved-modeupdate_moderationpath, its cumulativemod_state, the emptying-transition guard (_guard_moderation_clear/_mod_dict), and theNotImplementedErrorraised on improved mode + restart.engine_modeconfig field, theapply_engine_modepassthrough, and the env import and startup-log field are deleted — the poller no longer reads or writesPOLISMATH_ENGINE_MODE.poller/__init__andenv_flagsdocstrings updated.utils/engine_mode.pyitself survives until the harness purge in the next commit:certify.py/store.py/poller_equiv.pystill import it.Testing
Deleted the 3 driver tests and 2 poller tests that pinned the removed paths. 21 driver + 93 poller tests green.
commit-id:a4c818c8
Stack: