@sema-agent/client-core 0.85.0 → 0.85.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,6 +75,18 @@ export function taskRequestOmissionCauseDetail(cause) {
75
75
  const word = typeof cause === 'string' && cause.length > 0 ? cause : '(none)';
76
76
  return `a cause this build does not know (${word}) — this build does not know this cause: receipt causes come from this build's own frozen vocabulary, so a word outside it was not produced here; check whatever supplied it`;
77
77
  }
78
+ export const TASK_REQUEST_OMISSION_CAUSE_NOTICES = Object.freeze({
79
+ upstream_absent: 'Not sent with this request: this version has no way to send this setting in any request, so giving it or leaving it out makes no difference to what is sent.',
80
+ other_channel: 'Not sent from here: that part of the request belongs to a separate step, so what goes out for it, if anything, is decided there rather than by the value given here.',
81
+ off_lane: 'Not sent with this request: this kind of request does not carry this setting, so giving it or leaving it out makes no difference to what this request sends.',
82
+ not_live: 'Not sent with this request: the request was marked as not going to a live engine (for example an offline or test run), and this setting is only sent on requests that go to one.',
83
+ });
84
+ const TASK_REQUEST_OMISSION_UNKNOWN_CAUSE_NOTICE = 'Not sent with this request, for a reason this version does not recognize.';
85
+ export function taskRequestOmissionCauseNotice(cause) {
86
+ return typeof cause === 'string' && Object.hasOwn(TASK_REQUEST_OMISSION_CAUSE_NOTICES, cause)
87
+ ? TASK_REQUEST_OMISSION_CAUSE_NOTICES[cause]
88
+ : TASK_REQUEST_OMISSION_UNKNOWN_CAUSE_NOTICE;
89
+ }
78
90
  const row = (field) => ({ via: 'matrix', field });
79
91
  const INPUT_KEY_ROUTES = {
80
92
  objective: { via: 'always' },
@@ -11,12 +11,9 @@ export function noteBgOwnerAbsence(leg, taskId) {
11
11
  noted.delete(oldest);
12
12
  }
13
13
  noted.add(key);
14
- try {
15
- hostLog('warn', `[subagent-owner] ${leg}: no host-run mapping for ${taskId} — not connecting (owner ledger absent ⇒ honest absence; active-run fallback removed per [4000] Q3)`);
16
- }
17
- catch {
14
+ const delivered = hostLog('warn', `[subagent-owner] ${leg}: no host-run mapping for ${taskId} — not connecting (owner ledger absent ⇒ honest absence; active-run fallback removed per [4000] Q3)`);
15
+ if (!delivered)
18
16
  noted.delete(key);
19
- }
20
17
  }
21
18
  export function __resetBgOwnerAbsenceForTests() {
22
19
  noted.clear();