Repository navigation
Delete FieldRepresentation.__init_subclass__ now that MroDispatch is lazy - #5295
Merged
Merged
Conversation
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.
Delete the 18-line
FieldRepresentation.__init_subclass__fast-path workaround (src/agent_comms/nominal/field_codec.py:1634-1651, added inef66d4f924) now thatOpenHCSDev/metaclass-registry#20(9933bdf) resolvesMroDispatch._handler_declarationsand_handler_nameslazily per class with zero__init_subclass__cost.Why
MroDispatchno longer walks the MRO at class creation time, so everyFieldRepresentationsubclass (~400 classes) gets zero import-time handler work natively without acls.__bases__fast-path copy (paper1 Thm 4.6 / IMPL-12).cls.__bases__hook also removes the Add durable coordination, goals, claims and read state to agent-comms #1P58sibling-override proof blocker onagent-comms(20 findings infield_codec.py).Verification
pytest -p no:xdist tests/test_field_codec.py tests/test_codec_capabilities.py: 151/151 passed (6.34s) againstmetaclass-registry@9933bdforigin/main(import agent_comms.nominal.field_codec):173.4 ms -> 164.3 ms(-9.1 ms)REL_IMPORTS=0