feat(storage): bind and cancel managed dependency admission - #4
Closed
zhiiw wants to merge 10 commits into
Closed
Conversation
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 9, 2026 03:00
f57dd31 to
c400560
Compare
zhiiw
force-pushed
the
codex/managed-admission-cancellation-authority
branch
from
August 9, 2026 03:00
22b0bd2 to
ba2ea90
Compare
zhiiw
force-pushed
the
codex/managed-admission-cancellation-authority
branch
3 times, most recently
from
August 9, 2026 06:21
878b222 to
2ba2499
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 10, 2026 01:38
a656397 to
e642020
Compare
zhiiw
force-pushed
the
codex/managed-admission-cancellation-authority
branch
from
August 10, 2026 01:38
91091a6 to
bda750e
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 10, 2026 06:59
e642020 to
78b0150
Compare
zhiiw
force-pushed
the
codex/managed-admission-cancellation-authority
branch
2 times, most recently
from
August 10, 2026 07:14
7f74b3d to
f92c4c3
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
2 times, most recently
from
August 16, 2026 03:58
c4fa57b to
b6a9d2f
Compare
zhiiw
force-pushed
the
codex/managed-admission-cancellation-authority
branch
3 times, most recently
from
August 16, 2026 04:19
9c25870 to
090035d
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 23, 2026 05:24
59f8384 to
9f1418b
Compare
zhiiw
force-pushed
the
codex/managed-admission-cancellation-authority
branch
from
August 23, 2026 05:24
090035d to
6683551
Compare
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.
Summary
Binds attested dependency environments to managed workspace execution and makes admission lifecycle authoritative across storage owners. This slice owns dependency binding, canonical
node_modulesrouting, dependency singleflight, abandoned-publication replacement, baseline admission cancellation, and owner drain.Primary invariant
Only an owner-bound, cancellable, and drainable managed admission may issue an execution scope. Cancellation or Host drain must prevent scope issuance or revoke the abandoned acquisition, and a new caller must never inherit a previous caller's aborted singleflight publication.
Verification
Focused tests cover source HEAD/tree drift on reopen, shared publications, last-waiter abort/new-waiter races, baseline lock cancellation, immediate cancellation before scope issuance, owner drain, and canonical
node_modulesrouting. Glob coverage now uses the real worker contract: dependency Glob results are relative to the routed cwd and are reconstructed under the caller's logicalnode_modules/**root.Stack
中文说明
本切片把 dependency execution binding 与 admission cancellation 收敛到同一个 storage owner:只有经过 canonical source baseline、dependency lease 和取消检查后,才能签发可撤销 execution scope。
本轮补齐了真实 worker 的 Glob 相对路径映射、baseline 锁与 Git 操作的取消传播,以及 scope 签发前的最后一次取消检查。source drift、非法 dependency 路径和已撤销 singleflight publication 都会 fail closed,不会回退到 managed worktree 的同名目录。