Skip to content

feat(advice_kit_sdk): bump index revision on register/clear#121

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

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

Conversation

@joshiste

Copy link
Copy Markdown
Member

What

RegisterAdvice (only when the advice is active and actually registered) and ClearRegisteredAdvice now call exthttp.BumpRevision() so the extension index ETag reflects the set of registered advice.

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.

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.

joshiste added 2 commits July 10, 2026 21:47
Call exthttp.BumpRevision() from RegisterAdvice (when an advice is actually
registered) and ClearRegisteredAdvice so the extension index ETag reflects
the set of registered advice, enabling the agent's index-response cache to
invalidate on registration changes without a process restart.
@joshiste
joshiste force-pushed the feat/bump-index-revision branch from 18ad209 to 1f9336d Compare July 10, 2026 19:48
@claude

claude Bot commented Jul 10, 2026

Copy link
Copy Markdown

Claude's review in progress

  • Check for previously unresolved review threads
  • Gather context (diff, changed files, CLAUDE.md)
  • Review new changes
  • Post final feedback

View job run

@sonarqubecloud

Copy link
Copy Markdown

@joshiste
joshiste enabled auto-merge (squash) July 10, 2026 19:48
@joshiste
joshiste merged commit 767ec51 into main Jul 10, 2026
7 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