Repository navigation
devcloud 0.17.3: the guard marker's tests follow the engine's tier rule (fixes #569) - #578
Merged
Merged
Conversation
…le (2.1.328) From Claude Code 2.1.328 a call an organization's mod makes (a plugin managed settings seat in prepend or append) no longer reaches a person's hooks. The I9 tests modelled the second guard and the marker's reader as prepend and append plugins, so their read of devcloud's marker passed devcloud's state.get hook and got the host's undefined: three cases red on main since 2026-11-20 (#569). devcloud's module is unchanged in behaviour. The second guard and the reader now load as cua does, a person's plugin in the user tier, where the read still reaches the hook (the kit seats a user-tier inline plugin inside the one under test, so the outside position is no longer modelled). Two new cases pin the limit: a plugin in prepend or append reads undefined. The module's comment, the contract, the README and the mods' notes say the limit. Fixes #569. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
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. |
…de order tested again The I9 cases share their helpers through tests/mods/secrets-kit.ts. A second file, secrets-outside.test.ts, puts devcloud in `append` so a person's user-tier second guard sits outside it, and asserts from next.trace that it does; the inside case asserts the opposite. The comment, README, contract and mods notes state the limit as the engine does: a call from a mod an organization owns does not reach a person's hooks, so an organization's guard or reader gets no live marker from a devcloud a person installed, whichever tier either sits in. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
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 was wrong
devcloud-modshas been red on main since 2026-11-20: three cases of "Interfaces I9" indevcloud/tests/mods/secrets.test.ts(#569).The cause is a rule Claude Code 2.1.328 added (its hook declarations, under
Tier): a person's hooks don't hear a call an organization's mod makes, where the organization's mods are the plugins its managed settings seat inprependorappend. The I9 tests loaded the second guard and the marker's reader asprependandappendplugins, to place them outside and inside devcloud. From 2.1.328 their$.state.getof devcloud's marker passes devcloud'sstate.gethook (devcloud loads inuser) and gets the host'sundefined.Probed on 2.1.329 with a throwaway plugin: a
user-tier reader's read reaches the hook and gets the marker; aprependorappendreader's read reaches only the host.What changes
devcloud's module behaves as before; only its comment changed.
cua's vendored guard is a person's plugin, as devcloud is, so its read still reaches the hook.usertier, ascuadoes. Both orders are tested:secrets.test.ts(devcloud inuser, where the kit seats a user-tier inline plugin inside it) and the newsecrets-outside.test.ts(devcloud inappend, so the same guard sits outside it); each asserts its order fromnext.trace. The shared helpers moved totests/mods/secrets-kit.ts.prependorappendinline plugin, which stands for an organization's, gets no live marker (here the host's{ value: undefined, version: 0 }).types/devcloud.d.ts, the README and the mods' notes state the limit by ownership: a call from a mod an organization owns (seated inprependorappend, or required inuser) does not reach the hooks of a mod a person owns, so an organization's guard gets no live marker from a devcloud a person installed and acts beside it. A person's own plugins hear the read in any tier.Also probed with the real engine (2.1.329, a throwaway HOME, no managed settings): a plugin listed in the user settings'
prependPluginsloads inprependand its read of a user-tier plugin's hook-answered key still gets the answer. So the Macs are not affected.What it leaves
On a devcloud host the managed settings seat sminos in
prepend, so by the same rule its bridge's read of the marker (sminos/hooks/mods/bridge.tsx,loadedGuard) gets no live marker there and falls to itscualeg or to "no guard loaded". The bridge stays on; its backstop against a misplaced bridge no longer sees devcloud's guard on such a host. Not changed here: registered as #579.Checks
claude plugin test devcloudon 2.1.329: 156 pass, 0 fail.tests/mods/typecheck.sh: clean against 2.1.329's declarations. Reviewed (review-code, medium): three findings (the outside order's coverage, the limit stated by seating instead of ownership, "readsundefined" too strong), all fixed in the second commit.Fixes #569.
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)