@xiaozhiclaw/qlogicagent-core 0.3.0 → 0.4.1

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/README.md CHANGED
@@ -48,6 +48,10 @@ its own UI. Tool names and paths do not imply artifacts or business success.
48
48
  This library has no production dependencies, CLI, desktop host, local tool
49
49
  runtime, native session store or per-process credential/policy discovery.
50
50
  Unknown tool effects require product reconciliation before recovery.
51
+ Optional transport `bindModelRequest` selects an opaque account/origin reference
52
+ before dispatch; it is saved with the attempt and passed back during execution.
53
+ The product transport must query that same origin during recovery. It must not
54
+ switch accounts and treat a missing receipt as proof of rejection.
51
55
  Cloud tasks persist inference attempts before network I/O. Unknown model attempts
52
56
  require request-bound model-service evidence; acknowledged original responses can
53
57
  be replayed without another inference. Sensitive response bodies are excluded from
@@ -56,10 +60,32 @@ progress events. Provider usage is distinct from settlement evidence.
56
60
  Optional `assistantContext` binds module schema/prerequisites, enterprise configuration
57
61
  and source state, employee permissions, and versioned platform Skill/examples.
58
62
  Optional `goal` requires a product `verifyGoal` callback before semantic completion.
63
+ Products may resolve a user-confirmed goal from receipts with `resolveGoal`, and
64
+ return independent verification evidence to the same loop through `goalFeedback`.
65
+ The model can correct its work or use existing input/confirmation wait tools;
66
+ the product continues to own the acceptance criteria and verification rules.
67
+ Criteria may carry opaque product `parameters`; verification can return `expected`,
68
+ `observed`, `revision` and `detail` alongside source references. Core does not parse
69
+ domain rules or declare unsupported criteria satisfied.
70
+ Context anchors carry explicit revision/supersession/source references through
71
+ compaction, keeping unresolved conflicts visible. Product tools retrieve material.
72
+ Tool text is complete by default. The removed `maxToolResultChars` option is
73
+ replaced by optional product-owned `runtime.projectToolResult`; persisted receipts
74
+ retain the original result. No quality score controls execution.
59
75
  Task request/deadline budgets survive resume; products own atomic financial quota
60
76
  reservation through `reserveModelBudget`. Optional delta batching preserves control
61
77
  event order and cursor continuity. These contracts do not create new product stores,
62
78
  business rules, queues or accounting authorities.
79
+ `appendInput(context, taskId, {id, messages, data?})` lets a product append an authenticated
80
+ user amendment to a resolved completed/stopped task. The amendment ID is durable
81
+ and idempotent; a conflicting repeat is rejected. It preserves the original
82
+ request, deadline, cumulative model attempts, monetary ceiling and receipts.
83
+ Unresolved effects, pending waits and cancellation must use their existing
84
+ reconciliation/wait/cancellation paths first. The product's store must atomically
85
+ requeue the task with the amendment receipt and progress event.
86
+ Optional `data` stays in the durable product receipt and is not added to model
87
+ messages. Products can use it to retain source references or tool inputs without
88
+ repeating complete materials in every amendment prompt.
63
89
  Model retries require all three transport-error fields `retryable`, `safeToRetry`
64
90
  and `automaticRetryAuthorized` to be explicitly true (`ModelRetryAuthorization`).
65
91
  An unknown model outcome pauses a durable task for product reconciliation;