@signalridge/pi-goal 1.4.5 → 1.4.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @signalridge/pi-goal
2
2
 
3
+ ## 1.4.6
4
+ ### Patch Changes
5
+
6
+ - c2fd867: Treat unknown continuation-shaped user comments as ordinary input while retaining owned stale-delivery rejection and provenance guards.
7
+ - Updated dependencies [c2fd867]
8
+ - @signalridge/pi-ui@1.4.0
9
+
3
10
  ## 1.4.5
4
11
  ### Patch Changes
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalridge/pi-goal",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Pi extension for autonomous /goal completion with opt-in experimental ordered queues.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@narumitw/pi-tui-kit": "^0.54.0",
54
- "@signalridge/pi-ui": "^1.3.3"
54
+ "@signalridge/pi-ui": "^1.4.0"
55
55
  },
56
56
  "repository": {
57
57
  "type": "git",
package/src/runtime.ts CHANGED
@@ -1088,7 +1088,14 @@ export class GoalRuntime {
1088
1088
 
1089
1089
  markContinuationStarted(prompt: string) {
1090
1090
  const marker = extractContinuationMarker(prompt);
1091
- if (!marker) {
1091
+ const owned = Boolean(
1092
+ marker &&
1093
+ (this.continuationDelivery?.marker === marker ||
1094
+ this.claimedContinuationMarkers.has(marker) ||
1095
+ this.cancelledContinuationMarkers.has(marker)),
1096
+ );
1097
+ if (!owned) {
1098
+ // Marker-shaped user text is ordinary input, not proof of ownership.
1092
1099
  // A paused wait is not continuation work. An unrelated prompt can fail
1093
1100
  // before agent_settled, so its deadline must remain armed.
1094
1101
  if (this.activeGoal?.status === "paused" && this.activeGoal.wait) return undefined;
@@ -1098,6 +1105,7 @@ export class GoalRuntime {
1098
1105
  this.cancelContinuationWork();
1099
1106
  return undefined;
1100
1107
  }
1108
+ if (!marker) return undefined;
1101
1109
  if (this.continuationDelivery?.marker === marker) {
1102
1110
  this.continuationDelivery = undefined;
1103
1111
  this.rememberClaimedContinuationMarker(marker);