aibroker 0.17.5 → 0.17.7

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.
@@ -79,17 +79,21 @@ export declare function sweepAbandonedClaims(release: (taskId: string) => Promis
79
79
  /**
80
80
  * May this claim be released yet?
81
81
  *
82
- * Releasing before the completion lands splits finishing a run into two steps
83
- * that are not atomic. A session that drops the claim and then dies leaves the
84
- * task unclaimed and still overdue so the next poll dispatches it as ordinary
85
- * overdue work, and the same sweep runs a second time looking spontaneous.
82
+ * The risk being guarded is precise: a task that is UNCLAIMED AND OVERDUE is
83
+ * ordinary overdue work, and the next poll dispatches it. So a session that
84
+ * drops its claim before the completion lands makes the same run happen again,
85
+ * looking spontaneous. Finishing is two steps that are not atomic and the
86
+ * ordering is not ours to enforce, so we check the state instead of trusting it.
86
87
  *
87
- * The completion is observable: on a recurring task it advances the due date
88
- * again, past the occurrence recorded when the claim was taken. So we can tell
89
- * the two apart rather than trusting an ordering we do not control.
88
+ * The test is therefore "is the task still overdue", not "has the due date
89
+ * advanced past the occurrence I recorded". The first version compared against
90
+ * the recorded occurrence, which breaks the moment anything legitimately moves
91
+ * the date BACKWARDS — PAI restores the occurrence a manual trigger consumed,
92
+ * so a schedule repair would have made this refuse a release on a run that
93
+ * genuinely finished. A stuck claim caused by a correct repair.
90
94
  *
91
- * Refusing here inverts the failure in the direction both sides agreed on a
92
- * claim stuck until a timer releases it, rather than a run nobody asked for.
95
+ * Refusing inverts the failure in the direction both sides agreed on: a claim
96
+ * stuck until a timer releases it, rather than a run nobody asked for.
93
97
  */
94
98
  export declare function mayRelease(taskId: string, currentDue: string | undefined): {
95
99
  ok: true;
@@ -1 +1 @@
1
- {"version":3,"file":"todoist-claims.d.ts","sourceRoot":"","sources":["../../src/daemon/todoist-claims.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAUH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wB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AE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAoBvH"}
@@ -132,38 +132,42 @@ export async function sweepAbandonedClaims(release, now = Date.now()) {
132
132
  /**
133
133
  * May this claim be released yet?
134
134
  *
135
- * Releasing before the completion lands splits finishing a run into two steps
136
- * that are not atomic. A session that drops the claim and then dies leaves the
137
- * task unclaimed and still overdue so the next poll dispatches it as ordinary
138
- * overdue work, and the same sweep runs a second time looking spontaneous.
135
+ * The risk being guarded is precise: a task that is UNCLAIMED AND OVERDUE is
136
+ * ordinary overdue work, and the next poll dispatches it. So a session that
137
+ * drops its claim before the completion lands makes the same run happen again,
138
+ * looking spontaneous. Finishing is two steps that are not atomic and the
139
+ * ordering is not ours to enforce, so we check the state instead of trusting it.
139
140
  *
140
- * The completion is observable: on a recurring task it advances the due date
141
- * again, past the occurrence recorded when the claim was taken. So we can tell
142
- * the two apart rather than trusting an ordering we do not control.
141
+ * The test is therefore "is the task still overdue", not "has the due date
142
+ * advanced past the occurrence I recorded". The first version compared against
143
+ * the recorded occurrence, which breaks the moment anything legitimately moves
144
+ * the date BACKWARDS — PAI restores the occurrence a manual trigger consumed,
145
+ * so a schedule repair would have made this refuse a release on a run that
146
+ * genuinely finished. A stuck claim caused by a correct repair.
143
147
  *
144
- * Refusing here inverts the failure in the direction both sides agreed on a
145
- * claim stuck until a timer releases it, rather than a run nobody asked for.
148
+ * Refusing inverts the failure in the direction both sides agreed on: a claim
149
+ * stuck until a timer releases it, rather than a run nobody asked for.
146
150
  */
147
151
  export function mayRelease(taskId, currentDue) {
148
152
  const claim = listClaims().find((c) => c.taskId === taskId);
149
153
  // Nothing recorded: there is no in-flight run to protect.
150
154
  if (!claim)
151
155
  return { ok: true };
152
- // No occurrence recorded, or none readable now cannot tell, so allow it
153
- // rather than strand a session that has genuinely finished.
154
- if (!claim.nextDue || !currentDue)
156
+ // Cannot tell — no due date, or the task could not be read. Allow it: a guard
157
+ // that strands a session unable to clear its own claim is the same silence
158
+ // one step along.
159
+ if (!currentDue)
155
160
  return { ok: true };
156
- const claimed = Date.parse(claim.nextDue);
157
- const now = Date.parse(currentDue);
158
- if (!Number.isFinite(claimed) || !Number.isFinite(now))
161
+ const due = Date.parse(currentDue);
162
+ if (!Number.isFinite(due))
159
163
  return { ok: true };
160
- if (now > claimed)
164
+ if (due > Date.now())
161
165
  return { ok: true };
162
166
  return {
163
167
  ok: false,
164
- reason: "the task has not been completed yet its due date has not advanced since the trigger. " +
165
- "Complete it first, then release: dropping the claim now would leave the task unclaimed " +
166
- "and overdue, and the next poll would run it again.",
168
+ reason: "the task is still overdue, so the completion has not landed. Complete it first, then " +
169
+ "release: dropping the claim while it is overdue leaves ordinary overdue work behind, " +
170
+ "and the next poll would run it again.",
167
171
  };
168
172
  }
169
173
  //# sourceMappingURL=todoist-claims.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"todoist-claims.js","sourceRoot":"","sources":["../../src/daemon/todoist-claims.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAErC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,qBAAqB,CAAC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAEtD,+EAA+E;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEnD,sFAAsF;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AA0D;IAC1D,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IAChC,8EAA8E;IAC9E,2EAA2E;IAC3E,kBAAkB;IAClB,IAAI,CAAC,UAAU;QAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IAErC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IACnC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IAC/C,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;QAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IAE1C,OAAO;QACL,EAAE,EAAE,KAAK;QACT,MAAM,EACJ,uFAAuF;YACvF,uFAAuF;YACvF,uCAAuC;KAC1C,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aibroker",
3
- "version": "0.17.5",
3
+ "version": "0.17.7",
4
4
  "description": "Platform-agnostic AI message broker — routes between user channels and AI backends",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",