Skip to content

devcloud 0.17.3: the guard marker's tests follow the engine's tier rule (fixes #569) - #578

Merged
SSFSKIM merged 2 commits into
mainfrom
devcloud-guard-marker
Nov 20, 2026
Merged

SSFSKIM merged 2 commits into
mainfrom
devcloud-guard-marker

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

What was wrong

devcloud-mods has been red on main since 2026-11-20: three cases of "Interfaces I9" in devcloud/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 in prepend or append. The I9 tests loaded the second guard and the marker's reader as prepend and append plugins, to place them outside and inside devcloud. From 2.1.328 their $.state.get of devcloud's marker passes devcloud's state.get hook (devcloud loads in user) and gets the host's undefined.

Probed on 2.1.329 with a throwaway plugin: a user-tier reader's read reaches the hook and gets the marker; a prepend or append reader'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.

  • The second guard and the reader load in the user tier, as cua does. Both orders are tested: secrets.test.ts (devcloud in user, where the kit seats a user-tier inline plugin inside it) and the new secrets-outside.test.ts (devcloud in append, so the same guard sits outside it); each asserts its order from next.trace. The shared helpers moved to tests/mods/secrets-kit.ts.
  • Two cases pin the limit: the kit's prepend or append inline plugin, which stands for an organization's, gets no live marker (here the host's { value: undefined, version: 0 }).
  • The module's comment, types/devcloud.d.ts, the README and the mods' notes state the limit by ownership: a call from a mod an organization owns (seated in prepend or append, or required in user) 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.
  • devcloud 0.17.2 -> 0.17.3 (shipped files changed: comments and the contract's text).

Also probed with the real engine (2.1.329, a throwaway HOME, no managed settings): a plugin listed in the user settings' prependPlugins loads in prepend and 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 its cua leg 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 devcloud on 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, "reads undefined" too strong), all fixed in the second commit.

Fixes #569.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

…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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T21:54:57.767941Z 23c8d5e 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.

…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)
@SSFSKIM
SSFSKIM enabled auto-merge November 20, 2026 22:02
@SSFSKIM
SSFSKIM merged commit 9d9b273 into main Nov 20, 2026
12 checks passed
@SSFSKIM
SSFSKIM deleted the devcloud-guard-marker branch November 20, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

devcloud secrets guard: Interfaces I9 fails on Claude Code 2.1.328 and later (another plugin's read of the guard marker returns undefined)

1 participant