@webex/plugin-meetings 3.13.0-next.13 → 3.13.0-next.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/.repo-context.json +577 -0
  2. package/.sdd/manifest.json +1320 -428
  3. package/AGENTS.md +528 -72
  4. package/dist/aiEnableRequest/index.js +1 -1
  5. package/dist/breakouts/breakout.js +1 -1
  6. package/dist/breakouts/index.js +1 -1
  7. package/dist/config.js +1 -1
  8. package/dist/interpretation/index.js +1 -1
  9. package/dist/interpretation/siLanguage.js +1 -1
  10. package/dist/webinar/index.js +1 -1
  11. package/docs/adr/0001-migrate-existing-docs-into-sdd.md +141 -0
  12. package/docs/adr/index.md +26 -0
  13. package/docs/architecture.md +816 -0
  14. package/docs/getting-started.md +177 -0
  15. package/docs/index.md +53 -0
  16. package/docs/specs/README.md +126 -0
  17. package/package.json +21 -21
  18. package/schemas/repo-context.schema.json +796 -0
  19. package/src/aiEnableRequest/docs/README.md +376 -0
  20. package/src/annotation/docs/README.md +402 -0
  21. package/src/breakouts/docs/README.md +643 -0
  22. package/src/controls-options-manager/docs/README.md +365 -0
  23. package/src/hashTree/docs/README.md +566 -0
  24. package/src/interceptors/docs/README.md +434 -0
  25. package/src/interpretation/docs/README.md +420 -0
  26. package/src/locus-info/docs/README.md +609 -0
  27. package/src/media/docs/README.md +488 -0
  28. package/src/meeting/docs/README.md +834 -0
  29. package/src/meeting-info/docs/README.md +352 -0
  30. package/src/meetings/docs/README.md +549 -0
  31. package/src/member/docs/README.md +347 -0
  32. package/src/members/docs/README.md +514 -0
  33. package/src/metrics/docs/README.md +287 -0
  34. package/src/multistream/docs/README.md +523 -0
  35. package/src/personal-meeting-room/docs/README.md +322 -0
  36. package/src/reachability/docs/README.md +548 -0
  37. package/src/reactions/docs/README.md +296 -0
  38. package/src/reconnection-manager/docs/README.md +485 -0
  39. package/src/recording-controller/docs/README.md +335 -0
  40. package/src/roap/docs/README.md +444 -0
  41. package/src/webinar/docs/README.md +425 -0
  42. package/.sdd/templates/.source.json +0 -30
  43. package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +0 -111
  44. package/.sdd/templates/component-repo/module-docs/module-spec.template.md +0 -321
  45. package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +0 -59
  46. package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +0 -49
  47. package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +0 -42
  48. package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +0 -120
  49. package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +0 -206
  50. package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +0 -90
  51. package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +0 -68
  52. package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +0 -111
  53. package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +0 -57
  54. package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +0 -69
  55. package/.sdd/templates/component-repo/standing-docs/RULES.template.md +0 -96
  56. package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +0 -84
  57. package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +0 -82
  58. package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +0 -94
  59. package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +0 -64
  60. package/.sdd/templates/component-repo/template-map.json +0 -112
  61. package/ai-docs/ARCHITECTURE.md +0 -208
  62. package/ai-docs/CONTRACTS.md +0 -267
  63. package/ai-docs/DATA_MODEL.md +0 -64
  64. package/ai-docs/GETTING_STARTED.md +0 -73
  65. package/ai-docs/GLOSSARY.md +0 -56
  66. package/ai-docs/REVIEW_CHECKLIST.md +0 -45
  67. package/ai-docs/RULES.md +0 -79
  68. package/ai-docs/SECURITY.md +0 -74
  69. package/ai-docs/SERVICE_STATE.md +0 -59
  70. package/ai-docs/SPEC_INDEX.md +0 -85
  71. package/ai-docs/TEST_INDEX.md +0 -45
  72. package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +0 -61
  73. package/ai-docs/patterns/defensive-error-propagation.md +0 -55
  74. package/ai-docs/patterns/event-scope-emission.md +0 -46
  75. package/ai-docs/patterns/source-to-test-path-mirroring.md +0 -45
  76. package/ai-docs/patterns/stateless-plugin-request-classes.md +0 -53
  77. package/ai-docs/patterns/typed-constants-and-enum-values.md +0 -47
  78. package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +0 -223
  79. package/src/annotation/ai-docs/annotation-spec.md +0 -236
  80. package/src/breakouts/ai-docs/breakouts-spec.md +0 -324
  81. package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +0 -243
  82. package/src/hashTree/ai-docs/hash-tree-spec.md +0 -267
  83. package/src/interceptors/ai-docs/interceptors-spec.md +0 -247
  84. package/src/interpretation/ai-docs/interpretation-spec.md +0 -256
  85. package/src/locus-info/ai-docs/locus-info-spec.md +0 -293
  86. package/src/media/ai-docs/media-spec.md +0 -267
  87. package/src/meeting/ai-docs/meeting-spec.md +0 -404
  88. package/src/meeting-info/ai-docs/meeting-info-spec.md +0 -261
  89. package/src/meetings/ai-docs/meetings-spec.md +0 -298
  90. package/src/member/ai-docs/member-spec.md +0 -196
  91. package/src/members/ai-docs/members-spec.md +0 -256
  92. package/src/metrics/ai-docs/metrics-spec.md +0 -185
  93. package/src/multistream/ai-docs/multistream-spec.md +0 -295
  94. package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +0 -234
  95. package/src/reachability/ai-docs/reachability-spec.md +0 -261
  96. package/src/reactions/ai-docs/reactions-spec.md +0 -198
  97. package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +0 -272
  98. package/src/recording-controller/ai-docs/recording-controller-spec.md +0 -223
  99. package/src/roap/ai-docs/roap-spec.md +0 -241
  100. package/src/webinar/ai-docs/webinar-spec.md +0 -243
@@ -1,56 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: standing-doc
3
- generated_from: glossary@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-08-18T15:33:39Z
8
- validation_status: not-run
9
- -->
10
- # GLOSSARY — @webex/plugin-meetings
11
-
12
- ## Domain Terms
13
-
14
- | Term | Meaning here | Code anchor |
15
- |---|---|---|
16
- | Meeting | Client object coordinating one Webex meeting lifecycle and media session | `src/meeting/index.ts` |
17
- | Meetings | Registered plugin and collection-level coordinator | `src/meetings/index.ts` |
18
- | Locus | Webex meeting-state service/payload projected into the client | `src/locus-info/index.ts` |
19
- | Member | Normalized participant projection | `src/member/index.ts` |
20
- | ROAP | Offer/answer signaling protocol used during media negotiation | `src/roap/index.ts` |
21
- | multistream | Receive/send slot and remote-media management over a media connection | `src/multistream/` |
22
- | breakout | Main/session-group state and controls for breakout sessions | `src/breakouts/` |
23
- | simultaneous interpretation | Language-channel and interpreter handoff feature | `src/interpretation/` |
24
- | practice session | Webinar state/data-channel flow before public webcast | `src/webinar/index.ts` |
25
- | PMR | Personal Meeting Room resolved/claimed for a user | `src/personal-meeting-room/` |
26
-
27
- ## Abbreviations & Acronyms
28
-
29
- | Abbreviation | Expansion / local meaning |
30
- |---|---|
31
- | SDK | Software Development Kit; the Webex host that mounts this plugin |
32
- | PMR | Personal Meeting Room |
33
- | ROAP | RTCWeb Offer/Answer Protocol |
34
- | SDP | Session Description Protocol |
35
- | STUN/TURN | WebRTC reachability/relay protocols |
36
- | CSI | Contributing Source Identifier used to associate media and participants |
37
- | BRB | Be right back meeting state |
38
- | LLM | Large-language-model feature/event context in current integrations |
39
-
40
- ## Context-Specific Meanings
41
-
42
- - **register/unregister** can mean SDK device/Mercury registration, not npm package registration.
43
- - **join** means joining meeting state; **add media** is a distinct staged operation and may follow join.
44
- - **leave** exits the local participant; **end for all** is a privileged remote mutation.
45
- - **collection** usually means an in-memory Ampersand/package collection, not persistence.
46
- - **full state**, **delta**, and **hash tree** are alternate Locus synchronization forms for one projection.
47
-
48
- ## Deprecated / Renamed Terms
49
-
50
- - Consumer docs map older phone-plugin flows to meetings plugin methods in retained `UPGRADING.md`.
51
- - Participant email was removed from participant convenience data; use participant identity with the People API.
52
- - Some legacy docs describe breakout host operations as unimplemented; current `src/breakouts/index.ts` implements create/start/end/update/assignment and lock operations, so the old statement is stale.
53
-
54
- ## Maintenance
55
-
56
- Add a term when it has a package-specific meaning that could cause an incorrect implementation. Anchor definitions to source paths and record renames/deprecations in `CONTRACTS.md` as well.
@@ -1,45 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: standing-doc
3
- generated_from: review-checklist@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-08-18T15:33:39Z
8
- validation_status: not-run
9
- -->
10
- # REVIEW CHECKLIST — @webex/plugin-meetings
11
-
12
- ## Core checks (always run)
13
-
14
- - [ ] Change scope matches the approved plan and the owning module spec was loaded.
15
- - [ ] Current code and mirrored tests support every behavioral claim; commit/PR history was not used for current behavior.
16
- - [ ] Public exports, methods, events, constants, error shapes, and async timing are preserved or explicitly approved.
17
- - [ ] Positive, negative, cleanup, and rejection paths have focused tests using existing Sinon/assertion conventions.
18
- - [ ] No `.only`, secret, token, participant PII, transcript/media content, or sensitive URL was committed/logged.
19
- - [ ] Build/lint/focused tests were run and their actual result reported.
20
- - [ ] Canonical specs changed in the same merge when behavior/contracts changed.
21
-
22
- ## Coverage-conditional checks (run by the touched module's manifest coverage state)
23
-
24
- - **Specced:** validate implementation and tests against the authoritative spec; any drift blocks.
25
- - **Partial:** treat the spec as a guide and cross-check each affected behavior in source/tests.
26
- - **Untracked:** code is authoritative; obtain approval and establish characterization coverage before risky modification.
27
- - Public/security/performance changes require explicit human approval even when a module is Specced.
28
-
29
- ## Cross-cutting checks (apply at higher risk / autonomy)
30
-
31
- - [ ] Locus full/delta/hash-tree paths remain convergent and ordering assumptions are tested.
32
- - [ ] Timers, queues, media objects, data channels, and event listeners are cleaned up.
33
- - [ ] Request retries are bounded and do not hide terminal server errors.
34
- - [ ] Capability/role/policy gates remain enforced before privileged meeting operations.
35
- - [ ] Source and `test/unit/spec/` paths remain mirrored; target values are relative to the spec root.
36
- - [ ] Metric/log changes reuse existing helpers and redact sensitive values.
37
- - [ ] Dependency and package-export changes follow workspace and semver rules.
38
-
39
- ## How the set is selected
40
-
41
- Core checks always apply. Add state/event checks for `meetings`, `meeting`, `locus-info`, `hashTree`, `members`, and feature modules; media/retry checks for media-path modules; security checks for interceptors, identity, AI, transcript, and participant changes; and public-contract checks for `src/index.ts` or exported objects.
42
-
43
- ## Output
44
-
45
- A review should report affected modules, manifest trust state, tests/checks run, contract/security findings, spec delta, and any unresolved blocker. Draft validation/coverage findings remain local until the user approves publication.
package/ai-docs/RULES.md DELETED
@@ -1,79 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: standing-doc
3
- generated_from: rules@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-08-18T15:33:39Z
8
- validation_status: not-run
9
- -->
10
- # RULES — @webex/plugin-meetings
11
-
12
- ## Coverage Map (which docs/specs to trust)
13
-
14
- Per-module status is defined in `.sdd/manifest.json` and mirrored by `SPEC_INDEX.md`. `Specced` is authoritative; `Partial` requires source cross-checking; `Untracked` requires code/tests and a characterization baseline before modification.
15
-
16
- ## Autonomy & Ask-First
17
-
18
- - Ask before code changes, public/event/request contract changes, new dependencies, security/performance-sensitive work, or modifications to Partial/Untracked modules without a baseline.
19
- - Do not modify remote systems, publish packages, deploy, push, or post review findings without explicit permission.
20
- - Reconcile before changing protected canonical specs; update code and spec deltas together after onboarding.
21
-
22
- ## Naming
23
-
24
- - Reuse constants and typed enums from the owning module. Because legacy code also uses raw wire strings, search both constants/enums and raw values before changing a logical condition.
25
- - Preserve established camelCase/PascalCase file and type conventions; do not rename consumer-visible values incidentally.
26
-
27
- ## Logging
28
-
29
- - Use `src/common/logs/logger-proxy.ts` or the established injected logger, with existing meeting/correlation context.
30
- - Never add `console.log` or log credentials, tokens, meeting passwords/URLs, participant PII, transcript/caption text, raw media, or entire service payloads.
31
-
32
- ## Error Handling
33
-
34
- - Preserve typed package errors and server rejection details needed by callers.
35
- - Do not swallow promise rejections, turn failure into success, or add unbounded retries.
36
- - Cleanup listeners, timers, media objects, edit locks, and queued work on both success and failure.
37
-
38
- ## Imports / Dependencies
39
-
40
- - Import through existing package/module boundaries; HTTP through request helpers, media through media-core/helpers, and host capabilities through Webex core plugins/services.
41
- - Do not add an external dependency without approval. Keep workspace packages as `workspace:*` unless the repository release policy says otherwise.
42
- - Preserve `src/index.ts` as the public export authority.
43
-
44
- ## Testing
45
-
46
- - Mirror `src/{area}/` under `test/unit/spec/{area}/`; target paths are relative to `test/unit/spec/`.
47
- - Use Sinon and `@webex/test-helper-chai`; prefer `calledOnceWithExactly`, fake timers for time, shared helpers, and parameterized tests beyond three similar cases.
48
- - Plugin tests are slow: focus the smallest target. Temporary `.only` is allowed by the retained package rule only during a focused run and must be removed before completion.
49
- - Test happy path, rejection/error, state transition/order, and cleanup for async/event/media work.
50
-
51
- ## Security
52
-
53
- - Treat request credentials, JWTs, route/data-channel tokens, device/participant identity, meeting URLs/passwords, transcripts, captions, and media as sensitive.
54
- - Keep authorization decisions in remote capability/role/policy gates; do not bypass them client-side.
55
- - Validate/normalize external payloads at existing parser/request boundaries and avoid exposing internal response bodies as new public contracts.
56
-
57
- ## Spec-Currency & Drift Thresholds
58
-
59
- - Code behavior, spec delta, and canonical module update land in the same merge.
60
- - Blocking drift includes missing/changed public surface, event/error semantics, state transition, security rule, or required test strategy. Run the configured drift checker when explicitly requested or in CI; do not claim it ran otherwise.
61
-
62
- ## Secrets Policy
63
-
64
- - Secrets belong in managed/local environment configuration, never repository files, examples, logs, snapshots, or metrics.
65
- - Redact generated evidence and test fixtures; use synthetic values.
66
-
67
- ## Concurrency & Async
68
-
69
- - Preserve event scope and ordering; expect realtime duplication/out-of-order delivery where current code does.
70
- - Bound retry/backoff and timer lifetimes; make cleanup idempotent.
71
- - Do not block media/event callbacks with unrelated network work; coordinate shared state through existing queues/managers.
72
-
73
- ## Strict-Compliance Mode
74
-
75
- Load the routed manifest/spec/rules before changes; stop on protected-spec conflict, missing approval, unresolved security/contract facts, failed conformance, below-approved coverage, or independent-validator blockers.
76
-
77
- ## Maintenance
78
-
79
- Rules must remain code-grounded and mechanically checkable where possible. Put examples in `patterns/`; update this file when package conventions or gates change.
@@ -1,74 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: standing-doc
3
- generated_from: security@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-08-18T15:33:39Z
8
- validation_status: not-run
9
- -->
10
- # SECURITY — @webex/plugin-meetings
11
-
12
- ## Trust Boundaries
13
-
14
- ```mermaid
15
- flowchart LR
16
- App[SDK consumer] -->|public calls/data| Plugin[plugin-meetings]
17
- Host[Webex SDK credentials/services] --> Plugin
18
- Plugin -->|authenticated HTTPS| Services[Webex services]
19
- Services -->|Mercury/Locus/data-channel events| Plugin
20
- Browser[WebRTC permissions/devices] --> Media[media modules]
21
- Media -->|encrypted media/signaling| WebexMedia[Webex media infrastructure]
22
- ```
23
-
24
- Consumer input, remote service/event payloads, browser media, and host credentials cross distinct trust boundaries. Validate and normalize at existing request/parser/controller boundaries.
25
-
26
- ## Authentication & Authorization Model
27
-
28
- - The Webex SDK host owns user credentials and authenticated request access; this package must not mint or persist primary credentials.
29
- - Device and participant identity, Locus route tokens, and data-channel auth tokens are attached/refreshed through existing host and interceptor paths.
30
- - Privileged actions such as host controls, breakout management, recording, interpretation, webinar, and AI approval depend on current capability/role/policy state plus server enforcement.
31
-
32
- ## Secret & Credential Handling
33
-
34
- - Never commit `.env` values, test-user credentials, access/refresh tokens, JWTs, route tokens, data-channel tokens, meeting passwords, or Sauce Labs secrets.
35
- - Do not log raw authorization headers or token bodies. Token-expiry inspection is limited to middleware behavior in `src/interceptors/`.
36
- - Use synthetic fixtures in tests and managed configuration for browser/integration runs.
37
-
38
- ## Data Classification & Handling
39
-
40
- | Data | Classification | Handling |
41
- |---|---|---|
42
- | credentials/tokens/passwords | secret | memory only; redact from logs, errors, metrics, and docs |
43
- | participant/device identity and meeting URLs | sensitive | minimum needed lifetime; do not expand public exposure |
44
- | transcript/captions, reactions, annotation, media | sensitive content | process only for enabled feature; never emit raw content as telemetry |
45
- | state/capability/quality metrics | operational | use bounded fields/tags; exclude content and identifiers unless existing policy permits |
46
-
47
- Participant email removal documented in `README.md` is a privacy constraint; use participant identity and the People API rather than reintroducing email into roster projections.
48
-
49
- ## Input Validation & Output Encoding Posture
50
-
51
- - Locus/full/delta/hash-tree, service responses, data-channel messages, SDP, and consumer options are external input. Reuse current parsers, typed constants, guards, and error paths.
52
- - Preserve URL/request construction helpers and do not interpolate untrusted values into logs or markup.
53
- - This package renders no UI/HTML; host applications remain responsible for encoding displayed names, transcript, chat, annotation, and error content.
54
-
55
- ## Transport & Headers
56
-
57
- - Webex core performs authenticated HTTPS requests; browser/media-core handles WebRTC signaling/media transport.
58
- - `LocusRouteTokenInterceptor` and `DataChannelAuthTokenInterceptor` own their headers. Do not attach those tokens outside the intended request hosts/routes.
59
- - Retry middleware must remain bounded and honor terminal authentication/authorization failures.
60
-
61
- ## Session & Cookie Posture
62
-
63
- The package owns no browser cookie or server session store. Its operational session is the in-memory SDK/meeting lifecycle. Teardown must remove listeners, timers, token references, media objects, and feature state.
64
-
65
- ## Known Sensitive Areas & Accepted Risks
66
-
67
- - Realtime diagnostic payloads can contain participant/meeting details; log summaries, not payloads.
68
- - Captions/transcripts and AI/interpretation workflows handle user content and require feature/policy gates.
69
- - Media permissions and device access are browser-user decisions; do not bypass prompts or retain streams after teardown.
70
- - No additional package-specific accepted security risk was supplied during bootstrap.
71
-
72
- ## Reporting & Review
73
-
74
- Security-sensitive changes require explicit approval, focused negative tests, and review of `src/interceptors/`, request boundaries, capability gates, logs/metrics, and cleanup. Follow the repository security-reporting process; do not publish findings automatically.
@@ -1,59 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: standing-doc
3
- generated_from: service-state@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-08-18T15:33:39Z
8
- validation_status: not-run
9
- -->
10
- # SERVICE STATE — @webex/plugin-meetings
11
-
12
- ## Current Endpoints
13
-
14
- This package owns no endpoint. Current request families are device registration, active meetings/preferences/geo hints, meeting-info/static links, Locus lifecycle and controls, media/ROAP/TURN, member mutations, breakouts, interpretation/AI/webinar/recording, PMR, reachability, and metrics. Exact URLs are resolved by request helpers and Webex service discovery in current source.
15
-
16
- ## Current Events
17
-
18
- - Mercury/Locus events update meeting collections and per-meeting state.
19
- - Meeting events cover lifecycle, media, mute/share, controls, transcription/captions, and feature state.
20
- - Members, breakouts, interpretation, AI approval, annotation, webinar, and data-channel events are meeting scoped.
21
- - Browser/media-core callbacks report permissions, connection/track readiness, degradation, and closure.
22
-
23
- Authoritative anchors: `src/constants.ts`, `src/common/events/`, `src/meetings/index.ts`, `src/meeting/index.ts`, and owning feature event/constants files.
24
-
25
- ## Data Stores
26
-
27
- No durable datastore is owned. In-memory stores include meeting and meeting-info collections, Locus/member/feature projections, media/slot objects, route-token maps, timers, queues, and metric setup state. Their lifecycle is SDK/plugin/meeting scoped.
28
-
29
- ## External Dependencies
30
-
31
- | Dependency | Purpose | Degraded/failure behavior |
32
- |---|---|---|
33
- | Webex device and Mercury | identity/registration and realtime events | registration stage fails or events stop; unregister remains safe |
34
- | Locus/meeting-info services | meeting identity, state, and mutations | typed/request failure; current projection is not fabricated |
35
- | media infrastructure/internal-media-core | WebRTC negotiation and streams | media errors, bounded recovery/rejoin, cleanup |
36
- | reachability/STUN/TURN | route selection and network characterization | report failure/partial reachability; do not claim success |
37
- | feature services/data channels | breakouts, AI, webinar, interpretation, annotation | capability-gated failure visible to caller/event consumer |
38
-
39
- ## Rate Limits & Quotas
40
-
41
- No package-local numeric rate limit or quota is declared. Respect server responses and existing retry/backoff; do not invent retry budgets or add polling without approval.
42
-
43
- ## Key Metrics & Performance Targets
44
-
45
- - Behavioral metrics are named in `src/metrics/constants.ts` and submitted through `src/metrics/index.ts`.
46
- - Meeting/media modules also submit call-analyzer and quality/outcome telemetry through existing helpers.
47
- - No package-specific numeric SLO or coverage threshold was supplied. Measure latency/quality regressions and preserve bounded retries, timers, and listener counts.
48
-
49
- ## Feature Flags (current)
50
-
51
- Capability and policy fields from Webex/Locus gate meetings, breakouts, interpretation, annotation, webinar, reactions, AI approval, recording, multistream, and media behaviors. Configuration defaults live in `src/config.ts` and `src/common/config.ts`; do not duplicate mutable flag names here.
52
-
53
- ## Compliance / Certifications
54
-
55
- The package follows repository security/privacy rules and Cisco licensing. No package-specific certification claim was found; do not infer one.
56
-
57
- ## Maintenance
58
-
59
- Refresh this document when a service family, event source, store lifetime, rate-limit rule, metric family, or capability gate changes. Put operation detail in the owning module spec.
@@ -1,85 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: standing-doc
3
- generated_from: spec-index@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-09-08T00:00:00Z
8
- validation_status: not-run
9
- -->
10
- # Spec Index — @webex/plugin-meetings
11
-
12
- > Root [`AGENTS.md`](../AGENTS.md) · system [`ARCHITECTURE.md`](ARCHITECTURE.md). This router mirrors `.sdd/manifest.json`; load only the docs needed for the task.
13
-
14
- ## Module Registry
15
-
16
- | Module | Responsibility | Manifest coverage state | Start here |
17
- |---|---|---|---|
18
- | `src/meetings/` | Registered plugin, meeting discovery, registration, and collection coordination | Partial | [`src/meetings/ai-docs/meetings-spec.md`](../src/meetings/ai-docs/meetings-spec.md) |
19
- | `src/meeting/` | One meeting's lifecycle, media, controls, state, and events | Partial | [`src/meeting/ai-docs/meeting-spec.md`](../src/meeting/ai-docs/meeting-spec.md) |
20
- | `src/meeting-info/` | Destination resolution and validated meeting metadata | Partial | [`src/meeting-info/ai-docs/meeting-info-spec.md`](../src/meeting-info/ai-docs/meeting-info-spec.md) |
21
- | `src/locus-info/` | Normalized Locus full, delta, and hash-tree state | Partial | [`src/locus-info/ai-docs/locus-info-spec.md`](../src/locus-info/ai-docs/locus-info-spec.md) |
22
- | `src/hashTree/` | Incremental Locus dataset synchronization | Partial | [`src/hashTree/ai-docs/hash-tree-spec.md`](../src/hashTree/ai-docs/hash-tree-spec.md) |
23
- | `src/member/` | Individual participant projection | Partial | [`src/member/ai-docs/member-spec.md`](../src/member/ai-docs/member-spec.md) |
24
- | `src/members/` | Participant roster, mutations, and member events | Partial | [`src/members/ai-docs/members-spec.md`](../src/members/ai-docs/members-spec.md) |
25
- | `src/media/` | Media connection construction and readiness | Partial | [`src/media/ai-docs/media-spec.md`](../src/media/ai-docs/media-spec.md) |
26
- | `src/multistream/` | Remote media groups and send/receive slot management | Partial | [`src/multistream/ai-docs/multistream-spec.md`](../src/multistream/ai-docs/multistream-spec.md) |
27
- | `src/roap/` | ROAP signaling and TURN discovery | Partial | [`src/roap/ai-docs/roap-spec.md`](../src/roap/ai-docs/roap-spec.md) |
28
- | `src/reachability/` | Cluster/protocol media reachability probing | Partial | [`src/reachability/ai-docs/reachability-spec.md`](../src/reachability/ai-docs/reachability-spec.md) |
29
- | `src/reconnection-manager/` | Bounded media recovery and meeting rejoin | Partial | [`src/reconnection-manager/ai-docs/reconnection-manager-spec.md`](../src/reconnection-manager/ai-docs/reconnection-manager-spec.md) |
30
- | `src/breakouts/` | Breakout sessions, rosters, host operations, and events | Partial | [`src/breakouts/ai-docs/breakouts-spec.md`](../src/breakouts/ai-docs/breakouts-spec.md) |
31
- | `src/interpretation/` | Simultaneous-interpretation language and handoff workflows | Partial | [`src/interpretation/ai-docs/interpretation-spec.md`](../src/interpretation/ai-docs/interpretation-spec.md) |
32
- | `src/annotation/` | Annotation data-channel state and commands | Partial | [`src/annotation/ai-docs/annotation-spec.md`](../src/annotation/ai-docs/annotation-spec.md) |
33
- | `src/aiEnableRequest/` | Host approval workflow for enabling AI Assistant | Partial | [`src/aiEnableRequest/ai-docs/ai-enable-request-spec.md`](../src/aiEnableRequest/ai-docs/ai-enable-request-spec.md) |
34
- | `src/webinar/` | Webinar practice-session and webcast controls | Partial | [`src/webinar/ai-docs/webinar-spec.md`](../src/webinar/ai-docs/webinar-spec.md) |
35
- | `src/recording-controller/` | Meeting recording action orchestration | Partial | [`src/recording-controller/ai-docs/recording-controller-spec.md`](../src/recording-controller/ai-docs/recording-controller-spec.md) |
36
- | `src/controls-options-manager/` | Derivation and mutation of meeting control capabilities | Partial | [`src/controls-options-manager/ai-docs/controls-options-manager-spec.md`](../src/controls-options-manager/ai-docs/controls-options-manager-spec.md) |
37
- | `src/personal-meeting-room/` | Personal Meeting Room lookup and claim | Partial | [`src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md`](../src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md) |
38
- | `src/reactions/` | Reaction catalogs, wire values, and normalized reaction data | Partial | [`src/reactions/ai-docs/reactions-spec.md`](../src/reactions/ai-docs/reactions-spec.md) |
39
- | `src/interceptors/` | Locus routing/retry and data-channel authentication middleware | Partial | [`src/interceptors/ai-docs/interceptors-spec.md`](../src/interceptors/ai-docs/interceptors-spec.md) |
40
- | `src/metrics/` | Behavioral metric normalization and submission | Partial | [`src/metrics/ai-docs/metrics-spec.md`](../src/metrics/ai-docs/metrics-spec.md) |
41
-
42
- ## Task Routing
43
-
44
- | If the task is… | Load |
45
- |---|---|
46
- | Understanding the package | `ARCHITECTURE.md` |
47
- | Changing a public export, method, event, or request | `CONTRACTS.md`, owning module spec, and `RULES.md` |
48
- | Changing tokens, identity, participant data, transcripts, or media | `SECURITY.md` and the owning module spec |
49
- | Changing lifecycle, Locus, or roster state | `meeting`, `meetings`, `locus-info`, or `members` spec as applicable |
50
- | Changing WebRTC setup or recovery | affected `media`, `multistream`, `roap`, `reachability`, or `reconnection-manager` spec |
51
- | Changing an in-meeting capability | owning feature spec plus `meeting` integration points |
52
- | Changing request middleware or telemetry | `interceptors` or `metrics` spec and security rules |
53
- | Adding or changing an implementation convention | matching file under `patterns/` |
54
-
55
- For any `src/{module}/` task, load its source-local spec from the registry and cross-check current code whenever its manifest state is `Partial` or `Untracked`.
56
-
57
- ## Incident History
58
-
59
- No package-local incident or RCA index was found. Commit and PR history are intentionally excluded from current-behavior evidence for this bootstrap.
60
-
61
- ## Phase-Based Loading Protocol
62
-
63
- | Phase | Load |
64
- |---|---|
65
- | Orient | `AGENTS.md` and this router |
66
- | Specify | affected module spec, `CONTRACTS.md`, and applicable security/rule docs |
67
- | Build | affected module spec plus relevant patterns and tests |
68
- | Verify | focused tests, generated-doc conformance, coverage, and independent validation evidence |
69
-
70
- ## Spec Registry
71
-
72
- | Doc | Location | Purpose |
73
- |---|---|---|
74
- | Architecture | `ARCHITECTURE.md` | Package and component ownership/interactions |
75
- | Contracts | `CONTRACTS.md` | Export, event, request, and dependency catalog |
76
- | Data model | `DATA_MODEL.md` | Client-side object and collection ownership |
77
- | Service state | `SERVICE_STATE.md` | Current services, events, flags, and metrics |
78
- | Security | `SECURITY.md` | Trust boundaries and sensitive-data rules |
79
- | Rules | `RULES.md` | Enforceable package constraints |
80
- | Patterns | `patterns/` | Code-grounded implementation conventions |
81
- | Tests | `TEST_INDEX.md` | Source-to-test routing and quality gates |
82
- | Getting started | `GETTING_STARTED.md` | Toolchain and focused development loop |
83
- | Glossary | `GLOSSARY.md` | Meetings-domain language |
84
- | Review catalog | `REVIEW_CHECKLIST.md` | Core and conditional review checks |
85
- | Decisions | `adr/` | Durable architectural rationale |
@@ -1,45 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: standing-doc
3
- generated_from: test-index@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-08-18T15:33:39Z
8
- validation_status: not-run
9
- -->
10
- # TEST INDEX — @webex/plugin-meetings
11
-
12
- ## Test Surface
13
-
14
- | Tier | Command | What it covers |
15
- |---|---|---|
16
- | unit | `yarn workspace @webex/plugin-meetings test:unit` | source-mirrored behavior with Mocha/Sinon/test helpers |
17
- | targeted unit | `yarn workspace @webex/plugin-meetings test:unit --targets meeting/brbState.ts` | one file/area relative to `test/unit/spec/` |
18
- | browser/integration | `yarn workspace @webex/plugin-meetings test:browser` | browser/media/service integration through Karma |
19
- | lint | `yarn workspace @webex/plugin-meetings test:style` | source style/static lint |
20
- | build/type | `yarn workspace @webex/plugin-meetings build:src` | transpilation and TypeScript declarations |
21
-
22
- ## Where the Cases Live
23
-
24
- Source paths under `src/{area}/` mirror unit tests under `test/unit/spec/{area}/`. Core areas with broad suites include `meeting`, `meetings`, `locus-info`, `members`, `media`, `multistream`, `breakouts`, `reachability`, `roap`, and interceptors. Feature areas have owning test directories when current behavior is covered.
25
-
26
- When adding tests, follow the existing file's style, use Sinon and `@webex/test-helper-chai`, prefer `calledOnceWithExactly`, use fake timers for timer/retry behavior, and parameterize more than three similar cases.
27
-
28
- ## Coverage / Quality Gate
29
-
30
- No package-specific numeric coverage or static-analysis threshold exists by repository-owner confirmation. This does not waive tests: behavior changes need focused positive/negative/cleanup coverage, package build, and lint proportional to risk. `.sdd/manifest.json` coverage describes documentation trust, not code-test percentage.
31
-
32
- Plugin unit tests are slow. Use the smallest `--targets` value. The retained package rule permits temporary Mocha `.only` for a focused run, but every `.only` must be removed before completion.
33
-
34
- ## QA Dependencies & Environments
35
-
36
- - Unit tests mock Webex/core/media dependencies and should not require production credentials.
37
- - Browser/integration tests may require browser WebRTC, media permissions, Webex test users, remote services, and managed environment values.
38
- - Node 22.14 is the repository development runtime. Do not commit `.env`, credentials, or test-user secrets.
39
-
40
- ## Where to Go Next
41
-
42
- - Module-specific strategy and traceability: each source-local module spec in `SPEC_INDEX.md`
43
- - Development loop: `GETTING_STARTED.md`
44
- - Review gates: `REVIEW_CHECKLIST.md`
45
- - Testing rules: `RULES.md`
@@ -1,61 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: reference-doc
3
- generated_from: adr@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-09-08T00:00:00Z
8
- validation_status: not-run
9
- -->
10
- # ADR-0001 — Migrate existing meetings docs into canonical SDD docs
11
-
12
- > Root [`AGENTS.md`](../../AGENTS.md) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md) · system [`ARCHITECTURE.md`](../ARCHITECTURE.md).
13
-
14
- | Field | Value |
15
- |---|---|
16
- | Status | Accepted |
17
- | Date | 2026-08-18 |
18
- | Deciders | repository owner and generator runtime |
19
- | Supersedes / Superseded by | none |
20
- | Generated from | `adr` @ SDLC template library `0.2.2` |
21
-
22
- ## Context
23
-
24
- The package already contained an agent rule, a long consumer README, an upgrade guide, contributor guidance, and feature READMEs for breakouts, simultaneous interpretation, and AI-enablement approval. The rigorous brownfield workflow requires one canonical routed SDD surface without silently discarding reviewed intent. Current source and tests must remain behavioral truth, and the repository owner explicitly excluded commit/PR history from current-behavior evidence. Evidence: `AGENTS.md`, `README.md`, `UPGRADING.md`, `internal-README.md`, `src/breakouts/README.md`, `src/interpretation/README.md`, `src/aiEnableRequest/README.md`, `.sdd/manifest.json`.
25
-
26
- ## Decision
27
-
28
- Use `migrate-existing`. Reorganize supported source content by meaning into the package-level `ai-docs/` standing documents and 23 source-local module specifications. Update the existing root `AGENTS.md` in place from its frozen checkpoint. Retain every legacy document unchanged after migration; do not delete or rewrite it. Where retained prose conflicts with current code, record the unit as corrected/stale and use current source/tests in the canonical spec.
29
-
30
- ### Recorded spec-source policy
31
-
32
- This ADR is the durable decision record referenced by `.sdd/manifest.json` (`spec_source_policy.decision_record` and each module's `spec_sources[].decision_record`). The recorded fields resolve as follows.
33
-
34
- | Manifest field | Value | Recorded here by |
35
- |---|---|---|
36
- | `mode` | `migrate-existing` | the Decision section above |
37
- | `migrated_source_disposition` | `retain` | "Retain every legacy document unchanged after migration" |
38
- | `decided_by` / `disposition_decided_by` | repository user | the Deciders row |
39
- | `decided_at` / `disposition_decided_at` | 2026-08-18 | the Date row |
40
-
41
- Each module also carries its own `source_policy`. A module records `migrate-existing` only when it had a pre-existing document to migrate — `src/meeting/` (`UPGRADING.md`), `src/breakouts/`, `src/interpretation/`, and `src/aiEnableRequest/` (their feature `README.md` files) — and the remaining 19 modules record `keep-separate` because there was nothing to migrate, not because a different policy was chosen for them. The single `conflict_status: resolved` entry is `src/breakouts/`, resolved as described above: the stale retained claim was superseded by current source and tests while the README itself was retained.
42
-
43
- Reconciling a protected spec or a recorded source conflict therefore reads this committed file; no untracked working directory is required.
44
-
45
- ## Alternatives Considered
46
-
47
- | Alternative | Pros | Cons | Why rejected |
48
- |---|---|---|---|
49
- | keep separate | no migration work | agents must choose between multiple documentation surfaces and legacy gaps remain | repository owner selected canonical migration |
50
- | reconcile each conflict interactively | explicit conflict-by-conflict control | unnecessary for the one known stale breakout claim and old contributor commands once current-code authority was confirmed | current code/test authority and retention policy resolve these cases |
51
- | migrate and delete old docs | one visible surface | loses stable consumer examples and historical upgrade context | repository owner explicitly chose retention |
52
-
53
- ## Consequences
54
-
55
- - **Positive:** agents have a manifest-routed package index and source-local specs while supported legacy meaning remains represented.
56
- - **Negative / cost:** retained docs can continue to drift and must be treated as migration/reference inputs rather than canonical behavior.
57
- - **Agents must:** use `SPEC_INDEX.md` and `.sdd/manifest.json`, cross-check Partial/Untracked specs against current code, and update canonical docs with behavior changes.
58
-
59
- ## Revisit When
60
-
61
- - The retained docs are deliberately retired, the module tree changes materially, or an independent validator finds unresolved source-fidelity conflicts.
@@ -1,55 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: reference-doc
3
- generated_from: pattern@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-08-18T15:33:39Z
8
- validation_status: not-run
9
- -->
10
- # Pattern: Defensive error propagation
11
-
12
- > Root [`AGENTS.md`](../../AGENTS.md) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md).
13
-
14
- ## When to use
15
-
16
- **When to use:** When request, parser, token, or feature code encounters an invalid input or remote failure that affects the caller's operation.
17
-
18
- ## Correct
19
-
20
- ```ts
21
- // from src/breakouts/request.ts
22
- return this.request({
23
- method: HTTP_VERBS.POST,
24
- uri: `${url}/message`,
25
- body: {
26
- message,
27
- groups: [params],
28
- },
29
- }).catch((error) => {
30
- if (error.body && error.body.errorCode === 201409036 && error.statusCode === 409) {
31
- LoggerProxy.logger.info(`Breakouts#broadcast --> no joined participants`);
32
- } else {
33
- throw error;
34
- }
35
- });
36
- ```
37
-
38
- Handle only an explicitly understood exception; otherwise propagate the original/typed error. When parsing a security token, fail conservatively as in `src/interceptors/utils.ts`.
39
-
40
- ## Incorrect
41
-
42
- ```ts
43
- return this.request(options).catch(() => undefined);
44
- ```
45
-
46
- **Why wrong:** It converts every failure into apparent success, hiding authentication, authorization, transport, and server errors and leaving callers with stale state.
47
-
48
- ## Where it appears
49
-
50
- - `src/meetings/request.ts`, `src/meeting/request.ts`, `src/breakouts/request.ts`, `src/interceptors/dataChannelAuthToken.ts`, `src/interceptors/locusRetry.ts`, `src/reachability/index.ts`
51
-
52
- ## Edge cases / exceptions
53
-
54
- - Best-effort reads may intentionally ignore a narrowly scoped optional cache failure, as the join-cookie read does; that exception must not hide the primary network operation.
55
- - Error adapters may wrap a service error in a typed package error, but must retain the original detail needed for diagnostics/recovery.
@@ -1,46 +0,0 @@
1
- <!-- sdd-generated-metadata
2
- doc_kind: reference-doc
3
- generated_from: pattern@0.2.2
4
- generator_plugin: repo-annotation@1.0.5+codex.20260818094939
5
- generated_by: codex
6
- approved_by: repository user
7
- updated_at: 2026-08-18T15:33:39Z
8
- validation_status: not-run
9
- -->
10
- # Pattern: Event-scope emission
11
-
12
- > Root [`AGENTS.md`](../../AGENTS.md) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md).
13
-
14
- ## When to use
15
-
16
- **When to use:** When a module exposes a meeting/media/realtime state change to parent modules or consumers.
17
-
18
- ## Correct
19
-
20
- ```ts
21
- // from src/meeting/connectionStateHandler.ts
22
- this.emit(
23
- {file: 'connectionStateHandler', function: 'handleConnectionStateChange'},
24
- ConnectionStateEvent.stateChanged,
25
- {state: this.mediaConnectionState}
26
- );
27
- ```
28
-
29
- Extend/use `EventsScope`, emit the declared event constant only after the normalized state changes, and supply the expected payload.
30
-
31
- ## Incorrect
32
-
33
- ```ts
34
- consumer.emit('connection-changed', rawPeerConnection);
35
- ```
36
-
37
- **Why wrong:** It invents an event name, bypasses scoped logging, exposes an internal object, and can emit without a real state transition.
38
-
39
- ## Where it appears
40
-
41
- - `src/locus-info/index.ts`, `src/meeting/connectionStateHandler.ts`, `src/multistream/receiveSlot.ts`, `src/multistream/remoteMedia.ts`, `src/reachability/index.ts`
42
-
43
- ## Edge cases / exceptions
44
-
45
- - Behavioral telemetry uses metrics helpers rather than `EventsScope`.
46
- - Remote Mercury/data-channel events must be parsed and mapped before consumer emission; do not relay arbitrary service payloads.