Skip to content

refactor: remove gateway observer hooks and dead recorder exports#130

Merged
BYK merged 1 commit intomainfrom
cleanup/remove-observer-hooks
May 6, 2026
Merged

refactor: remove gateway observer hooks and dead recorder exports#130
BYK merged 1 commit intomainfrom
cleanup/remove-observer-hooks

Conversation

@BYK
Copy link
Copy Markdown
Owner

@BYK BYK commented May 6, 2026

Summary

  • Removed observer-only hooks from the plugin's gateway mode — they logged [verify] diagnostics for gradient/LTM but never compared against the gateway's actual decisions (write-only scaffolding)
  • Merged gateway provider routing into the normal hooks.config — gateway mode now runs the full plugin hooks, only difference is baseURL rewriting
  • Removed dead exports from recorder.ts: loadFixtures() and isRecording() (never called anywhere; replay interceptor and test infrastructure remain intact)
  • Updated AGENTS.md lore entries to reflect the simplified architecture

744 tests pass, all packages typecheck clean.

Observer hooks logged [verify] diagnostics but never compared against
gateway decisions — pure write-only scaffolding. Gateway mode now runs
the full plugin hooks with provider baseURL rewriting in the config hook.

Also removes unused loadFixtures() and isRecording() from recorder.ts.
Replay interceptor and test infrastructure remain intact.
@BYK BYK enabled auto-merge (squash) May 6, 2026 14:34
@BYK BYK merged commit ec14c0c into main May 6, 2026
1 check passed
@BYK BYK deleted the cleanup/remove-observer-hooks branch May 6, 2026 14:35
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.

1 participant