Title: impl(mcpx): resolve plugin-session manifest hooks into live bus subscribers (#1873 slice 2) · Issue #10046 · developing-today/code · GitHub
Open Graph Title: impl(mcpx): resolve plugin-session manifest hooks into live bus subscribers (#1873 slice 2) · Issue #10046 · developing-today/code
X Title: impl(mcpx): resolve plugin-session manifest hooks into live bus subscribers (#1873 slice 2) · Issue #10046 · developing-today/code
Description: Next slice on top of the merged plugin-session foundation for #1873 (PR #10045, internal/pluginsession). Slice: resolve a plugin session's manifest hook declarations into live bus subscribers at session start, owned by the session and dr...
Open Graph Description: Next slice on top of the merged plugin-session foundation for #1873 (PR #10045, internal/pluginsession). Slice: resolve a plugin session's manifest hook declarations into live bus subscribers at se...
X Description: Next slice on top of the merged plugin-session foundation for #1873 (PR #10045, internal/pluginsession). Slice: resolve a plugin session's manifest hook declarations into live bus subscribers a...
Opengraph URL: https://github.com/developing-today/code/issues/10046
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"impl(mcpx): resolve plugin-session manifest hooks into live bus subscribers (#1873 slice 2)","articleBody":"Next slice on top of the merged plugin-session foundation for #1873 (PR #10045, `internal/pluginsession`).\n\n**Slice:** resolve a plugin session's manifest hook declarations into live bus subscribers at session start, owned by the session and dropped by its `Close`.\n\n- At plugin-session open, take the manifest's declared hook subscriptions (today recorded in the session, \"recorded, not interpreted\") and subscribe them to the daemon's event bus with `events.Filter` semantics, observe phase per decision 0001 (`pkgs/mcpx/docs/decisions/0001-hook-vocabulary.md`). Delivery target is the owning plugin (its tool surface), keyed by session: one session's hooks are never another's.\n- Each live subscription is registered with `Registry.Own(id, OwnedItem{Kind: \"hook\", ...})` so `/v1/status` introspection shows what each session owns, and session end (clean or crash path, both through `Close`) drops the subscribers with the session — no separate unsubscription bookkeeping.\n- **Open question to answer first, in the PR:** #1872 (config-declared hooks) is parked with its own holder and its structured `hooks` setting / subscriber machinery has not landed on main. State explicitly whether this slice builds the minimal subscriber machinery it needs on the events bus directly, or depends on #1872's follow-up landing first — and record the choice where the next reader will find it (the PR + a note here).\n- Tests (tree rules: changed packages, named oracles): a manifest hook fires to the owning plugin on a matching event; a non-matching event does not fire it; session end drops subscriptions (a post-close event fires nothing); two sessions with identical declarations each receive only their own deliveries.\n\nOut of scope: capability enforcement (decision 0003), the vars store, the named-command registry, detach/re-address — separate later packets under the #1885 tracker / #1873 lineage.\n\n---\n- **Found via:** queue task 16646 close-out (foundation landed via PR #10045; this is its named next slice)\n- **Links:** parent #1873 · foundation PR #10045 · tracker #1885 · decision 0001 · #1872\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-14T14:23:23Z","url":"https://github.com/developing-today/code/issues/10046"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ddfb6634-2e32-e73e-7fef-ae461c3ecce2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF6C:3A705F:1E77F1:28D955:6B061301 |
| html-safe-nonce | b2fbb73782be98f96377e48c148e47532789ed6c8ba20aa1a366e849e2d478f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjZDOjNBNzA1RjoxRTc3RjE6MjhEOTU1OjZCMDYxMzAxIiwidmlzaXRvcl9pZCI6IjQ5ODEyMDM1NDg3MTQxNzcyODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e3a95dadab065d3c0b63bb28fb877aa613b13b2293125039638ee5a587700558 |
| hovercard-subject-tag | issue:6391198634 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/10046/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5cf403992f3edb0a91e1cedcfe93300d3206daa6008875d022f3c6cdae884b4/developing-today/code/issues/10046 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5cf403992f3edb0a91e1cedcfe93300d3206daa6008875d022f3c6cdae884b4/developing-today/code/issues/10046 |
| og:image:alt | Next slice on top of the merged plugin-session foundation for #1873 (PR #10045, internal/pluginsession). Slice: resolve a plugin session's manifest hook declarations into live bus subscribers at se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e58943f0186bb8d97b217393c2724a49ab47e4aefefc43595a90fa04699066c9 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 23517473abc6d5da019b4958bd421644e98a418b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width