Class: Ace::Hitl::Lifecycle::Binding
- Inherits:
-
Object
- Object
- Ace::Hitl::Lifecycle::Binding
- Defined in:
- lib/ace/hitl/lifecycle/binding.rb
Overview
The binding seam between the generic request lifecycle and the domain that owns Work/Attempt liveness and attribution (spec 8wm.t.y21 §1). The store REQUIRES a binding; the generic core never carries Work/Attempt semantics itself.
Implementations must fail closed: any doubt raises BindingError.
Instance Method Summary collapse
-
#require_active(work:, attempt:) ⇒ Object
Re-verify that the attempt is still live before an answer is delivered or consumed.
-
#validate_request(work:, attempt:, project:, requester:) ⇒ Object
Validate a request creation against the requester's exact live attempt.
Instance Method Details
#require_active(work:, attempt:) ⇒ Object
Re-verify that the attempt is still live before an answer is delivered or consumed. Raises BindingError when terminal.
21 22 23 |
# File 'lib/ace/hitl/lifecycle/binding.rb', line 21 def require_active(work:, attempt:) raise NotImplementedError end |
#validate_request(work:, attempt:, project:, requester:) ⇒ Object
Validate a request creation against the requester's exact live attempt. Raises BindingError on any violation or unavailability.
15 16 17 |
# File 'lib/ace/hitl/lifecycle/binding.rb', line 15 def validate_request(work:, attempt:, project:, requester:) raise NotImplementedError end |