Repository navigation
Expand file tree
/
Copy pathdependency-policy.json
More file actions
396 lines (396 loc) · 13.7 KB
/
Copy pathdependency-policy.json
File metadata and controls
396 lines (396 loc) · 13.7 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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
{
"schemaVersion": 1,
"policyVersion": "2026-09-05",
"purpose": "Continuously detect version-channel-stable dependency candidates without turning freshness into automatic adoption.",
"stableRelease": {
"excludePrerelease": true,
"excludeDraftOrWithdrawn": true,
"nodeChannel": "latest-lts",
"requireSupportedUpstream": true,
"requireImmutableProductionPin": true
},
"cadence": {
"scheduledDetectionCron": "17 2 * * 1",
"scheduledDetectionMaximumDays": 7,
"securityAdvisoryCron": "43 2 * * *",
"securityAdvisoryMaximumHours": 24,
"exceptionReviewMaximumDays": 31,
"eolReviewMaximumDays": 92
},
"reviewState": {
"lastEolReview": "2026-10-29",
"eolReviewEvidence": "docs/dependency-lifecycle-review-2026-10-29.md"
},
"detectorQualification": {
"candidateLevel": "version-channel-stable",
"adoptionEvidenceStillRequired": [
"supported-upstream-and-eol",
"license-and-source-trust",
"kpanel-architecture-and-linux-support",
"behavior-contract-and-resource-impact",
"rollback-feasibility"
]
},
"adoptionLifecycle": {
"actionableScopes": [
"direct",
"foundation"
],
"transitiveOwnership": "owning-direct-dependency-or-reachable-security-path",
"deferralRequiresException": true,
"resolutionDefinition": "adopt, reject with evidence, or create a time-bounded exception",
"classes": {
"emergency-security": {
"evaluationStartMaximumDays": 1,
"decisionMaximumDays": 3,
"resolutionMaximumDays": 3,
"minimumVerification": "L2-or-L3-and-section-11-vulnerability-deadline"
},
"compatible-patch": {
"evaluationStartMaximumDays": 7,
"decisionMaximumDays": 14,
"resolutionMaximumDays": 30,
"minimumVerification": "L1-or-L2-by-impact"
},
"minor": {
"evaluationStartMaximumDays": 14,
"decisionMaximumDays": 30,
"resolutionMaximumDays": 60,
"minimumVerification": "L2"
},
"major-toolchain-base": {
"evaluationStartMaximumDays": 30,
"decisionMaximumDays": 90,
"resolutionMaximumDays": 90,
"minimumVerification": "L2-or-L3"
}
},
"batching": {
"compatiblePatch": "same ecosystem and atomic rollback boundary",
"minor": "same compatibility domain with explicit contract and resource comparison",
"majorToolchainBase": "one compatibility domain per candidate; coupled adapters may travel together",
"security": "do not wait for a routine batch when the vulnerability deadline is stricter"
}
},
"crossRepositoryReleaseLinkage": {
"schemaVersion": 1,
"states": [
"not-required",
"coupled",
"script-only"
],
"requiresExplicitDecision": true,
"repositories": {
"kpanel": {
"name": "kejilion/KPanel",
"versionSource": "VERSION"
},
"script": {
"name": "kejilion/sh",
"branch": "main",
"revisionSource": "commit-and-content-digest"
}
},
"decisionRules": {
"not-required": {
"when": "KPanel does not change or require a new or changed script-defined protocol, runtime action, host artifact, install/update path, external configuration, or embedded script content; an existing compatible contract is allowed",
"requiredEvidence": [
"candidate-diff-review",
"baseline-script-commit-and-digest",
"compatibility-check"
],
"kpanelReleaseAllowed": true,
"scriptRelease": "not-in-scope"
},
"coupled": {
"when": "KPanel changes or consumes a new or changed script-defined protocol, runtime action, host artifact, install/update path, external configuration, or embedded script content",
"requiredEvidence": [
"paired-change-set-id",
"script-commit-and-digest",
"root-cn-sync-check",
"script-smoke",
"kpanel-contract-tests",
"cross-repo-compatibility",
"paired-rollback"
],
"kpanelReleaseAllowed": "only-after-script-compatible-release",
"scriptRelease": "required",
"ifScriptNotReady": "block-kpanel-candidate-or-remove-dependent-scope"
},
"script-only": {
"when": "Only kejilion/sh changes and the supported KPanel contract remains compatible without KPanel code, image, or configuration changes",
"requiredEvidence": [
"script-commit-and-digest",
"root-cn-sync-check",
"script-smoke",
"supported-kpanel-compatibility",
"script-rollback"
],
"kpanelReleaseAllowed": false,
"scriptRelease": "required",
"kpanelVersionChange": false
}
},
"requiredDeliveryFields": [
"scriptLinkageState",
"changeSetId",
"baselineScriptRevision",
"baselineScriptSha256",
"candidateScriptRevision",
"candidateScriptSha256",
"compatibilityEvidence",
"releaseDecision"
],
"releaseBlockers": [
"coupled-without-script-compatible-revision",
"coupled-without-paired-evidence",
"not-required-without-baseline-script-proof",
"script-only-with-kpanel-changes",
"state-missing-or-contradictory"
]
},
"requiredGroups": [
"go-modules",
"npm-packages",
"go-toolchain",
"node-toolchain",
"docker-base-images",
"dockerfile-frontend",
"github-actions",
"security-tools",
"managed-kejilion-script",
"security-audit-skill",
"code-review-assistant"
],
"groups": [
{
"id": "go-modules",
"scope": "direct-and-transitive",
"manifests": [
"go.mod",
"go.sum",
"packaging/browser/tor-helpers/conjure/go.mod",
"packaging/browser/tor-helpers/conjure/go.sum",
"packaging/browser/tor-helpers/lyrebird/go.mod",
"packaging/browser/tor-helpers/lyrebird/go.sum"
],
"detector": "go-list"
},
{
"id": "npm-packages",
"scope": "production-and-development-direct-and-transitive",
"manifests": [
"web/package.json",
"web/package-lock.json",
"packaging/release-browser/package.json",
"packaging/release-browser/package-lock.json"
],
"detector": "npm-outdated-all"
},
{
"id": "go-toolchain",
"scope": "compiler-and-build-runtime",
"manifests": [
"go.mod",
"Dockerfile",
".github/workflows/ci.yml",
".github/workflows/release.yml",
".codex-workflows"
],
"detector": "go-stable-releases"
},
{
"id": "node-toolchain",
"scope": "latest-supported-lts",
"manifests": [
"web/package.json",
"Dockerfile",
".github/workflows/ci.yml",
".github/workflows/release.yml"
],
"detector": "node-lts-releases"
},
{
"id": "docker-base-images",
"scope": "build-images-and-pinned-index-digests",
"manifests": [
"Dockerfile",
"packaging/browser/tor.Dockerfile"
],
"detector": "dockerfile-base-images"
},
{
"id": "tor-browser-component",
"scope": "optional-browser-runtime-and-base-image",
"manifests": [
"packaging/browser/tor.Dockerfile",
"internal/browsercomponent/tor_download.go"
],
"detector": "tor-release-index-and-docker-hub"
},
{
"id": "dockerfile-frontend",
"scope": "stable-version-and-pinned-digest",
"manifests": [
"Dockerfile"
],
"detector": "docker-hub-tags"
},
{
"id": "github-actions",
"scope": "all-workflow-actions",
"manifests": [
".github/workflows"
],
"detector": "github-releases"
},
{
"id": "security-tools",
"scope": "govulncheck-and-trivy",
"manifests": [
"Makefile",
".github/workflows/ci.yml",
".github/workflows/release.yml",
"scripts/security-scan.sh"
],
"detector": "github-releases",
"components": {
"trivy": {
"repository": "aquasecurity/trivy",
"currentVersion": "0.74.0",
"pinnedDigest": "sha256:62b1e65e8869bc4b4c6aa4fa2b21595256c7c2f6018a9d9ad61caf87187c1969"
},
"govulncheck": {
"repository": "golang/vuln"
}
}
},
{
"id": "managed-kejilion-script",
"scope": "upstream-commit-and-content-digest",
"manifests": [
"Dockerfile",
"docs/external-config-sources.md"
],
"detector": "github-branch-head",
"repository": "kejilion/sh",
"branch": "main"
},
{
"id": "security-audit-skill",
"scope": "trust-boundary-audit-skill-origin",
"manifests": [
".codex-workflows/security-boundary-audit.workflow.yaml",
".governance/security-audit/README.md"
],
"detector": "github-commits",
"components": {
"cloudflare/security-audit-skill": {
"repository": "cloudflare/security-audit-skill",
"pinnedCommit": "c1c8a8c1471069fb0e188eeaff69b8e8db6564a8",
"adoptionPolicy": "optional-candidate-tool; upstream checks are opt-in and have no adoption deadline; upgrade requires pinned compatibility checks and a separate governance commit, not a product audit (PROJECT_RULES 5.2/5.4)"
}
}
},
{
"id": "code-review-assistant",
"scope": "delegation-mode-line-review-cli",
"manifests": [
"scripts/ocr-delegate.mjs",
".opencodereview/rule.json",
".codex-workflows/ocr-line-review.workflow.yaml",
".governance/ocr-review/README.md"
],
"detector": "github-releases",
"components": {
"@alibaba-group/open-code-review": {
"repository": "alibaba/open-code-review",
"pinnedVersion": "1.12.11",
"pinnedCommit": "a758d9cbfb689937c7857ad64b2dd66adb58c0c2",
"adoptionPolicy": "candidate-signal-only; upgrade requires the canary replay in .governance/ocr-review/README.md on the new version and a separate governance commit (PROJECT_RULES 5.2/5.5)"
}
}
}
],
"adoptionClasses": [
{
"id": "emergency-security",
"criteria": "actively exploited, withdrawn, or reachable critical/high vulnerability",
"default": "immediate-triage-and-fix-or-mitigate",
"minimumVerification": "L2-or-L3"
},
{
"id": "compatible-patch",
"criteria": "stable semantic patch within the supported compatibility line, including foundation components",
"default": "follow-after-change-aware-verification",
"minimumVerification": "L1-or-L2-by-impact; foundation components keep an L2-or-L3 floor"
},
{
"id": "minor",
"criteria": "stable semantic minor without a declared breaking contract, including foundation components",
"default": "batch-and-adopt-after-benefit-and-compatibility-evidence",
"minimumVerification": "L2; foundation components keep an L2-or-L3 floor"
},
{
"id": "major-toolchain-base",
"criteria": "major version or non-semver foundation change such as an immutable digest, action pin, or managed script revision",
"default": "isolated-upgrade-task-with-explicit-decision",
"minimumVerification": "L2-or-L3"
},
{
"id": "prerelease",
"criteria": "alpha, beta, rc, nightly, canary, or preview",
"default": "do-not-adopt-outside-an-explicit-experiment",
"minimumVerification": "isolated-experiment"
}
],
"exceptionRequiredFields": [
"component",
"currentVersion",
"candidateVersion",
"reason",
"securityAndProductImpact",
"mitigation",
"owner",
"reviewDate",
"exitCondition",
"rollbackPoint"
],
"exceptions": [
{
"component": "typescript",
"currentVersion": "6.0.3",
"candidateVersion": "7.0.2",
"reason": "2026-11-19 re-evaluation: TypeScript 7.0.2 and the latest stable vue-tsc 3.3.14 still fail before checking KPanel's Vue sources because TypeScript 7 does not export typescript/lib/tsc. The archived dual-compiler experiment still checks Vue with TypeScript 6.",
"securityAndProductImpact": "The locked web npm audit reports zero advisories. The direct TypeScript 7 replacement blocks the required Vue typecheck and therefore the production web build.",
"mitigation": "Keep TypeScript 6.0.3 pinned, run the existing typecheck/build gates, and retain the TypeScript 7 signal in every freshness report.",
"owner": "KPanel base maintenance",
"reviewDate": "2026-12-18",
"exitCondition": "A supported Vue typecheck path for TypeScript 7 passes KPanel typecheck, tests, scene-pack checks and production build without disabling checks.",
"rollbackPoint": "9c5be9c293f98ad9bce260a4562e28743951b105",
"previousReviewDate": "2026-11-28",
"reviewedAt": "2026-11-19T07:32:54Z",
"reviewEvidence": {
"baseCommit": "f656291688401a7e5232f97659810d98ff0c95c8",
"node": "v24.22.1",
"platform": "win32",
"typescript": "7.0.2",
"vueTsc": "3.3.14",
"command": "node node_modules/vue-tsc/bin/vue-tsc.js --noEmit --project <KPanel web tsconfig>",
"observed": "Exit 1, ERR_PACKAGE_PATH_NOT_EXPORTED for typescript/lib/tsc before typechecking.",
"logSha256": "a136f10c271b7733c3766ed12fd83e2151689989c435bde661ad0e32712033f3",
"lockSha256": "d941e778d4f678990815db9ce28b3027e24515bed8b6ff92db18beee4c6c8927",
"vueTscRelease": "https://github.com/vuejs/language-tools/releases/tag/v3.3.14",
"upstreamCompatibilityIssue": "https://github.com/vuejs/language-tools/issues/6124"
}
}
],
"automationBoundary": {
"automaticDetection": true,
"automaticReport": true,
"automaticSecurityAdvisoryCheck": true,
"automaticMainCommit": false,
"automaticRelease": false,
"automaticProductionDeployment": false
}
}