unoverse 0.1.204 → 0.1.206

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.
Files changed (37) hide show
  1. package/lib/lint.mjs +15 -1
  2. package/operator/ansible/playbooks/install.yml +1 -1
  3. package/operator/docker-compose.yml +32 -4
  4. package/operator/infra/digitalocean/main.tf +2 -6
  5. package/operator/lib/check.sh +2 -2
  6. package/operator/lib/db-verify.sh +22 -4
  7. package/package.json +1 -1
  8. package/vendor/base/items/collect.js +30 -26
  9. package/vendor/base/items/publish.js +30 -6
  10. package/vendor/base/lint/context.mjs +17 -0
  11. package/vendor/base/lint/design/file.mjs +199 -2
  12. package/vendor/base/lint/design/index.mjs +66 -73
  13. package/vendor/base/lint/design/vocabulary.mjs +5 -2
  14. package/vendor/base/lint/design/walk.mjs +14 -4
  15. package/vendor/base/lint/nodes/_schema/_defs.schema.json +1 -1
  16. package/vendor/base/lint/nodes/_schema/api.schema.json +60 -1
  17. package/vendor/base/lint/nodes/_schema/audio.schema.json +27 -4
  18. package/vendor/base/lint/nodes/_schema/config.schema.json +3 -2
  19. package/vendor/base/lint/nodes/_schema/credential.schema.json +88 -4
  20. package/vendor/base/lint/nodes/_schema/interface.schema.json +57 -0
  21. package/vendor/base/lint/nodes/_schema/node.schema.json +59 -12
  22. package/vendor/base/lint/nodes/_schema/package.schema.json +4 -0
  23. package/vendor/base/lint/nodes/blocks.mjs +6 -2
  24. package/vendor/base/lint/nodes/index.mjs +5 -0
  25. package/vendor/base/lint/nodes/node.mjs +157 -7
  26. package/vendor/base/lint/objects/_schema/objects/dataset.schema.json +84 -0
  27. package/vendor/base/lint/objects/_schema/objects/make.schema.json +95 -0
  28. package/vendor/base/lint/objects/_schema/objects/object.schema.json +266 -0
  29. package/vendor/base/lint/objects/_schema/objects/props.schema.json +243 -0
  30. package/vendor/base/lint/objects/_schema/objects/service.schema.json +109 -0
  31. package/vendor/base/lint/objects/_schema/objects/test.schema.json +76 -0
  32. package/vendor/base/lint/objects/_schema/pipelines/config.schema.json +6 -0
  33. package/vendor/base/lint/objects/_schema/pipelines/interface.schema.json +6 -0
  34. package/vendor/base/lint/objects/_schema/pipelines/pipeline.schema.json +161 -0
  35. package/vendor/base/lint/objects/_schema/pipelines/test.schema.json +42 -0
  36. package/vendor/base/lint/objects/index.mjs +324 -0
  37. package/vendor/base/lint/objects/rules.mjs +446 -0
package/lib/lint.mjs CHANGED
@@ -9,6 +9,8 @@
9
9
  * It exists because the gate used to be reachable only by deploying (2026-09-05): the
10
10
  * first place a developer met a lint error was halfway through shipping.
11
11
  */
12
+ import { existsSync } from "node:fs";
13
+ import { join } from "node:path";
12
14
  import { findWorkspace, designHome } from "./workspace.mjs";
13
15
 
14
16
  const c = { dim: "\x1b[2m", red: "\x1b[31m", green: "\x1b[32m", yellow: "\x1b[33m", bold: "\x1b[1m", off: "\x1b[0m" };
@@ -50,10 +52,22 @@ export async function lint(args, importBase) {
50
52
  console.error(`\n ${c.red}✗${c.off} ${designRoot} holds no projects\n`);
51
53
  process.exit(1);
52
54
  }
55
+ /**
56
+ * THE MARKETPLACE TIER IS LINTABLE (2026-09-18). It is not a project (`listProjects`
57
+ * excludes it, rightly: a publish of "marketplace" is the platform owner's release, not
58
+ * a deploy), but it holds skills, blocks, objects and nodes that the same rules apply
59
+ * to, and until now the universal tier was the one place with no gate at all.
60
+ */
61
+ const marketplaceHere = existsSync(join(designRoot, "marketplace"));
53
62
  let project = positional;
63
+ if (project === "marketplace" && marketplaceHere) {
64
+ console.log(`\n ${c.bold}lint marketplace${c.off}\n`);
65
+ const { errors } = await lintProject({ lintForPublish, designRoot, project });
66
+ process.exit(errors.length ? 1 : 0);
67
+ }
54
68
  if (!project) {
55
69
  if (projects.length > 1) {
56
- console.error(`\n several projects here. Say which:\n\n unoverse lint <project>\n\n Found: ${projects.join(", ")}\n`);
70
+ console.error(`\n several projects here. Say which:\n\n unoverse lint <project>\n\n Found: ${projects.join(", ")}${marketplaceHere ? ", marketplace" : ""}\n`);
57
71
  process.exit(1);
58
72
  }
59
73
  project = projects[0];
@@ -21,7 +21,7 @@
21
21
 
22
22
  vars:
23
23
  gravity_dir: /opt/gravity
24
- core_services: "unoverse memory canvas umap" # server + workflow + mcp-server retired — unoverse serves :4101 (engine in-process), the public :4105 API, and native MCP (:4105/mcp, :4106/mcp internal)
24
+ core_services: "unoverse memory canvas umap documents" # server + workflow + mcp-server retired — unoverse serves :4101 (engine in-process), the public :4105 API, and native MCP (:4105/mcp, :4106/mcp internal)
25
25
 
26
26
  pre_tasks:
27
27
  - name: "[1/10] Check current system"
@@ -7,7 +7,6 @@
7
7
  # canvas, umap, memory. Code protected, pulled as images.
8
8
  #
9
9
  # LAYER 2: PLATFORM-DEV MOUNTS (monorepo only — sync-starter strips them)
10
- # - apps/unoverse/nodes — node manifests
11
10
  # - apps/unoverse/design — design (components, templates, styles)
12
11
  # - apps/unoverse/prompts — behavior (skills + blocks)
13
12
  # In a STARTER/customer universe these folders do not exist: authoring is
@@ -164,6 +163,30 @@ services:
164
163
  logging: *default-logging
165
164
  restart: unless-stopped
166
165
 
166
+ # Document service - Python, reads a file into its structure (text, tables as rows,
167
+ # figures, lists, dates, provenance). docs/unoverse/data/documents/README.md.
168
+ #
169
+ # REACHED AS http://documents:5002 OVER THE DOCKER NETWORK BY THE MARKETPLACE NODES that
170
+ # name it (ParseDocument, RenderDocument, InventoryFolder), through the host on their
171
+ # credential; the engine never learns a URL for it. NOT PUBLISHED, no `ports:` block, for
172
+ # the same reason umap has none (above). Same auth rules: refuses to boot enabled without
173
+ # OIDC, or disabled in production.
174
+ #
175
+ # Parsing is CPU-bound and a worker holds the layout models: DOCUMENTS_WORKERS is the one
176
+ # knob, two by default. The models are baked into the image (no egress, instant boot); the
177
+ # parse cache is a volume so an unchanged file in a re-read pack is a lookup.
178
+ documents:
179
+ image: registry.digitalocean.com/gravity-repo/documents:latest
180
+ environment:
181
+ - AUTH_ENABLED=${AUTH_ENABLED:-true}
182
+ - AUTH_ISSUER=${AUTH_ISSUER}
183
+ - AUTH_AUDIENCE=${AUTH_AUDIENCE}
184
+ - DOCUMENTS_WORKERS=${DOCUMENTS_WORKERS:-2}
185
+ volumes:
186
+ - documents_cache:/app/cache
187
+ logging: *default-logging
188
+ restart: unless-stopped
189
+
167
190
  # Unoverse - node plane (author·distribute·execute): the relocated node runtime +
168
191
  # workbench + MCP. TWO listeners:
169
192
  # :4105 = PUBLIC (MCP + workbench), JWT-gated — published below.
@@ -259,6 +282,10 @@ services:
259
282
  - CREDENTIAL_ENCRYPTION_KEY=${CREDENTIAL_ENCRYPTION_KEY:-}
260
283
  - REDIS_NAMESPACE=${REDIS_NAMESPACE:-}
261
284
  - UMAP_SERVICE_URL=http://umap:5001
285
+ # The document service, reached the same way: the engine proxies the marketplace's
286
+ # document nodes to it (routes/documents.ts), because a node call must be https or
287
+ # loopback and this service is neither.
288
+ - DOCUMENTS_SERVICE_URL=http://documents:5002
262
289
  # Agent nodes POST conversation turns to the memory server (ingestConversationTurn).
263
290
  # Without this the code falls back to http://localhost:4104 — nothing inside THIS
264
291
  # container — so every ingest silently fails (fire-and-forget) and memory never
@@ -270,7 +297,7 @@ services:
270
297
  - PLUGINS_DIR=/app/plugins
271
298
  # Dev-editable folders are mounted over the image below; NODE_PATH resolves
272
299
  # their hoisted deps from the local workspace node_modules. The plugins dir is
273
- # also on NODE_PATH so locally-built component nodes (apps/unoverse/nodes/*, which
300
+ # also on NODE_PATH so locally-built component nodes (design/marketplace/nodes/*, which
274
301
  # live OUTSIDE /app/plugins) can resolve @unoverse-platform/plugin-base — the only
275
302
  # copy carrying a built dist. Without this the runtime hits MODULE_NOT_FOUND and
276
303
  # the nodes show "Package not installed".
@@ -281,10 +308,10 @@ services:
281
308
  # a `unoverse_base:/app/base` volume here between 2026-08-30 and 2026-09-03, holding a
282
309
  # base the entrypoint installed from npm at startup. Both are gone: base is compiled in
283
310
  # from the workspace, so the image and its runtime cannot disagree.
284
- # ── Platform-dev mounts (monorepo only; sync-starter strips these three
311
+ # ── Platform-dev mounts (monorepo only; sync-starter strips these two
285
312
  # lines from the starter's copy — a customer universe serves what the DB
286
313
  # says). Local edits are picked up on restart; design/prompts are data, no build.
287
- - ./apps/unoverse/design:/app/apps/unoverse/design # design (components, templates, styles)
314
+ - ./apps/unoverse/design:/app/apps/unoverse/design # every authored kind: components, templates, styles, skills, blocks, nodes
288
315
  - ./node_modules:/app/host_node_modules # Hoisted deps for locally-built nodes
289
316
  healthcheck:
290
317
  # Ready = internal runtime port up (nodes are loaded into memory BEFORE it binds).
@@ -398,4 +425,5 @@ services:
398
425
 
399
426
  volumes:
400
427
  umap_models:
428
+ documents_cache: # parsed replies by content hash plus parser version
401
429
  unoverse_plugins: # Marketplace-installed node packages (persisted across restarts)
@@ -56,12 +56,8 @@ locals {
56
56
 
57
57
  # Postgres modes (variables.tf): external URL > existing DO cluster > provision.
58
58
  #
59
- # `nonsensitive` on the TEST, never on the URL. `byo_postgres_url` is sensitive, and a
60
- # mark rides every value derived from it, so `pg_external` and the `provision_pg` below
61
- # were sensitive booleans. That reached `monthly_estimate` in prices.tf, and Terraform
62
- # refuses a root output carrying a mark: the DO ground could not plan at all, whether or
63
- # not a URL was set. WHETHER a database was brought is not the secret; the URL is, and it
64
- # stays marked everywhere it is actually used.
59
+ # `nonsensitive` on the TEST, never on the URL: WHETHER a database was brought is not a
60
+ # secret, and Terraform refuses an output derived from one (prices.tf `monthly_estimate`).
65
61
  pg_external = nonsensitive(var.byo_postgres_url != "")
66
62
  pg_adopt = !local.pg_external && var.existing_pg_cluster_name != ""
67
63
  provision_pg = !local.pg_external && !local.pg_adopt
@@ -60,7 +60,7 @@ cmd_check() {
60
60
  local pass=0 total=0
61
61
 
62
62
  # 1. Services
63
- for svc in unoverse canvas umap memory; do
63
+ for svc in unoverse canvas umap documents memory; do
64
64
  total=$((total + 1))
65
65
  local status
66
66
  status=$(docker compose -f "$ROOT/docker-compose.yml" ps --format '{{.Status}}' "$svc" 2>/dev/null | head -1)
@@ -95,7 +95,7 @@ cmd_check() {
95
95
  fi
96
96
 
97
97
  # 2. Health endpoints
98
- for endpoint in 4105:unoverse 4101:engine 5001:umap 4104:memory; do
98
+ for endpoint in 4105:unoverse 4101:engine 5001:umap 5002:documents 4104:memory; do
99
99
  local port="${endpoint%%:*}" name="${endpoint##*:}"
100
100
  total=$((total + 1))
101
101
  local code
@@ -41,7 +41,8 @@ cmd_db_verify() {
41
41
  workflow_executions: [
42
42
  "execution_id", "workflow_id", "status", "start_time", "end_time",
43
43
  "duration", "error", "result", "created_at", "was_from_cache", "source",
44
- "user_id"
44
+ "user_id", "task_ref", "state_ciphertext", "wake", "wake_at",
45
+ "expires_at", "snapshot_id"
45
46
  ],
46
47
  node_traces: [
47
48
  "trace_id", "execution_id", "node_id", "node_type", "start_time",
@@ -66,7 +67,7 @@ cmd_db_verify() {
66
67
  "metadata", "created_at", "updated_at", "embedding_original"
67
68
  ],
68
69
  memories: [
69
- "id", "user_id", "workflow_id", "memory_id", "content",
70
+ "id", "user_id", "org", "workflow_id", "memory_id", "content",
70
71
  "source_conversation_id", "created_at", "updated_at", "type",
71
72
  "domain", "certainty", "reinforcement_count", "last_reinforced",
72
73
  "supports", "contradicts", "supersedes"
@@ -90,7 +91,7 @@ cmd_db_verify() {
90
91
  ],
91
92
  dictionary_need_states: [
92
93
  "universal_id", "content_hash", "title", "description", "object_type",
93
- "needs", "source_url", "source_id", "umap_x", "umap_y", "umap_z",
94
+ "related_needs", "source_url", "source_id", "umap_x", "umap_y", "umap_z",
94
95
  "umap_cluster_id", "color_hex", "needs_umap_update", "created_at",
95
96
  "updated_at", "workflow_id", "key_need", "metadata", "embedding_original",
96
97
  "cluster_distance", "org"
@@ -120,6 +121,16 @@ cmd_db_verify() {
120
121
  "chunk_id", "need_id", "similarity_score", "rank", "match_type",
121
122
  "created_at", "workflow_id", "org"
122
123
  ],
124
+ dictionary_links: [
125
+ "from_id", "to_id", "name", "type", "org", "provenance", "created_at"
126
+ ],
127
+ dictionary_faces: [
128
+ "parent_id", "part_id", "kind", "org", "embedding", "face_hash", "updated_at"
129
+ ],
130
+ dictionary_pieces: [
131
+ "parent_id", "part_id", "part_no", "kind", "org", "title", "page_from", "page_to",
132
+ "text", "content_hash", "split_version", "words", "updated_at"
133
+ ],
123
134
  dictionary_ingestion_configs: [
124
135
  "id", "name", "description", "connector_type", "connector_config",
125
136
  "main_category", "workflow_id", "created_at", "updated_at",
@@ -130,6 +141,12 @@ cmd_db_verify() {
130
141
  "config", "extraction_config", "started_at", "completed_at",
131
142
  "progress", "error", "created_at", "org"
132
143
  ],
144
+ dictionary_ingestion_inbox: [
145
+ "id", "org", "source", "source_url", "source_id", "job_id", "suggested", "yields",
146
+ "content", "content_hash", "provenance", "priority", "state", "claimed_at", "claimed_by",
147
+ "attempts", "error", "result", "progress", "created_at", "updated_at",
148
+ "item_key", "read_hash", "read_with", "runs"
149
+ ],
133
150
  goals: [
134
151
  "goal_id", "user_id", "workflow_id", "status", "description",
135
152
  "acceptance_criteria", "budget", "goal_state", "created_workflow_ids",
@@ -142,7 +159,8 @@ cmd_db_verify() {
142
159
  "goal_id", "agent_id", "agent_name", "state", "updated_at"
143
160
  ],
144
161
  orgs: [
145
- "slug", "name", "settings", "website", "logo", "created_at", "updated_at"
162
+ "slug", "name", "settings", "website", "logo", "memory_config",
163
+ "created_at", "updated_at"
146
164
  ],
147
165
  knowledge_docs: [
148
166
  "id", "workflow_id", "title", "doc_type", "sections", "version",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unoverse",
3
- "version": "0.1.204",
3
+ "version": "0.1.206",
4
4
  "description": "The Unoverse front door — create a Studio project, a universe, or a client app, and launch Studio.",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "type": "module",
@@ -35,13 +35,9 @@ function designSystemDir(designRoot) {
35
35
  const onDisk = join(designRoot, "marketplace");
36
36
  if (existsSync(onDisk))
37
37
  return onDisk;
38
- const nodesHome = join(designRoot, "..", "nodes");
39
- for (const c of [
40
- join(nodesHome, "marketplace", "definitions"),
41
- join(designRoot, "..", "plugins", "node_modules", "@unoverse-platform", "marketplace", "definitions"),
42
- ])
43
- if (existsSync(c))
44
- return c;
38
+ const bundled = join(designRoot, "..", "plugins", "node_modules", "@unoverse-platform", "marketplace", "definitions");
39
+ if (existsSync(bundled))
40
+ return bundled;
45
41
  return onDisk; // nothing found: the version will hash to an empty set, which is honest
46
42
  }
47
43
  /** Every project a developer could publish, by name. */
@@ -98,7 +94,11 @@ export function collectProject(designRoot, project) {
98
94
  // Apps keep their bare ids: those are org-qualified by convention
99
95
  // (`<org>-chat`). docs/unoverse/UNOVERSE_COMPONENT_ORGS.md.
100
96
  // `identity` (2026-09-05): the org's four documents, `<org>/brand` like a component.
101
- const QUALIFIED_KINDS = new Set(["component", "skill", "template", "identity"]);
97
+ // `agent` (2026-09-06): a workflow listed for the map, design/<org>/agents/<name>.yaml, `<org>/<name>`.
98
+ // `object` and `pipeline` (2026-09-09): an org's own kinds beside the marketplace masters
99
+ // (docs/unoverse/data/objects/README.md 4e, docs/unoverse/data/pipelines/README.md layer 1), `<org>/<name>` like a
100
+ // component, since two orgs may each write a `deal`.
101
+ const QUALIFIED_KINDS = new Set(["component", "skill", "template", "identity", "agent", "object", "pipeline"]);
102
102
  const add = (kind, name, definition) => items.push({
103
103
  kind,
104
104
  name: QUALIFIED_KINDS.has(kind) ? `${project}/${name}` : name,
@@ -125,7 +125,13 @@ export function collectProject(designRoot, project) {
125
125
  // IDENTITY (owner ruling 2026-09-05): design/<org>/identity/<doc>/ publishes as kind
126
126
  // `identity`, the same walk as a component folder, so it reaches the registry, the
127
127
  // spatial catalogue and the map through the one publish path everything else takes.
128
- for (const [dir, kind] of [["components", "component"], ["apps", "app"], ["templates", "template"], ["atoms", "atom"], ["identity", "identity"]]) {
128
+ // AGENT (owner ruling 2026-09-06): design/<org>/agents/<name>.yaml, a single file like an atom,
129
+ // publishes as kind `agent` so it reaches the registry, the catalogue and the map.
130
+ // OBJECT and PIPELINE (owner ruling 2026-09-09): design/<org>/objects/<name>/ and
131
+ // design/<org>/pipelines/<name>/, folders like a component, publish as their own kinds so
132
+ // an org's custom object and its own source reach the engine that positions its rows and
133
+ // the inbox that collects for it. The marketplace's own go through designSystemItems().
134
+ for (const [dir, kind] of [["components", "component"], ["apps", "app"], ["templates", "template"], ["atoms", "atom"], ["identity", "identity"], ["agents", "agent"], ["objects", "object"], ["pipelines", "pipeline"]]) {
129
135
  const home = join(root, dir);
130
136
  if (!existsSync(home))
131
137
  continue;
@@ -195,22 +201,20 @@ export function collectProject(designRoot, project) {
195
201
  };
196
202
  walk(blocksHome);
197
203
  }
198
- // nodes/ — THE WORKSPACE'S NODE PACKAGES, one row per node, shaped exactly as the
199
- // marketplace stores a node (core/items/catalogue.ts) so the row source composes them
200
- // on the same path as disk: the raw files, plus the package envelope their $refs and
201
- // credential shapes resolve against. The name is the node's `type`, bare: a saved
202
- // workflow stores that identity and nothing else.
204
+ // nodes/ — THE PROJECT'S NODE PACKAGES, design/<org>/nodes/<package>/, one row per
205
+ // node, shaped exactly as the marketplace stores a node (core/items/catalogue.ts) so
206
+ // the row source composes them on the same path as disk: the raw files, plus the
207
+ // package envelope their $refs and credential shapes resolve against. The name is the
208
+ // node's `type`, bare: a saved workflow stores that identity and nothing else.
203
209
  //
204
- // Until 2026-09-05 deploy never looked here, so `deploy studio` shipped a developer's
205
- // components and skills and silently left every node behind.
206
- //
207
- // NOT FROM THE PLATFORM TREE. The monorepo's nodes ship inside the core image and are
208
- // read from disk there; publishing them as rows under whichever org happened to be
209
- // deployed would double every platform node. A design system on disk is the mark of
210
- // the platform tree (the same test designSystemDir makes), and a developer's workspace
211
- // never has one.
212
- const nodesHome = join(designRoot, "..", "nodes");
213
- if (existsSync(nodesHome) && !existsSync(join(designRoot, "marketplace"))) {
210
+ // Until 2026-09-05 deploy never looked at nodes at all, so `deploy studio` shipped a
211
+ // developer's components and skills and silently left every node behind. Until
212
+ // 2026-09-08 it looked at a `nodes/` folder beside design/ while every org already
213
+ // kept its nodes INSIDE its project, so the same nodes were left behind again. Org
214
+ // nodes are org-scoped like skills; the marketplace tier's own nodes sit under
215
+ // design/marketplace/, which is never collected.
216
+ const nodesHome = join(root, "nodes");
217
+ if (existsSync(nodesHome)) {
214
218
  for (const pkg of collectNodePackages(nodesHome)) {
215
219
  for (const raw of pkg.nodes) {
216
220
  const type = nodeType(raw.files["node.yaml"]);
@@ -226,9 +230,9 @@ export function collectProject(designRoot, project) {
226
230
  }
227
231
  return items;
228
232
  }
229
- /** The workspace's node packages, read the way the platform reads its own. */
233
+ /** The project's node packages, read the way the platform reads its own. */
230
234
  function collectNodePackages(nodesHome) {
231
- return readDiskPackages(nodesHome).filter((pkg) => pkg.name !== "marketplace");
235
+ return readDiskPackages(nodesHome);
232
236
  }
233
237
  /** `type:` off a node.yaml: the one scalar the row is named by. Unparseable means none. */
234
238
  function nodeType(nodeYaml) {
@@ -27,17 +27,41 @@ export async function lintForPublish(designRoot, project) {
27
27
  const { lintDefinitions } = await import("../lint/design/index.mjs");
28
28
  const result = lintDefinitions(designRoot);
29
29
  /**
30
- * NODES TOO. A workspace keeps its node packages beside design/ (the same `nodes/` the
31
- * Studio Nodes screen reads), and until 2026-09-05 this gate never looked at them: a
32
- * node with an events row out of order or a host missing from allowedHosts deployed as
33
- * cleanly as a correct one. The node linter is the same library the platform's own CI
34
- * runs. A workspace with no nodes/ folder has nothing to lint and is not an error.
30
+ * NODES TOO. A project keeps its node packages at design/<project>/nodes/ (the same
31
+ * folder the Studio Nodes screen reads), and until 2026-09-05 this gate never looked
32
+ * at nodes at all: a node with an events row out of order or a host missing from
33
+ * allowedHosts deployed as cleanly as a correct one. The node linter is the same
34
+ * library the platform's own CI runs. A project with no nodes/ folder has nothing to
35
+ * lint and is not an error.
35
36
  */
36
- const nodesHome = join(designRoot, "..", "nodes");
37
+ const nodesHome = join(designRoot, project, "nodes");
37
38
  if (existsSync(nodesHome)) {
38
39
  const { lintNodes } = await import("../lint/nodes/index.mjs");
39
40
  result.problems.push(...lintNodes(nodesHome).problems);
40
41
  }
42
+ /**
43
+ * OBJECTS AND PIPELINES TOO (objects README 9a, 2026-09-10). They live under
44
+ * design/<tier>/objects and /pipelines, folders neither linter above enumerates, and a
45
+ * home not enumerated is a home where every rule is off, silently. The objects linter
46
+ * walks every tier of the design root, like the design linter; the project filter below
47
+ * keeps this project's findings.
48
+ */
49
+ {
50
+ const { lintObjects } = await import("../lint/objects/index.mjs");
51
+ result.problems.push(...lintObjects(designRoot).problems);
52
+ }
53
+ /**
54
+ * SKILLS AND PROMPT BLOCKS TOO (2026-09-18). They live under design/<tier>/skills and
55
+ * /blocks, and nothing read them before publish: a SKILL.md whose frontmatter did not
56
+ * parse (a bare colon in the description) was published, and the run-time loaders then
57
+ * dropped it with one console line, so it was absent from every list and nobody was
58
+ * told. The prompts linter walks every tier, like the objects linter; the project filter
59
+ * below keeps this project's findings.
60
+ */
61
+ {
62
+ const { lintPrompts } = await import("../lint/prompts/index.mjs");
63
+ result.problems.push(...lintPrompts(designRoot).problems);
64
+ }
41
65
  /**
42
66
  * SCOPED TO THE PROJECT BEING DEPLOYED, on paths that may be relative. The old
43
67
  * check looked for "/design/" with a leading slash, which a relative path never
@@ -20,6 +20,21 @@ export const derivedKinds = new Map();
20
20
  /** Credential name -> where it was declared, for cross-package collision rules. */
21
21
  export const allCredentials = new Map();
22
22
 
23
+ /**
24
+ * ATTACHMENTS, and the config fields every other node declares.
25
+ *
26
+ * An attachment clips onto a node whose configSchema has every field it sets, so "can this
27
+ * attachment ever clip onto anything?" cannot be answered while reading the attachment: its
28
+ * host may be in a package that has not been read yet, or in no package at all. Both halves
29
+ * are collected here and checked once at the end of the run (node.mjs lintAttachments).
30
+ *
31
+ * The alternative was making the author declare the host, which is the `accepts:` list the
32
+ * whole design exists to avoid.
33
+ */
34
+ export const attachments = new Map();
35
+ /** Node label -> the set of config field names it declares. */
36
+ export const configFields = new Map();
37
+
23
38
  /** Where this run is reading. Set by lintNodes(), read by rel() and the loaders. */
24
39
  export const state = { nodesHome: "", schemaDir: "", schemas: {} };
25
40
 
@@ -29,6 +44,8 @@ export function reset(nodesHome, schemaDir) {
29
44
  refCounts.clear();
30
45
  derivedKinds.clear();
31
46
  allCredentials.clear();
47
+ attachments.clear();
48
+ configFields.clear();
32
49
  state.nodesHome = nodesHome;
33
50
  state.schemaDir = schemaDir;
34
51
  state.schemas = {};