Repository navigation
Expand file tree
/
Copy path.code-polishy.json
More file actions
284 lines (284 loc) · 9.07 KB
/
Copy path.code-polishy.json
File metadata and controls
284 lines (284 loc) · 9.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
{
"version": 4,
"project": {
"kind": "application",
"capabilities": ["frontend", "ui"]
},
"scope": {
"exclude": [],
"generated": [],
"entryPoints": [
"src/fixture-entry.ts",
"src/hover-entry.ts",
"src/gallery-entry.ts",
"src/index-entry.ts",
"scripts/freeze-protected-inputs.mjs",
"scripts/verify-lab-contract.mjs",
"scripts/verify-protected-inputs.mjs"
],
"development": [
"scripts/**",
"tests/**",
"playwright.config.ts",
"vite.config.ts",
"vite.hover.config.ts"
]
},
"quality": {
"allowComments": true
},
"documentation": {
"design": [
{
"path": "docs/design/lab-architecture.md",
"module": "lab"
},
{
"path": "docs/design/protected-inputs.md",
"sourcePaths": [
"scripts/freeze-protected-inputs.mjs",
"scripts/hash-lib.mjs",
"scripts/protected-inputs-lib.mjs",
"scripts/verify-protected-inputs.mjs"
]
}
]
},
"modules": [
{
"name": "lab",
"paths": [
"src/**",
"public/**",
"fixture.html",
"hover.html",
"gallery.html",
"index.html",
"workload-manifest.json",
"vite.config.ts",
"vite.hover.config.ts",
"playwright.config.ts",
"tsconfig.json",
"package.json",
".npmrc",
".node-version",
"scripts/**",
"receipts/**",
"pnpm-workspace.yaml"
]
}
],
"checks": [
{
"name": "lab-contract",
"provides": ["lab-contract"],
"argv": ["pnpm", "contract"],
"modules": ["lab"],
"runOn": ["check", "gate"],
"timeoutSeconds": 120
},
{
"name": "protected-inputs",
"provides": ["protected-inputs"],
"argv": ["pnpm", "integrity"],
"modules": ["lab"],
"runOn": ["check", "gate"],
"timeoutSeconds": 120
},
{
"name": "lab-build",
"provides": ["build"],
"argv": ["pnpm", "build"],
"modules": ["lab"],
"runOn": ["build"],
"timeoutSeconds": 600
}
],
"tests": {
"requiredKinds": ["browser"],
"ownership": [
{
"paths": ["tests/tier-one-fixtures.spec.ts"],
"module": "lab",
"focusedSuite": "lab-tier-one"
},
{
"paths": [
"tests/canvas-capture.spec.ts",
"tests/theme.spec.ts",
"tests/three-scenes.spec.ts"
],
"module": "lab",
"focusedSuite": "lab-tier-one",
"executionSuite": "lab-browser"
},
{
"paths": ["scripts/protected-inputs-lib.test.mjs"],
"module": "lab",
"focusedSuite": "lab-protected-inputs"
},
{
"paths": ["tests/hover.spec.ts"],
"module": "lab",
"focusedSuite": "lab-hover"
},
{
"paths": ["tests/hover-rules.unit.ts"],
"module": "lab",
"focusedSuite": "lab-hover-rules"
}
],
"suites": [
{
"name": "lab-tier-one",
"kind": "browser",
"scope": "module",
"modules": ["lab"],
"cost": "quick",
"argv": [
"pnpm",
"exec",
"playwright",
"test",
"tests/tier-one-fixtures.spec.ts"
],
"paths": ["tests/tier-one-fixtures.spec.ts"],
"runOn": ["focused", "recommended", "full"],
"timeoutSeconds": 300
},
{
"name": "lab-hover-rules",
"kind": "unit",
"scope": "module",
"modules": ["lab"],
"cost": "quick",
"argv": ["node", "--test", "tests/hover-rules.unit.ts"],
"paths": ["tests/hover-rules.unit.ts"],
"runOn": ["focused", "recommended", "full"],
"timeoutSeconds": 120
},
{
"name": "lab-protected-inputs",
"kind": "unit",
"scope": "module",
"modules": ["lab"],
"cost": "quick",
"argv": ["node", "--test", "scripts/protected-inputs-lib.test.mjs"],
"paths": ["scripts/protected-inputs-lib.test.mjs"],
"runOn": ["focused", "recommended", "full"],
"timeoutSeconds": 120
},
{
"name": "lab-hover",
"kind": "browser",
"scope": "module",
"modules": ["lab"],
"cost": "quick",
"argv": ["pnpm", "exec", "playwright", "test", "tests/hover.spec.ts"],
"paths": ["tests/hover.spec.ts"],
"runOn": ["focused", "recommended", "full"],
"timeoutSeconds": 300
},
{
"name": "lab-browser",
"kind": "browser",
"scope": "repository",
"cost": "expensive",
"argv": ["pnpm", "test:browser"],
"paths": [
"tests/canvas-capture.spec.ts",
"tests/theme.spec.ts",
"tests/three-scenes.spec.ts",
"tests/tier-one-fixtures.spec.ts",
"tests/hover.spec.ts"
],
"runOn": ["full"],
"timeoutSeconds": 900
}
]
},
"supplyChain": {
"minimumReleaseAgeDays": 30,
"preferredNewDependencyAgeDays": 90,
"auditLevel": "low",
"vulnerabilityAssessments": [
{
"id": "ghsa-68fv-2mgg-jv7q-unreachable",
"ecosystem": "pnpm",
"advisory": "GHSA-68fv-2mgg-jv7q",
"package": "source-map-js",
"affectedVersion": "1.2.1",
"scope": "pnpm-lock.yaml",
"severity": "high",
"status": "not-affected",
"basis": "unreachable",
"reason": "The only resolved caller is PostCSS 8.5.26 through Vite. Its input, previous-map and map-generator modules use SourceMapConsumer and SourceMapGenerator, never the vulnerable SourceNode.fromStringWithSourceMap API. Repository source has no SourceNode caller.",
"impact": "The unbounded generated-line loop is unreachable through the enabled build APIs. Build maps also originate in checked-in sources and locked tools, not a service accepting uploaded maps.",
"evidence": "https://github.com/riteofstring/browser-surface-lab/blob/main/docs/security/dependency-assessments.md",
"owner": "Codex",
"reviewed": "2026-10-10",
"expires": "2026-10-31"
}
],
"allowedLicenses": [
"0BSD",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"BlueOak-1.0.0",
"CC0-1.0",
"ISC",
"MIT",
"MIT-0",
"MPL-2.0",
"Python-2.0"
]
},
"exceptions": [
{
"id": "xterm-fixture-factory-complexity",
"check": "quality.complexity",
"path": "src/fixtures/xterm.ts",
"subject": "complexity",
"reason": "Pre-existing branching in protected Tier 1 workload source, found at Code Polishy adoption. Refactoring it would change a measured workload, which needs its own reviewed baseline change. Compensating control: pnpm contract, pnpm integrity, and the Tier 1 browser suite pin its behavior; new branching in this function is prohibited.",
"owner": "Claude",
"expires": "2027-01-03"
},
{
"id": "webgl-2-fixture-render-complexity",
"check": "quality.complexity",
"path": "src/fixtures/webgl-2.ts",
"subject": "complexity",
"reason": "Pre-existing branching in protected Tier 1 workload source, found at Code Polishy adoption. Refactoring it would change a measured workload, which needs its own reviewed baseline change. Compensating control: pnpm contract, pnpm integrity, and the Tier 1 browser suite pin its behavior; new branching in this function is prohibited.",
"owner": "Claude",
"expires": "2027-01-03"
},
{
"id": "fixture-lifecycle-command-complexity",
"check": "quality.complexity",
"path": "src/fixtures/lifecycle.ts",
"subject": "complexity",
"reason": "Pre-existing branching in protected Tier 1 workload source, found at Code Polishy adoption. Refactoring it would change a measured workload, which needs its own reviewed baseline change. Compensating control: pnpm contract, pnpm integrity, and the Tier 1 browser suite pin its behavior; new branching in this function is prohibited.",
"owner": "Claude",
"expires": "2027-01-03"
},
{
"id": "tier-one-manifest-assertion-complexity",
"check": "quality.complexity",
"path": "tests/tier-one-fixtures.spec.ts",
"subject": "complexity",
"reason": "Pre-existing per-fixture branching in expectManifestContract, found at Code Polishy adoption; splitting it is unrelated to tooling adoption. Compensating control: the function only asserts manifest values and runs in the quick lab-tier-one suite, so a broken branch fails visibly.",
"owner": "Claude",
"expires": "2027-01-03"
},
{
"id": "lab-contract-import-scan-depth",
"check": "quality.complexity",
"path": "scripts/verify-lab-contract.mjs",
"subject": "max-depth",
"reason": "Pre-existing nesting in the fixture import scan, found at Code Polishy adoption; restructuring the isolation enforcer is unrelated to tooling adoption. Compensating control: pnpm contract runs in every check and gate and fails closed on any disallowed import.",
"owner": "Claude",
"expires": "2027-01-03"
}
]
}