F-130: C1 recovery-mode admin HTTP surface#11
Merged
Conversation
… handlers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ReplayErrortyped error tointernal/eventstoreso replay failures carry the failing position and projector name, extractable viaerrors.AsRecoveryProviderinterface ininternal/observability/with five HTTP handlers:GET /events,GET /projection-cursors,GET /skipped-events,POST /events/{position}/skip,POST /shutdownRecoveryProvideron*Daemon; all five endpoints guarded byInRecovery()— return 404 when daemon is not in recovery phaseenterRecoverythat logs failure reason + position until daemon context is cancelledshutdownCancelonDaemonso thePOST /shutdownhandler can cancel the daemon's context and trigger a clean exitProjectorNames()toeventstore.Storeso the skip handler can validate the projector field against registered projectorsTest plan
go test ./internal/eventstore/...—TestReplay_ReturnsReplayError,TestReplay_SkipEventAllowsReplayToProceed,TestStore_ProjectorNamesgo test ./internal/observability/...— 20 handler tests covering not-in-recovery (404), success paths, empty slices, bad input, unknown projector, shutdowngo build ./...— clean compile🤖 Generated with Claude Code