@webex/plugin-meetings 3.13.0-next.12 → 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.
- package/.repo-context.json +577 -0
- package/.sdd/manifest.json +1320 -428
- package/AGENTS.md +528 -72
- package/dist/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/config.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/webinar/index.js +1 -1
- package/docs/adr/0001-migrate-existing-docs-into-sdd.md +141 -0
- package/docs/adr/index.md +26 -0
- package/docs/architecture.md +816 -0
- package/docs/getting-started.md +177 -0
- package/docs/index.md +53 -0
- package/docs/specs/README.md +126 -0
- package/package.json +21 -21
- package/schemas/repo-context.schema.json +796 -0
- package/src/aiEnableRequest/docs/README.md +376 -0
- package/src/annotation/docs/README.md +402 -0
- package/src/breakouts/docs/README.md +643 -0
- package/src/controls-options-manager/docs/README.md +365 -0
- package/src/hashTree/docs/README.md +566 -0
- package/src/interceptors/docs/README.md +434 -0
- package/src/interpretation/docs/README.md +420 -0
- package/src/locus-info/docs/README.md +609 -0
- package/src/media/docs/README.md +488 -0
- package/src/meeting/docs/README.md +834 -0
- package/src/meeting-info/docs/README.md +352 -0
- package/src/meetings/docs/README.md +549 -0
- package/src/member/docs/README.md +347 -0
- package/src/members/docs/README.md +514 -0
- package/src/metrics/docs/README.md +287 -0
- package/src/multistream/docs/README.md +523 -0
- package/src/personal-meeting-room/docs/README.md +322 -0
- package/src/reachability/docs/README.md +548 -0
- package/src/reactions/docs/README.md +296 -0
- package/src/reconnection-manager/docs/README.md +485 -0
- package/src/recording-controller/docs/README.md +335 -0
- package/src/roap/docs/README.md +444 -0
- package/src/webinar/docs/README.md +425 -0
- package/.sdd/templates/.source.json +0 -30
- package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +0 -111
- package/.sdd/templates/component-repo/module-docs/module-spec.template.md +0 -321
- package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +0 -59
- package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +0 -49
- package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +0 -42
- package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +0 -120
- package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +0 -206
- package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +0 -90
- package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +0 -68
- package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +0 -111
- package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +0 -57
- package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +0 -69
- package/.sdd/templates/component-repo/standing-docs/RULES.template.md +0 -96
- package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +0 -84
- package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +0 -82
- package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +0 -94
- package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +0 -64
- package/.sdd/templates/component-repo/template-map.json +0 -112
- package/ai-docs/ARCHITECTURE.md +0 -208
- package/ai-docs/CONTRACTS.md +0 -267
- package/ai-docs/DATA_MODEL.md +0 -64
- package/ai-docs/GETTING_STARTED.md +0 -73
- package/ai-docs/GLOSSARY.md +0 -56
- package/ai-docs/REVIEW_CHECKLIST.md +0 -45
- package/ai-docs/RULES.md +0 -79
- package/ai-docs/SECURITY.md +0 -74
- package/ai-docs/SERVICE_STATE.md +0 -59
- package/ai-docs/SPEC_INDEX.md +0 -85
- package/ai-docs/TEST_INDEX.md +0 -45
- package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +0 -61
- package/ai-docs/patterns/defensive-error-propagation.md +0 -55
- package/ai-docs/patterns/event-scope-emission.md +0 -46
- package/ai-docs/patterns/source-to-test-path-mirroring.md +0 -45
- package/ai-docs/patterns/stateless-plugin-request-classes.md +0 -53
- package/ai-docs/patterns/typed-constants-and-enum-values.md +0 -47
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +0 -223
- package/src/annotation/ai-docs/annotation-spec.md +0 -236
- package/src/breakouts/ai-docs/breakouts-spec.md +0 -324
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +0 -243
- package/src/hashTree/ai-docs/hash-tree-spec.md +0 -267
- package/src/interceptors/ai-docs/interceptors-spec.md +0 -247
- package/src/interpretation/ai-docs/interpretation-spec.md +0 -256
- package/src/locus-info/ai-docs/locus-info-spec.md +0 -293
- package/src/media/ai-docs/media-spec.md +0 -267
- package/src/meeting/ai-docs/meeting-spec.md +0 -404
- package/src/meeting-info/ai-docs/meeting-info-spec.md +0 -261
- package/src/meetings/ai-docs/meetings-spec.md +0 -298
- package/src/member/ai-docs/member-spec.md +0 -196
- package/src/members/ai-docs/members-spec.md +0 -256
- package/src/metrics/ai-docs/metrics-spec.md +0 -185
- package/src/multistream/ai-docs/multistream-spec.md +0 -295
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +0 -234
- package/src/reachability/ai-docs/reachability-spec.md +0 -261
- package/src/reactions/ai-docs/reactions-spec.md +0 -198
- package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +0 -272
- package/src/recording-controller/ai-docs/recording-controller-spec.md +0 -223
- package/src/roap/ai-docs/roap-spec.md +0 -241
- package/src/webinar/ai-docs/webinar-spec.md +0 -243
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Module Spec
|
|
3
|
+
title: 'Webinar specification'
|
|
4
|
+
description: Responsibilities, boundaries, design, state, invariants, and verification for the meeting-scoped webinar controller, its practice-session data channel, and webcast operations.
|
|
5
|
+
tags: [module, specification]
|
|
6
|
+
---
|
|
7
|
+
<!-- sdd-generated-metadata
|
|
8
|
+
doc_kind: module-spec
|
|
9
|
+
generated_from: module-spec@0.3.0
|
|
10
|
+
generated_by: claude-code
|
|
11
|
+
approved_by: rarajes2@cisco.com
|
|
12
|
+
updated_at: 2026-11-17T03:14:21Z
|
|
13
|
+
validation_status: pass-with-warnings
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
# Webinar
|
|
17
|
+
|
|
18
|
+
This source-local document at `src/webinar/docs/README.md` owns the stable canonical specification
|
|
19
|
+
for **Webinar**: `meeting.webinar`, the meeting-scoped controller for webinar roles, the
|
|
20
|
+
practice-session LLM data channel, and host webcast, layout, and attendee operations. Ground every
|
|
21
|
+
claim in repository evidence and link to the [package architecture](../../../docs/architecture.md)
|
|
22
|
+
instead of repeating broader facts. No service specification exists because this package is a
|
|
23
|
+
library.
|
|
24
|
+
|
|
25
|
+
Start here: root [package agent instructions](../../../AGENTS.md) · router
|
|
26
|
+
[documentation index](../../../docs/index.md) · system
|
|
27
|
+
[package architecture](../../../docs/architecture.md) · registry
|
|
28
|
+
[module registry](../../../docs/specs/README.md).
|
|
29
|
+
|
|
30
|
+
## Metadata
|
|
31
|
+
|
|
32
|
+
| Field | Value |
|
|
33
|
+
| ----------------- | ----- |
|
|
34
|
+
| Owner | @webex/web-client, @webex/web-sdk |
|
|
35
|
+
| Source path | `src/webinar` |
|
|
36
|
+
| Resource kind | module |
|
|
37
|
+
| Status | Draft |
|
|
38
|
+
| Last verified | 2026-11-16 at `0b8c34db7f` |
|
|
39
|
+
| Module id | `plugin-meetings/webinar` |
|
|
40
|
+
| Parent spec | — |
|
|
41
|
+
| Doc kind | Module spec |
|
|
42
|
+
| Coverage score | Pending coverage assessment |
|
|
43
|
+
| Validation status | not-run |
|
|
44
|
+
|
|
45
|
+
## Applicability
|
|
46
|
+
|
|
47
|
+
| Condition ID | Status | Evidence or reason | Owned section |
|
|
48
|
+
| ------------------------------------ | ---------- | ------------------ | ------------- |
|
|
49
|
+
| `module.has_tiers` | N/A | No tier policy exists in `package.json` | Tier |
|
|
50
|
+
| `module.has_ui` | N/A | `src/webinar/index.ts` returns promises and state; it renders nothing | UI use-case flow |
|
|
51
|
+
| `module.crosses_service_boundaries` | Applicable | `src/webinar/index.ts` calls Locus controls, the webcast instance and attendee-search URLs, and the LLM data channel | Cross-boundary use-case flow |
|
|
52
|
+
| `module.holds_client_state` | Applicable | `src/webinar/index.ts` keeps role, practice-session, webcast URL, and practice-channel state | Client state model |
|
|
53
|
+
| `module.enforces_domain_rules` | Applicable | Role transition rules, owner validation, and practice-channel eligibility in `src/webinar/index.ts` | Business rules and invariants |
|
|
54
|
+
| `module.is_concurrent_async` | Applicable | Async practice-channel connect with an invocation-sequence guard and a deferred online listener in `src/webinar/index.ts` | Concurrency and reactive flow |
|
|
55
|
+
| `module.owns_persistence` | N/A | Nothing is stored; `src/webinar/collection.ts` is in memory only and unused | Data, schema, and migration discipline |
|
|
56
|
+
| `module.stateful_transitions` | Applicable | practiceSessionEnabled and the practice-channel lifecycle in `src/webinar/index.ts` | State machine |
|
|
57
|
+
| `module.exposes_wire_protocol` | N/A | Request bodies are listed under Cross-boundary use-case flow; no versioned format is owned here | Protocol and wire format |
|
|
58
|
+
| `module.ui_multi_screen` | N/A | No UI | UI flow |
|
|
59
|
+
| `module.large_data_model` | N/A | Seven props and three private fields in `src/webinar/index.ts` | Data model |
|
|
60
|
+
| `module.returns_caller_errors` | Applicable | Argument and URL guards throw, and HTTP and channel failures reject, in `src/webinar/index.ts` | Caller-visible failure modes |
|
|
61
|
+
| `module.module_specific_conventions` | N/A | No convention beyond the package rules is recorded in `src/webinar/index.ts` | Module-specific rules |
|
|
62
|
+
| `module.published_package` | N/A | Reached through meeting.webinar; export stability is owned by the package architecture (`package.json`) | Export stability |
|
|
63
|
+
| `module.embedded_in_host` | N/A | No host embedding | Host integration and theming |
|
|
64
|
+
| `module.has_design_tradeoff` | N/A | No recorded trade-off in `src/webinar/index.ts` | Key design trade-off |
|
|
65
|
+
| `module.has_submodules` | N/A | The directory has no child module | Sub-modules |
|
|
66
|
+
|
|
67
|
+
## Evidence register
|
|
68
|
+
|
|
69
|
+
Requirements cite current source and mirrored tests. Current code wins over retained prose when they
|
|
70
|
+
conflict; commit and PR history are excluded. Missing evidence stays a gap.
|
|
71
|
+
|
|
72
|
+
| Evidence | What it establishes |
|
|
73
|
+
| -------- | ------------------- |
|
|
74
|
+
| `src/webinar/index.ts` | `Webinar` extends `WebexPlugin` in namespace `Meetings` with `collections: {webinar: WebinarCollection}`; props, the practice-session channel lifecycle, and every webcast operation; JSDoc and code comments are the recorded rationale |
|
|
75
|
+
| `src/webinar/collection.ts` | `WebinarCollection` with `namespace` `Meetings`, `mainIndex` `sessionId`, `set`, and `get` over `webinarInfo` |
|
|
76
|
+
| `src/webinar/utils.ts` | `sanitizeParams` drops `null`, `undefined`, and empty-string values |
|
|
77
|
+
| `src/constants.ts` | `SELF_ROLES` (`ATTENDEE`, `PANELIST`, `MODERATOR`), `SHARE_STATUS.WHITEBOARD_SHARE_ACTIVE`, `LOCUS_LLM_EVENT`, `DEFAULT_LARGE_SCALE_WEBINAR_ATTENDEE_SEARCH_LIMIT` (50) |
|
|
78
|
+
| `src/meeting/index.ts` | Meeting creates `new Webinar({meetingId}, {parent: webex})` and forwards locus URL, LINKS_RESOURCES, SELF_ROLES_CHANGED, the practice-session status, data-channel URL changes, and the practice-session token; it reads the practice-channel accessors |
|
|
79
|
+
| `src/meeting/util.ts` | `MeetingUtil.cleanUp` calls `webinar.cleanUp()`; `updateLocusFromApiResponse` returns the response untouched when no meeting is given |
|
|
80
|
+
| `test/unit/spec/webinar/index.ts` | 93 `it` blocks over role changes, owner validation, token handling, channel connect and cleanup, and every webcast request |
|
|
81
|
+
| `test/unit/spec/webinar/collection.ts`, `test/unit/spec/webinar/utils.ts` | The collection's namespace and main index; `sanitizeParams` |
|
|
82
|
+
|
|
83
|
+
## Purpose and boundary
|
|
84
|
+
|
|
85
|
+
- Responsibility: owns webinar practice-session data-channel lifecycle, role/status projection, and
|
|
86
|
+
host webcast controls including layout and attendee operations.
|
|
87
|
+
- In scope: role projection (`selfIsPanelist`, `selfIsAttendee`, `canManageWebcast`); owner
|
|
88
|
+
validation; the practice-session LLM channel, its token, and its listeners; the practice-session
|
|
89
|
+
PATCH; webcast start/stop, layout, attendee view/search/expel, and large-scale attendee search.
|
|
90
|
+
- Out of scope: the default meeting LLM channel (`Meeting.updateLLMConnection`); transcription and
|
|
91
|
+
annotation behavior (they are re-pointed, not owned); token issuance (`Meeting.refreshDataChannelToken`);
|
|
92
|
+
server-side webcast authorization.
|
|
93
|
+
- Consumers: `Meeting` (`src/meeting/index.ts`, `src/meeting/util.ts`) and applications through
|
|
94
|
+
`meeting.webinar`.
|
|
95
|
+
|
|
96
|
+
## Structure and key files
|
|
97
|
+
|
|
98
|
+
`src/webinar/` contains 3 direct source files and has 3 mirrored unit-test files. This spec
|
|
99
|
+
separates its public operations, runtime data movement, component ownership, state applicability,
|
|
100
|
+
and verification boundary.
|
|
101
|
+
|
|
102
|
+
| File | Holds |
|
|
103
|
+
| ---- | ----- |
|
|
104
|
+
| `src/webinar/collection.ts` | module-owned `WebinarCollection`, declared by the plugin but not read or written by it |
|
|
105
|
+
| `src/webinar/index.ts` | `Webinar` plugin: state projection, practice-session channel lifecycle, and webcast operations |
|
|
106
|
+
| `src/webinar/utils.ts` | `sanitizeParams` query-parameter helper for large-scale attendee search |
|
|
107
|
+
| `test/unit/spec/webinar/collection.ts` and 2 sibling test files (`index.ts`, `utils.ts`) | mirrored unit coverage |
|
|
108
|
+
| `src/webinar/docs/README.md` | this module specification |
|
|
109
|
+
|
|
110
|
+
## Public surface
|
|
111
|
+
|
|
112
|
+
| Contract ID | Type | Surface | Purpose | Compatibility / deprecation | Schema / detail link | Root index |
|
|
113
|
+
| ----------- | ---- | ------- | ------- | --------------------------- | -------------------- | ---------- |
|
|
114
|
+
| `webinar-api` | SDK / state | `cleanUp()`, `locusUrlUpdate()`, `updateWebcastUrl()`, `updateCanManageWebcast()`, `updateRoleChanged()`, `getValidatedWebinarMeeting()`, and `updateStatusByRole()` | Derive webinar and practice-session state for the owning meeting from current Locus inputs. | Preserve owner validation, the `{isPromoted, isDemoted}` result, and current role/status transitions. | `src/webinar/index.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
115
|
+
| `webinar-api` | SDK / lifecycle | `isJoinPracticeSessionDataChannel()`, `ensurePracticeSessionDatachannelToken()`, `setPracticeSessionDatachannelToken()`, `updatePSDataChannel()`, `cleanupPSDataChannel()`, `setPracticeSessionState()`, `updatePracticeSessionStatus()`, and the accessors `getPracticeSessionBinding()`, `isPracticeSessionLLMChannelConnected()`, `getPracticeSessionLocusUrl()` | Own the meeting-specific practice-session LLM token, socket, and relay listener lifecycle. | Replacement/cleanup must affect only the owning meeting's channel resources. | `src/webinar/index.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
116
|
+
| `webinar-api` | SDK / remote | `startWebcast(meeting, layout)` and `stopWebcast()` | Start or stop webcast through the current webcast instance URL. | `startWebcast` validates only its `meeting` input; neither validates the URL or consults `canManageWebcast` locally. | `src/webinar/index.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
117
|
+
| `webinar-api` | SDK / remote | `queryWebcastLayout()` and `updateWebcastLayout(layout)` | Read or update the webcast layout using the current webcast instance URL and the supplied layout fields. | These methods do not call `sanitizeParams()` or enforce `canManageWebcast`; preserve their direct request outcome. | `src/webinar/index.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
118
|
+
| `webinar-api` | SDK / remote | `viewAllWebcastAttendees()`, `searchWebcastAttendees(queryString)`, `expelWebcastAttendee(participantId)`, and `searchLargeScaleWebinarAttendees({queryString, limit, next})` | Query, search, or expel webcast attendees through the webcast instance URL, or the Locus attendee-search URL for large-scale search. | Standard search uses `encodeURIComponent`; only large-scale search calls `sanitizeParams()` before `URLSearchParams`. None enforces `canManageWebcast`. | `src/webinar/index.ts`, `src/webinar/utils.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
119
|
+
| `webinar-api` | exported helpers/models | `sanitizeParams()` and `WebinarCollection.set()` / `get()` | Sanitize request parameters and provide the collection registered by the `Webinar` plugin definition. | `index.ts` declares `collections: {webinar: WebinarCollection}` for framework-managed instantiation; controller methods do not explicitly call the collection's read/write methods. | `src/webinar/index.ts`, `src/webinar/utils.ts`, `src/webinar/collection.ts` | [architecture](../../../docs/architecture.md#public-and-consumer-surfaces) |
|
|
120
|
+
|
|
121
|
+
Contract ID `webinar-api` is indexed in the
|
|
122
|
+
[package architecture](../../../docs/architecture.md#public-and-consumer-surfaces) and registered in
|
|
123
|
+
`.sdd/manifest.json`; it requires `webex-core-plugin-host` and `locus-http`.
|
|
124
|
+
|
|
125
|
+
Compatibility notes:
|
|
126
|
+
|
|
127
|
+
- Prefer additive fields/options and preserve current rejection/event/cleanup semantics. Internal
|
|
128
|
+
helpers are not public merely because they are exported within the source directory.
|
|
129
|
+
|
|
130
|
+
## Dependencies
|
|
131
|
+
|
|
132
|
+
The module requires parent Meeting/Locus state, webinar service URLs, data-channel tokens and the
|
|
133
|
+
LLM plugin, role/capability state, request access, and logging.
|
|
134
|
+
|
|
135
|
+
| Dependency | Why it is required | Failure behavior |
|
|
136
|
+
| ---------- | ------------------ | ---------------- |
|
|
137
|
+
| `@webex/webex-core` (`WebexPlugin`, `config.trackingIdPrefix`), contract `webex-core-plugin-host` | `this.request` for every HTTP call; the trackingId prefix of webcast requests | Request rejections are logged and rethrown |
|
|
138
|
+
| `webex.credentials.getUserToken()` | The explicit `authorization` header of every webcast and attendee request | A token failure rejects the method |
|
|
139
|
+
| `webex.internal.llm` (`@webex/internal-plugin-llm`) | `isDataChannelTokenEnabled()` and `createChannel()` for the practice-session channel | `registerAndConnect` rejection clears the current channel reference and rejects |
|
|
140
|
+
| `webex.meetings.getMeetingByType` | Resolves the owning meeting from `meetingId` | Unresolvable or mismatched meetings make the owner `undefined` |
|
|
141
|
+
| Owning `Meeting` | `isJoined`, `locusInfo`, `llmChannel`, `voiceaChannel`, `annotation`, `refreshDataChannelToken`, `processRelayEvent`, `processLocusLLMEvent`, `handleLLMOnline`, `startTranscriptionIfNeeded`, `shareStatus`, `locusId`, `correlationId` | A missing default channel defers the practice connect; a token refresh failure is logged and the connect proceeds without a refreshed token |
|
|
142
|
+
| Locus controls, contract `locus-http` | `setPracticeSessionState` PATCHes `<locusUrl>/controls` with `{practiceSession: {enabled}}` through `this.request` | The rejection is logged and rethrown |
|
|
143
|
+
| `MeetingUtil.updateLocusFromApiResponse` (`src/meeting/util.ts`) | Applies the Locus DTO returned by the practice-session PATCH | Returns the response untouched without a meeting |
|
|
144
|
+
| `LoggerProxy`, `uuid`, `lodash.get`, `src/constants.ts` | Logging, trackingIds, safe payload reads, role and share constants | — |
|
|
145
|
+
|
|
146
|
+
## Requirements
|
|
147
|
+
|
|
148
|
+
| ID | WHAT | WHY | Source evidence | Test / example evidence | Assumptions / gaps | Confidence |
|
|
149
|
+
| --- | ---- | --- | --------------- | ----------------------- | ------------------ | ---------- |
|
|
150
|
+
| `MOD-001` | derive webinar role, practice-session, and webcast state: `updateRoleChanged` sets `selfIsPanelist`, `selfIsAttendee`, and `canManageWebcast` (MODERATOR role), computes `isPromoted` (ATTENDEE to PANELIST) and `isDemoted` (PANELIST to ATTENDEE, or newly ATTENDEE), calls `updateStatusByRole`, and returns both flags; `updateWebcastUrl` reads `resources.webcastInstance.url`. | Owns webinar practice-session data-channel lifecycle, role/status projection, and host webcast controls; the JSDoc says only the host can manage webcast, and the newly-attendee case covers an attendee who has just joined. | `src/webinar/index.ts` | `test/unit/spec/webinar/index.ts` | none | Present |
|
|
151
|
+
| `MOD-002` | start/stop practice-session data channel and webcast: the practice channel is driven by `updatePSDataChannel` and `setPracticeSessionState` (PATCH `<locusUrl>/controls` with `{practiceSession: {enabled}}`), and webcast by PUT `<webcastInstanceUrl>/streaming` with `action` `start` (plus `meetingInfo` and `layout`) or `stop`. | Practice-channel and webcast operations use different owners and request paths, so their lifecycle and authorization behavior must stay distinct. | `src/webinar/index.ts` | `test/unit/spec/webinar/index.ts` | stored `canManageWebcast` is not read by webcast methods; retain as an authorization-gap characterization | Present |
|
|
152
|
+
| `MOD-003` | Invalid inputs and HTTP/channel failures remain visible; practice-session cleanup disconnects the channel, removes the relay, Locus LLM, and online listeners for the validated owning meeting, and drops the channel (with its token) even when disconnect throws. | Practice resources are meeting-owned, while webcast authorization currently depends on the service rather than the stored capability. | `src/webinar/index.ts` | `test/unit/spec/webinar/index.ts` | listeners are not removed when the owner cannot be validated | Present |
|
|
153
|
+
| `MOD-004` | Practice-session data-channel token/connection state is created, replaced, and cleaned independently from the public meeting channel: a separate channel from `llm.createChannel()`, a pending token kept apart from the meeting's, and annotation and voicea re-pointed to it on connect and back to the main channel on cleanup. | Practice participants must not receive or retain events on the wrong session transport. | `src/webinar/index.ts` | `test/unit/spec/webinar/index.ts` | none | Present |
|
|
154
|
+
| `MOD-005` | Webcast operations send the user token against the current webcast URL without reading `canManageWebcast`. `startWebcast()` validates `meeting`; large-scale attendee search validates the resolvable webinar meeting and attendee-search URL and sanitizes its optional query fields. Layout, standard view/search/expel, and stop operations perform no equivalent local validation/sanitization. | This preserves the method-specific enforcement boundary instead of generalizing the large-scale-search checks across unrelated operations. | `src/webinar/index.ts`, `src/webinar/utils.ts` | `test/unit/spec/webinar/index.ts`, `test/unit/spec/webinar/utils.ts` | Possible product authorization defect: confirm whether these operations should reject locally when `canManageWebcast` is false. | Present |
|
|
155
|
+
| `MOD-006` | Role and practice/webcast status updates refresh the controller before exposing the new state: `updateRoleChanged` and `updatePracticeSessionStatus` set the props and then call `updatePSDataChannel`. | Consumer controls must follow the latest Locus role/status projection rather than stale local intent. | `src/webinar/index.ts`, `src/meeting/index.ts` | `test/unit/spec/webinar/index.ts` | none | Present |
|
|
156
|
+
| `MOD-007` | `getValidatedWebinarMeeting()` returns the meeting for `meetingId` only when `locusUrl` is set and equals the meeting's `locusUrl`; otherwise it warns (when a meeting was found) and returns `undefined`. | The JSDoc: the `meetingId` pointer can drift onto an unrelated transient meeting such as an inbound 1:1 call, so callers must treat a failed match as no owned meeting. | `src/webinar/index.ts` | `test/unit/spec/webinar/index.ts` | none | Present |
|
|
157
|
+
| `MOD-008` | `updateStatusByRole` forces `locusInfo.updateMediaShares(mediaShares, true)` when promoted, or when demoted while the share status is whiteboard active, then calls `updatePSDataChannel`. | The code comment: attendees subscribe to streaming for whiteboard sharing while panelists still subscribe natively, so a forced update is needed. | `src/webinar/index.ts` | `test/unit/spec/webinar/index.ts` | none | Present |
|
|
158
|
+
| `MOD-009` | `updatePSDataChannel` connects only when the validated meeting is joined, self is a panelist, the practice session is enabled, and `practiceSessionDatachannelUrl` is set; it skips when already connected to the same Locus and data-channel URLs; it waits for the default meeting channel to be online; it ignores an invocation made stale by a newer call or by an eligibility or URL change during the token refresh. | The code comments: the default session must be connected first, the listener is added before the check because the channel does not replay missed events, and stale invocations must not reconnect a session a newer transition already updated or cleaned. | `src/webinar/index.ts` | `test/unit/spec/webinar/index.ts` | none | Present |
|
|
159
|
+
|
|
160
|
+
## Design overview
|
|
161
|
+
|
|
162
|
+
`Webinar` projects Locus role/practice/webcast data, owns the practice-session LLM data-channel
|
|
163
|
+
token/listener lifecycle, and calls webcast/layout/attendee URLs directly. `utils.ts` sanitizes only
|
|
164
|
+
large-scale attendee-search parameters. `index.ts` registers `WebinarCollection` through its
|
|
165
|
+
WebexPlugin `collections` declaration for framework-managed instantiation, although controller
|
|
166
|
+
methods do not explicitly read or populate it.
|
|
167
|
+
|
|
168
|
+
The implementation is TypeScript/JavaScript in the Node 22.14 Yarn workspace, built on the Webex
|
|
169
|
+
core/plugin abstractions and tested with Mocha/Sinon/`@webex/test-helper-chai`. Meeting constructs
|
|
170
|
+
one instance per meeting with its `meetingId` and drives it from Locus events. Every method that
|
|
171
|
+
touches the meeting resolves it through `getValidatedWebinarMeeting` (MOD-007), except
|
|
172
|
+
`ensurePracticeSessionDatachannelToken`, whose caller passes an already validated meeting. While the
|
|
173
|
+
practice channel is connected it carries the meeting's relay and Locus LLM events, annotation, and
|
|
174
|
+
voicea; Meeting's `isLLMConnected`, `getLLMLocusUrl`, and `getDataChannelTokenType` read the practice
|
|
175
|
+
channel whenever `isJoinPracticeSessionDataChannel()` is true.
|
|
176
|
+
|
|
177
|
+
## Data flow and sequence coverage
|
|
178
|
+
|
|
179
|
+
Call style: in-process method calls on `meeting.webinar`; outbound HTTPS through `WebexPlugin.request`
|
|
180
|
+
to Locus controls, the webcast instance URL, and the attendee-search URL; a WebSocket practice-session
|
|
181
|
+
channel through `webex.internal.llm`.
|
|
182
|
+
|
|
183
|
+
```mermaid
|
|
184
|
+
flowchart LR
|
|
185
|
+
Locus[Locus webinar role/status/URLs] --> Controller[index.ts]
|
|
186
|
+
Caller[Meeting / webinar consumer] --> Controller
|
|
187
|
+
Controller --> LLM[practice-session LLM data channel]
|
|
188
|
+
Controller --> Service[webcast/layout/attendee HTTP URLs]
|
|
189
|
+
Framework[WebexPlugin collection lifecycle] --> Collection[collection.ts WebinarCollection]
|
|
190
|
+
Controller -. declares collection .-> Framework
|
|
191
|
+
Utils[utils.ts query sanitization] --> Service
|
|
192
|
+
Controller --> Caller
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Sequence coverage:
|
|
196
|
+
|
|
197
|
+
| Operation group | Diagram | Failure coverage |
|
|
198
|
+
| --------------- | ------- | ---------------- |
|
|
199
|
+
| UC-003, UC-004 — webinar webcast, layout, and attendee operation groups | Webcast operations sequence | missing meeting or attendee-search URL, webcast rejection, and absent local capability guard |
|
|
200
|
+
| UC-002 — webinar practice-channel connect, replace, and cleanup paths | Practice-session channel sequence | not eligible, missing practice channel URL, default channel offline, token refresh failure, stale invocation, replaced channel, connect rejection, and disconnect failure |
|
|
201
|
+
| UC-001 — role and status projection | State machine; `src/webinar/index.ts` (MOD-001, MOD-008) | missing role payload treated as empty roles |
|
|
202
|
+
| UC-005 — practice-session start or stop request | `src/webinar/index.ts` (one PATCH, MOD-002) | the rejection is logged and rethrown |
|
|
203
|
+
|
|
204
|
+
### Webcast operations sequence
|
|
205
|
+
|
|
206
|
+
```mermaid
|
|
207
|
+
sequenceDiagram
|
|
208
|
+
participant C as Webinar consumer
|
|
209
|
+
participant W as Webinar index.ts
|
|
210
|
+
participant U as utils.ts
|
|
211
|
+
participant S as Webcast service URL
|
|
212
|
+
C->>W: start/stop webcast, layout, or attendee operation
|
|
213
|
+
W->>W: validate meeting (startWebcast) or webinar meeting and attendee-search URL (large-scale search)
|
|
214
|
+
Note over W: canManageWebcast is stored but not read as a client-side gate
|
|
215
|
+
W->>U: sanitize only large-scale attendee-search parameters
|
|
216
|
+
W->>S: HTTP operation with user token and trackingId
|
|
217
|
+
alt request rejects
|
|
218
|
+
S-->>W: rejection
|
|
219
|
+
W-->>C: log and rethrow
|
|
220
|
+
else success
|
|
221
|
+
S-->>W: response
|
|
222
|
+
W-->>C: result
|
|
223
|
+
end
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Practice-session channel sequence
|
|
227
|
+
|
|
228
|
+
```mermaid
|
|
229
|
+
sequenceDiagram
|
|
230
|
+
participant L as Locus webinar update
|
|
231
|
+
participant W as Webinar
|
|
232
|
+
participant M as Validated owning Meeting
|
|
233
|
+
participant P as Practice-session LLM channel
|
|
234
|
+
participant C as Meeting consumer
|
|
235
|
+
L-->>W: role/status/practice channel URL and token
|
|
236
|
+
W->>W: updatePSDataChannel, bump invocation sequence
|
|
237
|
+
alt update belongs to this meeting's practice session
|
|
238
|
+
opt default meeting LLM channel not online
|
|
239
|
+
W->>M: subscribe llmChannel online, defer until it fires
|
|
240
|
+
end
|
|
241
|
+
W->>M: ensure token (refreshDataChannelToken when none is cached)
|
|
242
|
+
alt newer invocation, or eligibility or channel URL changed
|
|
243
|
+
W->>W: return without connecting
|
|
244
|
+
else still current
|
|
245
|
+
W->>P: create/replace owned channel, registerAndConnect
|
|
246
|
+
W->>P: add relay, Locus LLM, and online listeners
|
|
247
|
+
W->>M: point annotation and voicea at the practice channel
|
|
248
|
+
P-->>C: scoped practice-session events
|
|
249
|
+
end
|
|
250
|
+
else owning meeting cleans up, is no longer eligible, or channel URLs changed
|
|
251
|
+
W->>P: disconnect (3050) and remove this meeting's relay listener/token ownership
|
|
252
|
+
W->>M: point annotation and voicea back at the main channel
|
|
253
|
+
end
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Class and component relationships
|
|
257
|
+
|
|
258
|
+
```mermaid
|
|
259
|
+
classDiagram
|
|
260
|
+
class WebexPlugin
|
|
261
|
+
class Webinar {
|
|
262
|
+
locusUrl
|
|
263
|
+
webcastInstanceUrl
|
|
264
|
+
canManageWebcast
|
|
265
|
+
selfIsPanelist
|
|
266
|
+
selfIsAttendee
|
|
267
|
+
practiceSessionEnabled
|
|
268
|
+
meetingId
|
|
269
|
+
updateRoleChanged(payload)
|
|
270
|
+
updatePSDataChannel()
|
|
271
|
+
cleanupPSDataChannel()
|
|
272
|
+
startWebcast(meeting, layout)
|
|
273
|
+
searchLargeScaleWebinarAttendees(payload)
|
|
274
|
+
}
|
|
275
|
+
class Collection["WebinarCollection"]
|
|
276
|
+
class Utils["sanitizeParams"]
|
|
277
|
+
class Locus
|
|
278
|
+
class Caller["Meeting"]
|
|
279
|
+
class LLM["Practice-session LLM channel"]
|
|
280
|
+
class Service["Webcast and attendee URLs"]
|
|
281
|
+
class Framework["WebexPlugin collections"]
|
|
282
|
+
WebexPlugin <|-- Webinar
|
|
283
|
+
Locus --> Caller : role, status, URLs
|
|
284
|
+
Caller --> Webinar : forwards updates
|
|
285
|
+
Webinar --> LLM : owns
|
|
286
|
+
Webinar --> Service : HTTP
|
|
287
|
+
Framework --> Collection
|
|
288
|
+
Webinar ..> Framework : declares collection registration
|
|
289
|
+
Utils --> Service
|
|
290
|
+
Webinar --> Caller : re-points annotation and voicea
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
The arrows identify ownership and delegation inside `src/webinar/`; `utils.ts` and `collection.ts`
|
|
294
|
+
are helpers and are not presented as transports.
|
|
295
|
+
|
|
296
|
+
## Use cases and flows
|
|
297
|
+
|
|
298
|
+
| Use case | Actor or caller | Primary steps and outcome | Failure or boundary behavior | Evidence |
|
|
299
|
+
| -------- | --------------- | ------------------------- | ---------------------------- | -------- |
|
|
300
|
+
| `UC-001` | Meeting, on Locus updates | Project webinar role, webcast URL, practice status, and owner identity from Locus updates | Missing role payload is treated as no roles; an unvalidated owner skips the media-share refresh | `src/webinar/index.ts`, `test/unit/spec/webinar/index.ts` |
|
|
301
|
+
| `UC-002` | Meeting (panelist in a practice session) | Acquire the practice-session token, connect/replace its LLM channel for the owning meeting, and remove its relay listener during cleanup | Deferred while the default channel is offline; stale invocations return; a connect rejection clears the channel | `src/webinar/index.ts`, `test/unit/spec/webinar/index.ts` |
|
|
302
|
+
| `UC-003` | Host application | Start/stop webcast or query/update layout after current input checks; `canManageWebcast` is stored but not enforced by these methods | `startWebcast` throws without a meeting; rejections are logged and rethrown | `src/webinar/index.ts`, `test/unit/spec/webinar/index.ts` |
|
|
303
|
+
| `UC-004` | Host application | View or expel attendees directly, standard-search with `encodeURIComponent`, or large-scale-search after `sanitizeParams()` and meeting/search-URL validation, while relying on service authorization | Large-scale search throws without a validated meeting or search URL | `src/webinar/index.ts`, `src/webinar/utils.ts`, `test/unit/spec/webinar/index.ts` |
|
|
304
|
+
| `UC-005` | Host application | `setPracticeSessionState(enabled)` PATCHes the Locus controls and applies the returned Locus | The rejection is logged and rethrown | `src/webinar/index.ts`, `test/unit/spec/webinar/index.ts` |
|
|
305
|
+
|
|
306
|
+
### Cross-boundary use-case flow
|
|
307
|
+
|
|
308
|
+
| Boundary | Transport and ordering | Compatibility | Timeout, retry, and recovery |
|
|
309
|
+
| -------- | ---------------------- | ------------- | ---------------------------- |
|
|
310
|
+
| Locus controls (`UC-005`) | PATCH `<locusUrl>/controls` through `this.request` | Body `{practiceSession: {enabled}}` | No retry; logged and rethrown |
|
|
311
|
+
| Webcast instance (`UC-003`, `UC-004`) | `<webcastInstanceUrl>/streaming` (PUT), `/layout` (GET, PUT), `/attendees` (GET, `?keyword=`), `/attendees/<participantId>` (DELETE); explicit `authorization` user token and `trackingId` headers | Start body `{action: 'start', meetingInfo: {locusId, correlationId}, layout}`; stop `{action: 'stop'}`; layout `{videoLayout, contentLayout, syncStageLayout, syncStageInMeeting}` | No retry; logged and rethrown |
|
|
312
|
+
| Locus attendee search (`UC-004`) | GET `<links.resources.attendeeSearch.url>?search_text&limit&next` | `limit` defaults to 50; empty values are dropped | No retry |
|
|
313
|
+
| Practice-session LLM channel (`UC-002`) | `registerAndConnect(locusUrl, practiceSessionDatachannelUrl, token)`; the refresh handler calls `meeting.refreshDataChannelToken()` | Disconnect codes 3050 `done (permanent)` on cleanup and `replaced` for a superseded channel | Re-attempted on the next Locus update or when the default channel comes online |
|
|
314
|
+
|
|
315
|
+
## Client state model
|
|
316
|
+
|
|
317
|
+
Webcast URL, management capability, role transition, practice-session status/channel/token, and
|
|
318
|
+
listeners are meeting scoped: one instance per Meeting. The attendee collection is declared but holds
|
|
319
|
+
nothing.
|
|
320
|
+
|
|
321
|
+
| State or slice | Owner | Initial state | Transition triggers | Reset or persistence boundary |
|
|
322
|
+
| -------------- | ---------- | ------------- | ------------------- | ----------------------------- |
|
|
323
|
+
| `locusUrl`, `webcastInstanceUrl` | `Webinar` instance | undefined | `locusUrlUpdate`, `updateWebcastUrl` | Instance memory |
|
|
324
|
+
| `selfIsPanelist`, `selfIsAttendee`, `canManageWebcast` | `Webinar` instance | undefined | `updateRoleChanged`; `updateCanManageWebcast` | Instance memory |
|
|
325
|
+
| `practiceSessionEnabled` | `Webinar` instance | undefined (falsy) | `updatePracticeSessionStatus` | Instance memory |
|
|
326
|
+
| `meetingId` | `Webinar` instance | The Meeting's id at construction | — | Instance memory |
|
|
327
|
+
| `_practiceSessionLLMChannel` | `Webinar` instance | undefined | Set by `updatePSDataChannel`; cleared by `cleanupPSDataChannel` or a connect rejection | Disconnected by `cleanUp` |
|
|
328
|
+
| `_pendingPracticeSessionDatachannelToken` | `Webinar` instance | undefined | `setPracticeSessionDatachannelToken`, a token refresh without a channel; moved onto the channel at connect | Not cleared by cleanup |
|
|
329
|
+
| `_pendingOnlineListener`, `_updatePSDataChannelSequence` | `Webinar` instance | unset | Deferred connect; every `updatePSDataChannel` call | The listener is removed on cleanup or when the default channel is online |
|
|
330
|
+
|
|
331
|
+
## Business rules and invariants
|
|
332
|
+
|
|
333
|
+
| ID | Invariant | WHY | Enforcement source | Test evidence |
|
|
334
|
+
| --- | --------- | --- | ------------------ | ------------- |
|
|
335
|
+
| `INV-001` | Practice-channel replacement is meeting-owner scoped: only the meeting returned by `getValidatedWebinarMeeting` gets listeners, annotation, and voicea changes. | The meetingId pointer can drift onto a transient meeting (MOD-007). | `src/webinar/index.ts` | `test/unit/spec/webinar/index.ts` |
|
|
336
|
+
| `INV-002` | Only `searchLargeScaleWebinarAttendees()` uses `sanitizeParams()`; standard attendee search URL-encodes its keyword, and layout/view/expel operations do neither. Webcast operations rely on server authorization and do not consult `canManageWebcast`. | Each method keeps its own enforcement boundary (MOD-005). | `src/webinar/index.ts`, `src/webinar/utils.ts` | `test/unit/spec/webinar/index.ts` |
|
|
337
|
+
| `INV-003` | The practice channel connects only while `isJoinPracticeSessionDataChannel()` (panelist and practice session enabled) holds and the meeting is joined. | Practice participants must not use the wrong session transport (MOD-004, MOD-009). | `src/webinar/index.ts` | `test/unit/spec/webinar/index.ts` |
|
|
338
|
+
|
|
339
|
+
## Concurrency and reactive flow
|
|
340
|
+
|
|
341
|
+
- Practice-session channel/listener/token ownership is keyed to the owning meeting and is detached
|
|
342
|
+
when that meeting replaces or cleans up its practice channel. Webcast HTTP operations settle their
|
|
343
|
+
returned promises; current code stores `canManageWebcast` but does not read it as a local
|
|
344
|
+
authorization guard.
|
|
345
|
+
- Execution model: one JavaScript event loop; `updatePSDataChannel` and `cleanupPSDataChannel` are
|
|
346
|
+
async and may interleave with Locus updates.
|
|
347
|
+
- Ordering guarantees: each `updatePSDataChannel` call takes a sequence number; after the token await
|
|
348
|
+
only the latest call proceeds, and after `registerAndConnect` a channel that is no longer current is
|
|
349
|
+
disconnected with reason `replaced`.
|
|
350
|
+
- Deferred work: at most one pending `online` listener on the default channel; when it fires it clears
|
|
351
|
+
itself and calls `updatePSDataChannel` again.
|
|
352
|
+
- Fire-and-forget: `updatePracticeSessionStatus` and Meeting's data-channel URL handler call
|
|
353
|
+
`updatePSDataChannel` without awaiting it.
|
|
354
|
+
|
|
355
|
+
## State machine
|
|
356
|
+
|
|
357
|
+
```mermaid
|
|
358
|
+
stateDiagram-v2
|
|
359
|
+
state "practiceSessionEnabled = false" as PracticeFalse
|
|
360
|
+
state "practiceSessionEnabled = true" as PracticeTrue
|
|
361
|
+
[*] --> PracticeFalse
|
|
362
|
+
PracticeFalse --> PracticeTrue: updatePracticeSessionStatus({enabled: true})
|
|
363
|
+
PracticeTrue --> PracticeFalse: updatePracticeSessionStatus({enabled: false})
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
The diagram above is limited to the stored boolean projection in `src/webinar/index.ts`.
|
|
367
|
+
Practice-channel creation/replacement is a side effect of
|
|
368
|
+
`updatePracticeSessionStatus()`/`updatePSDataChannel()`, not a separately named controller state; the
|
|
369
|
+
fields it moves through are shown below.
|
|
370
|
+
|
|
371
|
+
```mermaid
|
|
372
|
+
stateDiagram-v2
|
|
373
|
+
[*] --> NoChannel
|
|
374
|
+
NoChannel --> WaitingForDefault: eligible, default channel offline
|
|
375
|
+
WaitingForDefault --> NoChannel: online fires, re-evaluate
|
|
376
|
+
NoChannel --> Connecting: eligible, default channel online, sequence current
|
|
377
|
+
Connecting --> Connected: registerAndConnect resolves and channel still current
|
|
378
|
+
Connecting --> NoChannel: registerAndConnect rejects
|
|
379
|
+
Connected --> NoChannel: not eligible, URLs changed, or cleanUp
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
## Caller-visible failure modes
|
|
383
|
+
|
|
384
|
+
| Condition | Signal | Caller recovery |
|
|
385
|
+
| --------- | ------ | --------------- |
|
|
386
|
+
| `startWebcast()` lacks a meeting, or large-scale search cannot resolve its webinar meeting/attendee-search URL | The async operation rejects with an `Error` before issuing its request. Layout, stop, standard view/search, and expel do not perform the same local validation. | Supply the method-specific required context; do not infer a shared validation gate. |
|
|
387
|
+
| Practice-session channel/token setup fails or its owning meeting cleans up | A `registerAndConnect` rejection rejects `updatePSDataChannel` and clears the channel; a disconnect failure is logged and rethrown after cleanup removes only that meeting's relay listeners; a token refresh failure is logged and the connect proceeds without it. | Re-establish the practice channel for the owning meeting if still required. |
|
|
388
|
+
| Webcast HTTP request rejects | The returned promise rejects after an error log. `canManageWebcast` is not consulted as a client-side guard by these operations. | Handle the service rejection; treat local capability enforcement as the recorded product-decision gap. |
|
|
389
|
+
| `setPracticeSessionState` request rejects | The promise rejects after `Meeting:webinar#setPracticeSessionState failed` is logged. | Handle the rejection. |
|
|
390
|
+
|
|
391
|
+
Evidence: `src/webinar/index.ts` and the failure cases in `test/unit/spec/webinar/index.ts`.
|
|
392
|
+
|
|
393
|
+
## Pitfalls and constraints
|
|
394
|
+
|
|
395
|
+
- Practice-session media/data-channel state differs from public webcast state. Reusing the ordinary
|
|
396
|
+
meeting channel without cleanup can deliver events to the wrong session.
|
|
397
|
+
- Verify both typed constants/enums and raw wire values before changing a logical condition in this
|
|
398
|
+
legacy package (`SELF_ROLES` and `SHARE_STATUS` in `src/constants.ts`).
|
|
399
|
+
- No webcast method checks `webcastInstanceUrl`; an unset URL produces a request to
|
|
400
|
+
`undefined/streaming` and similar paths. `expelWebcastAttendee` interpolates `participantId`
|
|
401
|
+
without encoding.
|
|
402
|
+
- `updatePracticeSessionStatus` calls `updatePSDataChannel().then(() => {})` with no rejection
|
|
403
|
+
handler, so a connect failure there surfaces as an unhandled rejection.
|
|
404
|
+
- Log prefixes vary: `Webinar:index#`, `Meeting:webinar#`, and `Meeting:webinar5k#`.
|
|
405
|
+
- The pending practice-session token survives `cleanUp`.
|
|
406
|
+
|
|
407
|
+
## Verification
|
|
408
|
+
|
|
409
|
+
Use the current mirrored suites: `test/unit/spec/webinar/collection.ts`,
|
|
410
|
+
`test/unit/spec/webinar/index.ts`, `test/unit/spec/webinar/utils.ts`. Characterize the
|
|
411
|
+
webinar-specific use cases above and each listed failure condition; add cleanup or transition cases
|
|
412
|
+
only for resources and state this module actually owns.
|
|
413
|
+
|
|
414
|
+
| Behavior / Requirement | Existing test evidence | Gap |
|
|
415
|
+
| ---------------------- | ---------------------- | --- |
|
|
416
|
+
| `MOD-001` | `test/unit/spec/webinar/index.ts` covers role promotion, demotion, newly attendee, moderator, unchanged, and missing payload | standalone collection use is not exercised beyond its namespace and main index |
|
|
417
|
+
| `MOD-002` | `test/unit/spec/webinar/index.ts` covers start/stop, layout, search, and expel request inputs separately, and the practice-session PATCH | pagination (`next`) of large-scale search is not asserted |
|
|
418
|
+
| `MOD-003`, `INV-001` | `test/unit/spec/webinar/index.ts` covers cleanup listener removal, removal when disconnect throws, and the pending online listener | prove webcast methods do not read `canManageWebcast` |
|
|
419
|
+
| `MOD-004`, `MOD-009`, `INV-003` | `test/unit/spec/webinar/index.ts` covers token refresh, eligibility changes during refresh, same-endpoint skip, endpoint change cleanup, deferral, duplicate-listener guard, replacement mid-connect, and connect rejection | none |
|
|
420
|
+
| `MOD-005`, `INV-002` | `test/unit/spec/webinar/index.ts`, `test/unit/spec/webinar/utils.ts` | characterize current no-client-gate behavior; capability enforcement remains a product-decision gap; the unresolvable-meeting branch of large-scale search has no case |
|
|
421
|
+
| `MOD-006`, `MOD-008` | `test/unit/spec/webinar/index.ts` | none |
|
|
422
|
+
| `MOD-007` | `test/unit/spec/webinar/index.ts` covers match, mismatch, no meeting, and uninitialized locusUrl | none |
|
|
423
|
+
|
|
424
|
+
Coverage state and the contracts baseline are recorded in `.sdd/manifest.json`. Coverage measurement
|
|
425
|
+
is pending; the module stays Partial until coverage review and independent validation run.
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema_version": 2,
|
|
3
|
-
"note": "Provenance for the template content this bundle carries. The sdd-legacy profile is frozen in templates/component-repo. As a temporary promotion safeguard, repo-standards bundles only the 17 upstream files its resolver consumes under templates/repo-standards-upstream; config/template-normalization.json remains authoritative for that profile's pin and the snapshot's own .source.json records its checksums. The top-level source_repo/source_branch/source_commit/library_version keys are the sdd-legacy pin and stay the single place it is recorded.",
|
|
4
|
-
"source_repo": "WebexDevPlatform/RepoAnnotation-Templates",
|
|
5
|
-
"source_branch": "main",
|
|
6
|
-
"source_commit": "0aa65d93f019e5313ec2ddfac9b0c7352a2882cc",
|
|
7
|
-
"library_version": "0.2.2",
|
|
8
|
-
"synced_at": "2026-07-31",
|
|
9
|
-
"profiles": {
|
|
10
|
-
"sdd-legacy": {
|
|
11
|
-
"kind": "vendored",
|
|
12
|
-
"root": "templates/component-repo",
|
|
13
|
-
"source_host": "sqbu-github.cisco.com",
|
|
14
|
-
"pin_recorded_in": "this file's top-level source_repo/source_branch/source_commit keys",
|
|
15
|
-
"frozen": true,
|
|
16
|
-
"frozen_reason": "RepoAnnotation-Templates moved to WebexTools/repo-standards, where the same document model was normalized. This profile stays pinned to the last reviewed commit of the old home so repositories already generated against it keep validating unchanged. The vendored tree is byte-identical to the commit the top-level keys name; nothing generated is written into it. New pins land on the repo-standards profile."
|
|
17
|
-
},
|
|
18
|
-
"repo-standards": {
|
|
19
|
-
"kind": "bundled-upstream",
|
|
20
|
-
"root": "templates/repo-standards-upstream",
|
|
21
|
-
"source_repo": "WebexTools/repo-standards",
|
|
22
|
-
"source_host": "github.com",
|
|
23
|
-
"pin_recorded_in": "config/template-normalization.json",
|
|
24
|
-
"snapshot_provenance": "templates/repo-standards-upstream/.source.json",
|
|
25
|
-
"resolved_by": "scripts/resolve_templates.py",
|
|
26
|
-
"stored_content": "17 resolver-required upstream files",
|
|
27
|
-
"stored_content_reason": "Temporary packaging and promotion safeguard: setup must work without network or private-repository credentials. The resolver rejects missing, extra, or checksum-mismatched files. This is not a copy of the complete repo-standards templates tree."
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# Detailed Module Spec Standard
|
|
2
|
-
|
|
3
|
-
Use this standard with `module-spec.template.md` when generating or manually writing
|
|
4
|
-
`<module-path>/ai-docs/<module-name>-spec.md`. It applies whether a team uses an automated generator
|
|
5
|
-
or its own manual process.
|
|
6
|
-
|
|
7
|
-
## Required Shape
|
|
8
|
-
|
|
9
|
-
A module spec is the canonical module document. It combines orientation, requirements, design,
|
|
10
|
-
behavior flows, contracts, edge cases, and module tests in one source-local file.
|
|
11
|
-
|
|
12
|
-
Every generated module spec keeps these universal sections:
|
|
13
|
-
|
|
14
|
-
- `Metadata`
|
|
15
|
-
- `Evidence Rules`
|
|
16
|
-
- `Source Material Register`
|
|
17
|
-
- `Overview`
|
|
18
|
-
- `Purpose / Responsibility`
|
|
19
|
-
- `Stack`
|
|
20
|
-
- `Folder / Package Structure`
|
|
21
|
-
- `Key Files (source of truth)`
|
|
22
|
-
- `Public Surface`
|
|
23
|
-
- `Requires (dependencies)`
|
|
24
|
-
- `Requirements`
|
|
25
|
-
- `Design Overview`
|
|
26
|
-
- `Data Flow`
|
|
27
|
-
- `Sequence Diagram(s)`
|
|
28
|
-
- `Class / Component Relationships`
|
|
29
|
-
- `Use Cases`
|
|
30
|
-
- `Pitfalls`
|
|
31
|
-
- `Test-Case Strategy (module)`
|
|
32
|
-
- `Traceability`
|
|
33
|
-
|
|
34
|
-
Conditional sections are kept only when they apply to the module. When kept, they are filled with the
|
|
35
|
-
same level of evidence as the universal sections.
|
|
36
|
-
|
|
37
|
-
Rendered sections follow the template order: identity/provenance, orientation, public boundary,
|
|
38
|
-
requirements, implementation design and flows, applicable state/data/protocol details, maintenance
|
|
39
|
-
edges, tests, and traceability. Reordering generated sections makes the spec harder to scan and should
|
|
40
|
-
be corrected before validation.
|
|
41
|
-
|
|
42
|
-
The rendered `Metadata` table includes: `Module id`, `Source path(s)`, `Doc kind`,
|
|
43
|
-
`Coverage score`, `Generated from`, `generated_by / approved_by / updated_at`, and
|
|
44
|
-
`Validation status`.
|
|
45
|
-
|
|
46
|
-
`Coverage score` is always present. Before measurement it is `Pending coverage assessment`; after
|
|
47
|
-
measurement it is the numeric percentage plus assessment date and short evidence summary. `Coverage
|
|
48
|
-
score` and `Validation status` must not cite `.generated/` run-record paths or other local generated
|
|
49
|
-
report paths.
|
|
50
|
-
|
|
51
|
-
## Detail Expectations
|
|
52
|
-
|
|
53
|
-
The spec should be context-efficient and complete. A future agent should be able to read the module
|
|
54
|
-
spec and understand the module enough to make a safe change without rediscovering the core behavior
|
|
55
|
-
from scratch.
|
|
56
|
-
|
|
57
|
-
- `Overview` and `Design Overview` explain ownership, internal structure, and rationale.
|
|
58
|
-
- `Requirements` capture observable behavior and compatibility promises with WHAT, WHY, evidence,
|
|
59
|
-
tests/examples, gaps, and confidence.
|
|
60
|
-
- `Data Flow` names the exact transport or call style and includes a Mermaid diagram for non-trivial
|
|
61
|
-
modules.
|
|
62
|
-
- `Sequence Diagram(s)` start with a sequence inventory or coverage note. The number of diagrams is
|
|
63
|
-
based on major operation groups from public surfaces, use cases, events, commands, state transitions,
|
|
64
|
-
and async jobs. One diagram can cover multiple operations only when actors, ordering, transport,
|
|
65
|
-
state transition, and failure behavior are the same. A single diagram is acceptable only for a
|
|
66
|
-
one-operation or trivial pass-through/composition module. Include relevant error, timeout, retry,
|
|
67
|
-
rollback, rejected, and recovery paths.
|
|
68
|
-
- `Class / Component Relationships` show main objects/components and how they relate; a file list is
|
|
69
|
-
not enough.
|
|
70
|
-
- `Use Cases` are concrete actor -> steps -> outcome flows with evidence.
|
|
71
|
-
- `Pitfalls` capture module-specific failure modes, sharp edges, and must-not-break behavior.
|
|
72
|
-
- `Test-Case Strategy (module)` maps behaviors/requirements to existing tests and gaps.
|
|
73
|
-
- Native contract sources such as OpenAPI, AsyncAPI, proto, GraphQL, JSON Schema, SDK API reports,
|
|
74
|
-
typedoc, or package entry points are linked as exact detail sources. The module spec summarizes and
|
|
75
|
-
routes to them instead of pasting full schemas.
|
|
76
|
-
|
|
77
|
-
Use `N/A` only when the code proves the concern cannot apply, and include the evidence path or reason.
|
|
78
|
-
|
|
79
|
-
## Existing Docs
|
|
80
|
-
|
|
81
|
-
When a repo already has module overview, architecture, HLD, LLD, API, or test notes, use them as
|
|
82
|
-
source material instead of discarding their detail. Record exact prior doc paths in
|
|
83
|
-
`.sdd/manifest.json` and local source-fidelity run records; the committed module spec's
|
|
84
|
-
`Source Material Register` summarizes source basis by category and disposition, not by old
|
|
85
|
-
non-canonical file names:
|
|
86
|
-
|
|
87
|
-
- orientation content maps to `Overview`, `Purpose / Responsibility`, `Stack`,
|
|
88
|
-
`Folder / Package Structure`, and `Key Files`;
|
|
89
|
-
- architecture content maps to `Design Overview`, `Data Flow`, `Sequence Diagram(s)`,
|
|
90
|
-
`Class / Component Relationships`, conditional design sections, and `Pitfalls`;
|
|
91
|
-
- API/contract content maps to `Public Surface`, the root contract index, and linked schema/API
|
|
92
|
-
sources;
|
|
93
|
-
- behavior and test content maps to `Requirements`, `Use Cases`, and `Test-Case Strategy (module)`.
|
|
94
|
-
|
|
95
|
-
If code evidence disproves older content, mark the conflict and do not present the old statement as
|
|
96
|
-
current behavior.
|
|
97
|
-
|
|
98
|
-
## Completion Check
|
|
99
|
-
|
|
100
|
-
Before treating a module spec as ready, check:
|
|
101
|
-
|
|
102
|
-
- all universal sections exist;
|
|
103
|
-
- sections are in the source-template order;
|
|
104
|
-
- the rendered metadata table includes all required rows;
|
|
105
|
-
- retained conditional sections are present and filled;
|
|
106
|
-
- sequence inventory, diagrams, and failure/error/recovery paths exist for non-trivial modules;
|
|
107
|
-
- every requirement has WHAT, WHY, source evidence, test/example evidence or a gap, and confidence;
|
|
108
|
-
- public surfaces link to the root contract index and exact schema/API detail source when one exists;
|
|
109
|
-
- no template placeholders, generic fill text, or vague evidence anchors remain.
|
|
110
|
-
- migrated specs do not name old non-canonical source files as headings, appendices, or Source
|
|
111
|
-
Material Register rows; exact source routing remains in the manifest/local source-fidelity records.
|