Repository navigation
docs(contracts): draft C1 input artifact contracts - #34
Merged
Merged
Conversation
jamespud
marked this pull request as ready for review
October 22, 2026 14:56
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容与范围
CAS-9 C1-A 提出 DomainProfile、PersonaSpec、ContextManifest 的机器字段、身份、版本、签发、冻结和撤销契约,配套封闭 JSON Schema、五份结构样本及复用 C0/domain/validation 的独立检查器。样本含合成引用,不能作为可发布工件或人格行为通过证据。
本轮根据独立设计审阅,仅收敛 D-01~D-04,追加设计修订提交。PR 保留 Draft;未启动 C1-B/C1-C/C2,未注册真实 ReadSet 类型,未改 Rev4、PR #32/C0 契约、生产 FSM/编排/RAG/MySQL/授权/发送流程。
Base / Head
e35aac6755d17604591e31d568692103205435ea6a3f0286ed3288d5e79f1bbca198b29f567e1959861458fe4ef2a54d4f9b0ac8c07b9b9e2eeeb794codex/c1-input-contracts规范映射与设计收敛
read_set_snapshot/rset_;§6.4 补 C0 注册、独立 Golden/Adopt、旧 API/身份回归、反向依赖及先消费者后生产者的迁移计划原有三工件正文、required/optional/nullable、UTC 毫秒和精确量纲详见契约 §2–5;R0–R3 不可降级门槛、人格最低调查/弃权/纠错、依赖撤销及 legacy 边界均保留。正文先派生身份再取得外部批准;Manifest 不引用未来候选/ReadSet,Candidate 不反引自身确认/closure,完整性记录不反引未来 ReadSet,避免摘要循环。
§9 增加 READ-03 细化不变量与九项定向未来场景,未来矩阵共 30 项,全部 NOT RUN。静态设计和时序图不证明实际分布式协议成立。
本轮真实验证
GOCACHE=/tmp/magi-c1-go-build go run ../scripts/check-input-artifact-contract.go(backend):原有 5 结构正例、46 结构/C0 反例、5 身份/Adopt/版本变更检查通过;域分离、未注册 ReadSet 拒绝、非 canonical 存储拒绝仍成立。新增 14 项 D-04 结构检查通过:通用预算/窗口可超过参考值,三人格 v1 上限保持,零/负数拒绝。role_tool_calls=12失败;当前 Schema 同项通过。这只复现/修复结构限制,不是组合预算或授权行为验证。GOCACHE=/tmp/magi-c1-go-build go vet ../scripts/check-input-artifact-contract.go:通过。修订前
861458f的五个相关 Go 包与 C0 Python 跨语言 Golden 已通过,本轮未重跑;旧 Head 的 6/6 远端 CI 已由 GitHub API 核实成功。新 Head CI 以当前 checks 为准,不能继承旧 Head 成功。 未运行完整 backend/MySQL/生产服务或新协议并发/撤销/恢复测试。Findings / 放行与未完成边界
本轮修正 P2 通用预算混用;D-01/D-02 方向收敛,D-03 明确责任,未声称三项 P1 集成阻塞解除。设计自审覆盖摘要循环、候选交付记录、角色回执槽位、三终票共同 closure、独立高水位与 authority cutoff、提交恢复和 epoch/generation 竞争,详见 §10。
保留 Draft,供针对 D-01~D-04 的复核,不转 Ready、不合并。 如需改变 Rev4 门槛须另行 Design Change,本轮不推定批准。C1-B 可规划已批准的离线类型/验证器;独立 C1 Golden、组合预算语义、C1-C 实际注入/封存/依赖传播、版本化决策契约、C2 信任协议、C3/C4 出口与跨模块验收、人格/统计/SLA 均未交付。CAS-9 尚不满足完整契约冻结、相关决议接受与实施验收。
用户通过连接器独立确认 CAS-9 In Progress、CAS-10 Backlog;作者未取得认证读取,不将用户复核冒称为作者验证。本轮未提交 GitHub Review、修改 Issues/Linear 或启动其他实现分支。