refactor(tui): extract pet payload into tui_gateway/pet_payload (server.py god-file slice R3) - #79261
Open
andrexibiza wants to merge 1 commit into
Open
refactor(tui): extract pet payload into tui_gateway/pet_payload (server.py god-file slice R3)#79261andrexibiza wants to merge 1 commit into
andrexibiza wants to merge 1 commit into
Conversation
…er.py god-file slice R3) Extract the pet payload/spritesheet cluster (window 7989-8282, 23 members: 17 functions + 6 module-state slots) from tui_gateway/server.py into tui_gateway/pet_payload.py, byte-verbatim, per the R3 consensus (epic NousResearch#78647, target NousResearch#78630). server.py now re-exports all 23 names identity-preserving, so bare-name consumers (HandlerRegistry-installed pet handlers, the R1 pet.changed watcher, test monkeypatches) keep resolving through the server namespace unchanged. Zero methods_*.py edits. Verified: golden sha 99120f35... of the moved span matches the pinned window; 12 baseline pet tests + 1 billing test unchanged-green; 34 new seam-identity + unit tests added (test_pet_payload_extract.py). Signed-off-by: andrexibiza <84248988+andrexibiza@users.noreply.github.com>
Contributor
Author
|
🔒 This shard is part of the tui_gateway/server.py KILL LOCK — the permanent record of the 13,908-line whole, the mess it caused (#60654 WS-frame stalls/frozen desktop, #60800 cold-start stalls, #33503 shell injection, #76285 board-slug validation, #76701 SessionDB abandonment, FIPS crashes), every shard in the wave, and every open fixer PR still fighting the surface (#72370 #76366 #67628 #58339 #77391 #66874 #77745 #72231 #62598 #33503 #74408 #74350 #65192 #77860 #76298 #78036 #74701 #72295 #73800 #76131 #68468 #51596 #53373 #76701 #70226). Lock: posted on #78630 · Indexed by the Kill All Gods meta-issue #78647. |
This was referenced Aug 5, 2026
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.
Summary
tui_gateway/server.py god-file slice R3: extract the pet-payload/spritesheet cluster from
tui_gateway/server.pyintotui_gateway/pet_payload.py. Part of the repo-wide large-file decomposition (tracker #78647).What changed and why
99120f35…) →tui_gateway/pet_payload.pylogger— zero_emit/_sessions/_blockcoupling (the cleanest slice in the region)server.pyre-exports all 23 identity-preserving; zeromethods_*.pyedits_content_display_textdedup (@6698/@7044) deliberately OUT OF SCOPE (deferred to the wave-2 projection extraction)Testing
99120f354c…matches at original pin AND current HEADCoordination / interlock
Part of #78647
Part of #78630