You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 91a79dd
Browse filesBrowse the repository at this point in the historyBrowse files
A decided review records when legal decided (#163)
Fixes#159: hook review_decision_stamp stamps clm_review.decided_at when the decision leaves pending, on insert and update, unless a value is set; it never overwrites or clears one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017nzWFRUo2U7evMkPdVniAn
description: 'Stamp decided_at when a review is given a decision (approved, changes requested or rejected), on create as well as on update, unless one is set explicitly.',
969
+
handler: async(ctx: HookContext)=>{
970
+
// The review's counterpart of the deviation's decided_at stamp: the
971
+
// decision is legal's to make, the platform records WHEN. It fills an
972
+
// empty decided_at and never overwrites or clears one, so a time the
973
+
// lawyer typed — in this write or an earlier one — is kept.
974
+
//
975
+
// A review has no decided_by: its `reviewer` is the person who decides
976
+
// (DESIGN.md §03 lists only decided_at on clm_review).
977
+
//
978
+
// Back to `pending` is not refused — unlike a deviation, a review's
979
+
// decision has no transition table in §03 — and it does not clear the
980
+
// stamp either: the hook cannot tell a stamped time from a typed one, and
0 commit comments