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.
- package/CHANGELOG.md +64 -0
- package/dist/tools/catalog.js +9 -19
- package/dist/tools/profile.js +51 -57
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/scripts/create-shopper.mjs +59 -22
- package/sil-shopping/SKILL.md +48 -60
- package/sil-shopping/examples/multi_domain_shopper_walkthrough.md +26 -33
- package/sil-shopping/references/agent_creation_engine.md +177 -119
- package/sil-shopping/references/fill_and_feedback.md +31 -33
- package/sil-shopping/references/method_and_prds.md +78 -77
- package/sil-shopping/references/setup_onboarding.md +48 -52
- package/sil-shopping/references/shop_loop.md +50 -54
- package/sil-shopping/references/brainstorm_interview.md +0 -97
- package/sil-shopping/references/catalog_tools_reference.md +0 -44
- package/sil-shopping/references/search_param_mapping.md +0 -80
|
@@ -5,106 +5,107 @@ description: Beat 2 of the loop — load, mint or signal-refresh a domain's meth
|
|
|
5
5
|
|
|
6
6
|
# Beat 2 — the domain method, intent-keyed PRDs, and the store
|
|
7
7
|
|
|
8
|
-
Beat 1 hands off a resolved `domain` — a **HIT** (
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
Beat 1 hands off a resolved `domain` — a **HIT** (method exists) or a **MISS** (no
|
|
9
|
+
method yet). Beat 2 turns that into a method body in context, ready for Beat 3 to
|
|
10
|
+
fill. Three paths.
|
|
11
11
|
|
|
12
12
|
## LOAD — the hot path (HIT, fresh)
|
|
13
13
|
|
|
14
14
|
A plain revisit **LOADS**: `sil_profile_get(domain)` reads the durable method body
|
|
15
|
-
— **no research
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
— **no research**. This is the default on every revisit; the method is
|
|
16
|
+
**recovered, never rebuilt**. Loading its `## Search vocabulary` brings the coined
|
|
17
|
+
`ns.key` dimensions into context for Beat 4.
|
|
18
18
|
|
|
19
19
|
## MINT — cold (MISS)
|
|
20
20
|
|
|
21
|
-
No method exists, so **
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
the
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
concept
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
21
|
+
No method exists, so **mint** one — this is where you **explore**. Research the niche
|
|
22
|
+
on the web **freely and often** to learn how it is *really* bought: its load-bearing
|
|
23
|
+
attributes, its failure modes, what separates a good buy from a bad one. The one
|
|
24
|
+
boundary — you research the **domain** (how it's bought), you **never source products**
|
|
25
|
+
from the web; every pick comes only from `sil_search` in Beat 4.
|
|
26
|
+
Draft the buying guide + the buyer's durable per-domain taste (seeded from
|
|
27
|
+
`user_spec`) + the whole-domain **spec vocabulary** you **coin** from the research
|
|
28
|
+
(`ns.key` + data type + unit + why-it-matters) + a **volatility marker** (the
|
|
29
|
+
volatile axis + rough cadence). Persist with **`sil_learn create`** (`target:
|
|
30
|
+
"method"`, domain + name + body) — the file **is** the registration. Never the
|
|
31
|
+
**setup-only** `sil_profile_materialize` (which writes only the shared
|
|
32
|
+
`user_spec.md` and mints no domain). Then **announce** the inferred domain so the
|
|
33
|
+
buyer can correct it.
|
|
34
|
+
|
|
35
|
+
The vocabulary is **canonicalized before persist**. `sil_specs` is
|
|
36
|
+
**precision-first** — two specs converge only when **every field** agrees within the
|
|
37
|
+
same `namespace` and `data_type`, so the name decides whether a concept converges or
|
|
38
|
+
forks: a synonym (`speed_mbps` vs `transfer_speed_mbps`) splits one concept into two
|
|
39
|
+
specs that never match. So coin for the match:
|
|
40
|
+
|
|
41
|
+
- **One concept, one spelling.** Reuse the exact `ns.key`, `display_name`,
|
|
42
|
+
`data_type`, and `unit` you already coined for that concept — verbatim, across
|
|
43
|
+
every domain (consult a sibling method with `sil_profile_get` only when the
|
|
44
|
+
concept plausibly recurs, never an exhaustive scan).
|
|
45
|
+
- **Common attribute → conventional name.** For a widely-shared attribute you have
|
|
46
|
+
**not** coined before (screen size, weight, RAM, waterproof rating, material…),
|
|
47
|
+
take its **conventional** name — a Schelling point, there being no registry to
|
|
48
|
+
read. Coin fresh only for a genuinely niche attribute.
|
|
49
|
+
- **Corroborate the name.** Carry a concept-naming **`description`** — the
|
|
50
|
+
**corroborator** the dedupe leans on to merge synonyms and keep distinct concepts
|
|
51
|
+
apart — and get **`data_type`** and **`namespace`** right, the hard floors a wrong
|
|
52
|
+
value forks the concept past.
|
|
53
|
+
|
|
54
|
+
Submit the definitions to **`sil_specs`** (dedupe-or-create) and adopt the returned
|
|
55
|
+
**canonical** `ns.key`: **`matched`** → an equivalent exists, **drop your synonym for
|
|
56
|
+
the canonical**; **`created`** → yours is novel and canonical going forward (keep it).
|
|
57
|
+
Rewrite the `## Search vocabulary` and any PRD `specs` predicates to those names
|
|
58
|
+
before persisting — the method is **born canonical**, never write-then-amend. This is
|
|
59
|
+
what makes `filters.specs` filter across methods; naming is never a gate — a
|
|
60
|
+
fragmenting name costs precision, never blocks a search. If `sil_specs` is **not
|
|
61
|
+
`ok`** (a registry blip), **do not block the mint**: persist the **raw coined names**
|
|
62
|
+
(every predicate reads `applied:false`) and shop on — convergence retries next
|
|
63
|
+
mint/refresh. Canonicalization is **silent to the buyer**: never surface `ns.key`
|
|
64
|
+
plumbing.
|
|
60
65
|
|
|
61
66
|
## REFRESH — signal-driven (HIT, stale)
|
|
62
67
|
|
|
63
|
-
A plain revisit LOADS; a refresh fires **only on a signal
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
`explicit ask` — not a clock.
|
|
68
|
+
A plain revisit LOADS; a refresh fires **only on a signal** — never on a TTL, not
|
|
69
|
+
every revisit. The three signals: the buyer **contradicts** the guide, the
|
|
70
|
+
**volatility marker** is overdue, or the buyer **explicitly asks**. Signal-driven,
|
|
71
|
+
not a clock.
|
|
68
72
|
|
|
69
73
|
Refresh is **create-with-merge**: load the current method, re-research **only** the
|
|
70
74
|
stale volatile material, **carry every buyer-authored line forward verbatim**,
|
|
71
|
-
re-emit the whole body via `sil_learn create` (overwrite),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
buyer-mutable at any time via `sil_learn` append/amend/retract.
|
|
75
|
+
re-emit the whole body via `sil_learn create` (overwrite), announce the delta. The
|
|
76
|
+
merge rewrites stale *research* claims and **never clobbers** a buyer `sil_learn`
|
|
77
|
+
edit. The method stays fully buyer-mutable via `sil_learn` append/amend/retract.
|
|
75
78
|
|
|
76
|
-
Canonicalize any **newly-coined** specs via `sil_specs` before persisting
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
names are stable; do not resubmit them).
|
|
79
|
+
Canonicalize any **newly-coined** specs via `sil_specs` before persisting — same
|
|
80
|
+
convergence discipline (reuse a name already coined for the concept; take the
|
|
81
|
+
conventional name for a common attribute), resubmitting **only** specs not yet
|
|
82
|
+
carrying a canonical name (already-canonical names are stable).
|
|
81
83
|
|
|
82
84
|
## Intent-keyed PRDs
|
|
83
85
|
|
|
84
|
-
A PRD's identity is the **job-to-be-done
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
A PRD's identity is the **job-to-be-done**, keyed by three coordinates so it stays
|
|
87
|
+
queryable: `{ domain, product, intent }` → `ski/gloves-slope` (intent always
|
|
88
|
+
present; a context-free request keys `general`). It holds the method's requirements
|
|
89
|
+
**specialized to this job** plus the buyer's **durable** filled preferences (the
|
|
90
|
+
per-job slice; the per-domain durable taste lives in the method). PRDs are
|
|
91
|
+
**durable** and **revisitable** — re-buying the same thing, or resuming an
|
|
92
|
+
unfinished session, **recovers** the PRD, never rebuilds it.
|
|
91
93
|
|
|
92
94
|
## The store — frontmatter-as-truth (no manifest)
|
|
93
95
|
|
|
94
96
|
Artefacts live at `shopper/domains/<slug>/{method.md, prds/<product>-<intent>.md,
|
|
95
|
-
assets/}`. There is **no manifest** — each file's own **frontmatter** IS the
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
assets/}`. There is **no manifest** — each file's own **frontmatter** IS the truth,
|
|
98
|
+
discovered by a filesystem **scan** over those coordinates. Malformed frontmatter is
|
|
99
|
+
skipped and surfaced as `unreadable`, never half-read.
|
|
98
100
|
|
|
99
101
|
## Discovery + manage
|
|
100
102
|
|
|
101
|
-
- **Discover / reuse-before-mint** with **`sil_profile_search`** —
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"what does my shopper know?" overview.
|
|
103
|
+
- **Discover / reuse-before-mint** with **`sil_profile_search`** — queries artefact
|
|
104
|
+
**frontmatter**, returns **coordinates** only (no bodies): the learned domains and
|
|
105
|
+
their PRDs. The frontmatter-as-truth query, **not a manifest** and not a
|
|
106
|
+
filesystem guess. The no-filter call is the "what does my shopper know?" overview.
|
|
106
107
|
- **Read one body** with **`sil_profile_get`** — `domainSlug` for the method body,
|
|
107
108
|
`+prd` for that PRD's body.
|
|
108
|
-
- **Remove** with **`sil_profile_remove`** — `domainSlug` alone removes the
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
- **Remove** with **`sil_profile_remove`** — `domainSlug` alone removes the **whole
|
|
110
|
+
domain** subtree; `+prd` removes **just that PRD** (method + siblings survive).
|
|
111
|
+
Destructive: **confirm** with the buyer first.
|
|
@@ -1,68 +1,64 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: setup-onboarding
|
|
3
|
-
description: The one-time setup script the router defers to — the five-stage onboarding progression, the after-register shopper offer, and the per-search pitch. Load while a shopper is still being set up
|
|
3
|
+
description: The one-time setup script the router defers to — the five-stage onboarding progression, the after-register shopper offer, and the per-search pitch. Load while a shopper is still being set up; shed once setup is complete.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Setting up the shopper — the staged onboarding
|
|
7
7
|
|
|
8
|
-
The router defers the **one-time setup script** here: the five-stage
|
|
9
|
-
after-register offer,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
and its single next step**.
|
|
8
|
+
The router defers the **one-time setup script** here: the five-stage progression, the
|
|
9
|
+
after-register offer, the per-search pitch. None applies once setup is complete — the router
|
|
10
|
+
sheds it. **Read the stage from state, never guess:** `sil_whoami` (registered?) + a no-arg
|
|
11
|
+
**`sil_profile_search`** (any `domains`?). Present **only the current stage's beat and its
|
|
12
|
+
single next step**.
|
|
14
13
|
|
|
15
|
-
## The five-stage progression
|
|
14
|
+
## The five-stage progression
|
|
16
15
|
|
|
17
|
-
1. **Unregistered** — `sil_whoami` finds no
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
5. **Setup complete** — a shopper with at least one domain. **Shed** every onboarding beat:
|
|
36
|
-
none of the stages above apply. **Show only how to use** the plugin well — the
|
|
37
|
-
**domain-gated shop loop** and **Spec-Driven Shopping** ([`shop_loop.md`](shop_loop.md)).
|
|
16
|
+
1. **Unregistered** — `sil_whoami` finds no identity. Before `sil_register`, state plainly
|
|
17
|
+
what it does and **how 4GPTs & SIL use the user's data**, grounded strictly in this plugin
|
|
18
|
+
(no invented policy): registering opens a browser sign-in creating their **sil identity**
|
|
19
|
+
(name + addresses, read by `sil_whoami`), stored **locally**; the shopper's setup + memory
|
|
20
|
+
live under `$SIL_DATA_DIR`, never leaving the device via the plugin; **search** hits sil's
|
|
21
|
+
catalog. Next: `sil_register`.
|
|
22
|
+
2. **Registered, no shopper** — identity exists, `sil_profile_search` returns no domains, no
|
|
23
|
+
shopper created. Bare `sil_search` works but isn't the finished state; guide the user to
|
|
24
|
+
**set up their shopper**, naming up front it takes a **couple of minutes and a few
|
|
25
|
+
questions**. The after-register offer owns the gate.
|
|
26
|
+
3. **Shopper, no domain** — the shopper was created (engine `created`) but `sil_profile_search`
|
|
27
|
+
still returns no domains. The first shopping intent **mints the first domain**, announced
|
|
28
|
+
with the inferred niche so the user can correct it. Next: state a shopping intent.
|
|
29
|
+
4. **Shopper active** — `sil_profile_search` returns ≥ 1 domain. Milestones: the **first domain
|
|
30
|
+
created**, and softer, that `sil_learn` stored a fact or taste.
|
|
31
|
+
5. **Setup complete** — a shopper with ≥ 1 domain. **Shed** every onboarding beat; **show only
|
|
32
|
+
how to use** the plugin well — the domain-gated six-beat loop and Spec-Driven Shopping
|
|
33
|
+
([`shop_loop.md`](shop_loop.md)).
|
|
38
34
|
|
|
39
|
-
## After register — offer
|
|
35
|
+
## After register — offer the shopper, once (offer_shopper)
|
|
40
36
|
|
|
41
|
-
`sil_register` returns `already_registered` with `next_step: "offer_shopper"` on a
|
|
42
|
-
|
|
43
|
-
(the overview) to read shopper state, then branch:
|
|
37
|
+
`sil_register` returns `already_registered` with `next_step: "offer_shopper"` on a confirmed
|
|
38
|
+
registration. Run a no-arg **`sil_profile_search`**, then branch:
|
|
44
39
|
|
|
45
|
-
- **
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
[`
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
40
|
+
- **No domains, no shopper:** introduce the shopper in one beat and offer to set it up — name
|
|
41
|
+
the value (shops each niche in depth; reuses the sizes + hard limits it knows so nothing is
|
|
42
|
+
re-asked; explains why each pick fits). Load
|
|
43
|
+
[`agent_creation_engine.md`](agent_creation_engine.md) **only if the user accepts** — its
|
|
44
|
+
Part 1 onboarding runs first, the engine only after endorsement. Take no for an answer; bare
|
|
45
|
+
`sil_search` stays first-class.
|
|
46
|
+
- **A shopper exists:** **skip this beat.** The shopper is a **singleton** — never offer a
|
|
47
|
+
second.
|
|
52
48
|
|
|
53
49
|
## After a bare search — the per-search pitch (post-result)
|
|
54
50
|
|
|
55
|
-
When a plain `sil_search` **completes
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
When a plain `sil_search` **completes `ok`** in a **profile-less** session, present the results
|
|
52
|
+
best-first **exactly as returned**, then append **one short trailing line** naming what a
|
|
53
|
+
shopper adds. Never a pre-search question, never a re-rank. Name one or two of three levers,
|
|
54
|
+
rotating which you lead with:
|
|
59
55
|
|
|
60
|
-
- **niche depth** —
|
|
61
|
-
- **memory** —
|
|
62
|
-
- **the why** —
|
|
56
|
+
- **niche depth** — weighs picks against how the niche actually buys;
|
|
57
|
+
- **memory** — keeps your sizes + hard limits on file, so no search re-asks them;
|
|
58
|
+
- **the why** — explains which pick fits you and why.
|
|
63
59
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
It **recurs on every** completed profile-less search — **no fire-once gate, no cooldown**;
|
|
61
|
+
brevity + lever rotation keep it from nagging. Two suppressors: a **shopper exists** (that
|
|
62
|
+
session is the shopper's — drop the line), or the search **not `ok`** (its own recovery
|
|
63
|
+
carries; add no tip).
|
|
64
|
+
</content>
|
|
@@ -6,19 +6,21 @@ description: The six-beat Spec-Driven Shopping loop — the state machine the sh
|
|
|
6
6
|
# The six-beat Spec-Driven Shopping loop
|
|
7
7
|
|
|
8
8
|
As the shopper you run one loop on every request — a **six-beat** state machine.
|
|
9
|
-
Most of it is reasoning over what you already know; you
|
|
10
|
-
the genuine residue. The beats
|
|
9
|
+
Most of it is reasoning over what you already know; you ask the buyer only about
|
|
10
|
+
the genuine residue. The beats, **in order**:
|
|
11
11
|
|
|
12
|
-
1. **Classify** — resolve
|
|
13
|
-
|
|
12
|
+
1. **Classify** — resolve `{domain, product, intent}`, reuse a learned domain/PRD
|
|
13
|
+
before minting (owned here).
|
|
14
14
|
2. **Method load / mint / refresh** — recover or research the domain's method +
|
|
15
15
|
its intent-keyed PRDs — [`method_and_prds.md`](method_and_prds.md).
|
|
16
|
-
3. **Fill** — resolve the PRD by precedence, eliciting only the residue
|
|
16
|
+
3. **Fill** — resolve the PRD by precedence, eliciting only the residue —
|
|
17
|
+
[`fill_and_feedback.md`](fill_and_feedback.md).
|
|
17
18
|
4. **Search-space** — project the filled PRD into a bounded fan-out (owned here).
|
|
18
19
|
5. **Reflect** — judge best-available against the PRD + method (owned here).
|
|
19
|
-
6. **Feedback** — capture what the reaction surfaced
|
|
20
|
+
6. **Feedback** — capture what the reaction surfaced —
|
|
21
|
+
[`fill_and_feedback.md`](fill_and_feedback.md).
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
This file owns Beats 1, 4 and 5.
|
|
22
24
|
|
|
23
25
|
## Beat 1 — Classify: `{domain, product, intent}`, reuse before mint
|
|
24
26
|
|
|
@@ -30,88 +32,82 @@ job carries all three coordinates and stays uniformly queryable.
|
|
|
30
32
|
|
|
31
33
|
**Reuse-before-mint.** Query existing coordinates with **`sil_profile_search`**
|
|
32
34
|
(the frontmatter-as-truth discovery tool — never a filesystem guess) and
|
|
33
|
-
**semantic-match** the request
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
**semantic-match** the request: **prefer existing** when a learned domain/PRD
|
|
36
|
+
covers the job, mint only when nothing does. The one guard against over-merging is
|
|
37
|
+
the requirements-divergence test — two requests share a PRD only if they resolve
|
|
38
|
+
to the same requirements.
|
|
37
39
|
|
|
38
|
-
**Never over-ask just to key.**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
**Never over-ask just to key.** A silent request keys `general` and moves on —
|
|
41
|
+
keying forces no extra question. When intent is genuinely requirement-defining but
|
|
42
|
+
the request is silent, that surfaces as the first Beat-3 question, not a keying
|
|
43
|
+
interrogation.
|
|
42
44
|
|
|
43
45
|
**Announce a mint.** A new-domain or new-PRD mint is **announced** — state the
|
|
44
|
-
inferred `domain / product / intent` so the buyer can **correct** it
|
|
45
|
-
silent**. A reuse passes through
|
|
46
|
+
inferred `domain / product / intent` so the buyer can **correct** it, **never
|
|
47
|
+
silent**. A reuse passes through unannounced.
|
|
46
48
|
|
|
47
49
|
## Beat 4 — Search-space: a bounded, priority-ordered fan-out (not a re-rank)
|
|
48
50
|
|
|
49
51
|
Project the filled PRD onto **`sil_search`** as a **bounded ≤ 4 priority-ordered**
|
|
50
|
-
fan-out
|
|
52
|
+
fan-out — not one search, not unbounded (the bound is a production budget: each
|
|
51
53
|
call is a round-trip + tokens):
|
|
52
54
|
|
|
53
55
|
- **Call 1 is the tightest projection of the PRD's core** (its load-bearing
|
|
54
56
|
requirements); **calls 2–4 are deliberate widenings** — relax the least
|
|
55
|
-
load-bearing requirement, an adjacent phrasing that
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
hit above a core one — the engine owns order *within* each call, the fan-out
|
|
63
|
-
owns order *across* calls.
|
|
64
|
-
- **Project each requirement onto existing params, then `specs` predicates, then
|
|
65
|
-
query enrichment — in that order.** Map each requirement onto the tightest real
|
|
66
|
-
channel:
|
|
57
|
+
load-bearing requirement, an adjacent phrasing that lifts recall, or an explicit
|
|
58
|
+
either/or branch. **Core first, widenings after** — the **priority order**.
|
|
59
|
+
- **Merge = dedup + concatenate in issue order — NOT a re-rank.** Concatenate the
|
|
60
|
+
per-call backend-ranked lists in issue order and **drop** any product already
|
|
61
|
+
**seen** earlier. Because issue order *is* priority order, this **never
|
|
62
|
+
re-ranks** — the engine owns order *within* a call, the fan-out *across* calls.
|
|
63
|
+
- **Project each requirement onto the tightest real channel, in this order:**
|
|
67
64
|
1. an **existing** `sil_search` **param** where one fits (`category`,
|
|
68
65
|
`price_min`/`price_max`, `condition`, `available`, `local_merchants`);
|
|
69
|
-
2. else a
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
3. else — a purely descriptive residue (a colour, a phrasing) — fold it into the
|
|
66
|
+
2. else a **`filters.specs` predicate**, built from the method's Beat-2 canonical
|
|
67
|
+
`## Search vocabulary` (the `sil_specs`-coined names) — one `{ns, key, op,
|
|
68
|
+
value, unit?, hard?}` per annotated requirement, marking an inviolable one
|
|
69
|
+
`hard:true`. **Prefer a dedicated param over a predicate** for the SAME
|
|
70
|
+
attribute — never both (a `price_max` param OR a price spec);
|
|
71
|
+
3. else a purely descriptive residue (a colour, a phrasing) — fold it into the
|
|
76
72
|
free-text `query`, which **you author yourself**. The plugin is **pure
|
|
77
73
|
transport**: it never folds a predicate into `query`, so a requirement that
|
|
78
74
|
belongs in `filters.specs` stays a predicate, never `query` prose.
|
|
79
75
|
Leave **`ship_to`** empty (the server resolves the registered default). **Never
|
|
80
|
-
invent** a param or
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
76
|
+
invent** a param or predicate that isn't real — the real `sil_search` params live in
|
|
77
|
+
its tool description, the predicate vocabulary in the domain method. Then read the
|
|
78
|
+
per-predicate **`specs_status`** the response returns (each `{ns, key, applied}`) — it
|
|
79
|
+
feeds
|
|
84
80
|
Beat 5's honesty pass, which rejects at pick any `hard` predicate the backend left
|
|
85
81
|
`applied:false`.
|
|
86
82
|
|
|
87
83
|
## Beat 5 — Reflect: honesty pass first, judgment not threshold, propose-and-wait
|
|
88
84
|
|
|
89
|
-
Take Beat 4's merged issue-order list and its per-call `specs_status`. Run
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
Take Beat 4's merged issue-order list and its per-call `specs_status`. Run
|
|
86
|
+
**honesty pass → judge → branch**, and **never re-rank**: the engine owns order,
|
|
87
|
+
you own the verdict.
|
|
92
88
|
|
|
93
89
|
**1 — Honesty pass, first.** Before judging fitness, walk the survivors and
|
|
94
90
|
**reject-at-pick** any candidate that violates a *hard* constraint the backend
|
|
95
91
|
could not enforce — exactly the predicates the response marked **`applied:false`**,
|
|
96
|
-
plus the `user_spec` `[hard]` markers. A violator
|
|
97
|
-
the pick; if rejection empties the set,
|
|
92
|
+
plus the `user_spec` `[hard]` markers. A violator leaves contention, never becomes
|
|
93
|
+
the pick; if rejection empties the set, take the empty path.
|
|
98
94
|
|
|
99
95
|
**2 — Judge, then branch.** Weigh the best surviving candidate against the PRD +
|
|
100
|
-
method.
|
|
101
|
-
|
|
96
|
+
method. Satisfies-or-falls-short is a **judgment**, **not a threshold** and not a
|
|
97
|
+
mechanical any-unmet-requirement rule — read the whole set.
|
|
102
98
|
|
|
103
99
|
- **Satisfies → a hero + 1–2 justified alternatives.** Lead with **one**
|
|
104
100
|
recommendation carrying the SDS-bar *why* (a met requirement, a researched method
|
|
105
|
-
mechanic,
|
|
101
|
+
mechanic, a stored preference reused without re-asking), then **one or two**
|
|
106
102
|
considered **alternatives**, each with a one-line reason. Best-first **as
|
|
107
103
|
returned** — **never re-rank**, never a bare list.
|
|
108
104
|
- **Shortfall or empty → propose a specific relaxation and wait.** Name the gap,
|
|
109
|
-
show the closest survivors,
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
show the closest survivors, **propose** the specific change that would widen it,
|
|
106
|
+
then **wait** for the buyer's nod. **No silent re-search**, no silent auto-widen;
|
|
107
|
+
the buyer can redirect instead.
|
|
112
108
|
|
|
113
109
|
A **non-`ok`** status is not an empty match — do not relax params; follow that
|
|
114
110
|
tool's own **`recovery`** exactly.
|
|
115
111
|
|
|
116
|
-
**Then Beat 6.** The buyer's reaction
|
|
117
|
-
|
|
112
|
+
**Then Beat 6.** The buyer's reaction is what Beat 6 captures —
|
|
113
|
+
[`fill_and_feedback.md`](fill_and_feedback.md).
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: brainstorm-interview
|
|
3
|
-
description: The two-touchpoint shopper onboarding — persona + shared user-spec seed, converged with the user and endorsement-gated. Load when the user asks to set up or create their shopper.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Set up your shopper — the onboarding interview
|
|
7
|
-
|
|
8
|
-
When the user asks to **set up shopping** — "create my shopper", "set up an agent
|
|
9
|
-
that shops for me" — do **not** jump to the engine. Run a short, **two-touchpoint**
|
|
10
|
-
onboarding that shapes the shopper *with* the user — **pre-seeded from what they
|
|
11
|
-
already said this session** — then create nothing until the user endorses the
|
|
12
|
-
assembled draft. The engine ([`agent_creation_engine.md`](agent_creation_engine.md))
|
|
13
|
-
runs only **after** that explicit endorsement.
|
|
14
|
-
|
|
15
|
-
This is a **conversation, not a form-fill** — and a short one. The shopper is a
|
|
16
|
-
**generalist**: it goes deep on whatever the user later buys, **lazily minting a
|
|
17
|
-
domain on first shop** in each niche. So onboarding does **not** research any niche
|
|
18
|
-
and does **not** ask the user to pick one. It touches exactly **two** things: the
|
|
19
|
-
**persona** (how the shopper behaves) and a **shared user-spec seed** (cross-niche
|
|
20
|
-
facts + hard constraints).
|
|
21
|
-
|
|
22
|
-
## Open with a reflected draft, not a cold question
|
|
23
|
-
|
|
24
|
-
Before asking anything, **pre-seed** a draft from what the user already said *this
|
|
25
|
-
session*: the **persona** (their words on how the shopper should behave) and the
|
|
26
|
-
**shared user-spec seed** (any sizes, hard limits, or ethics rules mentioned in
|
|
27
|
-
passing). Then **open by reflecting that draft back** — *"from what you've told me,
|
|
28
|
-
here's the shopper I'd set up…"* — and ask only to confirm-or-adjust. That is the
|
|
29
|
-
rich (a filled draft) + light (one confirm) shape.
|
|
30
|
-
|
|
31
|
-
- **Pre-fill, don't interrogate.** Ask only to fill genuine gaps, never to re-collect
|
|
32
|
-
what the user already told you. If the session gave little, seed a **minimal
|
|
33
|
-
honest** draft ("cross-niche facts to be learned as we shop; no hard constraints
|
|
34
|
-
stated yet") and say so — never fabricate a size or a limit.
|
|
35
|
-
- **Session-only — local + offline.** The seed is assembled **only** from this
|
|
36
|
-
conversation. It reads **no token**, does **not** pull `sil_whoami`, and makes **no
|
|
37
|
-
network call**. (The shopper registers the user later, on first shop.)
|
|
38
|
-
- **The pre-fill is a proposal, never consent.** The endorsement gate below is
|
|
39
|
-
untouched.
|
|
40
|
-
|
|
41
|
-
## The two touchpoints
|
|
42
|
-
|
|
43
|
-
| Artefact | Where | What it holds |
|
|
44
|
-
|---|---|---|
|
|
45
|
-
| **`SOUL.md`** (persona) | host workspace | the shopper's voice / standing rules — a **generalist**, not a niche specialist |
|
|
46
|
-
| **`user_spec.md`** (shared) | sil data dir (**required**) | the user's **cross-niche** facts + hard constraints (addresses, sizes, allergy/ethics rules, budget psychology) |
|
|
47
|
-
|
|
48
|
-
The niche packs — the deep niche know-how, the per-request template, and the niche
|
|
49
|
-
shopping taste — are **not authored here**; they are **minted lazily on first shop**
|
|
50
|
-
in each niche ([`shop_loop.md`](shop_loop.md)). Never research a niche here.
|
|
51
|
-
|
|
52
|
-
**1. Persona — reflect back, confirm.** Open by reflecting the session-seeded persona
|
|
53
|
-
draft ("from what you've told me, your shopper sounds like…"), then confirm-or-adjust
|
|
54
|
-
its **voice/tone** and any **standing rules**. This surfaces voice, **not a niche** —
|
|
55
|
-
a generalist that shops whatever the user buys. It becomes the host workspace
|
|
56
|
-
**`SOUL.md`** (no `persona.md`).
|
|
57
|
-
|
|
58
|
-
**2. Shared user spec — seed the cross-niche facts + hard constraints.** Pre-fill the
|
|
59
|
-
**shared user spec** from the session: **cross-niche** facts and any **hard
|
|
60
|
-
constraints** that should hold in *every* niche — addresses / sizes, an allergy or
|
|
61
|
-
ethics rule ("never leather"), a budget psychology. Reflect the seed back and mark
|
|
62
|
-
each **hard** (inviolable) vs **soft** (bendable). Seed what the user offered; the
|
|
63
|
-
rest is augmented per-query at shop time. This lands in `userSpec` (→ the shared
|
|
64
|
-
`user_spec.md`). **No niche taste, no domain question, no intent dimensions** are
|
|
65
|
-
gathered here.
|
|
66
|
-
|
|
67
|
-
## Assemble + endorse
|
|
68
|
-
|
|
69
|
-
- **Identity.** Propose an `agentId` (lower-kebab, `^[a-z0-9][a-z0-9-]*$`, never
|
|
70
|
-
`main`) and a `name` ("My Shopper" / `my-shopper`). Confirm both.
|
|
71
|
-
- **Assemble + present.** Compose **`{ agentId, name, persona, userSpec }`** and
|
|
72
|
-
present a readable summary: who the shopper is and the seeded shared user spec
|
|
73
|
-
(partial, to grow per-query). Self-check the shape — `agentId` lower-kebab & ≠
|
|
74
|
-
`main`, non-blank `name`/`persona`, non-blank shared `userSpec` (the only sil
|
|
75
|
-
artefact at create). This writes nothing; the engine's validate-first step is the
|
|
76
|
-
authoritative gate.
|
|
77
|
-
- **Endorse — the gate.** Ask for an explicit go-ahead ("shall I create your
|
|
78
|
-
shopper?"). Endorsement is an affirmative act on the assembled draft — "yes, create
|
|
79
|
-
it". It is **not** inferred from the last answer and **not** from silence. **Only on
|
|
80
|
-
that explicit endorsement** do you proceed to the engine
|
|
81
|
-
([`agent_creation_engine.md`](agent_creation_engine.md)).
|
|
82
|
-
|
|
83
|
-
## Invariants (hold on every path)
|
|
84
|
-
|
|
85
|
-
- **No creation without explicit endorsement.** **Zero engine steps** run before the
|
|
86
|
-
explicit "yes"; the draft lives only in the conversation. **Nothing is created**
|
|
87
|
-
until then, so an abandoned interview leaves no partial shopper.
|
|
88
|
-
- **Two touchpoints only** — persona, then shared user spec, both pre-seeded from the
|
|
89
|
-
session. No niche is researched or chosen here; that is first-shop lazy mint.
|
|
90
|
-
- **Converge each touchpoint before advancing; stay re-entrant** — the user can revise
|
|
91
|
-
an earlier touchpoint at any point.
|
|
92
|
-
- **Singleton.** If a shopper already exists, the engine refuses a second create (its
|
|
93
|
-
`collision`, "a shopper already exists") — surface it and steer to shop-a-new-niche
|
|
94
|
-
or refine; never clobber the existing one.
|
|
95
|
-
- **Local + offline for identity.** Never present sil registration or a token as a
|
|
96
|
-
prerequisite to create, and never pull `sil_whoami` to seed — the seed is
|
|
97
|
-
session-only.
|