Skip to content

sminos 1.52.2: the bridge judges its place by its seat (fixes #579) - #585

Merged
SSFSKIM merged 6 commits into
mainfrom
sminos-bridge-seat
Nov 21, 2026
Merged

SSFSKIM merged 6 commits into
mainfrom
sminos-bridge-seat

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 21, 2026

Copy link
Copy Markdown
Owner

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 prependPlugins is ignored and every plugin a person enables loads in user; a hook hears a call another hook of its own plugin makes, with its own tier in next.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.

  • A person's sminos (no managed seat): exactly as before, in every tier.
  • The organization's, in 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.
  • The organization's, in any other tier: inside every plugin a person installs and unable to read a person's devcloud: off, with a line that names the managed settings' prependPlugins.

devcloud is not changed.

Closes #579.

Evidence

  • Unit cases for the verdict by seat, laziness (nothing is read when both guards' links are beneath), a failed seat read, and each case above (sminos/tests/mods/bridge.test.ts).
  • Three tests that load the real module in the test kit's prepend, append and user tiers 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 in prepend and append and heard in user; the bridge posts in prepend and user and turns off with the managed line in append. 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 prepend or 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 range 1fdc73a0..d3f248e8: five findings, four fixed in abf34d86 with a failing test each, one dismissed (keeping a bridge on in a tier other than prepend when 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)

…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
SSFSKIM enabled auto-merge November 21, 2026 08:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T08:12:43.917137Z 6e37eff PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 5a5ec39 into main Nov 21, 2026
13 checks passed
@SSFSKIM
SSFSKIM deleted the sminos-bridge-seat branch November 21, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant