@tekmidian/pai 0.18.4 → 0.18.5

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.
package/docs/task-bus.md CHANGED
@@ -175,6 +175,27 @@ indistinguishable from being ignored. On delivery the receiver counts open
175
175
  tasks sharing a title and appends a note naming the count. Say which id you
176
176
  answered on.
177
177
 
178
+ **Long content goes in a file, not in the task.** Todoist caps a task
179
+ description at 16,383 characters and enforces it by **truncation, not
180
+ rejection** — the request returns 200 and reports success. Measured 2026-08-02:
181
+ 19,457 characters sent, 16,383 stored, 3,074 lost off the end. What went missing
182
+ was a runbook's close-out section, including the command that marks the task
183
+ done, so a session working from it would have done the job correctly and then
184
+ left the task showing a run in progress.
185
+
186
+ Since v0.18.4 `pai task add` compares what came back against what was sent and
187
+ warns on stderr with both counts. **That does not prevent the loss.** The tail is
188
+ still gone; the warning only makes a silent failure a loud one, and whether
189
+ anything happens next depends on someone reading stderr. Visible failure is not
190
+ absence of failure — put the runbook in a file and let the description point at
191
+ it.
192
+
193
+ The check compares lengths rather than testing against 16,383 on purpose. The
194
+ number is worth less than the shape: an API reporting success for an operation
195
+ that did not fully happen stays invisible until someone inspects the artifact
196
+ instead of the return value, and a hardcoded limit would be silently defeated by
197
+ a sink that changes its cap.
198
+
178
199
  **Agent-authored content is marked** so a reply posted by a session does not
179
200
  come back as a fresh instruction and loop.
180
201
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekmidian/pai",
3
- "version": "0.18.4",
3
+ "version": "0.18.5",
4
4
  "description": "PAI Knowledge OS — Personal AI Infrastructure with federated memory and project management",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",