@ouro.bot/cli 0.1.0-alpha.1486 → 0.1.0-alpha.1489
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 +19 -1
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/eval/h-guest-entry.js +19 -0
- package/dist/eval/interviews/guest/h/run.js +60 -0
- package/dist/eval/sandbox/docker.js +6 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,13 +1,31 @@
|
|
|
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.1489",
|
|
6
|
+
"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
|
+
]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"version": "0.1.0-alpha.1487",
|
|
13
|
+
"changes": [
|
|
14
|
+
"The npm publish step now prints npm's own output (stdout and stderr, each bounded to its first 20 lines of 300 characters) when `npm publish` exits 0. That output was previously discarded, which left a gap in the evidence when a published version was not seen by later reads. This records evidence only; it is not a fix for any cause."
|
|
15
|
+
]
|
|
16
|
+
},
|
|
4
17
|
{
|
|
5
18
|
"version": "0.1.0-alpha.1486",
|
|
6
19
|
"changes": [
|
|
7
|
-
"A blind-interview arm can now carry its own replacement list, which pre-registration section 3 requires. The interview's guarded runtime rewrites every request with the arm's list before the brand-word scan: the system prompt, the tools, the messages, the tool results and the trace id. The model is sent only the rewritten request, and the scan still voids the session if a brand word gets through. A tool the list renames is handed back to the harness under its own name. A call's arguments are not mapped back, so an arm whose list rewrites paths must give those paths their neutral names in its sandbox. The scan reads the request as the guard sends it; a preamble a provider adds after that (the Anthropic setup-token provider's) is not scanned, and the interviews do not use that provider.",
|
|
8
20
|
"Eval sandbox: an agent profile names the agent a sandboxed run puts in its container, where that agent's bundle comes from and which bundle paths the turn may write. The Butler's profile is today's bundle projection and today's writable paths, and is still the default; the sandbox itself moves onto profiles in a later change. The sandbox's guests no longer pick the Butler's bundle themselves. The Telegram guest takes the bundle its `--agent` names, though the Telegram turn still runs only the Butler. The interview guest runs on whichever one bundle the sandbox mounted. A new test pins every Docker command and every file a default run hands the agent container, for the replay eval and the interviews, byte for byte against recordings taken before this change."
|
|
9
21
|
]
|
|
10
22
|
},
|
|
23
|
+
{
|
|
24
|
+
"version": "0.1.0-alpha.1485",
|
|
25
|
+
"changes": [
|
|
26
|
+
"A blind-interview arm can now carry its own replacement list, which pre-registration section 3 requires. The interview's guarded runtime rewrites every request with the arm's list before the brand-word scan: the system prompt, the tools, the messages, the tool results and the trace id. The model is sent only the rewritten request, and the scan still voids the session if a brand word gets through. A tool the list renames is handed back to the harness under its own name. A call's arguments are not mapped back, so an arm whose list rewrites paths must give those paths their neutral names in its sandbox. The scan reads the request as the guard sends it; a preamble a provider adds after that (the Anthropic setup-token provider's) is not scanned, and the interviews do not use that provider."
|
|
27
|
+
]
|
|
28
|
+
},
|
|
11
29
|
{
|
|
12
30
|
"version": "0.1.0-alpha.1484",
|
|
13
31
|
"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.1489</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* The agent container's command for an H interview conversation, `node dist/eval/h-guest-entry.js`, run only inside
|
|
5
|
+
* the eval sandbox: the arm's own agent loop, from the turn file the sandbox mounts at `/eval/turn.json`, its provider
|
|
6
|
+
* served by the host over stdin and stdout (see `interviews/guest/h/run.ts`). It takes no arguments, so it is no
|
|
7
|
+
* command an agent's shell is offered.
|
|
8
|
+
*/
|
|
9
|
+
const identity_1 = require("../heart/identity");
|
|
10
|
+
const runtime_1 = require("../nerves/runtime");
|
|
11
|
+
const run_1 = require("./interviews/guest/h/run");
|
|
12
|
+
const guest_1 = require("./sandbox/guest");
|
|
13
|
+
// The bundle is whichever one the sandbox mounted, so this command is the same for every agent.
|
|
14
|
+
void Promise.resolve().then(() => (0, run_1.runHGuest)({ stdin: process.stdin, stdout: process.stdout, turnFile: "/eval/turn.json", bundle: (0, guest_1.mountedAgentRoot)((0, identity_1.getAgentBundlesRoot)()) })).then((outcome) => {
|
|
15
|
+
process.exit(outcome.ok ? 0 : 1);
|
|
16
|
+
}).catch((error) => {
|
|
17
|
+
(0, runtime_1.emitNervesEvent)({ component: "eval", level: "error", event: "eval.h_guest_entry_error", message: "H guest failed outside its conversation", meta: { error: String(error) } });
|
|
18
|
+
process.exit(1);
|
|
19
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.H_ARMS = void 0;
|
|
7
|
+
exports.ouroArm = ouroArm;
|
|
8
|
+
exports.runHGuest = runHGuest;
|
|
9
|
+
/**
|
|
10
|
+
* What runs in the agent container for an H interview conversation (`h-guest-entry.js`, pre-registration v2 product
|
|
11
|
+
* H). H compares whole harnesses, so each arm runs its own agent loop, not the neutral loop: the ouro arm is the
|
|
12
|
+
* harness's own Telegram turn on the mounted bundle, with the label line added to its system prompt and the debrief
|
|
13
|
+
* sent as the owner's next message in the same chat. The other arms' runners are given by arm. Every arm's provider
|
|
14
|
+
* is the host's, served over stdin and stdout, so the host still scans, gates and meters every call.
|
|
15
|
+
*
|
|
16
|
+
* The answer is the conversation's timeline and, per user turn, where it starts, its reply, its outcome and its
|
|
17
|
+
* model calls, as every interview guest gives it; the first turn's reply and outcome are the job's.
|
|
18
|
+
*/
|
|
19
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
20
|
+
const runtime_1 = require("../../../../nerves/runtime");
|
|
21
|
+
const provider_proxy_1 = require("../../../transport/provider-proxy");
|
|
22
|
+
const telegram_turn_1 = require("../../../transport/telegram-turn");
|
|
23
|
+
/** The ouro arm: the harness's own turn, unchanged but for the label line and the later message. */
|
|
24
|
+
function ouroArm(runTurn = telegram_turn_1.runTelegramTurn) {
|
|
25
|
+
return ({ turn, bundle, providerRuntime }) => runTurn({
|
|
26
|
+
agentRoot: bundle, prefix: turn.prefix, userText: turn.userText, providerRuntime, systemLine: turn.labelLine, followUps: turn.followUps,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/** The H arms this guest runs. */
|
|
30
|
+
exports.H_ARMS = { ouro: ouroArm() };
|
|
31
|
+
function readTurnFile(file) {
|
|
32
|
+
const value = JSON.parse(node_fs_1.default.readFileSync(file, "utf8"));
|
|
33
|
+
if (value.product !== "H" || typeof value.arm !== "string" || typeof value.labelLine !== "string" || !Array.isArray(value.prefix)
|
|
34
|
+
|| typeof value.userText !== "string" || !Array.isArray(value.followUps)) {
|
|
35
|
+
throw new Error(`${file} needs product H, arm, labelLine, prefix, userText and followUps`);
|
|
36
|
+
}
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
async function runHGuest(input) {
|
|
40
|
+
(0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.h_guest_start", message: "H guest starting a conversation", meta: {} });
|
|
41
|
+
const channel = (0, provider_proxy_1.createStreamChannel)(input.stdin, input.stdout);
|
|
42
|
+
let outcome;
|
|
43
|
+
try {
|
|
44
|
+
const turn = readTurnFile(input.turnFile);
|
|
45
|
+
const arms = input.arms ?? (input.runTurn ? { ...exports.H_ARMS, ouro: ouroArm(input.runTurn) } : exports.H_ARMS);
|
|
46
|
+
const arm = Object.hasOwn(arms, turn.arm) ? arms[turn.arm] : undefined;
|
|
47
|
+
if (!arm)
|
|
48
|
+
throw new Error(`no H arm ${turn.arm} in the guest`);
|
|
49
|
+
const providerRuntime = await (0, provider_proxy_1.createProxyRuntime)(channel);
|
|
50
|
+
outcome = { ok: true, result: await arm({ turn, bundle: input.bundle, providerRuntime }) };
|
|
51
|
+
(0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.h_guest_end", message: "H guest finished its conversation", meta: { arm: turn.arm } });
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
outcome = { ok: false, error: error instanceof Error ? error.message : String(error) };
|
|
55
|
+
(0, runtime_1.emitNervesEvent)({ component: "eval", level: "error", event: "eval.h_guest_error", message: "H guest could not run its conversation", meta: { error: outcome.error } });
|
|
56
|
+
}
|
|
57
|
+
channel.send({ type: "done", outcome });
|
|
58
|
+
await new Promise((resolve) => input.stdout.write("", () => resolve()));
|
|
59
|
+
return outcome;
|
|
60
|
+
}
|
|
@@ -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.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.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;
|
|
7
7
|
exports.dockerCli = dockerCli;
|
|
8
8
|
exports.buildSandboxImage = buildSandboxImage;
|
|
9
9
|
exports.splitTurns = splitTurns;
|
|
@@ -98,6 +98,11 @@ async function buildSandboxImage(input) {
|
|
|
98
98
|
}
|
|
99
99
|
(0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.sandbox_image_end", message: "built the eval sandbox images", meta: images });
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* The guest entries the agent image keeps besides the Telegram turn's: the neutral loop's for U and X, and H's, which
|
|
103
|
+
* runs each arm's own agent loop. `deploy/eval/Dockerfile` keeps each of these and removes every other file.
|
|
104
|
+
*/
|
|
105
|
+
exports.INTERVIEW_GUEST_ENTRIES = ["interview-guest-entry.js", "h-guest-entry.js"];
|
|
101
106
|
/** Synthetic settings for the books CLI, pointing at the fake household and nothing else. */
|
|
102
107
|
function booksSettings() {
|
|
103
108
|
return {
|
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.1489",
|
|
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.1489",
|
|
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.1489",
|
|
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": {
|