@webex/storage-adapter-spec 3.12.0-llmrefactor.3 → 3.12.0-llmrefactor.4

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.
@@ -0,0 +1,403 @@
1
+ {
2
+ "$schema": "./schemas/repo-context.schema.json",
3
+ "version": 1,
4
+ "repository": {
5
+ "name": "@webex/storage-adapter-spec",
6
+ "purpose": "Defines the behavioral contract every Webex storage adapter must satisfy, as an executable conformance suite that consumer packages run against their own adapter."
7
+ },
8
+ "commands": {
9
+ "install": "yarn install",
10
+ "contract-verify": "yarn workspace @webex/webex-core test:unit --targets storage/storage-adapter.js",
11
+ "build": "yarn workspace @webex/storage-adapter-spec build",
12
+ "lint": "yarn workspace @webex/storage-adapter-spec test:style",
13
+ "deploy": "yarn workspace @webex/storage-adapter-spec deploy:npm",
14
+ "browser-test": "yarn workspace @webex/storage-adapter-spec test:browser",
15
+ "test": "yarn workspace @webex/storage-adapter-spec test"
16
+ },
17
+ "public_interfaces": [
18
+ {
19
+ "name": "runAbstractStorageAdapterSpec",
20
+ "kind": "package_export",
21
+ "source": "src/index.js",
22
+ "entrypoints": [
23
+ "import runAbstractStorageAdapterSpec from '@webex/storage-adapter-spec'"
24
+ ],
25
+ "audience": "Webex storage adapter packages and @webex/webex-core storage tests",
26
+ "notes": "Call it inside an active test-declaration context with an object exposing bind \u2014 either a constructed instance or a module object; it declares the contract cases into the caller's runner. Verify with the contract-verify command, since this package runs no tests itself."
27
+ },
28
+ {
29
+ "name": "package entry points",
30
+ "kind": "npm_scripts",
31
+ "source": "package.json",
32
+ "entrypoints": [
33
+ "main",
34
+ "devMain"
35
+ ],
36
+ "audience": "Package consumers and workspace tooling",
37
+ "notes": "main resolves to the built output and devMain to the source module, so workspace consumers can run against source without a build."
38
+ }
39
+ ],
40
+ "source_of_truth": [
41
+ {
42
+ "surface": "storage adapter contract",
43
+ "paths": [
44
+ "src/index.js"
45
+ ],
46
+ "generated_artifacts": [],
47
+ "refresh_with": [
48
+ "edit src/index.js directly; it is the only source file"
49
+ ],
50
+ "validate_with": [
51
+ "yarn workspace @webex/storage-adapter-spec test:style"
52
+ ]
53
+ },
54
+ {
55
+ "surface": "package metadata and commands",
56
+ "paths": [
57
+ "package.json"
58
+ ],
59
+ "generated_artifacts": [],
60
+ "refresh_with": [
61
+ "edit package.json directly"
62
+ ],
63
+ "validate_with": [
64
+ "yarn workspace @webex/storage-adapter-spec build"
65
+ ]
66
+ }
67
+ ],
68
+ "generated_artifacts": [
69
+ {
70
+ "path": "dist",
71
+ "generated_from": "src",
72
+ "refresh_with": "yarn workspace @webex/storage-adapter-spec build"
73
+ },
74
+ {
75
+ "path": ".sdd/templates/repo-standards/template-map.json",
76
+ "generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
77
+ "refresh_with": "Re-run the Repo Standards template setup from the active Repo Annotation installation against this package as both target and SDD root."
78
+ }
79
+ ],
80
+ "validation_matrix": [
81
+ {
82
+ "paths": [
83
+ "src/index.js"
84
+ ],
85
+ "minimum": [
86
+ "yarn workspace @webex/storage-adapter-spec test:style"
87
+ ],
88
+ "recommended": [
89
+ "yarn workspace @webex/storage-adapter-spec build",
90
+ "yarn workspace @webex/webex-core test:unit --targets storage/storage-adapter.js"
91
+ ]
92
+ },
93
+ {
94
+ "paths": [
95
+ "package.json"
96
+ ],
97
+ "minimum": [
98
+ "yarn workspace @webex/storage-adapter-spec build"
99
+ ],
100
+ "recommended": [
101
+ "yarn install"
102
+ ]
103
+ }
104
+ ],
105
+ "change_impact": [
106
+ {
107
+ "paths": [
108
+ "src/index.js"
109
+ ],
110
+ "affects": [
111
+ "Every Webex storage adapter package in this workspace that runs this suite",
112
+ "@webex/webex-core storage adapter tests, the only Node route that executes it",
113
+ "src/docs/README.md requirements, invariants, failure modes, and verification tables"
114
+ ],
115
+ "refresh_with": [
116
+ "yarn workspace @webex/storage-adapter-spec build"
117
+ ],
118
+ "validate_with": [
119
+ "yarn workspace @webex/webex-core test:unit --targets storage/storage-adapter.js"
120
+ ],
121
+ "avoid_direct_edits": [
122
+ "dist"
123
+ ],
124
+ "notes": "Adding or loosening a case changes the contract for every consuming package, and no command in this package executes the suite. Only @webex/webex-core runs it under Node. The local-storage and session-storage unit commands skip all 21 cases, while local-forage has no test:unit script, so none provides Node verification."
125
+ },
126
+ {
127
+ "paths": [
128
+ "package.json"
129
+ ],
130
+ "affects": [
131
+ "The published entry points and the commands recorded in .sdd/manifest.json"
132
+ ],
133
+ "refresh_with": [
134
+ "yarn install"
135
+ ],
136
+ "validate_with": [
137
+ "yarn workspace @webex/storage-adapter-spec build"
138
+ ],
139
+ "avoid_direct_edits": [
140
+ "dist"
141
+ ],
142
+ "notes": "The entry points are part of the published contract; changing them affects every consumer's import resolution."
143
+ }
144
+ ],
145
+ "glossary": [
146
+ {
147
+ "term": "adapter",
148
+ "definition": "The object under test. It binds a namespace and returns a handle onto a store; it is not itself the store.",
149
+ "notes": "Distinct from the bound handle it resolves."
150
+ },
151
+ {
152
+ "term": "bound handle",
153
+ "definition": "The object a successful bind resolves to. It owns put, get, del, and clear for exactly one namespace.",
154
+ "notes": "Created once per test group and shared by the cases beneath it."
155
+ },
156
+ {
157
+ "term": "namespace",
158
+ "definition": "The isolation boundary passed to bind. The same key in two namespaces refers to two independent values.",
159
+ "notes": "Required; a bind without one must reject."
160
+ },
161
+ {
162
+ "term": "conformance suite",
163
+ "definition": "The default-exported function itself: the set of cases an adapter must pass to be a valid Webex storage adapter.",
164
+ "notes": "It declares cases into the caller's runner rather than returning assertions."
165
+ }
166
+ ],
167
+ "evidence_rules": [
168
+ {
169
+ "claim_category": "command_name",
170
+ "sources": [
171
+ "package.json"
172
+ ],
173
+ "requirement": "A command may be cited only when package.json defines it. The test and test:browser scripts are defined but non-functional here, and test:unit and test:integration are referenced by test without being defined.",
174
+ "notes": "Run the script through yarn in this workspace before citing it as usable."
175
+ },
176
+ {
177
+ "claim_category": "behavior_claim",
178
+ "sources": [
179
+ "src/index.js"
180
+ ],
181
+ "requirement": "A contract behavior may be claimed only when a case in src/index.js asserts it AND that case's promise chain is returned so the runner awaits it, AND the behavior is not equally explained by another operation in the same case.",
182
+ "notes": "A case whose inner chain is not returned cannot fail. A case that performs a removal before reading cannot isolate write-undefined semantics."
183
+ },
184
+ {
185
+ "claim_category": "import_path",
186
+ "sources": [
187
+ "package.json",
188
+ "src/index.js"
189
+ ],
190
+ "requirement": "Import surfaces must resolve through the entry points declared in package.json; the module has a single default export and no named exports."
191
+ }
192
+ ],
193
+ "negative_guidance": [
194
+ {
195
+ "rule": "Do not treat a green run from a browser-backed adapter package as verification.",
196
+ "why": "Measured 2026-10-01, the @webex/storage-adapter-local-storage and @webex/storage-adapter-session-storage unit commands each exited zero with all 21 cases skipped. @webex/storage-adapter-local-forage has no test:unit script; invoking it fails before collection, although its browser test source also wraps the suite call in skipInNode."
197
+ },
198
+ {
199
+ "rule": "Do not infer that this package is verified by its own commands.",
200
+ "why": "It holds no test file. The suite is executed by the sibling package @webex/webex-core, not here."
201
+ },
202
+ {
203
+ "rule": "Do not treat commit history as rationale for why a case exists.",
204
+ "why": "The package owner confirmed during onboarding that history is not trustworthy for that purpose; rationale must come from the code and its consumer usage."
205
+ },
206
+ {
207
+ "rule": "Do not edit anything under the build output directory.",
208
+ "why": "It is regenerated from src by the build command and is git-ignored, so edits are silently lost."
209
+ },
210
+ {
211
+ "rule": "Do not assume a clean store at the start of a case.",
212
+ "why": "All cases share one bound handle and one key, so they are order-dependent by construction."
213
+ }
214
+ ],
215
+ "confidence_policy": {
216
+ "high": {
217
+ "action": "update",
218
+ "expectation": "The behavior is asserted by a returned promise chain in src/index.js and the change has been validated against at least one consumer adapter's unit run."
219
+ },
220
+ "medium": {
221
+ "action": "narrow-scope",
222
+ "expectation": "The behavior is described by a case whose assertions are not fully isolated or awaited. Limit the change to what the code proves and record the remaining gap in src/docs/README.md."
223
+ },
224
+ "low": {
225
+ "action": "noop",
226
+ "expectation": "No case asserts the behavior and no consumer usage demonstrates it. Stop and report the gap rather than adding a case that binds every adapter."
227
+ }
228
+ },
229
+ "repository_topology": {
230
+ "main_entrypoints": [
231
+ {
232
+ "name": "conformance suite",
233
+ "path": "src/index.js",
234
+ "purpose": "The single default export and the entire module.",
235
+ "notes": "Both declared package entry points resolve to this module, one through the build output."
236
+ }
237
+ ],
238
+ "workspace_packages": [
239
+ {
240
+ "name": "@webex/storage-adapter-spec",
241
+ "paths": [
242
+ "src"
243
+ ],
244
+ "notes": "One component of the webex-js-sdk monorepo. This documentation set is scoped to this component; its dependency and consumers are sibling workspace packages."
245
+ }
246
+ ],
247
+ "source_surfaces": [
248
+ {
249
+ "name": "contract source",
250
+ "paths": [
251
+ "src"
252
+ ],
253
+ "notes": "The only hand-written source. Every assertion here is a requirement for every consuming adapter."
254
+ },
255
+ {
256
+ "name": "package-local toolchain configuration",
257
+ "paths": [
258
+ ".eslintrc.js",
259
+ "babel.config.js",
260
+ "jest.config.js",
261
+ "process"
262
+ ],
263
+ "notes": "Thin re-exports of workspace configuration packages, plus the browser-target declaration."
264
+ }
265
+ ],
266
+ "generated_surfaces": [
267
+ {
268
+ "name": "build output",
269
+ "paths": [
270
+ "dist"
271
+ ],
272
+ "generated_from": "src",
273
+ "refresh_with": "yarn workspace @webex/storage-adapter-spec build",
274
+ "notes": "Git-ignored and regenerated; never edited by hand."
275
+ },
276
+ {
277
+ "name": "repo-standards template snapshot",
278
+ "paths": [
279
+ ".sdd/templates/repo-standards"
280
+ ],
281
+ "generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
282
+ "refresh_with": "Re-run the Repo Standards template setup from the active Repo Annotation installation against this package as both target and SDD root.",
283
+ "notes": "Checksum-verified authoring templates. They are consumed in place and never published into the visible documentation tree."
284
+ }
285
+ ],
286
+ "sync_paths": [
287
+ {
288
+ "source": "src",
289
+ "targets": [
290
+ "dist"
291
+ ],
292
+ "mechanism": "yarn workspace @webex/storage-adapter-spec build",
293
+ "notes": "Transpiles with source maps using the configuration re-exported by babel.config.js."
294
+ },
295
+ {
296
+ "source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
297
+ "targets": [
298
+ ".sdd/templates/repo-standards"
299
+ ],
300
+ "mechanism": "Re-run the Repo Standards template setup from the active Repo Annotation installation against this package as both target and SDD root.",
301
+ "notes": "Network-free: the templates are materialized from the checksum-verified snapshot bundled with the installed plugin."
302
+ }
303
+ ],
304
+ "validation_entrypoints": [
305
+ {
306
+ "name": "lint",
307
+ "command": "yarn workspace @webex/storage-adapter-spec test:style",
308
+ "scope": "Static analysis over src; the only verification command this package owns.",
309
+ "notes": "This package's eslint configuration is a lint root, so workspace configuration above it does not apply."
310
+ },
311
+ {
312
+ "name": "consumer contract run",
313
+ "command": "yarn workspace @webex/webex-core test:unit --targets storage/storage-adapter.js",
314
+ "scope": "Executes this package's conformance suite against the in-memory adapter of a sibling workspace package.",
315
+ "notes": "The only Node route that runs the suite; verified 21 of 21 passing on 2026-10-01 after merging upstream/next."
316
+ }
317
+ ]
318
+ },
319
+ "folder_readme_contract": {
320
+ "required_sections": [
321
+ "purpose and boundary",
322
+ "structure and key files",
323
+ "public surface",
324
+ "requirements and verification"
325
+ ],
326
+ "rules": [
327
+ "Orient the reader before detailing behavior: say what the module owns and what it explicitly does not.",
328
+ "Every claim cites a repository file path; a claim with no evidence is recorded as a gap instead."
329
+ ],
330
+ "example_policy": "Show a usage example only when it reflects a real consumer call site; do not invent an illustrative adapter.",
331
+ "fallback": "When evidence for a section cannot be found in the code, record the gap explicitly rather than omitting the section or filling it with plausible text."
332
+ },
333
+ "regression_feedback_rules": [
334
+ {
335
+ "trigger": "A contract case is found that cannot fail, because its assertion chain is not returned to the runner.",
336
+ "required_followups": [
337
+ "Return the inner chain so the runner awaits the assertions",
338
+ "Confirm every consuming adapter still passes once the case can actually fail",
339
+ "Update the affected requirement, invariant, and verification rows in src/docs/README.md"
340
+ ],
341
+ "notes": "Requirement MOD-010 and invariant INV-005 are the known open instances of this failure mode."
342
+ },
343
+ {
344
+ "trigger": "A case combines the behavior under test with another operation that would produce the same observable outcome.",
345
+ "required_followups": [
346
+ "Split the case so the described behavior is isolated",
347
+ "Record the previously unverified behavior as covered only once it is isolated"
348
+ ],
349
+ "notes": "Requirement MOD-013 is the known open instance."
350
+ }
351
+ ],
352
+ "surface_owners": [
353
+ {
354
+ "surface": "storage adapter contract",
355
+ "owner": "Webex JS SDK storage maintainers",
356
+ "edit_boundary": "Changes bind every consuming adapter package; coordinate before publishing."
357
+ },
358
+ {
359
+ "surface": "generated documentation set",
360
+ "owner": "Webex JS SDK storage maintainers",
361
+ "edit_boundary": "AGENTS.md, docs/, src/docs/README.md, and .sdd/manifest.json are kept in sync; update them in the same change that alters behavior."
362
+ }
363
+ ],
364
+ "do_not_edit": [
365
+ "dist"
366
+ ],
367
+ "marker_scopes": {
368
+ "sdd": [
369
+ ".sdd/manifest.json",
370
+ ".sdd/templates/repo-standards"
371
+ ]
372
+ },
373
+ "fallback_rules": [
374
+ "When a command is missing or fails, stop and ask for the exact command rather than substituting a plausible one; this package's test and test:browser scripts are known not to work.",
375
+ "When behavior cannot be verified from src/index.js or a consumer call site, record it as a gap in src/docs/README.md instead of asserting it."
376
+ ],
377
+ "downstream_context_pack": {
378
+ "required_human_surfaces": [
379
+ "AGENTS.md",
380
+ "docs/index.md",
381
+ "docs/architecture.md",
382
+ "docs/specs/README.md",
383
+ "src/docs/README.md"
384
+ ],
385
+ "required_agent_operational_surfaces": [
386
+ "AGENTS.md",
387
+ "docs/getting-started.md"
388
+ ],
389
+ "required_machine_readable_surface": ".sdd/manifest.json",
390
+ "recommended_machine_readable_sections": [
391
+ "task_playbooks",
392
+ "public_interfaces",
393
+ "change_impact",
394
+ "glossary",
395
+ "evidence_rules",
396
+ "negative_guidance",
397
+ "confidence_policy",
398
+ "repository_topology",
399
+ "folder_readme_contract",
400
+ "regression_feedback_rules"
401
+ ]
402
+ }
403
+ }