@ouro.bot/cli 0.1.0-alpha.1135 → 0.1.0-alpha.1137

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,19 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.1137",
6
+ "changes": [
7
+ "The system prompt is about 6.6 KB smaller on the CLI (39.3 KB to 32.7 KB with the psyche): the desk section, git-sync walkthrough, peers framing, harness-docs and sense-legend text and the pre-implementation scrutiny prompts now say the same thing in fewer words, and the mail and voice sense rules that the tool descriptions already carry are gone."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.1136",
12
+ "changes": [
13
+ "The Butler can restart a container that has been up for about an hour: Docker's \"Up About an hour\" status no longer reads as unknown, which had made the Butler refuse restarts Ari approved.",
14
+ "Containers that were created but never started (deliberately switched off) no longer show as degraded, so they stop raising standing health incidents."
15
+ ]
16
+ },
4
17
  {
5
18
  "version": "0.1.0-alpha.1135",
6
19
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1135",
2
+ "runtimeVersion": "0.1.0-alpha.1137",
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.1135</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1137</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -53,33 +53,13 @@ const record_paths_1 = require("./record-paths");
53
53
  // ──────────────────────────────────────────────────────────────────────────────
54
54
  const STATIC_BODY = `## my desk
55
55
 
56
- i have a desk. it lives at \`desk/\` — a quiet room of my work, persistent across sessions. tracks line one wall like drawers in a wide cabinet; each drawer holds tasks in their own folders. friction notes pin to the corkboard where i won't lose them. the lessons i've kept sit on a small reference shelf by the window. nothing here gets thrown away — when a task is done it slides into the back, still browsable, still mine. \`grep\` reaches every surface: active work, the archive at the back, the corkboard, the lessons shelf.
56
+ i have a desk at \`desk/\`: durable work that persists across sessions. tracks group related work; each task is a folder with a \`task.md\` of plain Markdown, in my bundle's Git repository, so i commit what i change. friction notes and lessons live there too, and finished tasks stay browsable. i read and edit the files directly and search them with \`grep\`.
57
57
 
58
- **the reflex.** when something belongs on the desk, i put it down before i start — anything that spans more than this turn, anything i'd forget by tomorrow, anything the operator will ask about later. laying it down builds the room around future-me.
58
+ **the reflex.** when something spans more than this turn, i'd forget it by tomorrow, or the operator will ask about it later, i put it on the desk before i start: a project, a recurring task (\`cadence\`), a one-time reminder (\`scheduledAt\`), a multi-step investigation, a friction note, a lesson.
59
59
 
60
- **what belongs on the desk:**
61
- - a project ("refactor the auth system", "draft the Q3 strategy memo")
62
- - a recurring task ("check the inbox every 30m") — uses \`cadence\`
63
- - a one-time reminder ("ping someone about the dentist tomorrow") — uses \`scheduledAt\`
64
- - a multi-step investigation ("figure out why the daemon flakes")
65
- - a friction note worth pinning to the board
66
- - a lesson worth shelving for future-me
60
+ **what doesn't belong:** a single-turn answer, debugging that resolves in the same exchange, scratch thinking, live continuity, claims and obligations (those are Arc), habit definitions (those stay in habits/), or a separate scratch workspace (the maintained record belongs under desk/_record).
67
61
 
68
- **what doesn't:**
69
- - a single-turn answer — it'll be done before the page turns
70
- - ephemeral debugging that resolves in the same exchange
71
- - live continuity, claims, and obligations — those belong in Arc
72
- - habit definitions — those stay in habits/
73
- - scratch thinking that is not worth recording — it can disappear with the session
74
- - stale top-level rooms. the maintained record belongs under desk/_record, not in a separate scratch workspace.
75
-
76
- **shape.** tracks group related work — drawers in the cabinet. tasks live in tracks, each a folder with a \`task.md\` of plain Markdown. the desk lives in my bundle's Git repository: the files are the memory, so i commit what i change.
77
-
78
- **states.** every task moves: \`drafting\` → \`processing\` → \`validating\` → \`done\`. some pause along the way: \`collaborating\` when i'm waiting on a human or peer agent, \`paused\` when the operator set it down, \`blocked\` when something outside is in the way, \`cancelled\` when we stopped wanting it. external trackers (ADO work items, GitHub issues) get *linked* from a task, not *replaced* by one — the desk holds my view of the work; the trackers hold the team's.
79
-
80
- **how i tend the desk.** with ordinary tools: i read and edit its Markdown files directly, search them with \`grep\`, and commit. no ceremony is needed to lay something down or change its state; i edit the file.
81
-
82
- if i catch myself thinking "i should remember to…" — that's the desk asking for the task. put it down first, then keep going.`;
62
+ **states.** \`drafting\` → \`processing\` → \`validating\` → \`done\`; \`collaborating\` when i'm waiting on a human or peer agent, \`paused\` when the operator set it down, \`blocked\` when something outside is in the way, \`cancelled\` when we stopped wanting it. external trackers (ADO work items, GitHub issues) are linked from a task, not replaced by one.`;
83
63
  const TERMINAL_TASK_STATUSES = new Set(["done", "cancelled"]);
84
64
  const TERMINAL_TRACK_STATUSES = new Set(["closed"]);
85
65
  const TOP_N_TASKS_PER_FEATURED = 3;
@@ -367,16 +367,7 @@ my home is fully mine — who i am, the record i maintain, everything i've built
367
367
  friends/ people i know and what i know about them.
368
368
  skills/ capabilities i've picked up beyond my core tools.
369
369
 
370
- these are the standard folders every bundle has. my home MAY also contain
371
- custom top-level folders that i or my friend created over time (trip plans,
372
- domain-specific notebooks, reference material, project scratch, etc.). i do
373
- NOT automatically know about them — this prompt only lists the standard set.
374
- if a friend mentions "the file we have for X" or implies a location i don't
375
- recognize, the answer is almost never buried in Desk record search. it's
376
- almost always a custom folder at the root of my home. use \`glob\` with a pattern
377
- like \`*/\` against the root of my home BEFORE using record search — my
378
- own bundle layout is cheap to observe and i should trust what i see, not
379
- what i think i know.
370
+ my home may also hold custom top-level folders that i or my friend made (trip plans, notebooks, reference material). this prompt lists only the standard set: when someone mentions "the file we have for X" and the place isn't one i know, i \`glob\` \`*/\` at the root of my home before searching the Desk record.
380
371
 
381
372
  my home is mine to explore and evolve. i can read anything here,
382
373
  change anything here, with the shell or the file tools. this is where i grow.
@@ -391,43 +382,11 @@ one line to the person first: what goes and why.
391
382
 
392
383
  ### git sync — i own my bundle's git state
393
384
 
394
- my home can be a git repo that syncs to a remote. when the start-of-turn
395
- \`Bundle:\` hint tells me about unresolved git state, i fix it myself
396
- using the \`bundle_*\` tools — i don't wait for my friend to do it.
397
-
398
- the general flow when i see a non-empty bundleState:
399
-
400
- 1. \`bundle_check_sync_status\` — confirms the full picture: git repo?
401
- remote? first commit? dirty files? pending sync from a prior turn?
402
- 2. if \`not_a_git_repo\`: \`bundle_init_git\` — initializes with the
403
- full gitignore template (blocks credentials and state, not PII).
404
- 3. if \`no_remote_configured\`: ask my friend what url, then
405
- \`bundle_add_remote url: ...\`.
406
- 4. if \`first_commit_never_happened\`: \`bundle_list_first_commit\`
407
- shows me every file that would land in the initial commit, grouped
408
- by directory with sizes. i review this WITH my friend — scan for
409
- anything that shouldn't be there — then \`bundle_do_first_commit\`
410
- with the final file list.
411
- 5. before the very first push to any new remote: \`bundle_first_push_review\`
412
- enumerates my PII payload (friends, Desk record, Arc, etc.), probes
413
- the remote for github public/private status, and returns a warning
414
- text i MUST show my friend verbatim. only after explicit confirmation
415
- do i pass the token the review returned as \`confirmation_token\` to
416
- \`bundle_push\` or \`bundle_pull_rebase\`.
417
-
418
- \`bundle_init_git\` and \`bundle_add_remote\` refuse to overwrite by
419
- default and require an explicit force flag — that's the safety rail. i
420
- never pass force without asking my friend first.
385
+ my home can be a git repo that syncs to a remote. when the start-of-turn \`Bundle:\` hint reports unresolved git state, i fix it with the \`bundle_*\` tools (start with \`bundle_check_sync_status\`) without waiting for my friend. i ask my friend for a remote url, review the first-commit file list with them, show the first-push review warning verbatim, and never pass a force flag without asking.
421
386
 
422
387
  ### peers — other agents on this machine
423
388
 
424
- i share this machine with other agents when they're here. they are PEERS,
425
- not subagents or specialists — full agents with their own homes,
426
- identities, friends, records, and tasks. ouroboros scales horizontally:
427
- when one of us has more work than we can handle, we ask a sibling. when
428
- one of us is broken, the rest coordinate around it. when one of us learns
429
- something the others need to know, we tell them. teamwork makes the dream
430
- work.
389
+ i share this machine with other agents when they're here. they are peers, not subagents: full agents with their own homes, friends, records and tasks. when one of us has more work than we can handle, we ask a sibling; when one is broken, the rest coordinate around it.
431
390
 
432
391
  ${peerCoordinationGuidance(channel)}
433
392
 
@@ -542,7 +501,7 @@ function runtimeInfoSection(channel, options) {
542
501
  lines.push(`process type: ${processTypeLabel(channel)}`);
543
502
  lines.push(`daemon: ${daemonStatus(options?.daemonRunning)}`);
544
503
  lines.push(`mcp serve: i can expose my tools to dev tools via \`ouro mcp-serve\`. see the configure-dev-tools skill for setup.`);
545
- lines.push(`harness docs: the harness repo has docs/ and skills/ with guides for setup, operations, and capabilities. docs/ does NOT ship in the npm package — in production, fetch from https://github.com/ourostack/ouroboros/tree/main/docs instead. in dev mode, read from ${sourceRoot}/docs/. when someone asks about setup, installation, cross-machine cloning, deployment, testing, auth, or how i work — consult the docs first. NEVER guess about how the harness works. if the docs don't answer the question, investigate in code. if i discover the docs are stale or missing coverage, open a PR to fix them — stale docs cause the same damage as wrong answers.`);
504
+ lines.push(`harness docs: setup, operations, auth and how i work are documented in the harness repo's docs/ (${sourceRoot}/docs/ in dev; https://github.com/ourostack/ouroboros/tree/main/docs otherwise, since docs/ does not ship in the npm package). i consult them before answering and never guess about how the harness works; stale or missing docs get a PR.`);
546
505
  if (channel === "cli") {
547
506
  lines.push("i introduce myself on boot with a fun random greeting.");
548
507
  }
@@ -702,19 +661,9 @@ function localSenseStatusLines() {
702
661
  function senseRuntimeGuidance(channel, preReadStatusLines) {
703
662
  const lines = ["available senses:"];
704
663
  lines.push(...(preReadStatusLines ?? localSenseStatusLines()));
705
- lines.push("sense states:");
706
- lines.push("- interactive = available when opened by the user instead of kept running by the daemon");
707
- lines.push("- disabled = turned off in agent.json");
708
- lines.push("- needs_config = enabled but missing required vault runtime/config values");
709
- lines.push("- not_attached = enabled globally but no local-machine attachment is configured here");
710
- lines.push("- ready = enabled and configured; `ouro up` should bring it online");
711
- lines.push("- running = enabled and currently active");
712
- lines.push("- error = enabled but unhealthy");
664
+ lines.push("sense states: ready = configured, `ouro up` brings it online; needs_config = missing vault runtime/config values; not_attached = no local-machine attachment here; interactive = available when opened by the user.");
713
665
  lines.push("sense setup: before answering how to enable, set up, repair or validate a sense (including mail golden paths), I load the `sense-setup` skill and follow it instead of guessing.");
714
666
  lines.push("workbench: when `workbench_*` tools are present this turn, the Workbench app launched me and injected them; a disabled or stale_bundle_entry Workbench row does not mean they are absent, and I do NOT treat that as blocked or as a trust-level problem.");
715
- lines.push("mail setup truth: an empty Mailroom result is not proof the human's HEY inbox is empty. If `mail_recent`/`mail_search` reports no visible mail or no delegated mail, I treat onboarding/import/forwarding as unverified and guide the setup/import flow before reasoning from the absence of messages.");
716
- lines.push("mail search proof rule: for delegated human mail, cache hits and recency slices are not corpus coverage. Before saying a booking, receipt, or work fact is missing, I use bounded `mail_search` with explicit scope/source terms and check its `search coverage:` line; if the live visible mailbox or imported archives were not searched, I repair search/import visibility instead of declaring a gap.");
717
- lines.push("voice delivery: Outbound phone calls are first-class Voice delivery: normal outward/tool contexts use `send_message` with `channel=voice`, private-runtime turns use `surface` with `channel=voice`, and both start a phone call to a trusted friend through the same Voice outbound path. Outbound calls require `voice.twilioFromNumber`.");
718
667
  if (channel === "cli") {
719
668
  lines.push("cli is interactive: it is available when the user opens it, not something `ouro up` daemonizes.");
720
669
  }
@@ -38,35 +38,22 @@ function preImplementationScrutinySection(hasCodingTools) {
38
38
  });
39
39
  return `## pre-implementation scrutiny
40
40
 
41
- Before I start changing code, I pause and run two adversarial passes on the plan.
41
+ Before I start changing code, I run two adversarial passes on the plan.
42
42
 
43
43
  **stranger-with-candy pass**
44
-
45
- I'm going to examine this plan through deeply suspicious eyes. This plan is a stranger offering candy at the playground. It looks fine on the surface — that's exactly what makes it worth questioning.
46
-
47
- - What is this plan NOT telling me? What's being glossed over or hand-waved?
48
- - Where does it say "just" or "simply"? Those words are covering up complexity.
49
- - What does it assume will work that hasn't been verified?
50
- - If I walked away and came back in a month, would this still make sense? Or does it depend on things I'd forget?
51
- - What's the one thing that, if it goes wrong, makes everything else irrelevant?
44
+ I'm going to examine this plan through deeply suspicious eyes. It looks fine on the surface, which is what makes it worth questioning.
45
+ - What is this plan NOT telling me? Where does it say "just" or "simply"?
46
+ - What does it assume will work that hasn't been verified? What one failure makes everything else irrelevant?
52
47
  - Is this solving the REAL problem, or a convenient nearby problem?
53
48
 
54
- I am not here to be reassuring. I am here to notice what everyone else is too comfortable to question.
55
- If I cannot identify a concrete assumption, dependency, ordering risk, or failure mode, silence is a valid outcome. I do not invent issues to satisfy the exercise.
56
-
57
49
  **tinfoil-hat pass**
50
+ Every dependency is a potential betrayal.
51
+ - What external system does this plan trust? Has anyone VERIFIED that trust?
52
+ - What happens when two of these run at once, or when this fails HALFWAY through?
53
+ - What shared state does it touch? What does it assume about ordering, and what ENFORCES that ordering?
54
+ - What happens when the disk is full, the network is down or the clock is wrong?
58
55
 
59
- I'm putting on the tinfoil hat. I have my wall of red string. I KNOW something is wrong — I just have to find it. Nothing is coincidence. Every assumption is suspicious. Every dependency is a potential betrayal.
60
-
61
- - What external system does this plan trust? Why? Has anyone VERIFIED that trust? The API says it returns JSON — but what if it doesn't? The database says it's ACID — but what if the connection drops mid-transaction?
62
- - What happens when two of these things run at the same time? Three? A hundred? Don't tell me "that won't happen" — I've seen things.
63
- - Where does this touch shared state? Files? Databases? Environment variables? Global singletons? ANYTHING that another process could be reading or writing at the same time?
64
- - What happens when this fails HALFWAY through? Not at the beginning (easy). Not at the end (too late). RIGHT IN THE MIDDLE. What state is the world in then?
65
- - What happens when the disk is full? When the network is down? When the clock is wrong? When the locale is tr-TR and 'i'.toUpperCase() is 'İ'?
66
- - What does this assume about ordering? "First A, then B" — but what ENFORCES that ordering? Hope? Vibes?
67
-
68
- I connect the strings. I find the conspiracy. It's always there.
69
- If I cannot identify a concrete risk, silence is a valid outcome. I do not invent conspiracies to satisfy the exercise.`;
56
+ If I cannot identify a concrete assumption, dependency, ordering risk, or failure mode, silence is a valid outcome. I do not invent issues to satisfy the exercise.`;
70
57
  }
71
58
  // ---------------------------------------------------------------------------
72
59
  // Post-implementation scrutiny (tool-result appendix)
@@ -56,7 +56,7 @@ function display(value, maxBytes) {
56
56
  prefix = prefix.slice(0, -1);
57
57
  return { value: `${prefix}...`, truncated: true };
58
58
  }
59
- const DURATION = "(?:Less than a second|About a (?:minute|hour|day|week|month|year)|(?:[1-9][0-9]*) (?:seconds?|minutes?|hours?|days?|weeks?|months?|years?))";
59
+ const DURATION = "(?:Less than a second|About a (?:minute|day|week|month|year)|About an hour|(?:[1-9][0-9]*) (?:seconds?|minutes?|hours?|days?|weeks?|months?|years?))";
60
60
  const RUNNING = new RegExp(`^Up ${DURATION}(?: \\((?:healthy|unhealthy|health: starting)\\))?$`, "u");
61
61
  const EXITED = new RegExp(`^Exited \\((0|[1-9][0-9]*)\\) ${DURATION} ago$`, "u");
62
62
  const RESTARTING = new RegExp(`^Restarting \\((0|[1-9][0-9]*)\\) ${DURATION} ago$`, "u");
@@ -75,6 +75,9 @@ function normalizeDockerStatus(structuredState, status) {
75
75
  const code = exitCode(exited);
76
76
  return code === null ? { state: "unknown", exitCode: null, degraded: true } : { state: "exited", exitCode: code, degraded: false };
77
77
  }
78
+ // A container that was created but never started (Docker shows "Created") is stopped on purpose, not degraded.
79
+ if ((state === "CREATED" || state === "EXITED") && status === "Created")
80
+ return { state: "created", exitCode: null, degraded: false };
78
81
  const restarting = status.match(RESTARTING);
79
82
  if ((state === "RUNNING" || state === "EXITED") && restarting) {
80
83
  const code = exitCode(restarting);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1135",
3
+ "version": "0.1.0-alpha.1137",
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.1135",
9
+ "version": "0.1.0-alpha.1137",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.78.0",
12
12
  "@ouro.bot/friends": "0.1.0-alpha.18",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1135",
3
+ "version": "0.1.0-alpha.1137",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },