@ouro.bot/cli 0.1.0-alpha.1405 → 0.1.0-alpha.1406
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 +12 -1
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/dist/eval/sandbox/declared-gaps.js +17 -0
- package/dist/eval/sandbox/docker.js +2 -1
- package/dist/eval/sandbox/projection.js +20 -0
- package/dist/eval/transport/synthetic-sanctuary.js +12 -2
- package/dist/eval/transport/telegram-turn.js +1 -9
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
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.1406",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Eval reports now list every way the sandbox differs from a real Butler turn: the synthetic Sanctuary reads, no MCP server (so no media tools), no route off the host, the generic house config, no root host binding and the Telegram path's shortcuts. The synthetic Unraid data now uses production's shapes: calibre-web is Books and the calibre desktop app is stopped on purpose, matching the fake household the books cases use. The bundle projection drops agent.json's MCP servers and says which."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1405",
|
|
6
12
|
"changes": [
|
|
7
|
-
"The Ouro AX census runs ouro-ui v1.3.465's census, which adds the declared-tools walker for bundles that ship a tools.json; the harness's own counts don't change.",
|
|
8
13
|
"When the daemon has to SIGKILL a stuck worker, what that worker started goes too: sync's detached git commands and their ssh get SIGTERM, then SIGKILL after a second, so none of it runs on beside the replacement."
|
|
9
14
|
]
|
|
10
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"version": "0.1.0-alpha.1404",
|
|
18
|
+
"changes": [
|
|
19
|
+
"The Ouro AX census runs ouro-ui v1.3.465's census, which adds the declared-tools walker for bundles that ship a tools.json; the harness's own counts don't change."
|
|
20
|
+
]
|
|
21
|
+
},
|
|
11
22
|
{
|
|
12
23
|
"version": "0.1.0-alpha.1403",
|
|
13
24
|
"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.1406</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,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DECLARED_GAPS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* What the sandbox fakes or leaves out of a real Butler turn, beside what the bundle projection leaves out. Every
|
|
6
|
+
* sandboxed run returns these with its projection gaps, so each report lists them.
|
|
7
|
+
*/
|
|
8
|
+
exports.DECLARED_GAPS = [
|
|
9
|
+
"synthetic Sanctuary: the Unraid, service, install state, download-queue, media optimisation and media-catalog reads return fixed data; a container restart and a download-queue resume are not simulated",
|
|
10
|
+
"no MCP server starts, so the media MCP tools (media_*) are not in the turn's tool list",
|
|
11
|
+
"the agent container is on an internal network with no route off the host, so web_search and fetch_url fail",
|
|
12
|
+
"house/house.json is not projected: the turn runs with the generic house config (no owner name, no public endpoints, no books container)",
|
|
13
|
+
"no root host binding, so sanctuary_host_execute is not offered",
|
|
14
|
+
"the owner's message goes straight to the Telegram sense's message handler, skipping the long poll's update parsing, its user and chat filter and the inbox",
|
|
15
|
+
"the owner's prompt does not list skills/: a skill file reaches the model only when the agent reads it with a tool",
|
|
16
|
+
"replies are read back as text: Telegram's HTML is decoded, a message's buttons are not part of the answer, and a send_file shows only as the tool call",
|
|
17
|
+
];
|
|
@@ -38,6 +38,7 @@ const node_path_1 = __importDefault(require("node:path"));
|
|
|
38
38
|
const runtime_1 = require("../../nerves/runtime");
|
|
39
39
|
const provider_proxy_1 = require("../transport/provider-proxy");
|
|
40
40
|
const telegram_turn_1 = require("../transport/telegram-turn");
|
|
41
|
+
const declared_gaps_1 = require("./declared-gaps");
|
|
41
42
|
const projection_1 = require("./projection");
|
|
42
43
|
const readback_1 = require("./readback");
|
|
43
44
|
exports.SANDBOX_IMAGE = "ouro-eval-sandbox:local";
|
|
@@ -280,7 +281,7 @@ async function runSandboxed(input) {
|
|
|
280
281
|
...(input.oracle ? { oracle: input.oracle } : {}),
|
|
281
282
|
});
|
|
282
283
|
(0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.sandbox_run_end", message: "finished a sandboxed eval run", meta: { caseId: input.case.id, runId, outcome: observation.outcome } });
|
|
283
|
-
return { ...observation, gaps };
|
|
284
|
+
return { ...observation, gaps: [...gaps, ...declared_gaps_1.DECLARED_GAPS] };
|
|
284
285
|
}
|
|
285
286
|
catch (error) {
|
|
286
287
|
(0, runtime_1.emitNervesEvent)({ component: "eval", level: "error", event: "eval.sandbox_run_error", message: "a sandboxed eval run failed", meta: { caseId: input.case.id, runId, error: error.message } });
|
|
@@ -70,6 +70,25 @@ function copyTree(from, to, relative, gaps) {
|
|
|
70
70
|
node_fs_1.default.copyFileSync(source, node_path_1.default.join(to, relative));
|
|
71
71
|
node_fs_1.default.chmodSync(node_path_1.default.join(to, relative), stat.mode & 0o755);
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* The sandbox starts no MCP server: their programs and credentials are host-specific and never projected. Taking them
|
|
75
|
+
* out of `agent.json` makes that so whatever a case includes, instead of a server that fails to start.
|
|
76
|
+
*/
|
|
77
|
+
function dropMcpServers(file, gaps) {
|
|
78
|
+
let config;
|
|
79
|
+
try {
|
|
80
|
+
config = JSON.parse(node_fs_1.default.readFileSync(file, "utf8"));
|
|
81
|
+
}
|
|
82
|
+
catch {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const servers = config?.mcpServers;
|
|
86
|
+
if (!servers || typeof servers !== "object" || Object.keys(servers).length === 0)
|
|
87
|
+
return;
|
|
88
|
+
delete config.mcpServers;
|
|
89
|
+
node_fs_1.default.writeFileSync(file, `${JSON.stringify(config, null, 2)}\n`);
|
|
90
|
+
gaps.push(`agent.json: its MCP servers (${Object.keys(servers).sort().join(", ")}) are left out; the sandbox starts no MCP server`);
|
|
91
|
+
}
|
|
73
92
|
function projectBundle(input) {
|
|
74
93
|
(0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.projection_start", message: "projecting a bundle for a sandboxed run", meta: { include: input.include } });
|
|
75
94
|
for (const include of input.include)
|
|
@@ -96,6 +115,7 @@ function projectBundle(input) {
|
|
|
96
115
|
else
|
|
97
116
|
copyTree(input.seedBundleDir, input.out, seeded, gaps);
|
|
98
117
|
}
|
|
118
|
+
dropMcpServers(node_path_1.default.join(input.out, "agent.json"), gaps);
|
|
99
119
|
for (const dir of EMPTY)
|
|
100
120
|
node_fs_1.default.mkdirSync(node_path_1.default.join(input.out, dir), { recursive: true });
|
|
101
121
|
node_fs_1.default.writeFileSync(node_path_1.default.join(input.out, "books/ledger.ndjson"), "");
|
|
@@ -2,15 +2,22 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createSyntheticSanctuary = createSyntheticSanctuary;
|
|
4
4
|
const tools_unraid_1 = require("../../repertoire/tools-unraid");
|
|
5
|
+
const sanctuary_container_policy_1 = require("../../repertoire/sanctuary-container-policy");
|
|
5
6
|
const sanctuary_media_optimization_1 = require("../../senses/sanctuary-media-optimization");
|
|
6
7
|
const runtime_1 = require("../../nerves/runtime");
|
|
7
8
|
const OBSERVED_AT = "2026-01-15T12:00:00.000Z";
|
|
8
9
|
const SERVER_ID = "eval:server";
|
|
10
|
+
const BOOKS_CONTAINER = "calibre-web";
|
|
11
|
+
// Only what annotateContainers reads of the steward policy.
|
|
12
|
+
const POLICY = { desiredStates: { "container:calibre": { value: "off" } } };
|
|
9
13
|
const CONTAINERS = [
|
|
10
14
|
{ id: "eval:jellyfin", names: ["/jellyfin"], state: "RUNNING", status: "Up 3 days", autoStart: true },
|
|
11
15
|
{ id: "eval:sabnzbd", names: ["/sabnzbd"], state: "RUNNING", status: "Up 3 days", autoStart: true },
|
|
12
16
|
{ id: "eval:unmanic", names: ["/unmanic"], state: "RUNNING", status: "Up 3 days", autoStart: true },
|
|
17
|
+
// As on the household: the calibre desktop app is kept stopped on purpose (POLICY), and calibre-web, which the fake
|
|
18
|
+
// household serves to the books cases, is Books.
|
|
13
19
|
{ id: "eval:calibre", names: ["/calibre"], state: "EXITED", status: "Exited (0) 2 days ago", autoStart: false },
|
|
20
|
+
{ id: "eval:calibre-web", names: ["/calibre-web"], state: "RUNNING", status: "Up 3 days", autoStart: true },
|
|
14
21
|
];
|
|
15
22
|
const CATALOG = [
|
|
16
23
|
{ untrustedTitle: "The Long Voyage", type: "Movie", productionYear: 2019, premiereDate: "2019-06-07" },
|
|
@@ -53,7 +60,7 @@ function createSyntheticSanctuary() {
|
|
|
53
60
|
(0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.synthetic_sanctuary_create", message: "creating synthetic Sanctuary service context" });
|
|
54
61
|
const reads = (0, tools_unraid_1.createUnraidReadTools)({ read: syntheticRead });
|
|
55
62
|
return {
|
|
56
|
-
listContainers: () => reads.listContainers(),
|
|
63
|
+
listContainers: async () => (0, sanctuary_container_policy_1.annotateContainers)(await reads.listContainers(), POLICY, Date.parse(OBSERVED_AT), (0, sanctuary_container_policy_1.serviceContainers)({ booksContainer: BOOKS_CONTAINER })),
|
|
57
64
|
getContainerLogs: (args) => reads.getContainerLogs(args),
|
|
58
65
|
getStorage: () => reads.getStorage(),
|
|
59
66
|
getDisks: () => reads.getDisks(),
|
|
@@ -65,7 +72,10 @@ function createSyntheticSanctuary() {
|
|
|
65
72
|
}),
|
|
66
73
|
checkServices: async () => ({
|
|
67
74
|
ok: true,
|
|
68
|
-
data: { observedAt: OBSERVED_AT, services: [
|
|
75
|
+
data: { observedAt: OBSERVED_AT, services: [
|
|
76
|
+
{ name: "books", container: BOOKS_CONTAINER, url: "https://books.eval.invalid", ok: true, status: 200 },
|
|
77
|
+
{ name: "jellyfin", url: "https://jellyfin.eval.invalid", ok: true, status: 200 },
|
|
78
|
+
], degraded: false },
|
|
69
79
|
}),
|
|
70
80
|
getDownloadQueue: async () => ({ paused: false, status: "Idle", queuedJobs: 0, observedAt: OBSERVED_AT, stateDigest: "eval" }),
|
|
71
81
|
getMediaOptimization: async () => ({
|
|
@@ -36,15 +36,7 @@ exports.runTelegramTurn = runTelegramTurn;
|
|
|
36
36
|
* message ids are fixed, so a second run on the same bundle fails. Bundle sync is on in `agent.json` and does
|
|
37
37
|
* nothing only because the bundle is not a Git repository; a projection must not carry `.git`.
|
|
38
38
|
*
|
|
39
|
-
* Fidelity gaps:
|
|
40
|
-
* - The message goes straight to the sense's message handler, skipping the long poll's update parsing, its user and
|
|
41
|
-
* chat filter and the inbox. Friend resolution and relationship authorization still run.
|
|
42
|
-
* - The Sanctuary service answers (containers, storage, disks, media catalog) are synthetic and fixed; a restart and a
|
|
43
|
-
* download-queue resume are not simulated. The books tools are not covered by this context.
|
|
44
|
-
* - The owner's prompt does not list `skills/`: the relationship prompt has no skills section and `load_skill` is not
|
|
45
|
-
* in the `sanctuary-owner` profile, so a skill file reaches the model only when the agent reads it with a tool.
|
|
46
|
-
* - Replies are read back as text: Telegram's HTML is decoded, and a message with buttons is not part of the answer.
|
|
47
|
-
* Files sent with `send_file` appear only as the tool call.
|
|
39
|
+
* Fidelity gaps: `sandbox/declared-gaps.ts` lists them, so every report does.
|
|
48
40
|
*/
|
|
49
41
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
50
42
|
const node_path_1 = __importDefault(require("node:path"));
|
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.1406",
|
|
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.1406",
|
|
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.1406",
|
|
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": {
|