Skip to content

Fix relay-primary provider settlement durability - #7618

Closed
YamonBot wants to merge 2 commits into
block:carl/relay-primary-agent-configfrom
YamonBot:codex/relay-primary-provider-settlement
Closed

YamonBot wants to merge 2 commits into
block:carl/relay-primary-agent-configfrom
YamonBot:codex/relay-primary-provider-settlement

Conversation

@YamonBot

Copy link
Copy Markdown

Provider deployment currently releases the managed-agent store lock while the external provider runs, then applies the returned handle to whichever relay-primary record is current. An A→Local or A→Provider-B edit during that interval can therefore attach A's handle to unrelated authority, and a retention failure can leave the only handle hidden behind an older encrypted head.

This change records an exact, scope-bound provider invocation before the external call and records any returned handle before settlement. Settlement requires the same private-head event, owner, relay scope, provider, and payload fingerprint; stale results remain visible as unresolved cleanup state and block ordinary redeploy/delete. The encrypted kind 30179 head is now committed before the device-local JSON mirror for provider results and ordinary agent edits.

It also includes the existing-cluster Secret reference needed by Kubernetes managed agents. The provider verifies the referenced Secret before mutation, loads it first through envFrom, and keeps Buzz's per-agent identity Secret authoritative.

Stacked on #4999 because it completes that PR's remaining provider settlement blockers.

Validation:

  • just desktop-tauri-test — 3263 passed, 19 ignored; all workspace test targets passed
  • cargo test -p buzz-backend-kubernetes — 160 unit and 4 wire tests passed
  • just desktop-tauri-clippy
  • CHECK_FILE_SIZES_BASE=6c1be331d86af8a02ad8e1454ff532e5a836a81a pnpm --dir desktop check:file-sizes
  • git diff --check

yamonkjdmac24gb added 2 commits September 13, 2026 21:30
Signed-off-by: yamonkjdmac24gb <yamonkjdmac24gb@yamonkjdmac24gbui-Macmini-2.local>
Signed-off-by: yamonkjdmac24gb <yamonkjdmac24gb@yamonkjdmac24gbui-Macmini-2.local>
@YamonBot
YamonBot requested a review from a team as a code owner September 13, 2026 12:35
@YamonBot

Copy link
Copy Markdown
Author

Closing: the deployment must use an unmodified official upstream release and supported configuration path.

@YamonBot YamonBot closed this Sep 13, 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