@webex/plugin-authorization-browser-first-party 3.12.0 → 3.13.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.repo-context.json +426 -0
- package/.sdd/manifest.json +395 -0
- package/AGENTS.md +214 -0
- package/README.md +70 -7
- package/dist/authorization.js +185 -30
- package/dist/authorization.js.map +1 -1
- package/dist/config.js +42 -13
- package/dist/config.js.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/docs/adr/0001-retain-product-readme.md +102 -0
- package/docs/adr/index.md +25 -0
- package/docs/architecture.md +301 -0
- package/docs/getting-started.md +98 -0
- package/docs/index.md +42 -0
- package/docs/specs/README.md +69 -0
- package/package.json +13 -13
- package/schemas/repo-context.schema.json +796 -0
- package/src/authorization.js +183 -35
- package/src/config.js +28 -8
- package/src/docs/README.md +657 -0
- package/src/index.js +1 -1
- package/test/unit/spec/authorization.js +660 -90
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schemas/repo-context.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"repository": {
|
|
5
|
+
"name": "@webex/plugin-authorization-browser-first-party",
|
|
6
|
+
"purpose": "First-party (Webex web client) browser authorization plugin registered as webex.authorization. It starts OAuth authorization-code logins with CSRF state and PKCE (S256), completes them automatically on the redirect page load (CSRF check, URL scrubbing, best-effort preauth catalog, code exchange), supplies the browser token-refresh callback with public or confidential client authentication, handles the third-party login callback, runs device (QR code) login through the oauth-helper service with qRCodeLogin events, and redirects on logout."
|
|
7
|
+
},
|
|
8
|
+
"commands": {
|
|
9
|
+
"install": "yarn",
|
|
10
|
+
"compile": "yarn workspace @webex/plugin-authorization-browser-first-party build:src",
|
|
11
|
+
"build": "yarn workspace @webex/plugin-authorization-browser-first-party build",
|
|
12
|
+
"unit-test": "yarn workspace @webex/plugin-authorization-browser-first-party test:unit",
|
|
13
|
+
"browser-test": "yarn workspace @webex/plugin-authorization-browser-first-party test:browser",
|
|
14
|
+
"lint": "yarn workspace @webex/plugin-authorization-browser-first-party test:style",
|
|
15
|
+
"deploy": "yarn workspace @webex/plugin-authorization-browser-first-party deploy:npm"
|
|
16
|
+
},
|
|
17
|
+
"public_interfaces": [
|
|
18
|
+
{
|
|
19
|
+
"name": "@webex/plugin-authorization-browser-first-party package entry",
|
|
20
|
+
"kind": "package_export",
|
|
21
|
+
"source": "src/index.js",
|
|
22
|
+
"entrypoints": [
|
|
23
|
+
"import Authorization from '@webex/plugin-authorization-browser-first-party'",
|
|
24
|
+
"import {Events, InitialAuthorizationCodeGrantOutcomes, config} from '@webex/plugin-authorization-browser-first-party'",
|
|
25
|
+
"import '@webex/plugin-authorization-browser-first-party'"
|
|
26
|
+
],
|
|
27
|
+
"audience": "the webex package first-party entry (webex-first-party.js), recipe-private-web-client, and the Webex web client",
|
|
28
|
+
"notes": "Importing the package registers Authorization as public plugin 'authorization' with proxies isAuthorizing and isAuthenticating and the credentials config defaults. The first registration of the name wins, so import it before any other authorization plugin."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "webex.authorization runtime methods and events",
|
|
32
|
+
"kind": "plugin_api",
|
|
33
|
+
"source": "src/authorization.js",
|
|
34
|
+
"entrypoints": [
|
|
35
|
+
"webex.authorization.initiateLogin()",
|
|
36
|
+
"webex.authorization.initiateAuthorizationCodeGrant()",
|
|
37
|
+
"webex.authorization.requestAuthorizationCodeGrant()",
|
|
38
|
+
"webex.authorization.initiateThirdPartyLogin()",
|
|
39
|
+
"webex.authorization.initiateThirdPartyLoginRedirect()",
|
|
40
|
+
"webex.authorization.handleThirdPartyCallback()",
|
|
41
|
+
"webex.authorization.initQRCodeLogin()",
|
|
42
|
+
"webex.authorization.cancelQRCodePolling()",
|
|
43
|
+
"webex.authorization.logout()",
|
|
44
|
+
"webex.authorization.eventEmitter.on('login')",
|
|
45
|
+
"webex.authorization.eventEmitter.on('qRCodeLogin')"
|
|
46
|
+
],
|
|
47
|
+
"audience": "the Webex web client",
|
|
48
|
+
"notes": "initialize completes an authorization-code login automatically when the page URL has code. QR progress is reported only through qRCodeLogin events. eventEmitter is shared by all instances."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "credentials configuration defaults",
|
|
52
|
+
"kind": "configuration",
|
|
53
|
+
"source": "src/config.js",
|
|
54
|
+
"entrypoints": [
|
|
55
|
+
"webex.config.credentials.clientType",
|
|
56
|
+
"webex.config.credentials.refreshCallback"
|
|
57
|
+
],
|
|
58
|
+
"audience": "integrators configuring Webex.init and webex-core credentials",
|
|
59
|
+
"notes": "clientType defaults to 'public' (client_id in the form); any other value uses HTTP Basic with client_secret for the code exchange and refresh. The device flow always uses HTTP Basic."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "package scripts",
|
|
63
|
+
"kind": "npm_scripts",
|
|
64
|
+
"source": "package.json",
|
|
65
|
+
"entrypoints": [
|
|
66
|
+
"build",
|
|
67
|
+
"build:src",
|
|
68
|
+
"test:style",
|
|
69
|
+
"test:unit",
|
|
70
|
+
"test:browser",
|
|
71
|
+
"deploy:npm"
|
|
72
|
+
],
|
|
73
|
+
"audience": "contributors and CI",
|
|
74
|
+
"notes": "Run build:src before test:unit because the unit spec imports the package by name and loads dist. Do not run the aggregate test script: it chains test:integration, which is not defined. test:browser collects test/integration/spec, which does not exist."
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"source_of_truth": [
|
|
78
|
+
{
|
|
79
|
+
"surface": "first-party browser authorization plugin implementation",
|
|
80
|
+
"paths": [
|
|
81
|
+
"src/index.js",
|
|
82
|
+
"src/authorization.js",
|
|
83
|
+
"src/config.js"
|
|
84
|
+
],
|
|
85
|
+
"generated_artifacts": [
|
|
86
|
+
"dist"
|
|
87
|
+
],
|
|
88
|
+
"refresh_with": [
|
|
89
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party build:src"
|
|
90
|
+
],
|
|
91
|
+
"validate_with": [
|
|
92
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party test:unit",
|
|
93
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party test:style"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"surface": "module specification",
|
|
98
|
+
"paths": [
|
|
99
|
+
"src/docs/README.md"
|
|
100
|
+
],
|
|
101
|
+
"generated_artifacts": [],
|
|
102
|
+
"refresh_with": [
|
|
103
|
+
"update alongside the behavior change in the same commit"
|
|
104
|
+
],
|
|
105
|
+
"validate_with": [
|
|
106
|
+
"spec-validator on an independent runtime"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"generated_artifacts": [
|
|
111
|
+
{
|
|
112
|
+
"path": "dist",
|
|
113
|
+
"generated_from": "src",
|
|
114
|
+
"refresh_with": "yarn workspace @webex/plugin-authorization-browser-first-party build:src"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"path": "../../../.sdd/templates/repo-standards/template-map.json",
|
|
118
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
119
|
+
"refresh_with": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"validation_matrix": [
|
|
123
|
+
{
|
|
124
|
+
"paths": [
|
|
125
|
+
"src/**"
|
|
126
|
+
],
|
|
127
|
+
"minimum": [
|
|
128
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party build:src",
|
|
129
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party test:unit"
|
|
130
|
+
],
|
|
131
|
+
"recommended": [
|
|
132
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party test:style"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"paths": [
|
|
137
|
+
"src/authorization.js",
|
|
138
|
+
"src/config.js"
|
|
139
|
+
],
|
|
140
|
+
"minimum": [
|
|
141
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party build:src",
|
|
142
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party test:unit"
|
|
143
|
+
],
|
|
144
|
+
"recommended": [
|
|
145
|
+
"review the sibling package files packages/webex/src/webex-first-party.js and packages/@webex/webex-core/src/lib/credentials/credentials.js when flows, client authentication, or token storage change"
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"change_impact": [
|
|
150
|
+
{
|
|
151
|
+
"paths": [
|
|
152
|
+
"src/authorization.js"
|
|
153
|
+
],
|
|
154
|
+
"affects": [
|
|
155
|
+
"Webex web client code login, startup completion, and ready handling",
|
|
156
|
+
"QR device login and qRCodeLogin listeners",
|
|
157
|
+
"third-party login callback",
|
|
158
|
+
"logout redirect from WebexCore#logout"
|
|
159
|
+
],
|
|
160
|
+
"refresh_with": [
|
|
161
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party build:src"
|
|
162
|
+
],
|
|
163
|
+
"validate_with": [
|
|
164
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party test:unit"
|
|
165
|
+
],
|
|
166
|
+
"avoid_direct_edits": [
|
|
167
|
+
"dist"
|
|
168
|
+
],
|
|
169
|
+
"notes": "CSRF, PKCE, URL scrubbing, sessionStorage key names, event names, and eventType values are relied on across page loads and by the host."
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"paths": [
|
|
173
|
+
"src/index.js",
|
|
174
|
+
"src/config.js"
|
|
175
|
+
],
|
|
176
|
+
"affects": [
|
|
177
|
+
"registration as webex.authorization and its proxies",
|
|
178
|
+
"webex.config.credentials.clientType and refreshCallback"
|
|
179
|
+
],
|
|
180
|
+
"refresh_with": [
|
|
181
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party build:src"
|
|
182
|
+
],
|
|
183
|
+
"validate_with": [
|
|
184
|
+
"yarn workspace @webex/plugin-authorization-browser-first-party test:unit"
|
|
185
|
+
],
|
|
186
|
+
"avoid_direct_edits": [
|
|
187
|
+
"dist"
|
|
188
|
+
],
|
|
189
|
+
"notes": "The plugin namespace Credentials means config.js contributes to the shared credentials configuration."
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"evidence_rules": [
|
|
193
|
+
{
|
|
194
|
+
"claim_category": "command_name",
|
|
195
|
+
"sources": [
|
|
196
|
+
"package.json"
|
|
197
|
+
],
|
|
198
|
+
"requirement": "The script must exist in package.json scripts. test:integration is referenced by test but undefined.",
|
|
199
|
+
"notes": "Never cite the aggregate test script or test:browser as passing evidence."
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"claim_category": "import_path",
|
|
203
|
+
"sources": [
|
|
204
|
+
"src/index.js"
|
|
205
|
+
],
|
|
206
|
+
"requirement": "A binding is public only if exported from src/index.js.",
|
|
207
|
+
"notes": "Exports: default Authorization, Events, InitialAuthorizationCodeGrantOutcomes, config."
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"claim_category": "behavior_claim",
|
|
211
|
+
"sources": [
|
|
212
|
+
"src",
|
|
213
|
+
"test/unit/spec"
|
|
214
|
+
],
|
|
215
|
+
"requirement": "Ground every behavioral claim in source or test evidence.",
|
|
216
|
+
"notes": "Commit history is not an evidence source for this package. README.md is retained product documentation, not the behavioral authority (docs/adr/0001-retain-product-readme.md). The automation suite is skipped and is not evidence. URL builders, token storage, and grant errors are owned by the sibling package webex-core."
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"negative_guidance": [
|
|
220
|
+
{
|
|
221
|
+
"rule": "Do not rename or repurpose the sessionStorage keys oauth2-csrf-token and oauth2-code-verifier.",
|
|
222
|
+
"why": "A login started by one page load is completed by the next."
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"rule": "Do not send or log the raw email address.",
|
|
226
|
+
"why": "initiateLogin replaces it with its SHA-256 to reduce PII propagation."
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"rule": "Do not relax requireMatch on handleThirdPartyCallback.",
|
|
230
|
+
"why": "The third-party callback treats a missing stored CSRF token as a failure."
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"rule": "Do not treat README.md as the method, event, or error reference.",
|
|
234
|
+
"why": "Several README claims differ from code; see docs/adr/0001-retain-product-readme.md."
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"rule": "Do not run test:unit against a stale dist.",
|
|
238
|
+
"why": "The unit spec imports the package by name, which resolves main (dist/index.js)."
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"rule": "Do not infer a coverage threshold for this package.",
|
|
242
|
+
"why": "The developer confirmed no coverage gate applies; the legacy Jest config disables coverage collection."
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"confidence_policy": {
|
|
246
|
+
"high": {
|
|
247
|
+
"action": "update",
|
|
248
|
+
"expectation": "Source and unit test evidence both support the change, and the behavior has a case in test/unit/spec/authorization.js."
|
|
249
|
+
},
|
|
250
|
+
"medium": {
|
|
251
|
+
"action": "narrow-scope",
|
|
252
|
+
"expectation": "Only source evidence exists, for example the 400 grant-error mapping, the missing-code rejection, registration, or the logout redirect. Pin current behavior with a characterization test before modifying."
|
|
253
|
+
},
|
|
254
|
+
"low": {
|
|
255
|
+
"action": "noop",
|
|
256
|
+
"expectation": "Neither source nor tests settle the question. Stop and report the gap."
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"repository_topology": {
|
|
260
|
+
"main_entrypoints": [
|
|
261
|
+
{
|
|
262
|
+
"name": "package entry",
|
|
263
|
+
"path": "src/index.js",
|
|
264
|
+
"purpose": "Registers the plugin and re-exports the class, Events, InitialAuthorizationCodeGrantOutcomes, and config",
|
|
265
|
+
"notes": "No subpath exports."
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"workspace_packages": [
|
|
269
|
+
{
|
|
270
|
+
"name": "@webex/plugin-authorization-browser-first-party",
|
|
271
|
+
"paths": [
|
|
272
|
+
"src",
|
|
273
|
+
"test"
|
|
274
|
+
],
|
|
275
|
+
"notes": "One module; this SDD root is the package directory inside the webex-js-sdk monorepo."
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"source_surfaces": [
|
|
279
|
+
{
|
|
280
|
+
"name": "first-party browser authorization plugin",
|
|
281
|
+
"paths": [
|
|
282
|
+
"src"
|
|
283
|
+
],
|
|
284
|
+
"notes": "index.js, authorization.js, config.js. Specified at src/docs/README.md."
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "tests",
|
|
288
|
+
"paths": [
|
|
289
|
+
"test/unit/spec",
|
|
290
|
+
"test/automation"
|
|
291
|
+
],
|
|
292
|
+
"notes": "One unit spec run by Jest through webex-legacy-tools. The automation suite is describe.skip and not run by a package script."
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"generated_surfaces": [
|
|
296
|
+
{
|
|
297
|
+
"name": "build output",
|
|
298
|
+
"paths": [
|
|
299
|
+
"dist"
|
|
300
|
+
],
|
|
301
|
+
"generated_from": "src",
|
|
302
|
+
"refresh_with": "yarn workspace @webex/plugin-authorization-browser-first-party build:src",
|
|
303
|
+
"notes": "Produced by webex-legacy-tools. Do not edit by hand. The unit spec loads it."
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "repo-standards template map",
|
|
307
|
+
"paths": [
|
|
308
|
+
"../../../.sdd/templates/repo-standards"
|
|
309
|
+
],
|
|
310
|
+
"generated_from": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
311
|
+
"refresh_with": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package.",
|
|
312
|
+
"notes": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"validation_entrypoints": [
|
|
316
|
+
{
|
|
317
|
+
"name": "unit tests",
|
|
318
|
+
"command": "yarn workspace @webex/plugin-authorization-browser-first-party test:unit",
|
|
319
|
+
"scope": "test/unit/spec",
|
|
320
|
+
"notes": "jest via webex-legacy-tools --runner jest; run build:src first."
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "lint",
|
|
324
|
+
"command": "yarn workspace @webex/plugin-authorization-browser-first-party test:style",
|
|
325
|
+
"scope": "src",
|
|
326
|
+
"notes": "eslint via the local .eslintrc.js; src/authorization.js disables eslint at file level."
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"sync_paths": [
|
|
330
|
+
{
|
|
331
|
+
"source": "src/config.js",
|
|
332
|
+
"targets": [
|
|
333
|
+
"src/authorization.js"
|
|
334
|
+
],
|
|
335
|
+
"mechanism": "Manual; requestAuthorizationCodeGrant and refreshCallback must both use getClientAuthenticationOptions.",
|
|
336
|
+
"notes": "Change public and confidential client authentication together."
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"source": "WebexTools/repo-standards@d89a7fe59126ae3ad9bac9ca352aa7f12b4c85dc",
|
|
340
|
+
"targets": [
|
|
341
|
+
"../../../.sdd/templates/repo-standards"
|
|
342
|
+
],
|
|
343
|
+
"mechanism": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package.",
|
|
344
|
+
"notes": "The package holds no templates. It refers to the monorepo root snapshot at ../../../.sdd/templates/repo-standards through layout.monorepo_package.templates_root_path in .sdd/manifest.json. Refresh the root snapshot, not this package."
|
|
345
|
+
}
|
|
346
|
+
]
|
|
347
|
+
},
|
|
348
|
+
"folder_readme_contract": {
|
|
349
|
+
"required_sections": [
|
|
350
|
+
"purpose",
|
|
351
|
+
"boundaries",
|
|
352
|
+
"key-files",
|
|
353
|
+
"common-tasks"
|
|
354
|
+
],
|
|
355
|
+
"rules": [
|
|
356
|
+
"Orient the reader before describing detail.",
|
|
357
|
+
"Link to the module specification rather than duplicating it."
|
|
358
|
+
],
|
|
359
|
+
"example_policy": "Examples are allowed only when verified against src/ or test/.",
|
|
360
|
+
"fallback": "Omit a section rather than inventing content; report unresolved facts as gaps."
|
|
361
|
+
},
|
|
362
|
+
"regression_feedback_rules": [
|
|
363
|
+
{
|
|
364
|
+
"trigger": "A CSRF, PKCE, or URL-scrubbing check is weakened, or a secret is read without being removed from sessionStorage.",
|
|
365
|
+
"required_followups": [
|
|
366
|
+
"Add a case to test/unit/spec/authorization.js",
|
|
367
|
+
"Update INV-001, INV-003, or INV-006 in src/docs/README.md"
|
|
368
|
+
],
|
|
369
|
+
"notes": "Security invariants of the code flow and third-party callback."
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"trigger": "QR polling changes its event order, back-off, or timeout handling.",
|
|
373
|
+
"required_followups": [
|
|
374
|
+
"Add a fake-timer case to test/unit/spec/authorization.js",
|
|
375
|
+
"Update MOD-020 to MOD-023 and the State machine in src/docs/README.md"
|
|
376
|
+
],
|
|
377
|
+
"notes": "Hosts switch on eventType."
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"surface_owners": [
|
|
381
|
+
{
|
|
382
|
+
"surface": "module implementation and specifications",
|
|
383
|
+
"owner": "@webex/web-client",
|
|
384
|
+
"edit_boundary": "Owner per the monorepo .github/CODEOWNERS entry for packages/@webex/plugin-authorization-browser-first-party."
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"do_not_edit": [
|
|
388
|
+
"dist",
|
|
389
|
+
"../../../.sdd/templates/repo-standards"
|
|
390
|
+
],
|
|
391
|
+
"marker_scopes": {
|
|
392
|
+
"sdd": [
|
|
393
|
+
".sdd/manifest.json",
|
|
394
|
+
"src/docs/README.md",
|
|
395
|
+
"docs"
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
"fallback_rules": [
|
|
399
|
+
"When source and tests disagree, code is the referee and the disagreement is recorded rather than silently resolved.",
|
|
400
|
+
"When neither source nor tests settle a question, report it as a gap instead of inferring.",
|
|
401
|
+
"Commit history is not a valid rationale source for this package."
|
|
402
|
+
],
|
|
403
|
+
"downstream_context_pack": {
|
|
404
|
+
"required_human_surfaces": [
|
|
405
|
+
"README.md",
|
|
406
|
+
"docs/index.md",
|
|
407
|
+
"docs/architecture.md",
|
|
408
|
+
"src/docs/README.md"
|
|
409
|
+
],
|
|
410
|
+
"required_agent_operational_surfaces": [
|
|
411
|
+
"AGENTS.md",
|
|
412
|
+
"docs/specs/README.md"
|
|
413
|
+
],
|
|
414
|
+
"required_machine_readable_surface": ".sdd/manifest.json",
|
|
415
|
+
"recommended_machine_readable_sections": [
|
|
416
|
+
"public_interfaces",
|
|
417
|
+
"change_impact",
|
|
418
|
+
"evidence_rules",
|
|
419
|
+
"negative_guidance",
|
|
420
|
+
"confidence_policy",
|
|
421
|
+
"repository_topology",
|
|
422
|
+
"folder_readme_contract",
|
|
423
|
+
"regression_feedback_rules"
|
|
424
|
+
]
|
|
425
|
+
}
|
|
426
|
+
}
|