Repository navigation
Cut 11: decouple native_arguments from team.rule_deal (-16 mods) and fix goal_history._sync_visible_registry - #5291
Merged
Conversation
…remove dead PrivateRegistry.path_in in goal_history
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
Cut 11 cold-start decoupling and post-crash recovery fix:
execution/native_arguments.pyfromteam/rule_deal.py(-12 agent_comms.*/-16 totalmodules from every CLI verb and client):execution/native_arguments.pypreviously importedOffDealMode, UndealtRecordfromagent_comms.team.rule_dealsolely forClmLocalProvider.undealt(replace(record, mode=OffDealMode)), dragging 12 server-sideteam/+projects/rule_probes+projects/slopmodules into every CLI verb (threads,inbox,history) and desktop/Android client.UndealtRuleDeal(ABC)(@abstractmethod def disabled(self) -> Self) inexecution/native_arguments.py;UndealtRecord(DealRecord, UndealtRuleDeal)inteam/rule_deal.pynow ownsdisabled(self) -> Self: return replace(self, mode=OffDealMode), andClmLocalProvider.undealtdelegates viarecord.disabled().AttributeErrorinGoalHistoryStore._sync_visible_registry(src/agent_comms/planning/goal_history.py:228):_sync_visible_registry()still calledPrivateRegistry.path_in(self.registry_path.parent), which was deleted in3a4505e66dwhen the private namespace moved into theRegistryNamespacerow insideregistry.sqlite3.PrivateRegistryimport and call;_sync_visible_registry()now syncsself.registry_pathdirectly.Warm 4-round alternating unprofiled A/B benchmark (
mainvs Cut 11)agent_comms.cli_verbs.threads:1026.9ms(343 ac / 654 tot) ->1006.3ms(331 ac / 638 tot) |-20.5ms(-12 ac,-16 tot)agent_comms.cli_verbs.inbox:1095.3ms(331 ac / 642 tot) ->1055.8ms(319 ac / 626 tot) |-39.5ms(-12 ac,-16 tot)agent_comms.cli_verbs.history:1190.4ms(369 ac / 680 tot) ->1183.9ms(358 ac / 665 tot) |-6.5ms(-11 ac,-15 tot)Verification
IMPORTED=952/952 ERRORS=0,REL_IMPORTS=0.tests/test_goal_history.py,tests/test_native_arguments.py,tests/test_native_agent_settings.py,tests/test_pi_rule_gate.py,tests/test_rule_gate_controls.py,tests/test_deal_prompt.py): 66 passed (33.53s).