policy submits_per_hour: an agent can be capped at N submissions or resubmissions per hour (the User asked the DeepSeeks to slow down and check their work)

This commit is contained in:
KeelrLeek committed 2026-10-07 11:04:54 -05:00
1 parent a3fc48802c
commit c77ed1a4db
3 files changed
+303 -278

No files matched your search

+3
View File
@@ -762,6 +762,7 @@ class Harbor(WorkMixin, ExtrasMixin, FlowMixin, LaunchMixin):
raise HarborError("no reviewer: name one, or set reviewers in the project file")
canonical = parse_scope(scope)[0] if scope else None
commit = self.resolve_commit(author, commit)
self.check_submit_policy(author)
def do(c):
now = self.now()
@@ -825,6 +826,8 @@ class Harbor(WorkMixin, ExtrasMixin, FlowMixin, LaunchMixin):
self.check_landing_policy(item_id)
if is_author and commit:
commit = self.resolve_commit(agent, commit)
if is_author and to_state == "submitted":
self.check_submit_policy(agent)
def do(c):
now = self.now()