@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,206 +0,0 @@
1
- <!-- ───────────────────────────────
2
- Template: ARCHITECTURE
3
- Template-ID: architecture
4
- Generates: ai-docs/ARCHITECTURE.md
5
- Description: Repo/component architecture — components, responsibilities, interactions, cross-cutting posture.
6
- Library ver: 0.2.2
7
- Last updated: 2026-06-30
8
- ─────────────────────────────── -->
9
-
10
- # ARCHITECTURE — <repo name>
11
-
12
- > Start here → root [`AGENTS.md`](../AGENTS.md) (agent entry) · router [`SPEC_INDEX.md`](SPEC_INDEX.md). This is the system architecture; per-module detail lives in each manifest-routed module spec, source-local as `<module-path>/ai-docs/<module-name>-spec.md` by default.
13
- > Context-efficiency: link to canonical docs — don't duplicate them; this loads on demand, not upfront.
14
-
15
- <!--
16
- ROOT FILE 2 of 3. Repo/component-level architecture — components, their RESPONSIBILITIES, and how they
17
- interact. Distinct from a single module's source-local spec at
18
- <module-path>/ai-docs/<module-name>-spec.md. Diagrams from real code, never from memory.
19
- Headings are flat; universal sections are always present (name each for what the repo IS); sections
20
- preceded by `<!-- Include if: ... -->` are kept only when the condition holds. Each section comment gives
21
- Capture / Avoid / Example.
22
- -->
23
-
24
- ## Design Overview
25
- <!-- Capture: the system's purpose, shape, and the key design choices that explain why it looks like this.
26
- Avoid: a feature list with no rationale. Example: "Event-driven so intake and processing scale
27
- independently; `<component>` is the single writer for `<domain object>`." -->
28
- <2-3 paragraphs>
29
-
30
- ## Component Inventory & Responsibilities
31
- <!-- Capture: one row per component with a SINGLE clear responsibility + docs link. Avoid:
32
- a component that "does everything" or a missing owner. Example: "`<module-a>/` — <single responsibility> —
33
- <module-a>/ai-docs/<module-a>-spec.md". -->
34
- | Component | Responsibility (one line) | Docs |
35
- |---|---|---|
36
- | `<module>/` | <what it owns> | `<module-path>/ai-docs/<module-name>-spec.md` |
37
-
38
- ## Component Interaction
39
- <!-- Capture: a diagram of components + the calls/events/imports between them, plus a narrative of the main
40
- paths. Avoid: a box-only diagram with no edges. Example: "<edge> → <module-a> → <module-b>; <module-b> emits <DomainEvent>." -->
41
- ```
42
- <diagram: components + the calls/events/imports between them. mermaid or puml.>
43
- ```
44
- <Narrative: the main paths; entry points; who calls/imports whom.>
45
-
46
- ## Execution & Flow
47
- <!--
48
- Capture: the representative end-to-end flow, grounded in real code (file path); NAME the heading for what
49
- the repo is — service → "Request / Event Flow"; per-call fn → "Invocation Flow"; library → "Init & Call
50
- Flow"; batch → "Pipeline / Job Flow"; build tool → "Build / Generation Flow".
51
- Avoid: a vague heading like "Flow", or describing intended (not actual) flow.
52
- Example (service): "POST /<resource> → validate → <component>.save → emit <ResourceCreated> → 201."
53
- -->
54
- <the representative end-to-end flow for this repo>
55
-
56
- ## Dependencies
57
- <!-- Capture: each dependency, how it's used, and its failure/version handling. Avoid: omitting fallback or
58
- version floor. Example: "<cache/store> | external | idempotency keys | fail-closed, bounded TTL." -->
59
- | Dependency | Type (internal / external / peer) | How used | Failure / version handling |
60
- |---|---|---|---|
61
- | <dep> | <type> | <usage> | <fallback / peer-range / timeout> |
62
-
63
- <!-- Include if: the repo owns a datastore (persists its own data) [condition-id: repo.owns_datastore] -->
64
- ### Data & Schema
65
- <!-- Capture: the datastores, key schemas, cache patterns, migration discipline. Avoid: data owned elsewhere.
66
- Example: "<datastore> `<entity_table>`, `<event_table>`; migrations expand→migrate→contract." -->
67
- - <datastores, key schemas, cache patterns, migration discipline>
68
-
69
- <!-- Include if: the repo holds client-side state (UI store / in-memory session model) [condition-id: repo.holds_client_state] -->
70
- ### State Model
71
- <!-- Capture: the state shape (store/slices) and what triggers transitions. Avoid: documenting server data.
72
- Example: "<flow> slice {step, data}; NEXT_STEP advances; RESET on success." -->
73
- - <the state shape and what triggers transitions>
74
-
75
- ## Cross-Cutting Concerns
76
- <!-- Capture: the security + observability posture every change must respect. Avoid: "TBD" — every repo has
77
- some posture. Example: "Security: tokens checked at the boundary, secrets from managed storage. Observability: structured logs +
78
- correlation id; request/error/duration metrics per route." -->
79
- - **Security:** <authn/authz model, secret/token handling, sensitive-data rules>
80
- - **Observability:** <logs/metrics/traces + correlation ids for a service; telemetry/error reporting for a client artifact>
81
-
82
- ## Non-Functional Posture
83
- <!--
84
- Capture: the quality/scale expectations, NAMING the heading for what the repo is — service → "Scale & SLOs";
85
- library → "Footprint & Compatibility"; UI app → "Performance & Accessibility"; CLI → "Performance &
86
- Footprint"; batch → "Throughput & Cost". Avoid: copying numbers from another system.
87
- Example (service): "Scale & SLOs — <target throughput>, p99 < <latency bound>, horizontal autoscale."
88
- -->
89
- <the non-functional posture in the form that fits this repo>
90
-
91
- <!-- ===== Conditional extras — keep a section only when its Include-if condition holds ===== -->
92
-
93
- <!-- Include if: components/services call each other or exchange events (most non-trivial repos) [condition-id: repo.components_interact] -->
94
- ## Dependency / Interaction Topology
95
- <!-- Capture: the who-calls-whom call graph AND the event topology, as a first-class view. Avoid: burying it
96
- in prose. Example: graph edges "<edge>→<module-a> (call)", "<module-b>→<bus> <DomainEvent> (event)". -->
97
- ```
98
- <call + event graph: nodes are components/services, edges are calls (sync) and events (async)>
99
- ```
100
- | From | To | Kind (call / event) | Purpose |
101
- |---|---|---|---|
102
-
103
- <!-- Include if: the repo owns domain data spread across components [condition-id: repo.domain_data_across_components] -->
104
- ## Object / Data Ownership
105
- <!-- Capture: each domain object → the single component that may write it. Avoid: two components writing the
106
- same object. Example: "<DomainObject> → <writer component>; read by <reader component>." -->
107
- | Domain object | System-of-record (owning component) | Read by |
108
- |---|---|---|
109
-
110
- <!-- Include if: the repo caches data [condition-id: repo.caches_data] -->
111
- ## Caching Catalog
112
- <!-- Capture: each cache, backend, what it holds, TTL, invalidation. Avoid: a cache with no invalidation rule.
113
- Example: "<resource-cache> | <cache backend> | <resource by key> | 60s | invalidate on <ResourceChanged>." -->
114
- | Cache | Backend | What it holds | TTL | Invalidation trigger |
115
- |---|---|---|---|---|
116
-
117
- <!-- Include if: the repo has a logging/metrics/audit convention worth standardizing [condition-id: repo.observability_convention] -->
118
- ## Observability Patterns
119
- <!-- Capture: the logging format + id propagation, metric naming + key signals, what is audited. Avoid:
120
- logging secrets/PII (see SECURITY). Example: "JSON logs w/ correlation_id; metrics <prefix>_*; audit on privileged changes." -->
121
- - **Logging:** <structured format, correlation/request id propagation, what is never logged>
122
- - **Metrics:** <naming convention, key signals, where dashboards live>
123
- - **Audit:** <what is audited and where>
124
-
125
- <!-- Include if: the repo deploys to / depends on infrastructure [condition-id: repo.deploys_to_infra] -->
126
- ## Infrastructure Matrix
127
- <!-- Capture: the datastores, messaging, and cloud services actually in use. Avoid: aspirational infra.
128
- Example: "Datastores: <db>; Messaging: <broker>; Cloud/platform: <service>." -->
129
- | Category | In use | Notes |
130
- |---|---|---|
131
- | Datastores | <db(s)> | |
132
- | Messaging / streaming | <broker(s)> | |
133
- | Cloud / platform services | <services> | |
134
-
135
- <!-- Include if: the repo inherits a shared/base library stack every module uses [condition-id: repo.shared_base_libs] -->
136
- ## Shared / Base Libraries
137
- <!-- Capture: the shared libs every module inherits + version floor. Avoid: listing app deps here. Example:
138
- "<shared-logging> (^3) — structured logger + correlation-id filter." -->
139
- | Library | What every module inherits from it | Version floor |
140
- |---|---|---|
141
-
142
- <!-- Include if: the repo is a monorepo (multiple packages in one tree) [condition-id: repo.is_monorepo] -->
143
- ## Package Map & Inter-Package Dependencies
144
- <!-- Capture: workspace globs, package→responsibility (+ public/internal visibility), inter-package graph,
145
- version-sync rule. Avoid: hidden cyclic deps. Example: "packages/* ; <adapter> depends on <core>; <core> depends on none." -->
146
- - Workspace tooling and the workspace globs.
147
- - Package → responsibility table, with a **visibility** column (public / internal) where it applies.
148
- - Inter-package dependency graph (incl. workspace-internal deps) + the release/version-sync rule.
149
- - Per-package notes where a package is a different kind than the repo (e.g. a library package next to an app).
150
-
151
- <!-- Include if: the repo targets multiple platforms (mobile / desktop / embedded / cross-platform) [condition-id: repo.multi_platform] -->
152
- ## Platform Matrix
153
- <!-- Capture: per-platform the shared-core vs per-platform split + entry/build. Avoid: assuming one platform's
154
- build works for all. Example: "iOS | shared core + SwiftUI shell | xcodebuild." -->
155
- | Platform | Shared core vs per-platform | Entry / build | Notes |
156
- |---|---|---|---|
157
- | <platform> | <split> | <build> | |
158
-
159
- <!-- Include if: the repo is published/consumed as a package (npm/Maven/PyPI/etc.) [condition-id: repo.published_package] -->
160
- ## Release & Versioning
161
- <!-- Capture: publish target, semver rules, deprecation policy, changelog obligation. Avoid: breaking changes
162
- without a major bump. Example: "Published to the internal npm registry; semver; 1 minor deprecation window." -->
163
- - Publish target; semver rules; deprecation policy; consumer-facing changelog obligation.
164
-
165
- <!-- Include if: the repo is embedded into a host application (widget / micro-frontend / extension) [condition-id: repo.embedded_in_host] -->
166
- ## Host Integration & Theming
167
- <!-- Capture: how a host mounts/embeds it, required providers, pinned theme/peer versions. Avoid: assuming the
168
- host's framework version. Example: "Mounts as <pay-widget>; needs ThemeProvider; peer react ^18." -->
169
- - How a host application mounts/embeds this; required host providers; pinned design-token/theme versions;
170
- peer/host-framework version floors.
171
-
172
- <!-- Include if: cross-repo dependencies are material (consumed/published artifacts usually qualify; common in topology A) [condition-id: repo.cross_repo_deps_material] -->
173
- ## Cross-Repo Dependency Graph
174
- <!-- Capture: the repos this one consumes or is consumed by + what's exchanged. Avoid: an unscoped "see other
175
- repos". Example: "Consumes shared-contracts (event schemas); consumed by reporting-svc." -->
176
- - **Internal (same org):** <repos + what's exchanged>
177
- - **Cross-project:** <repos + contract>
178
- - **External read-only:** <repos referenced, not modified>
179
- - **External services:** <APIs/backends called>
180
-
181
- <!-- Include if: the security architecture warrants its own view (trust boundaries, identity flow) [condition-id: repo.security_arch_warranted] -->
182
- ## Security Architecture
183
- <!-- Capture: trust boundaries, token/identity flow, encryption at rest/in transit. Avoid: duplicating
184
- SECURITY.md — keep this to the architectural view. Example: "mTLS between services; tokens minted at edge." -->
185
- <trust boundaries, token/identity flow, encryption at rest/in transit>
186
-
187
- ---
188
- → Per-module orientation and detailed design live in each manifest-routed module spec, source-local as `<module-path>/ai-docs/<module-name>-spec.md` by default. Routing: `SPEC_INDEX.md`.
189
-
190
- ## Architecture Reference Links
191
- <!-- Capture: links to the local decision, pattern, and rule docs that explain or constrain this
192
- architecture. Avoid: restating those docs here; summarize only why architecture readers should
193
- consult them. -->
194
- | Reference | Location | When to read |
195
- |---|---|---|
196
- | Architecture decisions | `adr/` | To understand why major design choices were made and what alternatives were rejected |
197
- | Repo patterns | `patterns/` | To follow established implementation conventions reflected in this architecture |
198
- | Enforceable rules | `RULES.md` + `rules/` | To understand constraints every architecture-affecting change must obey |
199
-
200
- ## WS6 References
201
- <!-- Capture: links to WS6 specs, platform architecture, shared service architecture, or enterprise
202
- architecture documents when they exist. Avoid: copying WS6 content into this component repo doc;
203
- link to the authoritative WS6 source and summarize only the local implication. -->
204
- | WS6 artifact | Relevance to this repo | Link |
205
- |---|---|---|
206
- | <WS6 spec / architecture doc> | <why this repo should read it> | <url/path when available> |
@@ -1,90 +0,0 @@
1
- <!-- ───────────────────────────────
2
- Template: Contracts Catalog
3
- Template-ID: contracts
4
- Generates: ai-docs/CONTRACTS.md
5
- Description: Standing as-built public-surface catalog (Provides/Requires) + compatibility policy.
6
- Library ver: 0.2.2
7
- Last updated: 2026-07-11
8
- ─────────────────────────────── -->
9
-
10
- # Contracts Catalog — <repo name>
11
-
12
- > Start here → root [`AGENTS.md`](../AGENTS.md) (agent entry) · router [`SPEC_INDEX.md`](SPEC_INDEX.md) · system [`ARCHITECTURE.md`](ARCHITECTURE.md). Then this root contract index; detailed contracts live with owning modules or canonical schema files. Machine source `.sdd/manifest.json`.
13
- > Context-efficiency: link to canonical docs — don't duplicate them; load on demand, not upfront.
14
-
15
- <!--
16
- STANDING reference doc — the repo's stable public-surface index (the manifest's Provides/Requires promoted
17
- to a doc). Prevents re-creating an existing endpoint/event or breaking a consumer. Detailed schemas and
18
- operation-level behavior belong in native schema/API files or module-local specs.
19
- Keep this file compact: one row per public surface, with owner, compatibility, and a detail link. Headings are flat;
20
- sections preceded by `<!-- Include if: ... -->` are kept only when the
21
- condition holds. Each section comment gives Capture / Avoid / Example. Fill from real code (file path).
22
- -->
23
-
24
- > Read before adding any public-facing surface — check here first. Machine source of truth: `.sdd/manifest.json`.
25
- > Schema convention: prefer `.yaml` for OpenAPI/AsyncAPI unless this repo already standardizes on `.yml`; use
26
- > `.proto`, `.graphql`, JSON Schema, or language-native SDK API outputs when those are the natural source.
27
- > Do not inline large schemas here.
28
-
29
- <!-- Include if: the repo exposes a network/HTTP API -->
30
- ### API Endpoints
31
- <!-- Capture: each public route — stable id, owner module, method+path, purpose, auth/scope, compatibility,
32
- schema/detail link, where defined. Avoid: listing internal routes as public or pasting full schemas.
33
- Example: "billing.invoice.get | billing/ | GET /<resource>/{id} | fetch <resource> |
34
- scope read:<resource> | stable; additive fields only | openapi.yaml#/paths/... | routes/<resource>.ts." -->
35
- | Contract ID | Owner module | Method + path | Purpose | Auth / scope | Compatibility / deprecation | Schema / detail link | Defined at |
36
- |---|---|---|---|---|---|---|---|
37
-
38
- <!-- Include if: the repo is imported as a library/package -->
39
- ### Exported API & Types
40
- <!-- Capture: each public symbol + owner package/module + signature + semver stability + detail link. Avoid:
41
- documenting non-exported internals or inventing custom YAML for SDK APIs. Example:
42
- "sdk.client.create | packages/sdk | createClient(opts): Client | stable semver surface |
43
- api-report.md#createClient | index.ts." -->
44
- | Contract ID | Owner module/package | Symbol | Signature | Stability / deprecation | Schema / detail link | Defined at |
45
- |---|---|---|---|---|---|---|
46
-
47
- <!-- Include if: the repo publishes or consumes events/messages -->
48
- ### Events
49
- <!-- Capture: each event — owner module, direction, payload schema link, delivery guarantees, deprecation.
50
- Avoid: omitting ordering/delivery semantics or pasting large payloads. Example:
51
- "billing.invoice.created | billing/ | publish | asyncapi.yaml#/channels/... | at-least-once |
52
- additive fields only | events/<resource>.ts." -->
53
- | Contract ID | Owner module | Event / topic | Direction (publish/consume) | Payload schema link | Delivery guarantees | Compatibility / deprecation | Defined at |
54
- |---|---|---|---|---|---|---|---|
55
-
56
- <!-- Include if: the repo exposes a CLI -->
57
- ### Commands & Flags
58
- <!-- Capture: each command, owner module, args/flags, exit codes, compatibility, where defined. Avoid:
59
- undocumented exit codes. Example: "sync.job | cli/ | sync --since DATE | exit 0 ok / 2 bad-args |
60
- stable flags | cli/sync.ts." -->
61
- | Contract ID | Owner module | Command | Args / flags | Exit codes | Compatibility / deprecation | Defined at |
62
- |---|---|---|---|---|---|---|
63
-
64
- ## Requires — what this repo depends on
65
- <!-- Capture: each outward dependency's consumed contract + availability assumption + fallback + version floor.
66
- Avoid: omitting the fallback. Example: "rates-svc | GET /rates | assume 99.9% | cache last-good | v2." -->
67
- | Dependency (service / package / datastore) | What is consumed | Schema / detail link | Availability assumption | Fallback on failure | Version floor |
68
- |---|---|---|---|---|---|
69
-
70
- ## Compatibility & Deprecation Policy
71
- <!-- Capture: the rule for changing the above without breaking consumers. Avoid: a breaking change with no
72
- version bump/window. Example: "No breaking change without a major bump + 1-release deprecation window." -->
73
- - **Breaking-change rule:** <e.g. no breaking change without a version bump + consumer transition note + deprecation window>
74
- - **Deprecation:** <how a surface is marked deprecated and for how long>
75
-
76
- <!-- Include if: a non-trivial interface needs full schema/error detail beyond this catalog -->
77
- ## Detailed Interface Docs
78
- <!-- Capture: links to native schema/API files and per-interface docs (schema, error catalog, backward-compat).
79
- Avoid: inlining huge schemas here. Example: "<Resource API> → openapi.yaml#/paths/... and
80
- design/contracts/<resource-api>.md." -->
81
- - Large/critical interfaces link to their canonical schema/API source and, when needed, a
82
- module-local contract doc.
83
-
84
- ## Maintenance
85
- <!-- Capture: the rule that keeps the catalog + manifest in sync. Avoid: updating one and not the other. -->
86
- - When a public surface is added/changed/removed, update this catalog, the owning module spec summary,
87
- any canonical schema/API detail source, and `.sdd/manifest.json` in the same change.
88
- - For incompatible changes, include the consumer transition/deprecation plan in the owning contract detail and
89
- summarize it in the Compatibility / deprecation column.
90
- - Cross-reference: domain terms → `GLOSSARY.md`; entities → `DATA_MODEL.md`.
@@ -1,68 +0,0 @@
1
- <!-- ───────────────────────────────
2
- Template: Data Model
3
- Template-ID: data-model
4
- Generates: ai-docs/DATA_MODEL.md
5
- Description: Repo-wide entities, system-of-record ownership, relationships, and migration discipline.
6
- Library ver: 0.2.2
7
- Last updated: 2026-06-30
8
- ─────────────────────────────── -->
9
-
10
- # Data Model — <repo name>
11
-
12
- > Start here → root [`AGENTS.md`](../AGENTS.md) (agent entry) · router [`SPEC_INDEX.md`](SPEC_INDEX.md) · system [`ARCHITECTURE.md`](ARCHITECTURE.md). Then this doc; related: `GLOSSARY.md`, `CONTRACTS.md`, `SECURITY.md`.
13
- > Context-efficiency: link to canonical docs — don't duplicate them; load on demand, not upfront.
14
-
15
- <!--
16
- STANDING reference doc — the repo-wide data model: entities owned, the system-of-record for each, schema/
17
- relationships, and migration discipline. Only for repos that own persistent data. Headings are flat;
18
- sections preceded by `<!-- Include if: ... -->` are kept only when the condition holds. Each section
19
- comment gives Capture / Avoid / Example. Fill from the real schema/migrations (file path).
20
- -->
21
-
22
- > Read before changing any persisted shape. Respect ownership and the migration discipline below.
23
-
24
- ## Entity Catalog
25
- <!-- Capture: each persisted entity → meaning, the owning module (single writer), its table, where defined.
26
- Avoid: an entity with two writers, or guessing the store. Example: "<Entity> | <domain meaning> | <module>
27
- | <table> | db/schema.sql." -->
28
- | Entity | What it represents | System-of-record (owning module) | Stored in (table/collection) | Defined at |
29
- |---|---|---|---|---|
30
- | `<entity>` | <meaning> | `<module>` | `<table>` | `<file path>` |
31
-
32
- ## Relationships
33
- <!-- Capture: how entities relate (1:1/1:N/N:M), ideally a diagram. Avoid: implied relationships with no FK/
34
- join documented. Example: "<EntityA> 1:N <EntityB> (<entity_b>.<entity_a_id>)." -->
35
- ```
36
- <ER-style diagram or relationship list>
37
- ```
38
-
39
- ## Ownership & Access Rules
40
- <!-- Capture: who may write vs read each entity + the access path. Avoid: cross-module direct writes that break
41
- invariants. Example: "<Entity> | write: <owner module> only | read: <reader module> | via <Repository>." -->
42
- | Entity | May write | May read | Access path (API/repo layer) |
43
- |---|---|---|---|
44
-
45
- <!-- Include if: the repo uses caching over its data -->
46
- ## Caching
47
- <!-- Capture: each cache over the data — backend, key, TTL, invalidation. Avoid: a cache with no invalidation.
48
- Example: "<entity-cache> | <cache backend> | <entity>:{id} | 30s | bust on owner write." -->
49
- | Cached data | Backend | Key | TTL | Invalidation trigger |
50
- |---|---|---|---|---|
51
-
52
- ## Migration Discipline
53
- <!-- Capture: where migrations live, the ordering/expand-contract rule, the never-edit-shipped rule. Avoid:
54
- destructive in-place migrations. Example: "db/migrations/NNNN_*.sql; expand→migrate→contract; additive first." -->
55
- - Migrations are the source of truth for schema; <where they live + numbering/ordering rule>.
56
- - Backward-compatible by default (expand → migrate → contract); <true-up/backfill expectation>.
57
- - Never edit a shipped migration in place; add a new one.
58
-
59
- <!-- Include if: some data is sensitive (PII/secret/regulated) -->
60
- ## Sensitive Data
61
- <!-- Capture: which entities hold sensitive data + encryption/retention/deletion per `SECURITY.md`. Avoid:
62
- storing PII unencrypted or with no retention rule. Example: "Customer.email — encrypted; delete 30d after close." -->
63
- - Classify per `SECURITY.md`; note encryption-at-rest, retention, and deletion obligations per entity.
64
-
65
- ## Maintenance
66
- <!-- Capture: the rule that keeps this current. Avoid: schema changes without a doc update. -->
67
- - New/changed entity or migration → update this doc in the same change.
68
- - Cross-reference: terms → `GLOSSARY.md`; exposed data contracts → `CONTRACTS.md`.
@@ -1,111 +0,0 @@
1
- <!-- ───────────────────────────────
2
- Template: Getting Started
3
- Template-ID: getting-started
4
- Generates: ai-docs/GETTING_STARTED.md
5
- Description: Clone/build/run loop, toolchain, config/secrets, artifact registries, and multi-repo workspace layout.
6
- Library ver: 0.2.2
7
- Last updated: 2026-07-22
8
- ─────────────────────────────── -->
9
-
10
- # Getting Started — <repo name>
11
-
12
- > Start here → root [`AGENTS.md`](../AGENTS.md) (agent entry) · router [`SPEC_INDEX.md`](SPEC_INDEX.md) · system [`ARCHITECTURE.md`](ARCHITECTURE.md). Then this doc to get a build/test loop running.
13
- > Context-efficiency: link to canonical docs — don't duplicate them; load on demand, not upfront.
14
-
15
- <!--
16
- STANDING reference doc — zero to a running build/test loop, plus the multi-repo workspace layout. Fill every
17
- command from the real build config (file path) — never guess. Headings are flat; sections preceded by
18
- `<!-- Include if: ... -->` are kept only when the condition holds. Each section comment gives Capture /
19
- Avoid / Example.
20
- -->
21
-
22
- ## Prerequisites
23
-
24
- ### Toolchain
25
- <!-- Capture: the exact language runtimes and build tools a contributor must install before any command
26
- runs, one row each, mirrored from the manifest `toolchain` block. Read versions from committed config
27
- (.nvmrc, .tool-versions, engines, compiler-release, Dockerfile); if a required version is not pinned
28
- in the repo, capture it via the onboarding questionnaire rather than guessing. Avoid: "install Node"
29
- with no version, or a version invented from memory. Example: JDK 21 · Maven 3.8+ · Docker. -->
30
- | Tool | Version | Where it's pinned |
31
- |---|---|---|
32
- | `<tool>` | `<version>` | `<source file, or "declared during onboarding">` |
33
-
34
- ### Access
35
- <!-- Capture: the accounts/network access needed before anything runs — registries, VPN/egress, secret
36
- store. Name registries here; the exact hosts and auth variable names live under Configuration & Secrets.
37
- Avoid: omitting an internal registry or egress requirement the build depends on. Example: "read access
38
- to the internal Maven registry; outbound egress to the artifact host; VPN for staging." -->
39
- - <required registries / egress / VPN / accounts — or "none">
40
-
41
- ## Clone & Install
42
- <!-- Capture: the real clone + install commands. Avoid: a generic `npm install` if the repo pins `npm ci`.
43
- Example: "git clone <url> && cd <repo> && pnpm install --frozen-lockfile". -->
44
- ```bash
45
- <git clone ...>
46
- <install command — from the real build config>
47
- ```
48
-
49
- ## Build / Run / Test
50
- <!-- Capture: the core loop copied from the manifest `commands`, one row per command role so a reader
51
- (or a builder/tester workflow) runs the right command for each job. Avoid: inventing commands or
52
- collapsing distinct roles (a package build without tests is not the full build). Include only the
53
- roles the repo actually defines. Example: Install `mvn -N …` · Build `mvn verify` · Unit test
54
- `mvn -pl '!test' test` · Integration test `mvn -pl test verify` · Coverage `mvn jacoco:check`. -->
55
- | Role | Command |
56
- |---|---|
57
- | Install | `<cmd>` |
58
- | Build (full, with tests) | `<cmd>` |
59
- | Package (build without tests) | `<cmd>` |
60
- | Run (local) | `<cmd>` |
61
- | Unit test | `<cmd>` |
62
- | Integration test | `<cmd>` |
63
- | Coverage check | `<cmd>` |
64
- | Lint / format | `<cmd>` |
65
-
66
- ## First-Run Verification
67
- <!-- Capture: one concrete check that proves the setup works. Avoid: "it should work". Example: "curl
68
- localhost:8080/health → 200 {\"status\":\"ok\"}." -->
69
- - <how to confirm it's working>
70
-
71
- <!-- Include if: the repo needs local config / env vars / secrets to run -->
72
- ## Configuration & Secrets
73
- <!-- Capture: required config/env + where secrets come from (never hardcode). Avoid: committing a real .env.
74
- Example: "Copy .env.example; fill DB_URL; secrets via the secret manager." -->
75
- - Required config/env: <list>. Obtain secrets from <secret store> — never hardcode (see `SECURITY.md`).
76
-
77
- <!-- Include if: the build resolves dependencies from an external or authenticated registry -->
78
- ### Artifact Registries
79
- <!-- Capture: each external artifact source the build resolves from, mirrored from the manifest
80
- `registries` block: name, host, the settings file that points the build at it, and the NAMES of the
81
- auth environment variables. Record names and hosts only — NEVER the credential values (see
82
- `SECURITY.md`); the values are provided by the environment/pipeline. Avoid: pasting a token, omitting
83
- the registry host, or dropping the auth variable names a fresh clone needs to authenticate.
84
- Example: "internal-maven | artifacts.example.com | config/maven/settings.xml | ARTIFACTORY_USER,
85
- ARTIFACTORY_TOKEN". -->
86
- | Registry | Host | Settings file | Auth env-var names (values NOT stored) |
87
- |---|---|---|---|
88
- | `<name>` | `<host>` | `<settings file>` | `<VAR_NAME_1>, <VAR_NAME_2>` |
89
-
90
- <!-- Include if: topology A — the product spans multiple repositories -->
91
- ## Multi-Repo Workspace Layout
92
- <!-- Capture: how the sibling repos are laid out locally so cross-repo work resolves. Avoid: assuming one clone
93
- is enough for a multi-repo product.
94
- Verify against the team's real workspace convention when available. -->
95
- ```
96
- <workspace-root>/
97
- <owner>/<repo-a>/
98
- <owner>/<repo-b>/
99
- <shared spec or workspace-level AGENTS.md, if used>
100
- ```
101
- - Related repos and what each provides: see `ARCHITECTURE.md` (Cross-Repo Dependency Graph) and the workspace-level `AGENTS.md`.
102
-
103
- <!-- Include if: the repo has a containerized or scripted dev environment -->
104
- ## Dev Environment
105
- <!-- Capture: the devcontainer/compose/make target that brings up dependencies. Avoid: manual multi-step setup
106
- when a one-command env exists. Example: "make dev brings up <datastore> + the app via docker compose." -->
107
- - <devcontainer / compose / make target that brings up dependencies>
108
-
109
- ## Where to Go Next
110
- - Agent entry: `../AGENTS.md` · System shape: `ARCHITECTURE.md` · Routing: `SPEC_INDEX.md`
111
- - Conventions: `patterns/` + `rules/` (and `RULES.md`).
@@ -1,57 +0,0 @@
1
- <!-- ───────────────────────────────
2
- Template: Glossary
3
- Template-ID: glossary
4
- Generates: ai-docs/GLOSSARY.md
5
- Description: Ubiquitous language — domain term → definition → authoritative code location.
6
- Library ver: 0.2.2
7
- Last updated: 2026-06-30
8
- ─────────────────────────────── -->
9
-
10
- # Glossary — <repo name>
11
-
12
- > Start here → root [`AGENTS.md`](../AGENTS.md) (agent entry) · router [`SPEC_INDEX.md`](SPEC_INDEX.md) · system [`ARCHITECTURE.md`](ARCHITECTURE.md). Then this doc; related: `DATA_MODEL.md`, `CONTRACTS.md`.
13
- > Context-efficiency: link to canonical docs — don't duplicate them; load on demand, not upfront.
14
-
15
- <!--
16
- STANDING reference doc. The repo's ubiquitous language: each domain term → a precise definition → where it
17
- lives in code. Prevents renamed concepts and invented synonyms. Headings are flat; sections preceded by
18
- `<!-- Include if: ... -->` are kept only when the condition holds. Each section comment gives Capture /
19
- Avoid / Example. Fill from real code (file path) — never invent a term that isn't used.
20
- -->
21
-
22
- > Read this before naming anything. Use the canonical name exactly; never introduce a synonym. Find a term
23
- > in code that isn't here? Add it rather than guessing its meaning.
24
-
25
- ## Domain Terms
26
- <!-- Capture: each term that has a SPECIFIC meaning here → definition + the type/file that owns it + synonyms
27
- to avoid. Avoid: dictionary definitions or terms with no code anchor. Example: "<Term> | <precise repo meaning>
28
- | <module>/<file>.ts | not '<ambiguous synonym>'." -->
29
- | Term | Definition (one or two sentences) | Authoritative location (file/type) | Notes / synonyms to avoid |
30
- |---|---|---|---|
31
- | `<term>` | <what it means here> | `<file path>` | <"do not call it X"> |
32
-
33
- ## Abbreviations & Acronyms
34
- <!-- Capture: every abbreviation the codebase uses, expanded + its meaning here. Avoid: leaving an acronym
35
- ambiguous across domains. Example: "<ABC> — <Full Expansion> (not '<other possible expansion>')." -->
36
- | Abbreviation | Expansion | Meaning in this repo |
37
- |---|---|---|
38
-
39
- <!-- Include if: the same word means different things in different modules/bounded contexts -->
40
- ## Context-Specific Meanings
41
- <!-- Capture: where a term legitimately differs by area, each meaning + its boundary. Avoid: merging the two
42
- meanings. Example: "'<Term>' = <meaning A> in <module-a>/, but = <meaning B> in <module-b>/." -->
43
- | Term | Context / module | Meaning here |
44
- |---|---|---|
45
-
46
- <!-- Include if: the repo has deprecated/renamed concepts still present in older code -->
47
- ## Deprecated / Renamed Terms
48
- <!-- Capture: old term → current term, why renamed, where the old one still appears. Avoid: silently dropping
49
- the old name (readers still hit it in old code). Example: "'<OldTerm>' → '<CurrentTerm>'; renamed in <version>; still in <legacy-path>/." -->
50
- | Old term | Current term | Why renamed | Still appears in |
51
- |---|---|---|---|
52
-
53
- ## Maintenance
54
- <!-- Capture: the rule that keeps this current. Avoid: letting the glossary rot. Example: "New entity/event/
55
- state → add a term here in the same change." -->
56
- - When a new domain concept is introduced (new entity, event, state), add it here in the same change.
57
- - Cross-reference: data entities → `DATA_MODEL.md`; public-surface terms → `CONTRACTS.md`.
@@ -1,69 +0,0 @@
1
- <!-- ───────────────────────────────
2
- Template: Review-Check Catalog
3
- Template-ID: review-checklist
4
- Generates: ai-docs/REVIEW_CHECKLIST.md
5
- Description: The review checks — 6 core + 4 coverage-conditional + 3 cross-cutting — selected by manifest coverage state.
6
- Library ver: 0.2.2
7
- Last updated: 2026-06-30
8
- ─────────────────────────────── -->
9
-
10
- # Review-Check Catalog — <repo name>
11
-
12
- > Start here → root [`AGENTS.md`](../AGENTS.md) (agent entry) · router [`SPEC_INDEX.md`](SPEC_INDEX.md) · system [`ARCHITECTURE.md`](ARCHITECTURE.md). Then this doc at Review & Merge.
13
- > Context-efficiency: link to canonical docs — don't duplicate them; load on demand, not upfront.
14
-
15
- <!--
16
- STANDING checklist the repo's change reviews run against (Review & Merge). 6 core (always) + 4
17
- coverage-conditional (by the touched module's manifest coverage state) + 3 cross-cutting (higher risk). Run by a
18
- DIFFERENT runtime than the generator; findings remain review artifacts until explicitly approved for
19
- publication. Headings are flat. Each section comment gives Capture / Avoid / Example.
20
- -->
21
-
22
- > Each finding records: severity (Blocking / Important / Medium / Minor), check id, file path, what's wrong,
23
- > why it matters, a concrete fix. Any Blocking finding fails the gate.
24
-
25
- ## Core checks (always run)
26
- <!-- Capture: run all six on every change; record a finding per failure with file path + a concrete fix. Avoid:
27
- vague findings ("improve error handling"). Example: "C3 fail — spec says verifier 43-128, code enforces
28
- 32-128 @auth.ts." -->
29
- | # | Check | What it verifies | Severity if it fails |
30
- |---|---|---|---|
31
- | C1 | Spec-currency + WHAT/WHY | Spec/docs changed in the same change as code; the implementation plan's repo-specific AI Docs Impact matrix entries are complete and closed; every requirement (incl. ADDED) states WHAT and WHY | Blocking |
32
- | C2 | Contract correctness | Provides/Requires delta is real and complete; no undocumented breaking change to a public surface | Blocking |
33
- | C3 | Code-vs-spec match | Signatures, data-flow, and architecture claims in the spec match the actual code (file path) | Blocking |
34
- | C4 | Test adequacy | Each acceptance criterion has a test with a positive AND a negative case; changed-line coverage meets the bar | Important |
35
- | C5 | Error handling + input validation | Untrusted input validated at boundaries; failure/edge paths handled, not swallowed | Important |
36
- | C6 | Security baseline | No hardcoded secrets; authz enforced; data-classification/logging rules respected (per `SECURITY.md`) | Blocking |
37
-
38
- ## Coverage-conditional checks (run by the touched module's manifest coverage state)
39
- <!-- Capture: add these when the manifest coverage state requires code cross-check or characterization
40
- (or a guarantee is removed/modified). Avoid: skipping the regression guard when changing a weakly covered module. Example: "K1 applies — no characterization
41
- baseline exists → Blocking until one is added." -->
42
- | # | Check | When it applies | What it verifies | Severity |
43
- |---|---|---|---|---|
44
- | K1 | Regression guard | Modifying a weakly covered module, or any MODIFIED/REMOVED requirement | A characterization baseline exists; invariants the change claims NOT to alter still hold (positive + negative) | Blocking |
45
- | K2 | Grounding | Weakly covered module | Claims cite real code (file path), not memory; uncovered public surfaces flagged `[NEEDS HUMAN INPUT]` | Important |
46
- | K3 | Drift threshold | Any tracked module | Module drift is within its status threshold (see `RULES.md` / `coverage-policy.defaults.yaml`) | Important |
47
- | K4 | Coverage-state accuracy | Coverage-state change proposed | The recorded manifest coverage state matches the evidence; promotion/demotion rules honored | Medium |
48
-
49
- ## Cross-cutting checks (apply at higher risk / autonomy)
50
- <!-- Capture: add these for high-risk or higher-autonomy changes. Avoid: merging an autonomous change that the
51
- generator also validated. Example: "X1 — validator ran on the same runtime as the generator → Blocking." -->
52
- | # | Check | What it verifies | Severity |
53
- |---|---|---|---|
54
- | X1 | Cross-model review | The artifact was validated by a different runtime than the one that generated it (generator ≠ validator) | Blocking when required |
55
- | X2 | Observability | Logs/metrics/alerts adequate for the change; nothing sensitive logged | Medium |
56
- | X3 | Rollout safety | Feature-flag default is safe; rollback path exists; migration/rollout interlock is correct | Important |
57
-
58
- ## How the set is selected
59
- <!-- Capture: 6 core always + the coverage-conditional checks matching the touched modules' manifest coverage state + cross-cutting
60
- for high-risk. Avoid: running only the core set on a risky migration. -->
61
- 1. Always run the 6 core checks.
62
- 2. Add the coverage-conditional checks whose "when it applies" matches the touched modules' manifest coverage state.
63
- 3. Add the cross-cutting checks when the change is high-risk or runs at higher autonomy.
64
-
65
- ## Output
66
- <!-- Capture: a compliance matrix (check → pass/warn/fail w/ file path) + severity-sorted findings + verdict;
67
- draft only. Avoid: auto-posting to the PR. Example: verdict "Blocked — 1 Blocking (C3)". -->
68
- - A compliance matrix + severity-sorted findings + a verdict (Pass / Pass-with-warnings / Blocked).
69
- Draft only; a human posts.