@ouro.bot/cli 0.1.0-alpha.1719 → 0.1.0-alpha.1720

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.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "_note": "Each pull request writes its own change note under changes/; the release job on main gives each landed change its version and adds the notes here (scripts/release-version.cjs). On main this file stops at the last version set by hand; the published package has every release. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.1720",
6
+ "changes": [
7
+ "The Butler's product registration now says when one of its live acceptance runs is in progress, and Telegram reads that to decide when to record the run's evidence. Telegram used to read the Butler's acceptance marker directly. Behaviour is unchanged on the Butler's image. An agent with no product never has an acceptance run."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1719",
6
12
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1719",
2
+ "runtimeVersion": "0.1.0-alpha.1720",
3
3
  "bundleSchemaVersion": 3,
4
4
  "lastUpdated": "2026-09-03T00:00:00.000Z"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <Container version="2">
3
3
  <Name>ouro-butler</Name>
4
- <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1719</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1720</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -18,6 +18,9 @@ exports.productSenseRepairHint = productSenseRepairHint;
18
18
  exports.productSenseReadiness = productSenseReadiness;
19
19
  exports.productSenseOwnerName = productSenseOwnerName;
20
20
  exports.productSenseOwnerReply = productSenseOwnerReply;
21
+ exports.productAcceptanceMarker = productAcceptanceMarker;
22
+ exports.productAcceptanceEventMeta = productAcceptanceEventMeta;
23
+ exports.productRunAcceptanceApproved = productRunAcceptanceApproved;
21
24
  const runtime_1 = require("../../nerves/runtime");
22
25
  const container_runtime_1 = require("../daemon/container-runtime");
23
26
  /** The seam version this harness runs. A product built for another stops the start. */
@@ -284,3 +287,27 @@ function productSenseOwnerReply(agentName, sense, reply) {
284
287
  throw error;
285
288
  }
286
289
  }
290
+ /** The product's acceptance run in progress for this agent, or null (no product, or no run). A throw fails the caller. */
291
+ function productAcceptanceMarker(agentName) {
292
+ const product = productFor(agentName);
293
+ const acceptance = product?.acceptance;
294
+ if (!acceptance)
295
+ return null;
296
+ try {
297
+ return acceptance.marker(agentName);
298
+ }
299
+ catch (error) {
300
+ hookFailed(product, "acceptance.marker", agentName, error, "the product's acceptance marker can't be read, so the caller fails");
301
+ throw error;
302
+ }
303
+ }
304
+ /** The acceptance run's evidence fields for an event: its digest while a run is in progress, nothing otherwise. */
305
+ function productAcceptanceEventMeta(agentName) {
306
+ const marker = productAcceptanceMarker(agentName);
307
+ return marker ? { scenarioHandleDigest: marker.scenarioHandleDigest } : {};
308
+ }
309
+ /** Runs an approved tool call bound to its approval inside the product's acceptance run; runs it plainly without a product. */
310
+ function productRunAcceptanceApproved(agentName, approval, operation) {
311
+ const acceptance = productFor(agentName)?.acceptance;
312
+ return acceptance ? acceptance.runApproved(approval, operation) : operation();
313
+ }
@@ -192,6 +192,11 @@ exports.product = {
192
192
  },
193
193
  escalation: true,
194
194
  },
195
+ // The Butler's live acceptance harness marks a run in its bundle; Telegram records the run's evidence while one is in progress.
196
+ acceptance: {
197
+ marker: (agentName) => (0, sanctuary_acceptance_marker_1.readSanctuaryAcceptanceMarker)(agentName),
198
+ runApproved: (approval, operation) => (0, sanctuary_acceptance_marker_1.runWithSanctuaryAcceptanceApproval)(approval, operation),
199
+ },
195
200
  // J5: the house check runs in the daemon, and only Supercronic may fire it on its cron schedule.
196
201
  habits: {
197
202
  "sanctuary-health": {
@@ -48,7 +48,7 @@ const tool_approval_1 = require("../heart/tool-approval");
48
48
  const core_1 = require("../heart/core");
49
49
  const identity_1 = require("../heart/identity");
50
50
  const session_events_1 = require("../heart/session-events");
51
- const sanctuary_acceptance_marker_1 = require("../heart/daemon/sanctuary-acceptance-marker");
51
+ const active_1 = require("../heart/product/active");
52
52
  const telegram_1 = require("./telegram");
53
53
  const context_1 = require("../mind/context");
54
54
  const session_transaction_1 = require("../mind/session-transaction");
@@ -190,7 +190,7 @@ function createTelegramApprovalRuntime(options) {
190
190
  meta: { agentName: options.agentName },
191
191
  });
192
192
  const now = options.dependencies?.now ?? Date.now;
193
- const acceptanceMarker = options.dependencies?.acceptanceMarker ?? (() => (0, sanctuary_acceptance_marker_1.readSanctuaryAcceptanceMarker)(options.agentName));
193
+ const acceptanceMarker = options.dependencies?.acceptanceMarker ?? (() => (0, active_1.productAcceptanceMarker)(options.agentName));
194
194
  const provider = options.dependencies?.runProvider ?? core_1.runAgent;
195
195
  const resolveTool = options.dependencies?.resolveTool ?? tools_1.resolveToolDefinition;
196
196
  const agentRoot = options.dependencies?.agentRoot ?? (0, identity_1.getAgentRoot)(options.agentName);
@@ -636,7 +636,7 @@ function createTelegramApprovalRuntime(options) {
636
636
  const approvedToolContext = invocationContext(current, definition, restartApproval);
637
637
  const execute = () => executeApprovedTelegramTool(name, args, (toolName, toolArgs) => (0, tools_1.executeTool)(toolName, toolArgs, approvedToolContext, options.dependencies?.executeTool), decisionScenarioDigest, existing.approvalId, effectBarrier);
638
638
  return decisionScenarioDigest
639
- ? (0, sanctuary_acceptance_marker_1.runWithSanctuaryAcceptanceApproval)({ approvalId: existing.approvalId, argumentDigest: existing.argumentDigest }, execute)
639
+ ? (0, active_1.productRunAcceptanceApproved)(options.agentName, { approvalId: existing.approvalId, argumentDigest: existing.argumentDigest }, execute)
640
640
  : execute();
641
641
  },
642
642
  }));
@@ -64,7 +64,6 @@ const path = __importStar(require("node:path"));
64
64
  const friends_1 = require("@ouro.bot/friends");
65
65
  const delegated_command_1 = require("../a2a/delegated-command");
66
66
  const identity_1 = require("../heart/identity");
67
- const sanctuary_acceptance_marker_1 = require("../heart/daemon/sanctuary-acceptance-marker");
68
67
  const runtime_credentials_1 = require("../heart/runtime-credentials");
69
68
  const runtime_1 = require("../nerves/runtime");
70
69
  const chat_interaction_1 = require("../heart/chat-interaction");
@@ -655,7 +654,7 @@ function createTelegramSenseApp(options) {
655
654
  const useSanctuaryRuntime = (0, butler_agent_1.isButlerAgent)(options.agentName) && !options.runTurn;
656
655
  const readScenarioHandleDigest = () => (options.acceptanceMarker
657
656
  ? options.acceptanceMarker()
658
- : (0, sanctuary_acceptance_marker_1.readSanctuaryAcceptanceMarker)(options.agentName))?.scenarioHandleDigest;
657
+ : (0, active_1.productAcceptanceMarker)(options.agentName))?.scenarioHandleDigest;
659
658
  let acceptanceAuditLease;
660
659
  const retireAcceptanceAudit = () => {
661
660
  const lease = acceptanceAuditLease;
@@ -1674,8 +1673,8 @@ function createTelegramSenseApp(options) {
1674
1673
  const currentSessionKey = configuredOwnerSessionKey;
1675
1674
  const currentSessionPath = (0, shared_turn_1.getSenseSessionPath)(options.agentName, currentFriendId, "telegram", currentSessionKey, agentRoot);
1676
1675
  const inboundReference = `telegram-inbound:${(0, node_crypto_1.createHmac)("sha256", identityKey).update(`${message.updateId}\0${message.messageId}`).digest("hex")}`;
1677
- const acceptanceMarker = options.acceptanceMarker ? options.acceptanceMarker() : (0, sanctuary_acceptance_marker_1.readSanctuaryAcceptanceMarker)(options.agentName);
1678
- const acceptanceMeta = (0, sanctuary_acceptance_marker_1.sanctuaryAcceptanceEventMeta)(options.agentName);
1676
+ const acceptanceMarker = options.acceptanceMarker ? options.acceptanceMarker() : (0, active_1.productAcceptanceMarker)(options.agentName);
1677
+ const acceptanceMeta = (0, active_1.productAcceptanceEventMeta)(options.agentName);
1679
1678
  const groundedAcceptance = acceptanceMarker?.label === "unit-16d-whats-up" || acceptanceMarker?.label === "unit-16d-1-space";
1680
1679
  const acceptanceSchema = groundedAcceptance ? "sanctuary-telegram-turn-receipt-v4" : "sanctuary-telegram-turn-receipt-v3";
1681
1680
  const auditDigest = (purpose, value) => sanctuaryTelegramTurnReceiptDigest(identityKey, acceptanceSchema, purpose, value);
@@ -2128,7 +2127,7 @@ function createTelegramSenseApp(options) {
2128
2127
  transportMetadata: authorityTransport.metadataForUpdate,
2129
2128
  } : {}),
2130
2129
  acceptanceEventMeta: (update, distinctAccount) => {
2131
- const marker = options.acceptanceMarker ? options.acceptanceMarker() : (0, sanctuary_acceptance_marker_1.readSanctuaryAcceptanceMarker)(options.agentName);
2130
+ const marker = options.acceptanceMarker ? options.acceptanceMarker() : (0, active_1.productAcceptanceMarker)(options.agentName);
2132
2131
  if (!marker)
2133
2132
  return {};
2134
2133
  const auditOwnerMeta = acceptanceAuditLease ? { acceptanceAuditOwnerDigest: acceptanceAuditLease.ownerDigest } : {};
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1719",
3
+ "version": "0.1.0-alpha.1720",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@ouro.bot/cli",
9
- "version": "0.1.0-alpha.1719",
9
+ "version": "0.1.0-alpha.1720",
10
10
  "bundleDependencies": [
11
11
  "@ouro.bot/friends"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1719",
3
+ "version": "0.1.0-alpha.1720",
4
4
  "description": "Ouroboros, the agent harness: agents with durable memory that live where you talk (terminal, Teams, iMessage, mail, voice) and use real tools. Start with npx ouro.bot@latest.",
5
5
  "homepage": "https://ouroboros.bot/",
6
6
  "engines": {