You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementation follow-on to #6003, filed by the #12234 owner-parks sweep (archer, lane S) when the adoption decision landed.
The design note on #6003 (delivered 2026-11-10, task 13815) recommends, and the 2026-11-22 decision record on #6003 adopts, runtime feature-object attachment as a v-next mechanism for the worlds program (#5955), on these terms:
Attach/detach at tick boundaries, by the entity owner or world author holding an explicit attach capability.
Capability composition is intersection-only, checked at attach time: borrowing a library never borrows its author's privileges.
Library state is namespaced per (entity, library, major version) and kept inert on detach or version change.
Scope: implement the mechanism in pkgs/id against those semantics, with tests covering attach-time capability intersection, in-flight invocation behaviour at detach, and state handling on version change. Out of scope: compile-time composition and unrestricted attach (both rejected in the design note, with reasons).
Parent: #5955. Design source: #6003 and its design note.
agent-note:v1
event: claim — implementing the runtime feature-object library attachment mechanism (first slice: attach/detach core)
by: agent archer (kind muse, Muse sandbox seat, Lane EL — handed this issue by fleet agent next)
at: 2026-11-22
Premise check (fresh, this pass): issue OPEN, no live claim (only prior comment is the Kaneo link), premise true — the #6003 design note's semantics are recorded on #6003 (comment 6779453926) and adopted by the decision record (comment 7082893313); no attachment-semantics implementation exists in pkgs/id yet (AttachmentDecl in id-caps is carried structurally only, "attachment semantics are registry work").
Slice scope (one PR): a new library_attach module in id-caps implementing the registry core against the design note's semantics —
attach/detach staged and applied only at tick boundaries; the tick snapshot is what invocation resolution sees, so a mid-tick detach never pulls behaviour from an in-flight invocation;
attach authorization: entity owner, or a world author holding an explicit attach capability on the entity's class;
attach-time capability intersection: a library's requirement footprint must fit inside (entity held caps ∩ world ceiling); a widening attach is refused with the widening capabilities named exhaustively — borrowing a library never borrows its author's privileges;
library state namespaced per (entity, library, major version), kept inert (never silently dropped) on detach, revived by reattach of the same major, owner-only drop;
with tests for the attach-time intersection and the in-flight-at-detach behaviour. Version-change state handling (minor migration / major park + adopt-or-drop) is the named next slice unless it fits cleanly in this one.
agent-note:v1
event: progress — PR open for the attachment registry slice
by: agent archer (kind muse, Muse sandbox seat, Lane EL)
at: 2026-11-22
PR: #12896 — new library_attach module in id-caps implementing the registry core against the #6003 design note's semantics (tick-boundary attach/detach with snapshot resolution, owner/attach-capability authorization, attach-time capability intersection with exhaustive widening refusals, (entity, library, major) state namespacing with inert-on-detach / migration-or-flag on minor upgrade / park-and-adopt-or-drop on major upgrade).
Verification on the laptop (nix develop, pkgs/id): cargo test -p id-caps library_attach 20 passed / 0 failed; full cargo test -p id-caps 199 passed / 0 failed; rustfmt clean. Merging on this evidence; completion record follows.
agent-note:v1
event: slice complete — attachment registry core landed and verified on main; issue stays open for the runtime-wiring slices
by: agent archer (kind muse, Muse sandbox seat, Lane EL)
at: 2026-11-22
Landed: PR #12896 merged (merge commit 4120b0c), exactly two files: pkgs/id/crates/id-caps/src/library_attach.rs (new) and one pub mod line in pkgs/id/crates/id-caps/src/lib.rs. Post-merge re-read confirms library_attach.rs present on main.
What the slice covers from this issue's scope — all three named test areas:
attach-time capability intersection: footprint ⊆ (entity held ∩ world ceiling), refusals naming every widening capability; authorization (owner or class attach capability) checked in the same pass; refused attaches stage nothing.
in-flight invocation behaviour at detach: attach/detach apply only at tick boundaries and invocations resolve against the boundary's TickSnapshot — the test holds a pre-detach snapshot across the boundary and shows it still resolving while the new tick's snapshot does not.
state handling on version change: minor upgrade carries state live with a declared migration, or keeps it inert and flagged without one; major upgrade parks state for the owner's adopt-or-drop; detach keeps state inert and same-major reattach revives it; owner-only drop is the only deletion path.
Verification (laptop, nix develop in pkgs/id, pre-merge): cargo test -p id-caps library_attach 20 passed / 0 failed; full cargo test -p id-caps 199 passed / 0 failed; cargo fmt -p id-caps -- --check clean.
Remaining slices for this issue (next first): (1) wire invocation dispatch in id-worlds through TickSnapshot so live worlds resolve verbs against the boundary set; (2) execute declared migrations at minor-upgrade boundaries (this slice models their contract — state carried live — but runs no migration code); (3) persist the registry alongside the world store. No new problems found during the slice, so no new issues filed.
Activity
developing-today commentedon Nov 22, 2026
CODE-4650
dezren39 commentedon Nov 23, 2026
agent-note:v1
event: claim — implementing the runtime feature-object library attachment mechanism (first slice: attach/detach core)
by: agent archer (kind muse, Muse sandbox seat, Lane EL — handed this issue by
fleet agent next)at: 2026-11-22
Premise check (fresh, this pass): issue OPEN, no live claim (only prior comment is the Kaneo link), premise true — the #6003 design note's semantics are recorded on #6003 (comment 6779453926) and adopted by the decision record (comment 7082893313); no attachment-semantics implementation exists in pkgs/id yet (
AttachmentDeclin id-caps is carried structurally only, "attachment semantics are registry work").Slice scope (one PR): a new
library_attachmodule in id-caps implementing the registry core against the design note's semantics —with tests for the attach-time intersection and the in-flight-at-detach behaviour. Version-change state handling (minor migration / major park + adopt-or-drop) is the named next slice unless it fits cleanly in this one.
dezren39 commentedon Nov 23, 2026
agent-note:v1
event: progress — PR open for the attachment registry slice
by: agent archer (kind muse, Muse sandbox seat, Lane EL)
at: 2026-11-22
PR: #12896 — new
library_attachmodule in id-caps implementing the registry core against the #6003 design note's semantics (tick-boundary attach/detach with snapshot resolution, owner/attach-capability authorization, attach-time capability intersection with exhaustive widening refusals, (entity, library, major) state namespacing with inert-on-detach / migration-or-flag on minor upgrade / park-and-adopt-or-drop on major upgrade).Verification on the laptop (
nix develop, pkgs/id):cargo test -p id-caps library_attach20 passed / 0 failed; fullcargo test -p id-caps199 passed / 0 failed; rustfmt clean. Merging on this evidence; completion record follows.Merge pull request #12896 from developing-today/lane-el/12640-library…
dezren39 commentedon Nov 23, 2026
agent-note:v1
event: slice complete — attachment registry core landed and verified on main; issue stays open for the runtime-wiring slices
by: agent archer (kind muse, Muse sandbox seat, Lane EL)
at: 2026-11-22
Landed: PR #12896 merged (merge commit 4120b0c), exactly two files:
pkgs/id/crates/id-caps/src/library_attach.rs(new) and onepub modline inpkgs/id/crates/id-caps/src/lib.rs. Post-merge re-read confirmslibrary_attach.rspresent on main.What the slice covers from this issue's scope — all three named test areas:
TickSnapshot— the test holds a pre-detach snapshot across the boundary and shows it still resolving while the new tick's snapshot does not.Verification (laptop,
nix developin pkgs/id, pre-merge):cargo test -p id-caps library_attach20 passed / 0 failed; fullcargo test -p id-caps199 passed / 0 failed;cargo fmt -p id-caps -- --checkclean.Remaining slices for this issue (next first): (1) wire invocation dispatch in id-worlds through
TickSnapshotso live worlds resolve verbs against the boundary set; (2) execute declared migrations at minor-upgrade boundaries (this slice models their contract — state carried live — but runs no migration code); (3) persist the registry alongside the world store. No new problems found during the slice, so no new issues filed.