Skip to content

feat(action_kit_sdk): bump index revision on register/clear#464

Merged
joshiste merged 2 commits into
mainfrom
feat/bump-index-revision
Jul 10, 2026
Merged

feat(action_kit_sdk): bump index revision on register/clear#464
joshiste merged 2 commits into
mainfrom
feat/bump-index-revision

Conversation

@joshiste

Copy link
Copy Markdown
Member

What

RegisterAction and ClearRegisteredActions now call exthttp.BumpRevision() so the extension index ETag reflects the set of registered actions.

Why

Part of centralizing index-response caching in the SDKs (see steadybit/extension-kit#158). The index ETag becomes registration-scoped instead of frozen at process start, so the agent's cached index invalidates when actions are registered/cleared without relying on a restart.

Depends on

steadybit/extension-kit#158exthttp.BumpRevision is introduced there. CI on this PR is red until extension-kit is tagged; I'll bump go.mod/go.sum to the new tag as a follow-up commit, which turns CI green.

Call exthttp.BumpRevision() from RegisterAction and ClearRegisteredActions
so the extension index ETag reflects the set of registered actions, enabling
the agent's index-response cache to invalidate on registration changes
without a process restart.
@claude

claude Bot commented Jul 10, 2026

Copy link
Copy Markdown

Claude finished @joshiste's task in 1m 38s —— View job


Claude's Review

  • Check for previously unresolved Claude review threads
  • Gather context (diff, CLAUDE.md, related SDK code)
  • Review new changes for bugs/security/concurrency issues
  • Post review feedback

No unresolved prior review threads to address.

Summary: The change is small and clean — RegisterAction and ClearRegisteredActions (go/action_kit_sdk/action_sdk.go:224,230) now call exthttp.BumpRevision(), and a new revision_test.go verifies the revision changes on both calls.

Findings:

  • Verified exthttp.BumpRevision()/Revision() in extension-kit v1.11.0 use atomic.Uint64, so the added calls are concurrency-safe on their own — no race introduced by this PR.
  • The pre-existing registeredActions map is still unprotected by a mutex, but that's unchanged by this PR, so not in scope here.
  • Confirmed the extension-kit v1.11.0 tag now exists upstream, matching the "depends on" note in the PR description — the go.mod/go.sum bump (2nd commit) should turn CI green as expected. CI is currently still in progress on this PR.

No bugs, security, or concurrency issues found in the new code.

@sonarqubecloud

Copy link
Copy Markdown

@joshiste
joshiste merged commit 360a2a7 into main Jul 10, 2026
11 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant