Record Class HumanDecision
- Record Components:
reviewId- the review session this decision belongs tofindingRuleId- theFinding.ruleIdthat triggered the escalationdecisionType- what the developer chose to docomment- optional developer note (free text, may be null)decidedAt- ISO-8601 timestamp of the decision
Analogy: like an approval record in a code review system —
when a reviewer clicks "Approve" or "Request Changes" on a GitHub PR,
that decision is stamped with who decided, what they decided, and when.
HumanDecision is the Workshop's equivalent of that approval stamp.
Created by: RespondToEscalationTool when the developer responds
to an escalation in Claude Desktop. Stored in ReviewReport.humanDecisions
as a permanent audit trail of every human intervention in the review.
CERTIFICATION NOTE — Domain 1: Agentic Architecture & Orchestration (27%):
HumanDecision is the re-entry point into the agentic loop after a pause.
When OrchestratorAgent.resumeAfterEscalation() receives this object,
it uses decisionType to determine the next stage: update the finding,
recalculate safeToMerge, and continue dispatching remaining agents.
CERTIFICATION NOTE — Domain 5: Context Management & Reliability (15%):
Human-in-the-loop is the pattern where an autonomous agent pauses
and yields control to a human for a specific decision, then resumes.
HumanDecision is the object that carries the human's verdict
back into the agentic loop. This is one of the most tested patterns
in the exam — understand what triggers it and what resumes after it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe three choices available to the developer when an escalation occurs. -
Constructor Summary
ConstructorsConstructorDescriptionHumanDecision(String reviewId, String findingRuleId, HumanDecision.DecisionType decisionType, String comment, String decidedAt) Creates an instance of aHumanDecisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()Returns the value of thecommentrecord component.Returns the value of thedecidedAtrecord component.Returns the value of thedecisionTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefindingRuleIdrecord component.final inthashCode()Returns a hash code value for this object.reviewId()Returns the value of thereviewIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HumanDecision
public HumanDecision(String reviewId, String findingRuleId, HumanDecision.DecisionType decisionType, String comment, String decidedAt) Creates an instance of aHumanDecisionrecord class.- Parameters:
reviewId- the value for thereviewIdrecord componentfindingRuleId- the value for thefindingRuleIdrecord componentdecisionType- the value for thedecisionTyperecord componentcomment- the value for thecommentrecord componentdecidedAt- the value for thedecidedAtrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
reviewId
Returns the value of thereviewIdrecord component.- Returns:
- the value of the
reviewIdrecord component
-
findingRuleId
Returns the value of thefindingRuleIdrecord component.- Returns:
- the value of the
findingRuleIdrecord component
-
decisionType
Returns the value of thedecisionTyperecord component.- Returns:
- the value of the
decisionTyperecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-
decidedAt
Returns the value of thedecidedAtrecord component.- Returns:
- the value of the
decidedAtrecord component
-