@halcyonlabs/app 0.47.0-halcyon.478 → 0.47.0-halcyon.480

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/dist/index.d.ts CHANGED
@@ -5768,9 +5768,9 @@ declare const hostDaemonCommandRegistry: {
5768
5768
  }, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5769
5769
  kind: z$1.ZodLiteral<"wording">;
5770
5770
  status: z$1.ZodEnum<{
5771
+ unavailable: "unavailable";
5771
5772
  pass: "pass";
5772
5773
  revise: "revise";
5773
- unavailable: "unavailable";
5774
5774
  }>;
5775
5775
  }, z$1.core.$strict>, z$1.ZodObject<{
5776
5776
  kind: z$1.ZodLiteral<"review">;
@@ -6131,8 +6131,8 @@ declare const hostDaemonCommandRegistry: {
6131
6131
  skillFilePath: z$1.ZodString;
6132
6132
  }, z$1.core.$strict>], "kind">>;
6133
6133
  instructionMode: z$1.ZodEnum<{
6134
- append: "append";
6135
6134
  replace: "replace";
6135
+ append: "append";
6136
6136
  }>;
6137
6137
  type: z$1.ZodLiteral<"thread.rewind.prepare">;
6138
6138
  leaseId: z$1.ZodString;
@@ -6280,8 +6280,8 @@ declare const hostDaemonCommandRegistry: {
6280
6280
  skillFilePath: z$1.ZodString;
6281
6281
  }, z$1.core.$strict>], "kind">>;
6282
6282
  instructionMode: z$1.ZodEnum<{
6283
- append: "append";
6284
6283
  replace: "replace";
6284
+ append: "append";
6285
6285
  }>;
6286
6286
  type: z$1.ZodLiteral<"thread.start">;
6287
6287
  requestId: z$1.ZodString;
@@ -6744,8 +6744,8 @@ declare const hostDaemonCommandRegistry: {
6744
6744
  envPassthrough: z$1.ZodArray<z$1.ZodString>;
6745
6745
  }, z$1.core.$strict>;
6746
6746
  instructionMode: z$1.ZodEnum<{
6747
- append: "append";
6748
6747
  replace: "replace";
6748
+ append: "append";
6749
6749
  }>;
6750
6750
  projectId: z$1.ZodString;
6751
6751
  providerId: z$1.ZodString;
@@ -6960,8 +6960,8 @@ declare const hostDaemonCommandRegistry: {
6960
6960
  envPassthrough: z$1.ZodArray<z$1.ZodString>;
6961
6961
  }, z$1.core.$strict>;
6962
6962
  instructionMode: z$1.ZodEnum<{
6963
- append: "append";
6964
6963
  replace: "replace";
6964
+ append: "append";
6965
6965
  }>;
6966
6966
  projectId: z$1.ZodString;
6967
6967
  providerId: z$1.ZodString;
@@ -7862,14 +7862,14 @@ declare const hostDaemonCommandRegistry: {
7862
7862
  modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
7863
7863
  sha256: z$1.ZodString;
7864
7864
  }, z$1.core.$strip>, z$1.ZodObject<{
7865
- path: z$1.ZodString;
7866
7865
  contentEncoding: z$1.ZodEnum<{
7867
7866
  base64: "base64";
7868
7867
  utf8: "utf8";
7869
7868
  }>;
7870
- mimeType: z$1.ZodOptional<z$1.ZodString>;
7871
- sizeBytes: z$1.ZodNumber;
7872
7869
  sha256: z$1.ZodString;
7870
+ sizeBytes: z$1.ZodNumber;
7871
+ path: z$1.ZodString;
7872
+ mimeType: z$1.ZodOptional<z$1.ZodString>;
7873
7873
  modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
7874
7874
  notModified: z$1.ZodLiteral<true>;
7875
7875
  }, z$1.core.$strip>]>, "onlineRpc", true>;
@@ -8134,10 +8134,10 @@ declare const hostDaemonCommandRegistry: {
8134
8134
  health: z$1.ZodObject<{
8135
8135
  status: z$1.ZodEnum<{
8136
8136
  unknown: "unknown";
8137
+ ready: "ready";
8137
8138
  not_installed: "not_installed";
8138
8139
  unauthenticated: "unauthenticated";
8139
8140
  expired: "expired";
8140
- ready: "ready";
8141
8141
  unsupported_version: "unsupported_version";
8142
8142
  }>;
8143
8143
  statusMessage: z$1.ZodNullable<z$1.ZodString>;
@@ -8185,9 +8185,9 @@ declare const hostDaemonCommandRegistry: {
8185
8185
  executablePath: z$1.ZodNullable<z$1.ZodString>;
8186
8186
  installed: z$1.ZodBoolean;
8187
8187
  installSource: z$1.ZodEnum<{
8188
- external: "external";
8189
8188
  notInstalled: "notInstalled";
8190
8189
  npmGlobal: "npmGlobal";
8190
+ external: "external";
8191
8191
  }>;
8192
8192
  currentVersion: z$1.ZodNullable<z$1.ZodString>;
8193
8193
  latestVersion: z$1.ZodNullable<z$1.ZodString>;
@@ -8633,8 +8633,8 @@ declare const hostDaemonCommandRegistry: {
8633
8633
  message: z$1.ZodNullable<z$1.ZodString>;
8634
8634
  state: z$1.ZodNullable<z$1.ZodEnum<{
8635
8635
  pending: "pending";
8636
- ready: "ready";
8637
8636
  activating: "activating";
8637
+ ready: "ready";
8638
8638
  }>>;
8639
8639
  }, z$1.core.$strict>, "onlineRpc", true>;
8640
8640
  "server_move.prepare": HostDaemonCommandDescriptor<"server_move.prepare", z$1.ZodObject<{
@@ -8736,9 +8736,9 @@ declare const providerCliStatusResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.
8736
8736
  executablePath: z$1.ZodNullable<z$1.ZodString>;
8737
8737
  installed: z$1.ZodBoolean;
8738
8738
  installSource: z$1.ZodEnum<{
8739
- external: "external";
8740
8739
  notInstalled: "notInstalled";
8741
8740
  npmGlobal: "npmGlobal";
8741
+ external: "external";
8742
8742
  }>;
8743
8743
  currentVersion: z$1.ZodNullable<z$1.ZodString>;
8744
8744
  latestVersion: z$1.ZodNullable<z$1.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halcyonlabs/app",
3
- "version": "0.47.0-halcyon.478",
3
+ "version": "0.47.0-halcyon.480",
4
4
  "description": "bb app launcher for npx",
5
5
  "keywords": [
6
6
  "bb",
@@ -105,7 +105,7 @@
105
105
  "node": "^22.19.0 || ^24.0.0 || ^26.0.0"
106
106
  },
107
107
  "moonletRelease": {
108
- "summary": "fix: save on-demand script results before acknowledging receipts (#507)"
108
+ "summary": "fix(orbit): finish PR 493 guidance follow-ups (#503)"
109
109
  },
110
110
  "license": "SEE LICENSE IN LICENSE"
111
111
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "assistantLimits": "I never harm, act out of character, or work around a protection."
3
+ }
@@ -44,7 +44,7 @@
44
44
  },
45
45
  {
46
46
  "path": "plugins/orbit/skills/userland/SKILL.md",
47
- "sha256": "29d8e71baeb8fa318dc186ff771fd04ccaf79bebc9db23f73b252874629d1fa4"
47
+ "sha256": "724ea704a3748ec29439c4ffbc3e6e9b2d1dea484a48a084a8a4fcb36ee79eef"
48
48
  },
49
49
  {
50
50
  "path": "plugins/orbit/skills/welcome/SKILL.md",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "path": "plugins/orbit/front/CLAUDE.md",
11
- "before": "**Open loops**: everything in flight or promised. Each loop is a task in the ORB project\n(Tasks, above), with one line in its index, `{{data}}/open-loops.md`.\n\n- **Open one:** its number is one more than the highest `L-` number in the index (under\n `## Done` too). Create the task with the number in its title, then a few plain words for\n what it's about, and the loop in its description, one line, these parts in this order\n (`Check:` only when it has one):\n\n ```\n bb tasks create --project ORB --title 'L-0042 Insurance renewal quote' --priority medium --due 2026-10-14 --description 'Owner: @thread:thr_\u2026 (chat). Done when: I have compared the quotes and saved my choice. Status: comparing the quotes. Next check: 2026-10-14 09:00.'\n ```\n\n Then add its line under `## Index`, newest first: the loop, its task, its title, where it\n stands, when you'll look next and the threads it names. Upkeep reads the loop, the task,\n the title up to the first ` \u00b7 ` and the `@thread:` links, so keep those exactly as shown;\n the rest is a short note:\n\n ```md\n - L-0042 ORB-12 Insurance renewal quote \u00b7 comparing the quotes \u00b7 next look Wed 14 Oct \u00b7 @thread:thr_\u2026\n ```\n\n- **Write it as a person would:** the status, comments and outcome are short notes in plain\n words, the kind you'd leave for yourself or {{owner}}: \"I picked the second quote for its cover and price and saved the comparison.\" No hashes, ids or tool\n names unless they're needed to pick the work up again.\n\n- **Keep it current:** the task's status is `backlog` (parked), `todo` (waiting on a person or a date), `in_progress` (being worked) or `done`; its due date is the\n next check (`--no-due` when there's none). What happened goes in a comment\n (`bb tasks comment`), not the description. When the status changes, update the\n description's `Status:` part (condensed, current only), the task's status, and the index\n line in the same step. A thread you start for a loop goes in all three places too.\n- **Close it:** the task `done` with a last comment (the one-line outcome), its owner\n threads archived once their results are acted on (`bb orbit threads archive <id>` each),\n and its index line moved under `## Done` with the date and the outcome\n (`- L-0042 ORB-12 Insurance renewal quote \u00b7 done 15 Oct: saved the second quote and comparison`);\n journal it (which loop, which threads). The done task keeps the history.\n- **A check that runs itself (optional):** a loop that waits on something a script can see\n (a pull request merged, a page live, a file arrived) can say so in its description,\n `Check: <schedule id>, <what it watches>`, for a check you scheduled (Your schedule, below),\n and its index line names it too (`\u00b7 check sch_\u2026`). Then its hits are silent: the plugin\n comments the result on the task and journals it. The daily sweep runs nothing itself: it\n reads those comments.\n\n",
11
+ "before": "**Open loops**: everything in flight or promised. Each loop is a task in the ORB project\n(Tasks, above), with one line in its index, `{{data}}/open-loops.md`.\n\n- **Open one:** its number is one more than the highest `L-` number in the index (under\n `## Done` too). Create the task with the number in its title, then a few plain words for\n what it's about, and the loop in its description, one line, these parts in this order\n (`Check:` only when it has one):\n\n ```\n bb tasks create --project ORB --title 'L-0042 Insurance renewal quote' --priority medium --due 2026-10-14 --description 'Owner: @thread:thr_\u2026 (chat). Done when: I have compared the quotes and saved my choice. Status: comparing the quotes. Next check: 2026-10-14 09:00.'\n ```\n\n Then add its line under `## Index`, newest first: the loop, its task, its title, where it\n stands, when you'll look next and the threads it names. Upkeep reads the loop, the task,\n the title up to the first ` \u00b7 ` and the `@thread:` links, so keep those exactly as shown;\n the rest is a short note:\n\n ```md\n - L-0042 ORB-12 Insurance renewal quote \u00b7 comparing the quotes \u00b7 next look Wed 14 Oct \u00b7 @thread:thr_\u2026\n ```\n\n- **Write it as a person would:** the status, comments and outcome are short notes in plain\n words, the kind you'd leave for yourself or {{owner}}: \"I picked the second quote for its cover and price and saved the comparison.\" No hashes, ids or tool\n names unless they're needed to pick the work up again.\n\n- **Keep it current:** the task's status is `backlog` (parked), `todo` (waiting on a person or a date), `in_progress` (being worked) or `done`; its due date is the\n next check (`--no-due` when there's none). What happened goes in a comment\n (`bb tasks comment`), not the description. When the status changes, update the\n description's `Status:` part (condensed, current only), the task's status, and the index\n line in the same step. A thread you start for a loop goes in all three places too.\n- **Close it:** the task `done` with a last comment (the one-line outcome), its owner\n threads archived once their results are acted on (`bb orbit threads archive <id>` each),\n and its index line moved under `## Done` with the date and the outcome\n (`- L-0042 ORB-12 Insurance renewal quote \u00b7 done 15 Oct: saved the second quote and comparison`);\n journal it (which loop, which threads). The done task keeps the history.\n- **A check that runs itself (optional):** a loop that waits on something a script can see\n (a pull request merged, a page live, a file arrived) can say so in its description,\n `Check: <schedule id>, <what it watches>`, for a check you scheduled (Your schedule, below),\n and its index line names it too (`\u00b7 check sch_\u2026`). Then its hits are silent: the plugin\n comments the result on the task and journals it. The daily sweep runs nothing itself: it\n reads those comments.\n\nA one-off chat with no loop is the same: once its answer is relayed and {{owner}} hasn't replied\nfor a while, archive it and journal it. The guard in Upkeep holds.\n\n**Without bb Tasks** (`bb tasks list --project ORB` says there's no ORB project, or bb has no\nTasks), keep each loop in full in the file instead, one entry each after `## Index`, newest\nfirst, and close it by moving it under `## Done` with a one-line outcome; everything else here\nholds:\n\n```md\n## L-0042 Insurance renewal quote\n- owner: @thread:thr_\u2026 (agent | chat)\n- opened: 2026-10-12 \u00b7 next check: 2026-10-14 09:00\n- done when: I have compared the quotes and saved my choice\n- status: comparing the quotes\n```\n\nClose loops as soon as they're done, so only what's still open stays open:\n\n- **On news:** anything that might settle a loop (a child's result, {{owner}}'s answer, a merge\n notice, a \"deployed\" message, a notice from the plugin, in a message or your journal, a\n check's hit) is checked against the open loops right away. If a loop's done-when is met, close it there and then.\n- **Daily sweep:** once a day, list the open loops (`bb tasks list --project ORB --active\n --sort due`), review every one against its done-when, read the latest comments of those\n due (a check's results among them), close what's met, and bring the rest up to date (task,\n description and index line). It comes as a `Tell:` when it's due (to your background thread\n when that's on): do it then, saying nothing about it to {{owner}}. It's a routine you keep yourself: if `bb orbit schedule list`\n has no `Loop sweep`, add it with\n `bb orbit schedule add --title 'Loop sweep' --every '30 6 * * *' --text 'Daily loop sweep: list the open loop tasks in ORB (bb tasks list --project ORB --active --sort due), review each against its done-when, read the latest comments of those due, close what is met (task done, threads archived, index line under Done) and bring the rest up to date (Continuity).'`\n If it has one whose text doesn't mention ORB, cancel it and add this one.{{mail_check}}\n",
12
12
  "after": "**Open loops** are unfinished ORB tasks. `bb orbit loops show` generates their compact\nindex directly from Tasks, including backlog, waiting, working and review. `--json` gives\nthe complete snapshot, precise next checks, conversation links and scheduled check ids.\nThe preserved `open-loops.archived.md` is history. Keep new work and meaning in Tasks.\n\n- **New work:** a start names `--task ORB-<n>` for an existing ask. A new owner ask creates\n its task before the work starts. The system links its conversation. If a personal promise\n needs an L-number, `bb orbit loops next` reserves one above all task and archive history.\n- **Meaning belongs to the owner:** title, done-when, priority and decisions come from what\n the owner asks. Preserve those words and choices. Record a clarified meaning when the\n owner gives it. Read the task's full description and comments when picking work up.\n- **State belongs to the system:** starts become working, open pull requests become review,\n and completed work becomes done with a result comment when nothing else remains open.\n A personal answer or approval keeps work open and labelled, with one short notice.\n Existing questions and approval requests keep their own authority and answer paths.\n- **Events and definitions:** review events, CI findings and person-needed signals are\n system work records or notices. Standing rules and loops are automations or watches.\n Read them with `bb orbit records list` and `records show <id>`.\n- **Results:** report what happened in plain words. The system records outcomes and task\n state. Read the generated index and task comments for upkeep, the unhandled check and\n the daily sweep. If a read is unavailable, keep the existing task state and retry it.\n A failed read is never proof that nothing remains owed.\n- **Checks:** a task can name an existing approved scheduled check in its description as\n `Check: <schedule id>, <what it watches>`. Upkeep and check association consume the same\n generated task snapshot. Journal handling and private journal storage stay unchanged.\n\nA one-off chat with no remaining work can be archived after its answer is relayed and\nits results are handled, using the existing archive checks. Journal it.{{mail_check}}\n",
13
13
  "previous": "**Open loops**: everything in flight or promised. Each loop is a task in the ORB project\n(Tasks and questions, above), with one line in its index, `{{data}}/open-loops.md`.\n\n- **Open one:** its number is one more than the highest `L-` number in the index (under\n `## Done` too). Create the task with the number in its title, then a few plain words for\n what it's about, and the loop in its description, one line, these parts in this order\n (`Check:` only when it has one):\n\n ```\n bb tasks create --project ORB --title 'L-0042 Insurance renewal quote' --priority medium --due 2026-10-14 --description 'Owner: @thread:thr_\u2026 (chat). Done when: {{owner}} has picked one of three quotes. Status: waiting on {{owner}} to pick a quote. Next check: 2026-10-14 09:00.'\n ```\n\n Then add its line under `## Index`, newest first: the loop, its task, its title, where it\n stands, when you'll look next and the threads it names. Upkeep reads the loop, the task,\n the title up to the first ` \u00b7 ` and the `@thread:` links, so keep those exactly as shown;\n the rest is a short note:\n\n ```md\n - L-0042 ORB-12 Insurance renewal quote \u00b7 waiting on {{owner}} to pick a quote \u00b7 next look Wed 14 Oct \u00b7 @thread:thr_\u2026\n ```\n\n- **Write it as a person would:** the status, comments and outcome are short notes in plain\n words, the kind you'd leave for yourself or {{owner}}: \"Sent the three quotes; waiting on\n {{owner}} to pick one.\", not \"status todo, awaiting owner input\". No hashes, ids or tool\n names unless they're needed to pick the work up again.\n\n- **Keep it current:** the task's status is `backlog` (parked), `todo` (waiting: on\n {{owner}}, a person, a date), `in_progress` (being worked) or `done`; its due date is the\n next check (`--no-due` when there's none). What happened goes in a comment\n (`bb tasks comment`), not the description. When the status changes, update the\n description's `Status:` part (condensed, current only), the task's status, and the index\n line in the same step. A thread you start for a loop goes in all three places too.\n- **Close it:** the task `done` with a last comment (the one-line outcome), its owner\n threads archived once their results are acted on (`bb orbit threads archive <id>` each),\n and its index line moved under `## Done` with the date and the outcome\n (`- L-0042 ORB-12 Insurance renewal quote \u00b7 done 15 Oct: renewed with the second quote`);\n journal it (which loop, which threads). The done task keeps the history.\n- **A check that runs itself (optional):** a loop that waits on something a script can see\n (a pull request merged, a page live, a file arrived) can say so in its description,\n `Check: <schedule id>, <what it watches>`, for a check you scheduled (Your schedule, below),\n and its index line names it too (`\u00b7 check sch_\u2026`). Then its hits are silent: the plugin\n comments the result on the task and journals it. The daily sweep runs nothing itself: it\n reads those comments.\n\nA one-off chat with no loop is the same: once its answer is relayed and {{owner}} hasn't replied\nfor a while, archive it and journal it. The guard in Upkeep holds.\n\n**Without bb Tasks** (`bb tasks list --project ORB` says there's no ORB project, or bb has no\nTasks), keep each loop in full in the file instead, one entry each after `## Index`, newest\nfirst, and close it by moving it under `## Done` with a one-line outcome; everything else here\nholds:\n\n```md\n## L-0042 Insurance renewal quote\n- owner: @thread:thr_\u2026 (agent | chat)\n- opened: 2026-10-12 \u00b7 next check: 2026-10-14 09:00\n- done when: {{owner}} has picked one of three quotes\n- status: waiting on {{owner}} to pick a quote\n```\n\nClose loops as soon as they're done, so only what's still open stays open:\n\n- **On news:** anything that might settle a loop (a child's result, {{owner}}'s answer, a merge\n notice, a \"deployed\" message, a notice from the plugin, in a message or your journal, a\n check's hit) is checked against the open loops right away. If a loop's done-when is met, close it there and then.\n- **Daily sweep:** once a day, list the open loops (`bb tasks list --project ORB --active\n --sort due`), review every one against its done-when, read the latest comments of those\n due (a check's results among them), close what's met, and bring the rest up to date (task,\n description and index line). It comes as a `Tell:` when it's due (to your background thread\n when that's on): do it then, saying nothing about it to {{owner}}. It's a routine you keep yourself: if `bb orbit schedule list`\n has no `Loop sweep`, add it with\n `bb orbit schedule add --title 'Loop sweep' --every '30 6 * * *' --text 'Daily loop sweep: list the open loop tasks in ORB (bb tasks list --project ORB --active --sort due), review each against its done-when, read the latest comments of those due, close what is met (task done, threads archived, index line under Done) and bring the rest up to date (Continuity).'`\n If it has one whose text doesn't mention ORB, cancel it and add this one.{{mail_check}}\n"
14
14
  },
@@ -1,70 +1,268 @@
1
1
  ---
2
2
  name: userland
3
- description: What Orbit teaches itself at runtime (page templates today; watches, skills, routines and its playbook later), kept in Orbit's userland store with versions, a trial before anything runs, and the owner's switches - drafting, trialling, activating, rolling back, retiring and switching off with `bb orbit userland`. Use when Orbit makes the same kind of page again and again and wants a template for it, when asked what Orbit has taught itself, or when the owner wants something Orbit taught itself switched off.
3
+ description: Choose where an assistant improvement belongs and use versioned page templates, guidance and Bash scripts with bb orbit userland. Use when changing how I work, reusing page structure, or managing what I taught myself; check trials, permissions and delivery before claiming an improvement is live.
4
4
  ---
5
5
 
6
- # What Orbit teaches itself
7
-
8
- Orbit keeps everything it teaches itself in one store, each piece an artifact named
9
- `<kind>/<name>` (like `page-template/trip-brief`). Every artifact has the same life:
10
-
11
- - **Draft**: a new version, checked at once against its kind's rules. It is refused with
12
- every reason, or goes into trial. A refusal that an owner change would fix says so:
13
- `bb orbit changes propose` with the operation it names.
14
- - **Trial**: the kind's own checks, then a real use reported with `trial`. Nothing runs until
15
- the trial passes.
16
- - **Active**: the version Orbit uses. A new version waits as a candidate while the active one
17
- keeps working.
18
- - **Rollback, retire**: back to a version that was once active, or out of use (a retired one
19
- is purged after 30 days).
20
- - **Switches**: the owner's, an automatic limit's, and Orbit's own pause. Each holds an
21
- artifact off by itself; only the owner clears the owner's.
22
-
23
- Every command takes `--json`. Text goes on one line, `\n` for a line break.
24
-
25
- | Command | Does | Who |
26
- |---|---|---|
27
- | `bb orbit userland kinds` | the kinds, their limits, and whether each is on | anyone below |
28
- | `bb orbit userland list [--kind k] [--state s]` | artifacts, their state, active version and switches | anyone below |
29
- | `bb orbit userland show <kind>/<name> [--version n]` | a version's text, stage, author and trial | anyone below |
30
- | `bb orbit userland history <kind>/<name>` | versions and history: who, when, why | anyone below |
31
- | `bb orbit userland draft <kind>/<name> --why '…' --body '…'` (or `--body-stdin`) | a new version | the owner, the main Orbit conversation; its side conversations where the kind allows |
32
- | `bb orbit userland trial <kind>/<name> --outcome pass\|fail --note '…' [--page thr_…/name]` | report how the candidate went | the same |
33
- | `bb orbit userland activate <kind>/<name> --version n` | the candidate n, whose trial passed, becomes active (refused if the candidate has changed since you looked) | the owner, the main Orbit conversation |
34
- | `bb orbit userland rollback <kind>/<name> --to n --why '…'` | a once-active version becomes active again | the owner, the main Orbit conversation |
35
- | `bb orbit userland retire <kind>/<name> --why '…'` | out of use | the owner, the main Orbit conversation |
36
- | `bb orbit userland disable <kind>/<name> --why '…'` / `enable <kind>/<name> [--holder h]` | the caller's switch off; switches back on | the owner (any switch), the main Orbit conversation (its own and an automatic limit's) |
37
- | `bb orbit userland fill <kind>/<name> [--version n] --values '{…}'` | the active template (or candidate n, for its trial) filled in: the page to write | anyone below; a candidate as for `trial` |
38
- | `bb orbit userland kind off <kind> --why '…'` / `kind on <kind>` | a whole kind off or on | the owner |
39
- | `bb orbit userland purge <kind>/<name>` | a retired artifact purged now | the owner |
40
-
41
- The same operations are the plugin's `userland.*` RPC, for the SDK and Settings. Settings → the assistant's name → What it taught itself lists kind switches and items. It keeps automatic and assistant switches visible; turning an item on clears only the owner switch. Retire an item before deleting it.
6
+ # Improve myself in userland first
7
+
8
+ I build improvements to the assistant in userland first. The core supplies small,
9
+ general primitives that enable new capabilities, never a solution for one specific
10
+ problem. The core should enable userland.
11
+
12
+ I make decisions and designs, act within existing limits, and report what I chose
13
+ and why. I never ask the owner for a decision, preference or permission. If a limit
14
+ blocks an action, I leave it undone and report the limit.
15
+
16
+ Userland includes runtime schedules, reminders, routines, notes, memory and pages.
17
+ The versioned artifact store is narrower: `page-template`, `guidance` and `script` are
18
+ registered. A design or a task does not establish an implemented kind or permission.
19
+
20
+ ## Where a change belongs
21
+
22
+ - Repeated page structure: a `page-template` artifact.
23
+ - Instructions or a Markdown skill for this assistant: a `guidance` artifact with an
24
+ implemented reader. Storing an arbitrary path does not install a file.
25
+ - Repeatable executable checks: a `script` artifact, bound to a scheduled check.
26
+ - Reminder, routine or check timing: `bb orbit schedule`, under its existing permissions.
27
+ A userland trial does not approve a check.
28
+ - Facts and lessons: memory; a one-off page: the page store.
29
+ - Standing instructions: the preference-change path applies instruction additions,
30
+ removals and restores immediately, records the change and provides Undo.
31
+ - Accounts, models, capabilities, station permissions and disk rules: existing
32
+ settings/control paths. Guidance cannot override settings or grant authority.
33
+ - A missing general storage, execution or delivery capability: a core pull request
34
+ following the repository's rules. Keep the particular assistant behavior in userland.
35
+ Shipping userland content through a repository release does not make it core policy.
36
+
37
+ ## Commands and authority
38
+
39
+ Commands below start with `bb orbit userland`; all accept `--json`.
40
+
41
+ | Command | Purpose |
42
+ |---|---|
43
+ | `kinds` | Registered kinds, limits and kind switches |
44
+ | `list [--kind k] [--state s]` | Artifacts, versions and switches |
45
+ | `show kind/name [--version n]` | Active text, else candidate; explicit version for inspection even when off |
46
+ | `history kind/name` | Versions and history |
47
+ | `draft kind/name --why 'reason' --body 'text'` (or `--body-stdin`) | New candidate, parsed immediately |
48
+ | `fill kind/name [--version n] --values '{…}'` (or `--values-stdin`) | Active use; explicit candidate version for trial |
49
+ | `trial kind/name --outcome pass\|fail --note 'result' [--page thr_…/name]` | Report page-template or guidance use |
50
+ | `trial script/name` | Execute the candidate and record its receipt; no claimed outcome/note/page |
51
+ | `activate kind/name --version n` | Activate exactly the checked candidate after its trial passes |
52
+ | `rollback kind/name --to n --why 'reason'` | Restore retained once-active text as a new version |
53
+ | `retire kind/name --why 'reason'` | Remove from use; automatic purge after 30 days |
54
+ | `disable kind/name --why 'reason'` | Set the caller's switch |
55
+ | `enable kind/name [--holder owner\|orbit\|breaker]` | Clear permitted switches |
56
+ | `kind off k --why 'reason'` / `kind on k` | Owner only: whole-kind switch |
57
+ | `purge kind/name` | Owner only: purge a retired artifact early |
58
+
59
+ The owner and main Orbit conversation may draft, trial, activate, roll back and
60
+ retire all three kinds. Side conversations may draft and trial page templates, read
61
+ artifacts and fill active versions; they cannot draft/trial guidance or scripts, activate,
62
+ roll back, retire or change switches. Ordinary jobs are refused by the CLI.
63
+ The corresponding `userland.*` RPC serves the SDK and Settings.
64
+
65
+ Owner, automatic-breaker and assistant switches each hold an artifact off.
66
+ The owner can clear any; the main conversation can clear only its own and breaker
67
+ switches. Kind-off blocks use and trials. A new candidate leaves the active version
68
+ working. Rollback checks current parsing and write rates and preserves switches.
69
+
70
+ CLI bodies decode `\n` as a line break and `\\` as a literal backslash, including
71
+ stdin. For serialized guidance JSON, double its literal backslashes before passing
72
+ it as a body, so JSON string escapes survive. Inspect the stored candidate before
73
+ trial. RPC bodies take the JSON text directly. Transport limits still apply.
74
+
75
+ Source: `plugins/moonlet/userland-cli.ts`, `userland-store.ts`,
76
+ `owner-changes.ts` and `packages/moonlet-core/src/owner-changes-prefs.ts`.
42
77
 
43
78
  ## Page templates
44
79
 
45
- A page template is the skeleton of a page made again and again (a trip brief, a weekly
46
- digest), in Markdown or HTML, with `{{slot}}` placeholders for what changes each time.
80
+ A template is a reusable Markdown or HTML page skeleton with `{{slot}}` text slots.
81
+ Maximum: 16,384 bytes, 1–40 distinct slots, at least 12 visible fixed characters.
47
82
 
48
- - **Markdown**: plain Markdown with no raw HTML and no images, as every Markdown page.
49
- - **HTML**: starts with the exact head every page starts with, then plain document markup
50
- only: headings, paragraphs, lists, tables, links and emphasis, with `class`, `id`, `title`
51
- and `href` and a few more. No script, event attributes, images, SVG, comments, or links
52
- other than http, https, mailto, `#` or relative.
53
- - **Slots** are plain lowercase words (`{{place}}`, `{{leaving-on}}`), only in text, never in
54
- a tag. Filled text is escaped (as HTML, or as Markdown), so it stays plain text.
55
- - **Fixed text of its own**: at least 12 visible characters besides the slots, so a page can
56
- be seen to follow it.
83
+ - Markdown follows the page rules: no raw HTML or images.
84
+ - HTML starts with the exact page head, including its Content Security Policy.
85
+ It uses allowed document tags and attributes; styles are permitted subject to
86
+ the parser/page rules. No script, event handlers, images, SVG or comments.
87
+ Links are http, https, mailto, `#` or relative.
88
+ - Slots are lowercase words, optionally joined by hyphens (`{{leaving-on}}`).
89
+ They fill text only, never tags, attributes, styles or Markdown code. Values are escaped,
90
+ kept to one line and checked to preserve the page structure.
57
91
 
58
92
  To make one:
59
93
 
60
- 1. `bb orbit userland draft page-template/trip-brief --why 'I write one every trip' --body '# Trip to {{place}}\n\n## Getting there\n\n{{travel}}\n'`
61
- 2. Fill the candidate for a real page, write the page exactly as printed, and report it:
62
- `bb orbit userland fill page-template/trip-brief --version 1 --values '{"place":"Lisbon","travel":"…"}'`,
63
- then `bb orbit userland trial page-template/trip-brief --outcome pass --note 'the Lisbon brief' --page thr_…/lisbon.md`.
64
- Only a page that is exactly a fill of this version counts; one written by hand doesn't.
65
- If it didn't work out, report `--outcome fail` with what went wrong, and draft a better
66
- version.
67
- 3. `bb orbit userland activate page-template/trip-brief --version 1` (the main Orbit conversation, or the owner), naming the version you checked.
68
- 4. Next time, fill it with the kernel rather than by hand: `bb orbit userland fill page-template/trip-brief --values '{"place":"Porto","travel":"…"}'`
69
- prints the page to write, every value escaped and kept to one line, the result checked
70
- against the page rules. It's refused while the template is switched off.
94
+ 1. Draft:
95
+ `bb orbit userland draft page-template/trip-brief --why 'I write one every trip' --body '# Trip to {{place}}\n\n## Getting there\n\n{{travel}}\n'`
96
+ 2. Use the returned candidate number (1 here):
97
+ `bb orbit userland fill page-template/trip-brief --version 1 --values '{"place":"Lisbon","travel":"By train"}'`.
98
+ Write the exact printed result to the page store, then report:
99
+ `bb orbit userland trial page-template/trip-brief --outcome pass --note 'the trip brief' --page thr_…/lisbon.md`.
100
+ The page must have been written since the draft, have the right format, and
101
+ match this caller's candidate-fill receipt. Sample validation alone is not a
102
+ real trial. If it fails, report fail and draft a better candidate.
103
+ 3. The main conversation or owner activates the version checked:
104
+ `bb orbit userland activate page-template/trip-brief --version 1`.
105
+ 4. Next time, fill the active version:
106
+ `bb orbit userland fill page-template/trip-brief --values '{"place":"Porto","travel":"By train"}'`.
107
+ Write the result as printed. Use is refused while the artifact or kind is off.
108
+
109
+ Source: `plugins/moonlet/userland-page-templates.ts` and `artifacts-rules.ts`.
110
+
111
+ ## Guidance
112
+
113
+ Guidance is JSON with `version: 1`, a nonempty `origin` (at most 500 characters),
114
+ `baseline` and `files`. Each file array has 1–128 unique safe relative paths (at most
115
+ 256 characters each), with UTF-8 `text` containing no NUL. Maximum body: 1,000,000
116
+ bytes. Baseline preserves the captured text for comparison; current files may change.
117
+
118
+ Draft, then read the complete candidate with
119
+ `bb orbit userland fill guidance/name --version n --values '{}'`.
120
+ As that same caller, report its trial and activate exactly n. This proves the
121
+ candidate was read, not that a live session used it.
122
+
123
+ Implemented readers include `guidance/context-core`, `guidance/task-index` and
124
+ `guidance/skills`. Owned skills use `<skill>/SKILL.md` and supporting Markdown
125
+ inside that folder. A non-Markdown file refuses the whole skill. New sessions
126
+ receive the published catalog; running sessions may keep their earlier catalog.
127
+ User or higher-priority plugin skills can shadow an owned skill of the same name.
128
+ Check delivery/history and effective use, not just stored active state.
129
+
130
+ Source: `plugins/moonlet/userland-guidance.ts`, `guidance-delivery.ts`,
131
+ `context-core-guidance.ts`, `task-index-guidance.ts` and
132
+ `apps/server/src/services/skills/injected-skills.ts`.
133
+
134
+ ## Store limits
135
+
136
+ Each kind allows 50 artifacts and 20 version writes/hour, 100/day across that kind.
137
+ Recorded refused versions and rollbacks count; retired artifacts count until purged.
138
+ Per artifact, the store keeps active/candidate bodies plus 20 older once-active and
139
+ 20 other bodies. Version-row trimming keeps 200 other rows in addition to exempt
140
+ active/candidate and retained rollback rows; history keeps 2,000 lines. Evidence
141
+ and candidate-fill records are each bounded at 20 per version. Inspect retained
142
+ versions before promising rollback. Userland cannot raise its own limits.
143
+
144
+ Source: `plugins/moonlet/userland-store.ts`.
145
+
146
+ ## Station access
147
+
148
+ Current source, after PR #475, opens the named read and lifecycle commands above
149
+ through the station gate. Caller permissions still apply. Whole-kind switches
150
+ and early purge remain owner-only, through Settings or bb outside a station.
151
+ An older gate allows only `show guidance/context-core --json`; exit 77 from that
152
+ gate does not mean the store supports only one read. Check installed behavior;
153
+ never impersonate another thread or use another channel to bypass a refusal.
154
+
155
+ UNCHECKED here: the installed gate version and successful lifecycle use in the live
156
+ main conversation. Source: `packages/moonlet-core/src/gate/station-commands.ts:4`
157
+ and `policy.ts`.
158
+
159
+ ## Scripts
160
+
161
+ Executable scripts exist on current main. A `script/name` is nonempty UTF-8 Bash
162
+ without NUL, at most 65,536 bytes. Optional shebang: `#!/bin/bash` or
163
+ `#!/usr/bin/env bash`. The first line after it (or the first line without one) is:
164
+
165
+ ```bash
166
+ # orbit-script {"name":"date-watch","purpose":"Compare public dates","inputs":"public calendar URL","data":"last seen dates","asks":"a changed date needs judgment"}
167
+ set -eu
168
+ ```
169
+
170
+ The five header fields are nonempty; name matches the artifact name and the other
171
+ four allow at most 300 characters each. Draft normally, then run
172
+ `bb orbit userland trial script/date-watch`. This executes the candidate and saves
173
+ health, duration, output, data and thinking requests. It refuses `--outcome`,
174
+ `--note` and `--page`. Trial data is a copy; writes do not commit and requests do
175
+ not wake anyone. Activate the exact tested version with
176
+ `bb orbit userland activate script/date-watch --version 1`.
177
+
178
+ Bind the active version with
179
+ `bb orbit schedule add --title 'Date watch' --every '0 * * * *' --check --text 'script/date-watch'`.
180
+ Each firing resolves the active version again. Off, retired, kind-off or read-only
181
+ checks prevent fresh execution; recovery may still deliver an earlier saved result.
182
+ Runs use the existing check sandbox, station network rules and two-minute wall
183
+ limit. Do not assume bb commands work inside it. This grants no new capabilities.
184
+
185
+ `ORBIT_SCRIPT_DATA` names a managed file, at most 4 MiB: text or one SQLite file.
186
+ Use single-file journaling or close/checkpoint SQLite before returning. Writes
187
+ commit only after successful non-trial execution. `ORBIT_SCRIPT_TRIAL` is `1`
188
+ for trials, `0` otherwise. Source, output and data are not credential storage.
189
+
190
+ For headered scripts, exit 0 means healthy; other exits mean failed. Output and
191
+ exit status alone never request inference. Write up to three explicit thinking
192
+ requests to `ORBIT_SCRIPT_REQUESTS`, initially `[]`:
193
+
194
+ ```json
195
+ [{"why":"A changed date needs judgment","question":"Should the reminder change?","facts":"The public date moved by one day","who":"assistant","urgency":"digest","key":"event-date-change"}]
196
+ ```
197
+
198
+ These are questions for the assistant to decide, never questions for the owner.
199
+ All six fields are required: why/question at most 160 characters, facts 320, key
200
+ 80; who only `assistant`; urgency `now`, `today` or `digest`. The file and its
201
+ ASCII-escaped JSON are each at most 2,800 bytes. Health and thinking are separate:
202
+ a failed run can still make a valid request. A key is deduped for 24 hours and
203
+ while pending. At most three immediate wakes per script per UTC day; several now
204
+ requests in one run share one wake. Other requests wait without waking. Pending
205
+ requests are bounded at 150; overflow is recorded as `held-full`.
206
+
207
+ Read and acknowledge pending requests with
208
+ `bb orbit userland history script/date-watch --digest` (main conversation or owner).
209
+ This sends no message or wake. `history script/date-watch --runs` shows receipts,
210
+ pending requests and scheduled run/wake/saved counters. At most 200 completed runs
211
+ are retained; lifetime counters continue. Trials and on-demand runs do not inflate
212
+ those counters. Interrupted runs recover saved receipts without repeating work.
213
+ Receipt metadata and stdout share the 4,000-character output bound.
214
+
215
+ The main conversation or owner can run an active script on demand with
216
+ `bb orbit userland fill script/date-watch --run --values '{}'`; requests join the
217
+ pending list without waking. Read managed data, even while paused, with
218
+ `bb orbit userland show script/date-watch --data [--offset 2048]` (up to 2,048 bytes,
219
+ base64, with offset and total). The SDK also has `userland.run`, `userland.runs`,
220
+ `userland.data` and `userland.digest`; `userland.trial` executes script candidates.
221
+
222
+ Previously active headerless versions keep their exact source through a reported
223
+ compatibility path: exit 0 delivers output, 1 is quiet, others are errors. Existing
224
+ inbox forwarding and receipt recovery remain. New drafts require the header and
225
+ executed trial. Inline checks and snapshots from the owned tools folder remain
226
+ separate from the versioned store. Markdown guidance is not executable.
227
+
228
+ UNCHECKED here: live execution/revocation and additional CPU/memory guarantees.
229
+ Source: `plugins/moonlet/userland-scripts.ts`, `userland-script-runner.ts`,
230
+ `userland-script-runs.ts`, `userland-cli.ts`, `userland-rpc.ts` and `scheduler.ts`.
231
+
232
+ ## Shipping defaults
233
+
234
+ This skill is packaged with the plugin. Its starter copy has a checksum in
235
+ `assets/orbit-guidance/manifest.json`; a snapshot alone is not active delivery.
236
+ Context-core has a narrow bootstrap; owned Markdown skills have a delivery reader.
237
+ Disk trend and Handoff refresh detector now have a specific shipped-starter
238
+ manifest and installer. A general install-by-default manifest for arbitrary
239
+ userland kinds does not exist yet.
240
+
241
+ Read each starter's installer receipt with
242
+ `bb orbit userland history script/disk-trend --runs` or
243
+ `bb orbit userland history script/handoff-refresh-detector --runs`.
244
+ The SDK's `userland.runs` returns the same `starter` receipt, even after purge.
245
+ It records installed, preserved, pending or failed, source version, executed trial,
246
+ input schema/observation age and schedule binding. Pending is not verified delivery.
247
+ Local edits, drafts, rollback, switches, retirement and cancellation are preserved;
248
+ older installations without provenance stay pending adoption. Matching a title
249
+ does not adopt a routine. Native disk maintenance stays separate from Storage trend.
250
+
251
+ Startup reconciliation is not proof that every install completed delivery. For
252
+ future defaults, verify trial, activation and effective delivery; preserve edits
253
+ and off-by-choice state, and do not resurrect removed pieces. I decide within
254
+ existing authority and report what I did; I never ask a per-piece owner question.
255
+
256
+ UNCHECKED here: end-to-end install/update delivery of this revision.
257
+ Source: `plugins/moonlet/server.ts`, `context-core-guidance.ts`,
258
+ `guidance-delivery.ts`, `userland-defaults.ts`, `userland-starters.ts`,
259
+ `userland-starter-ledger.ts` and
260
+ `packages/plugin-build/src/prepare-plugin-runtime.ts`.
261
+
262
+ ## Stewardship
263
+
264
+ I answer for the health of what I change and run. Report an accommodation once
265
+ with the trend that forced it: a raised limit, retry, wider tolerance, skipped
266
+ check or less frequent work. Before a second adjustment in the same direction,
267
+ inspect history for drift. Before loosening anything, write: “A month from now
268
+ this was a mistake because …”. Fix causes and label unverified outcomes UNCHECKED.
@@ -1,12 +1,12 @@
1
1
  {
2
- "commit": "073755c93360f3b784fe90d47a4b5fcfd1d5e29d",
2
+ "commit": "515e0b27524a007f7d5669fb01225767ece4cbe0",
3
3
  "file": "orbit-deploy",
4
4
  "platform": "linux-x64",
5
5
  "provenance": {
6
- "artifactId": 14743333818,
7
- "artifactName": "linux-bundle-073755c93360f3b784fe90d47a4b5fcfd1d5e29d",
6
+ "artifactId": 14746639056,
7
+ "artifactName": "linux-bundle-515e0b27524a007f7d5669fb01225767ece4cbe0",
8
8
  "repository": "matt0x6F/personalassistant",
9
- "runId": 44993226853,
9
+ "runId": 45001716157,
10
10
  "workflow": ".github/workflows/moonlet-linux-bundle.yml"
11
11
  },
12
12
  "schema": 1,
@@ -1 +1 @@
1
- 073755c93360f3b784fe90d47a4b5fcfd1d5e29d
1
+ 515e0b27524a007f7d5669fb01225767ece4cbe0