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 d98ceea
Browse filesBrowse the repository at this point in the historyBrowse files
A refused renewal, backfill or launch says only why (#170)
Fixes#156: every hotclm flow refusal is an end node with outcome refused and a translated message (objectstack#15788 / #22450) instead of a throwing script; clm_backfill_refuse and clm_intake_refuse are removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017nzWFRUo2U7evMkPdVniAn
config: {outcome: 'refused',message: 'Counterparty {{ partyRecord.name }} is blocked and cannot be put on a new contract: {{ partyRecord.risk_note }}'},
return{signedAt: null,ok: false,problem: 'A signing date is required: a backfilled contract is one that was already executed, and the date it was executed is the fact being recorded.'};
message: 'A signing date is required: a backfilled contract is one that was already executed, and the date it was executed is the fact being recorded.',
167
+
},
168
+
},
169
+
{
170
+
id: 'refuse_date_invalid',
171
+
type: 'end',
172
+
label: 'Refuse — Signing Date Unreadable',
173
+
config: {outcome: 'refused',message: 'The signing date "{{ signed_date }}" is not a date.'},
174
+
},
175
+
{
176
+
id: 'refuse_date_future',
177
+
type: 'end',
178
+
label: 'Refuse — Signing Date In The Future',
179
+
config: {
180
+
outcome: 'refused',
181
+
message: 'The signing date is in the future. A backfill records a contract that has already been executed.',
// The same refusal `draft → submitted` makes in `contract.hook.ts`,
202
+
// repeated here because the backfill never passes that guard: a blocked
203
+
// counterparty is blocked whichever door the contract came in.
199
204
config: {
200
-
// The same refusal `draft → submitted` makes in `contract.hook.ts`,
201
-
// repeated here because the backfill never passes that guard: a
202
-
// blocked counterparty is blocked whichever door the contract came in.
203
-
function: 'clm_backfill_refuse',
204
-
inputs: {
205
-
message: 'That counterparty cannot be used: it is either missing or flagged blocked. A contract with a blocked counterparty is not recorded, even retrospectively.',
206
-
code: 'INVALID_REFERENCE',
207
-
},
205
+
outcome: 'refused',
206
+
message: 'That counterparty cannot be used: it is either missing or flagged blocked. A contract with a blocked counterparty is not recorded, even retrospectively.',
0 commit comments