GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: implement runtime feature-object library attachment (v-next, per #6003 design note) · Issue #12640 · developing-today/code

id: implement runtime feature-object library attachment (v-next, per #6003 design note) #12640

New issue
Copy link
New issue
Copy link
Open
Open
id: implement runtime feature-object library attachment (v-next, per #6003 design note)#12640
Copy link
Labels
epic/id-programReprioritization program epic (2026-11-12)primary-parent/id-programPrimary parent epic id-program (design §3)status:to-dostray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)

Description

@dezren39
dezren39
opened on Nov 22, 2026
Issue body actions

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.

Activity

  1. developing-today commented on Nov 22, 2026

    @developing-today
    developing-todayBot
    on Nov 22, 2026 – with developing.today
    Contributor
    More actions

    CODE-4650

  2. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    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.
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    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.

  4. developing-today
    added
    status:in-review
    on Nov 23, 2026
  5. dezren39
    added a commit that references this issue on Nov 23, 2026

    Merge pull request #12896 from developing-today/lane-el/12640-library…

    4120b0c
  6. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    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.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: outcome — slice 1 premise already satisfied on main; no duplicate implementation
    by: agent any-o (OpenChamber scheduled Fleet lane, queue task 21473)
    at: 2026-11-23

    Premise check (fresh): issue OPEN, comments read count-confirmed, no live claim by another lane. PR #12896 is MERGED (merge commit 4120b0c, 2026-11-23T04:45:07Z). pkgs/id/crates/id-caps/src/library_attach.rs is present on origin/main.

    The packet's acceptance criteria map to that merged slice:

    • attach-time capability intersection (borrowing never borrows the author's privileges): covered by the library_attach tests
    • in-flight invocation behaviour at detach: covered by the TickSnapshot boundary test
    • state handling on version change (namespaced, inert): covered by the minor/major upgrade tests

    Verification recorded on #12896 by its author: cargo test -p id-caps library_attach 20 passed / 0 failed; cargo test -p id-caps 199 passed / 0 failed. I did not re-run builds in this lane. Re-running would duplicate the dispatch route's work.

    Not done here: the remaining runtime-wiring slices listed in the earlier completion record (invocation dispatch through TickSnapshot in id-worlds, minor-upgrade migration execution, registry persistence). They are larger than this packet's timebox and need their own tasks. Issue stays open for them.

  8. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Triage verdict (2026-11-24, task 22229, lane any-n): fresh state — #12640 OPEN; core registry slice merged as PR #12896 (merge 4120b0c, 2026-11-23T04:45:07Z; library_attach.rs on origin/main). Remaining work is the runtime-wiring slice (invocation dispatch through TickSnapshot, attach/detach call sites). Routed one scoped small_fix follow-on: queue task 23090 (repo-health-code-pilot). Issue stays open until runtime wiring lands.

  9. dezren39
    added a commit that references this issue on Nov 24, 2026

    id-worlds: invocation-time attachment dispatch over the tick snapshot (…

    8f4a182
  10. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    🤖 Agent note · progress — dispatch-seam slice open (oc-code-08, 2026-11-24)

    • Slice: invocation-time resolution over the tick snapshot — the first runtime-wiring slice after the merged registry core (id-caps: runtime feature-object library attachment registry (#12640) #12896).
    • PR: id-worlds: invocation-time attachment dispatch over the tick snapshot (#12640) #14485 — new AttachmentDispatch in id-worlds (owns registry + current TickSnapshot, resolves against the snapshot only); 4 unit tests oracle'd on the id: design: feature-object library attachment — runtime attach/detach of library behavior to entities without world recompilation #6003 design note tick-boundary rule.
    • Evidence (laptop): cargo test -p id-worlds attachment_dispatch 4 passed / 0 failed; rustfmt clean; suite-registry check silent for the new file.
    • Design state: id: design: feature-object library attachment — runtime attach/detach of library behavior to entities without world recompilation #6003 settled (design record on main, adoption recorded); nothing left there to route — implementation stays here per the oc-code-04 verify pass.
    • Next slice (same form): after this PR merges, wire live verb dispatch through AttachmentDispatch::resolve so running worlds answer invocations from the boundary set — then declared-migration execution, then registry persistence.
  11. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    agent-note:v1
    event: claim — shepherding the dispatch-seam slice to merge (queue task 23090)
    by: agent archer (kind muse, Muse sandbox seat, Lane IW-341 — drew task 23090 via fleet agent next)
    at: 2026-11-25

    Premise check (fresh, this pass): #12640 OPEN; the registry core merged as PR #12896; the first runtime-wiring slice already exists as PR #14485 (oc-code-08, 2026-11-24) — AttachmentDispatch in id-worlds wrapping the merged id_caps::library_attach core, resolving only against the current TickSnapshot. PR reads back mergeable/clean, no live shepherd claim on it (only a CodeRabbit bot comment). Task 23090's acceptance is exactly "one runtime-wiring slice lands, core reused not re-implemented", so I am shepherding PR #14485 rather than writing a duplicate slice: verify its tests at the PR head, merge when green, then complete task 23090 against it.

    #12640 stays open after this slice — the remaining wiring (live verb dispatch through AttachmentDispatch::resolve, declared-migration execution, registry persistence) is future slices.

  12. developing-today-fleet
    added a commit that references this issue on Nov 25, 2026

    Merge pull request #14485 from developing-today/oc-code-08/12640-atta…

    eb113e0
  13. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    agent-note:v1
    event: slice complete — runtime-wiring slice 1 (invocation dispatch through TickSnapshot) landed; task 23090 completed merged_verified
    by: agent archer (kind muse, Muse sandbox seat, Lane IW-341, queue task 23090)
    at: 2026-11-25

    Landed: PR #14485 (by oc-code-08) MERGED 2026-11-25T12:06:21Z, merge commit eb113e0 — AttachmentDispatch in id-worlds owns the merged registry core (id_caps::library_attach::AttachmentRegistry) plus the current TickSnapshot; attach/detach stage through the registry and apply only at begin_tick; resolve answers from the snapshot only, so a mid-tick detach cannot pull behaviour from an in-flight invocation. The merged core is reused, not re-implemented (imports verified in the diff). attachment_dispatch.rs confirmed present on main post-merge.

    Verification (this lane, independent of the author's record): laptop worktree at the PR head 8f4a182 (named fallback — the route this issue's prior slices were verified on; cargo run from pkgs/id): cargo test -p id-worlds attachment_dispatch 4 passed / 0 failed; full cargo test -p id-worlds --lib 1013 passed / 0 failed. PR read back mergeable/clean before merging; first merge attempt bounced on a moved base, retry landed it.

    Task disposition: queue task 23090 completed as merged_verified — fleet queue verify-disposition verdict mirrored verbatim under disposition (checked_at 2026-11-25T12:07:53Z, source "fleet gh readback", pulls #14485 + #12896 merged), top-level evidence = PR #14485 URL; read-back shows the task done.

    #12640 stays open: remaining runtime-wiring slices per the earlier records — live verb dispatch through AttachmentDispatch::resolve in running worlds, declared-migration execution, registry persistence.

  14. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note · triage (queue task 24618, lane oc-code-02)

    • Verdict: open and in progress. Runtime-wiring slice 1 (AttachmentDispatch in id-worlds) merged as PR id-worlds: invocation-time attachment dispatch over the tick snapshot (#12640) #14485 (2026-11-25T12:06:21Z), on top of the registry core from id-caps: runtime feature-object library attachment registry (#12640) #12896.
    • Remaining: the rest of the attachment semantics in the issue (attach capability checks, detach and version-change state handling, tests for each). Those are later slices of this issue.
    • No follow-up filed; the remaining slices are already in scope here.
  15. developing-today
    added
    status:to-do
    and removed
    status:in-review
    on Nov 27, 2026
  16. developing-today commented on Nov 27, 2026

    @developing-today
    developing-todayBot
    on Nov 27, 2026 – with developing.today
    Contributor
    More actions

    Progress (2026-11-27): the registry core (#12896) and TickSnapshot dispatch seam (#14485) are merged. The next implementation slice is now queued as task 25583: wire live world invocation dispatch through AttachmentDispatch::resolve, with focused tick-boundary and absent/refused behavior tests. Declared-migration execution and registry persistence remain later slices. Cleared status:in-review; the issue remains open for this queued work.

  17. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    id-worlds: live library invocation dispatch through AttachmentDispatch (

    a24b8c6
  18. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note · progress — live dispatch slice PR open (oc-code-07, task 25583)

    • Slice: live library invocation dispatch through AttachmentDispatch::resolve — the next runtime-wiring slice after id-worlds: invocation-time attachment dispatch over the tick snapshot (#12640) #14485.
    • Change: AttachmentDispatch::resolve_invocation (Ok attached behavior / Err InvocationRefusal::NotAttached fail-closed) delegating to the current tick snapshot; tick-boundary semantics unchanged (staged invisible until begin_tick, cloned in-flight snapshot unaffected by later detach). 4 new boundary tests: attached resolves, staged invisible, detach keeps prior snapshot, absent/refused refuses.
    • PR: id-worlds: live library invocation dispatch through AttachmentDispatch (#12640) #15847 (branch code-07/25583-12640-live-dispatch, commit a24b8c6ebe4).
    • Evidence (this lane): cargo test -p id-worlds attachment_dispatch 8 passed / 0 failed; cargo test -p id-worlds --lib 1267 passed / 0 failed; rustfmt --check clean on the touched file. Clippy not green in this venue (stale id-grants artifact, E0514, unrelated).
    • Remaining: merge PR when CI is green, then task completion against the merge; declared-migration execution and registry persistence stay later slices.
  19. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    Merge pull request #15847 from developing-today/code-07/25583-12640-l…

    0c8fdf0
  20. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note · merged — live dispatch slice landed (oc-code-07, task 25583)

    • Merged: id-worlds: live library invocation dispatch through AttachmentDispatch (#12640) #15847 at 2026-11-27T01:49:09Z (merge commit 0c8fdf0bf58fe6322e14427c324cda3956c6beb8), MERGEABLE/CLEAN at merge; CodeRabbit + Proof checks skipped, no required failures.
    • Scope kept: additive resolve_invocation + InvocationRefusal + 4 boundary tests in attachment_dispatch.rs; registry core untouched; declared-migration execution and registry persistence remain later slices; id: implement runtime feature-object library attachment (v-next, per #6003 design note) #12640 stays open.
  21. developing-today-fleet
    added
    stray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)
    epic/id-programReprioritization program epic (2026-11-12)
    primary-parent/id-programPrimary parent epic id-program (design §3)
    on Nov 27, 2026
  22. developing-today-fleet
    added a parent issue on Nov 27, 2026
    • id: design program: worlds — advanced Roc libraries, capabilities, permissions, dynamic user functions, licensing (2026-11-04 brief) #5955
  23. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    Declare state migrations in the library manifest (#12640 slice)

    765a170
  24. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    Slice PR open: #16273 (manifest-declared migrations).

    The registry modelled a declared minor-upgrade migration as state carried live, but nothing declared one — declares_migration was a caller-supplied bool. This slice adds migrate from="<version>" to the manifest format and derives the offer flag from it, fail-closed on unparsable sources. Evidence: cargo test -p id-caps 375/375 (4 new tests), id-worlds attachment_dispatch 8/8, roc_import_policy 1/1; no new rustfmt diffs.

    After this PR: LibraryOffer::from_manifest(&manifest) derives the migration flag from manifest text. Next slice: execute declared migrations at the tick boundary / registry persistence.

  25. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    Merge pull request #16273 from developing-today/queue/23915-12640-slice

    8954894
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic/id-programReprioritization program epic (2026-11-12)primary-parent/id-programPrimary parent epic id-program (design §3)status:to-dostray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.