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
|
@@ -1,56 +1,49 @@
|
|
|
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. 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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
re-asking**. Only the budget is elicited — one question, tied to why.
|
|
20
|
+
1. **Classify** — "warm gloves for the slope" → `{ domain: ski, product: gloves, intent:
|
|
21
|
+
slope }`; `sil_profile_search` finds no ski domain → a MISS.
|
|
22
|
+
2. **Method** — research ski gear, **mint** via `sil_learn create`, **announced** ("I read this
|
|
23
|
+
as *ski gloves for the slope* — correct me if not").
|
|
24
|
+
3. **Fill** — the method resolves waterproofing + cuff length; the wool allergy is **reused**
|
|
25
|
+
from the shared `user_spec` **without re-asking**; only the budget is elicited (one question,
|
|
26
|
+
tied to why).
|
|
32
27
|
4. **Search-space** — a bounded fan-out of ≤ 4 `sil_search` calls, core first.
|
|
33
28
|
5. **Reflect** — honesty pass, then a **hero + one alternative**, each with a why.
|
|
34
|
-
6. **Feedback** —
|
|
35
|
-
|
|
29
|
+
6. **Feedback** — "I always run Hestra" → confirm, persist a per-domain taste to the method via
|
|
30
|
+
`sil_learn`.
|
|
36
31
|
|
|
37
32
|
## Niche B — an espresso grinder (same session, minted on the fly)
|
|
38
33
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
handles it:
|
|
34
|
+
The user pivots: "now I need a burr grinder" — a **second, unrelated niche**. No agent switch;
|
|
35
|
+
the one shopper handles it:
|
|
42
36
|
|
|
43
|
-
1. **Classify** → `{ domain: espresso, product: grinder, intent: general }` (
|
|
44
|
-
|
|
37
|
+
1. **Classify** → `{ domain: espresso, product: grinder, intent: general }` (context-free →
|
|
38
|
+
`general`).
|
|
45
39
|
2. **Method** — a MISS again → research + **mint on the fly**, **announced**.
|
|
46
|
-
3. **Fill** —
|
|
47
|
-
|
|
48
|
-
Hestra taste, being per-domain on the ski method, does **not** leak here.
|
|
40
|
+
3. **Fill** — "ships to Berlin" is **reused across** niches from the shared `user_spec`, kept
|
|
41
|
+
from the ski session. The Hestra taste, per-domain on the ski method, does **not** leak here.
|
|
49
42
|
|
|
50
|
-
|
|
43
|
+
Shared facts flow to both; per-domain taste stays isolated.
|
|
51
44
|
|
|
52
45
|
## The singleton edge
|
|
53
46
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
"Set me up a second shopper" → the engine refuses: **a shopper already exists**. Steer to shop
|
|
48
|
+
a new niche (mints a domain on the spot) or refine with `sil_learn` — never a second shopper.
|
|
49
|
+
</content>
|
|
@@ -1,140 +1,198 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-creation-engine
|
|
3
|
-
description:
|
|
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
|
-
the
|
|
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 + harden tools** (value-mode `config set
|
|
145
|
+
--strict-json`, the only mode the pinned `alpine/openclaw:2026.6.9` accepts):
|
|
146
|
+
`agents.list[<idx>].skills` ← `["sil"]`; `plugins.entries.sil.enabled` ← `true`;
|
|
147
|
+
**`agents.list[<idx>].tools.deny`** ← **`["exec","write","edit","apply_patch"]`** — a
|
|
148
|
+
per-agent **deny-list** removing the shell (`exec`) + filesystem mutators while
|
|
149
|
+
**keeping the sil tools + web**. A deny (not replacing the base tool set) is used
|
|
150
|
+
because per OpenClaw precedence it only *further-restricts* and can never strip the
|
|
151
|
+
sil grant.
|
|
152
|
+
8. **Admit sil (plugin trust)** — the shipped **`sil-openclaw-allowlist`** helper
|
|
153
|
+
additively merges the three trust surfaces (`plugins.allow` + `tools.alsoAllow` +
|
|
154
|
+
`plugins.entries.sil`) — the only way to un-filter `sil_*` without clobbering a
|
|
155
|
+
co-installed plugin. A non-zero exit → **`persistence_failed`** (never a green
|
|
156
|
+
`created` over filtered tools).
|
|
157
|
+
9. **Bind the channel — FAIL-OPEN** — resolve (`spec.channel`, else
|
|
158
|
+
`OPENCLAW_MCP_MESSAGE_CHANNEL`), bind, **verify** the route stuck. Undetermined /
|
|
159
|
+
owned / unverifiable → revert + a manual-bind hint in `warnings`. Never fails
|
|
160
|
+
creation.
|
|
161
|
+
10. **Validate then declare** — `config validate --json` keys off **`.valid`**. Only
|
|
162
|
+
`valid: true` **and** step 8 ok → **`created`** (with `boundChannel`, or `null`).
|
|
163
|
+
Any failure **after step 4** tears down (restore the snapshot; remove the workspace
|
|
164
|
+
+ shopper dir only if it created them), so `persistence_failed` means **nothing
|
|
165
|
+
partial**. If teardown cannot fully revert, a louder **`teardown_failed`** names the
|
|
166
|
+
residue.
|
|
167
|
+
|
|
168
|
+
Exit 0 **only** on `created`.
|
|
169
|
+
|
|
170
|
+
### The `SOUL.md` "The sil way" creed block
|
|
171
|
+
|
|
172
|
+
The persona is followed by a standing **"The sil way"** creed — an identity-level
|
|
173
|
+
restatement (a philosophy, not a rulebook; the mechanics live in the attached skill)
|
|
174
|
+
carrying the **explore-first** mantra, the loop in three lines, and the one distinction
|
|
175
|
+
that matters: the shopper **mints an unlearned niche first** (a `sil_profile_search`
|
|
176
|
+
MISS → `sil_learn create`, then search); **the sil catalog is where you buy, the open
|
|
177
|
+
web is where you learn** (web only researches a niche's buying guide, never sources a
|
|
178
|
+
pick); **persists only through `sil_learn`**, never to host files.
|
|
179
|
+
|
|
180
|
+
### Status taxonomy
|
|
181
|
+
|
|
182
|
+
| `status` | Meaning | Do |
|
|
124
183
|
|---|---|---|
|
|
125
|
-
| `created` | Shopper added,
|
|
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).
|
|
@@ -5,74 +5,72 @@ description: Beat 3 (fill the PRD by precedence, multi-turn, hard-constraint dua
|
|
|
5
5
|
|
|
6
6
|
# Beat 3 (Fill) and Beat 6 (Feedback) — via `sil_learn`
|
|
7
7
|
|
|
8
|
-
Beats 1–2 hand off the resolved PRD +
|
|
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`**.
|
|
10
10
|
|
|
11
11
|
## Beat 3 — Fill by precedence
|
|
12
12
|
|
|
13
|
-
Enumerate the load-bearing dimensions the method names, then resolve each
|
|
14
|
-
|
|
13
|
+
Enumerate the load-bearing dimensions the method names, then resolve each down the
|
|
14
|
+
chain, **first hit wins**:
|
|
15
15
|
|
|
16
16
|
**request-intent > PRD filled-pref > method taste > user_spec fact > method default**
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
not re-ask).
|
|
18
|
+
A pure **read-compose** — **most** dimensions **resolve** from stored state with
|
|
19
|
+
**no question** (a revisited niche does not re-ask).
|
|
21
20
|
|
|
22
21
|
**Elicit the residue — multi-turn.** Only a dimension that is unresolved **and**
|
|
23
22
|
load-bearing **and** not answerable from a sensible default goes to the buyer.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
Pursue each until **resolved** or explicitly **declined**, then search. Each turn is
|
|
24
|
+
**a few at a time, never a battery**, each tied to **why**, playing the filled
|
|
25
|
+
understanding back.
|
|
27
26
|
|
|
28
27
|
**Live request vs a stored durable pref — ask, don't guess.** When the request
|
|
29
28
|
contradicts a stored **durable** PRD preference, the request wins **this** search,
|
|
30
|
-
but ask whether it is **one-off** or
|
|
31
|
-
|
|
32
|
-
**
|
|
29
|
+
but ask whether it is **one-off** or **standing**. "Just this once" → ephemeral, no
|
|
30
|
+
write. "From now on" → a **standing** change: **amend** the stored preference.
|
|
31
|
+
**Never silently overwrite** a standing preference.
|
|
33
32
|
|
|
34
33
|
**Hard constraints are inviolable — dual-enforced.** `user_spec [hard]` + PRD hard
|
|
35
|
-
requirements
|
|
36
|
-
|
|
37
|
-
because a `specs` predicate can read `applied:false`.
|
|
34
|
+
requirements route to a real **filter** where one exists **and** to Beat 5's
|
|
35
|
+
**reject-at-pick** check — because a `specs` predicate can read `applied:false`.
|
|
38
36
|
|
|
39
37
|
**The split — persist stated durable answers NOW.** Fill is the **first** of two
|
|
40
38
|
persistence moments: a durable answer the buyer **stated** during elicitation is
|
|
41
|
-
**written** to the PRD's *Filled preferences* **now
|
|
39
|
+
**written** to the PRD's *Filled preferences* **now** via `sil_learn` — so an
|
|
42
40
|
abandoned session still recovers what was settled. What the buyer's **reaction**
|
|
43
41
|
surfaces is **Beat 6's** write (the **reaction half**). One-off direction stays
|
|
44
|
-
**ephemeral
|
|
42
|
+
**ephemeral**, **never written** by either.
|
|
45
43
|
|
|
46
44
|
**Decline never blocks.** A declined question narrows **quality**, never **access**
|
|
47
45
|
— proceed on the best-defensible params and **state the assumption** ("assuming
|
|
48
46
|
waterproofing, since it's for the slope"). Unresolved-and-declined dimensions land
|
|
49
|
-
in the PRD's *Notes / open* so the next session recovers
|
|
47
|
+
in the PRD's *Notes / open* so the next session recovers, not re-asks.
|
|
50
48
|
|
|
51
49
|
## Beat 6 — Feedback: the reaction half
|
|
52
50
|
|
|
53
|
-
Beat 6 is the loop's **only reaction-time persistence
|
|
51
|
+
Beat 6 is the loop's **only reaction-time persistence**, a standing beat.
|
|
54
52
|
|
|
55
53
|
**The capture gate — most reactions persist nothing.** Write only a signal that is
|
|
56
|
-
**durable AND new** —
|
|
57
|
-
**empty** entry. A this-pick reaction ("too pricey this time") is not durable
|
|
58
|
-
|
|
54
|
+
**durable AND new** — no **duplicate** (not already stored), no **noise**, no
|
|
55
|
+
**empty** entry. A this-pick reaction ("too pricey this time") is not durable, never
|
|
56
|
+
written.
|
|
59
57
|
|
|
60
58
|
**Confirm before every durable write.** When the gate surfaces a new durable
|
|
61
|
-
candidate, **confirm before** writing it ("want me to remember you run Shimano?")
|
|
62
|
-
|
|
59
|
+
candidate, **confirm before** writing it ("want me to remember you run Shimano?") —
|
|
60
|
+
**never a silent harvest**. The confirm is gated behind the candidate, so most
|
|
63
61
|
reactions ask nothing.
|
|
64
62
|
|
|
65
|
-
**Route by scope — the placement rule.** A confirmed signal lands at the
|
|
66
|
-
|
|
63
|
+
**Route by scope — the placement rule.** A confirmed signal lands at the **broadest
|
|
64
|
+
scope where it stays true**:
|
|
67
65
|
|
|
68
66
|
- a cross-domain **fact** / **hard** constraint → **`user_spec`**;
|
|
69
67
|
- a durable per-domain **taste** → the **method**;
|
|
70
68
|
- a **this-job** preference → the **PRD**;
|
|
71
69
|
- an **image** → **`attach-asset`** (per-domain).
|
|
72
70
|
|
|
73
|
-
**Pick the kind.** New learning → **append**; a reaction
|
|
74
|
-
**soft** pref → **amend** (it **supersedes** — **never a stacked bullet
|
|
75
|
-
|
|
71
|
+
**Pick the kind.** New learning → **append**; a reaction contradicting a stored
|
|
72
|
+
**soft** pref → **amend** (it **supersedes** — **never a stacked second bullet**); a
|
|
73
|
+
withdrawal → **retract**.
|
|
76
74
|
|
|
77
75
|
**Re-scope = write-broader-then-retract-narrower.** When a reaction shows a stored
|
|
78
76
|
fact is broader than where it lives, write it to the **broader** target and
|
|
@@ -82,7 +80,7 @@ fact is broader than where it lives, write it to the **broader** target and
|
|
|
82
80
|
|
|
83
81
|
`sil_learn` is the single **target + change** verb owning the whole method/PRD
|
|
84
82
|
lifecycle. `target` selects where the change lands (`user_spec` / `method` /
|
|
85
|
-
`prd`); the **kind** selects the change.
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
`prd`); the **kind** selects the change. **Five kinds:** **create** (mint a whole
|
|
84
|
+
method/PRD), **append**, **amend**, **retract**, **attach-asset** (persist image
|
|
85
|
+
bytes, linked by path). Every capture is reviewable via `sil_profile_get` and
|
|
88
86
|
erasable via `sil_profile_remove` — never silently harvested.
|