mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-05 09:39:21 +08:00
feat(catalog): 落地正式版根通知、精确提交例外与行为安全复审门控 (#388)
将正式版根通知、精确提交许可例外与行为安全复审门控写入策略文档、Schema 与审计脚本。
This commit is contained in:
1 parent
d1123e67b5
commit
9fa7f88ef1
4 files changed
+202
No files matched your search
@@ -81,6 +81,11 @@
|
||||
"sourceRef": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
||||
"clientCommit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
||||
"clientTree": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
||||
"clientReleaseTag": {
|
||||
"type": "string",
|
||||
"description": "Optional shipped official DesireCore release tag (e.g. v10.0.214) verified to include clientCommit without unverified staging/install drift.",
|
||||
"pattern": "^v\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$"
|
||||
},
|
||||
"observedAt": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$" },
|
||||
"noticeRootPath": { "type": "string", "minLength": 1 },
|
||||
"noticeSha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
||||
@@ -151,6 +156,36 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"acceptedExactPinLicenseException": {
|
||||
"type": "object",
|
||||
"description": "Exact-pin human license exception for entries without a standalone LICENSE file (e.g. one-line README MIT declaration). Never inherited automatically across snapshots: fromRef/toRef must match the audited old and new pins, evidenceSha256 must match the file bytes at toRef, and reviewDoc must point to a repo-relative review document under docs/.",
|
||||
"additionalProperties": false,
|
||||
"required": ["fromRef", "toRef", "evidencePath", "evidenceSha256", "reviewDoc"],
|
||||
"properties": {
|
||||
"fromRef": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
||||
"toRef": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
||||
"evidencePath": { "type": "string", "minLength": 1 },
|
||||
"evidenceSha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
||||
"reviewDoc": { "type": "string", "minLength": 1 }
|
||||
}
|
||||
},
|
||||
"acceptedBehavioralSecurityReview": {
|
||||
"type": "object",
|
||||
"description": "Exact-pin read-only behavioral review for updates touching credentials, browser cookies/consent, authorization/network boundaries, or .skillignore inside the install scope. Bound to fromRef/toRef, a repo-relative reviewDoc under docs/, and the reviewedPaths list. Does not extend to later pins and is not a security certification or runtime acceptance.",
|
||||
"additionalProperties": false,
|
||||
"required": ["fromRef", "toRef", "reviewDoc", "reviewedPaths"],
|
||||
"properties": {
|
||||
"fromRef": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
||||
"toRef": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
||||
"reviewDoc": { "type": "string", "minLength": 1 },
|
||||
"reviewedPaths": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"uniqueItems": true,
|
||||
"items": { "type": "string", "minLength": 1 }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
@@ -169,6 +204,14 @@
|
||||
{
|
||||
"if": { "required": ["acceptedDescriptionAndLocales"] },
|
||||
"then": { "required": ["reviewedBy", "reviewedAt", "notes"] }
|
||||
},
|
||||
{
|
||||
"if": { "required": ["acceptedExactPinLicenseException"] },
|
||||
"then": { "required": ["reviewedBy", "reviewedAt", "notes"] }
|
||||
},
|
||||
{
|
||||
"if": { "required": ["acceptedBehavioralSecurityReview"] },
|
||||
"then": { "required": ["reviewedBy", "reviewedAt", "notes"] }
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user