@ouro.bot/cli 0.1.0-alpha.1490 → 0.1.0-alpha.1491
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 +13 -2
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/eval/interview-entry.js +3 -5
- package/dist/eval/sandbox/docker.js +3 -1
- package/dist/eval/sandbox/images.js +39 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
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.1491",
|
|
6
|
+
"changes": [
|
|
7
|
+
"An eval guest can now run in its own agent image. The guest names the image, and the run's images map that name to a tag, which the interviews command takes as `--images <agent>,<household>,<name>=<tag>`. The household always runs from its own image. A guest whose name the run doesn't map is refused before anything starts."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1490",
|
|
6
12
|
"changes": [
|
|
7
|
-
"Update the Ouro UI files to Ouro UI v1.3.494.",
|
|
8
|
-
"The eval sandbox has a second interview guest, `h-guest-entry.js`, for the blind interviews' H product. H compares whole harnesses, so each arm runs its own agent loop rather than the neutral loop. The ouro arm is the harness's own Telegram turn on the mounted bundle, with the label line added to its system prompt and the debrief sent as the owner's next message. The other H arms plug in by name later. The sandbox's guest entries are now one list, which the agent image keeps; a test checks the Dockerfile against that list, and a scripted run of the ouro arm in the built image checks that everything the entry loads is there.",
|
|
9
13
|
"The edge benchmark now looks for the daemon socket every 5 ms instead of every 50 ms, so the measured time to socket is no longer rounded to 50 ms steps. Benchmark tooling only; no runtime change."
|
|
10
14
|
]
|
|
11
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"version": "0.1.0-alpha.1489",
|
|
18
|
+
"changes": [
|
|
19
|
+
"Update the Ouro UI files to Ouro UI v1.3.494.",
|
|
20
|
+
"The eval sandbox has a second interview guest, `h-guest-entry.js`, for the blind interviews' H product. H compares whole harnesses, so each arm runs its own agent loop rather than the neutral loop. The ouro arm is the harness's own Telegram turn on the mounted bundle, with the label line added to its system prompt and the debrief sent as the owner's next message. The other H arms plug in by name later. The sandbox's guest entries are now one list, which the agent image keeps; a test checks the Dockerfile against that list, and a scripted run of the ouro arm in the built image checks that everything the entry loads is there."
|
|
21
|
+
]
|
|
22
|
+
},
|
|
12
23
|
{
|
|
13
24
|
"version": "0.1.0-alpha.1487",
|
|
14
25
|
"changes": [
|
|
@@ -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.
|
|
4
|
+
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1491</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -21,6 +21,7 @@ const loop_1 = require("./interviews/guest/loop");
|
|
|
21
21
|
const self_test_1 = require("./self-test");
|
|
22
22
|
const report_1 = require("./report");
|
|
23
23
|
const docker_1 = require("./sandbox/docker");
|
|
24
|
+
const images_1 = require("./sandbox/images");
|
|
24
25
|
const host_lock_1 = require("./sandbox/host-lock");
|
|
25
26
|
const remote_1 = require("./sandbox/remote");
|
|
26
27
|
const targets_1 = require("./targets");
|
|
@@ -81,7 +82,7 @@ async function main() {
|
|
|
81
82
|
const ssh = take(process.argv.slice(2), "--sandbox-ssh");
|
|
82
83
|
const bundle = take(ssh.rest, "--bundle");
|
|
83
84
|
const seed = take(bundle.rest, "--seed-bundle");
|
|
84
|
-
// `--images <agent>,<household
|
|
85
|
+
// `--images <agent>,<household>[,<name>=<agent image>...]`: image tags of this run's own (`parseSandboxImages`).
|
|
85
86
|
const tags = take(seed.rest, "--images");
|
|
86
87
|
const hostLock = take(tags.rest, "--host-lock");
|
|
87
88
|
if (!bundle.value)
|
|
@@ -95,10 +96,7 @@ async function main() {
|
|
|
95
96
|
if (!ssh.value)
|
|
96
97
|
throw new Error("--host-lock needs --sandbox-ssh");
|
|
97
98
|
}
|
|
98
|
-
const
|
|
99
|
-
if (tags.value && !(agent && household))
|
|
100
|
-
throw new Error("--images must be <agent image>,<household image>");
|
|
101
|
-
const images = agent && household ? { agent, household } : undefined;
|
|
99
|
+
const images = tags.value === undefined ? undefined : (0, images_1.parseSandboxImages)(tags.value);
|
|
102
100
|
const args = (0, runner_1.parseInterviewArgs)(hostLock.rest);
|
|
103
101
|
let lock;
|
|
104
102
|
if (hostLock.value && ssh.value) {
|
|
@@ -45,6 +45,7 @@ const runtime_1 = require("../../nerves/runtime");
|
|
|
45
45
|
const provider_proxy_1 = require("../transport/provider-proxy");
|
|
46
46
|
const telegram_turn_1 = require("../transport/telegram-turn");
|
|
47
47
|
const declared_gaps_1 = require("./declared-gaps");
|
|
48
|
+
const images_1 = require("./images");
|
|
48
49
|
const projection_1 = require("./projection");
|
|
49
50
|
const readback_1 = require("./readback");
|
|
50
51
|
exports.SANDBOX_IMAGE = "ouro-eval-sandbox:local";
|
|
@@ -201,6 +202,7 @@ function splitTurns(observation, turns) {
|
|
|
201
202
|
async function runSandboxed(input) {
|
|
202
203
|
const docker = input.docker ?? dockerCli();
|
|
203
204
|
const images = input.images ?? { agent: exports.SANDBOX_IMAGE, household: exports.HOUSEHOLD_IMAGE };
|
|
205
|
+
const agentImage = (0, images_1.agentImageOf)(images, input.guest?.image);
|
|
204
206
|
const runId = `${exports.EVAL_RUN_PREFIX}${node_crypto_1.default.randomBytes(4).toString("hex")}`;
|
|
205
207
|
const runLabels = ["--label", exports.EVAL_LABEL, "--label", `ouro.eval.run=${runId}`];
|
|
206
208
|
const last = input.case.prefix.at(-1);
|
|
@@ -280,7 +282,7 @@ async function runSandboxed(input) {
|
|
|
280
282
|
"--tmpfs", "/tmp:rw,mode=1777,size=256m", "--tmpfs", "/home/ouro:rw,uid=10001,gid=10001,mode=0700,size=256m", "--env", "HOME=/home/ouro",
|
|
281
283
|
"-v", `${bundle}:${BUNDLE}:ro`, ...exports.WRITABLE.flatMap((entry) => ["-v", `${node_path_1.default.join(bundle, entry)}:${BUNDLE}/${entry}`]),
|
|
282
284
|
"-v", `${tls}/ca.pem:/etc/ssl/certs/ca-certificates.crt:ro`, "-v", `${turnFile}:/eval/turn.json:ro`,
|
|
283
|
-
|
|
285
|
+
agentImage, "node", ...(input.guest ? [`/opt/ouro/dist/eval/${input.guest.entry}`] : ["/opt/ouro/dist/eval/guest-entry.js", "--agent", "sanctuary"]),
|
|
284
286
|
]);
|
|
285
287
|
const hostCalls = [];
|
|
286
288
|
const recorded = (0, telegram_turn_1.recordModelTraffic)(input.host, hostCalls);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseSandboxImages = parseSandboxImages;
|
|
4
|
+
exports.agentImageOf = agentImageOf;
|
|
5
|
+
/**
|
|
6
|
+
* Which images a sandboxed run uses: the agent's and the household's, and any other agent images by name, for a
|
|
7
|
+
* guest that needs its own (an interview arm built on another harness). The household always runs from `household`.
|
|
8
|
+
*/
|
|
9
|
+
const runtime_1 = require("../../nerves/runtime");
|
|
10
|
+
/** `--images <agent>,<household>[,<name>=<agent image>...]`: the run's own image tags, so it never uses another checkout's. */
|
|
11
|
+
function parseSandboxImages(value) {
|
|
12
|
+
const usage = "--images must be <agent image>,<household image>, then any <name>=<agent image>";
|
|
13
|
+
const [agent, household, ...rest] = value.split(",").map((part) => part.trim());
|
|
14
|
+
if (!agent || !household)
|
|
15
|
+
throw new Error(usage);
|
|
16
|
+
if (rest.length === 0)
|
|
17
|
+
return { agent, household };
|
|
18
|
+
const named = {};
|
|
19
|
+
for (const entry of rest) {
|
|
20
|
+
const at = entry.indexOf("=");
|
|
21
|
+
const name = entry.slice(0, at);
|
|
22
|
+
const tag = entry.slice(at + 1);
|
|
23
|
+
// A name is a plain word starting with a letter or digit, so `__proto__` can never set the map's prototype.
|
|
24
|
+
if (at < 1 || !tag || !/^[A-Za-z0-9][\w-]*$/.test(name) || Object.hasOwn(named, name))
|
|
25
|
+
throw new Error(usage);
|
|
26
|
+
named[name] = tag;
|
|
27
|
+
}
|
|
28
|
+
return { agent, household, named };
|
|
29
|
+
}
|
|
30
|
+
/** The agent image for a guest: the one it names, which the run's images must give, or the default agent image. */
|
|
31
|
+
function agentImageOf(images, name) {
|
|
32
|
+
if (name === undefined)
|
|
33
|
+
return images.agent;
|
|
34
|
+
const tag = images.named && Object.hasOwn(images.named, name) ? images.named[name] : undefined;
|
|
35
|
+
if (!tag)
|
|
36
|
+
throw new Error(`no agent image named ${name}: the run's images name ${Object.keys(images.named ?? {}).join(", ") || "none"}`);
|
|
37
|
+
(0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.sandbox_named_image", message: "the guest runs in its own agent image", meta: { name, image: tag } });
|
|
38
|
+
return tag;
|
|
39
|
+
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.1491",
|
|
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.
|
|
9
|
+
"version": "0.1.0-alpha.1491",
|
|
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.
|
|
3
|
+
"version": "0.1.0-alpha.1491",
|
|
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": {
|