Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0253ef2
fix(quota): close lost execution attempts without replacement delivery
cocolord Nov 20, 2026
a59b5e7
fix(quota): require complete proof for execution-loss readback
cocolord Nov 20, 2026
85a3d28
fix(quota): keep execution-loss authority on the lazy path
cocolord Nov 20, 2026
c43a99e
test(quota): follow the relocated execution-loss qualifier
cocolord Nov 20, 2026
7feb9bc
style(quota): normalize closeout record file ending
cocolord Nov 20, 2026
b6f784e
merge: integrate current steward recovery without widening administra…
cocolord Nov 20, 2026
1537e6a
fix(quota): retain original preparation through native recovery
cocolord Nov 21, 2026
59bc287
merge: integrate recovery fixtures with the TypeScript authority owner
cocolord Nov 21, 2026
99eebb9
fix(quota): qualify semantic writeback as an independent operation
cocolord Nov 21, 2026
71a8ac9
merge: preserve atomic settlement and receipt-bound recovery
cocolord Nov 21, 2026
09a6c50
fix(quota): preserve the original semantic admission source
cocolord Nov 21, 2026
a2c303c
fix(quota): retain exact negative checkpoints and readonly recovery
cocolord Nov 21, 2026
914a553
Merge latest main report candidate recovery
cocolord Nov 21, 2026
83812c4
fix(turn): retain native admission through exact recovery and writeback
cocolord Nov 21, 2026
c0a6a14
merge: retain native recovery owners with latest main
cocolord Nov 21, 2026
08faeb0
fix(recovery): preserve selection and semantic operation scopes
cocolord Nov 21, 2026
28c7992
fix(recovery): resume validated report checkpoints through strict ins…
cocolord Nov 21, 2026
3dbb541
Merge main into receipt-bound recovery while preserving original admi…
cocolord Nov 21, 2026
6e24f22
Merge main governance result isolation into receipt-bound recovery
cocolord Nov 21, 2026
3a838b2
Merge origin/main to preserve runtime transport and Turn recovery con…
cocolord Nov 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions docs/architecture/rfcs/monorepo-distribution-split-v0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4796,3 +4796,105 @@ view shows its independently checked result in the same conversation.
- **Boundary:** this is a source wiring repair. Installed Core and composition
qualification, interrupted original-Task recovery, complete context/closure,
actual models, costs, full R1/M3 and C1 cutover remain separate acceptance.

### 2026-11-20 — Close a lost execution attempt without replacement delivery

- **Proposal:** [#9153](https://github.com/loopx-project/loopx/pull/9153).
- **Gap:** a replacement task lease cannot authorize the original prepared
Turn's business writeback. Repeating the same work guard can therefore leave
the original receipt open without a legal recovery operation.
- **Delta:** the explicit administrative closeout reuses the TS settlement,
Goal lifetime and File/SQLite provider owners. It preserves the original
identity and prepared proof, qualifies a distinct current control writer,
and records only blocked no-spend evidence. Its immutable Run recovers
missing tails within the same store identity; replay requires a fresh control
proof. Ordinary writeback and pure historical readback keep their boundaries.
- **Resume authority:** later receipts and native resume do not replace the
original prepared admission. Remaining execution effects in the same generation use
ephemeral current-CAS qualification from the single TS owner without
rewriting original proof/version; a different generation's frozen report
gains no old-Turn business completion authority. Every effect rereads its owning
authority, and execution-loss no-spend closeout still
compares the original admission with the current control writer.
Alias-only legacy prepared Turn bindings retain their bounded compatibility;
they do not certify administrative work admission. Pending terminal effects
and committed replay reuse the existing journal/settlement owner: execute
only the original remaining effect, repair a proven missing receipt, or
return existing results without a new effect. After accepted durable writeback,
pending quota spend uses the existing accounting owner and journal-authorized
recovery without requesting execution authority or repeating business effects.
TS-owned cleanup retains an admitted Turn's original lease while closeout is
owed; frozen-report recovery qualifies and renews that same generation.
Selection-recovery governance probes acquire no report business lease;
existing TS admission must permit the report before its preparation acquires one.
Historical generation conflicts
reject, and validated causal links preserve the original prepared revision.
- **Semantic writeback scope:** an explicit semantic closeout independently
qualifies the actual Run, original receipt/Goal/Todo/Turn, current generation,
progress and Vision/checkpoint in TS. Exact supersession allows only the
original semantic writeback; business resume still rejects it. A Todo-bound
replan without a business lease proves its selected obligation and semantic
evidence. Required preparation without an original positive proof rejects.
An ordinary typed blocked gap with exact live preparation preserves the
Vision owner's genuine negative checkpoint, including `missing_required`;
it does not claim satisfied acceptance. Every builder-owned field and its
presence must match the actual inputs. Independently appended acceptance-gap
diagnostics remain read-only and grant no authority. Accountable delivery,
retired writeback and no-business obligation discharge retain their satisfied
checkpoint requirements.
The scope grants no execution lease. The supported writer rereads inside the
shared maintenance marker and retains Goal/source ownership through JSON,
Markdown and index durability; direct provider writes bypassing the marker
remain outside that guarantee.
Uncaused repeats preserve the complete typed review/capability source and
earliest admission; the same obligation id cannot authorize a source rewrite.
Integration remains held for final writeback of aggregate replan duties
whose original receipt has no scalar review source. Early and final
qualification must share a complete canonical-source reader and the existing
TS semantic owner; a caller-authored obligation or a digest-only snapshot
cannot replace that provenance. This unresolved path is not qualified by
passing claim, report, cached-result or TypeScript controls.
- **Recovery readback:** a frozen report retains the typed original-lease
refusal. An optional, default-off settlement attachment verifies its original
owner, identity and journal before providing journal and task-lease inspection
commands. Missing or conflicting evidence withholds the commands. The
receiver records an idempotent local notice and the same health packet;
inspection grants no execution or administrative write authority. Modern
positive prepared admission may explain the existing explicit administrative
closeout and its separate current-control-writer requirement; bounded legacy
evidence supports inspection only.
- **Validated report checkpoint:** an open Todo with a consistent in-progress
journal, complete validation prefix and cached material result may continue
only its original durable writeback without a model. Compact inspection
binds the Goal, Agent, Todo, Turn and inspected key to the packet headers
and recorded passed task receipt. The executor's full result validation and
original saved-generation lease qualification still precede business effects.
Python transport accepts the old inspection shape or the strict paired
optional fields; it neither decides continuation nor supplies authority.
- **Fresh native admission:** a new native Turn records its own genuine typed
work admission before Host execution. The shared owner checks prior debt
before preparation and rereads it with current CAS at publication. A saved
candidate supplies content evidence; it cannot borrow the original Turn's
execution proof or clear its debt. Freeze and replay follow the new Turn's
admission, and later recovery and cleanup retain that Turn's identity.
An ordinary registry's exact GoalRef requires its actual persisted instance
and registry/resource witnesses; a nonempty ref does not activate the
SourceSession runtime. Callers without a ref retain their bounded alias
ownership. Historical readback preserves the original journal/receipt owner
rather than substituting the current actor's ref.
Ordinary exact journal checkpoints reuse the same typed native registry
witnesses, bound to the original settlement identity and canonical journal
path. Checkpoint persistence does not grant Host execution authority.
Nested read-only replan projections reuse held native metadata while retaining
original receipt and journal identities. Native writeback verifies the actual
borrowed registry/index scope inside the existing maintenance guard before
avoiding duplicate lock acquisition; source reread and Stop checks remain.
- **Source evidence:** CLI tests cover both local providers, stale/foreign
proofs, ordinary parity and zero completion/debit. Recovery tests inject
interruption after JSON, Markdown, index and receipt durability. SourceSession
coverage uses typed-owner history plus the administrative CLI; its generic
Todo/quota entry remains unavailable.
- **Boundary:** this is an R1 recovery proposal aligned with C1's single TS
owner. Installed Core, C1 composition, the original ten requirements and full
R1/M3 regression remain independent acceptance; earlier failures and budgets
retain their status.
78 changes: 78 additions & 0 deletions docs/architecture/rfcs/monorepo-distribution-split-v0.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3703,3 +3703,81 @@ workspace 批准和脚本模型工作。桌面视图在采用检查后显示原
- **边界:**本次是源码接线修复。Installed Core 与组合资格、被中断原 Task 的
恢复、完整 context/closure、真实模型、成本、完整 R1/M3 及 C1 cutover 仍是
独立验收。

### 2026-11-20 — 收尾失去的执行尝试,不借用替代执行交付

- **提案:**[#9153](https://github.com/loopx-project/loopx/pull/9153)。
- **缺口:**替代 task lease 不能授权原 prepared Turn 的业务写回。重复同一个
work guard 会让原收据持续开放,却没有合法的恢复操作。
- **增量:**显式行政收尾复用 TS settlement、Goal lifetime 与 File/SQLite
provider owner。保留原 identity/prepared proof,独立核验当前 control writer,
仅记录 blocked 免扣额证据。不可变 Run 在同一 store identity 内恢复缺失尾部;
重放仍须 fresh control proof。普通写回与纯历史回读保留各自边界。
- **恢复权限:**原 prepared admission 不被后续收据或 native resume 替换。
同 generation 的 remaining execution effects 使用单一 TS owner 的 ephemeral 当前 CAS
资格,不重写原 proof/version;不同 generation 的 frozen report 不能取得旧
Turn 业务完成权。每个 effect 边界重新读取对应 owner 的 authority,
失去执行的原 Turn 仍以原 admission 对比当前 control writer 做免扣额收尾。
仅 alias 的 legacy prepared Turn binding 保留有限兼容,不据此证明行政 work
admission。pending terminal effect 与已提交重放复用既有 journal/settlement
owner:只执行原剩余 effect、修复已证明缺失的收据,或不执行新 effect 而返回
原结果。durable writeback 被接受后,pending quota spend 使用既有记账 owner
与 journal 授权的恢复,不请求 execution authority 或重跑业务 effect。
TS-owned cleanup 在 admitted Turn 欠收尾时保留原 lease;frozen-report 恢复
核验并续租同一 generation。selection-recovery governance probe 不获取
报告业务 lease;既有 TS admission 允许报告后,才在 preparation 前获取。
历史 generation 冲突拒绝,已核验因果链接保留
原 prepared revision。
- **语义写回范围:**显式 semantic closeout 在 TS 内独立核验实际 Run、原
receipt/Goal/Todo/Turn、当前 generation、progress 与 Vision/checkpoint。
Exact supersede 只允许原 semantic writeback,business resume 仍拒绝。
无业务 lease 的 Todo-bound replan 须证明 selected obligation 与语义证据;
要求 preparation 却缺少原 positive proof 时拒绝。持有 exact live preparation
的普通 typed blocked gap 保留 Vision owner 的真实 negative checkpoint,
包括 `missing_required`,不宣称验收满足。所有 builder-owned 字段及其存在性
必须与实际输入一致;独立追加的 acceptance-gap 诊断仅供读取,不授予权限。
Accountable delivery、retired writeback 与无业务 obligation discharge 保留
satisfied checkpoint 要求。该 scope 不授予 execution
lease。受支持 writer 在共享 maintenance marker 内重新读取,并持有 Goal/source
ownership 直到 JSON、Markdown、index 持久化;绕过 marker 的直接 provider
写仍不属于此保证。
无因果链接的重复记录保留完整 typed review/capability 来源与最早准入;相同
obligation id 不能授权来源改写。
原 receipt 没有 scalar review source 的 aggregate replan duty,其最终写回
仍阻塞整合。早期与最终资格核验必须共用完整 canonical-source reader 和既有
TS semantic owner;caller 自行构造的 obligation 或只有 digest 的 snapshot
不能替代来源证明。领取、报告、缓存结果或 TypeScript 控制通过,不构成这条
未解决路径的资格。
- **恢复回读:**frozen report 保留 typed 原租约拒绝。默认关闭的可选 settlement
attachment 核验原 owner、identity 与 journal 后,仅提供 journal 与 task-lease
检查命令;证据缺失或冲突时不提供命令。receiver 记录幂等的本地提示与同一
health packet;检查不授予 execution 或行政写权限。现代 positive prepared
admission 可以说明既有显式行政收尾及其独立的当前 control-writer 要求;
有限 legacy 证据仅支持检查。
- **已验证报告 checkpoint:**开放 Todo 的 in-progress journal 若一致、具备
完整 validation prefix 和缓存 material result,仅可在不调用模型的情况下
继续原 durable writeback。compact inspection 将 Goal、Agent、Todo、Turn
与被检查 key 绑定到 packet header 和已记录的 passed task receipt;业务
effect 前仍须通过 executor 完整结果验证和原 saved-generation lease 资格。
Python transport 仅接受旧 inspection shape 或严格成对的可选字段,不决定
continuation,也不提供权限。
- **首次 native 准入:**新 native Turn 在 Host 执行前记录自己的真实 typed
work admission。共享 owner 在 preparation 前检查原债务,并在 publication
时连同当前 CAS 复读。saved candidate 仅提供内容证据,不能借原 Turn 的
执行证明或消除原债务。freeze、replay 发生在新 Turn 准入后,后续恢复与
cleanup 保持该 Turn 的身份。普通 registry 的 exact GoalRef 必须由真实
持久 instance 及 registry/resource witness 证明;非空 ref 不意味着激活
SourceSession runtime。没有 ref 的 caller 保留有限 alias ownership。
历史回读沿原 journal/receipt owner,不以当前 actor 的 ref 替换。
普通 exact journal checkpoint 复用同一 typed native registry witness,绑定
原 settlement identity 与 canonical journal 路径;checkpoint 持久化不授予
Host 执行权限。
嵌套的只读 replan projection 复用已持有的 native metadata,保留原 receipt
与 journal 身份。native writeback 在既有 maintenance guard 内验证实际借用的
registry/index scope 后,避免重复获取同一锁;source 重读和 Stop 检查保留。
- **源码证据:**CLI 测试覆盖两个本地 provider、stale/foreign proof、普通路径
parity 与零 completion/debit;恢复测试在 JSON、Markdown、index 与 receipt
持久化后注入中断。SourceSession 范围是 typed-owner history 加行政 CLI,
其通用 Todo/quota 入口仍不可用。
- **边界:**这是与 C1 单一 TS owner 对齐的 R1 恢复提案。Installed Core、C1
组合、原十项要求与完整 R1/M3 回归仍须独立验收;保留既有失败与预算的状态。
Loading
Loading