sil-openclaw 0.4.0 → 0.4.2
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 +105 -0
- package/dist/lib/profile-store.js +44 -147
- package/dist/tools/catalog.js +9 -19
- package/dist/tools/profile.js +59 -75
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/scripts/create-shopper.mjs +34 -23
- package/sil-shopping/SKILL.md +55 -60
- package/sil-shopping/examples/multi_domain_shopper_walkthrough.md +44 -35
- package/sil-shopping/references/agent_creation_engine.md +177 -119
- package/sil-shopping/references/fill_and_feedback.md +58 -44
- package/sil-shopping/references/method_and_prds.md +116 -83
- package/sil-shopping/references/setup_onboarding.md +48 -52
- package/sil-shopping/references/shop_loop.md +72 -71
- 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
|
@@ -1,56 +1,65 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: multi-domain-shopper-walkthrough
|
|
3
|
-
description: A worked six-beat
|
|
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 and a mid-session correction reconciled by a whole-doc write. Illustrative, not a spec.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Worked run — one shopper, two niches, six beats
|
|
7
7
|
|
|
8
|
-
|
|
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 +
|
|
14
|
-
|
|
15
|
-
`
|
|
16
|
-
|
|
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** —
|
|
25
|
-
|
|
26
|
-
ski domain
|
|
27
|
-
2. **Method** — research ski gear
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
1. **Classify** — "warm gloves for the slope" → `{ domain: ski, product: gloves, intent:
|
|
21
|
+
slope }`. The domain is the **broad category** (`ski`, not `ski-slope-gloves`), so a later
|
|
22
|
+
"ski goggles" reuses this method. `sil_profile_search` finds no ski domain → a MISS.
|
|
23
|
+
2. **Method** — research ski gear, then **mint the general buying guide** via `sil_learn create`
|
|
24
|
+
(`target: method`, domain `ski`): a `## How it's bought` section + a coined `## Search
|
|
25
|
+
vocabulary` (e.g. `product.waterproof_rating`, `product.insulation_g`) — **dimensions, never
|
|
26
|
+
this buyer's values**. **Announced** ("I read this as *ski gloves for the slope*").
|
|
27
|
+
3. **Fill** — the method's dimensions resolve from stored state; the wool allergy is **reused**
|
|
28
|
+
from the shared `user_spec` **without re-asking**; only the budget is elicited (one question,
|
|
29
|
+
tied to why). The resolved values are authored into the PRD's **`## Search specs`** block —
|
|
30
|
+
e.g. `{ns:product, key:waterproof_rating, op:gte, value:10000, unit:mm, hard:true}` — and
|
|
31
|
+
persisted with `sil_learn create` (`target: prd`, `ski/gloves-slope`).
|
|
32
|
+
4. **Search-space** — **project** the PRD's `## Search specs` block **verbatim** into a bounded
|
|
33
|
+
≤ 4 `sil_search` fan-out, core first, deliberate widenings after.
|
|
33
34
|
5. **Reflect** — honesty pass, then a **hero + one alternative**, each with a why.
|
|
34
|
-
6. **Feedback** —
|
|
35
|
-
|
|
35
|
+
6. **Feedback** — "I always run Hestra" → confirm, then **`sil_learn write`** the ski method with
|
|
36
|
+
a `## Durable taste` line folded in (a whole-doc reconcile, per-domain — not a stray bullet).
|
|
37
|
+
|
|
38
|
+
### A correction, mid-session — the write-reconcile
|
|
39
|
+
|
|
40
|
+
The buyer pushes back: "the €120 cap was just for today — my real ceiling is €90, and I don't
|
|
41
|
+
care about touchscreen fingers." That **contradicts** two filled preferences and is a
|
|
42
|
+
**standing** change, so reconcile the PRD with a single **`sil_learn write`**: read the current
|
|
43
|
+
`ski/gloves-slope`, **rewrite** the budget predicate and drop the touchscreen one in place, and
|
|
44
|
+
write the coherent whole back. No second, contradicting bullet is ever added — the PRD stays
|
|
45
|
+
**one truth per dimension**, and the next search projects the corrected block.
|
|
36
46
|
|
|
37
47
|
## Niche B — an espresso grinder (same session, minted on the fly)
|
|
38
48
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
handles it:
|
|
49
|
+
The user pivots: "now I need a burr grinder" — a **second, unrelated niche**. No agent switch;
|
|
50
|
+
the one shopper handles it:
|
|
42
51
|
|
|
43
|
-
1. **Classify** → `{ domain: espresso, product: grinder, intent: general }` (
|
|
44
|
-
|
|
45
|
-
2. **Method** — a MISS again → research + **mint on the fly
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
Hestra taste,
|
|
52
|
+
1. **Classify** → `{ domain: espresso, product: grinder, intent: general }` (context-free →
|
|
53
|
+
`general`).
|
|
54
|
+
2. **Method** — a MISS again → research + **mint the general method on the fly** (`create`),
|
|
55
|
+
**announced**.
|
|
56
|
+
3. **Fill** — "ships to Berlin" is **reused across** niches from the shared `user_spec`, kept
|
|
57
|
+
from the ski session. The Hestra taste, per-domain on the ski method, does **not** leak here.
|
|
49
58
|
|
|
50
|
-
|
|
59
|
+
Shared facts flow to both; per-domain taste stays isolated.
|
|
51
60
|
|
|
52
61
|
## The singleton edge
|
|
53
62
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
"Set me up a second shopper" → the engine refuses: **a shopper already exists**. Steer to shop
|
|
64
|
+
a new niche (mints a domain on the spot) or refine an existing one with `sil_learn write` — never
|
|
65
|
+
a second shopper.
|
|
@@ -1,140 +1,198 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-creation-engine
|
|
3
|
-
description:
|
|
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
|
|
6
|
+
# Create the shopper
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
26
|
+
### Open with a reflected draft
|
|
20
27
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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": "…
|
|
106
|
+
"persona": "…endorsed persona…", "userSpec": "…seeded shared user spec…",
|
|
32
107
|
"channel": "telegram" }
|
|
33
108
|
JSON
|
|
34
109
|
```
|
|
35
110
|
|
|
36
|
-
The
|
|
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
|
|
47
|
-
| **name** | Human-readable name
|
|
48
|
-
| **persona** | Who the shopper is
|
|
49
|
-
| **workspace** | The shopper's workspace directory. | host |
|
|
50
|
-
| **userSpec** |
|
|
51
|
-
| **channel** |
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
domains
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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** (value-mode `config set --strict-json`, the only
|
|
145
|
+
mode the pinned `alpine/openclaw:2026.6.9` accepts):
|
|
146
|
+
`agents.list[<idx>].skills` ← `["sil-shopping"]`; `plugins.entries.sil.enabled` ←
|
|
147
|
+
`true`. **No per-agent `tools.deny`** — the shopper inherits the host default toolset.
|
|
148
|
+
An fs-mutator deny is inert while codex's own shell (surfaced as `bash`) stays open by
|
|
149
|
+
design: it reads the shopper's skill files and can write regardless. The shell stays
|
|
150
|
+
open (trusted single-operator posture); persistence is steered through the sil tools by
|
|
151
|
+
the skill, not enforced by tool policy.
|
|
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,
|
|
126
|
-
| `invalid_request` | Spec failed validation.
|
|
127
|
-
| `collision` | A shopper
|
|
128
|
-
| `persistence_failed` | A write, the allow-list helper
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
persona via **`SOUL.md`**. Load the shared
|
|
134
|
-
|
|
135
|
-
`sil_profile_search` scans the
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
`
|
|
139
|
-
|
|
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).
|
|
@@ -1,88 +1,102 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fill-and-feedback
|
|
3
|
-
description: Beat 3 (fill the PRD by precedence, multi-turn, hard-constraint dual-enforce, the persistence split) and Beat 6 (the reaction half — capture-gate, confirm-before-write, route-by-scope), plus sil_learn, the one target+change write verb. Load when eliciting requirements or capturing what a reaction surfaced.
|
|
3
|
+
description: Beat 3 (fill the PRD by precedence, multi-turn, author the Search specs block, hard-constraint dual-enforce, the persistence split) and Beat 6 (the reaction half — capture-gate, confirm-before-write, route-by-scope), plus sil_learn, the one target+change write verb (create | write | attach-asset). Load when eliciting requirements or capturing what a reaction surfaced.
|
|
4
4
|
---
|
|
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 +
|
|
9
|
-
|
|
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 write`** (the whole
|
|
10
|
+
reconciled doc, never a stacked bullet).
|
|
10
11
|
|
|
11
12
|
## Beat 3 — Fill by precedence
|
|
12
13
|
|
|
13
|
-
Enumerate the load-bearing dimensions the method names, then resolve each
|
|
14
|
-
|
|
14
|
+
Enumerate the load-bearing dimensions the method names, then resolve each down the
|
|
15
|
+
chain, **first hit wins**:
|
|
15
16
|
|
|
16
17
|
**request-intent > PRD filled-pref > method taste > user_spec fact > method default**
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
not re-ask).
|
|
19
|
+
A pure **read-compose** — **most** dimensions **resolve** from stored state with
|
|
20
|
+
**no question** (a revisited niche does not re-ask).
|
|
21
21
|
|
|
22
22
|
**Elicit the residue — multi-turn.** Only a dimension that is unresolved **and**
|
|
23
23
|
load-bearing **and** not answerable from a sensible default goes to the buyer.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
Pursue each until **resolved** or explicitly **declined**, then search. Each turn is
|
|
25
|
+
**a few at a time, never a battery**, each tied to **why**, playing the filled
|
|
26
|
+
understanding back.
|
|
27
|
+
|
|
28
|
+
**Author the `## Search specs` block.** As dimensions resolve, project each into a
|
|
29
|
+
`{ ns, key, op, value, unit?, hard? }` predicate (keys from the method's `## Search
|
|
30
|
+
vocabulary`) — the block Beat 4 sends verbatim. A **preferred-value-with-fallback**
|
|
31
|
+
("prefer ear hooks, fins acceptable") is **one `op:in` set** over the acceptable
|
|
32
|
+
values, **not** a hard `eq` on the favourite; the favourite is a **Beat-5 ranking**
|
|
33
|
+
preference. Mark a predicate **`hard: true`** only when a miss must **reject at pick** —
|
|
34
|
+
loose hard-marking empties result sets.
|
|
27
35
|
|
|
28
36
|
**Live request vs a stored durable pref — ask, don't guess.** When the request
|
|
29
37
|
contradicts a stored **durable** PRD preference, the request wins **this** search,
|
|
30
|
-
but ask whether it is **one-off** or
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
but ask whether it is **one-off** or **standing**. "Just this once" → ephemeral, no
|
|
39
|
+
write. "From now on" → a **standing** change: **`write`** the reconciled PRD (the
|
|
40
|
+
changed line rewritten in place). **Never silently overwrite** a standing preference.
|
|
33
41
|
|
|
34
|
-
**Hard constraints are inviolable — dual-enforced.** `user_spec [hard]`
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
**Hard constraints are inviolable — dual-enforced.** A `user_spec` `[hard]` line and a
|
|
43
|
+
PRD `## Search specs` `hard:true` predicate route to a real **filter** where one exists
|
|
44
|
+
**and** to Beat 5's **reject-at-pick** check — because a `specs` predicate can read
|
|
45
|
+
`applied:false`.
|
|
38
46
|
|
|
39
47
|
**The split — persist stated durable answers NOW.** Fill is the **first** of two
|
|
40
48
|
persistence moments: a durable answer the buyer **stated** during elicitation is
|
|
41
|
-
**written**
|
|
42
|
-
abandoned session still recovers what was settled. What
|
|
43
|
-
surfaces is **Beat 6's** write
|
|
44
|
-
**ephemeral
|
|
49
|
+
**written** into the PRD **now** — a `write` that folds it into `## Search specs` /
|
|
50
|
+
`## Filled preferences` — so an abandoned session still recovers what was settled. What
|
|
51
|
+
the buyer's **reaction** surfaces is **Beat 6's** write. One-off direction stays
|
|
52
|
+
**ephemeral**, **never written** by either.
|
|
45
53
|
|
|
46
54
|
**Decline never blocks.** A declined question narrows **quality**, never **access**
|
|
47
55
|
— proceed on the best-defensible params and **state the assumption** ("assuming
|
|
48
56
|
waterproofing, since it's for the slope"). Unresolved-and-declined dimensions land
|
|
49
|
-
in the PRD's
|
|
57
|
+
in the PRD's **`## Notes / open`** so the next session recovers, not re-asks — a
|
|
58
|
+
non-answer is a note, never a preference.
|
|
50
59
|
|
|
51
60
|
## Beat 6 — Feedback: the reaction half
|
|
52
61
|
|
|
53
|
-
Beat 6 is the loop's **only reaction-time persistence
|
|
62
|
+
Beat 6 is the loop's **only reaction-time persistence**, a standing beat.
|
|
54
63
|
|
|
55
64
|
**The capture gate — most reactions persist nothing.** Write only a signal that is
|
|
56
|
-
**durable AND new** —
|
|
57
|
-
**empty** entry. A this-pick reaction ("too pricey this time") is not durable
|
|
58
|
-
|
|
65
|
+
**durable AND new** — no **duplicate** (not already stored), no **noise**, no
|
|
66
|
+
**empty** entry. A this-pick reaction ("too pricey this time") is not durable, never
|
|
67
|
+
written.
|
|
59
68
|
|
|
60
69
|
**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
|
-
|
|
70
|
+
candidate, **confirm before** writing it ("want me to remember you run Shimano?") —
|
|
71
|
+
**never a silent harvest**. The confirm is gated behind the candidate, so most
|
|
63
72
|
reactions ask nothing.
|
|
64
73
|
|
|
65
|
-
**Route by scope — the placement rule.** A confirmed signal lands at the
|
|
66
|
-
|
|
74
|
+
**Route by scope — the placement rule.** A confirmed signal lands at the **broadest
|
|
75
|
+
scope where it stays true**:
|
|
67
76
|
|
|
68
77
|
- a cross-domain **fact** / **hard** constraint → **`user_spec`**;
|
|
69
|
-
- a durable per-domain **taste** → the **method
|
|
70
|
-
- a **this-job** preference → the **PRD
|
|
78
|
+
- a durable per-domain **taste** → the **method** (`## Durable taste`);
|
|
79
|
+
- a **this-job** preference or spec → the **PRD** (`## Filled preferences` /
|
|
80
|
+
`## Search specs`);
|
|
71
81
|
- an **image** → **`attach-asset`** (per-domain).
|
|
72
82
|
|
|
73
|
-
**
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
**Every write is a reconciled whole-doc `write`.** Read the target
|
|
84
|
+
(`sil_profile_get`), fold the new signal into the coherent whole, and `sil_learn write`
|
|
85
|
+
it back — a correction **rewrites** the line it changes, so the doc **never stacks a
|
|
86
|
+
contradicting bullet**. There is no append/amend/retract; reconciliation is the only
|
|
87
|
+
update path.
|
|
76
88
|
|
|
77
|
-
**Re-scope = write-broader-then-
|
|
78
|
-
|
|
79
|
-
**
|
|
89
|
+
**Re-scope = write-broader-then-write-narrower.** When a reaction shows a stored fact
|
|
90
|
+
is broader than where it lives, `write` it into the **broader** target and `write` the
|
|
91
|
+
**narrower** one without the moved line (two `sil_learn write` calls). There is **no
|
|
92
|
+
promote verb**.
|
|
80
93
|
|
|
81
94
|
## `sil_learn` — the one target + change write verb
|
|
82
95
|
|
|
83
96
|
`sil_learn` is the single **target + change** verb owning the whole method/PRD
|
|
84
|
-
lifecycle. `target` selects where the change lands (`user_spec` / `method` /
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
97
|
+
lifecycle. `target` selects where the change lands (`user_spec` / `method` / `prd`);
|
|
98
|
+
the **kind** selects the change. **Three kinds:** **create** (mint a NEW method/PRD —
|
|
99
|
+
errors if one already exists), **write** (replace an existing doc's whole body with the
|
|
100
|
+
reconciled version you author — read it first, carry every buyer line forward),
|
|
101
|
+
**attach-asset** (persist image bytes, linked by path). Every capture is reviewable via
|
|
102
|
+
`sil_profile_get` and erasable via `sil_profile_remove` — never silently harvested.
|