wicked-brain 0.17.0 → 0.17.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/package.json
CHANGED
package/server/package.json
CHANGED
|
@@ -134,11 +134,17 @@ from the path you are already taking:
|
|
|
134
134
|
- `llm-vision` — the BINARY path above (content extracted by the model viewing
|
|
135
135
|
the document/image).
|
|
136
136
|
|
|
137
|
-
Use one of the controlled values
|
|
138
|
-
`
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
Use one of the shared controlled values (the same vocabulary across
|
|
138
|
+
`wicked-brain:ingest`, `wicked-brain:memory`, and `wicked-brain:lint`):
|
|
139
|
+
`deterministic-parse`, `llm-vision`, `llm-synthesis`, `session-capture`,
|
|
140
|
+
`manual`, `unknown`. For ingested chunks you will almost always use
|
|
141
|
+
`deterministic-parse` (text) or `llm-vision` (binary); `llm-synthesis` covers
|
|
142
|
+
model-generated/inferred content and `manual` covers hand-authored content.
|
|
143
|
+
`session-capture` applies to memories (see `wicked-brain:memory`), and `unknown`
|
|
144
|
+
is the lint-applied fallback for content written before this field existed. The
|
|
145
|
+
value is plain frontmatter — it is stored and returned verbatim by the server
|
|
146
|
+
with no schema migration. If omitted, downstream lint stamps the chunk as
|
|
147
|
+
`method: unknown`; prefer to set it explicitly.
|
|
142
148
|
|
|
143
149
|
## Tag Expansion
|
|
144
150
|
|
|
@@ -82,15 +82,18 @@ For each wiki article with source_hashes in frontmatter:
|
|
|
82
82
|
### Missing frontmatter
|
|
83
83
|
Check each chunk has required frontmatter fields (source, chunk_id, confidence, indexed_at).
|
|
84
84
|
|
|
85
|
-
Also check the **provenance** field `method` (how the chunk/memory was
|
|
86
|
-
|
|
87
|
-
`
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
Also check the **provenance** field `method` (how the chunk/memory was
|
|
86
|
+
obtained). The shared controlled vocabulary — the same set documented by
|
|
87
|
+
`wicked-brain:ingest` and `wicked-brain:memory` — is: `deterministic-parse`,
|
|
88
|
+
`llm-vision`, `llm-synthesis`, `session-capture`, `manual`, `unknown`. In
|
|
89
|
+
practice `deterministic-parse`/`llm-vision` come from ingested chunks,
|
|
90
|
+
`session-capture` from memories, and `llm-synthesis`/`manual` from either.
|
|
91
|
+
`method` is **optional** — it was added after some content was written, so a
|
|
92
|
+
chunk/memory without it is still valid. When it is missing, auto-fix by
|
|
93
|
+
stamping `method: unknown` and report the fix as `info` severity, type
|
|
94
|
+
`missing_field` (do NOT raise it to a warning/error — that would invalidate
|
|
95
|
+
pre-existing content). Surfacing `method: unknown` lets a reviewer distinguish
|
|
96
|
+
facts with known provenance from those whose origin was never recorded.
|
|
94
97
|
|
|
95
98
|
Lightweight provenance check (the "no source ⇒ assumption" rule): if a chunk has
|
|
96
99
|
no `source`/`source_path` and its `method` is not one of the inferred kinds
|
|
@@ -129,9 +129,17 @@ chunks. Set it from how the memory came to be:
|
|
|
129
129
|
- `manual` — explicitly stated by the user ("we decided X", interview-style).
|
|
130
130
|
- `llm-synthesis` — inferred/derived by the agent rather than directly observed.
|
|
131
131
|
|
|
132
|
+
These three are the values you will use for memories. They are drawn from the
|
|
133
|
+
shared controlled vocabulary used across `wicked-brain:ingest`,
|
|
134
|
+
`wicked-brain:memory`, and `wicked-brain:lint`: `deterministic-parse`,
|
|
135
|
+
`llm-vision`, `llm-synthesis`, `session-capture`, `manual`, `unknown`. The
|
|
136
|
+
remaining values (`deterministic-parse`, `llm-vision`) describe ingested
|
|
137
|
+
chunks rather than memories, and `unknown` is the lint-applied fallback for
|
|
138
|
+
content written before this field existed.
|
|
139
|
+
|
|
132
140
|
Default to `session-capture` when unsure. The value is plain frontmatter,
|
|
133
141
|
stored and returned verbatim by the server (no schema migration). If omitted,
|
|
134
|
-
lint
|
|
142
|
+
lint stamps the memory as `method: unknown` — prefer to set it explicitly.
|
|
135
143
|
|
|
136
144
|
#### Tier definitions
|
|
137
145
|
|