@webex/storage-adapter-spec 3.12.0 → 3.13.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.
@@ -0,0 +1,278 @@
1
+ ---
2
+ type: Architecture
3
+ title: '@webex/storage-adapter-spec architecture'
4
+ description: Repository-wide boundaries, resources, interactions, dependencies, and cross-cutting architecture.
5
+ tags: [architecture]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: architecture@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rsarika@cisco.com
12
+ updated_at: 2026-10-01T04:15:02Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # @webex/storage-adapter-spec architecture
17
+
18
+ Canonical repository-wide architecture. This document owns facts that span
19
+ multiple services, packages, modules, applications, or repositories. Link to
20
+ the owning service, module, feature, ADR, or native contract instead of
21
+ duplicating owner-local detail.
22
+
23
+ Related context: [specification registry](specs/README.md) ·
24
+ [repository agent instructions](../AGENTS.md)
25
+
26
+ ## Applicability
27
+
28
+ Sections preceded by an `Include if` comment are conditional. Retain a
29
+ conditional section only when repository evidence satisfies its condition.
30
+ Record `Unresolved` while the evidence or developer answer is still missing;
31
+ do not infer an answer from the repository type alone.
32
+
33
+ | Condition ID | Status | Evidence or reason | Owned section |
34
+ | ------------------------------------ | ----------------------------- | ------------------ | ----------------------------------- |
35
+ | `repo.owns_datastore` | N/A | `src/index.js` contains no ORM, migration, schema, or connection code; it exercises a caller-supplied store. | Repository data and schema |
36
+ | `repo.holds_client_state` | N/A | `src/index.js` declares no store or in-memory model; the only mutable value is a per-run fixture. | Client state model |
37
+ | `repo.components_interact` | N/A | One module in scope; `src/index.js` performs no inter-module calls or event exchange. | Dependency and interaction topology |
38
+ | `repo.domain_data_across_components` | N/A | No domain entities and no second component to spread them across; see `src/index.js`. | Object and data ownership |
39
+ | `repo.caches_data` | N/A | `src/index.js` contains no cache client or caching pattern. | Caching catalog |
40
+ | `repo.observability_convention` | N/A | The logger in `src/index.js` is a no-op stub passed into `bind`, not a convention this package owns. | Observability patterns |
41
+ | `repo.deploys_to_infra` | N/A | `package.json` declares no container, deployment manifest, or start command; the artifact is published to a registry. | Runtime and infrastructure |
42
+ | `repo.shared_base_libs` | Applicable | `package.json` declares a runtime dependency on a workspace test-helper package and inherits build, lint, and test configuration from workspace config packages. | Shared and base libraries |
43
+ | `repo.is_monorepo` | Applicable | This package is one workspace component of the webex-js-sdk monorepo; its dependency and every consumer are sibling packages resolved through `package.json` workspace ranges. | Package map and dependencies |
44
+ | `repo.multi_platform` | Applicable | `process` declares a browser target and `package.json` configures a browserify transform and a browser test runner. | Platform matrix |
45
+ | `repo.published_package` | Applicable | `package.json` declares `main`, `devMain`, a scoped npm name, and a publish command. | Release and versioning |
46
+ | `repo.embedded_in_host` | N/A | `package.json` declares no web component, plugin manifest, or micro-frontend entry. | Host integration and theming |
47
+ | `repo.exposes_commands_or_artifacts` | Applicable | `package.json` defines build, lint, browser-test, and publish commands producing a stable output directory. | Commands and generated artifacts |
48
+ | `repo.cross_repo_deps_material` | N/A | Every dependency and consumer is a sibling package inside the same Git repository, resolved through workspace ranges in `package.json`; nothing crosses a repository boundary. | Cross-repository topology |
49
+ | `repo.security_arch_warranted` | N/A | `src/index.js` contains no authentication, token, encryption, or trust-boundary code. | Security architecture |
50
+
51
+ ## Design overview
52
+
53
+ This package is one component of the webex-js-sdk monorepo, and its entire purpose is to define a
54
+ contract by executing it. The documentation set is scoped to this component; repository-wide facts
55
+ below are stated from this component's perspective.
56
+
57
+ A storage adapter in the Webex SDK is any object that can bind a namespace and then put, get, delete,
58
+ and clear keys within it. Several such adapters exist, each backed by a different browser or runtime
59
+ storage mechanism. Nothing in the language or the type system forces those adapters to agree on
60
+ edge-case behavior — what happens when you store `null`, whether two namespaces can hold the same
61
+ key, what a read of an absent key does.
62
+
63
+ The architectural choice this package makes is to express that agreement as a *shared executable
64
+ suite* rather than as an interface declaration or a written specification. `src/index.js` exports one
65
+ function that, when called with an object exposing `bind`, declares a complete set of test cases
66
+ against it. Each consumer package calls that function from its own test file. The contract is
67
+ therefore enforced at the moment each adapter is tested, in that adapter's own environment, rather
68
+ than asserted in prose that can drift.
69
+
70
+ The consequence is an inversion of the usual dependency direction for test code: this package is a
71
+ runtime dependency of its consumers' test suites, and it owns test declarations that execute inside
72
+ those consumers. That is what makes it a component worth specifying, and it is why the package holds
73
+ no test file of its own — the cases it declares are run by sibling packages, not here. Evidence:
74
+ `src/index.js`, `package.json`.
75
+
76
+ ## Resource inventory and responsibilities
77
+
78
+ List the repository resources that own stable behavior. A resource can be a
79
+ deployable service, package, application, CLI, module, infrastructure unit, or
80
+ other independently owned boundary.
81
+
82
+ | Resource | Kind | Responsibility | Owner | Source | Detailed specification |
83
+ | -------- | ------------------------------------------------------- | ----------------------- | -------------- | -------- | ---------------------- |
84
+ | Abstract storage-adapter conformance suite | package | Define and enforce the behavioral contract every Webex storage adapter must satisfy | Webex JS SDK storage maintainers | `src/index.js` | `src/docs/README.md` |
85
+
86
+ ## Interaction and execution flows
87
+
88
+ Show how resources call, import, publish to, or otherwise depend on one
89
+ another. Include the representative end-to-end flow and important
90
+ failure/recovery branches.
91
+
92
+ The representative flow is not a request path — it is a test-time composition. A consumer package
93
+ imports the default export, supplies its adapter, and calls the suite inside its own `describe`
94
+ block. The suite then declares cases that drive the adapter and assert its responses. Consumers
95
+ supply the adapter in either form: the three browser adapters pass a constructed instance, while
96
+ `@webex/webex-core` passes its adapter module directly. Evidence: `README.md`, `src/index.js`.
97
+
98
+ ```mermaid
99
+ flowchart LR
100
+ Consumer[Consumer test file] -->|imports default export| Suite[Conformance suite]
101
+ Consumer -->|supplies instance or module| Adapter[Object exposing bind]
102
+ Suite -->|declares cases into| Runner[Consumer's test runner]
103
+ Runner -->|executes cases against| Adapter
104
+ Adapter -->|resolves or rejects| Runner
105
+ ```
106
+
107
+ | From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
108
+ | ---------- | ---------- | --------------------------------------- | -------- | ------------------------------------------- |
109
+ | Consumer adapter test file | Conformance suite | Import of the package default export | Obtain the shared contract instead of restating it per adapter | A consumer pinned to an older published version runs an older contract; there is no runtime negotiation |
110
+ | Conformance suite | Consumer's test runner | Calls to the runner's global `describe`, `it`, and `beforeAll` declarations | Register contract cases inside the consumer's own run | A runner without a Jest-compatible `beforeAll` cannot execute the suite; the failure surfaces as an undefined global at declaration time |
111
+ | Conformance suite | Storage adapter instance | Direct promise-returning method calls: `bind`, then `put`, `get`, `del`, `clear` | Drive the adapter through the contract's operations | Assertions expect rejection for a missing namespace, a missing logger, and reads of absent keys |
112
+
113
+ ## Dependency topology
114
+
115
+ | Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
116
+ | ---------- | -------------------------- | ---------- | ------- | ------------------------------------ |
117
+ | `@webex/test-helper-chai` | Internal | Conformance suite | Supplies the `assert` used by every case, including promise-rejection assertions | Declared as a workspace dependency in `package.json`; resolved from the workspace, no fallback |
118
+ | `@webex/legacy-tools` | Internal | Build and browser-test commands | Provides the `webex-legacy-tools` build and test runner | Declared as a workspace devDependency in `package.json` |
119
+ | `@webex/babel-config-legacy`, `@webex/eslint-config-legacy`, `@webex/jest-config-legacy` | Internal | Toolchain configuration | Supply the transpile, lint, and jest configuration this package re-exports | Declared as workspace devDependencies in `package.json` |
120
+
121
+ There are no dependency cycles and no ordering constraints inside this package: the module tree is a
122
+ single node, and every dependency above is a leaf. Exact versions are declared in `package.json`;
123
+ they are not copied here. Inter-package direction and the workspace relationships are owned by
124
+ [Package map and inter-package dependencies](#package-map-and-inter-package-dependencies).
125
+
126
+ ## Public and consumer surfaces
127
+
128
+ Keep this as a compact catalog. Exact API, event, command, package, file, or
129
+ schema definitions remain in their native source and owner specification.
130
+
131
+ | Surface | Type | Owner | Consumers | Compatibility policy | Source |
132
+ | ------- | ------------------------------------ | ---------- | ----------- | -------------------------------------------- | -------------------------------- |
133
+ | `runAbstractStorageAdapterSpec` (contract id `storage-adapter-spec-suite`, published) | SDK | Conformance suite | Webex storage adapter packages and `@webex/webex-core` storage tests | Published to npm; the function signature and invocation style are public API. Adding a case is a breaking change for any adapter that does not already satisfy it. | `package.json` declares the published entry points; the declaration itself is `src/index.js` |
134
+
135
+ The catalog holds exactly one contract, and that is a deliberate modeling decision rather than an
136
+ omission. The published surface has two halves: the exported function, and the storage adapter
137
+ interface it requires of its argument — `bind(namespace, options)` resolving to a handle owning
138
+ `put`, `get`, `del`, and `clear`. Consumers must implement that interface, and `README.md` documents
139
+ it to them, so it is genuinely part of the published contract rather than an internal one.
140
+
141
+ It is not registered as a second contract because it has no machine-readable artifact of its own.
142
+ This package ships no type declarations or API report, so the interface exists only as the suite's
143
+ assertions. Registering it separately would force it to name a canonical source no file can
144
+ honestly supply. Its authoritative definition is `src/index.js`, and the module spec at
145
+ `src/docs/README.md` specifies it in full.
146
+
147
+ The contract is an ecosystem-native JavaScript export, not an HTTP surface, so no OpenAPI document
148
+ applies and none is generated.
149
+
150
+ ## Cross-cutting architecture
151
+
152
+ ### Security
153
+
154
+ - Trust boundaries and identity flow: none. The package performs no authentication, authorization, or
155
+ identity propagation; `src/index.js` contains no auth or token handling.
156
+ - Sensitive surfaces and data classes: none. The values written during a run are literal fixtures
157
+ declared in `src/index.js` — a number, a single-key object, and short arrays. No real or
158
+ production-shaped data is used.
159
+ - Encryption and secret boundaries: none. No secrets are read, stored, or required; `package.json`
160
+ declares no credential-bearing configuration.
161
+
162
+ ### Observability and operations
163
+
164
+ - Logging and correlation: this package emits no logs. It *requires* consumers' adapters to accept an
165
+ `options.logger`, and supplies a no-op implementation of the `error`, `warning`, `log`, `info`,
166
+ `debug`, and `trace` methods so the requirement is exercised without producing output. Evidence:
167
+ `src/index.js`.
168
+ - Metrics, traces, and audit signals: none are produced or required.
169
+ - Ownership and operational entry points: none. The package has no runtime, so it has no dashboards,
170
+ alerts, or runbooks. Its only operational surface is the publish step in `package.json`.
171
+
172
+ ### Quality attributes
173
+
174
+ The measurable expectations for this package are compatibility expectations, not runtime ones:
175
+
176
+ - **Contract stability.** The default export's signature and call style are published API. Adding a
177
+ case tightens the contract for every consumer; removing one silently weakens guarantees adapters
178
+ were relying on.
179
+ - **Consumer executability.** The suite must remain declarable by every consumer's runner. Today this
180
+ means a Jest-compatible runner, because `src/index.js` uses the `beforeAll` global.
181
+ - **Footprint.** The published artifact is a single transpiled module with one workspace runtime
182
+ dependency, declared in `package.json`.
183
+
184
+ <!-- Include if: modules inherit a shared or base library stack. [condition-id: repo.shared_base_libs] -->
185
+
186
+ ## Shared and base libraries
187
+
188
+ | Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
189
+ | ------- | ------------------------ | --------------- | ------------- | ------------------ |
190
+ | `@webex/test-helper-chai` | The `assert` interface used by every case, including `assert.isRejected` for promise rejection and `assert.deepEqual` for value fidelity | Conformance suite | Workspace version | Tracks the workspace; a change to its assertion semantics changes what the contract enforces |
191
+ | `@webex/babel-config-legacy` | Transpilation settings, re-exported by `babel.config.js` | Build command | Workspace version | Tracks the workspace |
192
+ | `@webex/eslint-config-legacy` | Lint rules, re-exported by `.eslintrc.js` with `root: true` | Lint command | Workspace version | Tracks the workspace |
193
+ | `@webex/jest-config-legacy` | Jest settings, re-exported by `jest.config.js` | Consumers' runs | Workspace version | Tracks the workspace |
194
+ | `@webex/legacy-tools` | The `webex-legacy-tools` build and browser-test executables | Build and browser-test commands | Workspace version | Tracks the workspace |
195
+
196
+ <!-- Include if: the repository is a monorepo containing multiple packages. [condition-id: repo.is_monorepo] -->
197
+
198
+ ## Package map and inter-package dependencies
199
+
200
+ This package is one component of the webex-js-sdk monorepo. Its dependency and all of its consumers
201
+ are sibling workspace packages in the same Git repository, resolved through workspace ranges rather
202
+ than a registry. The table covers only the packages that participate in this contract.
203
+
204
+ | Package | Visibility | Responsibility | Depends on | Consumers |
205
+ | --------- | ----------------- | -------------- | ---------- | ----------- |
206
+ | `@webex/storage-adapter-spec` | Public | Owns the storage-adapter contract as an executable suite | `@webex/test-helper-chai` | The four packages below |
207
+ | `@webex/webex-core` | Public | Runs the suite under Node against its in-memory adapter | `@webex/storage-adapter-spec` | — |
208
+ | `@webex/storage-adapter-local-storage` | Public | Runs the suite against browser local storage | `@webex/storage-adapter-spec` | — |
209
+ | `@webex/storage-adapter-local-forage` | Public | Runs the suite against a localForage-backed store | `@webex/storage-adapter-spec` | — |
210
+ | `@webex/storage-adapter-session-storage` | Public | Runs the suite against browser session storage | `@webex/storage-adapter-spec` | — |
211
+
212
+ The dependency direction is one-way and must stay that way: consumers depend on this package, and
213
+ this package must never depend on an adapter.
214
+
215
+ The load is not evenly distributed, and that matters for verification. Of the four consumers, only
216
+ `@webex/webex-core` executes the suite under Node. Local-storage and session-storage wrap their calls
217
+ in a Node skip, so their unit commands exit zero without running a single case. Local-forage also
218
+ uses the Node-skip wrapper in its test source but defines no unit command, so invoking `test:unit`
219
+ fails before collection. Under Node, one sibling package carries the entire contract. Verified
220
+ 2026-10-01; see
221
+ [getting started](getting-started.md) for the exact commands and their measured behavior.
222
+
223
+ Because the verifying package is a sibling rather than this package, no command declared in this
224
+ package's own `package.json` can exercise the contract. That asymmetry is the defining delivery
225
+ constraint here, and it is a workspace-internal one, not a cross-repository one.
226
+
227
+ <!-- Include if: the repository targets multiple runtime or host platforms. [condition-id: repo.multi_platform] -->
228
+
229
+ ## Platform matrix
230
+
231
+ | Platform | Shared versus platform-specific boundary | Entry or build | Support and compatibility constraints |
232
+ | ---------- | ---------------------------------------- | ------------------- | ------------------------------------- |
233
+ | Node.js | Fully shared — `src/index.js` contains no platform branch | `yarn workspace @webex/storage-adapter-spec build` | `package.json` `engines` requires Node `>=18` |
234
+ | Browser | Fully shared — the same module, transpiled and bundled | `yarn workspace @webex/storage-adapter-spec test:browser` | `process` declares `{browser: true}` and `package.json` configures a browserify transform |
235
+
236
+ The suite has no platform-specific code path. Platform differences belong to the adapters that
237
+ consume it: a browser-only adapter is skipped in Node by its own test file, not by this suite.
238
+
239
+ <!-- Include if: the repository publishes a package or consumer artifact. [condition-id: repo.published_package] -->
240
+
241
+ ## Release and versioning
242
+
243
+ | Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
244
+ | -------- | -------------- | --------------- | ------------------ | --------------------------------- |
245
+ | `@webex/storage-adapter-spec` | npm, via the publish command in `package.json` | Version is not declared in this package's `package.json`; it is assigned by the workspace release process | Not declared in this package | Tightening the contract obliges a coordinated update across consuming adapter packages before release |
246
+
247
+ <!-- Include if: the repository exposes commands, generators, or stable file outputs. [condition-id: repo.exposes_commands_or_artifacts] -->
248
+
249
+ ## Commands and generated artifacts
250
+
251
+ | Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
252
+ | ------------------- | ---------- | ------------------------- | --------------------- | ---------------------- |
253
+ | `build` / `build:src` | Conformance suite | `src/`, `babel.config.js` | Transpiled module plus source maps in the package's `dist` output directory | The transpiled default export is the published surface; `main` resolves to it |
254
+ | `test:style` | Conformance suite | `src/`, `.eslintrc.js` | Lint diagnostics only | The package's only self-owned verification command |
255
+ | `deploy:npm` | Conformance suite | The built output directory | Publishes the package to npm | Publishing a tightened contract breaks adapters that have not been updated |
256
+ | `test` | Conformance suite | — | Fails: it invokes `test:unit` and `test:integration`, which `package.json` does not define | Known stale aggregate command; do not use it |
257
+ | `test:browser` | Conformance suite | — | Defined in `package.json`, but no test file exists in this package for the runner to collect | Retained for parity with sibling adapter packages |
258
+
259
+ The build output directory is regenerated and git-ignored; it is never edited by hand.
260
+
261
+ ## Domain language
262
+
263
+ | Term | Repository-specific meaning | Authoritative source |
264
+ | ------ | --------------------------- | ------------------------- |
265
+ | Adapter | The object under test. It is not itself a store; it binds a namespace and returns a handle onto one. | `src/index.js` |
266
+ | Bind | The single entry operation. It takes a namespace and an options object carrying a logger, and resolves to the handle that owns the key operations. | `src/index.js` |
267
+ | Bound | The handle returned by a successful bind. It owns `put`, `get`, `del`, and `clear` for one namespace. | `src/index.js` |
268
+ | Namespace | The isolation boundary. The same key in two namespaces refers to two independent values. | `src/index.js` |
269
+ | Conformance suite | The exported function itself: a set of declared cases that an adapter must pass to be considered a valid Webex storage adapter. | `src/index.js` |
270
+
271
+ ## References and maintenance
272
+
273
+ - Decisions: [adr/](adr/)
274
+ - Instantiated specifications and routing: [specs/README.md](specs/README.md)
275
+ - Repository rules and patterns: [repository agent instructions](../AGENTS.md)
276
+ - Update this document in the same change that alters repository boundaries,
277
+ resource ownership, cross-resource interaction, or cross-cutting
278
+ architecture.
@@ -0,0 +1,129 @@
1
+ ---
2
+ type: Getting Started
3
+ title: Getting started
4
+ description: Local setup, build, run, and test routing for @webex/storage-adapter-spec.
5
+ tags: [onboarding]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: getting-started@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rsarika@cisco.com
12
+ updated_at: 2026-10-01T04:15:02Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Getting started
17
+
18
+ Onboarding for **@webex/storage-adapter-spec**.
19
+
20
+ One thing to know before anything else: this package holds no test file and no process to run. It
21
+ exports a conformance suite that sibling workspace packages execute. Verifying a change here means
22
+ running a *consumer's* tests — and only one of them actually runs it under Node.
23
+
24
+ ## Prerequisites
25
+
26
+ | Tool or access | Version or requirement |
27
+ | -------------------------------------- | ---------------------- |
28
+ | Node.js | `>=18`, declared in `package.json` `engines` |
29
+ | Yarn | Workspaces are used, so install from the workspace root rather than this directory |
30
+ | Container, registry, VPN, or account | N/A — no external account or network access is required to build or lint this package |
31
+
32
+ ## Install
33
+
34
+ Dependencies are resolved for the whole workspace, not per package:
35
+
36
+ ```bash
37
+ yarn install
38
+ ```
39
+
40
+ Run it from the workspace root. This package's `@webex/*` dependencies resolve to workspace siblings.
41
+
42
+ ## Build
43
+
44
+ ```bash
45
+ yarn workspace @webex/storage-adapter-spec build
46
+ ```
47
+
48
+ This transpiles `src/` into the package's git-ignored output directory with source maps, using the
49
+ settings re-exported by `babel.config.js`. The published entry point resolves to that output.
50
+
51
+ ## Run
52
+
53
+ Not applicable. This package has no runnable process, server, or CLI — it is a library consumed at
54
+ test time. `package.json` declares no start command.
55
+
56
+ ## Tests
57
+
58
+ ```bash
59
+ yarn workspace @webex/webex-core test:unit --targets storage/storage-adapter.js
60
+ ```
61
+
62
+ That sibling command is what actually executes this package's suite. Measured 2026-10-01: **21 of 21
63
+ cases executed and passed.**
64
+
65
+ The only verification command this package itself owns is `test:style`, and it only lints.
66
+
67
+ Three commands will not do what their names suggest:
68
+
69
+ - `test` chains `test:style && test:unit && test:integration && test:browser`, but this package
70
+ defines neither `test:unit` nor `test:integration`. It fails after the lint step with
71
+ `Couldn't find a script named "test:unit"`.
72
+ - `test:browser` is defined, but this package contains no test file for the runner to collect.
73
+ - `yarn workspace @webex/storage-adapter-local-storage test:unit` and
74
+ `yarn workspace @webex/storage-adapter-session-storage test:unit` both exit zero and look like
75
+ passes, but each consumer wraps its call in a Node skip. Measured 2026-10-01: each reported 21
76
+ tests and **skipped all 21**.
77
+ - `yarn workspace @webex/storage-adapter-local-forage test:unit` does not run at all because that
78
+ package defines no `test:unit` script. Measured 2026-10-01: Yarn stopped with
79
+ `Couldn't find a script named "test:unit"`. Its test source also uses `skipInNode`, and its defined
80
+ conformance route is the browser runner.
81
+
82
+ None of those three commands provides Node evidence that the contract holds.
83
+
84
+ Use the table as the repository-level test router. List only tiers that
85
+ actually exist; behavioral intent belongs in the owning module specifications and exact
86
+ cases remain in the repository's native test sources.
87
+
88
+ | Tier | Command | Test location | Framework | External dependencies |
89
+ | ------------ | -------------------- | ------------- | ----------- | ----------------------------------- |
90
+ | Lint | `yarn workspace @webex/storage-adapter-spec test:style` | `src/` | ESLint via `.eslintrc.js` | None |
91
+ | Contract (Node) | `yarn workspace @webex/webex-core test:unit --targets storage/storage-adapter.js` | The sibling `@webex/webex-core` storage test tree | Jest, asserting through `@webex/test-helper-chai` | That package's in-memory adapter; nothing external |
92
+ | Contract (browser only) | Each browser adapter's own browser runner | Those sibling packages' test trees | Karma | A browser environment — all three skip entirely under Node |
93
+
94
+ - Coverage or quality gate: N/A — no coverage gate applies to this package, confirmed by the package
95
+ owner during onboarding. No threshold is enforced in this package's build.
96
+ - Enforcement source: none. `jest.config.js` re-exports the workspace configuration and adds no
97
+ threshold, and `package.json` defines no coverage command.
98
+ - Test environment or QA dependencies: none owned here. The environment belongs to whichever consumer
99
+ package runs the suite.
100
+
101
+ ## Configuration and secrets
102
+
103
+ - Required configuration: none. `package.json` declares no environment variables or config files.
104
+ - Secret source: N/A — the package reads no secrets.
105
+ - Package or artifact access: publishing uses the workspace's npm credentials through the publish
106
+ command in `package.json`; no credentials are needed to build or lint.
107
+ - Required neighboring repositories or workspace layout: this package must be installed as part of
108
+ the workspace so its `@webex/*` dependencies resolve. Building it in isolation will fail.
109
+ - Platform, simulator, device, or SDK setup: N/A.
110
+ - Never commit credentials or copy production secrets into a local config.
111
+
112
+ ## First-run verification
113
+
114
+ 1. Run `yarn workspace @webex/storage-adapter-spec test:style`.
115
+ 2. Run `yarn workspace @webex/storage-adapter-spec build` and confirm the output directory is
116
+ regenerated.
117
+ 3. Run `yarn workspace @webex/webex-core test:unit --targets storage/storage-adapter.js`.
118
+
119
+ Expected result: the lint step reports no errors, the build writes a transpiled module and source
120
+ map, and step 3 reports **21 passed**. Step 3 is the only step that proves the suite itself still
121
+ works, so read its summary line rather than trusting the exit code — a run reporting `21 skipped` has
122
+ verified nothing.
123
+
124
+ ## Next steps
125
+
126
+ - [Repository architecture](architecture.md)
127
+ - [Module specification](../src/docs/README.md) — the contract this package defines
128
+ - [Specification registry](specs/README.md)
129
+ - [Documentation index](index.md)
package/docs/index.md ADDED
@@ -0,0 +1,51 @@
1
+ ---
2
+ okf_version: '0.1'
3
+ ---
4
+ <!-- sdd-generated-metadata
5
+ doc_kind: standing-doc
6
+ generated_from: docs-index@0.3.0
7
+ generated_by: claude-code
8
+ approved_by: rsarika@cisco.com
9
+ updated_at: 2026-10-01T04:15:02Z
10
+ validation_status: pass-with-warnings
11
+ -->
12
+
13
+ # @webex/storage-adapter-spec documentation
14
+
15
+ Doc map for developers and agents.
16
+
17
+ This package publishes one thing: an executable conformance suite that every Webex storage adapter
18
+ runs against itself. If you are here to change behavior, the contract lives in the module
19
+ specification, not in this page.
20
+
21
+ ## Start here
22
+
23
+ - [Getting started](getting-started.md)
24
+ - [Repository architecture](architecture.md)
25
+ - [Module specification](../src/docs/README.md) — the conformance suite's behavior and contract
26
+
27
+ ## Decisions
28
+
29
+ - [adr/](adr/) — architectural decision records
30
+
31
+ ## Specifications and contracts
32
+
33
+ - [architecture.md](architecture.md) — canonical repository-wide architecture
34
+ - [specs/README.md](specs/README.md) — manifest-backed module and contract registry
35
+ - `src/docs/README.md` — the owning specification beside the module's code
36
+ - [adr/](adr/) — concrete architectural decisions; blank ADR templates remain under `.sdd/`
37
+
38
+ No deployable service exists in this package, so no service specification is generated. The published
39
+ contract is an npm/SDK surface whose authoritative source is `src/index.js`, not an OpenAPI document.
40
+
41
+ Use the manifest-linked native source for exact contract details: OpenAPI for published repository
42
+ HTTP APIs, route code for internal HTTP surfaces, and ecosystem-native artifacts for published SDKs.
43
+ Register and link those sources from the architecture index and owning module spec instead of copying
44
+ them into Markdown.
45
+
46
+ ## Related repository resources
47
+
48
+ - `README.md` — the package's npm-facing usage document, owned and maintained separately from this
49
+ generated documentation set.
50
+
51
+ No `ci/`, `operate/`, `diagrams/`, or runbook directories exist in this package.
@@ -0,0 +1,108 @@
1
+ ---
2
+ type: Reference
3
+ title: Specification registry
4
+ description: Canonical specification registry and change-routing guide.
5
+ tags: [specifications, registry]
6
+ ---
7
+ <!-- sdd-generated-metadata
8
+ doc_kind: standing-doc
9
+ generated_from: spec-index@0.3.0
10
+ generated_by: claude-code
11
+ approved_by: rsarika@cisco.com
12
+ updated_at: 2026-10-01T04:15:02Z
13
+ validation_status: pass-with-warnings
14
+ -->
15
+
16
+ # Specification registry
17
+
18
+ Use this page to find the canonical repository architecture and every
19
+ instantiated service and module specification plus native contract. Keep technical facts
20
+ in one owning document and use this page only for navigation, ownership,
21
+ status, and change/test routing.
22
+
23
+ Start with the [repository architecture](../architecture.md). No service specification exists here:
24
+ this package is a library published to npm, not a deployable service, so that artifact is recorded
25
+ as omitted in `.sdd/manifest.json`.
26
+
27
+ ## Document roles
28
+
29
+ | Document | Canonical ownership |
30
+ | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
31
+ | [Repository architecture](../architecture.md) | Repository boundaries, resource inventory, interactions, dependency topology, and cross-cutting architecture |
32
+ | Service specification | Not applicable — no deployable service exists in this package |
33
+ | Module specifications | Stable behavior and design at each manifest-routed `<module-path>/docs/README.md` |
34
+ | [ADR](../adr/) | A durable decision, its deciders, rationale, consequences, and supersession lineage |
35
+
36
+ ## Instantiated specification registry
37
+
38
+ | Resource | Role | Canonical path | Owner | Status | Last verified |
39
+ | ---------- | -------------------------- | ---------------------- | -------------- | --------------------------------------- | ------------- |
40
+ | Repository | Architecture | `docs/architecture.md` | Webex JS SDK storage maintainers | Active | 2026-10-01 |
41
+ | Abstract storage-adapter conformance suite | Module | `src/docs/README.md` | Webex JS SDK storage maintainers | Active | 2026-10-01 |
42
+ | `storage-adapter-spec-suite` | Contract | `package.json` | Webex JS SDK storage maintainers | Active | 2026-10-01 |
43
+
44
+ ### Module registry
45
+
46
+ One row per module in `.sdd/manifest.json`, which stays authoritative; this table is its
47
+ human-readable mirror and the reconciliation surface for `scripts/check_spec_index.py`. Copy each
48
+ Start here path from that module's `canonical_spec`; never reconstruct it from a layout example.
49
+
50
+ Modules form a tree. Carry depth with one `↳ ` prefix per module level, placed BEFORE the
51
+ backticked path and never inside it, and keep rows in depth-first order so each child follows its
52
+ parent. Depth must increase by at most one row to row; a jump means a parent row is missing. Keep
53
+ the table at four columns — depth lives in the Module cell, not a fifth column.
54
+
55
+ A child's path always begins with its parent's path, but the two need not be adjacent: source-layout
56
+ directories that are not themselves modules (`src/`, `main/`, `java/`, `res/`) sit in between and are
57
+ written out in full. They add no depth. One marker per MODULE level, never one per path segment — so
58
+ a module at `billing/src/main/java/ledger/` whose nearest module ancestor is `billing/` is depth 1
59
+ and takes a single marker.
60
+
61
+ | Module | Responsibility | Manifest coverage state | Start here |
62
+ | --- | --- | --- | --- |
63
+ | `src/` | Defines and enforces the behavioral contract every Webex storage adapter must satisfy | Untracked | `src/docs/README.md` |
64
+
65
+ Generator-side field measurement is complete: the module scored 95% (21 of 22 mandatory spec fields
66
+ PRESENT) on 2026-09-23. The module remains `Untracked` because a promotion to `Specced` is a manifest
67
+ change awaiting human approval, not because coverage is unmeasured. Independent validation reran on
68
+ a different runtime after the 2026-10-01 `upstream/next` merge and passed the gate with warnings and
69
+ zero Blocking findings. The warnings cover reasoned absent lifecycle commands and validator template
70
+ materialization; neither changes the module's documented behavior.
71
+
72
+ ## Change and verification routing
73
+
74
+ | Change affects | Load and update | Verification route |
75
+ | ------------------------------------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------ |
76
+ | Repository boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | Repository test routing and affected owner specs |
77
+ | A deployable service surface or operating posture | Not applicable — no deployable service exists in this package | Not applicable |
78
+ | A stable code, package, or component boundary | Its module spec | Module tests plus affected contracts |
79
+ | A public API, event, command, package, or file contract | The owning architecture/service/module section plus the native definition | Compatibility and contract tests |
80
+
81
+ One routing caveat is specific to this package: its unit tier is satisfied by a sibling workspace
82
+ package, not by any command declared here. Any change to `src/` is verified with the manifest's
83
+ `contract-verify` command, which runs the suite inside `@webex/webex-core`. The three browser-backed
84
+ adapter packages cannot serve as the Node verification route: local-storage and session-storage
85
+ skip all cases, while local-forage defines no `test:unit` command. See
86
+ [getting started](../getting-started.md).
87
+
88
+ ## Module and contract registration
89
+
90
+ Generate each module specification directly at the exact `modules[].canonical_spec` path recorded in
91
+ `.sdd/manifest.json` (default `<module-path>/docs/README.md`). Never copy a visible module starter or
92
+ reconstruct a path from an example. Register every module and submodule in the Module registry above
93
+ in manifest tree order.
94
+
95
+ Register each contract with a stable identity, `published` or `internal` publication state, canonical
96
+ native source, and owning-module link. A published repository-owned HTTP surface must reuse an
97
+ existing OpenAPI source or populate the selected root `api-specs/openapi.yaml`; route code alone is
98
+ valid only for an internal HTTP surface. Published SDK/package surfaces retain their ecosystem-native
99
+ API artifact and do not require OpenAPI. This page provides navigation and ownership rather than a
100
+ copied contract.
101
+
102
+ One contract is registered here, owned by `src/`, published, and defined in JavaScript rather than
103
+ HTTP. It resolves through the ecosystem-native package manifest. The storage adapter interface that
104
+ consumers implement is the argument half of that same contract rather than a separate entry, because
105
+ it has no machine-readable artifact of its own; see
106
+ [architecture](../architecture.md#public-and-consumer-surfaces) for why, and the module spec for its
107
+ full specification. No OpenAPI document applies, which is why `api-specs/openapi.yaml` is recorded as
108
+ omitted.
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  ]
20
20
  },
21
21
  "dependencies": {
22
- "@webex/test-helper-chai": "3.12.0"
22
+ "@webex/test-helper-chai": "3.13.0"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "yarn build:src",
@@ -35,12 +35,12 @@
35
35
  "@webex/eslint-config-legacy": "0.0.0",
36
36
  "@webex/jest-config-legacy": "0.0.0",
37
37
  "@webex/legacy-tools": "0.0.0",
38
- "@webex/test-helper-chai": "3.12.0",
39
- "@webex/test-helper-mocha": "3.12.0",
40
- "@webex/test-helper-mock-webex": "3.12.0",
41
- "@webex/test-helper-test-users": "3.12.0",
38
+ "@webex/test-helper-chai": "3.13.0",
39
+ "@webex/test-helper-mocha": "3.13.0",
40
+ "@webex/test-helper-mock-webex": "3.13.0",
41
+ "@webex/test-helper-test-users": "3.13.0",
42
42
  "eslint": "^8.24.0",
43
43
  "prettier": "^2.7.1"
44
44
  },
45
- "version": "3.12.0"
45
+ "version": "3.13.0"
46
46
  }