Skip to content

fix: restored pool affinity routing - #196

Merged
jacobcxdev merged 1 commit into
mainfrom
jacobcxdev/fix/policy-affinity-reroute
Sep 10, 2026
Merged

jacobcxdev merged 1 commit into
mainfrom
jacobcxdev/fix/policy-affinity-reroute

Conversation

@jacobcxdev

Copy link
Copy Markdown
Owner

Session policy changes could exclude an active task's soft-affinity account after a successful request. Request planning then filtered inventory to the selected pool but retained the excluded affinity, producing affinity_unresolved and HTTP 503 before trying an allowed account.

Clear only portable affinity when selected session policy excludes its account. Bound-account, previous-response, turn-state, and encrypted-state continuity remain fail-closed.

Validation:

  • go build ./...
  • go vet ./...
  • go test -race -count=1 ./...
  • Regression test observed failing before planner fix and passing after it.

- Cleared portable affinity when selected session policy excluded its account.
- Preserved bound and continuation account enforcement.
- Added regression coverage for policy changes during active sessions.
@jacobcxdev jacobcxdev self-assigned this Sep 10, 2026
@jacobcxdev
jacobcxdev merged commit 0a83339 into main Sep 10, 2026
6 checks passed
@jacobcxdev
jacobcxdev deleted the jacobcxdev/fix/policy-affinity-reroute branch September 10, 2026 12:00
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