Uh oh!
There was an error while loading. Please reload this page.
Add canonical workspace baseline version authority - #1743
Conversation
zhiiw
commented
Aug 1, 2026
The baseline-protocol findings are addressed in
I am not treating a TypeScript brand or caller-provided Local validation is green: core/storage/runtime builds, changed-file Biome formatting, and 26 focused authority/storage tests. 中文说明
我没有用 TypeScript brand 或 caller 自报 本地验证通过:core/storage/runtime builds、变更文件 Biome formatting、authority/storage focused tests 26/26。 |
Summary
Add a baseline-only workspace authority backed by immutable RuntimeEvents and one atomic SQLite writer.
maka.workspace.epoch_opened@1and baseline-specificmaka.workspace.baseline_accepted@1facts.maka.workspace.version_accepted@1namespace available for real mutation, undo, rebaseline, and merge protocols.maka_workspace_authorityfrom ordinary Session creation/import and conversation lifecycle paths.runtime_workspace_version_authority@1; schema 8 adds a singleton durable storage-root binding.rootIdbefore logical state exists, and revalidate that binding in the same SQLite transaction that commits the two canonical facts and all three projections.Why
A managed Git workspace needs one durable answer to which baseline identity Maka accepted for an epoch. Git refs retain artifacts but do not own Runtime acceptance; mutable projections cannot be the source of truth.
RuntimeEvents remain the canonical causal facts. SQLite projections are disposable and continuously cross-checked against them.
Merge gate: verified artifact receipt
This authority remains package-internal and must not gain a production caller until the Baseline Open composition supplies a durable, typed, and re-verifiable receipt from the Git workspace owner. The foundation PR itself may merge independently because no public execution path can invoke the raw writer.
The current foundation proves fact shape, atomic persistence, arbitration, and rebuild behavior. It does not run Git and therefore cannot independently prove that a supplied commit/tree exists. Raw OIDs, a TypeScript brand, or a caller-provided
verified: trueflag are not acceptable substitutes for the receipt seam.Invariant and atomic boundary
For one baseline bundle, the epoch-opened fact, baseline-accepted fact, epoch projection, version projection, and head projection become visible together or not at all. Concurrent exact submissions converge; conflicting identities fail closed.
@maka/coreSqliteRuntimeStore; it is unavailable from the public package surfaceBEGIN IMMEDIATE ... COMMITtransactionScope limits
This PR intentionally does not:
The verified receipt contract and Baseline Open composition are the required next slices before this authority can become a production acceptance path.
Validation
中文说明
概要
新增 baseline-only Workspace Authority,以 immutable RuntimeEvents 为事实权威,并由一个 SQLite 专用原子 writer 提交。
maka.workspace.epoch_opened@1与 baseline-specificmaka.workspace.baseline_accepted@1。maka.workspace.version_accepted@1命名空间。maka_workspace_authority。rootId;该 binding 与两条 canonical facts、三张 projection 在同一 SQLite transaction 中重新校验并提交。合并硬门槛:verified artifact receipt
本 authority 保持 package-internal;Baseline Open composition 提供由 Git workspace owner 持久化、typed、可重读并可重新验证的 receipt 之前,不得拥有生产 caller。由于 raw writer 不存在 public execution path,本 foundation PR 本身可以独立合并。
当前 foundation 只证明事实形状、原子持久化、并发仲裁与 projection rebuild。它不执行 Git,因此不能独立证明 supplied commit/tree 真实存在。裸 OID、TypeScript brand 或 caller 自报
verified: true都不能替代 receipt seam。不变量与原子边界
同一个 baseline bundle 的 epoch-opened fact、baseline-accepted fact、epoch/version/head projection 只能一起可见或一起不可见。并发 exact submission 收敛,identity 冲突 fail closed。
@maka/corestrict contract 与 pure scannerSqliteRuntimeStore实现且不暴露在 package public surfaceBEGIN IMMEDIATE ... COMMIT明确不包含
verified receipt contract 与 Baseline Open composition 是本 authority 成为生产 acceptance path 之前的必需后续切片。
验证