sil-openclaw 0.3.7 → 0.3.9

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,6 +1,6 @@
1
1
  ---
2
2
  name: sil-shopping
3
- description: This skill should be used whenever the user wants to shop on sil or set up their sil shopper: register or sign in to sil, check who they are, search the sil catalog for purchasable products, or look up specific products by id — and for the full single-shopper lifecycle: "set up an agent that shops for me" / "create my shopper" (a short two-touchpoint onboarding, then create ONE shopper), see what their shopper knows or which domains (niches) it has learned, view or forget a domain, refine the shopper or one domain — or, as the shopper, run a profile-driven Spec-Driven Shopping query on any niche (reusing a learned domain or minting one on the fly) and remember a fact or buying taste it surfaces. Route here for any shopping, identity, or shopper-setup intent on sil. Drives sil_register, sil_whoami, sil_search, sil_product_get, sil_profile_materialize, sil_profile_get, sil_profile_remove, and sil_remember.
3
+ description: 'Use for any sil shopping, identity, or shopper-setup intent: register or sign in, check the account, search the sil catalog for purchasable products, or look up products by id — plus the single-shopper lifecycle: create the shopper (a short two-touchpoint onboarding), see what it knows or which domains (niches) it has learned, view or forget a domain, refine it — or, as the shopper, run a Spec-Driven Shopping query on any niche and remember a fact or buying taste it surfaces. Drives sil_register, sil_whoami, sil_search, sil_product_get, sil_profile_materialize, sil_profile_get, sil_profile_remove, and sil_remember.'
4
4
  metadata:
5
5
  openclaw:
6
6
  emoji: "\U0001F6D2"
@@ -8,49 +8,111 @@ metadata:
8
8
 
9
9
  # sil-shopping
10
10
 
11
- Drive the sil plugin's tools on the user's behalf: register them on sil, read their identity, help them find purchasable products in the sil catalog — and, when asked, set up their **shopper** (one sil-wired agent that shops every niche), then see what it knows, view or forget a domain, or refine it. Read user intent, route to the matching tool (loading its reference on demand), call it, and report what came back.
11
+ Drive the sil plugin's tools on the user's behalf: register them, read their
12
+ identity, help them find purchasable products — and, when asked, set up their
13
+ **shopper** (one sil-wired agent that shops every niche), then see what it knows,
14
+ view or forget a domain, or refine it. Read intent, route to the matching tool
15
+ (loading its reference on demand), call it, and report what came back.
12
16
 
13
- ## Always-on behavioural contract
17
+ ## Always-on contract
14
18
 
15
- These three principles hold on every path, before any reference is loaded:
16
-
17
- - **Act, don't narrate.** When intent maps to a tool, call it. Don't re-confirm what was already stated.
18
- - **Fail visibly, recover correctly.** Every tool returns a `status`. On a non-`ok` status, say what happened and follow the tool's own `recovery` hint — never improvise a different one.
19
- - **Relay prices as point-in-time.** A product's price, availability, and `checkout_url` are a snapshot, not a guarantee. Before the user buys, re-fetch with `sil_product_get` rather than trusting an earlier `sil_search` result.
19
+ - **Act, don't narrate.** When intent maps to a tool, call it — don't re-confirm
20
+ what was already stated.
21
+ - **Follow the tool's own `recovery`.** Every tool returns a `status`; on a
22
+ non-`ok` one, say what happened and follow that tool's `recovery` hint, never
23
+ improvise another. The taxonomy lives in
24
+ [`references/catalog_tools_reference.md`](references/catalog_tools_reference.md).
25
+ - **Prices are point-in-time.** Before the user buys, re-fetch the item with
26
+ `sil_product_get` rather than trusting an earlier `sil_search` snapshot.
20
27
 
21
28
  ## Session start
22
29
 
23
- Confirm the `sil_*` tools are exposed. If they are missing from the available tool list, the host runtime is filtering them out because sil is not admitted at the host allow surfaces — run the shipped admission helper `sil-openclaw-allowlist` (it additively admits sil at `plugins.allow` + `tools.alsoAllow`, leaving any other trusted plugin untouched), then reopen the session so the tools load. Most flows need an identity: if the user has not registered this session, the catalog tools return an unregistered status whose `recovery` points at `sil_register` (the [catalog tools reference](references/catalog_tools_reference.md) has the full taxonomy) — so calling a catalog tool first lets that outcome route, or run `sil_register` up front when the user's intent clearly requires it.
24
-
25
- ## Routing — match intent to a tool, load its reference on demand
26
-
27
- | Intent | Tool | Reference to load |
28
- |---|---|---|
29
- | "sign me up" / "log me in to sil" / "register" | `sil_register` | [`references/catalog_tools_reference.md`](references/catalog_tools_reference.md) |
30
- | "who am I?" / "what's on my account" / show my saved name + addresses | `sil_whoami` | [`references/catalog_tools_reference.md`](references/catalog_tools_reference.md) |
31
- | "find X" / "search for X" / browse a category or price range | `sil_search` | [`references/catalog_tools_reference.md`](references/catalog_tools_reference.md) |
32
- | "look up these items" / re-check ids from a prior result, a saved list, or a deep link | `sil_product_get` | [`references/catalog_tools_reference.md`](references/catalog_tools_reference.md) |
33
- | "set up an agent that shops for me" / "create my shopper" | (onboarding, then the engine) | see the two-step gate below |
34
- | "what does my shopper know?" / "which domains has it learned?" | `sil_profile_get` (no `domainSlug` — the shopper overview, which absorbs the old listing) | [`references/manage_domains.md`](references/manage_domains.md) |
35
- | "show me the shopper / the <niche> domain" | `sil_profile_get` (`domainSlug` for one domain) | [`references/manage_domains.md`](references/manage_domains.md) |
36
- | "forget / remove the <niche> domain" | `sil_profile_remove` (per-domain; whole-shopper teardown is host-CLI-first — see the reference) | [`references/manage_domains.md`](references/manage_domains.md) |
37
- | (as the shopper) a shopping intent — "find me something for X" on any niche | `sil_search` → `sil_product_get` (driven by the loaded profile, reusing or minting the domain) | [`references/shop_loop.md`](references/shop_loop.md) |
38
- | "remember this" — a fact or buying taste the shopper surfaced this query | `sil_remember` | [`references/shop_loop.md`](references/shop_loop.md) |
39
- | "refine / sharpen my shopper" / "the cycling domain keeps surfacing the wrong stuff — fix it" | (load → propose → confirm → persist — see the reference) | [`references/refine_shopper.md`](references/refine_shopper.md) |
30
+ Confirm the `sil_*` tools are exposed. If they are missing, the host is filtering
31
+ them — run the shipped admission helper `sil-openclaw-allowlist` (it additively
32
+ admits sil at `plugins.allow` + `tools.alsoAllow`), then reopen the session. Most
33
+ flows need an identity: calling a catalog tool first lets an unregistered outcome
34
+ route to `sil_register`, or run `sil_register` up front when intent requires it.
40
35
 
41
- [`references/catalog_tools_reference.md`](references/catalog_tools_reference.md) holds the per-tool behaviour for the four core tools and the shared status taxonomy. Basic shopping needs only that one reference.
36
+ ## Routing — read the stage, then match intent to a tool
42
37
 
43
- When the session is running **as the shopper** (a loaded profile under `$SIL_DATA_DIR/shopper/` — the shared `user_spec` plus a slug-keyed `domains` map) and the user states a shopping intent, follow [`references/shop_loop.md`](references/shop_loop.md) — the profile-driven, **Spec-Driven Shopping (SDS)** shop-time loop that classifies the niche, **reuses a learned domain or mints one on the fly**, web-refreshes that domain's spec, decomposes the request along its intent spec, and learns every query — persisting each surfaced fact (→ the shared user spec) or taste (→ the active domain) with a single lightweight `sil_remember` append. The one shopper shops every niche; a plain, profile-less session keeps shopping via the "find X" → `sil_search` row above, unchanged.
38
+ **Read the stage from state — never guess it.** Two cheap reads settle it:
39
+ `sil_whoami` (is a sil identity **registered** yet?) and the no-arg
40
+ `sil_profile_get` overview (its **`name` field** is the whole discriminator —
41
+ present only once a shopper exists).
44
42
 
45
- [`references/manage_domains.md`](references/manage_domains.md) holds the list / view / forget flow over the shopper's domains — including the **two remove granularities** (forget one domain vs decommission the whole shopper, host-CLI-first) and the confirm-before-remove gate. Load it the moment the user wants to see what the shopper knows or forget a niche.
43
+ - **No identity** ⇒ guide the user to register.
44
+ - **`name` absent ⇒ profile-less stage** — bare shopping is a first-class quick
45
+ lookup; the setup path is offered alongside it.
46
+ - **`name` present ⇒ shopper stage** — shop through what you know about the person.
46
47
 
47
- [`references/refine_shopper.md`](references/refine_shopper.md) holds the refinement loop — sharpening the shopper (the shared user spec or the persona) or **one domain** from observed sessions, with a confirm-before-persist gate (nothing changes silently). Load it when the user wants to refine, sharpen, or amend their shopper or a niche.
48
+ [`references/setup_onboarding.md`](references/setup_onboarding.md) owns the setup
49
+ script — the staged ladder, the after-register offer, the per-search pitch. Load
50
+ it while setup is incomplete; it sheds once a shopper exists.
48
51
 
49
- ### Setting up your shopper — the endorsement-gated two-step
52
+ ### Intent → tool (load the reference on demand)
50
53
 
51
- When the user asks to set up / create their shopper (the singleton agent that shops every niche):
52
-
53
- 1. **Onboard first.** Read and run [`references/brainstorm_interview.md`](references/brainstorm_interview.md) — the short, two-touchpoint onboarding (persona + a shared user-spec seed) that converges a draft *with* the user. It researches **no** niche — the shopper is a generalist that mints domains lazily on first shop. While running it, load [`references/search_param_mapping.md`](references/search_param_mapping.md) only if you need the shop-time answer→`sil_search`-param mapping (it is a shop-time reference, not an onboarding one).
54
- 2. **Engine only after explicit endorsement.** Only after the user explicitly endorses the assembled draft, read and follow [`references/agent_creation_engine.md`](references/agent_creation_engine.md) — the ordered engine that persists the one sil-wired shopper. Running ANY engine step before that explicit endorsement is forbidden (the onboarding reference owns the endorsement gate). The shopper is a **singleton**: a second create attempt is refused ("a shopper already exists").
55
-
56
- Want a concrete walkthrough? [`examples/multi_domain_shopper_walkthrough.md`](examples/multi_domain_shopper_walkthrough.md) is an end-to-end worked example: create one shopper → shop two unrelated niches in one session (the second minted on the fly) → a shared fact reused across both → per-domain taste that does not leak.
54
+ | Intent | Tool | Reference |
55
+ |---|---|---|
56
+ | "sign me up" / "log me in" / "register" | `sil_register` | [`catalog_tools_reference.md`](references/catalog_tools_reference.md) |
57
+ | "who am I?" / show my saved name + addresses | `sil_whoami` | [`catalog_tools_reference.md`](references/catalog_tools_reference.md) |
58
+ | "find X" / "search for X" / browse a category or price range | `sil_search` | [`catalog_tools_reference.md`](references/catalog_tools_reference.md) |
59
+ | "look up these items" / re-check ids from a prior result | `sil_product_get` | [`catalog_tools_reference.md`](references/catalog_tools_reference.md) |
60
+ | "set up an agent that shops for me" / "create my shopper" | (onboarding, then the engine) | the two-step below |
61
+ | "what does my shopper know?" / "which domains has it learned?" | `sil_profile_get` (no `domainSlug`) | [`manage_domains.md`](references/manage_domains.md) |
62
+ | "show me the <niche> domain" | `sil_profile_get` (`domainSlug`) | [`manage_domains.md`](references/manage_domains.md) |
63
+ | "forget the <niche> domain" | `sil_profile_remove` | [`manage_domains.md`](references/manage_domains.md) |
64
+ | (as the shopper) a shopping intent on any niche | `sil_search` → `sil_product_get` | [`shop_loop.md`](references/shop_loop.md) |
65
+ | "remember this" — a fact or taste the shopper surfaced | `sil_remember` | [`shop_loop.md`](references/shop_loop.md) |
66
+ | "refine / sharpen my shopper" / fix a niche | (load → propose → confirm → persist) | [`refine_shopper.md`](references/refine_shopper.md) |
67
+
68
+ [`references/catalog_tools_reference.md`](references/catalog_tools_reference.md)
69
+ holds the per-tool behaviour + status taxonomy — basic shopping needs only that.
70
+ The answer→`sil_search`-param mapping is
71
+ [`references/search_param_mapping.md`](references/search_param_mapping.md); a full
72
+ run is
73
+ [`examples/multi_domain_shopper_walkthrough.md`](examples/multi_domain_shopper_walkthrough.md).
74
+
75
+ **Setting up the shopper — the endorsement-gated two-step.** The shopper is a
76
+ singleton (refused once one exists). (1) **Onboard first:** run
77
+ [`references/brainstorm_interview.md`](references/brainstorm_interview.md), the
78
+ two-touchpoint onboarding. (2) **Only after** the user explicitly **endorses** the
79
+ assembled draft, run
80
+ [`references/agent_creation_engine.md`](references/agent_creation_engine.md), the
81
+ engine that persists the one sil-wired shopper. No engine step runs before that
82
+ endorsement.
83
+
84
+ ### Profile-less stage — the bare lane stays bare
85
+
86
+ **`name` absent.** A shopping intent takes the "find X" → `sil_search` row above
87
+ **unchanged** — no domain check, no mint, no pre-search question. Bare search is a
88
+ legitimate quick lookup; the only nudge is the profile-less per-search pitch
89
+ ([`references/setup_onboarding.md`](references/setup_onboarding.md)).
90
+
91
+ ### Shopper stage — shop through what you know
92
+
93
+ **`name` present.** As the shopper, shop through what you know about the person:
94
+ classify the query's niche and **reuse a learned domain or mint one before
95
+ searching** — the shop loop's first beat — then follow
96
+ [`references/shop_loop.md`](references/shop_loop.md), the profile-driven
97
+ **Spec-Driven Shopping** loop that web-refreshes the domain, decomposes the
98
+ request, and persists each surfaced fact or taste with a single `sil_remember`.
99
+
100
+ - **An empty `domains` map means no niche yet:** the first shopping intent **mints
101
+ the domain before searching**, **announced** with the inferred niche stated so
102
+ the user can correct it — never a silent mint.
103
+
104
+ This shapes the shopper's **reasoning, not the user's inbox**: a reused domain plus
105
+ a fully-resolved query **passes straight through, asking nothing**. It scopes to
106
+ `sil_search`-driven product discovery only — identity (`sil_register` /
107
+ `sil_whoami`), a direct `sil_product_get` id re-check, and shopper-management
108
+ intents (view / forget a domain) route normally, **ungated**.
109
+
110
+ **Per-query self-check (prose, not a tool).** As you shop, keep track of which
111
+ beat you're on and that you resolved the domain before searching — an in-context
112
+ guardrail, not a new tool, table, or telemetry surface.
113
+
114
+ Management + refinement load on demand:
115
+ [`references/manage_domains.md`](references/manage_domains.md) (view/forget,
116
+ confirm-before-remove) and
117
+ [`references/refine_shopper.md`](references/refine_shopper.md) (sharpen from observed
118
+ sessions, confirm-before-persist).
@@ -1,126 +1,65 @@
1
+ ---
2
+ name: multi-domain-shopper-walkthrough
3
+ description: Worked end-to-end example — create one shopper, then shop two unrelated niches in one session with a shared fact reused across both and per-domain taste kept isolated.
4
+ ---
5
+
1
6
  # Worked example — one shopper, two unrelated niches, one session
2
7
 
3
- A short walkthrough of the **headline capability**: create **ONE shopper**
8
+ The headline: create **one shopper**
4
9
  ([`../references/brainstorm_interview.md`](../references/brainstorm_interview.md) →
5
- [`../references/agent_creation_engine.md`](../references/agent_creation_engine.md)),
6
- then shop **two unrelated niches in the same session** — the second **minted on
7
- the fly** — with a **shared fact reused across both** and **per-domain taste that
8
- does not leak**. The transcript is illustrative — it shows the *shape*, the gates,
9
- and the SDS layering, not exact wording.
10
+ [`../references/agent_creation_engine.md`](../references/agent_creation_engine.md)), then
11
+ shop **two unrelated niches in the same session** — the second **minted on the fly** —
12
+ with a **shared fact reused across both** and **per-domain taste that does not leak**. It
13
+ shows the shape and the gates, not exact wording; the machinery lives in the references.
10
14
 
11
- ## Onboarding — two touchpoints, NO niche research
15
+ ## Onboarding — two touchpoints, no niche research
12
16
 
13
17
  > **User:** "Set up something that shops for me."
14
18
 
15
- The shopper is a **generalist** — onboarding touches only the persona and the
16
- shared user spec; it researches **no** niche.
17
-
18
- **1. `SOUL.md` — ask first (persona; a generalist, NOT a niche).**
19
-
20
- > **Shopper:** "Let's set up your shopper. How do you want it to behave?"
21
- > **User:** "Be concise and a bit opinionated — and never recommend anything with
22
- > leather, it's an ethics thing for me."
23
-
24
- → Persona (→ host **`SOUL.md`**): *concise, lightly opinionated generalist.* No
25
- niche is chosen — it will shop whatever the user buys.
26
-
27
- **2. `user_spec.md` (shared) — seed the cross-niche facts + hard constraints.**
19
+ A **generalist** — onboarding touches only the persona and the shared user spec, no niche.
28
20
 
21
+ > **Shopper:** "How do you want it to behave?"
22
+ > **User:** "Concise and a bit opinionated — never recommend anything with leather, it's
23
+ > an ethics thing."
29
24
  > **Shopper:** "Anything I should always know — sizes, where to ship, hard rules?"
30
- > **User:** "Ship to 12 Rue Centrale, Lyon, France. And the no-leather rule is
31
- > absolute."
32
-
33
- → Seeded partial **shared `userSpec`** (→ `user_spec.md`): *ship-to Lyon, France
34
- (soft fact); **HARD-NO: leather** (inviolable, carries across every niche).* The
35
- rest is augmented per query.
25
+ > **User:** "Ship to 12 Rue Centrale, Lyon, France. The no-leather rule is absolute."
36
26
 
37
- ## Assemble + endorse — the gate
27
+ → persona (→ host `SOUL.md`): *concise, lightly opinionated generalist.* Shared
28
+ `userSpec`: *ship-to Lyon (soft fact); **HARD-NO: leather** (inviolable, carries across
29
+ every niche).*
38
30
 
39
- Identity confirmed (`my-shopper` / "My Shopper"), the assembled draft splits across
40
- the two stores — `agentId` + `persona` drive the host wiring (`openclaw agents add`
41
- + `SOUL.md`); `name` + the **shared user spec only** feed the singleton
42
- `sil_profile_materialize` **create** (no `agentId`, no domain pack at create):
31
+ ## Assemble + endorse
43
32
 
44
33
  ```jsonc
45
34
  {
46
- "agentId": "my-shopper",
47
- "name": "My Shopper",
35
+ "agentId": "my-shopper", "name": "My Shopper",
48
36
  "persona": "A concise, lightly opinionated generalist shopper.",
49
- "userSpec": "## Shared user spec (seeded partial)\n### Soft facts\n- Ship-to: 12 Rue Centrale, Lyon, France.\n### Hard constraints (INVIOLABLE — every niche)\n- HARD-NO: leather (ethics)."
37
+ "userSpec": "### Soft facts\n- Ship-to: 12 Rue Centrale, Lyon, France.\n### Hard constraints (INVIOLABLE — every niche)\n- HARD-NO: leather (ethics)."
50
38
  }
51
39
  ```
52
40
 
53
- > **Shopper:** "Here's your shopper — shall I create it?"
54
- > **User:** "Yes, create it."
41
+ > **Shopper:** "Here's your shopper — shall I create it?" **User:** "Yes, create it."
55
42
 
56
- **This affirmative act is the gate** — up to here, **zero engine steps ran**. Only
57
- now does the engine proceed
58
- ([`../references/agent_creation_engine.md`](../references/agent_creation_engine.md)):
59
- validate-first → singleton check → `openclaw agents add my-shopper --workspace
60
- ~/.openclaw/workspace-my-shopper --non-interactive --json` (confirm the inherited
61
- profile grants a web tool) → write the persona into `SOUL.md` →
62
- `sil_profile_materialize { name, userSpec }` **(NO `domain` — writes the shared
63
- `user_spec.md` + `profile.json` with an empty `domains: {}`)** → wire sil:
64
-
65
- ```
66
- openclaw config set 'agents.list[<i>].skills' '["sil"]' --strict-json
67
- openclaw config set plugins.entries.sil.enabled true --strict-json
68
- ```
69
-
70
- → then **admit sil at the host allow surfaces** so the `sil_*` tools are un-filtered
71
- — the shipped helper does the additive, idempotent merge of `plugins.allow` +
72
- `tools.alsoAllow` (never clobbering another admitted plugin like `klodi`):
73
-
74
- ```
75
- sil-openclaw-allowlist
76
- ```
77
-
78
- → `openclaw config validate --json` returns valid → **`created`** (a non-zero
79
- helper exit would be `persistence_failed`, not `created` — never a green shopper
80
- over still-filtered tools). The shopper now exists with an **empty `domains` map** —
81
- healthy; it will mint each niche on first shop.
43
+ **This affirmative act is the gate** — up to here, zero engine steps ran. Only now does
44
+ the engine run — `openclaw agents add my-shopper …` → persona into `SOUL.md` →
45
+ `sil_profile_materialize { name, userSpec }` (no `domain`; writes the shared
46
+ `user_spec.md` + an empty `domains: {}`) → wire + admit sil → validate → **`created`**,
47
+ with an **empty `domains` map** (healthy; each niche mints on first shop).
82
48
 
83
49
  ## Niche A — road cycling (minted on the fly, announced)
84
50
 
85
51
  > **User:** "Find me a first road bike, around €1500."
86
52
 
87
- The shop loop ([`../references/shop_loop.md`](../references/shop_loop.md) owns the
88
- machinery — not repeated here) classifies the niche (**road cycling**), reads
89
- `profile.json.domains`, finds **no** matching domain, and **mints it on the spot —
90
- announced**:
91
-
92
- > **Shopper:** "I haven't shopped cycling for you yet — setting that up now (road
93
- > cycling, first bike). One sec while I do the homework."
53
+ The shop loop classifies the niche (**road cycling**), finds no match, and **mints it on
54
+ the spot — announced** ("I haven't shopped cycling for you yet — setting that up"). It
55
+ researches a deep `domainSpec` (fit is everything; geometry; gearing; material/wheel
56
+ trade-offs), derives the `intentSpec`, seeds a partial `playbook`, and persists with the
57
+ whole-doc `sil_profile_materialize` carrying `domain.slug: "road-cycling"`. It recommends
58
+ with a **"why" that cites the layers** — "for a first bike **fit/comfort outrank outright
59
+ speed** (a domain mechanic), a 54 cm endurance frame fits, kept within your value budget;
60
+ **no leather anywhere** (your standing hard rule)."
94
61
 
95
- It **researches** the niche deeply (the deep `domainSpec` — the full how-to-buy:
96
- **fit is everything** — frame size from height *and* inseam, stack/reach, saddle
97
- setback, crank length; geometry; gearing theory; material/wheel trade-offs),
98
- derives the `intentSpec` dimensions, seeds a partial `playbook`, then persists with
99
- the **whole-doc** mint:
100
-
101
- ```jsonc
102
- sil_profile_materialize {
103
- name: "My Shopper",
104
- userSpec: "…the current shared spec (re-persisted)…",
105
- domain: {
106
- slug: "road-cycling", name: "Road cycling",
107
- domainSpec: "## First road bike — how to buy well (deep)\nFit is everything: size from height AND inseam; stack/reach set torso angle; saddle setback from KOPS; crank length scales with inseam…\n## Geometry: endurance vs race. ## Gearing: gear-inches, compact vs mid-compact. ## Material/wheels: alloy vs carbon; rim depth vs crosswind.",
108
- intentSpec: "## Dimensions (schema)\nuse-case; terrain; budget band; fit envelope; timeline; compatibility; performance priorities; aesthetics.",
109
- playbook: "## Buying taste (seeded partial)\nTo be learned as we shop."
110
- }
111
- }
112
- ```
113
-
114
- Then the loop runs on the active **road-cycling** domain: decompose the intent
115
- (first bike, ~€1500), map → `sil_search` → compare on the rubric, and recommend
116
- with a **"why" that cites the layers** — "for a first bike **fit/comfort outrank
117
- outright speed** (a domain mechanic), a 54 cm endurance frame sits right, and I kept
118
- it within your value budget; **no leather anywhere** (your standing hard rule)." A
119
- rationale naming no domain mechanic and reusing no stored fact would **fail the SDS
120
- bar** even if the bike were fine.
121
-
122
- The session surfaces a **taste**, captured the **cheap** way — one append, scoped to
123
- this domain:
62
+ A taste surfaces, captured the cheap way — one append, scoped to this domain:
124
63
 
125
64
  > **User:** "I don't chase brands — value over name."
126
65
 
@@ -128,30 +67,24 @@ this domain:
128
67
  sil_remember { kind: "taste", text: "Value over brand; ~€1500 band.", domain: "road-cycling" }
129
68
  ```
130
69
 
131
- That taste lands in **`domains/road-cycling/playbook.md`** — this niche only.
132
-
133
- ## Niche B — espresso (a SECOND niche, same session, no switch)
134
-
135
- Moments later, **same session, no agent switch, no re-onboarding**:
70
+ → lands in `domains/road-cycling/playbook.md` only.
136
71
 
137
- > **User:** "Different thing — I want a home espresso machine, decent but not crazy."
72
+ ## Niche B — espresso (a second niche, same session, no switch)
138
73
 
139
- The loop classifies the niche (**espresso**), reads `profile.json.domains`, finds
140
- no match, and **mints espresso on the fly — announced** ("new niche for me —
141
- setting up espresso") with its own deep `domainSpec` (boiler type, PID, pressure
142
- profiling, portafilter size, grinder pairing), `intentSpec`, and partial `playbook`,
143
- via a second whole-doc `sil_profile_materialize` with `domain.slug: "espresso"`.
74
+ > **User:** "Different thing — a home espresso machine, decent but not crazy."
144
75
 
145
- **The shared fact carries — without being re-asked:**
76
+ Same session, **no agent switch, no re-onboarding**. The loop classifies **espresso**,
77
+ finds no match, and **mints espresso on the fly — announced**, with its own deep
78
+ `domainSpec` (boiler type, PID, pressure profiling, grinder pairing) via a second
79
+ whole-doc `sil_profile_materialize` (`domain.slug: "espresso"`).
146
80
 
147
- > **Shopper:** "I'll ship to your Lyon address as usual" — **the ship-to from the
148
- > shared `user_spec.md`, captured during onboarding, reused in espresso with no
149
- > re-ask.** The **no-leather hard rule** also still applies (it rejects a
150
- > leather-wrapped tamper handle outright).
81
+ **The shared fact carries — without being re-asked:** the ship-to from the shared
82
+ `user_spec.md` is reused in espresso with **no re-ask** ("I'll ship to your Lyon address
83
+ as usual"), and the no-leather hard rule still rejects a leather-wrapped tamper handle.
151
84
 
152
- **The niche taste does NOT leak:** the *value-over-brand, ~€1500* taste lives in
153
- `domains/road-cycling/playbook.md` and **does not shape** the espresso picks —
154
- espresso starts with its own (partial) taste, learned fresh:
85
+ **The niche taste does not leak:** the *value-over-brand* taste lives in
86
+ `domains/road-cycling/playbook.md` and does not shape the espresso picks — espresso learns
87
+ its own:
155
88
 
156
89
  > **User:** "For coffee I'll happily pay for a known reliable brand."
157
90
 
@@ -159,32 +92,27 @@ espresso starts with its own (partial) taste, learned fresh:
159
92
  sil_remember { kind: "taste", text: "Pays up for a reliable known brand.", domain: "espresso" }
160
93
  ```
161
94
 
162
- → lands in **`domains/espresso/playbook.md`** only. Road cycling's "value over
163
- brand" and espresso's "pay for a known brand" coexist **without contradiction** —
164
- that is per-domain taste isolation. A **fact** (a new measurement, a hard rule) would
165
- instead go to the **shared** `user_spec.md` (`kind: "fact"`) and carry to *both*
166
- niches.
95
+ → `domains/espresso/playbook.md` only. The two tastes coexist without contradiction —
96
+ per-domain taste isolation. A **fact** would instead go to the shared `user_spec.md`
97
+ (`kind: "fact"`) and carry to *both* niches.
167
98
 
168
99
  ## The singleton edge — refuse a second shopper
169
100
 
170
101
  > **User:** "Can you make me a second shopper just for coffee?"
171
- > **Shopper:** "You already have a shopper — it handles every niche. I've added
172
- > espresso as a domain on it; I won't create a second shopper. Want me to refine
173
- > the espresso domain instead?"
102
+ > **Shopper:** "You already have a shopper — it handles every niche. I've added espresso
103
+ > as a domain; I won't create a second. Want me to refine the espresso domain instead?"
174
104
 
175
105
  The engine's **singleton refusal** (`collision`, "a shopper already exists") — one
176
- shopper, many domains; you never mint a second.
106
+ shopper, many domains.
177
107
 
178
108
  ## Edge cases this example would have handled
179
109
 
180
- - **Reuse before mint** — asking for "another road bike, this time for winter" reuses
181
- the **existing `road-cycling` domain** (semantic dedup), never mints a near-duplicate
182
- `cycling` / `bikes` pack.
110
+ - **Reuse before mint** — "another road bike, for winter" reuses the existing
111
+ `road-cycling` domain (semantic dedup), never a near-duplicate pack.
183
112
  - **Forget one domain ≠ decommission the shopper** — "forget espresso" runs
184
- `sil_profile_remove { domainSlug: "espresso" }` (artefact-only; the shopper,
185
- the shared user spec, and the road-cycling domain survive). Tearing down the whole
186
- shopper is the separate host-CLI-first path.
187
- - **No web tool**: the shopper says so honestly at mint time and composes the domain
188
- spec from public buying knowledge — never pretends the research happened.
189
- - **Creation is local + offline** (for identity): no sil registration to create; the
190
- user registers later, on first shop, via `sil_register`.
113
+ `sil_profile_remove { domainSlug: "espresso" }`; the shopper, shared user spec, and
114
+ road-cycling domain survive.
115
+ - **No web tool** — the shopper says so honestly at mint time and composes from public
116
+ knowledge, never pretending the research happened.
117
+ - **Creation is local + offline** — no sil registration to create; the user registers
118
+ later, on first shop.