@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.
- 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
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
<!-- ───────────────────────────────
|
|
2
|
-
Template: Module Spec
|
|
3
|
-
Template-ID: module-spec
|
|
4
|
-
Generates: <module-path>/ai-docs/<module-name>-spec.md by default, or the manifest's module docs path
|
|
5
|
-
Description: Per-module canonical spec — orientation plus requirements, design, invariants, flows, pitfalls, and tests.
|
|
6
|
-
Library ver: 0.2.2
|
|
7
|
-
Last updated: 2026-07-30
|
|
8
|
-
─────────────────────────────── -->
|
|
9
|
-
|
|
10
|
-
# <MODULE> — SPEC
|
|
11
|
-
|
|
12
|
-
> Start here → root [`AGENTS.md`](<relative-path-to-root-AGENTS.md>) (agent entry) · router [`SPEC_INDEX.md`](<relative-path-to-root-ai-docs/SPEC_INDEX.md>) · system [`ARCHITECTURE.md`](<relative-path-to-root-ai-docs/ARCHITECTURE.md>). This is the module's canonical spec: orientation, requirements, design, flows, state, protocol, UI, data, and tests. (Multi-repo: the root `AGENTS.md` may be the workspace-level one.)
|
|
13
|
-
> Context-efficiency: link to canonical docs — don't duplicate them. Load specs on demand per `SPEC_INDEX.md`.
|
|
14
|
-
|
|
15
|
-
<!--
|
|
16
|
-
CANONICAL MODULE SPEC. This file is the module documentation surface for orientation, requirements,
|
|
17
|
-
design, flows, state, protocol, UI, data, and tests. Save source-local as
|
|
18
|
-
<module-path>/ai-docs/<module-name>-spec.md by default.
|
|
19
|
-
Diagrams from real code;
|
|
20
|
-
prefer Mermaid unless the repository already standardizes on another diagram format.
|
|
21
|
-
This source-local file holds the module's orientation, design sections, diagrams, flows,
|
|
22
|
-
relationships, use cases, state/concurrency/error/protocol detail where applicable, and module test
|
|
23
|
-
strategy.
|
|
24
|
-
Headings are flat and concrete; sections preceded by `<!-- Include if: ... -->` are kept only when
|
|
25
|
-
the condition holds. Each section's comment gives Capture (what to write) / Avoid (the common mistake)
|
|
26
|
-
/ Example (a generic illustration).
|
|
27
|
-
-->
|
|
28
|
-
|
|
29
|
-
## Metadata
|
|
30
|
-
<!-- Capture: machine-readable doc identity, provenance, and validation state. Avoid: hiding these only in
|
|
31
|
-
template comments or run records. Example: Module id `<module-id>`, Source `<module-path>/`, Coverage score `Pending coverage assessment`. -->
|
|
32
|
-
| Field | Value |
|
|
33
|
-
|---|---|
|
|
34
|
-
| Module id | `<module-id>` |
|
|
35
|
-
| Source path(s) | `<module source path(s)>` |
|
|
36
|
-
| Parent spec | the parent module's canonical spec at the manifest's module docs path, e.g. `<parent-module-path>/ai-docs/<parent-name>-spec.md` — or `—` when this module has no parent module |
|
|
37
|
-
| Doc kind | Module spec |
|
|
38
|
-
| Coverage score | Pending coverage assessment / `<percent>%` assessed `<YYYY-MM-DD>` |
|
|
39
|
-
| Generated from | `module-spec` @ SDLC template library `0.2.2` |
|
|
40
|
-
| generated_by / approved_by / updated_at | <provenance> |
|
|
41
|
-
| Validation status | not-run / pass / pass-with-warnings / blocked, validator `<runtime>`, assessed `<YYYY-MM-DD>` |
|
|
42
|
-
|
|
43
|
-
Coverage score: `Pending coverage assessment` before the first report; after assessment, replace with
|
|
44
|
-
`<0-100%>` plus the assessment date and short evidence summary. Do not link or cite local generated
|
|
45
|
-
coverage or validation report paths from this committed metadata. Keep manifest coverage state outside
|
|
46
|
-
the rendered module doc metadata.
|
|
47
|
-
|
|
48
|
-
## Evidence Rules
|
|
49
|
-
Every generated requirement below must cite concrete source evidence using `file path`. Separate source
|
|
50
|
-
evidence, test evidence, examples, assumptions, and gaps so validators and future agents can distinguish
|
|
51
|
-
truth from context. Test evidence is preferred for WHY. Commit evidence is allowed only when the
|
|
52
|
-
repository policy says history is reliable, and must include the commit hash. If evidence is missing or
|
|
53
|
-
conflicting, ask a focused discovery question before finalizing the requirement; record unresolved answers
|
|
54
|
-
as approved unknowns only when the human explicitly defers or does not know.
|
|
55
|
-
|
|
56
|
-
## Source Material Register
|
|
57
|
-
<!-- Capture: source basis categories and disposition for this canonical spec. Avoid: listing old
|
|
58
|
-
non-canonical file paths such as prior AGENTS/ARCHITECTURE/spec snapshots, copying an entire
|
|
59
|
-
source file, or adding a large quoted block. Exact old source paths belong in .sdd/manifest.json
|
|
60
|
-
and local .generated source-fidelity reports. Preserve validated tables, diagrams, flows, and
|
|
61
|
-
requirements in the matching sections by meaning; record stale/conflicting/unverifiable units in
|
|
62
|
-
the run report. Example: "Reviewed prior module architecture docs | architecture | verified |
|
|
63
|
-
station-login sequence moved to Sequence Diagram(s); stale cache note recorded in source-fidelity
|
|
64
|
-
report." -->
|
|
65
|
-
| Source material | Scope | Decision | Detail location or disposition |
|
|
66
|
-
|---|---|---|---|
|
|
67
|
-
| `<source-basis-or-N/A>` | overview / architecture / API / tests / none | used / verified / reference-only / stale / conflicting / none | <where the detail landed, or why it is unsupported/conflicting/not applicable> |
|
|
68
|
-
|
|
69
|
-
## Overview
|
|
70
|
-
<!-- Capture: the module's high-level orientation in 2-4 paragraphs: what it owns, how it is structured,
|
|
71
|
-
and where a maintainer should start. Avoid: duplicating every requirement or listing files with no
|
|
72
|
-
"why". Example: "`<module>` owns `<resource>` lifecycle; callers enter through `<public-api>`, which
|
|
73
|
-
delegates to `<internal-unit>` so validation and persistence stay separate." -->
|
|
74
|
-
<module orientation>
|
|
75
|
-
|
|
76
|
-
## Purpose / Responsibility
|
|
77
|
-
<!-- Capture: in 1-2 sentences, the single thing this module owns. Avoid: a vague catch-all ("handles
|
|
78
|
-
stuff") or listing everything it touches. Example: "Owns `<resource>` lifecycle: create, validate, and
|
|
79
|
-
transition `<resource>`; does NOT own `<external capability>`." -->
|
|
80
|
-
<purpose>
|
|
81
|
-
|
|
82
|
-
<!-- Include if: the repo tiers its modules (e.g. Tier-1/Tier-2) [condition-id: module.has_tiers] -->
|
|
83
|
-
## Tier
|
|
84
|
-
<!-- Capture: this module's tier and what the tier implies (SLO, review bar). Avoid: inventing a tier the
|
|
85
|
-
repo doesn't use. Example: "Tier-1 — customer-facing; changes need 2 reviewers + on-call sign-off." -->
|
|
86
|
-
**Tier:** <Tier-1 / Tier-2 / ...>
|
|
87
|
-
|
|
88
|
-
## Stack
|
|
89
|
-
<!-- Capture: language+version, framework, test stack, build wiring (datastore/messaging only if it has them).
|
|
90
|
-
Avoid: copying the repo-wide stack when this module differs (polyglot). Example: "<language> <version>,
|
|
91
|
-
<framework>, <test framework>; build target <module-target>." -->
|
|
92
|
-
<stack>
|
|
93
|
-
|
|
94
|
-
## Folder / Package Structure
|
|
95
|
-
<!-- Capture: the REAL tree globbed from disk, one-line role per dir. Avoid: an idealized/aspirational tree.
|
|
96
|
-
Example: <module>/src/{api,domain,repo}/ with a one-line role each. -->
|
|
97
|
-
```
|
|
98
|
-
<module>/src/.../
|
|
99
|
-
├── <dir>/ # <one-line role>
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
<!-- Include if: this module contains child modules that own their own specs [condition-id: module.has_submodules] -->
|
|
103
|
-
## Sub-modules
|
|
104
|
-
<!-- Capture: one row per DIRECT child module that owns its own spec — the routed registry an agent follows
|
|
105
|
-
to descend one level. Spec paths follow the manifest's module docs path, shown below with the default.
|
|
106
|
-
Avoid: listing directories that have no spec of their own (those stay in Folder / Package Structure),
|
|
107
|
-
listing indirect grandchildren, or restating a child's contents here. Example:
|
|
108
|
-
"`<module>/src/<child>/` | <what the child owns> | Partial | `<module>/src/<child>/ai-docs/<child>-spec.md`". -->
|
|
109
|
-
| Sub-module | Responsibility | Manifest coverage state | Spec |
|
|
110
|
-
|---|---|---|---|
|
|
111
|
-
| `<child-module-path>/` | <one line> | <from `.sdd/manifest.json`> | `<child-module-path>/ai-docs/<child-name>-spec.md` |
|
|
112
|
-
|
|
113
|
-
Scope rule: every section below describes THIS module only. Behavior owned by a sub-module is recorded in
|
|
114
|
-
that sub-module's spec and referenced here by contract id — never duplicated, so a requirement is counted
|
|
115
|
-
once and at one level.
|
|
116
|
-
|
|
117
|
-
## Key Files (source of truth)
|
|
118
|
-
<!-- Capture: the files an agent must read and NOT infer values from (constants/config/schema, the export
|
|
119
|
-
barrel, typed props). Avoid: listing every file — only the authoritative ones. Example: "config/
|
|
120
|
-
limits.ts holds the rate caps; never hardcode them elsewhere." -->
|
|
121
|
-
| File | Holds |
|
|
122
|
-
|---|---|
|
|
123
|
-
| `<the real source-of-truth file(s)>` | <what it holds> |
|
|
124
|
-
|
|
125
|
-
## Public Surface
|
|
126
|
-
<!--
|
|
127
|
-
Capture: how THIS module is consumed. Keep this compact: one row per public endpoint/export/event/command,
|
|
128
|
-
plus short compatibility or deprecation notes. Link exact schemas/details instead of pasting them here:
|
|
129
|
-
network API → OpenAPI `.yaml` link when available;
|
|
130
|
-
events/messages → AsyncAPI `.yaml`, JSON Schema, or event source link;
|
|
131
|
-
gRPC → `.proto`; GraphQL → `.graphql`;
|
|
132
|
-
imported SDK/code API → exported declarations, API report, or package entry point.
|
|
133
|
-
Avoid: a vague "API" heading, documenting internal helpers as public, or turning this spec into a full
|
|
134
|
-
schema dump. If there is no external contract, write "Internal Surface — internal use only" and list the
|
|
135
|
-
entry points other modules call.
|
|
136
|
-
Example: "billing.invoice.get | HTTP | GET /invoices/{id} | fetch invoice | stable; additive response fields only | openapi.yaml#/paths/... | ai-docs/CONTRACTS.md#api-endpoints".
|
|
137
|
-
-->
|
|
138
|
-
| Contract ID | Type | Surface | Purpose | Compatibility / deprecation | Schema / detail link | Root index |
|
|
139
|
-
|---|---|---|---|---|---|---|
|
|
140
|
-
| `<module>.<surface>` | HTTP / SDK / event / CLI / RPC | <method+path, symbol, event, command> | <why callers use it> | <stability and deprecation note> | `<schema-or-api-detail>` | `<relative-path-to-root-ai-docs/CONTRACTS.md>` |
|
|
141
|
-
|
|
142
|
-
Compatibility notes:
|
|
143
|
-
- <additive/change/removal rule; consumer transition or deprecation window if applicable>
|
|
144
|
-
|
|
145
|
-
## Requires (dependencies)
|
|
146
|
-
<!-- Capture: what the module needs IN — internal modules, external services (+fallback), datastore/infra,
|
|
147
|
-
peer libs (+version floor). Avoid: omitting fallbacks/version floors. Example: "<cache/store> (temporary verifier store, bounded
|
|
148
|
-
TTL, fail-closed); <shared-lib> ^2.3." -->
|
|
149
|
-
<requires>
|
|
150
|
-
|
|
151
|
-
## Requirements
|
|
152
|
-
<!-- Capture: observable behavior, public contracts, invariants, and compatibility promises that must be
|
|
153
|
-
preserved. Avoid: turning data inventory into requirements. Tables, fields, entities, migrations, and
|
|
154
|
-
cache keys belong in Data / Schema, Schema / Migration Discipline, or Data Model sections below. -->
|
|
155
|
-
| ID | WHAT | WHY | Source Evidence | Test / Example Evidence | Assumptions / Gaps | Confidence |
|
|
156
|
-
|---|---|---|---|---|---|---|
|
|
157
|
-
| `<MODULE>-R-001` | <observable behavior or contract the module must preserve> | <rationale from tests/usage/history, or approved unknown> | `<source-file>` | `<test-file>` / `<example-file>` / none found | <assumption, gap, or none> | PRESENT / WEAK / APPROVED_UNKNOWN |
|
|
158
|
-
|
|
159
|
-
Do not merge multiple unrelated behaviors into one requirement. Do not use broad evidence such as
|
|
160
|
-
"see source tree" or only an intake/questionnaire record; cite the implementation/test files that support
|
|
161
|
-
the claim. Do not record raw data/schema inventory as requirements.
|
|
162
|
-
|
|
163
|
-
## Design Overview
|
|
164
|
-
<!-- Capture: how the module works internally and why it's structured this way (2-4 paragraphs).
|
|
165
|
-
Avoid: restating the overview or listing files with no "why". Example: "Splits intake validation from
|
|
166
|
-
processing rules so retries never re-validate; processor is pure + unit-testable." -->
|
|
167
|
-
<design overview>
|
|
168
|
-
|
|
169
|
-
## Data Flow
|
|
170
|
-
<!-- Capture: how data moves through the module (inputs → transforms → outputs), naming the EXACT transport
|
|
171
|
-
(HTTP / WebSocket / gRPC / queue / in-process). Avoid: leaving transport vague — a frequent doc error.
|
|
172
|
-
Example: "Request → validator → domain service → repository (<store>); events emitted to the bus." -->
|
|
173
|
-
```mermaid
|
|
174
|
-
<data-flow diagram>
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
## Sequence Diagram(s)
|
|
178
|
-
<!-- Capture: the sequence inventory first, then one sequence per major operation group. Count operation
|
|
179
|
-
groups from public surfaces, use cases, events, commands, state transitions, and async jobs. Merge
|
|
180
|
-
operations into one diagram only when they share the same actors, ordering, transport, state transition,
|
|
181
|
-
and failure behavior. Include error/timeout/retry/rejected/rollback/recovery paths. Avoid: one generic
|
|
182
|
-
happy-path diagram for a module with multiple behaviors. Example: a mermaid sequenceDiagram showing
|
|
183
|
-
client → service → store, plus the timeout → retry branch. -->
|
|
184
|
-
Sequence coverage:
|
|
185
|
-
|
|
186
|
-
| Operation group | Diagram | Failure / recovery coverage |
|
|
187
|
-
|---|---|---|
|
|
188
|
-
| `<operation group>` | `<diagram title>` | <alt/opt branch or separate diagram covering error/timeout/retry/rejected/rollback/recovery> |
|
|
189
|
-
|
|
190
|
-
```mermaid
|
|
191
|
-
<sequence diagram for each major operation — prefer mermaid sequenceDiagram; include error/timeout paths>
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
## Class / Component Relationships
|
|
195
|
-
<!-- Capture: the key types and how they relate (inheritance, composition, DI). Avoid: an exhaustive dump of
|
|
196
|
-
every class. Example: a class diagram of Service → Repository interface ← two implementations. -->
|
|
197
|
-
```mermaid
|
|
198
|
-
<class or component diagram>
|
|
199
|
-
```
|
|
200
|
-
<Narrative of the key types and how they relate.>
|
|
201
|
-
|
|
202
|
-
## Use Cases
|
|
203
|
-
<!-- Capture: the concrete flows the module supports (actor → steps → outcome). Avoid: vague capability names
|
|
204
|
-
with no steps. Example: "UC-1 Process item: caller submits → validate → persist → emit ItemProcessed." -->
|
|
205
|
-
- **UC-1 <name>:** <actor → steps → outcome>. Evidence: `<source-file>`, `<test-file>`.
|
|
206
|
-
<!-- Include if: this module has a UI — add the UI flow (screens, states, user actions) per use case [condition-id: module.has_ui] -->
|
|
207
|
-
<!-- Include if: this module crosses service boundaries (network API or events) — add the cross-service flow per use case [condition-id: module.crosses_service_boundaries] -->
|
|
208
|
-
|
|
209
|
-
<!-- Include if: this module holds client-side state [condition-id: module.holds_client_state] -->
|
|
210
|
-
## State Model
|
|
211
|
-
<!-- Capture: the state shape (store/slices) and what triggers transitions. Avoid: documenting server data
|
|
212
|
-
here. Example: "<state-slice> {items, total}; ADD_ITEM/REMOVE_ITEM recompute total." -->
|
|
213
|
-
<state model>
|
|
214
|
-
|
|
215
|
-
<!-- Include if: the module enforces domain rules or entity invariants [condition-id: module.enforces_domain_rules] -->
|
|
216
|
-
## Business Rules & Invariants
|
|
217
|
-
<!-- Capture: the rules that must ALWAYS hold (lifecycles, validation, state constraints) + where enforced
|
|
218
|
-
(file path). Avoid: mixing these with pitfalls. Example: "An order can't leave DRAFT without ≥1 line
|
|
219
|
-
item — enforced in <OwnerService>.submit (<owner-service>.ts)." -->
|
|
220
|
-
- <invariant — and where it is enforced>
|
|
221
|
-
|
|
222
|
-
<!-- Include if: the module is concurrent / async / reactive / event-driven [condition-id: module.is_concurrent_async] -->
|
|
223
|
-
## Concurrency & Reactive Flow
|
|
224
|
-
<!-- Capture: the async/threading model — what runs concurrently, ordering guarantees, what must be
|
|
225
|
-
non-blocking, idempotency/retry, shared-state protection. Avoid: assuming single-threaded when it isn't.
|
|
226
|
-
Example: "Handlers are stateless; the same event may arrive twice — upsert keyed by event id." -->
|
|
227
|
-
- <concurrency model; ordering/idempotency guarantees; what NOT to block>
|
|
228
|
-
|
|
229
|
-
<!-- Include if: the module owns persistence (its own tables/store) [condition-id: module.owns_persistence] -->
|
|
230
|
-
## Data / Schema
|
|
231
|
-
<!-- Capture: the tables/collections this module owns, key fields, and the migration rule. Avoid: documenting
|
|
232
|
-
data another module owns. Example: "Owns `<items>` (id, state, updated_at); migrations in db/migrations/,
|
|
233
|
-
expand→migrate→contract." Keep this as descriptive data inventory, not requirement rows. -->
|
|
234
|
-
- <owned stores + key schema + migration discipline>
|
|
235
|
-
|
|
236
|
-
<!-- Include if: this module owns persistence (a datastore + migrations) [condition-id: module.owns_persistence] -->
|
|
237
|
-
## Schema / Migration Discipline
|
|
238
|
-
<!-- Capture: where migrations live, numbering/ordering, the migration-is-source-of-truth rule. Avoid:
|
|
239
|
-
hand-editing shipped migrations. Example: "db/migrations/NNNN_*.sql, monotonic; never edit a shipped one." -->
|
|
240
|
-
<migration discipline>
|
|
241
|
-
|
|
242
|
-
<!-- Include if: the module is stateful with non-trivial transitions [condition-id: module.stateful_transitions] -->
|
|
243
|
-
## State Machine
|
|
244
|
-
<!-- Capture: states, transitions, guards, terminal states, and invalid transitions. Avoid: mixing state
|
|
245
|
-
transitions into generic requirements. -->
|
|
246
|
-
```mermaid
|
|
247
|
-
<state diagram>
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
<!-- Include if: the module exposes a wire protocol/format [condition-id: module.exposes_wire_protocol] -->
|
|
251
|
-
## Protocol / Wire Format
|
|
252
|
-
<!-- Capture: message/frame shape, versioning, compatibility rules, and parser/serializer ownership. Avoid:
|
|
253
|
-
leaving parser/serializer ownership implicit. -->
|
|
254
|
-
- <protocol or wire-format details>
|
|
255
|
-
|
|
256
|
-
<!-- Include if: the module is UI with a multi-screen flow [condition-id: module.ui_multi_screen] -->
|
|
257
|
-
## UI Flow
|
|
258
|
-
<!-- Capture: screens, states, user actions, empty/loading/error states, and accessibility constraints. Avoid:
|
|
259
|
-
omitting non-happy-path UI states. -->
|
|
260
|
-
- <UI flow details>
|
|
261
|
-
|
|
262
|
-
<!-- Include if: the module owns a large/complex data model [condition-id: module.large_data_model] -->
|
|
263
|
-
## Data Model
|
|
264
|
-
<!-- Capture: entities, relationships, ownership, lifecycle, retention, and migration notes. Avoid:
|
|
265
|
-
recording table/field inventory as requirements. -->
|
|
266
|
-
- <data model details>
|
|
267
|
-
|
|
268
|
-
<!-- Include if: the module returns/raises errors a caller must handle [condition-id: module.returns_caller_errors] -->
|
|
269
|
-
## Error Handling & Failure Modes
|
|
270
|
-
<!-- Capture: the errors/result types the module produces, when each fires, and how a caller recovers. Avoid:
|
|
271
|
-
swallowing errors or returning a bare null. Example: "Returns NotFound (unknown id) and Conflict
|
|
272
|
-
(stale version); callers retry Conflict once after re-reading." -->
|
|
273
|
-
| Condition | Signal (error/code/result) | Caller recovery |
|
|
274
|
-
|---|---|---|
|
|
275
|
-
|
|
276
|
-
## Pitfalls
|
|
277
|
-
<!-- Capture: the latent-bug edges mined from incidents/tribal knowledge, and how to avoid each. Avoid: generic
|
|
278
|
-
advice ("handle errors"). Example: "Timestamps are stored UTC but the legacy column is local — convert
|
|
279
|
-
on read or reports drift by the offset." -->
|
|
280
|
-
- <non-obvious behavior / failure mode that has bitten or could bite; how to avoid it>
|
|
281
|
-
|
|
282
|
-
<!-- Include if: this module has specific conventions beyond the repo-wide rules [condition-id: module.module_specific_conventions] -->
|
|
283
|
-
## Module Do's / Don'ts
|
|
284
|
-
<!-- Capture: conventions extracted from real code unique to this module. Avoid: repeating repo-wide rules.
|
|
285
|
-
Example: "DO emit <ResourceChanged> after every state write; DON'T mutate `<resource>` outside `<OwnerService>`." -->
|
|
286
|
-
- DO: <module-specific convention>
|
|
287
|
-
- DON'T: <module-specific pitfall>
|
|
288
|
-
|
|
289
|
-
<!-- Include if: this module is published/consumed as a package [condition-id: module.published_package] -->
|
|
290
|
-
## Export Stability
|
|
291
|
-
<!-- Capture: semver sensitivity of exports, the type-declaration surface, sample usage. Avoid: a breaking
|
|
292
|
-
export change without a major bump. Example: "Adding an optional field = minor; removing one = major." -->
|
|
293
|
-
<export stability>
|
|
294
|
-
|
|
295
|
-
<!-- Include if: this module is embedded into a host application [condition-id: module.embedded_in_host] -->
|
|
296
|
-
## Host Integration & Theming
|
|
297
|
-
<!-- Capture: theming/provider needs, custom-element/tag names, the host-mount contract. Avoid: assuming the
|
|
298
|
-
host's framework version. Example: "Mounts as <order-widget>; requires ThemeProvider; peer react ^18." -->
|
|
299
|
-
<host integration>
|
|
300
|
-
|
|
301
|
-
<!-- Include if: the module has a non-obvious design trade-off a consumer must know [condition-id: module.has_design_tradeoff] -->
|
|
302
|
-
## Key Design Trade-off
|
|
303
|
-
<!-- Capture: the deliberate trade-off and the invariant it preserves. Avoid: presenting it as a limitation
|
|
304
|
-
with no rationale. Example: "Stable item identity is favored over pagination simplicity — cursors encode
|
|
305
|
-
identity, not offset, so inserts don't shift pages." -->
|
|
306
|
-
- <trade-off chosen, what it preserves, what it costs>
|
|
307
|
-
|
|
308
|
-
## Test-Case Strategy (module)
|
|
309
|
-
<!-- Capture: unit boundaries, what each test asserts (a positive AND a negative case), key edge cases,
|
|
310
|
-
eventual-consistency handling. Avoid: only-happy-path tests, or restating a change-level test plan.
|
|
311
|
-
Example: "submit() — asserts persisted+event emitted (positive) AND rejects empty order (negative)." -->
|
|
312
|
-
<module test approach>
|
|
313
|
-
|
|
314
|
-
| Behavior / Requirement | Existing test evidence | Gap |
|
|
315
|
-
|---|---|---|
|
|
316
|
-
| `<MODULE>-R-001` | `<test-file>` or `None found` | <missing negative case / missing edge case / none> |
|
|
317
|
-
|
|
318
|
-
## Traceability
|
|
319
|
-
<!-- Capture: the links up/out so a reader can navigate. Avoid: dead links or omitting the manifest. -->
|
|
320
|
-
- Repo architecture: `<relative-path-to-root-ai-docs/ARCHITECTURE.md>` · Registry: `<relative-path-to-root-ai-docs/SPEC_INDEX.md>`
|
|
321
|
-
- Coverage state & contracts baseline: `.sdd/manifest.json`
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<!-- ───────────────────────────────
|
|
2
|
-
Template: ADR (example)
|
|
3
|
-
Template-ID: adr
|
|
4
|
-
Generates: ai-docs/adr/NNNN-<kebab-title>.md
|
|
5
|
-
Description: Standing architecture decision record — context, decision, alternatives rejected, consequences.
|
|
6
|
-
Library ver: 0.2.2
|
|
7
|
-
Last updated: 2026-06-30
|
|
8
|
-
─────────────────────────────── -->
|
|
9
|
-
|
|
10
|
-
# ADR-NNNN — <short decision title>
|
|
11
|
-
|
|
12
|
-
> Start here → repo root [`AGENTS.md`](../../AGENTS.md) (agent entry) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md) · system [`ARCHITECTURE.md`](../ARCHITECTURE.md). This is a standing `ai-docs/adr/` decision record; the folder README explains numbering/supersession.
|
|
13
|
-
> Context-efficiency: link to canonical docs — don't duplicate them; one decision per file.
|
|
14
|
-
|
|
15
|
-
<!--
|
|
16
|
-
STANDING decision record. One decision per file; immutable once Accepted. Capture the WHY and the rejected
|
|
17
|
-
options so the reasoning survives. Headings are flat; sections preceded by `<!-- Include if: ... -->` are
|
|
18
|
-
kept only when relevant. Each section comment gives Capture / Avoid / Example.
|
|
19
|
-
-->
|
|
20
|
-
|
|
21
|
-
<!-- Capture: status + date + deciders (roles) + supersession link. Avoid: editing an Accepted ADR in place —
|
|
22
|
-
supersede it with a new one. Example: "Status: Accepted; Deciders: architect + users TL." -->
|
|
23
|
-
| Field | Value |
|
|
24
|
-
|---|---|
|
|
25
|
-
| Status | Proposed / Accepted / Superseded by ADR-NNNN / Deprecated |
|
|
26
|
-
| Date | <YYYY-MM-DD> |
|
|
27
|
-
| Deciders | <roles, not just names> |
|
|
28
|
-
| Supersedes / Superseded by | <ADR-NNNN, or none> |
|
|
29
|
-
| Generated from | `adr` @ SDLC template library `0.2.2` |
|
|
30
|
-
|
|
31
|
-
## Context
|
|
32
|
-
<!-- Capture: the forces — problem, constraints, what made the decision necessary, grounded in facts (file path/
|
|
33
|
-
incident/requirement). Avoid: opinion with no evidence. Example: "Two services wrote `<entity>`, causing
|
|
34
|
-
race-condition double-posts (INC-220)." -->
|
|
35
|
-
<context>
|
|
36
|
-
|
|
37
|
-
## Decision
|
|
38
|
-
<!-- Capture: what was decided, as a clear directive. Avoid: a vague preference. Example: "`<owner service>` is
|
|
39
|
-
the sole writer of `<entity>`; others call its API." -->
|
|
40
|
-
<decision>
|
|
41
|
-
|
|
42
|
-
## Alternatives Considered
|
|
43
|
-
<!-- Capture: the rejected options + WHY (the most valuable part — stops relitigation/accidental reversal).
|
|
44
|
-
Avoid: listing only the chosen option. Example: "Distributed lock — adds latency + a failure mode — rejected." -->
|
|
45
|
-
| Alternative | Pros | Cons | Why rejected |
|
|
46
|
-
|---|---|---|---|
|
|
47
|
-
|
|
48
|
-
## Consequences
|
|
49
|
-
<!-- Capture: what gets easier/harder, follow-on obligations, the constraint agents must now respect. Avoid:
|
|
50
|
-
only the upside. Example: "Agents must: never write `<entity>` rows outside `<owner service>`." -->
|
|
51
|
-
- **Positive:** <…>
|
|
52
|
-
- **Negative / cost:** <…>
|
|
53
|
-
- **Agents must:** <the constraint this imposes on future changes>
|
|
54
|
-
|
|
55
|
-
<!-- Include if: the decision has a defined re-evaluation trigger -->
|
|
56
|
-
## Revisit When
|
|
57
|
-
<!-- Capture: the condition under which to reconsider. Avoid: "never". Example: "if write throughput exceeds
|
|
58
|
-
what a single writer can sustain." -->
|
|
59
|
-
- <condition under which this should be reconsidered>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<!-- ───────────────────────────────
|
|
2
|
-
Template: Pattern (example)
|
|
3
|
-
Template-ID: pattern
|
|
4
|
-
Generates: ai-docs/patterns/<name>.md
|
|
5
|
-
Description: A repo convention from real code — correct vs incorrect form, with where it appears.
|
|
6
|
-
Library ver: 0.2.2
|
|
7
|
-
Last updated: 2026-06-30
|
|
8
|
-
─────────────────────────────── -->
|
|
9
|
-
|
|
10
|
-
# Pattern: <name>
|
|
11
|
-
|
|
12
|
-
> Start here → repo root [`AGENTS.md`](../../AGENTS.md) (agent entry) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md). This is an `ai-docs/patterns/` fill-in; the folder README explains generic-vs-per-language routing.
|
|
13
|
-
> Context-efficiency: link to canonical docs — don't duplicate them; one small, code-grounded pattern per file.
|
|
14
|
-
|
|
15
|
-
<!-- Example pattern file shape. Fill these from REAL code (3+ occurrences for a promoted pattern;
|
|
16
|
-
fewer occurrences can be a candidate note, not an enforceable pattern). Delete this example in a
|
|
17
|
-
real repo. Generic patterns sit here; language-specific ones go in a subfolder.
|
|
18
|
-
Each section comment gives Capture / Avoid / Example. -->
|
|
19
|
-
|
|
20
|
-
## When to use
|
|
21
|
-
<!-- Capture: the concrete situation this pattern applies to. Avoid: "always" — give the trigger. Example:
|
|
22
|
-
"When emitting a domain event after a state change." -->
|
|
23
|
-
**When to use:** <the situation this pattern applies to>
|
|
24
|
-
|
|
25
|
-
## Correct
|
|
26
|
-
<!-- Capture: the correct form copied from REAL source with a file path anchor. Avoid: an invented snippet.
|
|
27
|
-
Example: "// from events/emit.ts — emit(ev) wraps in the outbox." -->
|
|
28
|
-
```<lang>
|
|
29
|
-
// from <real/file/path.ext>
|
|
30
|
-
<correct example drawn from actual source>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Incorrect
|
|
34
|
-
<!-- Capture: the common mistake + the failure it causes. Avoid: a strawman nobody writes. Example: "direct
|
|
35
|
-
bus.publish() — bypasses the outbox, so the event is lost if the tx rolls back." -->
|
|
36
|
-
```<lang>
|
|
37
|
-
<the common mistake>
|
|
38
|
-
```
|
|
39
|
-
**Why wrong:** <the failure it causes>
|
|
40
|
-
|
|
41
|
-
## Where it appears
|
|
42
|
-
<!-- Capture: 3+ real file:path occurrences (proves it's a real convention, not invented). Avoid: listing it
|
|
43
|
-
if it appears < 3 times. Example: "<module-a>/emit.ts, <module-b>/emit.ts, <module-c>/emit.ts." -->
|
|
44
|
-
- `<file:path>` , `<file:path>` , `<file:path>` (3+ real occurrences)
|
|
45
|
-
|
|
46
|
-
## Edge cases / exceptions
|
|
47
|
-
<!-- Capture: where the pattern legitimately doesn't apply. Avoid: pretending there are none. Example: "Not for
|
|
48
|
-
fire-and-forget telemetry events, which skip the outbox by design." -->
|
|
49
|
-
- <when the pattern legitimately doesn't apply>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<!-- ───────────────────────────────
|
|
2
|
-
Template: Rule (example)
|
|
3
|
-
Template-ID: rule
|
|
4
|
-
Generates: ai-docs/rules/<name>.md
|
|
5
|
-
Description: One enforceable repo rule — the rule, its rationale, how to follow it, and how it's enforced.
|
|
6
|
-
Library ver: 0.2.2
|
|
7
|
-
Last updated: 2026-06-30
|
|
8
|
-
─────────────────────────────── -->
|
|
9
|
-
|
|
10
|
-
# Rule: <short imperative name>
|
|
11
|
-
|
|
12
|
-
> Start here → repo root [`AGENTS.md`](../../AGENTS.md) (agent entry, carries the critical rules) · router [`SPEC_INDEX.md`](../SPEC_INDEX.md). This is an `ai-docs/rules/` fill-in; the folder README explains generic-vs-per-language routing; the repo-wide rules digest is `RULES.md`.
|
|
13
|
-
> Context-efficiency: link to canonical docs — don't duplicate them; one rule per file; defer to the linter where it enforces.
|
|
14
|
-
|
|
15
|
-
<!--
|
|
16
|
-
A single fill-in rule file (symmetric with patterns/_pattern-example.md). Generic rules live in
|
|
17
|
-
ai-docs/rules/; language-specific rules in ai-docs/rules/<language>/. One rule per file. Defer to tooling:
|
|
18
|
-
if a linter/CI already enforces it, point to that instead of restating it.
|
|
19
|
-
-->
|
|
20
|
-
|
|
21
|
-
## Rule
|
|
22
|
-
<!-- Capture: the rule as one imperative sentence the agent can obey. Avoid: vague aspirations
|
|
23
|
-
("write clean code") or generic best practice not specific to this repo. Example: "Wrap every
|
|
24
|
-
outbound network call in the shared retry helper; never call the HTTP client directly." -->
|
|
25
|
-
<the rule>
|
|
26
|
-
|
|
27
|
-
## Why
|
|
28
|
-
<!-- Capture: the concrete reason — the incident, bug class, or convention it prevents. Avoid: "it's
|
|
29
|
-
best practice" with no consequence. Example: "Direct client calls bypass timeout + circuit-breaker
|
|
30
|
-
config and caused a cascading outage (INC-1234)." -->
|
|
31
|
-
<rationale>
|
|
32
|
-
|
|
33
|
-
## How to follow
|
|
34
|
-
<!-- Capture: the correct way, with a real code reference (file path) or a short snippet. Avoid: an
|
|
35
|
-
abstract description with no example to copy. Example: "Use retryingClient.call(req) — see
|
|
36
|
-
src/net/retrying-client.ts." -->
|
|
37
|
-
<how + example reference>
|
|
38
|
-
|
|
39
|
-
## Enforced by
|
|
40
|
-
<!-- Capture: the exact gate that catches a violation. Avoid: claiming enforcement that doesn't exist.
|
|
41
|
-
Example: "lint rule no-direct-http (errors in CI)" or "review only — no automated check yet." -->
|
|
42
|
-
<linter rule / CI gate / review check / "review only">
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
<!-- ───────────────────────────────
|
|
2
|
-
Template: AGENTS.md
|
|
3
|
-
Template-ID: agents
|
|
4
|
-
Generates: AGENTS.md
|
|
5
|
-
Description: Agent entry contract — first file every AI agent reads (commands, rules, boundaries, routing).
|
|
6
|
-
Library ver: 0.2.2
|
|
7
|
-
Last updated: 2026-07-22
|
|
8
|
-
─────────────────────────────── -->
|
|
9
|
-
|
|
10
|
-
# AGENTS.md — <repo name>
|
|
11
|
-
|
|
12
|
-
> You are the agent entry point — read first. Next: router [`SPEC_INDEX.md`](ai-docs/SPEC_INDEX.md) · system [`ARCHITECTURE.md`](ai-docs/ARCHITECTURE.md). Load this + `SPEC_INDEX.md` first; pull module/standing docs on demand. (Multi-repo: a workspace-level `AGENTS.md` may sit above this one.)
|
|
13
|
-
> Context-efficiency: link to canonical docs — don't duplicate them; keep this file under ~200 lines.
|
|
14
|
-
|
|
15
|
-
<!--
|
|
16
|
-
ROOT FILE 1 of 3. The agent entry point — first file every automation agent reads. KEEP UNDER
|
|
17
|
-
~200 LINES — link to ai-docs/SPEC_INDEX.md and module docs instead of
|
|
18
|
-
duplicating. Fill every <...> from REAL repo evidence — never invent commands, paths, flags.
|
|
19
|
-
Headings are flat; sections preceded by `<!-- Include if: ... -->` are kept only when the condition
|
|
20
|
-
holds. Each section comment gives Capture (what to write) / Avoid (the common mistake) / Example.
|
|
21
|
-
-->
|
|
22
|
-
|
|
23
|
-
> Cross-tool context file. Auto-loaded by AI coding agents. If a module ships its own
|
|
24
|
-
> `AGENTS.md` agent-entry file, that file layers on top of this root file. (A module's
|
|
25
|
-
> high-level design lives in the manifest-routed module spec, source-local as `<module-path>/ai-docs/<module-name>-spec.md` by default, not in an `AGENTS.md`.)
|
|
26
|
-
|
|
27
|
-
## Repo Overview
|
|
28
|
-
<!-- Capture: what the repo is in 1-3 sentences + an is/is-NOT list. Avoid: marketing prose or omitting the
|
|
29
|
-
is-NOT list (it prevents the most common agent misunderstandings). Example: "A service/library that
|
|
30
|
-
owns <domain capability>. It is NOT <adjacent app/system> and does NOT own <external data>." -->
|
|
31
|
-
**<repo>** is <one-to-three sentences: what it is>.
|
|
32
|
-
|
|
33
|
-
**What it is:**
|
|
34
|
-
- <bullet>
|
|
35
|
-
**What it is NOT:**
|
|
36
|
-
- ❌ <bullet>
|
|
37
|
-
|
|
38
|
-
## Tech Stack
|
|
39
|
-
<!-- Capture: language+version, framework, build tool, test frameworks (datastores/messaging only if present).
|
|
40
|
-
Avoid: listing libraries the repo doesn't actually use. Example: "TypeScript 5.4, Node 20, Fastify, Vitest." -->
|
|
41
|
-
- <language + version>, <framework>, <build tool>
|
|
42
|
-
- <test frameworks; datastores/messaging only if the repo has them>
|
|
43
|
-
|
|
44
|
-
## Architecture
|
|
45
|
-
<!-- Capture: ONE high-level diagram in the shape that fits the repo. Avoid: pasting full detail (that lives in
|
|
46
|
-
ARCHITECTURE.md). Example: a service's request→handler→store flow, or a library's consumer→public-API view. -->
|
|
47
|
-
```
|
|
48
|
-
<one high-level diagram: a running service → layered/flow; a library → consumer→public-API→internal; a UI → component-tree→state>
|
|
49
|
-
```
|
|
50
|
-
→ Full repo architecture & component responsibilities: **[ARCHITECTURE.md](./ai-docs/ARCHITECTURE.md)**
|
|
51
|
-
|
|
52
|
-
## Module / Package Structure
|
|
53
|
-
<!-- Capture: an abbreviated tree of the key modules, one line each. Avoid: a full file dump. Example:
|
|
54
|
-
"src/<module-a>/ — <capability>; src/<module-b>/ — <capability>; src/<edge>/ — <entry points>." -->
|
|
55
|
-
```
|
|
56
|
-
<abbreviated source tree of key modules; one line each>
|
|
57
|
-
```
|
|
58
|
-
→ Per-module docs and the spec router: **[ai-docs/SPEC_INDEX.md](./ai-docs/SPEC_INDEX.md)**
|
|
59
|
-
|
|
60
|
-
## Critical Rules
|
|
61
|
-
<!-- Capture: the 5-10 non-negotiables drawn from THIS repo's real review corrections; the rule LIST is
|
|
62
|
-
universal, the CONTENT is repo-specific. Avoid: a generic best-practice list. Example: "All <domain unit>
|
|
63
|
-
values use <canonical representation> — never convert implicitly." (network API → validation/authz/resilience; library → semver;
|
|
64
|
-
UI → a11y/design-tokens; plus the repo's real error/format/import idioms.) -->
|
|
65
|
-
1. **Code is the source of truth.** Never invent an API, path, event, flag, or constant — read the real file.
|
|
66
|
-
2. **Ask before coding.** Present a plan / Spec Summary; wait for confirmation.
|
|
67
|
-
3. <rule 3 — a real recurring correction from this repo's reviews>
|
|
68
|
-
|
|
69
|
-
## Essential Commands
|
|
70
|
-
<!-- Capture: the real install/build/test/lint commands, mirrored from the manifest `commands` by role
|
|
71
|
-
(never guessed or copied from another repo). Keep this to the everyday loop; the full command
|
|
72
|
-
surface and test tiers live in `ai-docs/GETTING_STARTED.md` and `ai-docs/TEST_INDEX.md`. Example:
|
|
73
|
-
Install `npm ci` · Test `npm test` · Lint `npm run lint`. -->
|
|
74
|
-
| Role | Command |
|
|
75
|
-
|---|---|
|
|
76
|
-
| Install | `<cmd>` |
|
|
77
|
-
| Build | `<cmd>` |
|
|
78
|
-
| Unit test | `<cmd>` |
|
|
79
|
-
| Lint/format | `<cmd>` |
|
|
80
|
-
→ Full command surface, toolchain, and registries: **[GETTING_STARTED.md](./ai-docs/GETTING_STARTED.md)** · test tiers & coverage gate: **[TEST_INDEX.md](./ai-docs/TEST_INDEX.md)**
|
|
81
|
-
|
|
82
|
-
## Common Gotchas
|
|
83
|
-
<!-- Capture: the latent-bug edges (mine incidents + tribal knowledge), each with the failure it causes.
|
|
84
|
-
Avoid: generic advice. Example: "<domain unit> uses <canonical representation>; passing alternate units silently corrupts results." -->
|
|
85
|
-
1. <gotcha — specific, with the failure it causes>
|
|
86
|
-
|
|
87
|
-
## Pre-Commit Checklist
|
|
88
|
-
<!-- Capture: the must-pass checks before commit, including a repo-specific item. Avoid: a generic checklist
|
|
89
|
-
that doesn't reflect this repo's gates. Example: add "[ ] <repo-specific invariant> is preserved". -->
|
|
90
|
-
- [ ] Tests pass; coverage meets the repo bar
|
|
91
|
-
- [ ] Spec/docs updated in the same change (spec-currency)
|
|
92
|
-
- [ ] No hardcoded secrets; inputs validated
|
|
93
|
-
- [ ] <repo-specific item>
|
|
94
|
-
|
|
95
|
-
<!-- Include if: the repo uses prompt-mode overrides like /adhoc or /quick -->
|
|
96
|
-
## Prompt Overrides (`/adhoc`, `/quick`)
|
|
97
|
-
<!-- Capture: the real bypass modes and what each skips. Avoid: implying correctness rules are ever bypassed.
|
|
98
|
-
Example: "/adhoc skips the process scaffold; validation + security rules still apply." -->
|
|
99
|
-
- `/adhoc` = full bypass (skip process overhead); `/quick` = partial bypass; correctness rules still apply.
|
|
100
|
-
|
|
101
|
-
<!-- Include if: the repo's flows depend on external authenticated sources (ticket tracker / wiki / source host / design docs) -->
|
|
102
|
-
## External Source Access
|
|
103
|
-
<!-- Capture: each non-secret source/provider map the flows depend on + what to do if access is missing.
|
|
104
|
-
Avoid: storing tokens, guessing data a missing server would have provided, or hardcoding one vendor.
|
|
105
|
-
Example: ticket-tracker down → STOP and ask for configuration or pasted source content. -->
|
|
106
|
-
| Provider class | Source / host pattern | Preferred access | If unavailable |
|
|
107
|
-
|---|---|---|---|
|
|
108
|
-
| ticket-tracker | <host/pattern> | connector / cli / rest | STOP and ask — never guess |
|
|
109
|
-
| wiki/docs | <host/pattern> | connector / cli / rest / public | STOP and ask or request pasted source |
|
|
110
|
-
| source-host | <host/pattern> | connector / cli / rest | STOP and ask |
|
|
111
|
-
|
|
112
|
-
<!-- Include if: the repo runs automated processes that need guaranteed compliance (strict mode) -->
|
|
113
|
-
## Strict Compliance Mode (automation)
|
|
114
|
-
<!-- Capture: when strict mode applies and how gates behave. Avoid: leaving "strict" undefined. Example:
|
|
115
|
-
"In CI auto-runs: load all required specs upfront; first violation halts; bounded retries." -->
|
|
116
|
-
Load all required specs upfront; verification gates block; stop on first violation. See ai-docs/SPEC_INDEX.md.
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
**SDD coverage:** this repo's per-module coverage state lives in `.sdd/manifest.json` (mirror in
|
|
120
|
-
`ai-docs/SPEC_INDEX.md`). Use that state to decide whether the spec is authoritative or code must be cross-checked.
|