Skip to content

feat(claude): emit plugin-root settings.json defaults (#187 slice 1) - #284

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
feat/187-s1-settings
Sep 2, 2026
Merged

feat(claude): emit plugin-root settings.json defaults (#187 slice 1)#284
ScriptedAlchemy merged 1 commit into
mainfrom
feat/187-s1-settings

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • Adds the host-scoped claude.settings config surface, lowered into a plugin-root settings.json (defaults Claude Code applies when the plugin is enabled), pinned to the two documented keys agent and subagentStatusLine by a new closed settings.schema.json (PROVENANCE + sha pins updated; three recorded tightenings: closed unknown keys, minProperties: 1, no padding on the subagent line).
  • The host silently ignores unknown settings keys and — as recorded native proof shows — claude plugin validate --strict never inspects settings.json at all (a deliberately malformed file passes both validation modes), so compiler diagnostics are the only guard an author gets: unknown keys, malformed values, empty declarations, and path tokens (absent from the documented placeholder table) are build errors (claude.settings.*).
  • Declaring agent emits the document plus a new warning-severity diagnostic claude.settings.agent.deferred (via a new shared warningDiagnostic helper): the plugin agents component stays G5-deferred (docs(capabilities): record the #100 stage 2 agents-component deferral in pinned capability notes #220), so the referenced agent must reach the plugin root another way (e.g. prebuilt payload). Capability rows: settings supported on claude driven by pinned plugin.settings facts with six dated 2026-09-01 evidence lines; honest unavailable intersection on the unified bundle; no row invented for Codex/Cursor.
  • Rebase onto the bin merge (feat(claude): emit plugin bin/ executables (#187 slice 1) #282) resolved by keeping both surfaces; adapter revisions adjudicated to claude 1.7.0 / plugin 1.6.0.

Part of #187 slice 1 (systematic Claude host-parity pass).

Test plan

  • Scoped suites incl. native host proofs for both settings and bin (post-rebase): 203 passed, 0 failed, 0 skipped against the installed Claude Code 2.1.257
  • pnpm typecheck
  • pnpm lint (0 errors, 0 warnings, 963 files)

Add a `claude.settings` host config surface that lowers into the plugin-root
`settings.json` Claude Code applies when a plugin is enabled, pinned to the
two documented keys (`agent`, `subagentStatusLine`) by a new closed schema.

The host silently ignores unknown keys and its own `plugin validate --strict`
never inspects the file, so the compiler is the only guard an author gets:
unknown keys, malformed values, empty declarations, and path tokens (absent
from the documented placeholder table) are build errors. Declaring `agent`
still emits, with a warning that the plugin agents component stays deferred
(#100 stage 2 G5, PR #220) so the referenced agent must ship another way.
@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 04d1480

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agent-bundle Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy merged commit 658dd64 into main Sep 2, 2026
4 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T06:01:54.962899Z 04d1480 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.

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.

1 participant