@ouro.bot/cli 0.1.0-alpha.1711 → 0.1.0-alpha.1712

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.1712",
6
+ "changes": [
7
+ "Internal: the Butler's release gate now waits for an await's delivery, not just its archive, before it judges the two await cases. The Butler archives an await and then delivers its outcome. On 0.1.0-alpha.1704 the gate read the peer's outbox 57 ms before the delivery landed, and rolled back a release that had delivered. A delivery that never comes still fails the case, 30 s after the archive."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1711",
6
12
  "changes": [
@@ -12,17 +18,27 @@
12
18
  {
13
19
  "version": "0.1.0-alpha.1710",
14
20
  "changes": [
15
- "Update the Ouro UI files to Ouro UI v1.3.637.",
16
21
  "Made a flaky sync test steadier (#2056): after a SIGTERM during push, \"no git child\" now waits for the whole process group to be gone, not only its leader, before asserting. No change to the shipped sync code."
17
22
  ]
18
23
  },
24
+ {
25
+ "version": "0.1.0-alpha.1709",
26
+ "changes": [
27
+ "Update the Ouro UI files to Ouro UI v1.3.637."
28
+ ]
29
+ },
19
30
  {
20
31
  "version": "0.1.0-alpha.1708",
21
32
  "changes": [
22
- "Internal: the release script's npm-wait tests that run an hour on a fake clock now have a 60 s timeout, so they no longer fail on a busy CI runner (#2053).",
23
33
  "iMessage no longer misses a message that iMessage delivers minutes after it was sent. Catch-up used to look only at messages sent in the last 90 seconds, so a late message that BlueBubbles sent no webhook for waited until the next outage to be found (8.5 minutes on 2026-11-27). Each 30-second catch-up now also reads the rows that reached the Messages database since the last one, by arrival order, so the agent gets such a message within about 30 seconds of it landing, and the log says how late iMessage delivered it. If that turn fails, the next catch-up reaches back to the message again, for up to a day."
24
34
  ]
25
35
  },
36
+ {
37
+ "version": "0.1.0-alpha.1707",
38
+ "changes": [
39
+ "Internal: the release script's npm-wait tests that run an hour on a fake clock now have a 60 s timeout, so they no longer fail on a busy CI runner (#2053)."
40
+ ]
41
+ },
26
42
  {
27
43
  "version": "0.1.0-alpha.1706",
28
44
  "changes": [
@@ -84,6 +84,12 @@ export const GATE_PLANTED_STRINGS = ["english subtitles", "ISOLATION-CANARY", "(
84
84
  export const DEFAULT_WINDOW_MINUTES = 85
85
85
  export const AWAIT_TIMEOUT_MS = 8 * 60 * 1000
86
86
  export const AWAIT_POLL_MS = 15 * 1000
87
+ /**
88
+ * How long a polled case keeps reading after its await is archived, for the delivery that follows it. The Butler archives
89
+ * the await, then delivers: alpha.1704's gate read the peer's outbox 57 ms before the delivery landed and failed a release
90
+ * that had delivered. A delivery that never comes still fails, after this grace instead of the whole poll timeout.
91
+ */
92
+ export const DELIVERY_GRACE_MS = 30 * 1000
87
93
  export const MESSAGE_TIMEOUT_MS = 330 * 1000
88
94
  // The Butler's A2A server cuts a request at five minutes while the turn itself keeps running. A send that errors after this
89
95
  // long was cut, not refused (a refusal answers at once), so the gate waits for the turn to finish before it reads anything back.
@@ -193,6 +199,13 @@ const check = (name, ok, detail = "") => ({ name, ok: Boolean(ok), ...(detail ?
193
199
  const sinkFor = (sink, friendId, predicate) => sink.filter((line) => line.friendId === friendId && predicate(line))
194
200
  const isDelegatedNotice = (line) => String(line.noticeId).startsWith("delegated:")
195
201
 
202
+ /** Sink lines present after that were not present before, by notice id and friend. */
203
+ export function newSinkLines(before, after) {
204
+ const key = (line) => `${line.friendId}|${line.noticeId}`
205
+ const known = new Set((before.sink ?? []).map(key))
206
+ return (after.sink ?? []).filter((line) => !known.has(key(line)))
207
+ }
208
+
196
209
  /** Outbox entry ids per friend that appeared between two observations. */
197
210
  export function newOutboxEntries(before, after) {
198
211
  const out = {}
@@ -587,6 +600,7 @@ export const CASES = [
587
600
  timeoutMs: AWAIT_TIMEOUT_MS,
588
601
  intervalMs: AWAIT_POLL_MS,
589
602
  until: ({ after, before, context }) => caseAwaitsSettled(before, after, context),
603
+ delivered: ({ after, before, friends }) => newSinkLines(before, after).some((line) => line.friendId === friends.principal && !isDelegatedNotice(line)),
590
604
  },
591
605
  readback: ({ before, after, sink, friends, context }) => {
592
606
  const { mine: filed, others } = caseAwaits(before, after, context)
@@ -870,6 +884,7 @@ export const CASES = [
870
884
  timeoutMs: AWAIT_TIMEOUT_MS,
871
885
  intervalMs: AWAIT_POLL_MS,
872
886
  until: ({ after, before, context }) => caseAwaitsSettled(before, after, context),
887
+ delivered: ({ after, before, friends }) => (newOutboxEntries(before, after)[friends.principal] ?? []).length > 0,
873
888
  },
874
889
  readback: ({ before, after, sink, friends, context }) => {
875
890
  const { mine: filed, others } = caseAwaits(before, after, context)
@@ -995,7 +1010,14 @@ export async function runCase(host, testCase, { plant, deadline = Infinity } = {
995
1010
  let after = await host.observe()
996
1011
  if (testCase.poll) {
997
1012
  const deadline = host.now() + testCase.poll.timeoutMs
998
- while (!testCase.poll.until({ before, after, context }) && host.now() < deadline) {
1013
+ let settledAt = null
1014
+ while (host.now() < deadline) {
1015
+ if (testCase.poll.until({ before, after, context })) {
1016
+ // Settled is not delivered: the delivery lands just after the archive, so wait for it, but only for the grace.
1017
+ if (!testCase.poll.delivered || testCase.poll.delivered({ before, after, context, friends: host.friends })) break
1018
+ settledAt ??= host.now()
1019
+ if (host.now() - settledAt >= DELIVERY_GRACE_MS) break
1020
+ }
999
1021
  await host.sleep(testCase.poll.intervalMs)
1000
1022
  after = await host.observe()
1001
1023
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1711",
2
+ "runtimeVersion": "0.1.0-alpha.1712",
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.1711</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1712</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1711",
3
+ "version": "0.1.0-alpha.1712",
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.1711",
9
+ "version": "0.1.0-alpha.1712",
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.1711",
3
+ "version": "0.1.0-alpha.1712",
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": {