Repository navigation
Remove RegistryNamedRow getattr loops and apply unlocked NRA forwarder_inline - #5159
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.
Summary
src/agent_comms/registry/registry_tables.py: deletedRegistryNamedRow.pathand its threegetattr(value, name)traversal loops (section,entries,cleared), replacing them with nominal ownership on the 5 concrete row subclasses plus intermediateRegistryGenerationRow(which also collapses the duplicatedvaluecolumn declaration acrossRegistryOwnerGenerationsandRegistryClaimGenerations).src/agent_comms/nominal/field_codec.py: annotatedSingleValueEncoding.wire_field(cls) -> DeclaredFieldPlan.forwarder_inline --codemod-apply(91aa66f6): removing theregistry_tables.py:107dynamicgetattrtaint immediately unlocked and applied 3 rewrites (-2forwarded properties, Paper 1 Theorem 4.6):TargetField.required(src/agent_comms/cli_verbs/target_fields.py), migratedsrc/agent_comms/cli_verbs/cli_command.py:379toitem.plan.constructor_required.AssignmentDecision.verdict(src/agent_comms/coordination/assignment_states.py).Verification
src/,tests/,tools/, and livetoad: 0 remaining references toTargetField.requiredorAssignmentDecision.verdict;rel_imports = 0.50 passed in 33.50s(test_registry_capture_decode.py,test_registry_revision.py,test_declared_family.py) plus125 passedacross all test files namingTargetField/TargetAction/AssignmentDecision/SingleValueEncoding(5 pre-existing unrelated main reds:test_cli.py:413cli-inbox,test_restart_queue.py::test_inotify_wakes_for_registry_and_queue_changes,test_rule_gate_controls.pyCompactionDealMode).