From 0a0ddfba927c14831b66ed31a818cd39790378ec Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Sat, 28 Nov 2026 11:02:32 -0500 Subject: [PATCH] Apply 10 mechanical NRA #661 P51 restated_base drops --- src/agent_comms/execution/child_process.py | 4 ++-- src/agent_comms/execution/transcript_sources.py | 2 +- src/agent_comms/messaging/message_files.py | 5 ++--- src/agent_comms/planning/goal_actions.py | 3 +-- src/agent_comms/planning/orders.py | 2 +- src/agent_comms/task_attachments/team_pings.py | 2 +- src/agent_comms/transcript/transcript_events.py | 2 +- 7 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/agent_comms/execution/child_process.py b/src/agent_comms/execution/child_process.py index 78feee0479..633fa1457c 100644 --- a/src/agent_comms/execution/child_process.py +++ b/src/agent_comms/execution/child_process.py @@ -846,7 +846,7 @@ def report_forced(self, report: Callable[[str], None]) -> None: @dataclass(frozen=True) -class FailedToStartOutcome(UnsuccessfulChildOutcome, ChildOutcome): +class FailedToStartOutcome(UnsuccessfulChildOutcome): error: str @property @@ -1799,7 +1799,7 @@ def submit[T, **P]( @dataclass(frozen=True) -class DetachedExitOutcome(UnsuccessfulChildOutcome, ChildOutcome): +class DetachedExitOutcome(UnsuccessfulChildOutcome): """Exit observed; a non-parent cannot claim an exit code.""" @property diff --git a/src/agent_comms/execution/transcript_sources.py b/src/agent_comms/execution/transcript_sources.py index 374612cca2..aaabc026fa 100644 --- a/src/agent_comms/execution/transcript_sources.py +++ b/src/agent_comms/execution/transcript_sources.py @@ -668,7 +668,7 @@ def mark_read(self, reads: MarksSourceRead[RecordsCut], viewer: str, runtime: Tr @dataclass(frozen=True, slots=True) -class UnreadTranscriptCursor(NoOpReadTranscriptCursor, TranscriptCursor): +class UnreadTranscriptCursor(NoOpReadTranscriptCursor): """No source has been read; this is not a source position or a read mark.""" def contains(self, other: TranscriptCursor) -> bool: diff --git a/src/agent_comms/messaging/message_files.py b/src/agent_comms/messaging/message_files.py index dc4668da0f..c3648794cb 100644 --- a/src/agent_comms/messaging/message_files.py +++ b/src/agent_comms/messaging/message_files.py @@ -25,7 +25,6 @@ DurableStore, ForeignKey, StoreRows, - TypedTable, WithoutRowid, ) from agent_comms.transport.request import tool_field @@ -177,7 +176,7 @@ class MessageFilesRows(StoreRows): @dataclass(frozen=True, slots=True) -class FileContentRow(MessageFilesRows, WithoutRowid, TypedTable): +class FileContentRow(MessageFilesRows, WithoutRowid): """Bytes stored once per digest, as the base64 text the sender uploaded.""" sha256: Annotated[str, Column(primary_key=True)] @@ -185,7 +184,7 @@ class FileContentRow(MessageFilesRows, WithoutRowid, TypedTable): @dataclass(frozen=True, slots=True) -class MessageFileRow(MessageFilesRows, WithoutRowid, TypedTable): +class MessageFileRow(MessageFilesRows, WithoutRowid): seq: Annotated[int, Column(primary_key=True)] position: Annotated[int, Column(primary_key=True)] message_id: MessageId diff --git a/src/agent_comms/planning/goal_actions.py b/src/agent_comms/planning/goal_actions.py index 4b06c47bdd..77eebf4994 100644 --- a/src/agent_comms/planning/goal_actions.py +++ b/src/agent_comms/planning/goal_actions.py @@ -319,7 +319,7 @@ def before_transition(self, goal: Goal, ctx: GoalActionContext) -> None: @dataclass(frozen=True, kw_only=True) -class CompliedGoalAction(ActivatingGoalAction, TransitionGoalAction, OwnerInvocable): +class CompliedGoalAction(ActivatingGoalAction, OwnerInvocable): """The teammate complied, so a unit its chokehold paused works again. The compliant answer is a witness the way an order is: a generation an interruption left unresolved continues as a fresh order continues it (continue_work), where a status-only resume is refused. @@ -533,7 +533,6 @@ def required_block_reason(reason: str | None) -> str: @dataclass(frozen=True, kw_only=True) class RetryGoalAction( ActivatingGoalAction, - TransitionGoalAction, ModelInvocable, OwnerInvocable, RuntimeInvocable, diff --git a/src/agent_comms/planning/orders.py b/src/agent_comms/planning/orders.py index 485637bc6f..51bf58239c 100644 --- a/src/agent_comms/planning/orders.py +++ b/src/agent_comms/planning/orders.py @@ -4323,7 +4323,7 @@ class UnrecordedHeadVerdict(HeadVerdict, declared_name=None): """No decision is recorded on this exact head.""" -class UnderReviewHeadVerdict(OrderReviewHeadVerdict, HeadVerdict): +class UnderReviewHeadVerdict(OrderReviewHeadVerdict): state = "pending" def description(self, reviewer: str, subject: str) -> str: diff --git a/src/agent_comms/task_attachments/team_pings.py b/src/agent_comms/task_attachments/team_pings.py index 530b21eb20..330ec1965b 100644 --- a/src/agent_comms/task_attachments/team_pings.py +++ b/src/agent_comms/task_attachments/team_pings.py @@ -704,7 +704,7 @@ def members(cls, packets: tuple[TeamUpdate, ...], if not ping.team_disposes for line in ping.alarm_pings() if line not in new_members) -class ParkedAlarms(RetainedAlarmGroup, AlarmGroup): +class ParkedAlarms(RetainedAlarmGroup): """Lines waiting on a stopped thread: one count below the cards, never on the board. Their rows stay in comms_hud's records, and return when the thread runs again.""" diff --git a/src/agent_comms/transcript/transcript_events.py b/src/agent_comms/transcript/transcript_events.py index c7ea24ad65..f21f90da0a 100644 --- a/src/agent_comms/transcript/transcript_events.py +++ b/src/agent_comms/transcript/transcript_events.py @@ -183,7 +183,7 @@ def text_size(self) -> int: return len(self.text) -class TextTranscript(TextSizedTranscriptEvent, TranscriptEvent): +class TextTranscript(TextSizedTranscriptEvent): text: str def activity_items(self) -> tuple[TranscriptEvent, ...]: