Skip to content

Cut 11: decouple native_arguments from team.rule_deal (-16 mods) and fix goal_history._sync_visible_registry - #5291

Merged
trissim merged 1 commit into
mainfrom
perf/cut11-native-args-rule-deal
Nov 28, 2026
Merged

trissim merged 1 commit into
mainfrom
perf/cut11-native-args-rule-deal

Conversation

@trissim

@trissim trissim commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Cut 11 cold-start decoupling and post-crash recovery fix:

  1. Decouple execution/native_arguments.py from team/rule_deal.py (-12 agent_comms.* / -16 total modules from every CLI verb and client):
    • execution/native_arguments.py previously imported OffDealMode, UndealtRecord from agent_comms.team.rule_deal solely for ClmLocalProvider.undealt (replace(record, mode=OffDealMode)), dragging 12 server-side team/ + projects/rule_probes + projects/slop modules into every CLI verb (threads, inbox, history) and desktop/Android client.
    • Declared UndealtRuleDeal(ABC) (@abstractmethod def disabled(self) -> Self) in execution/native_arguments.py; UndealtRecord(DealRecord, UndealtRuleDeal) in team/rule_deal.py now owns disabled(self) -> Self: return replace(self, mode=OffDealMode), and ClmLocalProvider.undealt delegates via record.disabled().
  2. Fix latent AttributeError in GoalHistoryStore._sync_visible_registry (src/agent_comms/planning/goal_history.py:228):
    • _sync_visible_registry() still called PrivateRegistry.path_in(self.registry_path.parent), which was deleted in 3a4505e66d when the private namespace moved into the RegistryNamespace row inside registry.sqlite3.
    • Removed the dead PrivateRegistry import and call; _sync_visible_registry() now syncs self.registry_path directly.

Warm 4-round alternating unprofiled A/B benchmark (main vs 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.
  • Focused pytest (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).

…remove dead PrivateRegistry.path_in in goal_history
@trissim
trissim merged commit 8f7f299 into main Nov 28, 2026
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