Module: ActiveHarness::Core::HookRunner

Included in:
Agent, Pipeline, Tribunal
Defined in:
lib/active_harness/core/hooks.rb

Overview

Shared hook execution logic included by Agent, Tribunal, and Pipeline.

Hooks are stored in arrays so multiple on/before/after/callback calls with the same event name accumulate — later registrations append rather than overwrite. This lets modules register default hooks without blocking user-defined hooks on the same event.

class MyAgent < ActiveHarness::Agent
  include SomeTracingConcern   # registers before(:call) internally
  before(:call) { ... }        # appends — both hooks run in order
end