Repository navigation
sminos 1.52.2: the bridge judges its place by its seat (fixes #579) - #585
Merged
Merged
Conversation
…ed (#579) A bridge the managed settings seat cannot hear a person's devcloud answer its marker. In prepend that read went unheard and the cua leg, reading the user settings, turned the bridge off with cua enabled but not loaded, though every plugin a person installs is beneath it there. In append the same blindness left a bridge inside every person's guard on. The bridge now learns its seat once per module instance: its tier from a call to its own state.get hook (next.origin.tier is the plugin's own), and, outside user, whether the machine has managed settings. A person's bridge is judged as before. The organization's in prepend reads cua from the managed settings, so no guard of a person's can turn it off and a guard the organization seats ahead of it is still caught. The organization's anywhere else turns off at its first check, unless both guards are beneath it. Both name the managed settings' prependPlugins in the off line. Tests: the harness's seat cases, and kit tests that load the real module in prepend, user and append beside a user-tier devcloud stand-in, so the engine's tier rule decides what the reads get. Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
…ead of it Review of the seat change: the managed settings enabling cua@cua is no proof cua sits outside a bridge they seat in prepend. Enabled and not listed ahead, cua loads after sminos, or in user where they do not declare its marketplace, and a dispatch an organization's plugin raises runs none of a person's hooks, so its trace lacks cua's link and the bridge turned off though no guard was outside it. cua now counts there only when their prependPlugins list it ahead of sminos. Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
…ce only where a person's hooks ran The list-order check the last commit added duplicated the engine's seating (unlisted plugins of one rank, spellings it normalizes, entries it disables) and could miss a cua outside the bridge. The real cause of the false off was elsewhere: a dispatch an organization's mod raises runs none of a person's hooks, so a cua the managed settings enable that loads in user is missing from its trace. cua's leg reads the managed settings' enabledPlugins again, and for that seat a dispatch whose origin is the organization's tier (prepend or append) decides nothing; one the engine or a person's plugin raised, which runs every hook beneath, still does, and a cua link seen there turns an off bridge on. Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
The deferral the last commit gave an outer seat's dispatches that an organization's mod raised is cua's alone: a devcloud such a bridge hears is the organization's, whose hooks run on those dispatches, so its missing link there still turns the bridge off before it posts. Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
… and an unsettled dispatch drops its own For a bridge the managed settings seat in prepend: - cua counts as the organization's guard only where the managed settings both enable cua@cua and declare its marketplace, ids case-folded as the engine matches them; enabled with its marketplace undeclared it loads in user, beneath, and its absence no longer turns the bridge off for good; - with no guard read loaded, a cua link beneath is guarded, so a cua reloaded beneath turns an off bridge on; - a dispatch an organization's mod raised that cannot settle cua's place is unsettled: its own call and result are dropped, its call while still queued, so a later safe verdict never posts them; the place is unchanged. Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
…-seat Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
SSFSKIM
enabled auto-merge
November 21, 2026 08:11
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
What and why
The bridge posts what a session showed, so it must sit outside every secrets guard; its backstop turns a misplaced bridge off. The backstop learned whether devcloud's guard is loaded by reading devcloud's marker, which devcloud's hook answers. From Claude Code 2.1.328 a person's hooks do not hear a call an organization's mod makes, so where managed settings seat sminos the read always comes back empty (#579).
Measured on the real engine under real managed settings (2.1.330; the table is in the ticket): a plugin managed settings seat is the organization's whatever its marketplace's source; on such a machine the user's own
prependPluginsis ignored and every plugin a person enables loads inuser; a hook hears a call another hook of its own plugin makes, with its own tier innext.origin.So the bridge now reads its seat: its tier, from its own call heard by its own hook, and, outside
user, whether the managed settings hold anything.prepend: everything a person installs is beneath it by the engine's order, so a person's guard never turns it off. That also ends a wrong off in the old code: marker hidden, the user settings enabling cua, cua not loaded, devcloud beneath. A guard the organization seats is still judged: its devcloud answers the marker; its cua counts where the managed settings both enable it and declare its marketplace (ids compared as the engine compares them), and a cua link beneath is taken as a guard beneath. A dispatch an organization's mod raised, where a managed cua's link is missing, proves nothing and its own payload is dropped.prependPlugins.devcloud is not changed.
Closes #579.
Evidence
sminos/tests/mods/bridge.test.ts).prepend,appendandusertiers beside a user-tier stand-in for devcloud that answers the marker from its own hook, so the engine's tier rule decides what the read returns: the read is hidden inprependandappendand heard inuser; the bridge posts inprependanduserand turns off with the managed line inappend. Twelve of the new tests failed on the old logic, both kit tests among them; the four of the last fix wave each failed first.claude plugin test sminos: 853 pass.tests/mods/typecheck.sh --lay: clean.ci-gate: GREEN, 10 of 10, on the head before the merge of main (run 44881849795).Not verified: a real devcloud host (the measurements were made with two probe plugins in a container, not with sminos and devcloud on a host); the kit cannot seat a person's plugin in
prependor order the organization's plugins within a tier, so those cases rest on the harness.Review
doperpowers:review-code: medium, then low twice, on the change as it was built (a false off for a correctly placed bridge, and a list-order check replaced by the rule on who raised a dispatch); then high on the whole range1fdc73a0..d3f248e8: five findings, four fixed inabf34d86with a failing test each, one dismissed (keeping a bridge on in a tier other thanprependwhen a managed devcloud is readable beneath it: that seat is off outright, by decision). No review after that wave: it was the last round.Residue
Not covered, and said in the mod's notes: a sminos the organization requires in
user, a copy whose hash does not match, a seat that changes while the module lives on.Sminos-Session: channel-dev#222553cd (doperpowers on macbook)