Skip to content

fix(kernel): core hardening, in-memory coordinator, and resilience fixes - #1

Merged
nexssp merged 6 commits into
mainfrom
fix/kernel-core-hardening
Aug 31, 2026
Merged

fix(kernel): core hardening, in-memory coordinator, and resilience fixes#1
nexssp merged 6 commits into
mainfrom
fix/kernel-core-hardening

Conversation

@nexssp

@nexssp nexssp commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Summary of Changes

  • Idempotency:
    • Implemented IdempotencyCoordinator on MemoryIdempotencyStore with sequence-based phantom delete protection and idempotent Release.
    • Split interface contracts and in-memory coordinator implementation into idempotency.go and idempotency_default.go.
  • Observability:
    • Wired SlowLogMiddleware into Builder.LogSlowWhen.
  • Performance & Zero-Alloc Guarantees:
    • Optimized Do() execution to avoid allocating execState and context.WithValue unless OnExecuted hooks are present, maintaining 0 allocations on hot paths.
    • Added dedicated regression unit tests in zero_alloc_test.go.
  • Resilience & Locking:
    • Guarded against false lease-loss reporting during normal context cancellation/shutdown in ExclusiveFenced.
  • Composition & Caching:
    • Pre-built chained actions in Chain() at composition time.
    • Suppressed OnExecuted hooks on cache hits and validated singleflight context isolation.

Verification

  • go test ./... — PASS
  • go test -race ./... — PASS
  • go vet ./... — PASS
  • go test -run none -bench . -benchmem ./action/... — 0 allocs/op verified

@nexssp
nexssp merged commit 9fc8314 into main Aug 31, 2026
2 checks passed
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.

2 participants