@webex/internal-plugin-ediscovery 3.13.0-next.1 → 3.13.0-next.10
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 +477 -0
- package/.sdd/manifest.json +402 -0
- package/AGENTS.md +213 -0
- package/dist/ediscovery.js +1 -1
- package/docs/adr/0001-retain-product-readme.md +95 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +296 -0
- package/docs/getting-started.md +104 -0
- package/docs/index.md +42 -0
- package/docs/specs/README.md +69 -0
- package/package.json +10 -10
- package/schemas/repo-context.schema.json +796 -0
- package/src/docs/README.md +589 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ADR
|
|
3
|
+
title: ADR-0001 - Retain the product README
|
|
4
|
+
description: SDD onboarding keeps README.md as product documentation and does not route it as a spec source.
|
|
5
|
+
tags: [adr]
|
|
6
|
+
timestamp: 2026-11-12T00:00:00Z
|
|
7
|
+
status: accepted
|
|
8
|
+
---
|
|
9
|
+
<!-- sdd-generated-metadata
|
|
10
|
+
doc_kind: standing-doc
|
|
11
|
+
generated_from: adr@0.3.0
|
|
12
|
+
generated_by: claude-code
|
|
13
|
+
approved_by: rarajes2@cisco.com
|
|
14
|
+
updated_at: 2026-11-12T06:44:53Z
|
|
15
|
+
validation_status: pass
|
|
16
|
+
-->
|
|
17
|
+
|
|
18
|
+
# ADR-0001 - Retain the product README
|
|
19
|
+
|
|
20
|
+
| Field | Value |
|
|
21
|
+
| ------------- | ----- |
|
|
22
|
+
| Status | Accepted |
|
|
23
|
+
| Decision date | 2026-11-12 |
|
|
24
|
+
| Deciders | rarajes2@cisco.com (bootstrap questionnaire) |
|
|
25
|
+
| Supersedes | N/A |
|
|
26
|
+
| Superseded by | N/A |
|
|
27
|
+
|
|
28
|
+
## Context
|
|
29
|
+
|
|
30
|
+
Onboarding found one existing document, `README.md`. It is the npm usage page: an install command, an
|
|
31
|
+
import of the package, and a usage block that reads `webex.internal.plugin.ediscovery.WHATEVER`, which is
|
|
32
|
+
a placeholder rather than an API (the plugin is reached as `webex.internal.ediscovery`). Its test
|
|
33
|
+
commands, `yarn run test --packages @webex/internal-plugin-ediscovery` with `--grep`, `--unit`, and
|
|
34
|
+
`--karmaDebug` flags, do not match the scripts in `package.json`, which are `test:unit`, `test:style`,
|
|
35
|
+
and `test:browser:broken`.
|
|
36
|
+
|
|
37
|
+
The implementation in `src/ediscovery.js` and `src/transforms.js` has eleven request and cache methods,
|
|
38
|
+
seven payload transforms, a retry policy, and two error classes. The README describes none of them. No
|
|
39
|
+
other intent, design, or AI-authored spec exists in this package.
|
|
40
|
+
|
|
41
|
+
## Decision
|
|
42
|
+
|
|
43
|
+
Keep `README.md` unchanged. Do not migrate it into the module specification. Record
|
|
44
|
+
`spec_source_policy.mode` as `keep-separate` with `migrated_source_disposition` `retain` and an empty
|
|
45
|
+
`spec_sources` list.
|
|
46
|
+
|
|
47
|
+
The canonical behavior is `src/` plus `test/`. Where the README is silent or differs, code wins.
|
|
48
|
+
|
|
49
|
+
## Why
|
|
50
|
+
|
|
51
|
+
The README is the npm-facing page and carries no behavioral claim that the module specification would
|
|
52
|
+
need to preserve. Its one durable statement, that internal plugins do not strictly follow semantic
|
|
53
|
+
versioning, is cited where the module specification describes export stability. Rewriting the page is a
|
|
54
|
+
product-doc change, not a requirement of making the package SDD-ready.
|
|
55
|
+
|
|
56
|
+
## Alternatives considered
|
|
57
|
+
|
|
58
|
+
| Alternative | Why it was not selected |
|
|
59
|
+
| ----------- | ----------------------- |
|
|
60
|
+
| Migrate the README into `src/docs/README.md` and delete it | The page holds no behavioral content to migrate, and deletion was not requested |
|
|
61
|
+
| Replace the README placeholder and test commands during onboarding | Onboarding writes the SDD tree only and does not edit `README.md` |
|
|
62
|
+
|
|
63
|
+
## Consequences
|
|
64
|
+
|
|
65
|
+
**Positive:**
|
|
66
|
+
|
|
67
|
+
- The npm page stays stable for consumers.
|
|
68
|
+
- The module specification is the single behavioral reference.
|
|
69
|
+
|
|
70
|
+
**Negative / tradeoffs:**
|
|
71
|
+
|
|
72
|
+
- Agents must not treat `README.md` as the list of methods or as the way to run tests.
|
|
73
|
+
- The `WHATEVER` placeholder and the stale test commands stay until a maintainer makes a separate
|
|
74
|
+
product-doc change.
|
|
75
|
+
|
|
76
|
+
## Constraint on future changes
|
|
77
|
+
|
|
78
|
+
Do not delete `README.md` as part of spec maintenance. If its usage text changes, keep the module
|
|
79
|
+
specification aligned with code rather than with the README.
|
|
80
|
+
|
|
81
|
+
## Follow-up
|
|
82
|
+
|
|
83
|
+
- [ ] None required for onboarding.
|
|
84
|
+
|
|
85
|
+
## Revisit when
|
|
86
|
+
|
|
87
|
+
- A maintainer chooses to document the plugin methods or the real test commands on the npm page.
|
|
88
|
+
|
|
89
|
+
## References
|
|
90
|
+
|
|
91
|
+
- `README.md`
|
|
92
|
+
- `package.json`
|
|
93
|
+
- `src/index.js`
|
|
94
|
+
- `src/ediscovery.js`
|
|
95
|
+
- `.sdd/manifest.json` `spec_source_policy`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: standing-doc
|
|
3
|
+
generated_from: adr-index@0.3.0
|
|
4
|
+
generated_by: claude-code
|
|
5
|
+
approved_by: rarajes2@cisco.com
|
|
6
|
+
updated_at: 2026-11-12T06:44:53Z
|
|
7
|
+
validation_status: pass
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# Architectural decision records
|
|
11
|
+
|
|
12
|
+
Numbered, append-only records of structural decisions affecting this package and its documentation.
|
|
13
|
+
Add a concrete ADR (for example, `0042-cache-policy.md`) when a decision is non-obvious, hard to
|
|
14
|
+
reverse, or worth explaining to a future contributor. Do not edit an accepted decision in place when
|
|
15
|
+
its outcome changes; supersede it with a new ADR and link both records.
|
|
16
|
+
|
|
17
|
+
## Index
|
|
18
|
+
|
|
19
|
+
- [ADR-0001 - Retain the product README](0001-retain-product-readme.md) — accepted 2026-11-12
|
|
20
|
+
|
|
21
|
+
Add new entries as ADRs are accepted. Keep this list in numeric order.
|
|
22
|
+
|
|
23
|
+
Each ADR should state its context, decision, alternatives, consequences, and the condition that would
|
|
24
|
+
cause the team to revisit it. Record the deciders, any superseded decision, and the constraint future
|
|
25
|
+
changes must preserve.
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Architecture
|
|
3
|
+
title: '@webex/internal-plugin-ediscovery architecture'
|
|
4
|
+
description: Package-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: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-12T06:44:53Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# @webex/internal-plugin-ediscovery architecture
|
|
17
|
+
|
|
18
|
+
Canonical architecture for this package. Request and transform behavior lives in the
|
|
19
|
+
[eDiscovery plugin specification](../src/docs/README.md). This page owns package boundaries, the plugin
|
|
20
|
+
registration, the contract index, and how the package meets the rest of the SDK and its services.
|
|
21
|
+
|
|
22
|
+
Related context: [specification registry](specs/README.md) ·
|
|
23
|
+
[package agent instructions](../AGENTS.md)
|
|
24
|
+
|
|
25
|
+
## Applicability
|
|
26
|
+
|
|
27
|
+
| Condition ID | Status | Evidence or reason | Owned section |
|
|
28
|
+
| ------------------------------------ | ---------- | ------------------ | ------------- |
|
|
29
|
+
| `repo.owns_datastore` | N/A | No database, file store, or migration; the cache in `src/ediscovery.js` is in memory | Repository data and schema |
|
|
30
|
+
| `repo.holds_client_state` | Applicable | Session property contentContainerCache in `src/ediscovery.js` | Client state model |
|
|
31
|
+
| `repo.components_interact` | Applicable | `src/index.js` wires `src/transforms.js` into webex-core, and the transforms call back into `src/ediscovery.js` | Dependency and interaction topology |
|
|
32
|
+
| `repo.domain_data_across_components` | Applicable | Containers fetched by `src/ediscovery.js` supply the key user that `src/transforms.js` needs to decrypt activities | Object and data ownership |
|
|
33
|
+
| `repo.caches_data` | Applicable | contentContainerCache in `src/ediscovery.js` | Caching catalog |
|
|
34
|
+
| `repo.observability_convention` | Applicable | this.logger and ctx.webex.logger messages in `src/ediscovery.js` and `src/transforms.js`; console.error in `src/retry.js` | Observability patterns |
|
|
35
|
+
| `repo.deploys_to_infra` | N/A | Library published to npm (`package.json`). No service runtime | Runtime and infrastructure |
|
|
36
|
+
| `repo.shared_base_libs` | Applicable | Extends WebexPlugin from webex-core and uses the legacy build, lint, and test stack (`babel.config.js`, `jest.config.js`, `.eslintrc.js`) | Shared and base libraries |
|
|
37
|
+
| `repo.is_monorepo` | N/A | This SDD root is one package. The workspace around it is out of scope | Package map and inter-package dependencies |
|
|
38
|
+
| `repo.multi_platform` | N/A | No platform-specific code path in `src/index.js`, `src/ediscovery.js`, or `src/transforms.js`; the browserify transform in `package.json` only packages the same source | Platform matrix |
|
|
39
|
+
| `repo.published_package` | Applicable | `package.json` name is @webex/internal-plugin-ediscovery and deploy:npm publishes it | Release and versioning |
|
|
40
|
+
| `repo.embedded_in_host` | N/A | No host theme or embed API in `src/ediscovery.js` | Host integration and theming |
|
|
41
|
+
| `repo.exposes_commands_or_artifacts` | Applicable | build:src in `package.json` writes dist | Commands and generated artifacts |
|
|
42
|
+
| `repo.cross_repo_deps_material` | Applicable | Behavior depends on the eDiscovery service, KMS through the encryption plugin, and the webex-core transform pipeline (`src/ediscovery.js`, `src/transforms.js`) | Cross-repository topology |
|
|
43
|
+
| `repo.security_arch_warranted` | Applicable | Report search terms, compliance content, KMS keys, and decryption on behalf of other users pass through `src/transforms.js` | Security architecture |
|
|
44
|
+
|
|
45
|
+
## Design overview
|
|
46
|
+
|
|
47
|
+
`@webex/internal-plugin-ediscovery` is a published internal plugin library with one module. Importing it
|
|
48
|
+
registers the encryption and conversation plugins and then `EDiscovery` as the internal plugin
|
|
49
|
+
`ediscovery`, together with a payload transformer of seven predicates and transforms. No other package in
|
|
50
|
+
this monorepo imports it; first-party compliance clients do.
|
|
51
|
+
|
|
52
|
+
The package owns the client side of the eDiscovery service: report record calls, paged content and
|
|
53
|
+
container reads by report UUID or remote report URL, and the encryption and decryption that make those
|
|
54
|
+
payloads usable. Report execution and storage stay in the service; key storage and cryptography stay in
|
|
55
|
+
the encryption plugin and KMS; transport and transform orchestration stay in webex-core.
|
|
56
|
+
|
|
57
|
+
The package makes outbound calls only. It serves no routes and persists nothing; its one piece of state is
|
|
58
|
+
an in-memory container cache.
|
|
59
|
+
|
|
60
|
+
## Resource inventory and responsibilities
|
|
61
|
+
|
|
62
|
+
| Resource | Kind | Responsibility | Owner | Source | Detailed specification |
|
|
63
|
+
| -------- | ---- | -------------- | ----- | ------ | ---------------------- |
|
|
64
|
+
| eDiscovery plugin | package (one module) | Report record calls, content and container reads, container cache, report-request encryption, report, activity, and container decryption | @webex/web-sdk | src | [`src/docs/README.md`](../src/docs/README.md) |
|
|
65
|
+
|
|
66
|
+
## Interaction and execution flows
|
|
67
|
+
|
|
68
|
+
Representative end-to-end flow: a compliance client creates a report, then downloads its content.
|
|
69
|
+
|
|
70
|
+
```mermaid
|
|
71
|
+
flowchart LR
|
|
72
|
+
Client[Compliance client] -->|createReport| ED[EDiscovery plugin]
|
|
73
|
+
ED -->|outbound transform| Enc[encryption plugin and KMS]
|
|
74
|
+
ED -->|POST reports| Svc[eDiscovery service]
|
|
75
|
+
Client -->|getContentContainer, getContent| ED
|
|
76
|
+
ED -->|GET contents| Svc
|
|
77
|
+
Svc -->|activities and containers| Tx[Inbound transforms]
|
|
78
|
+
Tx -->|container lookup| ED
|
|
79
|
+
Tx -->|decrypt on behalf of user| Enc
|
|
80
|
+
Tx -->|decrypted or annotated payload| Client
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| From | To | Interaction or transport | Purpose | Failure or compatibility behavior |
|
|
84
|
+
| ---- | -- | ------------------------ | ------- | --------------------------------- |
|
|
85
|
+
| Compliance client | eDiscovery plugin | In-process calls | Manage reports, read content and containers | Argument errors and HTTP errors reject |
|
|
86
|
+
| eDiscovery plugin | eDiscovery service | HTTPS through `webex.request`, by service name or report URL | Reports, content, containers, client config, audit event | No retry; 30 s default timeout |
|
|
87
|
+
| webex-core transforms | `src/transforms.js` | Registered predicates and transforms | Encrypt outbound report requests, decrypt inbound payloads | Encryption failure rejects; decryption failure annotates the payload |
|
|
88
|
+
| `src/transforms.js` | eDiscovery plugin | `getContentContainerByContainerId` | Container data for activity decryption | Lookup failure annotates the activity |
|
|
89
|
+
| `src/transforms.js` | Encryption plugin and KMS | In-process calls | Keys, JWE text, SCRs | 429, 502, 503, 504 retried up to three times |
|
|
90
|
+
|
|
91
|
+
## Dependency topology
|
|
92
|
+
|
|
93
|
+
| Dependency | Type | Used by | Purpose | Version, failure, or fallback policy |
|
|
94
|
+
| ---------- | ---- | ------- | ------- | ------------------------------------ |
|
|
95
|
+
| `@webex/webex-core` | Internal | `src/index.js`, `src/ediscovery.js` | Plugin base, registration, request, `waitForValue`, transform pipeline | Workspace version (`workspace:*` in `package.json`) |
|
|
96
|
+
| `@webex/common` | Internal | `src/ediscovery.js`, `src/ediscovery-error.js` | `oneFlight`, `Exception` | Workspace version |
|
|
97
|
+
| `@webex/internal-plugin-encryption` | Internal | `src/index.js`, `src/transforms.js` (through `webex.internal.encryption`) | Encryption, decryption, KMS keys | Workspace version |
|
|
98
|
+
| `@webex/internal-plugin-conversation` | Internal | `src/index.js` | Import side effect registering internal plugin `conversation` | Workspace version |
|
|
99
|
+
| `@webex/internal-plugin-mercury` | Internal | Not imported by `src/` (only `test/unit/spec/report.js`) | None at runtime | Workspace version |
|
|
100
|
+
| `lodash` | External | `src/index.js` | `has` | `^4.17.21` in `package.json` |
|
|
101
|
+
| `uuid` | External | Not imported by `src/` (only `test/integration/spec/ediscovery.js`) | None at runtime | `^3.3.2` in `package.json` |
|
|
102
|
+
| eDiscovery service | External service | `src/ediscovery.js` | Report and content API | Service name `ediscovery` from the catalog, or the report URL |
|
|
103
|
+
| KMS | External service | `src/transforms.js` through the encryption plugin | Keys | Retries in `src/retry.js` |
|
|
104
|
+
|
|
105
|
+
No import cycle exists: this package imports webex-core, common, encryption, and conversation, and none of
|
|
106
|
+
them imports this package.
|
|
107
|
+
|
|
108
|
+
## Public and consumer surfaces
|
|
109
|
+
|
|
110
|
+
| Surface | Type | Owner | Consumers | Compatibility policy | Source |
|
|
111
|
+
| ------- | ---- | ----- | --------- | -------------------- | ------ |
|
|
112
|
+
| `ediscovery-sdk` — package @webex/internal-plugin-ediscovery: import side effect registering internal plugin `ediscovery` and its seven payload predicates and transforms | SDK, published to npm as an internal plugin | eDiscovery plugin | First-party compliance clients | Internal plugin; `README.md` states it does not strictly follow semantic versioning | `package.json`, `src/index.js` |
|
|
113
|
+
| `ediscovery-sdk` — package exports: default `EDiscovery`; named `ReportRequest`, `EdiscoveryError`, `InvalidEmailAddressError`, and `config` (resolves to `undefined`) | SDK export | eDiscovery plugin | First-party compliance clients | Same | `src/index.js`, `src/report-request.js`, `src/ediscovery-error.js`, `src/config.js` |
|
|
114
|
+
| `ediscovery-sdk` — report record methods on `webex.internal.ediscovery`: `createReport`, `getReport`, `getReports`, `deleteReport`, `restartReport`, `getClientConfig`, `postAuditLog` | SDK plugin API | eDiscovery plugin | First-party compliance clients | Same | `src/ediscovery.js` |
|
|
115
|
+
| `ediscovery-sdk` — content methods on `webex.internal.ediscovery`: `getContent`, `getContentContainer`, `getContentContainerByContainerId` (report UUID or report URL) | SDK plugin API | eDiscovery plugin | First-party compliance clients; the activity decryption transform calls `getContentContainerByContainerId` | Same | `src/ediscovery.js`, `src/transforms.js` |
|
|
116
|
+
| `ediscovery-sdk` — cache surface on `webex.internal.ediscovery`: `clearCache()` and session property `contentContainerCache` | SDK plugin API | eDiscovery plugin | First-party compliance clients | Same | `src/ediscovery.js` |
|
|
117
|
+
|
|
118
|
+
Arguments, responses, and failure behavior of each method are owned by the
|
|
119
|
+
[module specification](../src/docs/README.md#public-surface).
|
|
120
|
+
|
|
121
|
+
The eDiscovery resources and the encrypted field sets are protocols this package consumes, described under
|
|
122
|
+
*Protocol and wire format* in the
|
|
123
|
+
[module specification](../src/docs/README.md#protocol-and-wire-format), not published contracts of this
|
|
124
|
+
package.
|
|
125
|
+
|
|
126
|
+
## Client state model
|
|
127
|
+
|
|
128
|
+
| State or slice | Owner | Transition triggers | Persistence or reset boundary |
|
|
129
|
+
| -------------- | ----- | ------------------- | ----------------------------- |
|
|
130
|
+
| `contentContainerCache` | eDiscovery plugin | Container reads write; activity decryption reads | In memory for the instance; emptied by `clearCache()` |
|
|
131
|
+
| `oneFlight` entries | `@webex/common` | Content method calls | Evicted when each call settles |
|
|
132
|
+
|
|
133
|
+
## Cross-cutting architecture
|
|
134
|
+
|
|
135
|
+
### Security
|
|
136
|
+
|
|
137
|
+
- Trust boundaries and identity flow: see [Security architecture](#security-architecture). The caller is a
|
|
138
|
+
compliance officer; content keys are fetched on behalf of the container's `onBehalfOfUser`, which needs
|
|
139
|
+
the KMS org-agent role (the integration test user is created with `spark.kms_orgagent`).
|
|
140
|
+
- Sensitive surfaces and data classes: report names, descriptions, search keywords, space names, and
|
|
141
|
+
emails; decrypted messages, file references (SCRs), shared-link ids, meeting titles, recording topics,
|
|
142
|
+
and calling numbers in `encryptedTextKeyValues`.
|
|
143
|
+
- Encryption and secret boundaries: report requests are encrypted under a new KMS key before they leave
|
|
144
|
+
the client, except `unencryptedEmails`, which the service needs to resolve user ids. Decrypted content
|
|
145
|
+
exists only in the response objects handed to the caller and in the container cache.
|
|
146
|
+
|
|
147
|
+
### Observability and operations
|
|
148
|
+
|
|
149
|
+
- Logging and correlation: warnings for unparseable invalid-email errors and cache misses; errors for
|
|
150
|
+
encryption and decryption failures naming the activity and container ids; info for unencrypted items;
|
|
151
|
+
`console.error` lines for each retry. No message logs plaintext content, but share failures log the share
|
|
152
|
+
URL, MIME type, and size.
|
|
153
|
+
- Metrics, traces, and audit signals: `postAuditLog` sends the summary-download audit event to the
|
|
154
|
+
service; nothing else is emitted.
|
|
155
|
+
- Ownership and operational entry points: `.github/CODEOWNERS` at the workspace root has no entry for this
|
|
156
|
+
package, so the default rule routes it to `@webex/web-sdk`. No dashboards or runbooks are recorded in
|
|
157
|
+
this package.
|
|
158
|
+
|
|
159
|
+
### Quality attributes
|
|
160
|
+
|
|
161
|
+
- Compatibility: compliance clients rely on the method names, the UUID-or-URL argument, and the `error`,
|
|
162
|
+
`warning`, `spaceName`, and `containerName` properties the transforms add.
|
|
163
|
+
- Footprint: seven source files; runtime imports are webex-core, common, the encryption and conversation
|
|
164
|
+
plugins, and lodash.
|
|
165
|
+
- Test confidence: 122 unit cases cover the request methods, cache, URL helpers, report-request
|
|
166
|
+
encryption and decryption, and activity decryption; registration, the array transforms, container
|
|
167
|
+
decryption, and retries have no case. No coverage threshold is enforced, and lint skips
|
|
168
|
+
`src/ediscovery.js` and `src/index.js`.
|
|
169
|
+
|
|
170
|
+
## Dependency and interaction topology
|
|
171
|
+
|
|
172
|
+
```mermaid
|
|
173
|
+
flowchart LR
|
|
174
|
+
Index[src/index.js] -->|import side effect| Enc[internal-plugin-encryption]
|
|
175
|
+
Index -->|import side effect| Conv[internal-plugin-conversation]
|
|
176
|
+
Index -->|registerInternalPlugin ediscovery| Core[webex-core]
|
|
177
|
+
Index --> ED[src/ediscovery.js]
|
|
178
|
+
Index --> Tx[src/transforms.js]
|
|
179
|
+
Index --> Cfg[src/config.js]
|
|
180
|
+
ED -->|extends WebexPlugin, request, waitForValue| Core
|
|
181
|
+
ED -->|oneFlight| Common[common]
|
|
182
|
+
ED --> Err[src/ediscovery-error.js]
|
|
183
|
+
Err -->|extends Exception| Common
|
|
184
|
+
Tx --> Retry[src/retry.js]
|
|
185
|
+
Tx -->|encrypt, decrypt, KMS| Enc
|
|
186
|
+
Tx -->|getContentContainerByContainerId| ED
|
|
187
|
+
Core -->|runs predicates and transforms| Tx
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
| From | To | Kind | Purpose | Ordering or failure boundary |
|
|
191
|
+
| ---- | -- | ---- | ------- | ---------------------------- |
|
|
192
|
+
| `src/index.js` | encryption, conversation plugins | Import | Register `encryption` and `conversation` | Before the `ediscovery` registration |
|
|
193
|
+
| `src/index.js` | webex-core | Call | Register the plugin and payload transformer | At import time; predicates join the module-level config |
|
|
194
|
+
| webex-core | `src/transforms.js` | Call | Outbound and inbound transforms | A rejected transform rejects the request |
|
|
195
|
+
| `src/transforms.js` | `src/ediscovery.js` | Call through `webex.internal.ediscovery` | Container lookup | Failure annotates the activity |
|
|
196
|
+
| `src/transforms.js` | `src/retry.js` | Import | Retry decryption | Rejects after three retries |
|
|
197
|
+
|
|
198
|
+
## Object and data ownership
|
|
199
|
+
|
|
200
|
+
| Object or state | System of record | May write | May read | Movement or lifecycle |
|
|
201
|
+
| --------------- | ---------------- | --------- | -------- | --------------------- |
|
|
202
|
+
| Report record and its report request | eDiscovery service | Service; the client through `createReport`, `restartReport`, `deleteReport` | Client after decryption | Encrypted on create, decrypted on read |
|
|
203
|
+
| Activity (report content) | eDiscovery service | Service; the inbound transform adds plaintext and annotations to the client copy | Client | Paged by `offset` and `size`, decrypted per item |
|
|
204
|
+
| Content container | eDiscovery service | Service; the inbound transform decrypts the client copy; the plugin caches it | Activity transform, client | Cached per report until `clearCache` |
|
|
205
|
+
| Report-request key | KMS | `encryptReportRequest` creates it | Service and the client through `encryptionKeyUrl` | Created per report request |
|
|
206
|
+
|
|
207
|
+
## Caching catalog
|
|
208
|
+
|
|
209
|
+
| Cache | Owner | Backend | Contents | TTL or bound | Invalidation trigger | Failure behavior |
|
|
210
|
+
| ------ | ---------- | --------- | -------- | ------------ | -------------------- | ---------------- |
|
|
211
|
+
| `contentContainerCache` | eDiscovery plugin | In-memory `Map` of report UUID to `Map` of container id | Decrypted containers (description possibly still encrypted) | None | `clearCache()` empties all reports | A miss fetches the container; a write error is logged and skipped |
|
|
212
|
+
|
|
213
|
+
## Observability patterns
|
|
214
|
+
|
|
215
|
+
| Signal | Convention or required fields | Propagation or naming rule | Primary evidence |
|
|
216
|
+
| ------- | ----------------------------- | -------------------------- | ---------------- |
|
|
217
|
+
| Logs | Error and warning messages name the activity id and container id; no plaintext content | Through `this.logger` or `ctx.webex.logger`, except retries, which use `console.error` | `src/ediscovery.js`, `src/transforms.js`, `src/retry.js` |
|
|
218
|
+
| Metrics | None | N/A | `src/ediscovery.js` |
|
|
219
|
+
| Traces | None | N/A | `src/ediscovery.js` |
|
|
220
|
+
| Audit | Summary-download audit event | `POST reports/<id>/audit/summary-download` | `src/ediscovery.js` |
|
|
221
|
+
|
|
222
|
+
## Shared and base libraries
|
|
223
|
+
|
|
224
|
+
| Library | Inherited responsibility | Consumers | Version floor | Compatibility rule |
|
|
225
|
+
| ------- | ------------------------ | --------- | ------------- | ------------------ |
|
|
226
|
+
| `@webex/webex-core` `WebexPlugin`, `waitForValue`, payload transformer | `webex`, `request`, namespaced `config`, `logger`, storage gating, transform pipeline | `EDiscovery`, `src/index.js` | `workspace:*` | Keep namespace `EDiscovery` so `config` resolves to `webex.config.ediscovery` |
|
|
227
|
+
| `@webex/common` | `oneFlight`, `Exception` | `EDiscovery`, error classes | `workspace:*` | Keep paging options in `oneFlight` keys |
|
|
228
|
+
| `@webex/babel-config-legacy`, `@webex/eslint-config-legacy`, `@webex/jest-config-legacy`, `@webex/legacy-tools` | Build, lint, and test stack through one-line config files | Package tooling | `workspace:*` | Do not fork the config locally |
|
|
229
|
+
|
|
230
|
+
## Release and versioning
|
|
231
|
+
|
|
232
|
+
| Artifact | Publish target | Versioning rule | Deprecation window | Changelog or migration obligation |
|
|
233
|
+
| -------- | -------------- | --------------- | ------------------ | --------------------------------- |
|
|
234
|
+
| @webex/internal-plugin-ediscovery | npm through `deploy:npm` | Internal plugin; not strictly semantic (`README.md`) | None declared | None declared in the package; the workspace owns changelog generation |
|
|
235
|
+
|
|
236
|
+
## Commands and generated artifacts
|
|
237
|
+
|
|
238
|
+
| Command or artifact | Owner | Inputs | Output or side effect | Compatibility boundary |
|
|
239
|
+
| ------------------- | ----- | ------ | --------------------- | ---------------------- |
|
|
240
|
+
| `yarn workspace @webex/internal-plugin-ediscovery build:src` | Package scripts | `src` | Writes `dist/` through `webex-legacy-tools` (JavaScript, TypeScript, source maps) | `dist/` is generated and never edited by hand; unit tests load it |
|
|
241
|
+
| `yarn workspace @webex/internal-plugin-ediscovery test:unit` | Package scripts | `test/unit/spec` | Jest run | Requires a current `dist/` |
|
|
242
|
+
| `yarn workspace @webex/internal-plugin-ediscovery test:style` | Package scripts | `src` | ESLint run | The shared config ignores `ediscovery.js`, `docs/**`, and `*.md`; `src/index.js` disables every rule |
|
|
243
|
+
| `yarn workspace @webex/internal-plugin-ediscovery test:browser:broken` | Package scripts | `test/integration/spec` | Karma run | Named broken; needs live services; not a routine verification command |
|
|
244
|
+
|
|
245
|
+
## Cross-repository topology
|
|
246
|
+
|
|
247
|
+
| Repository or external system | Relationship | Exchanged contract or artifact | Owner | Sequencing constraint |
|
|
248
|
+
| ----------------------------- | ------------ | ------------------------------ | ----- | --------------------- |
|
|
249
|
+
| `@webex/webex-core` (workspace sibling; module specs consulted) | Consumes | `WebexPlugin`, `registerInternalPlugin`, `waitForValue`, request, payload transformer | @webex/web-sdk | Registration at import time |
|
|
250
|
+
| `@webex/common` (workspace sibling; module spec consulted) | Consumes | `oneFlight`, `Exception` | @webex/web-sdk | None |
|
|
251
|
+
| `@webex/internal-plugin-encryption` (workspace sibling; code consulted, no spec) | Consumes | `encryptText`, `decryptText`, `decryptScr`, `kms.createUnboundKeys`, `kms.createResource` | @webex/web-sdk | Imported before the `ediscovery` registration |
|
|
252
|
+
| `@webex/internal-plugin-conversation` (workspace sibling; code consulted, no spec) | Consumes | Import side effect registering `conversation` | @webex/web-sdk | Imported before the `ediscovery` registration |
|
|
253
|
+
| eDiscovery service | Consumes | Report, content, container, client-config, and audit resources | Not recorded in this repository | Report URLs may point at a remote deployment |
|
|
254
|
+
| KMS | Consumes through the encryption plugin | Keys, on behalf of `onBehalfOfUser` | Not recorded in this repository | Retry on 429 and 5xx |
|
|
255
|
+
|
|
256
|
+
## Security architecture
|
|
257
|
+
|
|
258
|
+
```mermaid
|
|
259
|
+
flowchart LR
|
|
260
|
+
Officer[Compliance officer client] -->|report request plaintext| ED[EDiscovery plugin]
|
|
261
|
+
ED -->|create key and resource| KMS[KMS]
|
|
262
|
+
ED -->|encrypted request plus unencryptedEmails| Svc[eDiscovery service]
|
|
263
|
+
Svc -->|encrypted activities and containers, onBehalfOfUser| ED
|
|
264
|
+
ED -->|fetch keys on behalf of onBehalfOfUser| KMS
|
|
265
|
+
ED -->|plaintext or annotated items| Officer
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
- Report search parameters are encrypted with a key created for that request; only `unencryptedEmails`
|
|
269
|
+
is sent in plaintext so the service can resolve users.
|
|
270
|
+
- Activity and container content is decrypted with keys fetched on behalf of the container's
|
|
271
|
+
`onBehalfOfUser`, which requires the KMS org-agent role for the caller; CDR content in
|
|
272
|
+
`encryptedTextKeyValues` is decrypted without `onBehalfOf`.
|
|
273
|
+
- Plaintext lives only in the returned objects and the container cache; call `clearCache()` when a report
|
|
274
|
+
is finished.
|
|
275
|
+
- The outbound predicate encrypts any request body with `keywords`, `spaceNames`, or `emails`, so another
|
|
276
|
+
plugin's request with those fields is encrypted by this package once it is imported.
|
|
277
|
+
- The authoritative key and cryptography policy belongs to the encryption plugin and KMS.
|
|
278
|
+
|
|
279
|
+
## Domain language
|
|
280
|
+
|
|
281
|
+
| Term | Repository-specific meaning | Authoritative source |
|
|
282
|
+
| ---- | --------------------------- | -------------------- |
|
|
283
|
+
| Report request | Search parameters of a compliance report: name, description, emails, user ids, keywords, space names, range | `src/report-request.js` |
|
|
284
|
+
| Report content | The activities a report found, paged by `offset` and `size` | `src/ediscovery.js` |
|
|
285
|
+
| Content container | A space (or other container) referenced by activities, with its key and `onBehalfOfUser` | `src/ediscovery.js`, `src/transforms.js` |
|
|
286
|
+
| `onBehalfOfUser` | The user whose KMS access decrypts a container's content | `src/transforms.js` |
|
|
287
|
+
| Downloader | The consuming client component that writes the report and records `error` and `warning` properties | `src/transforms.js` comments |
|
|
288
|
+
| Remote report | A report addressed by its full URL rather than by UUID | `src/ediscovery.js` |
|
|
289
|
+
|
|
290
|
+
## References and maintenance
|
|
291
|
+
|
|
292
|
+
- Decisions: [adr/](adr/index.md)
|
|
293
|
+
- Instantiated specifications and routing: [specs/README.md](specs/README.md)
|
|
294
|
+
- Repository rules and patterns: [package agent instructions](../AGENTS.md)
|
|
295
|
+
- Update this document in the same change that alters package boundaries, resource ownership,
|
|
296
|
+
cross-resource interaction, or cross-cutting architecture.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Getting Started
|
|
3
|
+
title: Getting started
|
|
4
|
+
description: Local setup, build, run, and test routing for @webex/internal-plugin-ediscovery.
|
|
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: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-12T06:44:53Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Getting started
|
|
17
|
+
|
|
18
|
+
Onboarding for **@webex/internal-plugin-ediscovery**, a package inside the `webex-js-sdk` Yarn
|
|
19
|
+
workspace. Run every command from the workspace root.
|
|
20
|
+
|
|
21
|
+
## Prerequisites
|
|
22
|
+
|
|
23
|
+
| Tool or access | Version or requirement |
|
|
24
|
+
| -------------- | ---------------------- |
|
|
25
|
+
| Node.js | Use 22.14: the workspace root `AGENTS.md` requires it and the workspace `.nvmrc` selects `lts/jod` (Node 22). This package's `engines` accepts `>=18`. The workspace root `package.json` `engines.node` reads `18.x`; the unit tests pass on 22.14 |
|
|
26
|
+
| Yarn | `yarn@3.4.1` (`packageManager` in the workspace root `package.json`) |
|
|
27
|
+
| Registry or account access | N/A for building and unit tests; the integration spec needs a provisioned compliance test user and the live eDiscovery service |
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
yarn
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The workspace `deploy.yml` workflow installs with the same command.
|
|
36
|
+
|
|
37
|
+
Fresh-checkout workspace setup (building `webex-legacy-tools` and sibling `dist/`) is owned by the workspace root; see
|
|
38
|
+
[Prebuilding](../../../../CONTRIBUTING.md#prebuilding).
|
|
39
|
+
|
|
40
|
+
## Build
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
yarn workspace @webex/internal-plugin-ediscovery build
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`build` runs `build:src`, which writes `dist/` through `webex-legacy-tools`. `dist/` is ignored by Git.
|
|
47
|
+
|
|
48
|
+
## Run
|
|
49
|
+
|
|
50
|
+
N/A — this is a library with no start script. Import `@webex/internal-plugin-ediscovery` and create a
|
|
51
|
+
webex instance with a compliance officer's credentials; the plugin is then `webex.internal.ediscovery`.
|
|
52
|
+
|
|
53
|
+
## Tests
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
yarn workspace @webex/internal-plugin-ediscovery build:src
|
|
57
|
+
yarn workspace @webex/internal-plugin-ediscovery test:unit
|
|
58
|
+
yarn workspace @webex/internal-plugin-ediscovery test:style
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
| Tier | Command | Test location | Framework | External dependencies |
|
|
62
|
+
| ---- | ------- | ------------- | --------- | --------------------- |
|
|
63
|
+
| Unit | `yarn workspace @webex/internal-plugin-ediscovery test:unit` | `test/unit/spec` | jest runner through `webex-legacy-tools`, with chai, sinon, and `@webex/test-helper-mock-webex` | A current `dist/` (the specs import the package by name) |
|
|
64
|
+
| Integration | No package script runs it | `test/integration/spec` | mocha-style spec | Live eDiscovery service; a compliance test user created by `@webex/test-helper-test-users` |
|
|
65
|
+
| Browser | `yarn workspace @webex/internal-plugin-ediscovery test:browser:broken` (karma); not a routine verification command | `test/integration/spec` | karma | Named broken; needs the same live services as the integration spec |
|
|
66
|
+
|
|
67
|
+
- Coverage or quality gate: none; the legacy Jest configuration sets no threshold, and the developer
|
|
68
|
+
confirmed that no outside gate applies
|
|
69
|
+
- Enforcement source: N/A
|
|
70
|
+
- Test environment or QA dependencies: none for unit tests
|
|
71
|
+
|
|
72
|
+
`test:style` does not lint `src/ediscovery.js`, because the shared lint config ignores every file of that
|
|
73
|
+
name, and `src/index.js` disables every rule at its top. `yarn workspace @webex/internal-plugin-ediscovery
|
|
74
|
+
test` chains `test:integration` and `test:browser`, which this package does not define, so it fails after
|
|
75
|
+
the unit run.
|
|
76
|
+
|
|
77
|
+
## Configuration and secrets
|
|
78
|
+
|
|
79
|
+
- Required configuration: none beyond the defaults in `src/config.js` (`offset` 0, `size` 100, `timeoutMs`
|
|
80
|
+
30000); per-call `options` override them
|
|
81
|
+
- Secret source: N/A for unit tests, which use fake values; a real run needs a compliance officer token,
|
|
82
|
+
and decryption needs the KMS org-agent role
|
|
83
|
+
- Package or artifact access: N/A
|
|
84
|
+
- Required neighboring packages: `@webex/webex-core`, `@webex/common`,
|
|
85
|
+
`@webex/internal-plugin-encryption`, and `@webex/internal-plugin-conversation` resolve through the
|
|
86
|
+
workspace; the unit specs also mount `@webex/internal-plugin-mercury`
|
|
87
|
+
- Platform, simulator, device, or SDK setup: none
|
|
88
|
+
- Never commit credentials or copy production secrets into a local config.
|
|
89
|
+
|
|
90
|
+
## First-run verification
|
|
91
|
+
|
|
92
|
+
1. Run `yarn workspace @webex/internal-plugin-ediscovery build:src`.
|
|
93
|
+
2. Run `yarn workspace @webex/internal-plugin-ediscovery test:unit` and check that three suites and 122
|
|
94
|
+
cases pass.
|
|
95
|
+
3. Run `yarn workspace @webex/internal-plugin-ediscovery test:style`.
|
|
96
|
+
|
|
97
|
+
Expected result: all three commands exit zero. `test:style` prints six warnings and no errors, including
|
|
98
|
+
"File ignored" for `src/ediscovery.js`.
|
|
99
|
+
|
|
100
|
+
## Next steps
|
|
101
|
+
|
|
102
|
+
- [Package architecture](architecture.md)
|
|
103
|
+
- [Specification registry](specs/README.md)
|
|
104
|
+
- [Documentation index](index.md)
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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: rarajes2@cisco.com
|
|
9
|
+
updated_at: 2026-11-12T06:44:53Z
|
|
10
|
+
validation_status: pass
|
|
11
|
+
-->
|
|
12
|
+
|
|
13
|
+
# @webex/internal-plugin-ediscovery documentation
|
|
14
|
+
|
|
15
|
+
Doc map for developers and agents working on the eDiscovery internal plugin.
|
|
16
|
+
|
|
17
|
+
## Start here
|
|
18
|
+
|
|
19
|
+
- [Getting started](getting-started.md)
|
|
20
|
+
- [Package architecture](architecture.md)
|
|
21
|
+
|
|
22
|
+
## Decisions
|
|
23
|
+
|
|
24
|
+
- [adr/](adr/index.md) — architectural decision records
|
|
25
|
+
|
|
26
|
+
## Specifications and contracts
|
|
27
|
+
|
|
28
|
+
- [architecture.md](architecture.md) — canonical package architecture and contract index
|
|
29
|
+
- [specs/README.md](specs/README.md) — manifest-backed module and contract registry
|
|
30
|
+
- [`src/docs/README.md`](../src/docs/README.md) — the eDiscovery plugin specification beside its code
|
|
31
|
+
- [adr/](adr/index.md) — concrete architectural decisions; blank ADR templates remain under the
|
|
32
|
+
monorepo root `.sdd/`
|
|
33
|
+
|
|
34
|
+
This package is a library, so there is no service specification and no OpenAPI document. Exact contract
|
|
35
|
+
details live in the native sources linked from the architecture index: `package.json` and `src/index.js`
|
|
36
|
+
for the package, and `src/ediscovery.js` for the plugin API.
|
|
37
|
+
|
|
38
|
+
## Related repository resources
|
|
39
|
+
|
|
40
|
+
- [`README.md`](../README.md) — retained npm usage page; context only, see
|
|
41
|
+
[ADR-0001](adr/0001-retain-product-readme.md)
|
|
42
|
+
- [`AGENTS.md`](../AGENTS.md) — agent instructions for this package
|
|
@@ -0,0 +1,69 @@
|
|
|
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: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-12T06:44:53Z
|
|
13
|
+
validation_status: pass
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Specification registry
|
|
17
|
+
|
|
18
|
+
Use this page to find the canonical package architecture and every instantiated module specification
|
|
19
|
+
plus native contract. Keep technical facts in one owning document and use this page only for
|
|
20
|
+
navigation, ownership, status, and change/test routing.
|
|
21
|
+
|
|
22
|
+
Start with the [package architecture](../architecture.md). No service specification exists because this
|
|
23
|
+
package is a library.
|
|
24
|
+
|
|
25
|
+
## Document roles
|
|
26
|
+
|
|
27
|
+
| Document | Canonical ownership |
|
|
28
|
+
| -------- | ------------------- |
|
|
29
|
+
| [Package architecture](../architecture.md) | Package boundaries, resource inventory, interactions, dependency topology, and cross-cutting architecture |
|
|
30
|
+
| Module specifications | Stable behavior and design at each manifest-routed `<module-path>/docs/README.md` |
|
|
31
|
+
| [ADR](../adr/index.md) | A durable decision, its deciders, rationale, consequences, and supersession lineage |
|
|
32
|
+
|
|
33
|
+
## Instantiated specification registry
|
|
34
|
+
|
|
35
|
+
| Resource | Role | Canonical path | Owner | Status | Last verified |
|
|
36
|
+
| -------- | ---- | -------------- | ----- | ------ | ------------- |
|
|
37
|
+
| Package | Architecture | `docs/architecture.md` | @webex/web-sdk | Draft | 2026-11-12 |
|
|
38
|
+
| eDiscovery plugin | Module | `src/docs/README.md` | @webex/web-sdk | Draft | 2026-11-12 |
|
|
39
|
+
| Retain the product README | ADR | `docs/adr/0001-retain-product-readme.md` | @webex/web-sdk | Accepted | 2026-11-12 |
|
|
40
|
+
|
|
41
|
+
### Module registry
|
|
42
|
+
|
|
43
|
+
| Module | Responsibility | Manifest coverage state | Start here |
|
|
44
|
+
| --- | --- | --- | --- |
|
|
45
|
+
| `src/` | `webex.internal.ediscovery`: compliance report calls, paged content and container reads by report UUID or URL, the container cache, and the payload transforms that encrypt report requests and decrypt reports, activities, and containers | Partial | `src/docs/README.md` |
|
|
46
|
+
|
|
47
|
+
Generator-side field measurement for the module is complete (93.3%, assessed 2026-11-12). Independent
|
|
48
|
+
semantic validation passed on 2026-11-12 with zero Blocking findings. A drift record, a characterization
|
|
49
|
+
baseline, and promotion past Partial remain pending.
|
|
50
|
+
|
|
51
|
+
## Change and verification routing
|
|
52
|
+
|
|
53
|
+
| Change affects | Load and update | Verification route |
|
|
54
|
+
| -------------- | --------------- | ------------------ |
|
|
55
|
+
| Package boundaries or cross-cutting architecture | `docs/architecture.md` and applicable ADRs | `yarn workspace @webex/internal-plugin-ediscovery test:unit` after `build:src`, and the module spec |
|
|
56
|
+
| A stable code, package, or component boundary | `src/docs/README.md` | Module tests plus affected contracts |
|
|
57
|
+
| A public API or package contract | The owning architecture section, `src/docs/README.md`, and the native definition in `src/ediscovery.js`, `src/index.js`, `src/report-request.js`, `src/ediscovery-error.js`, or `package.json` | Unit tests |
|
|
58
|
+
| A payload predicate or transform | `src/docs/README.md` requirements and pitfalls, and `src/index.js` or `src/transforms.js` | `test/unit/spec/transforms.js`; check other plugins' payloads for the matched field names |
|
|
59
|
+
|
|
60
|
+
## Module and contract registration
|
|
61
|
+
|
|
62
|
+
The module specification is generated at the exact `modules[].canonical_spec` path recorded in
|
|
63
|
+
`.sdd/manifest.json`. Register every module and submodule in the Module registry above in manifest tree
|
|
64
|
+
order.
|
|
65
|
+
|
|
66
|
+
Contracts are registered in `.sdd/manifest.json` `contract_catalog` and indexed in
|
|
67
|
+
[`docs/architecture.md`](../architecture.md#public-and-consumer-surfaces) with a stable ID, publication
|
|
68
|
+
state, native source, and owning module. This page provides navigation and ownership rather than a copied
|
|
69
|
+
contract.
|