Repository navigation
[3509 by Claude Opus 5.5] Extension library: one instance list of MCP servers and skills with per-item limits, replacing profiles - #3513
Conversation
…stance-wide extension library of MCP servers and skill bundles, each with its own limits. All the extension, automation and submission test suites I touched pass, and server/UI typechecks and lint are clean. I did not run the full repository test suite.
Library model (`packages/shared/src/extensionLibrary.ts`)
- Each item has `enabled`, `repositories`, `agents` and `autoApply` (default `true` for new items). The library holds up to 32 servers and 32 skill bundles; a run still carries at most 8 of each.
- `resolveExtensionSet` returns, sorted by name:
- enabled auto-applied items whose limits match.
- items the run adds explicitly, which ignore `autoApply`.
- An explicit item that can't be used is listed in `skipped` with a reason, never an error. Reasons: missing, disabled, out of limits, wrong runtime, needs write authorization, or credential not configured.
- When a run has too many items, explicit ones are kept first, then auto-applied ones by name; the rest come back as `omitted`.
Store (`extensionProfileStore.ts`, class now `ExtensionLibraryStore`)
- Saving needs the revision the edit is based on, so concurrent edits are refused. Every save, enable/disable and secret replacement creates a new revision.
- Each server's credential is stored once, sealed to the library revision, and can be replaced or cleared on its own.
- Enable/disable changes only `enabled`; it is never refused, even when an automation adds the item.
- Removing or renaming an item an automation adds is refused, and the message names the automations.
- Every management call still requires a durable administrator.
Launch
- Automation runs resolve against the current library revision at launch. The library revision is the authority, so no administrator check happens at launch.
- All the existing launch checks are kept, including fencing between preparation and container start.
- The fence now refuses a pending launch only if one of *its* items was disabled, removed, re-limited or had its secret rotated. Edits to other items don't block it.
- A run's gateway token now reaches only the servers resolved for that run. Before, it reached every server in the profile.
- Each run records an `extensions.resolved` event on its task timeline, listing what was used, skipped and omitted.
Automations
- The definition has a new `extensions: { servers, skills }` field. It round-trips through REST, the MCP read tools and `propr automation show` (including `--json`).
- Adding items requires the preflight header, an administrator with `instance.manage_settings`, and that every named item exists.
- Decision for you: I let owners *remove* items from an automation without that permission, because removing can't grant anything. The UI is stricter: non-admins see the items read-only. Say if you want removal to require admin on the server too.
Migration
- A knex migration adds the library tables, the automation column and the legacy mapping. It rebuilds the run-grant table so grants of tasks already running survive the upgrade.
- A one-time data migration runs at API and worker startup. It is idempotent and never blocks startup.
- Identical servers merge, with their limits combined. Different servers that share a name get a `-2`, `-3` suffix, and the rename is logged.
- Every migrated item has `autoApply: false`, so no run changes behaviour after the upgrade.
- Automations that selected a profile get its items added explicitly.
- A secret that can't be decrypted is migrated as "not configured", with a warning.
- The old profile tables are left untouched.
Behaviour changes to know about
- New Task: it can no longer select extensions. The API refuses `extensionProfile` and the UI selector is gone, so New Task runs get no extensions until the next issue adds auto-apply for tasks. Submissions already queued before the upgrade keep their extensions for their first task, through the legacy mapping.
- Unconfigured credentials: a Bearer server without a credential is now skipped at launch instead of failing the run. This happens after a native export/restore, or when a secret couldn't be decrypted during migration.
API, export, UI and docs
- The REST routes now read the whole library, save it, toggle one item, replace one secret, show history and validate. The old profile routes are removed. The OpenAPI spec and client types are regenerated.
- The native export erases the library's encrypted credentials.
- A background agent did the UI adaptation; its UI typecheck, lint, 471 unit tests and the two Playwright specs pass. The settings screen now edits the single library. The automation editor has a new selector for the items an automation adds.
- `agent-extensions.md` and the automations docs describe the library, item limits, the automation `extensions` field and the migration. The upgrade section mentions profiles once to explain what changed.
Tests
- New: `resolveExtensionSet` unit tests, store tests (revision conflicts, secret custody, enable/disable while an automation uses the item, removal refused, denial for non-admins and stale sessions), automation launch tests, and migration tests.
- Adapted: the existing extension suites (gateway, endpoint policy, staging, launch fencing), plus the REST, MCP, submission and export tests.
I added two preview images of the changed server and skill items in the settings screen.
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
CI failed: Validate unsigned linux-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned linux-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit d56ba19 Processed 2 comments:
Summary of ChangesI fixed both failing CI checks with a lockfile-only update; nothing in this PR's own code caused them. Cause: both package jobs failed at the "Audit committed dependency resolution" step. The audit flagged Fix: in Checks:
Whichever of this PR or #3508 merges second will either conflict on this one line or merge cleanly, since both make the same change. There is no visual change, so I didn't create a preview. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… nothing in this PR's own code caused them. I fixed both failing CI checks with a lockfile-only update; nothing in this PR's own code caused them. **Cause:** both package jobs failed at the "Audit committed dependency resolution" step. The audit flagged `@hono/node-server` 2.1.5, which two advisories published since the last green run cover (GHSA-qv5m-9pm6-hqp3 and GHSA-jpvv-r467-5p4w, both for versions below 2.1.6). Main's lockfile still has 2.1.5, so the failure isn't specific to this PR. Open PR #3508 has the same fix but isn't merged yet. **Fix:** in `package-lock.json`, `@hono/node-server` goes from 2.1.5 to 2.1.8. That's inside the range the project already allows, so no `package.json` change was needed and nothing else in the lockfile moved. I made the update with npm 11. **Checks:** - Re-running `npm install --package-lock-only` with npm 10 (the version CI uses on Node 22) leaves the lockfile byte-identical. - `npm run audit:runtime` and `npm run desktop:audit:packaging` both pass. Together these are the step that failed in CI. Whichever of this PR or #3508 merges second will either conflict on this one line or merge cleanly, since both make the same change. There is no visual change, so I didn't create a preview. PR: #3513 Comment by: @propr-dev[bot] (ID: 6839148834) Comment by: @propr-dev[bot] (ID: 6839149152) Model: Claude Opus 5.5
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThis PR replaces extension profiles with a shared library and integrates resolution across automation launches, management APIs, UI, and migration. It needs changes before merge: migration can activate previously disabled selections, existing automation runs lose their selections, and UI toggles bypass stale-edit protection. ✅ Scoped gateway grants — New grants persist the resolved server names, and gateway reads filter the revision to those names. ✅ Launch fencing — Prepared launches compare their selected items and bearer credentials against the current library while allowing unrelated edits. ✅ Broad validation coverage — Tests cover resolution limits, credential custody, management authorization, and launch fencing. The supplied checks report 34 passed, none failed, and one pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Toggles bypass stale-edit protection
F2: 🔴 Migration reactivates disabled selections
F3: 🔴 Existing automation runs lose extensions
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation has substantial coverage and useful security improvements, but three verified state-preservation regressions block merge. This review used static tracing only, as requested; the supplied current checks have no failures. Score: 5/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit b245a46
Summary of ChangesI fixed F1, F2 and F3, and each has a new regression test. To check the new tests catch the bugs, I ran them against the original code: they fail there and pass with the fixes. The migration suite (7 tests), the UI suite (5 tests) and 197 tests across the extension, launch and both automation-processor suites all pass. The UI and core typechecks are clean, and lint is clean on the changed source files. ESLint skips F1 — toggles skipping the stale-edit check (
F2 — migration turning disabled selections back on (
F3 — existing automation runs losing their extensions (same migration file)
Two limits remain:
I didn't add preview images: the only visible change is the notice text in that rare conflict case. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…To check the new tests catch the bugs, I ran them against the original code: they fail there and pass with the fixes. The migration suite (7 tests), the UI suite (5 tests) and 197 tests across the extension, launch and both automation-processor suites all pass. The UI and core typechecks are clean, and lint is clean on the changed source files. ESLint skips `packages/core/test` because no lint config covers it, so the new migration test file isn't linted. I fixed F1, F2 and F3, and each has a new regression test. To check the new tests catch the bugs, I ran them against the original code: they fail there and pass with the fixes. The migration suite (7 tests), the UI suite (5 tests) and 197 tests across the extension, launch and both automation-processor suites all pass. The UI and core typechecks are clean, and lint is clean on the changed source files. ESLint skips `packages/core/test` because no lint config covers it, so the new migration test file isn't linted. **F1 — toggles skipping the stale-edit check** (`propr-ui/src/pages/SettingsPage/AgentExtensionsSection.tsx`) - The draft now remembers the revision it was loaded from, and Save library sends that revision instead of the newest one the server returned. - A toggle moves that revision forward only when the server's new revision is exactly one past it, meaning nothing else changed in between. Otherwise the old revision is kept, so saving the stale draft is refused. The notice then says the library was changed elsewhere and to discard changes to reload it. - The revision is kept in a ref, so several quick toggles can't read an outdated value. - I updated the existing test for two toggles in a row (it now saves against revision 5). A new test covers your scenario: another administrator narrows a server's repositories, a toggle comes back two revisions ahead, and the save still goes out against revision 3. **F2 — migration turning disabled selections back on** (`packages/core/src/extensions/extensionLibraryMigration.ts`) - Whether a server is enabled is now part of what makes two servers "identical". A server that is disabled in one profile, or that sits in a disabled profile, no longer merges into an enabled copy. It becomes its own disabled item (renamed with a `-2` suffix), which doesn't widen the enabled item's limits. - Skill bundles can only appear once in the library, so they can't be split the same way. Instead, a disabled profile's mapping leaves out a bundle that an enabled profile switched on. A bundle that only disabled profiles selected stays disabled and stays in their mappings. - The new test checks that automations selecting either kind of disabled source launch with nothing, and that the skipped reason is `disabled`. **F3 — existing automation runs losing their extensions** (same migration file) - The migration now also updates the saved definitions of automation runs that haven't finished: queued, deferred, running, report ready, awaiting approval and acting. Where a saved definition still names a profile, it gains the matching `extensions` items. The old profile field is kept, as it is on automations. - If the profile no longer exists, the run gets an empty list and a warning. Finished runs are left unchanged. This happens in the same transaction as the rest of the migration, so it stays idempotent. - The test covers queued, awaiting-approval and acting runs, a missing profile, a finished run and an already-converted run. Two limits remain: - The F1 check is deliberately cautious: if someone else only toggled an item in between, saving your draft is refused too, and you reload before saving. - During a rolling upgrade, an API server still on the old code could create a run after the migration; that run wouldn't be converted. Automations saved by old code in that window have the same gap, as before. I didn't add preview images: the only visible change is the notice text in that rare conflict case. PR: #3513 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThis PR implements the instance-wide extension library across storage, launch resolution, automations, UI, migration, and documentation. It needs changes before merge: the changed paths expose a network-policy race, broaden migrated skill permissions through disabled profiles, and weaken secret-disclosure validation. ✅ Bounded resolution — The shared resolver deterministically prioritizes explicit items, enforces per-run limits, and reports skipped and omitted items. ✅ Restricted gateway grants — Library grants persist the resolved server selection, and gateway reads filter the immutable snapshot to that selection. ✅ Revision protection — Library saves require an expected revision, and launch fencing checks changes to the items actually selected. This review is a static analysis of the supplied code; no commands were run. The supplied current checks show 30 passed, four pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F4: 🔴 Capture network policy before resolving extensions
F5: 🔴 Exclude disabled profiles from active skill limits
F6: 🔴 Check outgoing fields against previous secrets
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation has substantial coverage and useful revision and grant protections, but three verified defects remain in changed security and migration behavior. Passing checks do not cover these sequences; four checks are still pending. Score: 5/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
Warning This work may be incomplete. The agent stopped producing output and the stall watchdog ended the run before it could confirm that all requested work was complete. The available changes were committed instead of discarded.
Last Agent UpdateI fixed F4, F5 and F6, each with a new regression test. To check the tests catch the bugs, I ran each one against the original code: they fail there and pass with the fixes. F4: network policy captured before the library is read
F5: disabled profiles no longer widen a skill's limits
F6: public fields checked against previously stored credentials
Verification
Not changed: if a Claude or Codex launch somehow reaches There's no visible UI change, so I made no previews. Remaining WorkThe agent stopped before validating every request. Review this partial commit against the follow-up instructions and complete any unaddressed implementation, tests, or documentation. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…check the tests catch the bugs, I ran each one against the original code: they fail there and pass with the fixes. I fixed F4, F5 and F6, each with a new regression test. To check the tests catch the bugs, I ran each one against the original code: they fail there and pass with the fixes. **F4: network policy captured before the library is read** - **Before:** both processors read the library first to decide whether a run had extensions. Only those runs got the network-policy scope. If an item was enabled after that read, the run still launched it, and its gateway grant fell back to `open`. - **Fix:** both the report and action processors now decide without reading the library. Any Claude or Codex automation run with an extension request starts under `runWithNetworkPolicy`, before its items are resolved. The check is in `src/jobs/agentRuns/agentTaskOptions.ts`; I removed the library-reading `extensionsApply` from core. - **Behaviour change:** every agent run builds an extension request with auto-apply on, so in practice all Claude and Codex automation runs now run under the instance network policy. Before, only runs where items actually applied did. On an instance in restricted mode, those runs are now restricted even when no library item applies. - **Regression tests:** one in each processor suite. The library's only item is disabled when the processor decides, and gets enabled just before launch. The test then checks the grant carries the restricted policy. On the original code it came out `open`. **F5: disabled profiles no longer widen a skill's limits** - **Fix:** in `extensionLibraryMigration.ts`, when a bundle has any enabled source, its limits now come only from enabled sources. Limits are combined only when every source is disabled. Disabled profiles are still left out of the mapping, as before. - **Regression tests:** an enabled profile limited to `team/private` and `claude-main` shares a bundle with an unrestricted disabled profile. Both processing orders keep the limits, and a launch outside them skips the bundle. A second test checks that a bundle with only disabled sources still combines their limits. - **Sibling check:** server merging already keeps enabled and disabled copies as separate items, so it doesn't have this problem. **F6: public fields checked against previously stored credentials** - **Fix:** `saveLibrary` now refuses the save if any public field contains a stored credential or a supplied replacement. The check runs before credentials are cleared, dropped with their server, or withheld because the endpoint changed. The existing check in `writeRevision` is unchanged. - **Regression test:** it covers a credential that was cleared, one removed with its server, one withheld after an endpoint change, and one being replaced, plus a new replacement value placed in another server's tools. Each save is refused, no revision is written, and the history doesn't contain the secret. - **Sibling check:** `replaceSecret` and `setItemEnabled` keep the stored items unchanged and check against every credential, so they don't need the fix. **Verification** - **Processor suites:** both pass, 141 tests. - **Migration suites:** the migration suite (10 tests), the authority-cleanup suite (2) and the native-cleanup suite (4) pass. - **`extensionProfiles` suite:** 42 of 43 pass. The one failure, "catalog stdio is callable through both selected authorized launcher policies…", also fails on a clean copy of HEAD, so it's a problem in this container, not these changes. The file then doesn't exit after its tests finish, so the run ends on the timeout. - **Typecheck and lint:** the core and root typechecks are clean, and lint is clean on the changed source files. **Not changed:** if a Claude or Codex launch somehow reaches `executeWithExtensions` with no network scope, the grant still defaults to `open`. After this fix, every path I traced that carries extensions sets a scope first. Making that default refuse instead would break many existing tests that call it directly, so I left it. There's no visible UI change, so I made no previews. PR: #3513 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 Partial execution: The agent stopped producing output and the stall watchdog ended the run before it could confirm that all requested work was complete.
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
CI failed: Validate unsigned linux-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned darwin-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned linux-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 2e5489f Processed 2 comments:
Summary of ChangesI fixed both failing package checks by bumping Cause: both jobs failed at the "Audit committed dependency resolution" step ( Fix:
Checks:
No preview images: this change has nothing visible in the UI. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…4.13.12 to 4.13.18. Nothing in this PR's own code caused the failures. I fixed both failing package checks by bumping `hono` from 4.13.12 to 4.13.18. Nothing in this PR's own code caused the failures. **Cause:** both jobs failed at the "Audit committed dependency resolution" step (`npm run audit:runtime`). The audit flagged `hono` 4.13.12 under advisories published since the last green run (GHSA-4m76-xfj5-7975, GHSA-4h7h-rv7c-7m2v and others), which cover versions up to 4.13.15. Main still has 4.13.12, so any open PR running this job will hit the same failure. **Fix:** `hono` is pinned to an exact version in the root `package.json` `overrides`, so changing the lockfile alone wasn't enough. - `package.json`: `overrides.hono` is now `4.13.18`, the latest 4.13.x. - `package-lock.json`: only the `node_modules/hono` entry changed (version, resolved URL, integrity). I made this edit with npm 11. **Checks:** - `npm run audit:runtime` passes ("runtime dependency audit passed"). - `npm run desktop:audit:packaging` passes ("packaging dependency audit passed"). - CI installs with npm 10 (the version bundled with Node 22). Re-resolving the lockfile with npm 10 leaves it byte-identical, so CI will use the new version as written. - No other file pins 4.13.12 except an old release entry in `CHANGELOG.md`, which I left alone. No preview images: this change has nothing visible in the UI. PR: #3513 Comment by: @propr-dev[bot] (ID: 6841117887) Comment by: @propr-dev[bot] (ID: 6841118382) Model: Claude Opus 5.5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryThe fix is already on the branch, so I made no changes. Cause: the failing check ran on Already fixed: the next commit,
CI on HEAD: 27 checks show "fail" for HEAD, but they are cancellations, not test failures. The run was stopped by No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the instance-wide extension library across storage, launch, automation APIs, UI, and documentation. It needs changes before merge because concurrent UI edits can be overwritten and migration or credential failures can disrupt automation behavior. ✅ Scoped gateway grants — Library grants persist the resolved server selection, and the gateway filters the revision against it. ✅ Revision fencing — Saves compare the expected revision, while pending launches compare their selected items and credentials against the current library. ✅ Focused coverage — Added tests cover migration, credential custody, item limits, authorization, and launch fencing. The supplied current checks show 29 passed, five pending, and no failures. This review uses static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F7: 🔴 No-op toggles can bypass edit conflicts
F8: 🔴 Missing catalog credentials fail automatic runs
F9: 🔴 Failed migration silently strips automation extensions
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Align permission contract wordingThe generated ScoreThe implementation has substantial coverage and useful security boundaries, but the verified conflict-handling and launch regressions prevent merge readiness. Pending checks do not independently lower the score. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 0e207b0
Summary of ChangesI fixed F7, F8 and F9, and each has a regression test. I checked that every new test fails against the original code and passes with the fixes. F7 – a no-op toggle no longer hides another admin's edit (
F8 – a catalog server without credentials is skipped, not a failed run (
F9 – a failed migration no longer strips automation extensions (
Choices to review:
Checks: the extension, migration, trigger, scheduler, cost-gate, run/action processor, submission and launch suites pass: 347 tests, 0 failures, 25 skipped because they need a Redis server. The four API suites pass (61 tests) and the UI suite passes (6 tests). The root, core, API and UI typechecks are clean, as is lint on the changed core and UI files; the shared package has no lint config, so its change isn't linted. I didn't run the full repository test suite. Found separately, not changed: when an explicitly added item is skipped for a missing credential, the resolver also lists it a second time as an auto-apply skip. This already happened for HTTPS servers, so I made the new test tolerate it rather than fix it. I made no previews: none of these fixes changes anything on screen. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ecked that every new test fails against the original code and passes with the fixes. I fixed F7, F8 and F9, and each has a regression test. I checked that every new test fails against the original code and passes with the fixes. **F7 – a no-op toggle no longer hides another admin's edit** (`AgentExtensionsSection.tsx`) - The editor now remembers the saved items its draft is based on. After a toggle, it adopts the returned revision only if it is exactly the next revision and differs from that base by just the toggled `enabled` flag. - Any other result keeps the old base and shows "changed elsewhere". That includes the case in the finding, where the toggle wrote nothing and returned the other admin's revision 4. Saving the stale draft is then sent against revision 3 and refused. - New UI test covers that sequence. **F8 – a catalog server without credentials is skipped, not a failed run** (`extensionLibrary.ts`, `extensionProfileStore.ts`) - At launch, the resolver now reads whether each catalog server's credentials are present in the environment now, rather than trusting the status saved with the library. A missing credential gives `secret_not_configured` and the server is skipped. This applies whether the server was auto-applied or added explicitly. The launch fence uses the same check. - A catalog entry that is missing or whose digest changed is not skipped, so it is still refused as before. Capability mismatches are also still refused. - The old test that expected `resolveLaunch` to throw now expects the skip. A new test runs `executeWithExtensions` and shows the run goes ahead without the server, and is still refused when the catalog identity is wrong. **F9 – a failed migration no longer strips automation extensions** (`extensionLibraryMigration.ts`, `agentRunTrigger.ts`, `taskSubmissionService.ts`) - **Readiness check:** the migration counts as finished once its completion marker is committed, or when the instance never set up profiles. Startup is unchanged and still never blocked. - **New runs:** a definition that still has an untranslated profile selection makes `triggerAgentRun` retry the migration on the spot. If that succeeds, the run's snapshot gets the translated items. If it still fails, the trigger is refused with 409 `EXTENSIONS_MIGRATION_PENDING` and no run is created. A scheduled slot stays pending and is tried again on the next sweep. Automations without a legacy selection are not affected. - **Runs queued before the upgrade:** runtime validation refuses a run whose snapshot still names its old profile, until the migration has translated it. - **Queued legacy submissions:** a missing mapping retries the migration. If it still fails, the task fails with an explicit error instead of running with no extensions. - New test file `test/extensionLibraryMigrationReadiness.test.ts` covers these cases. **Choices to review:** - I used 409, not 503, because the REST route turns any status of 500 or above into a generic "failed" message, which would hide the reason. - Pre-upgrade runs are refused rather than held. Validation failure marks them failed, with the migration-pending reason. Making them wait instead would need retry handling added to both worker processors. Say if you want that. **Checks:** the extension, migration, trigger, scheduler, cost-gate, run/action processor, submission and launch suites pass: 347 tests, 0 failures, 25 skipped because they need a Redis server. The four API suites pass (61 tests) and the UI suite passes (6 tests). The root, core, API and UI typechecks are clean, as is lint on the changed core and UI files; the shared package has no lint config, so its change isn't linted. I didn't run the full repository test suite. **Found separately, not changed:** when an explicitly added item is skipped for a missing credential, the resolver also lists it a second time as an auto-apply skip. This already happened for HTTPS servers, so I made the new test tolerate it rather than fix it. I made no previews: none of these fixes changes anything on screen. PR: #3513 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the instance extension library across storage, launch resolution, automation APIs, UI and documentation. It needs changes before merge because migration can discard configuration or restore extensions an owner explicitly removed. ✅ Scoped gateway grants — Grants persist the resolved server selection, and gateway reads filter the library snapshot to that selection. ✅ Revision protection — Library saves require the expected revision; launch fencing compares the items and bearer credentials actually used by the prepared run. ✅ Focused regression coverage — Added tests cover resolution limits, credential custody, stale administration, launch fencing and migration retries. The supplied checks show 32 passed, none failed and two pending. This review uses static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F10: 🔴 Migration permanently drops items exceeding capacity
F11: 🔴 Clearing extensions can resurrect the legacy selection
F12: 🔴 Migration completion can leave a trigger using stale extensions
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Align generated permission descriptionsThe generated ScoreThe core library and launch changes have substantial targeted coverage, but migration still has configuration-loss and stale-state defects that require correction. Current checks show no failures, with two still pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 1a13d19
Summary of ChangesI fixed F10, F11 and F12, and each has a regression test. Every new test fails against the original code and passes with the fixes. F10: migration dropped items that didn't fit (
F11: a saved removal could come back after migration (
F12: a trigger could use a stale definition (
Same defect in the run processors: Verification:
Separate issue, not changed: the migration still skips, with only a warning, a server whose stored descriptor fails validation, or a bundle whose data is missing. It still marks the migration complete afterwards. That's a different cause from the capacity loss in F10, so I left it out of scope. No previews: none of this changes anything visible. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…very new test fails against the original code and passes with the fixes. I fixed F10, F11 and F12, and each has a regression test. Every new test fails against the original code and passes with the fixes. **F10: migration dropped items that didn't fit** (`extensionLibraryMigration.ts`) - The migration now finds every item that doesn't fit before it writes anything: - servers beyond the 32 the library holds (counting items already in it). - skill bundles beyond 32. - any server or bundle whose combined repository or agent limits are longer than 64. - Before, these were skipped or cut short with `limit(...).slice(...)`. Now any overflow throws an error, so the whole transaction rolls back, including the completion marker. - Nothing is committed, so automations keep their untranslated selection and stay refused with 409 instead of running without their servers. The migration retries at the next start. - The startup log lists the items that don't fit and says how to fix it: remove library items in Settings, or retire unused profiles by setting `extension_profiles.deleted`, then restart. The upgrade section of `agent-extensions.md` now describes this. - Tests: 5×8 servers, 33 skill bundles, and combined limits of 80 repositories. The first test also checks that the migration completes once a profile is retired. **F11: a saved removal could come back after migration** (`serializeAutomationExtensions` in `packages/shared/src/extensionLibrary.ts`) - Any value written to `extensions`, including `null` or empty lists, is now stored as JSON. Only a missing value stays SQL NULL. - Every migration and pending check looks for rows where `extensions` is NULL, so a saved clear is no longer treated as an untranslated row. It survives later migrations, and a still-failing migration no longer holds that automation back. - Tests cover clearing with `null` and with empty lists, followed by a successful migration and a trigger. **F12: a trigger could use a stale definition** (`withMigratedLegacyExtensions` in `agentRunTrigger.ts`) - When the stored row has a profile selection, the trigger now always takes the saved `extensions` from the database, not the copy the caller holds. - If that saved value is still NULL, it retries the migration and reads the row again, or refuses with 409 as before. - Test: the definition is read, another process completes the migration, then the trigger runs with the stale copy. The run now gets `docs`. **Same defect in the run processors:** `validateAgentDefinitionRuntime` had the same stale-read gap for run snapshots saved before the upgrade. If the migration finished after a processor read the run, the check passed and the snapshot launched with no extensions. Now, once the migration is complete, the processor's copy of the snapshot gets the same translation the migration saved (from `extension_legacy_profile_items`). I extended the existing snapshot test to check this. **Verification:** - The migration suite (13 tests) and the readiness suite (8) pass, as do `agentDefinitionRoutes` (28), `mcpAgentRuns` (16) and `extensionProfiles` (44). - Shared and core typechecks pass, and core ESLint is clean on the changed source files. `agentRunTrigger.ts` is now 399 lines, just under the 400-line limit. **Separate issue, not changed:** the migration still skips, with only a warning, a server whose stored descriptor fails validation, or a bundle whose data is missing. It still marks the migration complete afterwards. That's a different cause from the capacity loss in F10, so I left it out of scope. No previews: none of this changes anything visible. PR: #3513 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThis PR replaces profiles with a shared extension library and carries the change through launch resolution, administration, automation configuration, and documentation. It needs changes before merge: queued legacy submissions can acquire a different extension selection, and existing submission retries lose compatibility. ✅ Bounded resolution — Explicit items receive priority over automatic items, with deterministic ordering and recorded omissions. ✅ Narrow gateway grants — Library grants persist the resolved server names, and gateway reads filter the revision to that selection. ✅ Transactional migration — Capacity failures roll back the library, mappings, and completion marker together. Review was static; no commands or tests were run. No current-head check runs were reported. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F13: 🔴 Preserve queued submissions’ authorized revision
F14: 🔴 Keep existing submission replays compatible
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation has substantial targeted coverage and sound resolution and grant boundaries, but the two upgrade regressions require correction. Current-head checks have not independently confirmed the reported validation. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit df9fd65
Summary of ChangesI fixed F13 and F14, and each has regression tests. I ran the new tests against the original source files: they fail there and pass with the fixes. F13: queued submissions keep the revision they were authorized for
F14: retrying an existing submission still works after the upgrade
Verification
Found along the way, not changed:
🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…he new tests against the original source files: they fail there and pass with the fixes. I fixed F13 and F14, and each has regression tests. I ran the new tests against the original source files: they fail there and pass with the fixes. **F13: queued submissions keep the revision they were authorized for** - The legacy mapping now records which profile revision its items came from. I added a `revision` column in `20261113000000_extension_library.js`, plus an `alterTable` for databases that already created the table. A mapping with no recorded revision matches no selection. - `submissionExtensionsForRun` now refuses the task if the submission's sealed selection names a different revision than the one migrated. The error says the revision was superseded and asks the user to submit again. This is what the old launch check did. - **Same defect in two related paths, also fixed:** the migration gave the current revision's items to automation definitions and to queued automation run snapshots, even when they had selected an older revision. The old code rejected those launches too. - These now get no items and a warning saying the selection was a superseded revision. This is how the migration already treats an unavailable profile. - The same applies to the launch-time lookup for run snapshots read before the migration finished. - Unlike submissions, these are not refused, so such an automation now runs without extensions instead of failing. - I added a line to the upgrade section of `agent-extensions.md` explaining this. **F14: retrying an existing submission still works after the upgrade** - **Server:** the rejection of `extensionProfile` now comes after the lookup by idempotency key. - An exact retry of a submission accepted before the upgrade gets its receipt back. It still needs the preflight header and a durable administrator, as before, because a retry can still seal the submission's extension authority. - A modified payload under the same key still gets 409, and a new key with a profile selection still gets 400. - **UI (`submitTask`):** when a restored draft still has the old fields, the client first resumes by key through the existing `/retry` endpoint. It only sends a new submission without those fields if that returns 404. This works whether the stored submission was created with or without the selection. Other errors are shown and never turn into a new submission. **Verification** - Five server suites pass: the API submission routes, the core migration tests, extension profiles, the extension launch integration, and migration readiness. - The UI submission-helper and New Task page tests pass (23). - Typechecks for core, API (after rebuilding core) and UI are clean. Lint passes with zero warnings on all changed files. - I updated the existing tests and fixture that write the mapping, so they now include its revision. - I didn't create a preview because nothing visible changed. **Found along the way, not changed:** - The submission route reports every 403 as "Repository not found or not accessible" (404). That includes a retry refused because the header is missing or the user isn't an administrator. The old code behaved the same way, and the new test checks for the 404. - The `/retry` route never seals a legacy submission's extension authority. So in the rare case where the old server saved a submission but crashed before sealing it, resuming through the UI gives that task no extensions. An exact POST retry does seal it. PR: #3513 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR replaces extension profiles with an instance library and carries the change through launch resolution, migration, APIs, UI, and documentation. It needs changes before merge because automation saves can race library removal and persist references to deleted items. ✅ Bounded resolution — The shared resolver prioritizes explicit items, sorts results deterministically, and reports skipped and omitted items. ✅ Restricted run grants — Library gateway grants persist the resolved selection and expose only those servers. ✅ Migration recovery — Migration writes are transactional, preserve legacy tables, and refuse capacity overflow without committing partial data. The supplied current checks show 34 passed, none failed, and one pending. This review used static inspection only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F15: 🔴 Fence automation additions against library removal
SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Preserve optional input defaultsThe generated ScoreThe implementation has substantial coverage and useful migration safeguards, but the cross-resource save race needs correction. Passing checks do not cover the demonstrated interleaving. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit be2df91
Summary of ChangesI fixed F15: an automation can no longer be saved with a library item that was removed while the save was in progress. On both create and update, the item check now runs again inside the same database transaction that writes the automation. How it works
Related problem I also closed: the update decided whether the request adds items from a copy of the automation read before the slow validation step. If the automation changed in that window, a non-administrator resending an old item list could add an item back without the administrator check. The update now refuses that with a 409. This is the same window and the same added items, so I fixed it here rather than leaving it. Tests (in
All three fail against the original code: 201 with a dangling item, no lock taken, and 200. With the fix, the full route suite (31 tests) passes, as do the definition store, contract, extension store and launch suites (81 tests). Core and API typechecks are clean, and lint with zero warnings is clean on the changed files. To run the API tests yourself, rebuild There are no visible UI changes, so no previews were made. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…brary item that was removed while the save was in progress. On both create and update, the item check now runs again inside the same database transaction that writes the automation. I fixed F15: an automation can no longer be saved with a library item that was removed while the save was in progress. On both create and update, the item check now runs again inside the same database transaction that writes the automation. **How it works** - **New store method** (`ExtensionLibraryStore.assertAdditionInTransaction` in `extensionProfileStore.ts`): it first takes the library's write lock with a do-nothing update of the library row. Then, inside the automation's transaction, it checks again that the actor is still an administrator and that every added item exists. `assertItemsExist` can now read through a transaction. - **Why this closes the gap:** a library save already checks which automations use an item, inside its own transaction. SQLite lets only one write transaction run at a time, so the two now happen one after the other. Either the removal sees the new reference and is refused, or the removal commits first and the automation save is refused with "items not found". Both can't succeed. - **Definition store** (`agentDefinitionStore.ts`): `createAgentDefinition` and `updateAgentDefinition` take an optional `guard`. When one is given, the update reads the row, runs the guard and writes the row in one transaction. The guard gets the row as stored at that moment. Calls without a guard behave as before. - **Routes** (`automationDefinitionRoutes.ts`): create and update pass the guard, and the existing header, permission and existence checks are all kept. On update, the guard works out which items are being added by comparing the request with the row read inside the transaction, not with the one read earlier. Removal-only updates still need no administrator. **Related problem I also closed:** the update decided whether the request adds items from a copy of the automation read before the slow validation step. If the automation changed in that window, a non-administrator resending an old item list could add an item back without the administrator check. The update now refuses that with a 409. This is the same window and the same added items, so I fixed it here rather than leaving it. **Tests** (in `packages/api/test/agentDefinitionRoutes.test.ts`) - **Removal lands first:** the save is paused after its first check, the item is removed, then the save resumes. On create and update, the save is now refused (400) and no automation is left pointing at the removed item. - **Save takes the lock first:** a removal that starts while the automation save holds the lock is refused with "Automations add these extensions explicitly". - **Automation changed under a non-admin update:** the item is removed from the automation while the update is paused, and the update is then refused (409). All three fail against the original code: 201 with a dangling item, no lock taken, and 200. With the fix, the full route suite (31 tests) passes, as do the definition store, contract, extension store and launch suites (81 tests). Core and API typechecks are clean, and lint with zero warnings is clean on the changed files. To run the API tests yourself, rebuild `packages/core` first: the routes load `@propr/core` from its built output, not the source. There are no visible UI changes, so no previews were made. PR: #3513 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the instance-wide extension library across storage, launch resolution, automation APIs, UI and migration. It needs a localized migration correction before merge. ✅ Bounded run authority — New gateway grants persist the resolved selection and expose only those servers. ✅ Concurrent edit protection — Library saves require the loaded revision, and automation additions recheck authorization and item existence inside the write transaction. This review used static tracing of the supplied code; no commands or tests were run. Current checks show 29 passed, five pending and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F16: 🔴 Deduplicate merged servers in migrated selections
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation has substantial targeted coverage and useful authorization safeguards, but migration can persist selections that its own API rejects. Fix that defect and complete the pending checks before merging. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 90803ad
Summary of ChangesI fixed F16: a migrated profile with two identical servers under different names now lists the merged library item only once, so the migrated automation still passes the Fix (
Other places checked
Regression test (
Verification
Found separately (not changed)
This is a backend migration change with nothing visible in the UI, so I didn't make any previews. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…under different names now lists the merged library item only once, so the migrated automation still passes the `extensions` validation.
I fixed F16: a migrated profile with two identical servers under different names now lists the merged library item only once, so the migrated automation still passes the `extensions` validation.
**Fix** (`packages/core/src/extensions/extensionLibraryMigration.ts`)
- The server loop now adds a name to a profile's mapping only if it isn't already there. Before, two servers that merged into one item (say `docs` and `docs-copy` with the same endpoint, tools, capability, authentication and token) produced `servers: ['docs', 'docs']`.
- The fix is applied before anything is saved. The saved legacy mapping, the translated automation definitions and the snapshots of nonterminal runs are all built from that per-profile mapping, so all three are now free of duplicates.
- I added one sentence about this to the migration's doc comment.
**Other places checked**
- **Readers of the mapping:** queued New Task submissions (`legacyProfileExtensions`), runs captured before the upgrade and read at launch (`legacySnapshotExtensions`), and the definition read at trigger time (`storedLegacyDefinitionExtensions`). All three only read what the migration saved, so the one fix covers them.
- **Skills:** a skill bundle can't be listed twice. The old profile contract already rejected repeated bundle ids within a profile, and the mapping is built per profile.
- **Other writers of the automation `extensions` column:** the only other path is the normal create/update, and it already validates against the automation schema. The migration was the one place that wrote without validating.
**Regression test** (`packages/core/test/extensionLibraryMigration.test.ts`)
- **Setup:** one profile holds `docs` and an identical `docs-copy`, plus a different server `search`. An automation definition and a queued run both select that profile.
- **Library:** after the migration it has exactly `docs` and `search`.
- **Selections:** the saved legacy mapping, `legacySnapshotExtensions`, the translated definition and the run snapshot are all `{ servers: ['docs', 'search'], skills: [] }`.
- **Editing:** the definition and run selections pass `validateAutomationDefinitionInput`, and so does the definition with another server added. That added-server case is the edit that used to be rejected.
**Verification**
- The new test fails against the original migration file and passes with the fix.
- The whole migration suite passes (15/15), as does `test/extensionLibraryMigrationReadiness.test.ts` (8/8).
- Lint on the changed core source file and the core typecheck are clean. The core lint config only covers `src/`, so the test file isn't linted, locally or in CI.
**Found separately (not changed)**
- The migration runs once per instance. Any dev or test instance that already ran the earlier code on this branch keeps its duplicate entries; this fix doesn't repair them.
- `ExtensionItemsSelector.toggle` in the UI keeps any duplicates already in a selection. With the migration fixed, valid data can't reach it with duplicates, so I left it as is.
This is a backend migration change with nothing visible in the UI, so I didn't make any previews.
PR: #3513
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the instance-wide library across storage, launch resolution, automation APIs, UI, migration, and documentation. It needs a targeted correction before merge. ✅ Bounded resolution — Explicit items take precedence over automatic items, with deterministic ordering and recorded omissions. ✅ Scoped gateway grants — New grants persist the resolved server names, and gateway reads filter the revision to that selection. ✅ Migration rollback — Capacity overflow aborts the migration transaction without committing a completion marker or partial automation mappings. This was a static review of the supplied code; no commands were run. The authoritative checks show no failures and two pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F17: 🔴 Keep disabling independent of credential decryption
SuggestionsThese are optional follow-ups and are not sent to S4: 🟢 Cover synthetic pool network scopeThe new ScoreThe implementation has substantial coverage and careful grant scoping, but the demonstrated inability to disable a still-usable catalog item needs correction. Pending checks should also complete before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 595f348
Summary of ChangesI fixed F17: an administrator can now disable a library item even when the library's credentials can't be decrypted, for example after a raw restore under a different encryption root. The new tests pass and fail against the original code. 168 core tests and 17 API/launch tests pass, and lint and typecheck are clean. The fix (
Decisions for you
Tests
Docs: Not fixed (outside F17): saving the library, replacing or clearing a secret, removing an item no automation uses, and validation still need the matching root. They rewrite or read the decrypted credentials. There's no visual preview because nothing in the UI changed. I also corrected a memory note: core's lint covers only 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…m even when the library's credentials can't be decrypted, for example after a raw restore under a different encryption root. The new tests pass and fail against the original code. 168 core tests and 17 API/launch tests pass, and lint and typecheck are clean. I fixed F17: an administrator can now disable a library item even when the library's credentials can't be decrypted, for example after a raw restore under a different encryption root. The new tests pass and fail against the original code. 168 core tests and 17 API/launch tests pass, and lint and typecheck are clean. **The fix** (`packages/core/src/extensions/extensionProfileStore.ts`) - **Toggle:** `setItemEnabled` no longer decrypts anything. The new revision keeps the previous revision's encrypted credentials byte for byte, stored as `<sealing revision>:<sealed>`, along with the earlier secret statuses. Restoring the matching root makes them readable again. As a guard, credentials carried over this way must stay with the same Bearer servers and URLs. - **Every reader understands that format:** the store's internal unseal (used by saves, secret replacement, validation and the fence), the gateway's grant read (`grantSnapshot`), and the startup migration when it merges into an existing library. - **Resolver:** it never decrypted, so it already treats the item as disabled. - **Pending-launch fence:** it already refused a launch whose item was disabled before comparing credentials. I added a shortcut: when both revisions hold the same encrypted bytes, it skips decryption. So toggling an unrelated item doesn't block a pending launch, even under a different root. **Decisions for you** - **Enabling** also skips decryption now, because the toggle is a single code path. Before, it failed under a different root. Say if you want enabling to keep requiring the matching root. - **Weaker credential binding:** encrypted credentials were bound to one exact revision. Carried ones are bound to the earlier revision that encrypted them, so someone with database write access could copy them into a later revision. That person can already edit the unauthenticated snapshot, so I don't think this adds real exposure. Still, it changes what the binding guarantees. **Tests** - **Store test:** a catalog stdio item an automation adds, restored under another root. It covers: - the item still launches. - disabling succeeds. - the resolver skips the item as disabled. - the fence refuses that item's pending launch. - a pending launch using only an untouched Bearer item still activates. Back under the original root, the credentials are read correctly by validation, a new run's grant and a later save. - **Migration test:** a library disabled by a toggle before a retried migration keeps its credentials. **Docs:** `agent-extensions.md` now says toggling never decrypts credentials and lists what still needs the matching root. **Not fixed (outside F17):** saving the library, replacing or clearing a secret, removing an item no automation uses, and validation still need the matching root. They rewrite or read the decrypted credentials. There's no visual preview because nothing in the UI changed. I also corrected a memory note: core's lint covers only `src/`, not its tests. PR: #3513 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR replaces extension profiles with an instance-wide library across persistence, automation launch, management APIs, UI, and migration. Based on the supplied code, it is merge-ready within the reviewed scope, conditional on the remaining checks passing. ✅ Restricted run grants — Gateway snapshots filter servers through the run’s persisted selection, preventing access to unrelated library servers. ✅ Concurrent edit protection — Library saves require an expected revision, and automation additions recheck item existence inside the definition-write transaction. ✅ Migration recovery — Migration failures roll back their completion marker, while untranslated legacy selections are prevented from silently launching without their extensions. This was a static review; no commands or tests were run. The supplied status reports 30 passed checks, four pending, and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S5: 🟢 Align permission contract wordingIn ScoreThe implementation provides substantial coverage of migration, credential custody, launch fencing, and concurrent changes. No merge blocker was verified from the supplied diff; final readiness remains conditional on the pending checks. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3509
Branch:
3509/claude-opus-5-5-extension-library-one-ins-20261112-2236-jn4Commits: ✅ Changes committed (44777df)
AI Processing Completed
Execution Details:
Summary:
Issue #3509 is implemented: extension profiles are replaced by one instance-wide extension library of MCP servers and skill bundles, each with its own limits. All the extension, automation and submission test suites I touched pass, and server/UI typechecks and lint are clean. I did not run the full repository test suite.
Library model (
packages/shared/src/extensionLibrary.ts)enabled,repositories,agentsandautoApply(defaulttruefor new items). The library holds up to 32 servers and 32 skill bundles; a run still carries at most 8 of each.resolveExtensionSetreturns, sorted by name:autoApply.skippedwith a reason, never an error. Reasons: missing, disabled, out of limits, wrong runtime, needs write authorization, or credential not configured.omitted.Store (
extensionProfileStore.ts, class nowExtensionLibraryStore)enabled; it is never refused, even when an automation adds the item.Launch
extensions.resolvedevent on its task timeline, listing what was used, skipped and omitted.Automations
extensions: { servers, skills }field. It round-trips through REST, the MCP read tools andpropr automation show(including--json).instance.manage_settings, and that every named item exists.Migration
-2,-3suffix, and the rename is logged.autoApply: false, so no run changes behaviour after the upgrade.Behaviour changes to know about
extensionProfileand the UI selector is gone, so New Task runs get no extensions until the next issue adds auto-apply for tasks. Submissions already queued before the upgrade keep their extensions for their first task, through the legacy mapping.API, export, UI and docs
agent-extensions.mdand the automations docs describe the library, item limits, the automationextensionsfield and the migration. The upgrade section mentions profiles once to explain what changed.Tests
resolveExtensionSetunit tests, store tests (revision conflicts, secret custody, enable/disable while an automation uses the item, removal refused, denial for non-admins and stale sessions), automation launch tests, and migration tests.I added two preview images of the changed server and skill items in the settings screen.
Detailed Logs:
50dc5623-4b62-4954-b696-a4b8ac0253b7Log files stored at:
/usr/src/app/logs/executions/issue-3509-2026-11-12T23-34-50-364Z-conversation.json/usr/src/app/logs/executions/issue-3509-2026-11-12T23-34-50-364Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3509.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Library MCP server item
An MCP server in the instance extension library settings with its new per-item fields: Enabled, repository limit, Apply automatically, and the advanced agent limit. Rendered against a mocked library API at desktop width.
Connect sign-in required. Original retained until 2027-02-10T23:34:56.467Z.
View the full-resolution original in ProPR Connect
Library skill bundle item
A skill bundle reference in the extension library with Enabled, repository limit and Apply automatically turned off (used only where an automation adds it).
Connect sign-in required. Original retained until 2027-02-10T23:34:58.368Z.
View the full-resolution original in ProPR Connect