@webex/storage-adapter-local-storage 3.13.0-next.2 → 3.13.0-next.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.
- package/.repo-context.json +528 -0
- package/.sdd/manifest.json +415 -0
- package/AGENTS.md +257 -0
- package/docs/architecture.md +352 -0
- package/docs/getting-started.md +136 -0
- package/docs/index.md +54 -0
- package/docs/specs/README.md +86 -0
- package/package.json +8 -8
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +756 -0
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/repo-context.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"repository": {
|
|
5
|
+
"name": "@webex/storage-adapter-local-storage",
|
|
6
|
+
"purpose": "Browser localStorage-backed bounded storage adapter for the Webex SDK webex-core storage layer."
|
|
7
|
+
},
|
|
8
|
+
"commands": {
|
|
9
|
+
"build": "yarn workspace @webex/storage-adapter-local-storage build:src",
|
|
10
|
+
"lint": "yarn workspace @webex/storage-adapter-local-storage test:style",
|
|
11
|
+
"unit-test": "yarn workspace @webex/storage-adapter-local-storage test:unit",
|
|
12
|
+
"browser-test": "yarn workspace @webex/storage-adapter-local-storage test:browser",
|
|
13
|
+
"publish": "yarn workspace @webex/storage-adapter-local-storage deploy:npm",
|
|
14
|
+
"test": "yarn workspace @webex/storage-adapter-local-storage test",
|
|
15
|
+
"install": "yarn install",
|
|
16
|
+
"clone": "git clone https://github.com/webex/webex-js-sdk.git"
|
|
17
|
+
},
|
|
18
|
+
"task_playbooks": [
|
|
19
|
+
{
|
|
20
|
+
"task": "change-adapter-behavior",
|
|
21
|
+
"reference": "src/docs/README.md",
|
|
22
|
+
"when_to_use": "Any change to src/index.js that alters observable behavior of bind, get, put, del, or clear.",
|
|
23
|
+
"start_with": [
|
|
24
|
+
"src/docs/README.md",
|
|
25
|
+
"docs/architecture.md"
|
|
26
|
+
],
|
|
27
|
+
"evidence_required": [
|
|
28
|
+
"src/index.js",
|
|
29
|
+
"package.json"
|
|
30
|
+
],
|
|
31
|
+
"allowed_edits": [
|
|
32
|
+
"src/index.js",
|
|
33
|
+
"src/docs/README.md",
|
|
34
|
+
"docs/architecture.md"
|
|
35
|
+
],
|
|
36
|
+
"refresh_with": [
|
|
37
|
+
"yarn workspace @webex/storage-adapter-local-storage build:src"
|
|
38
|
+
],
|
|
39
|
+
"validate_with": [
|
|
40
|
+
"yarn workspace @webex/storage-adapter-local-storage test:style"
|
|
41
|
+
],
|
|
42
|
+
"fallback": "No automated test executes this module, so verify manually in a browser and state in the PR that no suite observed the change. If the behavior in question is clear() scope, the at-rest document layout, or the published constructor signature, stop and escalate to @webex/web-client before editing."
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"public_interfaces": [
|
|
46
|
+
{
|
|
47
|
+
"name": "StorageAdapterLocalStorage",
|
|
48
|
+
"kind": "package_export",
|
|
49
|
+
"source": "package.json",
|
|
50
|
+
"entrypoints": [
|
|
51
|
+
"import StorageAdapterLocalStorage from '@webex/storage-adapter-local-storage'",
|
|
52
|
+
"new StorageAdapterLocalStorage(basekey)",
|
|
53
|
+
"adapter.bind(namespace, {logger})"
|
|
54
|
+
],
|
|
55
|
+
"audience": "Webex SDK host configuration: @webex/webex browser bundle, @webex/recipe-private-web-client, and the authorization-browser automation fixtures.",
|
|
56
|
+
"notes": "The published surface is the default export declared through package.json main (dist/index.js). The package ships no .d.ts and no API report, so package.json is the only machine-readable declaration. Verify by reading src/index.js and the consumer call sites."
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"source_of_truth": [
|
|
60
|
+
{
|
|
61
|
+
"surface": "adapter implementation",
|
|
62
|
+
"paths": [
|
|
63
|
+
"src/index.js"
|
|
64
|
+
],
|
|
65
|
+
"generated_artifacts": [
|
|
66
|
+
"dist/index.js",
|
|
67
|
+
"dist/index.js.map"
|
|
68
|
+
],
|
|
69
|
+
"refresh_with": [
|
|
70
|
+
"yarn workspace @webex/storage-adapter-local-storage build:src"
|
|
71
|
+
],
|
|
72
|
+
"validate_with": [
|
|
73
|
+
"yarn workspace @webex/storage-adapter-local-storage test:style"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"surface": "module specification",
|
|
78
|
+
"paths": [
|
|
79
|
+
"src/docs/README.md"
|
|
80
|
+
],
|
|
81
|
+
"generated_artifacts": [],
|
|
82
|
+
"refresh_with": [
|
|
83
|
+
"Edited by hand in the same change as the code it describes."
|
|
84
|
+
],
|
|
85
|
+
"validate_with": [
|
|
86
|
+
"No executable check; reviewed by a human in the same change."
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"surface": "package standing documentation",
|
|
91
|
+
"paths": [
|
|
92
|
+
"AGENTS.md",
|
|
93
|
+
"docs/index.md",
|
|
94
|
+
"docs/architecture.md",
|
|
95
|
+
"docs/getting-started.md",
|
|
96
|
+
"docs/specs/README.md"
|
|
97
|
+
],
|
|
98
|
+
"generated_artifacts": [],
|
|
99
|
+
"refresh_with": [
|
|
100
|
+
"Edited by hand in the same change as the code it describes."
|
|
101
|
+
],
|
|
102
|
+
"validate_with": [
|
|
103
|
+
"No executable check; reviewed by a human in the same change."
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"surface": "SDD manifest",
|
|
108
|
+
"paths": [
|
|
109
|
+
".sdd/manifest.json"
|
|
110
|
+
],
|
|
111
|
+
"generated_artifacts": [],
|
|
112
|
+
"refresh_with": [
|
|
113
|
+
"Edited by hand in the same change as the code it describes."
|
|
114
|
+
],
|
|
115
|
+
"validate_with": [
|
|
116
|
+
"No executable check; reviewed by a human in the same change."
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"generated_artifacts": [
|
|
121
|
+
{
|
|
122
|
+
"path": "dist/index.js",
|
|
123
|
+
"generated_from": "src/index.js",
|
|
124
|
+
"refresh_with": "yarn workspace @webex/storage-adapter-local-storage build:src"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"path": "dist/index.js.map",
|
|
128
|
+
"generated_from": "src/index.js",
|
|
129
|
+
"refresh_with": "yarn workspace @webex/storage-adapter-local-storage build:src"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"path": "../../../.sdd/templates/repo-standards/template-map.json",
|
|
133
|
+
"generated_from": "WebexTools/repo-standards",
|
|
134
|
+
"refresh_with": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"validation_matrix": [
|
|
138
|
+
{
|
|
139
|
+
"paths": [
|
|
140
|
+
"src/**"
|
|
141
|
+
],
|
|
142
|
+
"minimum": [
|
|
143
|
+
"yarn workspace @webex/storage-adapter-local-storage test:style"
|
|
144
|
+
],
|
|
145
|
+
"recommended": [
|
|
146
|
+
"yarn workspace @webex/storage-adapter-local-storage build:src",
|
|
147
|
+
"yarn workspace @webex/storage-adapter-local-storage test:browser"
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"paths": [
|
|
152
|
+
"test/**"
|
|
153
|
+
],
|
|
154
|
+
"minimum": [
|
|
155
|
+
"yarn workspace @webex/storage-adapter-local-storage test:unit"
|
|
156
|
+
],
|
|
157
|
+
"recommended": [
|
|
158
|
+
"yarn workspace @webex/storage-adapter-local-storage test:browser"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"paths": [
|
|
163
|
+
"package.json"
|
|
164
|
+
],
|
|
165
|
+
"minimum": [
|
|
166
|
+
"yarn workspace @webex/storage-adapter-local-storage build:src"
|
|
167
|
+
],
|
|
168
|
+
"recommended": [
|
|
169
|
+
"yarn workspace @webex/storage-adapter-local-storage test:style"
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"change_impact": [
|
|
174
|
+
{
|
|
175
|
+
"paths": [
|
|
176
|
+
"src/index.js"
|
|
177
|
+
],
|
|
178
|
+
"affects": [
|
|
179
|
+
"@webex/webex browser bundle bounded storage",
|
|
180
|
+
"@webex/recipe-private-web-client bounded storage",
|
|
181
|
+
"@webex/plugin-authorization-browser automation fixtures",
|
|
182
|
+
"@webex/plugin-authorization-browser-first-party automation fixtures",
|
|
183
|
+
"persisted Credentials, Device, and User records already in users' browsers"
|
|
184
|
+
],
|
|
185
|
+
"refresh_with": [
|
|
186
|
+
"yarn workspace @webex/storage-adapter-local-storage build:src"
|
|
187
|
+
],
|
|
188
|
+
"validate_with": [
|
|
189
|
+
"yarn workspace @webex/storage-adapter-local-storage test:style"
|
|
190
|
+
],
|
|
191
|
+
"avoid_direct_edits": [
|
|
192
|
+
"dist/index.js",
|
|
193
|
+
"dist/index.js.map"
|
|
194
|
+
],
|
|
195
|
+
"notes": "Neither of this package's own test routes executes a case, so a behavior change must be verified manually in a browser. The at-rest document layout has no version field and no migration step; it must stay readable for documents written by earlier releases (owner-confirmed), so a layout or encoding change needs a migration and is breaking."
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"paths": [
|
|
199
|
+
"src/index.js",
|
|
200
|
+
"src/docs/README.md"
|
|
201
|
+
],
|
|
202
|
+
"affects": [
|
|
203
|
+
"the canonical module specification"
|
|
204
|
+
],
|
|
205
|
+
"refresh_with": [
|
|
206
|
+
"Edited by hand in the same change as the behavior change."
|
|
207
|
+
],
|
|
208
|
+
"validate_with": [
|
|
209
|
+
"No executable check; reviewed by a human in the same change."
|
|
210
|
+
],
|
|
211
|
+
"avoid_direct_edits": [
|
|
212
|
+
"README.md"
|
|
213
|
+
],
|
|
214
|
+
"notes": "Update src/docs/README.md in the same change as any behavior change; it is the authoritative record of this module's contract because no test suite pins it."
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"glossary": [
|
|
218
|
+
{
|
|
219
|
+
"term": "basekey",
|
|
220
|
+
"definition": "The single localStorage key under which one adapter instance stores every namespace.",
|
|
221
|
+
"notes": "Fixed at construction and captured in a closure, so it cannot be reassigned after bindings exist."
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"term": "namespace",
|
|
225
|
+
"definition": "The host's isolation unit within the stored document, one per webex plugin.",
|
|
226
|
+
"notes": "Isolates get, put, and del. It does NOT isolate clear(), which removes the whole basekey entry."
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"term": "binding",
|
|
230
|
+
"definition": "A namespace-scoped store returned by bind(), implemented by the inner Bound class.",
|
|
231
|
+
"notes": "Holds no data; its namespace and logger live in module-level WeakMaps."
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"term": "bounded adapter",
|
|
235
|
+
"definition": "The webex-core storage role this package fills: durable, size-limited storage selected via config.storage.boundedAdapter.",
|
|
236
|
+
"notes": "Contrast with the unbounded adapter, which this package does not provide."
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"evidence_rules": [
|
|
240
|
+
{
|
|
241
|
+
"claim_category": "command_name",
|
|
242
|
+
"sources": [
|
|
243
|
+
"package.json",
|
|
244
|
+
".sdd/manifest.json"
|
|
245
|
+
],
|
|
246
|
+
"requirement": "Only cite a script that exists in package.json scripts. Do not cite test:integration or test:coverage; neither is defined in this package.",
|
|
247
|
+
"notes": "The aggregate test script is defined but broken: it chains the undefined test:integration and exits 1."
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"claim_category": "behavior_claim",
|
|
251
|
+
"sources": [
|
|
252
|
+
"src/index.js",
|
|
253
|
+
"src/docs/README.md"
|
|
254
|
+
],
|
|
255
|
+
"requirement": "Ground every behavior claim in src/index.js. Do not cite README.md as evidence; it is registered reference-only and contradicts the code on clear() scope.",
|
|
256
|
+
"notes": "Commit history is not admissible rationale for this package; its manifest category is cat2-legacy."
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"claim_category": "behavior_claim",
|
|
260
|
+
"sources": [
|
|
261
|
+
"src/docs/README.md"
|
|
262
|
+
],
|
|
263
|
+
"requirement": "Do not claim a behavior is verified by tests. No automated test executes this module: the Node route skips all 21 cases and the browser route completes 0 tests while exiting 0.",
|
|
264
|
+
"notes": "Check the reported test count, never the exit code."
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"claim_category": "import_path",
|
|
268
|
+
"sources": [
|
|
269
|
+
"package.json",
|
|
270
|
+
"src/index.js"
|
|
271
|
+
],
|
|
272
|
+
"requirement": "Resolve imports against package.json dependencies. The only runtime import is NotFoundError from @webex/webex-core.",
|
|
273
|
+
"notes": "The browser localStorage global is used directly with no import and no feature detection."
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"negative_guidance": [
|
|
277
|
+
{
|
|
278
|
+
"rule": "Do not describe clear() as namespace-scoped.",
|
|
279
|
+
"why": "It removes the entire basekey entry and therefore every namespace. README.md states otherwise and is wrong."
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"rule": "Do not treat a passing test:unit or test:browser run as verification.",
|
|
283
|
+
"why": "Neither executes a case: the unit route exits 0 having skipped everything and the browser route exits 1 before any case runs, so neither catches a regression."
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"rule": "Do not use truthiness to test whether a stored value exists.",
|
|
287
|
+
"why": "Only typeof value !== 'undefined' preserves legitimately stored 0, false, null, and empty string."
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"rule": "Do not add a test:unit case that assumes localStorage.",
|
|
291
|
+
"why": "The shared jest config pins testEnvironment to node, which is why the existing suite is wrapped in skipInNode."
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"rule": "Do not assume this adapter is interchangeable with MemoryStoreAdapter.",
|
|
295
|
+
"why": "MemoryStoreAdapter scopes clear() to its own map; swapping adapters changes data-destruction behavior."
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"rule": "Do not log stored values or widen what is persisted.",
|
|
299
|
+
"why": "In a browser bundle this adapter holds OAuth access and refresh tokens as plaintext JSON."
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"rule": "Do not run or cite the aggregate test script.",
|
|
303
|
+
"why": "It chains test:integration, which this package does not define, so it exits 1 before reaching the browser suite. It is recorded here only for manifest parity."
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"confidence_policy": {
|
|
307
|
+
"high": {
|
|
308
|
+
"action": "update",
|
|
309
|
+
"expectation": "The claim is grounded in src/index.js or package.json and the affected consumers are named."
|
|
310
|
+
},
|
|
311
|
+
"medium": {
|
|
312
|
+
"action": "narrow-scope",
|
|
313
|
+
"expectation": "Omit rationale that only commit history would supply; this package's category is cat2-legacy, so history is not admissible evidence."
|
|
314
|
+
},
|
|
315
|
+
"low": {
|
|
316
|
+
"action": "noop",
|
|
317
|
+
"expectation": "Stop and report the gap. Mark it [NEEDS HUMAN INPUT] rather than inferring intent, and route it to @webex/web-client."
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"repository_topology": {
|
|
321
|
+
"main_entrypoints": [
|
|
322
|
+
{
|
|
323
|
+
"name": "StorageAdapterLocalStorage",
|
|
324
|
+
"path": "src/index.js",
|
|
325
|
+
"purpose": "The adapter class: constructor captures the basekey, bind() returns a namespace-scoped store.",
|
|
326
|
+
"notes": "Browser-only; uses the localStorage global with no feature detection."
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"workspace_packages": [
|
|
330
|
+
{
|
|
331
|
+
"name": "@webex/storage-adapter-local-storage",
|
|
332
|
+
"paths": [
|
|
333
|
+
"."
|
|
334
|
+
],
|
|
335
|
+
"notes": "A leaf workspace package under the root workspaces glob ./packages/@webex/*. Nothing in the workspace imports it except host configuration."
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"source_surfaces": [
|
|
339
|
+
{
|
|
340
|
+
"name": "adapter implementation",
|
|
341
|
+
"paths": [
|
|
342
|
+
"src/index.js"
|
|
343
|
+
],
|
|
344
|
+
"notes": "The entire module; no internal layering."
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "tests",
|
|
348
|
+
"paths": [
|
|
349
|
+
"test/unit/spec/storage-adapter-local-storage.js"
|
|
350
|
+
],
|
|
351
|
+
"notes": "Delegates to the shared abstract suite in @webex/storage-adapter-spec and skips it under Node."
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "build and lint configuration",
|
|
355
|
+
"paths": [
|
|
356
|
+
"babel.config.js",
|
|
357
|
+
"jest.config.js",
|
|
358
|
+
".eslintrc.js",
|
|
359
|
+
"process"
|
|
360
|
+
],
|
|
361
|
+
"notes": "Thin re-exports of shared legacy configs; process exports {browser: true} for the browserify/envify transform."
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"generated_surfaces": [
|
|
365
|
+
{
|
|
366
|
+
"name": "build output",
|
|
367
|
+
"paths": [
|
|
368
|
+
"dist/index.js",
|
|
369
|
+
"dist/index.js.map"
|
|
370
|
+
],
|
|
371
|
+
"generated_from": "adapter implementation",
|
|
372
|
+
"refresh_with": "yarn workspace @webex/storage-adapter-local-storage build:src",
|
|
373
|
+
"notes": "Not version-controlled; the repository .gitignore excludes dist."
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "repo-standards template snapshot",
|
|
377
|
+
"paths": [
|
|
378
|
+
"../../../.sdd/templates/repo-standards"
|
|
379
|
+
],
|
|
380
|
+
"generated_from": "WebexTools/repo-standards",
|
|
381
|
+
"refresh_with": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package.",
|
|
382
|
+
"notes": "Plugin-owned, checksum-verified snapshot at the monorepo root, shared by every onboarded package. Never hand-edit it or copy it into this package."
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
"sync_paths": [
|
|
386
|
+
{
|
|
387
|
+
"source": "WebexTools/repo-standards",
|
|
388
|
+
"targets": [
|
|
389
|
+
"../../../.sdd/templates/repo-standards"
|
|
390
|
+
],
|
|
391
|
+
"mechanism": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package.",
|
|
392
|
+
"notes": "One-way. The snapshot is an input to documentation generation, not a repository-authored surface."
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"validation_entrypoints": [
|
|
396
|
+
{
|
|
397
|
+
"name": "lint",
|
|
398
|
+
"command": "yarn workspace @webex/storage-adapter-local-storage test:style",
|
|
399
|
+
"scope": "src/**",
|
|
400
|
+
"notes": "The only check in this package that both executes and reports meaningfully. Measured 2026-11-09: exit 0, 0 errors, 1 warning (the Markdown spec under src/ reported as ignored)."
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "build",
|
|
404
|
+
"command": "yarn workspace @webex/storage-adapter-local-storage build:src",
|
|
405
|
+
"scope": "src/** to dist/**",
|
|
406
|
+
"notes": "Measured 2026-11-09: exit 0, 1 file emitted."
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"name": "unit (non-verifying)",
|
|
410
|
+
"command": "yarn workspace @webex/storage-adapter-local-storage test:unit",
|
|
411
|
+
"scope": "test/unit/**",
|
|
412
|
+
"notes": "Measured 2026-11-09: exit 0 with 21 skipped and 0 executed. Reports success while verifying nothing."
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "browser (non-verifying)",
|
|
416
|
+
"command": "yarn workspace @webex/storage-adapter-local-storage test:browser",
|
|
417
|
+
"scope": "test/unit/**",
|
|
418
|
+
"notes": "Measured 2026-11-09: exit 1 with 0 tests completed; both browsers report beforeAll is not defined. Fails before any case runs."
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
"folder_readme_contract": {
|
|
423
|
+
"required_sections": [
|
|
424
|
+
"purpose",
|
|
425
|
+
"boundaries",
|
|
426
|
+
"key-files",
|
|
427
|
+
"common-tasks"
|
|
428
|
+
],
|
|
429
|
+
"rules": [
|
|
430
|
+
"Orientation first: say what the folder owns before describing how to use it.",
|
|
431
|
+
"Link the canonical module specification at src/docs/README.md rather than restating behavior.",
|
|
432
|
+
"Never present the package README.md as authoritative; it is registered reference-only."
|
|
433
|
+
],
|
|
434
|
+
"example_policy": "Examples are allowed only when copied from a real consumer call site such as packages/webex/src/config-storage.shim.js.",
|
|
435
|
+
"fallback": "Omit a section rather than inventing content; mark an unresolved fact [NEEDS HUMAN INPUT]."
|
|
436
|
+
},
|
|
437
|
+
"regression_feedback_rules": [
|
|
438
|
+
{
|
|
439
|
+
"trigger": "A behavior change lands in src/index.js without any executing test observing it.",
|
|
440
|
+
"required_followups": [
|
|
441
|
+
"State explicitly in the PR that no automated test executed and describe the manual browser verification performed",
|
|
442
|
+
"Update the Verification section of src/docs/README.md",
|
|
443
|
+
"Reassess whether the browser route can be repaired in @webex/storage-adapter-spec"
|
|
444
|
+
],
|
|
445
|
+
"notes": "This is the standing condition for the package, not an exceptional case."
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"trigger": "A reviewer or tool cites README.md as the behavior contract.",
|
|
449
|
+
"required_followups": [
|
|
450
|
+
"Redirect to src/docs/README.md",
|
|
451
|
+
"Edit README.md only through an explicit source-policy decision; it is reference-only context"
|
|
452
|
+
],
|
|
453
|
+
"notes": "README.md misdescribes clear() scope and is reference-only context."
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"surface_owners": [
|
|
457
|
+
{
|
|
458
|
+
"surface": "adapter implementation",
|
|
459
|
+
"owner": "@webex/web-client",
|
|
460
|
+
"edit_boundary": "Owned here. Changes to the constructor signature, the bound-store method set, clear() scope, or the at-rest document layout are breaking changes requiring consumer review."
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"surface": "package standing documentation and module specification",
|
|
464
|
+
"owner": "@webex/web-client",
|
|
465
|
+
"edit_boundary": "Owned here. Update in the same change as any behavior change."
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"surface": "package README.md",
|
|
469
|
+
"owner": "@webex/web-client",
|
|
470
|
+
"edit_boundary": "Reference-only context. Do not edit it to match the code without an explicit source-policy decision."
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"surface": "shared abstract adapter contract",
|
|
474
|
+
"owner": "@webex/web-client",
|
|
475
|
+
"edit_boundary": "Defined in @webex/storage-adapter-spec, outside this package. It has four consumers; treat any change as cross-package."
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"surface": "webex-core storage layer and error taxonomy",
|
|
479
|
+
"owner": "@webex/web-client, @webex/web-sdk",
|
|
480
|
+
"edit_boundary": "Defined in @webex/webex-core, outside this package. Consumed here, not owned."
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"do_not_edit": [
|
|
484
|
+
"dist/index.js",
|
|
485
|
+
"dist/index.js.map",
|
|
486
|
+
"../../../.sdd/templates/repo-standards"
|
|
487
|
+
],
|
|
488
|
+
"marker_scopes": {
|
|
489
|
+
"sdd-generated-metadata": [
|
|
490
|
+
"AGENTS.md",
|
|
491
|
+
"docs/index.md",
|
|
492
|
+
"docs/architecture.md",
|
|
493
|
+
"docs/getting-started.md",
|
|
494
|
+
"docs/specs/README.md",
|
|
495
|
+
"src/docs/README.md"
|
|
496
|
+
]
|
|
497
|
+
},
|
|
498
|
+
"fallback_rules": [
|
|
499
|
+
"When evidence is missing, mark the statement [NEEDS HUMAN INPUT] and route it to @webex/web-client rather than inferring intent.",
|
|
500
|
+
"When a test result is cited, report the executed test count rather than the exit code; neither test route in this package executes a case.",
|
|
501
|
+
"When a behavior claim conflicts between README.md and src/index.js, the code wins and src/docs/README.md records the conflict.",
|
|
502
|
+
"When asked to repair the browser test route, treat it as a change to @webex/storage-adapter-spec and escalate; it is outside this package's boundary."
|
|
503
|
+
],
|
|
504
|
+
"downstream_context_pack": {
|
|
505
|
+
"required_human_surfaces": [
|
|
506
|
+
"docs/index.md",
|
|
507
|
+
"docs/architecture.md",
|
|
508
|
+
"docs/getting-started.md",
|
|
509
|
+
"src/docs/README.md"
|
|
510
|
+
],
|
|
511
|
+
"required_agent_operational_surfaces": [
|
|
512
|
+
"AGENTS.md",
|
|
513
|
+
"docs/specs/README.md"
|
|
514
|
+
],
|
|
515
|
+
"required_machine_readable_surface": ".sdd/manifest.json",
|
|
516
|
+
"recommended_machine_readable_sections": [
|
|
517
|
+
"public_interfaces",
|
|
518
|
+
"change_impact",
|
|
519
|
+
"glossary",
|
|
520
|
+
"evidence_rules",
|
|
521
|
+
"negative_guidance",
|
|
522
|
+
"confidence_policy",
|
|
523
|
+
"repository_topology",
|
|
524
|
+
"folder_readme_contract",
|
|
525
|
+
"regression_feedback_rules"
|
|
526
|
+
]
|
|
527
|
+
}
|
|
528
|
+
}
|