sil-openclaw 0.4.0 → 0.4.1

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.
@@ -1,56 +1,49 @@
1
1
  ---
2
2
  name: multi-domain-shopper-walkthrough
3
- description: A worked six-beat, multi-domain run — create one shopper (after an explicit endorsement), then shop two unrelated niches in one session, the second minted on the fly and announced, with a shared user_spec fact reused across both. Illustrative, not a spec.
3
+ description: A worked six-beat run — create one shopper (after endorsement), then shop two unrelated niches in one session, the second minted on the fly, with a shared user_spec fact reused across both. Illustrative, not a spec.
4
4
  ---
5
5
 
6
6
  # Worked run — one shopper, two niches, six beats
7
7
 
8
- A concrete end-to-end walkthrough of the six-beat loop across two unrelated
9
- niches. It is illustrative — the authoritative rules live in the beat references.
8
+ Illustrative only — authoritative rules live in the beat references.
10
9
 
11
10
  ## Create the shopper (once, after endorsement)
12
11
 
13
- The two-touchpoint interview assembles a draft persona + a shared user-spec seed.
14
- Only after the user **endorses** the assembled draft does the engine run
15
- `openclaw agents add` and materialize the shared `user_spec.md`. Nothing is created
16
- before that endorsement. The result is **one** shopper — a **singleton**.
17
-
18
- The seeded shared spec already holds one durable fact: `- [hard] ships to Berlin;
19
- allergic to wool` — a cross-niche fact, kept in `user_spec` because it stays true in
20
- **every niche**.
12
+ The two-touchpoint interview assembles a draft persona + shared user-spec seed. Only after the
13
+ user **endorses** it does the engine run `openclaw agents add` and materialize the shared
14
+ `user_spec.md` — nothing before that. The result is **one** shopper, a **singleton**. The seed
15
+ holds one durable fact — `- [hard] ships to Berlin; allergic to wool` — cross-niche, so it
16
+ lives in `user_spec` (true in **every** niche).
21
17
 
22
18
  ## Niche A — ski gloves (all six beats)
23
19
 
24
- 1. **Classify** — the request "warm gloves for the slope" resolves to
25
- `{ domain: ski, product: gloves, intent: slope }`. `sil_profile_search` finds no
26
- ski domain yet → a MISS.
27
- 2. **Method** — research ski gear and **mint** the method via `sil_learn create`,
28
- **announced** ("I read this as *ski gloves for the slope* — correct me if not").
29
- 3. **Fill** — precedence resolves waterproofing and cuff length from the method;
30
- the wool allergy is **reused** from the **shared** `user_spec` **without
31
- re-asking**. Only the budget is elicited — one question, tied to why.
20
+ 1. **Classify** — "warm gloves for the slope" → `{ domain: ski, product: gloves, intent:
21
+ slope }`; `sil_profile_search` finds no ski domain → a MISS.
22
+ 2. **Method** — research ski gear, **mint** via `sil_learn create`, **announced** ("I read this
23
+ as *ski gloves for the slope* — correct me if not").
24
+ 3. **Fill** — the method resolves waterproofing + cuff length; the wool allergy is **reused**
25
+ from the shared `user_spec` **without re-asking**; only the budget is elicited (one question,
26
+ tied to why).
32
27
  4. **Search-space** — a bounded fan-out of ≤ 4 `sil_search` calls, core first.
33
28
  5. **Reflect** — honesty pass, then a **hero + one alternative**, each with a why.
34
- 6. **Feedback** — the buyer reacts "I always run Hestra" → confirm, then persist a
35
- durable per-domain taste to the method via **`sil_learn`**.
29
+ 6. **Feedback** — "I always run Hestra" → confirm, persist a per-domain taste to the method via
30
+ `sil_learn`.
36
31
 
37
32
  ## Niche B — an espresso grinder (same session, minted on the fly)
38
33
 
39
- In the **same session** the user pivots: "now I need a burr grinder." This is a
40
- **second niche**, **unrelated** to ski gear. No agent switch — the one shopper
41
- handles it:
34
+ The user pivots: "now I need a burr grinder" — a **second, unrelated niche**. No agent switch;
35
+ the one shopper handles it:
42
36
 
43
- 1. **Classify** → `{ domain: espresso, product: grinder, intent: general }` (a
44
- context-free request keys `general`).
37
+ 1. **Classify** → `{ domain: espresso, product: grinder, intent: general }` (context-free →
38
+ `general`).
45
39
  2. **Method** — a MISS again → research + **mint on the fly**, **announced**.
46
- 3. **Fill** — the "ships to Berlin" fact is again **reused across** niches from the
47
- **shared** `user_spec`, **kept from** the ski session — never re-asked. The
48
- Hestra taste, being per-domain on the ski method, does **not** leak here.
40
+ 3. **Fill** — "ships to Berlin" is **reused across** niches from the shared `user_spec`, kept
41
+ from the ski session. The Hestra taste, per-domain on the ski method, does **not** leak here.
49
42
 
50
- The two niches coexist: shared facts flow to both; per-domain taste stays isolated.
43
+ Shared facts flow to both; per-domain taste stays isolated.
51
44
 
52
45
  ## The singleton edge
53
46
 
54
- If the user later says "set me up a second shopper," the engine refuses: **a
55
- shopper already exists**. Steer them to shop a new niche (it mints a domain on the
56
- spot) or refine the existing one with `sil_learn` — never a second shopper.
47
+ "Set me up a second shopper" → the engine refuses: **a shopper already exists**. Steer to shop
48
+ a new niche (mints a domain on the spot) or refine with `sil_learn` — never a second shopper.
49
+ </content>
@@ -1,140 +1,198 @@
1
1
  ---
2
2
  name: agent-creation-engine
3
- description: The ordered, one-command engine that persists the single sil-wired shopper after the user endorses the assembled draft. Load only after explicit endorsement in the interview.
3
+ description: Create the single sil-wired shopper end to end — the two-touchpoint onboarding interview (persona + shared user-spec seed, endorsement-gated) then the one-command engine that persists it. Load when the user asks to set up or create their shopper.
4
4
  ---
5
5
 
6
- # Create your sil-wired shopper — the agent-creation engine
6
+ # Create the shopper
7
7
 
8
- **Precondition: run this ONLY after the user has explicitly endorsed the assembled draft
9
- from [`brainstorm_interview.md`](brainstorm_interview.md).** The interview owns that gate.
8
+ Two parts, in order: an **onboarding interview** that shapes the shopper *with* the
9
+ user, then the **engine** that persists it. Nothing is created until the user
10
+ **explicitly endorses** the draft — the gate lives in Part 1 and the engine refuses
11
+ to run before it.
10
12
 
11
- This persists **one** valid OpenClaw agent — the user's **shopper**: a real agent under
12
- the host `agents` config, sil plugin enabled, sil skill attached, its persona in the
13
- workspace **`SOUL.md`**, plus the **shared user spec** in the sil data dir — so it shops
14
- with **no further setup**. The shopper is a **singleton**: created once, then it learns
15
- **domains** lazily on first shop, so a fresh shopper has an **empty `domains` map** —
16
- healthy. Creation is **local and offline**: no token is read, no `sil_register` /
17
- `sil_whoami`, no network call. The shopper registers the user later, on first shop.
13
+ ---
14
+
15
+ ## Part 1 — The onboarding interview
16
+
17
+ When the user asks to **set up shopping** ("create my shopper"), do **not** jump to
18
+ the engine. Run a short, **two-touchpoint** onboarding — **pre-seeded from what they
19
+ already said this session** — and create nothing until they endorse the draft.
20
+
21
+ This is a **conversation, not a form-fill**. The shopper is a **generalist**: it goes
22
+ deep on whatever the user later buys, **lazily minting a domain on first shop**.
23
+ Onboarding researches **no niche** and picks **none** — it touches exactly two things:
24
+ the **persona** and a **shared user-spec seed**.
18
25
 
19
- ## The one command
26
+ ### Open with a reflected draft
20
27
 
21
- After the endorsement, run exactly **one** shipped command — the package bin
22
- **`sil-openclaw-create-shopper`** — and it runs the whole choreography **atomically** and
23
- **fail-closed**, then returns one structured JSON result. You do **not** hand-run the
24
- host-CLI steps; the bin runs them **for you, in order, as one transaction**. Feed it the
25
- endorsed spec as one JSON object on **`stdin`** (or via **`--spec <path>`**):
28
+ Before asking anything, **pre-seed** from what the user said *this session* — the
29
+ persona (how it should behave) and the user-spec seed (sizes, hard limits, ethics
30
+ rules mentioned in passing) — then **reflect it back** ("from what you've told me,
31
+ here's the shopper I'd set up…") and ask only to confirm-or-adjust.
32
+
33
+ - **Pre-fill, don't interrogate** — fill only genuine gaps. Little said? Seed a
34
+ **minimal honest** draft ("facts to be learned as we shop; no hard constraints
35
+ yet") and say so — never fabricate a size or limit.
36
+ - **Session-only, local + offline** — no token, no `sil_whoami`, no network.
37
+ - **The pre-fill is a proposal, never consent** — the endorsement gate stands.
38
+
39
+ ### The two touchpoints
40
+
41
+ | Artefact | Where | Holds |
42
+ |---|---|---|
43
+ | **`SOUL.md`** (persona) | host workspace | the shopper's voice / standing rules — a **generalist** |
44
+ | **`user_spec.md`** (shared) | sil data dir (**required**) | **cross-niche** facts + hard constraints (addresses, sizes, allergy/ethics rules, budget psychology) |
45
+
46
+ The niche packs — deep know-how, per-request template, niche taste — are **not
47
+ authored here**; they mint **lazily on first shop** ([`shop_loop.md`](shop_loop.md)).
48
+
49
+ 1. **Persona** — confirm-or-adjust the seeded **voice/tone** and any **standing
50
+ rules**. This surfaces voice, **not a niche**. Becomes the workspace **`SOUL.md`**.
51
+ 2. **Shared user spec** — pre-fill the **cross-niche** facts and any **hard
52
+ constraints** holding in *every* niche (addresses/sizes, an allergy or ethics rule,
53
+ budget psychology). Reflect back; mark each **hard** (inviolable) vs **soft**
54
+ (bendable). Seed what's offered; the rest is augmented per-query at shop time.
55
+ Lands in `userSpec`. **No niche taste, no domain question, no intent dimensions
56
+ here.**
57
+
58
+ ### Assemble + endorse — the gate
59
+
60
+ - **Identity** — propose an `agentId` (lower-kebab, ≠ `main`) and a `name`; confirm both.
61
+ - **Assemble** — compose **`{ agentId, name, persona, userSpec }`**, present a readable
62
+ summary, self-check the shape (`agentId` lower-kebab & ≠ `main`; non-blank
63
+ `name`/`persona`/`userSpec`). Writes nothing — the engine's validate-first step is the
64
+ authoritative gate.
65
+ - **Endorse** — ask for an explicit go-ahead. Endorsement is an affirmative act
66
+ ("yes, create it") — **not** inferred from the last answer or from silence. **Only on
67
+ that explicit yes** do you run Part 2.
68
+
69
+ ### Interview invariants
70
+
71
+ - **No creation without explicit endorsement** — zero engine steps before the "yes";
72
+ the draft lives only in the conversation, so an abandoned interview leaves no partial
73
+ shopper.
74
+ - **Two touchpoints only** — persona, then shared user spec, both session-seeded. No
75
+ niche researched or chosen; that is first-shop lazy mint.
76
+ - **Converge each touchpoint before advancing; stay re-entrant** — the user can revise
77
+ earlier.
78
+ - **Singleton** — if a shopper exists the engine refuses (its `collision`); surface it,
79
+ steer to shop-a-new-niche or refine, never clobber the existing.
80
+ - **Local + offline for identity** — never present registration or a token as a
81
+ prerequisite, never pull `sil_whoami` to seed.
82
+
83
+ ---
84
+
85
+ ## Part 2 — The creation engine
86
+
87
+ **Run ONLY after the endorsement gate above clears.** The engine persists **one**
88
+ OpenClaw agent — the **shopper**: a host `agents` entry, sil plugin enabled + skill
89
+ attached, persona in the workspace **`SOUL.md`**, the **shared user spec** in the sil
90
+ data dir. A **singleton** that learns **domains** lazily on first shop — a fresh
91
+ shopper's `domains` map is empty, which is healthy. Creation is **local + offline**: no
92
+ token, no `sil_register`/`sil_whoami`, no network — it registers the user later, on
93
+ first shop.
94
+
95
+ ### The one command
96
+
97
+ Run one shipped bin — **`sil-openclaw-create-shopper`** — **non-interactive**,
98
+ **atomic**, **fail-closed**; it emits one JSON result. It is a standalone operator
99
+ script, not the plugin process, so the plugin's "never write host config" guarantee
100
+ holds. Feed the endorsed spec as one JSON object on **`stdin`** (or `--spec <path>`):
26
101
 
27
102
  ```
28
103
  sil-openclaw-create-shopper <<'JSON'
29
104
  { "agentId": "my-shopper", "name": "My Shopper",
30
105
  "workspace": "~/.openclaw/workspace-my-shopper",
31
- "persona": "…the endorsed persona…", "userSpec": "…the seeded shared user spec…",
106
+ "persona": "…endorsed persona…", "userSpec": "…seeded shared user spec…",
32
107
  "channel": "telegram" }
33
108
  JSON
34
109
  ```
35
110
 
36
- The bin is **non-interactive**: it executes an **already-assembled, already-endorsed**
37
- spec — it **never re-runs the interview** and never prompts. The sil **plugin** and sil
38
- **skill** are always wired — that is what makes it *sil-wired*. It is a standalone
39
- operator script, **not** the plugin process, so the plugin's "never write host config"
40
- guarantee holds; the bin legitimately drives `openclaw …` on your behalf.
41
-
42
- ## The spec (input)
111
+ ### The spec (input)
43
112
 
44
113
  | Field | Meaning | Goes to | Required? |
45
114
  |---|---|---|---|
46
- | **agentId** | Lower-kebab id → `agents.list[].id`. Unique, never `main`. | host | Required |
47
- | **name** | Human-readable name ("My Shopper"). | sil manifest | Required |
48
- | **persona** | Who the shopper is / how it shops — a generalist, voice, standing rules. | host **`SOUL.md`** (no separate persona file) | Required |
49
- | **workspace** | The shopper's workspace directory. | host | Required |
50
- | **userSpec** | The user's **shared, cross-niche** facts + hard constraints. Seeded partial by the interview. | sil `user_spec.md` | **Required** |
51
- | **channel** | The channel the setup conversation is on — bound to the new shopper. | host `openclaw.json` bindings | **Optional (fail-open)** |
52
-
53
- There is **no per-niche input at create** — no method and no PRD; those are minted lazily
54
- on first shop via `sil_learn create`. The shopper reaches the web to mint and refresh
55
- domains, so the agent needs web/fetch tools (inherited from `agents.defaults`); if
56
- defaults grant none, the bin reports `created` with a `warnings` entry naming the gap
57
- (bare `sil_search` still works) — surface it.
58
-
59
- ## What the bin does atomically (in this exact order)
60
-
61
- 1. **Validate the spec FIRST** — `agentId` (present, lower-kebab, ≠ `main`), `name`,
62
- `persona`, `workspace`, and the shared **`userSpec`** (present, non-blank — the only
63
- sil artefact at create). No per-domain method or PRD to validate. Any failure stops with
64
- **`invalid_request`** naming the field and **writes nothing**, ahead of every host
65
- command.
66
- 2. **Singleton check.** Run `openclaw agents list --json` and read the sil store (whether a
67
- shopper `user_spec.md` already exists) **before** the add. If a sil shopper already
68
- exists, stop with **`collision`** — **"a shopper already exists"** — and do **not** run
69
- `openclaw agents add`; steer to shop-a-new-niche (lazy mint) or refine — **never mint a
70
- second shopper**. An `agentId` clashing with any existing agent is likewise
71
- `collision`. An inconclusive read fails closed.
72
- 3. **Create the agent shell.** `openclaw agents add <agentId> --workspace <workspace>
73
- --non-interactive --json` — the real `agents.list[]` entry + workspace bootstrap
74
- (`SOUL.md`, `AGENTS.md`, …), inheriting model and tool profile from `agents.defaults`.
75
- 4. **Write the persona straight into the workspace `SOUL.md`** (host CLI). The persona is
76
- the shopper's soul — the host's `SOUL.md`, not a sil artefact. There is **no separate
77
- persona file** and **no copy** step.
78
- 5. **Materialize the shared user spec — SETUP-ONLY, NO `domain`.** Call
79
- `sil_profile_materialize { name, userSpec }` (the singleton takes no `agentId`). It is
80
- **setup-only**: it writes the shared **`user_spec.md`** into `$SIL_DATA_DIR/shopper/`,
81
- atomically, with the shopper **name in its frontmatter** — there is **no manifest**, and
82
- it mints **no method or PRD**. Those are minted lazily on first shop via
83
- `sil_learn create`.
84
- 6. **Wire the sil skill + plugin** (host CLI). Asserted against the pinned host
85
- **`alpine/openclaw:2026.6.9`**, both value-mode sets with `--strict-json` (the only set
86
- mode this image accepts):
87
- ```
88
- openclaw config set 'agents.list[<i>].skills' '["sil"]' --strict-json
89
- openclaw config set plugins.entries.sil.enabled true --strict-json
90
- ```
91
- The skill **attach** makes the agent know how to drive the tools; the plugin **enable**
92
- turns sil on — but does not un-filter the tools by itself (next step).
93
- 7. **Admit sil at the host allow surfaces.** Until sil is admitted at `plugins.allow` +
94
- **`tools.alsoAllow`**, the host keeps the `sil_*` tools filtered. The value-mode `config
95
- set` above is overwrite-only, so it cannot additively merge those shared arrays without
96
- clobbering another admitted plugin (e.g. `klodi`). The bin runs the shipped admission
97
- helper — the sibling bin `sil-openclaw-allowlist` (the `openclaw:allowlist` script) —
98
- the additive, idempotent, self-validating three-surface merge. **If the helper exits
99
- non-zero (a failed admission), the bin reports `persistence_failed` with the path +
100
- cause and does NOT declare `created`** — never a green `created` over filtered tools.
101
- 8. **Bind the current channel — FAIL-OPEN.** Resolve the channel (`spec.channel`, else the
102
- host's `OPENCLAW_MCP_MESSAGE_CHANNEL`) and, if one resolves, run `openclaw agents bind
103
- --agent <agentId> --bind <channel> --json`, then **verify** the route stuck (read-back +
104
- `openclaw config validate` still passes). If undetermined, owned by another agent (no
105
- `--force`), or unverifiable, revert any partial route and degrade to a manual-bind hint
106
- in `warnings` — this step **never fails creation**.
107
- 9. **Validate with the host's own check, THEN declare created.** `openclaw config validate
108
- --json` returns `{ valid, path, issues? }` — success keys off **`.valid`**, never an
109
- `ok` field. Only when `valid: true` **and** admission (step 7) succeeded does it report
110
- **`created`**, carrying `boundChannel` (or `null`). Otherwise it reports
111
- **`persistence_failed`** with the failing **path** + **cause**.
112
- 10. **On any failure after writes begin, tear down** — restore the pre-run `openclaw.json`
113
- snapshot (reversing the agent entry + skill + plugin + admission + any channel
114
- binding), remove the workspace dir (only if it created it) and the singleton shopper
115
- dir (only if it did not pre-exist). `persistence_failed` truthfully means **nothing
116
- partial** is left. In the rare case teardown cannot fully revert, the bin reports a
117
- distinct, louder outcome that **names the residue** — never voiced as "nothing partial".
118
-
119
- The bin emits **one** `{ status, … }` result and exits 0 **only** on `created`.
120
-
121
- ## Status taxonomy
122
-
123
- | `status` | Meaning | What to do |
115
+ | **agentId** | Lower-kebab (`^[a-z0-9][a-z0-9-]*$`), never `main`. | host | yes |
116
+ | **name** | Human-readable name. | sil store | yes |
117
+ | **persona** | Who the shopper is — a generalist, its voice, standing rules. | host **`SOUL.md`** | yes |
118
+ | **workspace** | The shopper's workspace directory. | host | yes |
119
+ | **userSpec** | Shared **cross-niche** facts + hard constraints (seeded partial). | sil `user_spec.md` | yes |
120
+ | **channel** | Setup conversation's channel, bound to the shopper. | host bindings | optional (fail-open) |
121
+
122
+ **No per-niche input at create** — no method, no PRD; those mint lazily on first shop
123
+ via `sil_learn create`. The shopper needs web tools (inherited from `agents.defaults`)
124
+ to mint/refresh domains; if defaults grant none, the bin reports `created` with a
125
+ `warnings` gap (bare `sil_search` still works) — surface it.
126
+
127
+ ### What the bin does, in order (atomic, fail-closed)
128
+
129
+ 1. **Validate first** — bad/blank `agentId` (lower-kebab, ≠ `main`), `name`, `persona`,
130
+ `workspace`, or `userSpec` → **`invalid_request`** naming the field; **nothing
131
+ written**.
132
+ 2. **Config + singleton pre-flight** — no host config → `persistence_failed`. An
133
+ existing shopper `user_spec.md`, or an `agentId` clash → **`collision`** ("a shopper
134
+ already exists"); steer to shop-a-new-niche or refine, **never a second shopper**. An
135
+ inconclusive read fails closed.
136
+ 3. **Snapshot `openclaw.json`** — the teardown anchor, before any write.
137
+ 4. **`openclaw agents add`** — the real `agents.list[]` entry + workspace bootstrap,
138
+ inheriting model + tools from `agents.defaults`.
139
+ 5. **Write `SOUL.md`** = endorsed **persona + the standing "The sil way" creed block**
140
+ (below).
141
+ 6. **Materialize the shared user spec** — `sil_profile_materialize { name, userSpec }`
142
+ (singleton, no agentId) writes **`user_spec.md`** atomically, name in its
143
+ frontmatter. **Setup-only: no domain, no method, no PRD.**
144
+ 7. **Attach skill + enable plugin + harden tools** (value-mode `config set
145
+ --strict-json`, the only mode the pinned `alpine/openclaw:2026.6.9` accepts):
146
+ `agents.list[<idx>].skills` ← `["sil"]`; `plugins.entries.sil.enabled` ← `true`;
147
+ **`agents.list[<idx>].tools.deny`** ← **`["exec","write","edit","apply_patch"]`** — a
148
+ per-agent **deny-list** removing the shell (`exec`) + filesystem mutators while
149
+ **keeping the sil tools + web**. A deny (not replacing the base tool set) is used
150
+ because per OpenClaw precedence it only *further-restricts* and can never strip the
151
+ sil grant.
152
+ 8. **Admit sil (plugin trust)** — the shipped **`sil-openclaw-allowlist`** helper
153
+ additively merges the three trust surfaces (`plugins.allow` + `tools.alsoAllow` +
154
+ `plugins.entries.sil`) — the only way to un-filter `sil_*` without clobbering a
155
+ co-installed plugin. A non-zero exit → **`persistence_failed`** (never a green
156
+ `created` over filtered tools).
157
+ 9. **Bind the channel — FAIL-OPEN** — resolve (`spec.channel`, else
158
+ `OPENCLAW_MCP_MESSAGE_CHANNEL`), bind, **verify** the route stuck. Undetermined /
159
+ owned / unverifiable → revert + a manual-bind hint in `warnings`. Never fails
160
+ creation.
161
+ 10. **Validate then declare** — `config validate --json` keys off **`.valid`**. Only
162
+ `valid: true` **and** step 8 ok → **`created`** (with `boundChannel`, or `null`).
163
+ Any failure **after step 4** tears down (restore the snapshot; remove the workspace
164
+ + shopper dir only if it created them), so `persistence_failed` means **nothing
165
+ partial**. If teardown cannot fully revert, a louder **`teardown_failed`** names the
166
+ residue.
167
+
168
+ Exit 0 **only** on `created`.
169
+
170
+ ### The `SOUL.md` "The sil way" creed block
171
+
172
+ The persona is followed by a standing **"The sil way"** creed — an identity-level
173
+ restatement (a philosophy, not a rulebook; the mechanics live in the attached skill)
174
+ carrying the **explore-first** mantra, the loop in three lines, and the one distinction
175
+ that matters: the shopper **mints an unlearned niche first** (a `sil_profile_search`
176
+ MISS → `sil_learn create`, then search); **the sil catalog is where you buy, the open
177
+ web is where you learn** (web only researches a niche's buying guide, never sources a
178
+ pick); **persists only through `sil_learn`**, never to host files.
179
+
180
+ ### Status taxonomy
181
+
182
+ | `status` | Meaning | Do |
124
183
  |---|---|---|
125
- | `created` | Shopper added, shared user spec materialized, plugin + skill wired, `openclaw config validate` accepted it. Carries `name` + `agentId` + `workspace` + `boundChannel` (or `null`). | Tell the user it's ready; if `boundChannel` is `null`, relay the manual-bind hint. |
126
- | `invalid_request` | Spec failed validation. **Nothing attempted.** | Name the field, fix it, run again. |
127
- | `collision` | A shopper already exists (the singleton), or the `agentId` clashes. **Nothing written.** | Surface "a shopper already exists"; steer to shop-a-new-niche or refine. **Never a second shopper.** |
128
- | `persistence_failed` | A write, the allow-list helper (non-zero exit), or `openclaw config validate` failed. Teardown ran — **nothing partial** left. | Fix the reported path/cause and re-run (safe). |
129
-
130
- ## Runtime — how the shopper loads its behaviour
131
-
132
- When you (the sil skill) start a session as the shopper, the host has already injected the
133
- persona via **`SOUL.md`**. Load the shared **`user_spec.md`** (cross-niche facts + hard
134
- constraints, reused across every niche); its frontmatter carries the shopper **name**, and
135
- `sil_profile_search` scans the domains it has learned — an empty set is healthy, and each
136
- per-domain method loads **lazily at shop time**. Because the `sil_*` tools were admitted at
137
- create, the shopper calls **`sil_search`** / **`sil_product_get`** (and `sil_register` /
138
- `sil_whoami` as needed) with **no further setup**, minting each niche on the fly the first
139
- time the user shops it, per [`shop_loop.md`](shop_loop.md). To sharpen the shopper or a
140
- domain, see [`fill_and_feedback.md`](fill_and_feedback.md).
184
+ | `created` | Shopper added, spec materialized, plugin + skill + hardening wired, config valid. Carries `name`/`agentId`/`workspace`/`boundChannel` (or `null`). | Tell the user; if `boundChannel` null, relay the manual-bind hint. |
185
+ | `invalid_request` | Spec failed validation. Nothing attempted. | Name the field, fix, re-run. |
186
+ | `collision` | A shopper (singleton) or `agentId` already exists. Nothing written. | Steer to shop-a-new-niche or refine — never a second shopper. |
187
+ | `persistence_failed` | A write, the allow-list helper, or `config validate` failed; teardown fully reverted. | Fix the path/cause, re-run (safe). |
188
+ | `teardown_failed` | Teardown could NOT fully revert. | Louder — names the residue; the host is not at its pre-run state. |
189
+
190
+ ### Runtime
191
+
192
+ At session start the host has injected the persona via **`SOUL.md`**. Load the shared
193
+ **`user_spec.md`** (cross-niche facts + hard constraints; frontmatter carries the name);
194
+ `sil_profile_search` scans the learned domains (empty is healthy) and each per-domain
195
+ method loads **lazily at shop time**. The `sil_*` tools admitted at create, the shopper
196
+ shops with no further setup, minting each niche on the fly on first shop
197
+ ([`shop_loop.md`](shop_loop.md)). To sharpen it, see
198
+ [`fill_and_feedback.md`](fill_and_feedback.md).
@@ -5,74 +5,72 @@ description: Beat 3 (fill the PRD by precedence, multi-turn, hard-constraint dua
5
5
 
6
6
  # Beat 3 (Fill) and Beat 6 (Feedback) — via `sil_learn`
7
7
 
8
- Beats 1–2 hand off the resolved PRD + the method body. Beat 3 fills the PRD; Beat 6
9
- captures what the reaction surfaces. Both persist through **`sil_learn`**.
8
+ Beats 1–2 hand off the resolved PRD + method body. Beat 3 fills it; Beat 6 captures
9
+ what the reaction surfaces — both persist through **`sil_learn`**.
10
10
 
11
11
  ## Beat 3 — Fill by precedence
12
12
 
13
- Enumerate the load-bearing dimensions the method names, then resolve each by
14
- walking the chain top-down, **first hit wins**:
13
+ Enumerate the load-bearing dimensions the method names, then resolve each down the
14
+ chain, **first hit wins**:
15
15
 
16
16
  **request-intent > PRD filled-pref > method taste > user_spec fact > method default**
17
17
 
18
- This is a pure **read-compose** — **most** dimensions **resolve** from stored state
19
- with **no question**, which is the whole point of the chain (a revisited niche does
20
- not re-ask).
18
+ A pure **read-compose** — **most** dimensions **resolve** from stored state with
19
+ **no question** (a revisited niche does not re-ask).
21
20
 
22
21
  **Elicit the residue — multi-turn.** Only a dimension that is unresolved **and**
23
22
  load-bearing **and** not answerable from a sensible default goes to the buyer.
24
- Elicitation is **multi-turn**: keep pursuing each until it is **resolved** or
25
- explicitly **declined**, then search. Each turn stays **a few at a time, never a
26
- battery**, each tied to **why**, and plays the filled understanding back.
23
+ Pursue each until **resolved** or explicitly **declined**, then search. Each turn is
24
+ **a few at a time, never a battery**, each tied to **why**, playing the filled
25
+ understanding back.
27
26
 
28
27
  **Live request vs a stored durable pref — ask, don't guess.** When the request
29
28
  contradicts a stored **durable** PRD preference, the request wins **this** search,
30
- but ask whether it is **one-off** or a **standing** change rather than assuming.
31
- "Just this once" → ephemeral, no write. "From now on" → a **standing** change:
32
- **amend** the stored preference. **Never silently overwrite** a standing preference.
29
+ but ask whether it is **one-off** or **standing**. "Just this once" → ephemeral, no
30
+ write. "From now on" → a **standing** change: **amend** the stored preference.
31
+ **Never silently overwrite** a standing preference.
33
32
 
34
33
  **Hard constraints are inviolable — dual-enforced.** `user_spec [hard]` + PRD hard
35
- requirements are **inviolable**. Each is routed to a real **filter** where one
36
- exists **and** handed to Beat 5's **reject-at-pick** check — belt and suspenders,
37
- because a `specs` predicate can read `applied:false`.
34
+ requirements route to a real **filter** where one exists **and** to Beat 5's
35
+ **reject-at-pick** check — because a `specs` predicate can read `applied:false`.
38
36
 
39
37
  **The split — persist stated durable answers NOW.** Fill is the **first** of two
40
38
  persistence moments: a durable answer the buyer **stated** during elicitation is
41
- **written** to the PRD's *Filled preferences* **now**, via `sil_learn` — so an
39
+ **written** to the PRD's *Filled preferences* **now** via `sil_learn` — so an
42
40
  abandoned session still recovers what was settled. What the buyer's **reaction**
43
41
  surfaces is **Beat 6's** write (the **reaction half**). One-off direction stays
44
- **ephemeral** and is **never written** by either.
42
+ **ephemeral**, **never written** by either.
45
43
 
46
44
  **Decline never blocks.** A declined question narrows **quality**, never **access**
47
45
  — proceed on the best-defensible params and **state the assumption** ("assuming
48
46
  waterproofing, since it's for the slope"). Unresolved-and-declined dimensions land
49
- in the PRD's *Notes / open* so the next session recovers rather than re-asks.
47
+ in the PRD's *Notes / open* so the next session recovers, not re-asks.
50
48
 
51
49
  ## Beat 6 — Feedback: the reaction half
52
50
 
53
- Beat 6 is the loop's **only reaction-time persistence** and a standing beat.
51
+ Beat 6 is the loop's **only reaction-time persistence**, a standing beat.
54
52
 
55
53
  **The capture gate — most reactions persist nothing.** Write only a signal that is
56
- **durable AND new** — **no duplicate** (**not already stored**), no **noise**, no
57
- **empty** entry. A this-pick reaction ("too pricey this time") is not durable and
58
- is never written.
54
+ **durable AND new** — no **duplicate** (not already stored), no **noise**, no
55
+ **empty** entry. A this-pick reaction ("too pricey this time") is not durable, never
56
+ written.
59
57
 
60
58
  **Confirm before every durable write.** When the gate surfaces a new durable
61
- candidate, **confirm before** writing it ("want me to remember you run Shimano?")
62
- — **never a silent harvest**. The confirm is gated behind the candidate, so most
59
+ candidate, **confirm before** writing it ("want me to remember you run Shimano?") —
60
+ **never a silent harvest**. The confirm is gated behind the candidate, so most
63
61
  reactions ask nothing.
64
62
 
65
- **Route by scope — the placement rule.** A confirmed signal lands at the
66
- **broadest scope where it stays true**:
63
+ **Route by scope — the placement rule.** A confirmed signal lands at the **broadest
64
+ scope where it stays true**:
67
65
 
68
66
  - a cross-domain **fact** / **hard** constraint → **`user_spec`**;
69
67
  - a durable per-domain **taste** → the **method**;
70
68
  - a **this-job** preference → the **PRD**;
71
69
  - an **image** → **`attach-asset`** (per-domain).
72
70
 
73
- **Pick the kind.** New learning → **append**; a reaction that contradicts a stored
74
- **soft** pref → **amend** (it **supersedes** — **never a stacked bullet**, never a
75
- second bullet); a withdrawal → **retract**.
71
+ **Pick the kind.** New learning → **append**; a reaction contradicting a stored
72
+ **soft** pref → **amend** (it **supersedes** — **never a stacked second bullet**); a
73
+ withdrawal → **retract**.
76
74
 
77
75
  **Re-scope = write-broader-then-retract-narrower.** When a reaction shows a stored
78
76
  fact is broader than where it lives, write it to the **broader** target and
@@ -82,7 +80,7 @@ fact is broader than where it lives, write it to the **broader** target and
82
80
 
83
81
  `sil_learn` is the single **target + change** verb owning the whole method/PRD
84
82
  lifecycle. `target` selects where the change lands (`user_spec` / `method` /
85
- `prd`); the **kind** selects the change. Its **five kinds**: **create** (mint a
86
- whole method/PRD), **append**, **amend**, **retract**, and **attach-asset** (persist
87
- image bytes, linked by path). Every capture is reviewable via `sil_profile_get` and
83
+ `prd`); the **kind** selects the change. **Five kinds:** **create** (mint a whole
84
+ method/PRD), **append**, **amend**, **retract**, **attach-asset** (persist image
85
+ bytes, linked by path). Every capture is reviewable via `sil_profile_get` and
88
86
  erasable via `sil_profile_remove` — never silently harvested.