Repository navigation
Conversation
…nt skills (ADR 0058)
bos capability add <auth|i18n|docs> wraps composition into recipes (ADR 0058
§2–3). Zero prompts — flags and config decide, so agents run them
unattended; re-runs are idempotent (capability.unchanged …
reason=already-in-place, exit 0).
auth — composes the auth plugin through plugin add's extends-chain
resolution (shared PluginAdminService; the parent's entry is written over a
null omit, an inheriting child reports already-composed, a chain without
auth fails loud with guidance). Verifies the public sign-in affordance (a
pluginPath("/login") link in the authored chrome) and scaffolds
sign-in-button.tsx only when missing; scaffolds the minimal
_authenticated.tsx gate + /dashboard landing the composed auth ui claims
and its login redirects to; prints AUTH_DATABASE_URL, the entry's declared
secrets, and the social-provider client-ID variables.
i18n — not a plugin: runs the i18n-seam maintenance step (catalogs +
runtime + AppI18nProvider mount in __root, composition-fatal blockers fail
loud), verifies the language selector affordance in the authored chrome,
prints the catalog completeness check command.
docs — composes the docs plugin and prints the content-source reminder
(ADR 0053 content truth; ADR 0054's content: "repository" with a one-line
example, plus a local-content preflight note).
Every recipe writes authored surface only (framework-owned files are
refused), reuses formatCompositionDelta for the composition part, and adds
the machine line capability.added|unchanged kind=… affordance=… mounts=…
secrets=… env=… skill=… (--json prints the raw result). Ships intent
skills everything-dev#capability-auth and everything-dev#i18n (one skill
for the i18n domain and its recipe).
Also fixes expressChainEntry in the shared composition service: the ui
attachment now travels with a composed entry as its authored fields
(name/path/development); pipeline-stamped ui state re-merges from the
targeted bos:// ref at resolve — composing the parent's real auth entry
previously failed with 'unexpressible: app.auth.ui'.
Verified live on a fresh simple child (bos init --source . --level
simple): the child boots against the published parent, /login answers 200
and renders the auth ui, the sign-in affordance and language selector
render, auth/docs re-runs report unchanged, and the catalog check runs
clean. Gates: typecheck, lint (biome + lint:effect + comment budget),
everything-dev test:unit 226 files / 2361 tests.
This branch has not been deployed
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.
Summary
The add-back path becomes recipes (ADR 0058 §2–3), stacked on #1225 (the composition policy):
bos capability add <auth|i18n|docs>— zero prompts, flags decide, agents run them unattended, re-runs are idempotent.Every recipe writes authored surface only (framework-owned writes refused via the ownership inventory), reuses #1023's
formatCompositionDelta, and adds the machine linecapability.added|unchanged kind=… affordance=… mounts=… secrets=… env=… skill=…. Intent skills shipped:everything-dev#capability-auth,everything-dev#i18n(16/16 intent-validate pass).One shared-service fix was required to compose any real parent entry:
Without it, composing the parent's real auth entry failed
unexpressible: app.auth.ui—bos plugin add authhit the same bug, so the migration and add paths benefit too.Live-verified finding baked into the auth recipe: the composed auth-ui claims the authenticated mount (settings/orgs/admin), which a simple child strips — so the recipe also scaffolds the minimal
_authenticated.tsxrequireSession gate +/dashboardlanding its login redirects to. Documented in the skill's failure table.Evidence
Live run on a fresh simple child (real boot): child boots against the published parent;
/login→ 200 rendering the auth UI ("Sign in to continue"); sign-in affordance rendered (public-header-signin, count 1); language selector rendered (public-footer-language, count 1); auth/docs second runs →capability.unchanged reason=already-in-placewith byte-identical authored files; catalog check runs clean.Gates on this branch: typecheck green; lint green (new files at zero comment lines); 2361 unit tests passed (226 files) including 10 new recipe tests (idempotency, authored-surface-only, fail-loud, machine line) and the migration suite still green over the
expressChainEntrychange.Merge Danger
Door: two-way (recipes write authored-surface files; delete them and the capability is gone)
Blast radius:
expressChainEntrytouches the migration andplugin addoutput shapes — entries carrying authoreduiattachments now compose instead of aborting unexpressible (previously a loud failure, never a silent shift); entries withoutuiare byte-identical (paired test green). New CLI surface is additive.