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.
- package/CHANGELOG.md +113 -0
- package/dist/lib/bind-channel.js +10 -0
- package/dist/tools/identity.js +9 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -2
- package/scripts/create-shopper.mjs +678 -0
- package/sil-shopping/SKILL.md +98 -36
- package/sil-shopping/examples/multi_domain_shopper_walkthrough.md +64 -136
- package/sil-shopping/references/agent_creation_engine.md +123 -63
- package/sil-shopping/references/brainstorm_interview.md +95 -59
- package/sil-shopping/references/catalog_tools_reference.md +27 -29
- package/sil-shopping/references/manage_domains.md +60 -39
- package/sil-shopping/references/refine_shopper.md +92 -43
- package/sil-shopping/references/search_param_mapping.md +71 -47
- package/sil-shopping/references/setup_onboarding.md +68 -0
- package/sil-shopping/references/shop_loop.md +161 -106
package/sil-shopping/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sil-shopping
|
|
3
|
-
description:
|
|
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
|
|
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
|
|
17
|
+
## Always-on contract
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- **
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
36
|
+
## Routing — read the stage, then match intent to a tool
|
|
42
37
|
|
|
43
|
-
|
|
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
|
-
|
|
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/
|
|
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
|
-
###
|
|
52
|
+
### Intent → tool (load the reference on demand)
|
|
50
53
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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,
|
|
15
|
+
## Onboarding — two touchpoints, no niche research
|
|
12
16
|
|
|
13
17
|
> **User:** "Set up something that shops for me."
|
|
14
18
|
|
|
15
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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": "
|
|
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,
|
|
57
|
-
|
|
58
|
-
(
|
|
59
|
-
|
|
60
|
-
|
|
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 (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
72
|
+
## Niche B — espresso (a second niche, same session, no switch)
|
|
138
73
|
|
|
139
|
-
|
|
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
|
-
**
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
|
153
|
-
`domains/road-cycling/playbook.md` and
|
|
154
|
-
|
|
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
|
-
→
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
>
|
|
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
|
|
106
|
+
shopper, many domains.
|
|
177
107
|
|
|
178
108
|
## Edge cases this example would have handled
|
|
179
109
|
|
|
180
|
-
- **Reuse before mint** —
|
|
181
|
-
|
|
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" }
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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.
|