total-recall-brain 3.9.0 → 3.11.0
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/bin/antigravity.mjs +62 -183
- package/package.json +6 -5
- package/scaffold/.agent/skills/total-recall/SKILL.md +1 -0
- package/scaffold/.agent/skills/total-recall/skills/{cli-agents → tr-cli-agents}/SKILL.md +3 -2
- package/scaffold/.agent/skills/total-recall/skills/{research → tr-research}/SKILL.md +2 -1
- package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/SKILL.md +3 -2
- package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/evals/evals.json +3 -3
- package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/hooks/on-skill-add.sh +1 -1
- package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/hooks/on-skill-delete.sh +1 -1
- package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/scripts/create-skill.sh +3 -3
- package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/scripts/find-skills.mjs +25 -1
- package/scaffold/.agent/skills/total-recall/skills/tr-skill/scripts/install-skill.mjs +117 -0
- package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/scripts/scan-skill.mjs +20 -0
- package/scaffold/.agent/skills/total-recall/skills/{ssss → tr-ssss}/SKILL.md +120 -19
- package/scaffold/.agent/skills/total-recall/skills/tr-ssss/references/CHANGELOG.md +124 -0
- package/scaffold/.agent/skills/total-recall/skills/{ssss → tr-ssss}/references/ssss-spec.md +474 -43
- package/src/cli/connect.mjs +6 -59
- package/src/cli/ingest-openwiki.mjs +122 -0
- package/src/cli/ingest.mjs +9 -0
- package/src/cli/init.mjs +42 -2
- package/src/cli/skill-projection.mjs +214 -0
- package/src/cli/skill.mjs +44 -18
- package/src/core/daemon-loop.mjs +13 -2
- package/src/core/operation-validator.mjs +85 -9
- package/src/core/research.mjs +47 -9
- package/src/core/runtime.mjs +14 -7
- package/src/core/schema.mjs +85 -13
- package/src/server/api.mjs +2 -2
- package/src/server/rest.mjs +3 -3
- package/src/server/routes/skills.mjs +25 -4
- package/scaffold/.agent/skills/total-recall/skills/ssss/references/CHANGELOG.md +0 -9
- /package/scaffold/.agent/skills/total-recall/skills/{cli-agents → tr-cli-agents}/agents.yml +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{cli-agents → tr-cli-agents}/evals/.gitkeep +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{cli-agents → tr-cli-agents}/references/antigravity.txt +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{cli-agents → tr-cli-agents}/references/claude.txt +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{cli-agents → tr-cli-agents}/references/codex.txt +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{cli-agents → tr-cli-agents}/references/gemini.txt +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{cli-agents → tr-cli-agents}/scripts/.gitkeep +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{cli-agents → tr-cli-agents}/subagents/.gitkeep +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/assets/skill-template/SKILL.md +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/learnings/.gitkeep +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/references/.gitkeep +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/scripts/.gitkeep +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/scripts/enforce-skill-optimization.mjs +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/scripts/skill-watcher.mjs +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{skill → tr-skill}/subagents/audit-all-skills.md +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{ssss → tr-ssss}/evals/evals.json +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{ssss → tr-ssss}/scripts/validate-schema.mjs +0 -0
- /package/scaffold/.agent/skills/total-recall/skills/{ssss → tr-ssss}/subagents/audit-ssss-node.md +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: ssss
|
|
2
|
+
name: tr-ssss
|
|
3
|
+
provenance: total-recall
|
|
3
4
|
description: "Use this skill to inspect, validate, write, and manage SSSS primitives, memory nodes, operation envelopes, scope overlays, projections, and VFS specifications in the Total Recall reference kernel. MANDATORY: Read this file before editing SSSS files or code."
|
|
4
5
|
---
|
|
5
6
|
|
|
@@ -12,9 +13,18 @@ schema/reference files.
|
|
|
12
13
|
|
|
13
14
|
## Ground Truth
|
|
14
15
|
|
|
15
|
-
The vendor-neutral contract is
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
The vendor-neutral contract is now a published package, **`@ssss/cli`** (pinned to
|
|
17
|
+
**`v0.7.0`**, spec v0.6 draft; source <https://github.com/gregiteen/ssss>), declared in
|
|
18
|
+
`package.json`. `references/ssss-spec.md` is the local mirror. The canon owns the
|
|
19
|
+
spec (§4.2 universal OKF-compatible frontmatter, §5.5 portability, §6 Operation
|
|
20
|
+
Contract incl. `event` and `delete`, §11.8 workflow runtime daemon contract, §16
|
|
21
|
+
the `.ucw` bundle format, §17 provisioning), the core
|
|
22
|
+
registry (`@ssss/cli/registry/core.json`: 14 document + 5 contract primitives),
|
|
23
|
+
the reference engine, runtime helpers, and the v1.4.0 conformance fixtures. Total
|
|
24
|
+
Recall's kernel was the engine the canon's reference implementation was harvested
|
|
25
|
+
from; keep them aligned. If this skill conflicts with the canon, correct this
|
|
26
|
+
skill unless the implementation has intentionally advanced beyond it and the
|
|
27
|
+
difference is documented here.
|
|
18
28
|
|
|
19
29
|
Current local implementation entry points:
|
|
20
30
|
|
|
@@ -27,6 +37,33 @@ Current local implementation entry points:
|
|
|
27
37
|
- `src/core/vector-store.mjs` and `src/core/semantic-index.mjs` — canonical
|
|
28
38
|
search/index path.
|
|
29
39
|
|
|
40
|
+
## Using the `@ssss/cli` CLI
|
|
41
|
+
|
|
42
|
+
`@ssss/cli` ships a `ssss` command (available via `npx`, since it's a dependency).
|
|
43
|
+
It operates on a **vault directory** of Markdown files and `.ucw` bundles, using
|
|
44
|
+
the canon's own reference engine — separate from this kernel's `processOperation`.
|
|
45
|
+
Use it for bundle/tenant tooling and conformance; for in-kernel memory writes keep
|
|
46
|
+
using `writeNodeValidated()` / `processOperation()`. Use `@ssss/cli/runtime` when
|
|
47
|
+
building daemon, cron, webhook, event, file-change, or agent-host wake-up loops.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx ssss help # list doc topics; e.g. `ssss help portability|bundle|provisioning`
|
|
51
|
+
npx ssss <command> --help # flags for any command
|
|
52
|
+
|
|
53
|
+
# Vault → bundle → vault lifecycle (§16/§17)
|
|
54
|
+
npx ssss export <vault-dir> --profile sale --out pack.ucw.json # backup | template | sale
|
|
55
|
+
npx ssss validate pack.ucw.json # schema + portability + content hash
|
|
56
|
+
npx ssss inspect pack.ucw.json --files # manifest, inventory, params, steps
|
|
57
|
+
npx ssss provision pack.ucw.json --param domain=acme.live --out plan.json # pure: params + links → envelopes
|
|
58
|
+
npx ssss import pack.ucw.json --vault ./new-vault --param domain=acme.live # idempotent replay
|
|
59
|
+
|
|
60
|
+
npx ssss conformance --engine # replay the canonical fixtures + round-trip the reference bundle
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
`export` is pure/deterministic and `template`/`sale` drop every `tenant_private`
|
|
64
|
+
file (§5.5). Note: the canon's `.ucw` bundle (§16) is distinct from §7.4's OKF
|
|
65
|
+
memory-vault `importBundle`/`exportBundle` in `repo-expert`.
|
|
66
|
+
|
|
30
67
|
## Current Contract
|
|
31
68
|
|
|
32
69
|
All agent-generated mutations must flow through the SSSS operation pipeline:
|
|
@@ -34,7 +71,7 @@ All agent-generated mutations must flow through the SSSS operation pipeline:
|
|
|
34
71
|
```text
|
|
35
72
|
processOperation(envelope, vaultRoot, options)
|
|
36
73
|
-> envelope validation
|
|
37
|
-
-> idempotency check
|
|
74
|
+
-> idempotency replay/conflict check
|
|
38
75
|
-> authorization
|
|
39
76
|
-> lease validation
|
|
40
77
|
-> deterministic schema validation
|
|
@@ -45,21 +82,66 @@ processOperation(envelope, vaultRoot, options)
|
|
|
45
82
|
Use `writeNodeValidated()` for Total Recall memory writes. Do not call raw
|
|
46
83
|
`writeNode()` or write files directly when an agent is mutating an SSSS vault.
|
|
47
84
|
|
|
48
|
-
Total Recall
|
|
85
|
+
Total Recall implements all four canonical envelope types in
|
|
49
86
|
`processOperation()`:
|
|
50
87
|
|
|
51
88
|
- `operation` — full file create/replace.
|
|
52
89
|
- `patch` — partial frontmatter/body merge.
|
|
53
90
|
- `event` — append-only JSON event payload.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
the CLI/API forget/archive flow.
|
|
91
|
+
- `delete` — remove a replace-type VFS file (SSSS spec §6.2). Refuses to delete
|
|
92
|
+
append-type documents (`conversation`, `run`), and emits an auditable deletion
|
|
93
|
+
event so history is never lost. Idempotent. For *memory* removal, still prefer
|
|
94
|
+
the CLI/API forget/archive flow over a raw `delete` envelope.
|
|
59
95
|
|
|
60
96
|
Use `dry_run: true` for preflight validation when constructing writes from model
|
|
61
97
|
output.
|
|
62
98
|
|
|
99
|
+
## Universal Frontmatter / OKF
|
|
100
|
+
|
|
101
|
+
SSSS v0.7.0 / spec v0.6 is an OKF-compatible Markdown contract. Every SSSS
|
|
102
|
+
document primitive, including skills, memory, workflows, assistants, pages,
|
|
103
|
+
models, migrations, and releases, MUST carry non-empty universal frontmatter:
|
|
104
|
+
|
|
105
|
+
- `type`
|
|
106
|
+
- `title`
|
|
107
|
+
- `description`
|
|
108
|
+
- `timestamp`
|
|
109
|
+
|
|
110
|
+
Recommended OKF-compatible fields are:
|
|
111
|
+
|
|
112
|
+
- `resource`
|
|
113
|
+
- `tags`
|
|
114
|
+
- `aliases`
|
|
115
|
+
|
|
116
|
+
Primitive-specific required fields still apply on top of the universal fields.
|
|
117
|
+
For example, a `workflow` still needs its workflow identity fields, and
|
|
118
|
+
`schema_version: 2` memory nodes still need the knowledge-graph fields below.
|
|
119
|
+
Do not "fix" OKF compatibility by weakening primitive validation; add the
|
|
120
|
+
universal metadata and keep the primitive registry strict.
|
|
121
|
+
|
|
122
|
+
## Security Contract
|
|
123
|
+
|
|
124
|
+
The reference engine now treats path and replay safety as part of the standard:
|
|
125
|
+
|
|
126
|
+
- `workspace_id`, `idempotency_key`, and `actor.role` must be safe identifiers:
|
|
127
|
+
ASCII alphanumeric start, then ASCII letters, digits, `.`, `_`, or `-`, max
|
|
128
|
+
128 characters.
|
|
129
|
+
- Operation paths must be relative vault paths. Reject empty/root paths, `.`,
|
|
130
|
+
`..`, absolute paths, backslashes, null bytes, empty segments, and directory
|
|
131
|
+
targets.
|
|
132
|
+
- `type` is immutable after creation. An operation or patch must not rewrite an
|
|
133
|
+
existing file from one primitive type to another.
|
|
134
|
+
- Append-only primitives may only preserve existing content exactly or append
|
|
135
|
+
after the existing body plus a newline. Prefix tricks are not enough.
|
|
136
|
+
- Idempotency is scoped by `workspace_id + idempotency_key + request_hash`.
|
|
137
|
+
Replaying the same effective request returns the original result; reusing the
|
|
138
|
+
same key/workspace with a different effective request is an idempotency
|
|
139
|
+
conflict and must fail.
|
|
140
|
+
- Leases fail closed. Corrupt or unreadable lease state does not authorize a
|
|
141
|
+
write, and lease storage must not expose the VFS path directly.
|
|
142
|
+
- Bundle import/export must reject unsafe or duplicate file paths, and exporters
|
|
143
|
+
must not follow symlinked vault entries into files outside the vault.
|
|
144
|
+
|
|
63
145
|
## Canonical State
|
|
64
146
|
|
|
65
147
|
The vault is source-of-truth. Derived files, embeddings, search indexes,
|
|
@@ -125,9 +207,6 @@ SSSS schema v2. Required schema v2 knowledge-graph fields are:
|
|
|
125
207
|
|
|
126
208
|
Invariants additionally use `priority: absolute` and `immutable: true`.
|
|
127
209
|
|
|
128
|
-
### OKF Compatibility Note
|
|
129
|
-
SSSS v0.2 is a strict superset of the Open Knowledge Format (OKF v0.1 Draft). SSSS memory nodes are fully OKF-compatible, as they are Markdown files containing a YAML frontmatter block with a `type` field (which maps to SSSS `category` via the OKF adapter). To bridge the format seamlessly, SSSS v0.2 extends `MemoryNodeSchema` with two optional OKF-standard fields: `description` and `resource` (supporting non-HTTP URIs such as `gs://` or `s3://`).
|
|
130
|
-
|
|
131
210
|
Memory validation is owned by `TotalRecallMemoryValidator`, not by generic loose
|
|
132
211
|
frontmatter checks. No memory path may be committed with zero validation.
|
|
133
212
|
|
|
@@ -141,6 +220,13 @@ frontmatter checks. No memory path may be committed with zero validation.
|
|
|
141
220
|
body records but must not rewrite prior records.
|
|
142
221
|
- Events are immutable. Do not update or delete event records.
|
|
143
222
|
- Leases must be time-bound, actor-owned, operation-linked, and recoverable.
|
|
223
|
+
- Workflow daemons, crons, webhook workers, and agent hosts must treat workflow
|
|
224
|
+
frontmatter triggers as canonical and use deterministic runtime planning
|
|
225
|
+
(`@ssss/cli/runtime`) to derive event/task/run envelopes.
|
|
226
|
+
- Bundle exporters/importers must use the canon's path, content hash,
|
|
227
|
+
portability, and provisioning validation. `template` and `sale` profiles must
|
|
228
|
+
drop every `tenant_private` primitive and reduce `resource_bound` values to
|
|
229
|
+
requirement declarations.
|
|
144
230
|
|
|
145
231
|
## Projections And Indexes
|
|
146
232
|
|
|
@@ -157,7 +243,7 @@ spec and tests are updated together.
|
|
|
157
243
|
Validate an individual SSSS Markdown file with:
|
|
158
244
|
|
|
159
245
|
```bash
|
|
160
|
-
node .agent/skills/ssss/scripts/validate-schema.mjs <path-to-node.md>
|
|
246
|
+
node .agent/skills/tr-ssss/scripts/validate-schema.mjs <path-to-node.md>
|
|
161
247
|
```
|
|
162
248
|
|
|
163
249
|
Run focused kernel tests after changing the operation contract, schema registry,
|
|
@@ -168,9 +254,17 @@ npx vitest run \
|
|
|
168
254
|
src/core/schema.spec.mjs \
|
|
169
255
|
src/core/operation-validator.spec.mjs \
|
|
170
256
|
src/core/total-recall-memory-validator.spec.mjs \
|
|
171
|
-
src/core/vault-cache.spec.mjs
|
|
257
|
+
src/core/vault-cache.spec.mjs \
|
|
258
|
+
src/core/ssss-conformance.bridge.spec.mjs
|
|
172
259
|
```
|
|
173
260
|
|
|
261
|
+
The **conformance bridge** (`src/core/ssss-conformance.bridge.spec.mjs`) runs the
|
|
262
|
+
canonical fixtures from `@ssss/cli` through this kernel's `processOperation` and
|
|
263
|
+
asserts every canonical core primitive is present in `SSSS_SCHEMAS`. It proves the
|
|
264
|
+
kernel implements the *same* standard as the SSSS reference engine and host apps.
|
|
265
|
+
If you change the operation contract or the registry, keep this green; to adopt a
|
|
266
|
+
newer standard, bump the `@ssss/cli` pin and re-run it.
|
|
267
|
+
|
|
174
268
|
## Do Not
|
|
175
269
|
|
|
176
270
|
- Do not write agent mutations directly to vault files.
|
|
@@ -179,16 +273,23 @@ npx vitest run \
|
|
|
179
273
|
- Do not collapse `global`/`project` or `system`/`account`/`workspace` scope
|
|
180
274
|
boundaries.
|
|
181
275
|
- Do not represent copied seeded skills as canonical system primitives.
|
|
182
|
-
- Do not
|
|
183
|
-
supports them.
|
|
276
|
+
- Do not delete append-type documents (`conversation`, `run`); they are immutable.
|
|
184
277
|
- Do not add host-specific required fields to the vendor-neutral spec unless they
|
|
185
278
|
are being standardized.
|
|
279
|
+
- Do not claim OKF compliance unless `type`, `title`, `description`, and
|
|
280
|
+
`timestamp` are present and non-empty.
|
|
281
|
+
- Do not replay idempotency keys without comparing `request_hash`.
|
|
282
|
+
- Do not export symlinked vault entries or accept unsafe bundle paths.
|
|
186
283
|
|
|
187
284
|
## References
|
|
188
285
|
|
|
189
286
|
| For | Read |
|
|
190
287
|
| --- | --- |
|
|
191
|
-
|
|
|
288
|
+
| Upstream canon (package) | `@ssss/cli` (`v0.7.0`, spec v0.6 draft, github:gregiteen/ssss) |
|
|
289
|
+
| Canonical core registry | `@ssss/cli/registry/core.json` |
|
|
290
|
+
| Runtime helpers | `@ssss/cli/runtime` |
|
|
291
|
+
| Conformance bridge | `src/core/ssss-conformance.bridge.spec.mjs` |
|
|
292
|
+
| SSSS standard (local mirror) | `references/ssss-spec.md` |
|
|
192
293
|
| Implemented schemas | `src/core/schema.mjs` |
|
|
193
294
|
| Operation pipeline | `src/core/operation-validator.mjs` |
|
|
194
295
|
| Validated memory writes | `src/core/validated-write.mjs` |
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the SSSS (Structured Semantic Syntax System) spec will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.7.0] - 2026-07-02
|
|
9
|
+
### Changed
|
|
10
|
+
- **BREAKING: universal frontmatter enforcement** — every SSSS document primitive
|
|
11
|
+
now requires `type`, `title`, `description`, and `timestamp`. Primitive-specific
|
|
12
|
+
required fields still apply after these universal fields.
|
|
13
|
+
- Registry `spec_version` -> `0.6`; spec header -> v0.6 draft. Reference bundle
|
|
14
|
+
metadata now targets SSSS core `0.6`.
|
|
15
|
+
- The reference engine, bundle validator, skill validator, runtime helpers,
|
|
16
|
+
scaffold output, conformance fixtures, shipped skills, and reference bundle now
|
|
17
|
+
share the universal metadata requirement.
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- OKF compatibility guidance documenting `resource`, `tags`, and `aliases` as
|
|
21
|
+
recommended discovery enrichment fields while keeping the mandatory universal
|
|
22
|
+
metadata minimal and deterministic.
|
|
23
|
+
- Security hardening for the reference engine and CLI:
|
|
24
|
+
- VFS paths now reject absolute, root, dot-segment, empty-segment, backslash,
|
|
25
|
+
and directory targets.
|
|
26
|
+
- `workspace_id`, `idempotency_key`, and role names are constrained to safe
|
|
27
|
+
filesystem identifiers.
|
|
28
|
+
- Idempotency replay is bound to a request hash; same-key/different-payload
|
|
29
|
+
requests now fail as conflicts.
|
|
30
|
+
- Leases fail closed when unreadable and no longer derive filenames directly
|
|
31
|
+
from raw VFS paths.
|
|
32
|
+
- Bundle validation rejects unsafe and duplicate file paths, and export refuses
|
|
33
|
+
symlinked vault entries.
|
|
34
|
+
- Autolink skips symlinked Markdown targets before `--write`.
|
|
35
|
+
- Repo-local skill utility scripts avoid shell-string execution and validate
|
|
36
|
+
write-target names.
|
|
37
|
+
|
|
38
|
+
## [0.6.0] - 2026-07-02
|
|
39
|
+
### Added
|
|
40
|
+
- **Workflow Runtime & Daemon Contract (spec §11.8)** — standardizes workflow
|
|
41
|
+
trigger evaluation across daemon, cron, webhook, file-change, event, condition,
|
|
42
|
+
and manual runtimes. Workflows own `triggers[]`; external schedulers are only
|
|
43
|
+
wake-up mechanisms.
|
|
44
|
+
- **`@ssss/cli/runtime` helpers** — deterministic `planWorkflowTrigger()` and
|
|
45
|
+
`createRunEnvelope()` helpers derive `workflow_triggered` events, task
|
|
46
|
+
documents, and run documents through the Operation Contract.
|
|
47
|
+
- **Runtime conformance metadata/checks** — `conformance/fixtures.json` v1.3.0
|
|
48
|
+
declares trigger/misfire/concurrency vocabularies and proves duplicate daemon
|
|
49
|
+
ticks replay idempotently.
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
- Registry `spec_version` -> `0.5`; spec header -> v0.5 draft. Reference bundle
|
|
53
|
+
metadata now targets SSSS core `0.5`.
|
|
54
|
+
|
|
55
|
+
## [0.5.0] - 2026-06-25
|
|
56
|
+
### Added
|
|
57
|
+
- **`ssss new <dir>` scaffolder** — bootstrap a fresh SSSS-native repo in one command:
|
|
58
|
+
a starter `vault/` of core primitives (incl. a `tenant_private` task to demonstrate
|
|
59
|
+
the sale-drop), a dependency-free conformance test (`node --test`) that replays the
|
|
60
|
+
canonical fixtures through the engine and round-trips the vault as a `sale` bundle,
|
|
61
|
+
plus `package.json` (pinned to the matching `@ssss/cli` tag), `CLAUDE.md`, `README`,
|
|
62
|
+
and `.gitignore`. Flags: `--with-total-recall` (wire the Total Recall memory OS),
|
|
63
|
+
`--install` (npm install + Total Recall init + verify), `--ref`, `--name`, `--force`,
|
|
64
|
+
`--no-git`. All shelling-out uses `execFileSync` with fixed argv (no shell). Docs:
|
|
65
|
+
`ssss help scaffold`.
|
|
66
|
+
|
|
67
|
+
## [0.4.0] - 2026-06-24
|
|
68
|
+
### Added
|
|
69
|
+
- **The `.ucw` bundle format (spec §16, registry `bundle`)** — the canonical transportable
|
|
70
|
+
package of a vault: a manifest plus path-sorted files, content-hashed for integrity. The
|
|
71
|
+
manifest declares `ssss_core_version`, `required_extensions`, `export_profile`,
|
|
72
|
+
`primitive_inventory` (registry-driven, replacing ultrachat's closed `categories` enum),
|
|
73
|
+
`provisioning[]`, `parameters[]`, and `provenance{content_hash, exporter, signature?}`.
|
|
74
|
+
Harvested from ultrachat's `WorkspaceVfsPackageService` and generalized to be portability-
|
|
75
|
+
and registry-driven.
|
|
76
|
+
- **The provisioning contract (spec §17, registry `provisioning`)** — three deterministic,
|
|
77
|
+
idempotent verbs: `export` (pure, profile-filtered), `provision` (params + link-integrity
|
|
78
|
+
+ id-remap → replayable envelope plan), `import` (engine replay, idempotent via
|
|
79
|
+
idempotency_key). Adopts ultrachat's `WorkspaceProvisioningStep.mode`/`system` and
|
|
80
|
+
`WorkspaceGraphEdge.relation` as the canonical binding/dependency vocabularies, plus
|
|
81
|
+
`installMode` composition and structural-only `migration`+`patch` upgrades.
|
|
82
|
+
- **Reference engine for bundles (`src/bundle.mjs`)** — dependency-free `exportBundle`,
|
|
83
|
+
`validateBundle`, `provisionBundle`, `importBundle` over the registry bundle schema.
|
|
84
|
+
- **Reference bundle (`conformance/reference-bundle.ucw.json`, "Festival in a Box")** — a
|
|
85
|
+
real `sale`-profile bundle, built deterministically by `scripts/build-reference-bundle.mjs`.
|
|
86
|
+
Proves the §5.5 keystone: structural + resource_bound files ship, the `tenant_private`
|
|
87
|
+
ticket record is dropped. Round-tripped (validate → provision → import → re-import) by
|
|
88
|
+
`ssss conformance --engine`; 6/6 bundle/provisioning checks pass alongside the 9 fixtures.
|
|
89
|
+
- **`language_convention` documented (spec §11.7)** — the festech-shipped, `structural`
|
|
90
|
+
presentation-overlay primitive, formally placed in the semantic layer.
|
|
91
|
+
- **CLI command surface for the full lifecycle** — `ssss export`, `validate`, `inspect`,
|
|
92
|
+
`provision`, and `import` wire the bundle/provisioning verbs to the command line, plus
|
|
93
|
+
`ssss help [topic]` serving offline docs from `docs/help/` and `ssss version`. Each
|
|
94
|
+
command has its own `--help`. Shared parsing/formatting in `scripts/lib/cli.mjs`.
|
|
95
|
+
- **Open-source packaging** — `README.md`, `LICENSE` (ISC), `.gitignore`, and
|
|
96
|
+
`package.json` metadata (`engines`, `repository`, `files`) so `@ssss/cli` is
|
|
97
|
+
publishable and the runtime-read paths (`VERSION`, `docs/help`) ship in the tarball.
|
|
98
|
+
|
|
99
|
+
### Changed
|
|
100
|
+
- Registry `spec_version` → `0.4`; spec header + §14 → v0.4. Engine exports add `./bundle`.
|
|
101
|
+
|
|
102
|
+
## [0.3.0] - 2026-06-24
|
|
103
|
+
### Added
|
|
104
|
+
- **Portability classification (spec §5.5, registry `portability`)** — every document
|
|
105
|
+
primitive now declares a portability class: `structural` (the sellable business model),
|
|
106
|
+
`tenant_private` (the operator's private data, never sold), or `resource_bound` (needs a
|
|
107
|
+
real resource bound at provision). Export profiles `backup | template | sale` are filters
|
|
108
|
+
over these classes; `template`/`sale` exports MUST drop all `tenant_private` primitives.
|
|
109
|
+
Files MAY override their type default with `x_portability`. Lifted and generalized from
|
|
110
|
+
ultrachat's ad-hoc export filter in `WorkspaceVfsPackageService`.
|
|
111
|
+
- **`delete` envelope (spec §6.2)** — promoted from festech's `SsssOperationService` into
|
|
112
|
+
the canonical Operation Contract as the fourth envelope type. Removes a replace-type file,
|
|
113
|
+
rejects append-type targets, and emits a deletion event for audit. Idempotent.
|
|
114
|
+
- **Reference engine (`src/engine.mjs`, `src/registry.mjs`, `src/frontmatter.mjs`)** — the
|
|
115
|
+
canonical, dependency-free `@ssss/cli` Operation Contract engine. Harvested from total-recall
|
|
116
|
+
(§6.3 pipeline, idempotency replay from the audit log, `buildRepair`/§9 repair blocks) and
|
|
117
|
+
festech (`delete` envelope, `resolveContainedPath` path-traversal guard, registry-driven
|
|
118
|
+
content validation). Validates content against `registry/core.json` + `registry/extensions/*`
|
|
119
|
+
with no per-type code and no Zod/YAML dependency. Runs all 9 conformance fixtures in-process
|
|
120
|
+
via `ssss conformance --engine` (now wired into `npm test`).
|
|
121
|
+
|
|
122
|
+
### Changed
|
|
123
|
+
- Registry now defines **5 contract primitives** (added `delete`); `spec_version` → `0.3`.
|
|
124
|
+
- §5.1 Document Primitives table gains a **Portability** column.
|