Skip to content

Remove RegistryNamedRow getattr loops and apply unlocked NRA forwarder_inline - #5159

Merged
trissim merged 1 commit into
mainfrom
refactor/registry-named-row-and-forwarder-inline
Nov 24, 2026
Merged

trissim merged 1 commit into
mainfrom
refactor/registry-named-row-and-forwarder-inline

Conversation

@trissim

@trissim trissim commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • BOUND-7 removal in src/agent_comms/registry/registry_tables.py: deleted RegistryNamedRow.path and its three getattr(value, name) traversal loops (section, entries, cleared), replacing them with nominal ownership on the 5 concrete row subclasses plus intermediate RegistryGenerationRow (which also collapses the duplicated value column declaration across RegistryOwnerGenerations and RegistryClaimGenerations).
  • Typing unlock in src/agent_comms/nominal/field_codec.py: annotated SingleValueEncoding.wire_field(cls) -> DeclaredFieldPlan.
  • NRA forwarder_inline --codemod-apply (91aa66f6): removing the registry_tables.py:107 dynamic getattr taint immediately unlocked and applied 3 rewrites (-2 forwarded properties, Paper 1 Theorem 4.6):
    • Deleted TargetField.required (src/agent_comms/cli_verbs/target_fields.py), migrated src/agent_comms/cli_verbs/cli_command.py:379 to item.plan.constructor_required.
    • Deleted unused AssignmentDecision.verdict (src/agent_comms/coordination/assignment_states.py).

Verification

  • Cross-repo grep over src/, tests/, tools/, and live toad: 0 remaining references to TargetField.required or AssignmentDecision.verdict; rel_imports = 0.
  • Focused tests: 50 passed in 33.50s (test_registry_capture_decode.py, test_registry_revision.py, test_declared_family.py) plus 125 passed across all test files naming TargetField/TargetAction/AssignmentDecision/SingleValueEncoding (5 pre-existing unrelated main reds: test_cli.py:413 cli-inbox, test_restart_queue.py::test_inotify_wakes_for_registry_and_queue_changes, test_rule_gate_controls.py CompactionDealMode).

@trissim
trissim merged commit e4df101 into main Nov 24, 2026
1 of 3 checks passed
@trissim
trissim deleted the refactor/registry-named-row-and-forwarder-inline branch November 24, 2026 21:25
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