Skip to content

fix: keep the operator's allocate rule after an agent close#1242

Closed
MoonBoi9001 wants to merge 1 commit into
main-dipsfrom
mb9/keep-operator-allocate-rule-after-agent-close
Closed

fix: keep the operator's allocate rule after an agent close#1242
MoonBoi9001 wants to merge 1 commit into
main-dipsfrom
mb9/keep-operator-allocate-rule-after-agent-close

Conversation

@MoonBoi9001

@MoonBoi9001 MoonBoi9001 commented Jul 8, 2026

Copy link
Copy Markdown
Member

This PR stops the indexer-agent from overwriting an operator's indexing rule after closing an allocation. When the agent closes one, it writes a do-not-allocate note so it will not recreate what it just closed. It wrote that note unconditionally. If the operator had changed the rule while the close waited in a queue, the note erased the change and also blocked DIPs payment offers for that deployment.

We hit this during local-network DIPs testing. The agent closed an allocation a test had just recreated, then wrote the note and blocklisted the deployment for payments. A companion PR, #1243, stops that wrongful close from being queued at all. This PR makes sure a close that still slips through cannot erase what the operator wants. Deliberate rule changes made through the CLI and management API are untouched. One behaviour change: after a close under a live always rule, the agent now recreates the allocation on its next pass. 6 new unit tests cover the guard.

After the agent closes an allocation it always wrote a never rule, overwriting a rule the
operator changed while the close sat in the queue and silently opting the deployment out
of DIPs proposals. The stamp now checks the current rule and skips when it says allocate.
@github-project-automation github-project-automation Bot moved this to 🗃️ Inbox in Indexer Jul 8, 2026
@MoonBoi9001
MoonBoi9001 marked this pull request as draft July 8, 2026 13:25
@MoonBoi9001
MoonBoi9001 marked this pull request as ready for review July 9, 2026 12:17
@github-project-automation github-project-automation Bot moved this from 🗃️ Inbox to ❌ Closed in Indexer Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: ❌ Closed

Development

Successfully merging this pull request may close these issues.

1 participant