feat(preflight_kit_sdk): bump index revision on register/clear#59
Conversation
Call exthttp.BumpRevision() from RegisterPreflight and ClearRegisteredPreflights so the extension index ETag reflects the set of registered preflights, enabling the agent's index-response cache to invalidate on registration changes without a process restart.
|
Claude finished @joshiste's task in 2m 25s —— View job Claude finished reviewing this PR
ReviewThe diff is small and does exactly what the PR description says:
I checked the actual var revisionCounter atomic.Uint64
func Revision() string { return revisionSeed + "-" + strconv.FormatUint(revisionCounter.Load(), 10) }
func BumpRevision() { revisionCounter.Add(1) }
No bugs, security issues, or concurrency problems found in the new code. The two call sites are the only two places in this file that mutate One note rather than a blocker: the PR description says CI would be red until |
|



What
RegisterPreflightandClearRegisteredPreflightsnow callexthttp.BumpRevision()so the extension index ETag reflects the set of registered preflights.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#158 —
exthttp.BumpRevisionis introduced there. CI on this PR is red until extension-kit is tagged; I'll bumpgo.mod/go.sumto the new tag as a follow-up commit.