@ouro.bot/cli 0.1.0-alpha.1494 → 0.1.0-alpha.1496

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,13 +1,30 @@
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.1496",
6
+ "changes": [
7
+ "Eval sandbox: `runSandboxed` takes an optional agent profile, so a sandboxed run can put an agent other than the Butler in its container. The profile's bundle is mounted at `$HOME/AgentBundles/<agent>.ouro`, only its writable paths can be written, and the Telegram guest is started with `--agent <agent>`. A profile Docker could misread is refused before anything starts. Without a profile, a run is the Butler's and hands Docker exactly what it did before, byte for byte. The Docker job that runs the scripted sandbox cases in CI also runs a scripted interview conversation for an agent named `evalbot`, with no model call."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.1495",
12
+ "changes": [
13
+ "Update the Ouro UI files to Ouro UI v1.3.500."
14
+ ]
15
+ },
4
16
  {
5
17
  "version": "0.1.0-alpha.1494",
6
18
  "changes": [
7
- "Update the Ouro UI files to Ouro UI v1.3.498.",
8
19
  "When `npm publish` exits 0, the publish step's logged npm output now keeps the first 5 and last 15 lines of each stream. The first 20 lines of a large package's output are all file listing, which cut off npm's closing lines. Evidence only; not a fix for any cause."
9
20
  ]
10
21
  },
22
+ {
23
+ "version": "0.1.0-alpha.1493",
24
+ "changes": [
25
+ "Update the Ouro UI files to Ouro UI v1.3.498."
26
+ ]
27
+ },
11
28
  {
12
29
  "version": "0.1.0-alpha.1492",
13
30
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1494",
2
+ "runtimeVersion": "0.1.0-alpha.1496",
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.1494</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1496</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.INTERVIEW_GUEST_ENTRIES = exports.WRITABLE = exports.POCKETBOOK_ADDRESS = exports.LIBGEN_MIRRORS = exports.BUTLER_CONTAINERS = exports.EVAL_LABEL = exports.EVAL_RUN_PREFIX = exports.HOUSEHOLD_IMAGE = exports.SANDBOX_IMAGE = void 0;
6
+ exports.INTERVIEW_GUEST_ENTRIES = exports.POCKETBOOK_ADDRESS = exports.LIBGEN_MIRRORS = exports.BUTLER_CONTAINERS = exports.EVAL_LABEL = exports.EVAL_RUN_PREFIX = exports.HOUSEHOLD_IMAGE = exports.SANDBOX_IMAGE = void 0;
7
7
  exports.dockerCli = dockerCli;
8
8
  exports.buildSandboxImage = buildSandboxImage;
9
9
  exports.splitTurns = splitTurns;
@@ -17,10 +17,11 @@ exports.runSandboxed = runSandboxed;
17
17
  * - the household sidecar (`household.py`, uid 10002), answering as `calibre-web`, `smtp` and the libgen mirror
18
18
  * names over TLS signed by a test authority made for the run, whose key is deleted once it has signed. Its state
19
19
  * folder is a host folder the agent container never mounts, and its admin port listens on its own loopback only.
20
- * - the agent container (uid 10001, `HOME=/home/ouro`, `--agent sanctuary`), running the real Telegram turn
21
- * (`guest-entry.js`) on the projected bundle at the production path. The bundle is mounted read-only except the
22
- * places the turn and the books CLI write: `books/work`, `books/removed`, `books/ledger.ndjson`, `state`,
23
- * `friends` and `arc`. The test authority replaces the system trust store, and `books/credentials.json` is
20
+ * - the agent container (uid 10001, `HOME=/home/ouro`, `--agent <agent>`), running the real Telegram turn
21
+ * (`guest-entry.js`) on the profile's bundle at the production path, `$HOME/AgentBundles/<agent>.ouro`. The bundle is
22
+ * mounted read-only except the profile's writable paths. The Butler is the default profile; its writable paths are
23
+ * where the turn and the books CLI write: `books/work`, `books/removed`, `books/ledger.ndjson`, `state`, `friends`,
24
+ * `arc` and `desk/_record`. The test authority replaces the system trust store, and `books/credentials.json` is
24
25
  * synthetic. Its provider is the host's runtime, served over the container's stdin and stdout, so no credential
25
26
  * enters the container. Its `node` is execute-only, which leaves the guest undumpable: the shell the model runs
26
27
  * cannot reach the guest's stdio, memory or trace, so it cannot speak on that channel.
@@ -46,7 +47,7 @@ const provider_proxy_1 = require("../transport/provider-proxy");
46
47
  const telegram_turn_1 = require("../transport/telegram-turn");
47
48
  const declared_gaps_1 = require("./declared-gaps");
48
49
  const images_1 = require("./images");
49
- const projection_1 = require("./projection");
50
+ const agent_profile_1 = require("./agent-profile");
50
51
  const readback_1 = require("./readback");
51
52
  exports.SANDBOX_IMAGE = "ouro-eval-sandbox:local";
52
53
  exports.HOUSEHOLD_IMAGE = "ouro-eval-household:local";
@@ -59,9 +60,6 @@ exports.BUTLER_CONTAINERS = "^/?ouro-butler(-staging|-rollback)?$";
59
60
  exports.LIBGEN_MIRRORS = ["libgen.li", "libgen.bz", "libgen.gl", "libgen.la", "libgen.vg"];
60
61
  exports.POCKETBOOK_ADDRESS = "pocketbook@example.invalid";
61
62
  const ALIASES = ["calibre-web", "smtp", ...exports.LIBGEN_MIRRORS];
62
- const BUNDLE = "/home/ouro/AgentBundles/sanctuary.ouro";
63
- /** What the turn and the books CLI write; everything else in the bundle is read-only. */
64
- exports.WRITABLE = ["books/work", "books/removed", "books/ledger.ndjson", "state", "friends", "arc", "desk/_record"];
65
63
  const HARDENING = [
66
64
  "--log-driver", "none", "--read-only", "--cap-drop", "ALL", "--security-opt", "no-new-privileges", "--pids-limit", "512",
67
65
  "--memory", "2g", "--memory-swap", "2g", "--cpus", "2", "--ulimit", `fsize=${readback_1.SNAPSHOT_LIMITS.bytes}`,
@@ -203,6 +201,8 @@ async function runSandboxed(input) {
203
201
  const docker = input.docker ?? dockerCli();
204
202
  const images = input.images ?? { agent: exports.SANDBOX_IMAGE, household: exports.HOUSEHOLD_IMAGE };
205
203
  const agentImage = (0, images_1.agentImageOf)(images, input.guest?.image);
204
+ const profile = input.profile ?? (0, agent_profile_1.sanctuaryProfile)({ bundleDir: input.bundleDir, seedBundleDir: input.seedBundleDir });
205
+ (0, agent_profile_1.checkProfile)(profile);
206
206
  const runId = `${exports.EVAL_RUN_PREFIX}${node_crypto_1.default.randomBytes(4).toString("hex")}`;
207
207
  const runLabels = ["--label", exports.EVAL_LABEL, "--label", `ouro.eval.run=${runId}`];
208
208
  const last = input.case.prefix.at(-1);
@@ -235,7 +235,8 @@ async function runSandboxed(input) {
235
235
  ]);
236
236
  };
237
237
  try {
238
- const { gaps } = (0, projection_1.projectBundle)({ bundleDir: input.bundleDir, seedBundleDir: input.seedBundleDir, include: input.case.bundle.include, out: bundle });
238
+ // Every case is a books case, so the bundle source must make `books/` and each writable path, as the projection does.
239
+ const { gaps } = profile.bundleSource({ include: input.case.bundle.include, out: bundle });
239
240
  node_fs_1.default.writeFileSync(node_path_1.default.join(bundle, "books/credentials.json"), `${JSON.stringify(booksSettings(), null, 1)}\n`);
240
241
  for (const dir of [fixtures, tls, household])
241
242
  node_fs_1.default.mkdirSync(dir);
@@ -259,7 +260,7 @@ async function runSandboxed(input) {
259
260
  const turnFile = node_path_1.default.join(work, "turn.json");
260
261
  node_fs_1.default.writeFileSync(turnFile, JSON.stringify(input.guest ? input.guest.turn : { prefix: input.case.prefix.slice(0, -1), userText: last.content }));
261
262
  node_fs_1.default.chmodSync(household, 0o777);
262
- for (const entry of exports.WRITABLE)
263
+ for (const entry of profile.writable)
263
264
  openUp(node_path_1.default.join(bundle, entry));
264
265
  await docker.run(["network", "create", "--internal", ...runLabels, runId]);
265
266
  networkMade = true;
@@ -275,14 +276,14 @@ async function runSandboxed(input) {
275
276
  "--tls-cert", "/eval/tls/server.pem", "--tls-key", "/eval/tls/server.key",
276
277
  ]);
277
278
  await waitForReady(sidecar, input.readyTimeoutMs ?? 60_000);
278
- const before = (0, readback_1.snapshotFiles)(bundle, exports.WRITABLE);
279
+ const before = (0, readback_1.snapshotFiles)(bundle, [...profile.writable]);
279
280
  started.push(agentName);
280
281
  const agent = docker.start([
281
282
  "run", "-i", "--rm", "--name", agentName, ...runLabels, "--network", runId, "--user", "10001:10001", ...HARDENING,
282
283
  "--tmpfs", "/tmp:rw,mode=1777,size=256m", "--tmpfs", "/home/ouro:rw,uid=10001,gid=10001,mode=0700,size=256m", "--env", "HOME=/home/ouro",
283
- "-v", `${bundle}:${BUNDLE}:ro`, ...exports.WRITABLE.flatMap((entry) => ["-v", `${node_path_1.default.join(bundle, entry)}:${BUNDLE}/${entry}`]),
284
+ ...(0, agent_profile_1.bundleMounts)(profile, bundle),
284
285
  "-v", `${tls}/ca.pem:/etc/ssl/certs/ca-certificates.crt:ro`, "-v", `${turnFile}:/eval/turn.json:ro`,
285
- agentImage, "node", ...(input.guest ? [`/opt/ouro/dist/eval/${input.guest.entry}`] : ["/opt/ouro/dist/eval/guest-entry.js", "--agent", "sanctuary"]),
286
+ agentImage, "node", ...(input.guest ? [`/opt/ouro/dist/eval/${input.guest.entry}`] : ["/opt/ouro/dist/eval/guest-entry.js", "--agent", profile.agent]),
286
287
  ]);
287
288
  const hostCalls = [];
288
289
  const recorded = (0, telegram_turn_1.recordModelTraffic)(input.host, hostCalls);
@@ -308,7 +309,7 @@ async function runSandboxed(input) {
308
309
  }
309
310
  else {
310
311
  try {
311
- created = (0, readback_1.createdSince)(before, (0, readback_1.snapshotFiles)(bundle, exports.WRITABLE));
312
+ created = (0, readback_1.createdSince)(before, (0, readback_1.snapshotFiles)(bundle, [...profile.writable]));
312
313
  }
313
314
  catch (error) {
314
315
  turn = { timeline: [], finalReply: "", outcome: `sandbox-error: ${error.message}` };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1494",
3
+ "version": "0.1.0-alpha.1496",
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.1494",
9
+ "version": "0.1.0-alpha.1496",
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.1494",
3
+ "version": "0.1.0-alpha.1496",
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": {