9.2 KiB
Personal-Weixin B3/B4 Owner Evidence Authorization
authorization_id: AUTH-CODEX-V2R1-PERSONAL-WEIXIN-B3-B4-EVIDENCE-20260716
owner_approved: true
executor: Codex isolated runner
foundation_implementation_commit: 2fcab6f5833a405a9a26683811600b6e5f1aa7b1
foundation_result_commit: 64a71b6199a8e2bd609ba145349e67b874888505
r10_lineage_commit: 74e603c0c943501110577dbe3c7f6a0b18b8ec7d
evidence_gate_commit: 62a4067cf7a462ebe7cf29524238bc5d0a70b813
upstream_audit_commit: b2f5f531019a70801444987dbb97dc1f69cf47de
production_baseline: V1R4C6
production_changed: false
release_status: paused
force_push_authorized: false
1. 授权结论
Owner 明确授权 Codex:
- 完成 B3 owner evidence packet;
- 在 vendor
client_id → authoritative message_id证据缺失时,采用 B4 quote-authority-disabled amendment; - B3、B4 均 PASS 后,按已有 exact allowlist 继续 B5–B7;
- B3–B7 全部 PASS 后才能开始 Release Preflight;
- Release Preflight PASS 后才允许 Canary;
- Codex 不得直接修改生产。
该授权不允许 Codex编造 raw-wire、credential、vendor 或 reviewer 证据。
2. B3 owner evidence 必须包含
B3 evidence manifest 必须引用上述五个权威提交,并包含以下五类证据。
A. Raw-wire evidence
至少包含:
raw_wire:
- direction: inbound
- direction: outbound
每项必须记录:
restricted_path:
restricted_sha256:
restricted_bytes:
redacted_path:
redacted_sha256:
captured_at:
credential_label: credential-a | credential-b
要求:
- unrestricted raw-wire 只能保存在 owner 批准的受限存储;
- Git 中只能提交 SHA-256、大小、受限路径引用及 redacted view;
- 不得提交 token、API key、OAuth code、sessionKey、cookie 或完整 credential;
- inbound 与 outbound 必须各至少一份; -两份 credential 都必须实际覆盖。
B. Authority map
必须提供 commit-safe authority map,明确:
vendor_message_id_field:
client_id_field:
client_id_authoritative: false
mapping_verified: true
Authority map 必须区分:
authoritative:
- verified inbound vendor message_id
non_authoritative:
- local client_id
- outbound correlation ID
- local sequence
- timestamp
- content hash
- outbound receipt ID
禁止把任一非权威值提升为 message authority。
C. 双 credential 证据
必须有精确两项:
credentials:
- label: credential-a
fingerprint_sha256:
secret_included: false
scope:
test_result: PASS
- label: credential-b
fingerprint_sha256:
secret_included: false
scope:
test_result: PASS
要求:
- 两个 fingerprint 必须不同;
- 不得提交 secret 原文;
- 两个 credential 必须各自通过实际测试;
- credential scope 必须明确。
D. Mode evidence
必须明确处于下列模式之一:
mode:
name: sandbox | shadow | restricted-capture
production_traffic: false
writes_production: false
capture_only: true
不得使用生产流量或写生产数据来补证据。
E. Reviewer evidence
必须由独立 reviewer 签署:
review:
reviewer:
independent_from_executor: true
decision: PASS
reviewed_manifest_sha256:
reviewed_at:
Reviewer 必须核对:
- raw-wire 哈希;
- redacted view;
- authority map; -两个 credential fingerprint;
- mode;
- manifest 完整 SHA-256。
3. B3 PASS 条件
只有以下全部成立才允许 B3 status: PASS:
raw_wire_inbound: PASS
raw_wire_outbound: PASS
dual_credential: PASS
authority_map: PASS
client_id_authoritative: false
mode_non_production: PASS
reviewer_independent: PASS
reviewer_decision: PASS
secrets_committed: false
production_changed: false
baseline_after: V1R4C6
release_status: paused
真实证据缺失时必须继续:
status: BLOCKED_EVIDENCE_REQUIRED
不得生成模拟证据代替 owner/vendor 证据。
4. B4 Owner Amendment
Owner 明确批准以下 B4 amendment:
{
"schemaVersion": 1,
"contract": "personal-weixin-b4-outbound-quote-authority-amendment",
"ownerApproved": true,
"lineage": {
"foundationImplementationCommit": "2fcab6f5833a405a9a26683811600b6e5f1aa7b1",
"foundationResultCommit": "64a71b6199a8e2bd609ba145349e67b874888505",
"r10LineageCommit": "74e603c0c943501110577dbe3c7f6a0b18b8ec7d",
"evidenceGateCommit": "62a4067cf7a462ebe7cf29524238bc5d0a70b813",
"upstreamAuditCommit": "b2f5f531019a70801444987dbb97dc1f69cf47de"
},
"vendorClientIdMessageIdEvidence": {
"status": "absent",
"clientIdPromotable": false
},
"authorityPolicy": {
"outboundQuoteAuthority": "disabled",
"clientIdRole": "non-authoritative-correlation-only",
"authoritativeMessageIdSources": [
"validated-inbound-raw-wire.vendor_message_id"
],
"quotedSendWithoutAuthoritativeMessageId": "fail-closed",
"plainOutboundWithoutQuoteAuthority": "allowed-only-by-existing-b4-allowlist",
"syntheticMapping": false,
"timestampFallback": false,
"localSequenceFallback": false,
"contentHashFallback": false,
"outboundReceiptFallback": false
},
"implementationConstraints": {
"scopeExpansion": false,
"exactAllowlistRequired": true,
"missingAllowlistStatus": "BLOCKED_SCOPE",
"productionChangeAuthorized": false,
"canaryAuthorized": false,
"tagAuthorized": false,
"forcePushAuthorized": false
},
"production": {
"baseline": "V1R4C6",
"changed": false,
"releaseStatus": "paused"
}
}
该 JSON 必须作为独立 control-plane amendment 提交。
5. B4 强制语义
B4 实现必须遵守:
client_id:
role: correlation-only
authoritative: false
vendor_message_id:
authoritative_only_when:
- observed in validated inbound raw-wire
- present in committed authority map
quoted_send:
without_authoritative_vendor_message_id: fail-closed
plain_outbound:
allowed_only_when:
- existing B4 exact allowlist permits it
- no quote/reply authority field is emitted
禁止:
client_id→message_idalias;- client ID hash fallback;
- timestamp fallback;
- local sequence fallback;
- content hash fallback;
- outbound receipt fallback;
- synthetic message ID; -“先发送后补 authority”。
6. B4 路径授权
该 amendment 不增加任何实现路径。
Codex必须先找到已有 B4 exact allowlist。
若不存在或不完整:
status: BLOCKED_SCOPE
不得由 Codex自行发明路径。
7. B5–B7 条件
只有 B3 和 B4 均有 qualifying PASS RESULT 后,才可继续 B5–B7。
每个阶段必须:
- 独立 branch;
- 独立 worktree;
- 已提交 exact allowlist;
- 一个非 merge implementation commit;
- 独立 RESULT;
- 依赖实际 F0 commit 与 immutable image digest;
- 不修改生产;
- 不 force push。
任一阶段缺少 exact allowlist:
status: BLOCKED_SCOPE
8. Release Preflight
只有以下全部 PASS 后才能开始:
F0: PASS
B3: PASS
B4: PASS
B5: PASS
B6: PASS
B7: PASS
R10_lineage: PASS
immutable_image_digest: present
gitleaks: PASS
rollback_contract: present
Preflight 不得创建 tag 或部署生产。
9. Canary
仅在 Release Preflight PASS 后授权一次 Canary。
Canary 必须:
- 使用固定 immutable image digest;
- 使用已验证 rollback target;
- 不修改生产 schema;
- 不暴露 secrets;
- 有明确成功指标;
- 有自动/立即 rollback 条件。
Canary 失败:
rollback: required
release_status: paused
production_baseline: V1R4C6
不得继续 production promotion。
10. Production 边界
Codex不得直接执行生产部署。
只有以下全部提交并核验后,Codex才可创建 deployment request:
F0_and_B3_B7: PASS
release_preflight: PASS
canary: PASS
immutable_release_digest: present
rollback_target: verified
rollback_procedure: verified
go_live_evidence: committed
实际 V2R1C0 部署只能由:
owner/admin GitOps release action
执行。
在该动作前:
production: V1R4C6
production_changed: false
release: paused
V2R1C0_tag: absent
必须保持不变。
11. Codex 下一步
立即执行顺序:
- 在现有 control branch 提交本授权文件;
- 提交 byte-exact B4 amendment;
- 检查 B3 packet 中是否已有真实 owner raw-wire、双 credential、authority map、mode 和 reviewer evidence;
- 有真实证据则完成 B3 manifest 与审核;
- 无真实证据则继续
BLOCKED_EVIDENCE_REQUIRED,明确缺失项; - B3 PASS 后按已有 exact allowlist执行 B3;
- B4 按 quote-authority-disabled 模式执行;
- B3/B4 PASS 后再检查 B5–B7;
- 不得跳到 Release Preflight、Canary 或生产。
本授权已解除 B4 vendor mapping 阻塞,但没有伪造或豁免 B3 owner evidence。