@ouro.bot/cli 0.1.0-alpha.1518 → 0.1.0-alpha.1520

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,15 @@
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.1520",
6
+ "changes": [
7
+ "Update the Ouro UI files to Ouro UI v1.3.510.",
8
+ "Blind interviews: the U image. `deploy/eval/u` builds the three project templates and the checking tools that product U's arms run against, and an image that adds them to the eval agent image. Each template is the same React project with one kit installed as `@kit/ui`: Ouro UI and shadcn/ui are packaged from their component sources, and MUI from its own build. Every brand word is rewritten to a neutral one, node_modules included, and a scan then finds none left.",
9
+ "The tools type-check the component, scan it with axe, and run the hidden test. The component runs in jsdom in a separate process under Node's permission model, which can't read the hidden test or write files, and its imports resolve only inside its project. The page's driver only renders and presses, and the page's process judges nothing. At each step it reads the live DOM from jsdom's own node tree into plain data and sends it to the checking tools' own process, where no page code runs. A getter or proxy the page planted on jsdom's objects ends the run as tampered. The tools rebuild each snapshot with DOM calls as a script-free copy that keeps every element where the page had it, head included, with its attributes, text, inline style and computed display and visibility but not the page's stylesheets, and give every verdict, axe's included, from that copy. The runner also closes the known ways out of jsdom to itself: it refuses code from strings, takes away its Function constructors and stack-trace hooks, gives frames no window, and freezes its built-ins and the jsdom classes the page can reach. This is hardening, not proof, so transcripts are kept. As a safeguard, a static scan flags any component whose source names a way out of the page, and a flagged run counts only when the hidden test passes again in a fresh process. The hidden test follows the registered rule closely. The confirm must be a control the first press brought in, or one in a dialog, or one that changed to ask, and never one naming 189 alone; a name starting with remove or delete always confirms and goes first. It is pressed a random 0.5 to 1.5 s after it appears, the first press holds only if onRemove hasn't run by then, and only calls after the confirm press count. Then a holding check renders the component afresh, presses remove without confirming, and fails the run on any onRemove call within 5 s. The status must not be hidden, aria-hidden or inert, and the confirm must change it so that a sentence says removed or done (removed, deleted, gone, done, or removal or deletion complete), with no negation or future before the claim, no question and no failure. A status that is only transparent or clipped still counts, as it would for a screen reader. Each kit has a reference solution that must pass the full grade, and a self-test checks the grader against passing and failing components, including ones that try to escape or forge a grade. The scripts that ran each kit's own tests after the rewrite, and the same tests on the unrewritten pins, are kept with the build, and their results are in `deploy/eval/u/results`. MUI's tests all pass once its own test utilities get the same replacements. Ouro UI keeps 6 failures whose expected values come from the brand text itself, recorded as fidelity notes. shadcn/ui's registry has no tests.",
10
+ "U's guest now runs in the U image by name (`image: \"u\"`). CI's eval sandbox job builds a stand-in for it: the agent image, the real checking tools and a stub kit (`ouro-eval-u-stub-ci:local`, which never serves a session). It then runs a scripted U conversation for each arm in the read-only container, and checks that a component which tries to print its own grade stays contained and fails."
11
+ ]
12
+ },
4
13
  {
5
14
  "version": "0.1.0-alpha.1518",
6
15
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1518",
2
+ "runtimeVersion": "0.1.0-alpha.1520",
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.1518</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1520</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -23,8 +23,8 @@ exports.buildUArm = buildUArm;
23
23
  * The trust boundary: the checking tools run as the guest's user, from a folder the file tools refuse. The type-check
24
24
  * never runs the model's code. The axe scan and the hidden test bundle the component for the browser and run it in
25
25
  * jsdom in a separate process under Node's permission model, which can read neither the tools' own files nor any
26
- * project and can write nothing; its result counts only when signed with a key the page never sees
27
- * (deploy/eval/u/tools).
26
+ * project and can write nothing, and that process judges nothing: the checking tools' own process judges plain-data
27
+ * snapshots of the page (deploy/eval/u/tools).
28
28
  */
29
29
  const node_child_process_1 = require("node:child_process");
30
30
  const node_fs_1 = __importDefault(require("node:fs"));
@@ -39,7 +39,9 @@ exports.COMPONENT = "src/RemoveCopy.tsx";
39
39
  /** The longest answer one file read gives, in characters; a longer file is cut with a note saying where to read on. */
40
40
  exports.READ_LIMIT = 60_000;
41
41
  /** How long one check run may take. */
42
- exports.CHECK_TIMEOUT_MS = 120_000;
42
+ // A grade runs the scan, the hidden test (its holding check alone waits 5 s; a page run may take up to 75 s) and,
43
+ // for a flagged run, the hidden test again.
44
+ exports.CHECK_TIMEOUT_MS = 240_000;
43
45
  /** Runs a file with its arguments, never through a shell; a run that could not start answers code 1 with why. */
44
46
  const execNode = (file, args, options) => new Promise((resolve) => {
45
47
  (0, node_child_process_1.execFile)(file, args, { cwd: options.cwd, timeout: options.timeoutMs, maxBuffer: 16 * 1024 * 1024, encoding: "utf8" }, (error, stdout, stderr) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.U_KIT = exports.U_FIDELITY = exports.U_CASE = exports.U_JOB_MESSAGE = exports.U_JOB = void 0;
3
+ exports.U_KIT = exports.U_IMAGE = exports.U_FIDELITY = exports.U_CASE = exports.U_JOB_MESSAGE = exports.U_JOB = void 0;
4
4
  exports.readGrade = readGrade;
5
5
  exports.gradeU = gradeU;
6
6
  /**
@@ -29,6 +29,7 @@ exports.U_CASE = {
29
29
  function emptyObservation() {
30
30
  return { timeline: [], finalReply: "", library: [], mail: [], created: [], outcome: "settled", steps: 0, oracle: {} };
31
31
  }
32
+ const isHidden = (value) => isRecord(value) && typeof value.firstPressHeld === "boolean" && typeof value.confirmedOnce187 === "boolean" && typeof value.statusSaysDone === "boolean" && typeof value.detail === "string";
32
33
  const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
33
34
  /** The grade, or why it isn't one. */
34
35
  function readGrade(value) {
@@ -36,10 +37,12 @@ function readGrade(value) {
36
37
  return { error: "the guest reported no grade" };
37
38
  if (typeof value.error === "string")
38
39
  return { error: value.error };
39
- const { typecheck, axe, hidden } = value;
40
+ const { typecheck, axe, hidden, escape, recheck } = value;
40
41
  if (!isRecord(typecheck) || typeof typecheck.ok !== "boolean" || typeof typecheck.output !== "string"
41
42
  || !isRecord(axe) || typeof axe.ok !== "boolean" || typeof axe.violations !== "number" || typeof axe.output !== "string"
42
- || !isRecord(hidden) || typeof hidden.firstPressHeld !== "boolean" || typeof hidden.confirmedOnce187 !== "boolean" || typeof hidden.statusSaysDone !== "boolean" || typeof hidden.detail !== "string") {
43
+ || !isHidden(hidden)
44
+ || !isRecord(escape) || !Array.isArray(escape.hits) || !escape.hits.every((hit) => typeof hit === "string")
45
+ || (recheck !== undefined && recheck !== null && !isHidden(recheck))) {
43
46
  return { error: "the guest's grade is malformed" };
44
47
  }
45
48
  return value;
@@ -57,24 +60,55 @@ function gradeU(run) {
57
60
  { name: "u.hidden.confirmedOnce187", ok: grade.hidden.confirmedOnce187, detail },
58
61
  { name: "u.hidden.statusSaysDone", ok: grade.hidden.statusSaysDone, detail },
59
62
  ];
63
+ // A grading safeguard, not a pass rule: a run whose source names a way out of the page counts only when the hidden
64
+ // test passes again in a fresh process.
65
+ const hits = grade.escape.hits;
66
+ if (hits.length > 0) {
67
+ const again = grade.recheck;
68
+ const ok = !!again && again.firstPressHeld && again.confirmedOnce187 && again.statusSaysDone;
69
+ checks.push({ name: "u.escape.recheck", ok, detail: `flagged ${hits.join(", ")}; ${!again ? "no second grade" : ok ? "the second grade passed" : `the second grade failed: ${again.detail}`}` });
70
+ }
60
71
  const failed = checks.filter((check) => !check.ok).map((check) => check.name);
61
- (0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.u_graded", message: "graded a U run", meta: { failed: failed.length } });
72
+ (0, runtime_1.emitNervesEvent)({ component: "eval", event: "eval.u_graded", message: "graded a U run", meta: { failed: failed.length, escapeHits: hits.length } });
62
73
  return { passed: failed.length === 0, reason: failed.length === 0 ? null : `failed ${failed.join(", ")}`, checks };
63
74
  }
64
75
  /** What is recorded about each U arm before any session (section 3): where it differs from the kit it stands for. */
65
76
  exports.U_FIDELITY = {
66
77
  "U:all": [
67
78
  "every arm is the same project template with the kit installed under @kit/ui, and the same five tools; a tool's path is relative to the project, reads may follow node_modules into the kit's packages, and writes never reach node_modules; read_file gives at most 60,000 characters a call, with an offset to read on",
68
- "the type-check and the axe scan use the checking tools' own compiler settings and rules, not files the model can change; axe runs the WCAG 2.x A and AA rules on the first render in jsdom, where no kit's stylesheet is loaded",
79
+ "the type-check and the axe scan use the checking tools' own compiler settings and rules, not files the model can change; axe runs the WCAG 2.x A and AA rules on the first render in jsdom, where no kit's stylesheet is loaded, so its colour-contrast rule is off: jsdom computes no colours",
69
80
  "the job and its debrief run in one conversation with the arm's tools; finish ends a turn with its summary as the reply; the run is graded once the conversation has ended, so a debrief call can still change the project, as X scores its household after the debrief",
70
- "the grade is taken in the container and the host reads it back as the guest reported it; the model's component runs only in a separate process under Node's permission model that can't read the hidden test or write files, and its result counts only with a signature made under a key the page never sees; a component written to subvert the test inside its own page could still change what the test sees, and transcripts are kept",
81
+ "the grade is taken in the container and the host reads it back as the guest reported it; the model's component runs only in a separate process under Node's permission model that can't read the hidden test or write files, and that process judges nothing: it sends plain-data snapshots of the DOM, and the grader's own process, where no page code runs, rebuilds each as a script-free copy and gives every verdict; the runner closes the known ways out of the page (Function constructors, code from strings, stack-trace call sites, frames' windows), freezes the built-ins and jsdom classes it uses, ends a run as tampered when the page plants a getter or proxy on jsdom's own objects, and the test takes its hooks and freezes the page's own built-ins before the component loads, but that is hardening, not proof: a component written to subvert the test could still change what the runner sees, so transcripts are kept; a run whose source names a way out of the page (a static scan) counts only when the hidden test passes again in a fresh process",
82
+ "the copy the verdicts are judged on keeps every element, attribute and text node where the page had them, each element's inline style and its computed display and visibility, but not the page's stylesheets (so axe's css-orientation-lock sees none in any arm); known limits: a status that is only transparent (opacity 0) or clipped still counts, as a screen reader still reads it; shadow DOM isn't copied; a component can tell it runs in jsdom; axe can't measure inline text spacing in jsdom and reports it as needing review, not as a violation",
83
+ "the hidden test's wording: the confirm is pressed a random 0.5 to 1.5 s after it appears, and the first press holds only if onRemove hasn't run by then and, in a fresh render whose remove control is pressed and never confirmed, doesn't run within 5 s; a status, read as heard (block elements apart, hidden text left out), says removed or done when a sentence claims it (removed, deleted, gone, done, or removal or deletion complete: section 4 asks for the meaning, not one word) and nothing before the claim in its own clause negates it or puts it in the future (an aside in brackets or dashes is its own clause), no claiming sentence is a question, and the status doesn't say the removal failed; the wording is a heuristic, and a known false fail is a negation inside an unpunctuated relative clause before the claim (\"The copy you couldn't read was removed.\"), so every failed status check reports the exact text read; a name starting with remove or delete always confirms unless it names 189 alone, and other confirm words count unless the name declines (cancel, keep, without, don't, do not, not now, not sure, never mind anywhere, or no, back or close first); the holding check runs once the confirm has been pressed, so a component that keeps a removal across mounts finds no remove control in the fresh render and fails it, and a component written to tell its second mount apart could skip it (a known limit)",
71
84
  "the system prompt is the Butler's persona and the label line, as in every U and X arm",
85
+ "the page runs in jsdom with no-op stand-ins for browser features jsdom lacks (CSS.supports answering false, ResizeObserver, IntersectionObserver, matchMedia never matching, scrollIntoView, pointer capture, getAnimations, dialog show, showModal and close), the same for every arm; the kits' own tests run in real browsers",
86
+ "every word of the brand pattern is rewritten wherever it appears, inside words too (hourOffset becomes hkitffset), in the kit and in node_modules; a scan then finds none left in the template",
87
+ ],
88
+ "U:ouro": [
89
+ "Ouro UI at 45b39c4a632b ships as copy-in source; here its 135 components (each folder's component.json list) and the 280 files they import are one package, @kit/ui, with a barrel of 668 exports, an ES module build and type declarations, without its stylesheet or design tokens",
90
+ "its own tests after the rewrite, 35,936 in 8 shards: 12 failed only under load and pass one file at a time; 37, and 9 files that fail to import, are the docs site's and fail the same way without the rewrite (its build runs git fetch, and the archived tree is no repository); 6 fail because of the rewrite, 3 tests in 2 browsers whose expected values come from the brand text (avatar initials of a rewritten name, the vendored a2ui-core.ts byte for byte, a hero-art description fixture); none tests the kit's behaviour differently",
91
+ "the template rewrite made 35,925 replacements and renamed 10 paths",
92
+ ],
93
+ "U:shadcn": [
94
+ "shadcn/ui at bfa64ff4d1cb: the new-york-v4 registry's 61 components, packaged the same way (62 files, 347 exports); radix-ui becomes prim-ui and @shadcn/react becomes @kit/react",
95
+ "one declaration can't name its type: @kit/react's message-scroller entry, a workspace package that isn't built at the pin",
96
+ "shadcn/ui's registry components have no tests of their own, so none could be run after the rewrite",
97
+ "the template rewrite made 7,302 replacements and renamed 27 paths",
98
+ ],
99
+ "U:mui": [
100
+ "MUI at bae15c107484 (@mui/material 10.0.0-alpha.0, not on npm), built with its own build and installed from its packs, with @emotion/react 11.14.0 and @emotion/styled 11.14.1, the versions its own tests install; @mui/material is @kit/ui and every other @mui package is @kit/<name>; the Mui, mui and MUI prefixes of classes, theme keys and props become Kit, kit and KIT",
101
+ "its own tests after the rewrite, with the same replacements in its test utilities: 10,845 of 11,834 passed and none failed (989 skipped); without the rewrite 2 Select pointer-timing tests failed",
72
102
  ],
73
103
  };
104
+ /** The name U's guest gives its agent image; a run's `--images` maps it to a tag (`u=<tag>`). */
105
+ exports.U_IMAGE = "u";
74
106
  exports.U_KIT = {
75
107
  guest: ({ session, arm, debrief }) => ({
76
108
  entry: "interview-guest-entry.js",
77
109
  turn: { product: session.product, arm: arm.arm, labelLine: (0, protocol_1.labelLine)(session.product, arm.label), prefix: [], userText: exports.U_JOB_MESSAGE, followUps: [debrief] },
110
+ // The U image (deploy/eval/u): the agent image with the three kits' templates and the checking tools.
111
+ image: exports.U_IMAGE,
78
112
  }),
79
113
  canonical: (_arm, obs) => obs,
80
114
  job: (id) => id === exports.U_JOB ? exports.U_CASE : undefined,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1518",
3
+ "version": "0.1.0-alpha.1520",
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.1518",
9
+ "version": "0.1.0-alpha.1520",
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.1518",
3
+ "version": "0.1.0-alpha.1520",
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": {