sil-openclaw 0.3.9 → 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 +124 -0
- package/dist/lib/profile-store.js +578 -581
- package/dist/lib/sil-client.js +282 -33
- package/dist/tools/catalog.js +475 -7
- package/dist/tools/profile.js +229 -371
- package/openclaw.plugin.json +6 -4
- package/package.json +1 -1
- package/scripts/create-shopper.mjs +71 -40
- package/sil-shopping/SKILL.md +65 -89
- package/sil-shopping/examples/multi_domain_shopper_walkthrough.md +34 -103
- package/sil-shopping/references/agent_creation_engine.md +177 -118
- package/sil-shopping/references/fill_and_feedback.md +86 -0
- package/sil-shopping/references/method_and_prds.md +111 -0
- package/sil-shopping/references/setup_onboarding.md +48 -52
- package/sil-shopping/references/shop_loop.md +109 -160
- package/sil-shopping/references/brainstorm_interview.md +0 -97
- package/sil-shopping/references/catalog_tools_reference.md +0 -44
- package/sil-shopping/references/manage_domains.md +0 -77
- package/sil-shopping/references/refine_shopper.md +0 -97
- package/sil-shopping/references/search_param_mapping.md +0 -79
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,130 @@ release (`clawhub package publish --changelog`). See [README](./README.md#releas
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.4.1] - 2026-07-14
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **First shop now reliably mints its domain.** A buy-intent in an unlearned niche
|
|
18
|
+
used to stall silently — the model classified the miss, found nothing to reuse,
|
|
19
|
+
and, with no next move in hand, answered off the open web instead of minting the
|
|
20
|
+
domain and shopping the sil catalog. The mint trigger is now **structural**:
|
|
21
|
+
`sil_profile_search` returns `next_step: "mint_domain"` (plus `guidance`) whenever
|
|
22
|
+
no learned domain matches (an empty store OR a filtered miss on a populated one),
|
|
23
|
+
so the MISS itself points at the mint — the same way the catalog tools carry
|
|
24
|
+
`recovery`. The always-on `SKILL.md` contract now states the rule up front
|
|
25
|
+
(mint-first-on-buy-intent; the picks are always sil catalog products, never
|
|
26
|
+
open-web results — the web only researches the method), instead of burying it two
|
|
27
|
+
lazy reference-hops deep.
|
|
28
|
+
- **Onboarding read the wrong tool for shopper state.** `setup_onboarding.md` steered
|
|
29
|
+
the model to a no-arg `sil_profile_get` overview, but `sil_profile_get` *requires* a
|
|
30
|
+
`domainSlug` — the coordinates-only overview tool is `sil_profile_search`. All stage
|
|
31
|
+
reads now use `sil_whoami` + `sil_profile_search`.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- **The shopper's soul carries the sil creed.** Every new shopper's `SOUL.md` gets a
|
|
36
|
+
"The sil way" block appended after its persona — a creed, not a rulebook: the mantra
|
|
37
|
+
(*explore first*), the loop in three lines (learn the domain → know the person → find
|
|
38
|
+
the thing), and the one distinction that matters — **the sil catalog is where you buy;
|
|
39
|
+
the open web is where you learn**. The method lives in the skill; the philosophy lives
|
|
40
|
+
in the soul, where the model weights identity.
|
|
41
|
+
- **The skill bundle is leaner.** The whole `sil-shopping/` bundle (router + references +
|
|
42
|
+
example) was cut to its load-bearing contract — narration, hedging, and cross-section
|
|
43
|
+
restatement removed. The 1341-line `skill-content.test.ts`, which pinned prose clauses
|
|
44
|
+
as spec (and stayed green while the mint bug was live), is deleted and replaced by a
|
|
45
|
+
lean behavioral guard that pins the contract: frontmatter + name-agreement, the
|
|
46
|
+
registered tool set appearing in the bundle, cross-link integrity, no dead tokens, and
|
|
47
|
+
the mint-first / catalog-of-record rule.
|
|
48
|
+
- **The shopper is denied the shell + file-write escape hatches.** `create-shopper.mjs`
|
|
49
|
+
now sets `agents.list[<idx>].tools.deny = ["exec","write","edit","apply_patch"]` (a
|
|
50
|
+
per-agent deny, never a global host change) so a new shopper can no longer run a shell
|
|
51
|
+
(`exec` — which it wasted re-reading its own skill files) or mutate host files
|
|
52
|
+
(`write`/`edit`/`apply_patch` — which it used to persist shopping memory into the host
|
|
53
|
+
workspace instead of the sil store). `deny` is used deliberately over a `tools.profile`
|
|
54
|
+
override: per OpenClaw's tool-precedence model a deny only *further-restricts* and
|
|
55
|
+
cannot strip the sil grant, whereas a profile swap replaces the agent's base tool set
|
|
56
|
+
and would risk removing the sil tools entirely. The sil tools and web (for domain
|
|
57
|
+
research) are kept.
|
|
58
|
+
- **Minting is where the shopper explores; the catalog is where it buys.**
|
|
59
|
+
`method_and_prds.md`'s MINT step now encourages web research **freely and often** to
|
|
60
|
+
learn how a niche is really bought (its load-bearing attributes, failure modes, what
|
|
61
|
+
separates a good buy from a bad one) — that exploration is the point of a first shop.
|
|
62
|
+
The one boundary: the shopper researches the **domain** on the web, never the
|
|
63
|
+
**products** — recommended products always come from `sil_search`, and if the catalog's
|
|
64
|
+
results aren't satisfactory that is the answer, not an open-web fallback.
|
|
65
|
+
- **Consolidated the reference set.** Deleted `references/catalog_tools_reference.md` and
|
|
66
|
+
`references/search_param_mapping.md` — the per-tool behaviour, status taxonomy, and
|
|
67
|
+
search params they restated already live in the tool definitions. Merged
|
|
68
|
+
`references/brainstorm_interview.md` into `references/agent_creation_engine.md` so the
|
|
69
|
+
onboarding interview and the creation engine are one endorsement-gated "create the
|
|
70
|
+
shopper" doc.
|
|
71
|
+
- **Leaner tool descriptions.** The five `sil_profile_*` / `sil_learn` verbs and
|
|
72
|
+
`sil_specs` had their descriptions cut to their load-bearing core (the store rules
|
|
73
|
+
they restated are already enforced by the code and named by the per-field schema),
|
|
74
|
+
reducing the per-turn token cost. `sil_profile_search` now advertises its
|
|
75
|
+
`next_step: mint_domain` cue.
|
|
76
|
+
|
|
77
|
+
## [0.4.0] - 2026-07-13
|
|
78
|
+
|
|
79
|
+
### Changed
|
|
80
|
+
|
|
81
|
+
- **Spec-Driven Shopping rebuilt around a frontmatter-as-truth store and a
|
|
82
|
+
six-beat loop (Phase 1).** The shopper's behaviour store is recast: the
|
|
83
|
+
`profile.json` manifest and the `domain_spec`/`intent_spec`/`playbook` triple
|
|
84
|
+
are **deleted** (no backwards compatibility — old flat packs read `unreadable`),
|
|
85
|
+
replaced by a filesystem-scanned layout `shopper/{user_spec.md,
|
|
86
|
+
domains/<slug>/{method.md, prds/<product>-<intent>.md, assets/}}` where each
|
|
87
|
+
file's own frontmatter IS the source of truth. Discovery is a scan, not an index
|
|
88
|
+
read; a file with malformed frontmatter is skipped and surfaced as `unreadable`,
|
|
89
|
+
never half-read. `sil_profile_materialize` is now **setup-only** (it writes the
|
|
90
|
+
shared `user_spec.md`, its frontmatter carrying the shopper name, and mints no
|
|
91
|
+
domain); `sil_profile_get` / `sil_profile_remove` take `domainSlug` + optional
|
|
92
|
+
`prd` selectors (read one body / remove a whole domain or one PRD). The bundled
|
|
93
|
+
`sil-shopping` skill is rewritten as the **six-beat** loop — classify → method →
|
|
94
|
+
fill → search-space → reflect → feedback — across new `references/shop_loop.md`,
|
|
95
|
+
`method_and_prds.md`, and `fill_and_feedback.md` (the `manage_domains.md` /
|
|
96
|
+
`refine_shopper.md` references are retired).
|
|
97
|
+
- **`sil_search` forwards an open-vocabulary `specs` predicate list and returns
|
|
98
|
+
observable `specs_status` (Phase 2, #55).** Pure transport, no client-side
|
|
99
|
+
matching: the plugin passes typed predicates (`{ ns, key, op, value, unit?,
|
|
100
|
+
hard? }`) under one namespaced `filters.specs` key and surfaces the backend's
|
|
101
|
+
per-predicate `specs_status` (`{ ns, key, applied }[]`, a sibling of `products`)
|
|
102
|
+
for Beat 5's hard-constraint honesty pass. An unindexed key **fails green**
|
|
103
|
+
(`applied: false`) — never dropped, never a fabricated `applied: true` — and
|
|
104
|
+
converges as the spec registry populates.
|
|
105
|
+
|
|
106
|
+
### Added
|
|
107
|
+
|
|
108
|
+
- **`sil_learn` — one `target + change` write verb (5 kinds).** Replaces
|
|
109
|
+
`sil_remember`: `create` mints a whole method/PRD; `append` / `amend` / `retract`
|
|
110
|
+
refine a section-aware markdown body in place (single-occurrence match,
|
|
111
|
+
fail-closed); `attach-asset` persists image bytes into the domain's `assets/`
|
|
112
|
+
(owner-only, content-hashed) and links them by relative path. Targets
|
|
113
|
+
`user_spec` / `method` / `prd`; `hard` marks an inviolable constraint on
|
|
114
|
+
`user_spec`/`prd` appends.
|
|
115
|
+
- **`sil_profile_search` — the frontmatter-as-truth discovery tool.** Queries
|
|
116
|
+
artefact frontmatter and returns coordinates only (domains + PRDs, no bodies) —
|
|
117
|
+
the reuse-before-mint primitive that replaces the deleted manifest's index role;
|
|
118
|
+
malformed artefacts surface in an observable `unreadable[]`, never silently
|
|
119
|
+
dropped. Tool floor 8 → 9.
|
|
120
|
+
- **`sil_specs` — the spec-registry canonicalize-or-create tool (Phase 3, #57).**
|
|
121
|
+
The shopping method's Beat-2 mint submits the coined spec DEFINITIONS it invents
|
|
122
|
+
for a niche (`{ namespace, key, display_name, data_type, unit?, allowed_values?,
|
|
123
|
+
description? }`); each resolves 1:1 to a canonical name — **matched** an existing
|
|
124
|
+
spec (adopt its `canonical` `{ namespace, key }`, drop the coined synonym) or
|
|
125
|
+
**created** as new (yours is canonical going forward) — so the `filters.specs`
|
|
126
|
+
vocabulary converges across methods. Shares `sil_search`'s taxonomy (401
|
|
127
|
+
refresh-and-retry-once, `not_registered` / `forbidden` / `invalid_request` /
|
|
128
|
+
`retryable`) and degrades gracefully: a non-`ok` verdict never blocks the mint,
|
|
129
|
+
which proceeds with the raw coined names. Tool floor 9 → 10.
|
|
130
|
+
|
|
131
|
+
### Removed
|
|
132
|
+
|
|
133
|
+
- **`sil_remember`** (renamed to `sil_learn` — no alias) and the `profile.json`
|
|
134
|
+
manifest machinery. The two operator bins now read the singleton from the
|
|
135
|
+
`user_spec.md` frontmatter, not the manifest.
|
|
136
|
+
|
|
13
137
|
## [0.3.9] - 2026-07-10
|
|
14
138
|
|
|
15
139
|
### Added
|