Repository navigation
Description
Problem
Extensions currently reach an issue task only when someone selects a profile on New Task. Issue tasks started by a label and pull request follow-ups never get them. With the library in place, matching items should simply apply.
Behaviour
Which runs
- Issue implementation tasks (however they were started: label, New Task, MCP, plan/epic) and pull request follow-up tasks, including retries and replacement attempts.
- Qualified runtimes only (Claude and Codex, as today). Other runtimes and goal runs launch without extensions, silently, as today.
- Review runs and Ultrafix review steps are out of scope for this issue.
- Automation runs already resolve through the library (previous issue) and are not changed here.
What applies
At launch, resolve the current library revision with resolveExtensionSet for the run's repository and agent alias (no additional items). Resolution happens at launch, not when the task is queued, so editing the library never invalidates queued tasks; a run uses the library as it is when its container is created. The existing fencing between launch preparation and container start stays.
Authority
An auto-applied run needs no selecting administrator. The authority is the library revision, which only a durable administrator can save. Launch checks: instance identity, item enabled, current revision, capability policy, endpoint policy, catalog digest. The grant and the task event record source: auto and the library revision's audit actor as provenance.
Write servers
Unchanged rule: a server with capability: write is exposed only when the run carries explicit write authorization. For tasks that is the New Task write opt-in sealed into the submission, valid for that submission's initial task only. Label-started tasks, retries, replacements and PR follow-ups get read servers and skills only.
Label opt-outs
Labels on the issue (for issue tasks) or on the pull request (for follow-ups), read at launch:
disable-mcps: no MCP serversdisable-skills: no skill bundlesdisable-extensions: neither
The labels only remove; they never add. Label names are constants in shared code and documented. They do not affect automations.
Codex
A Codex run with extensions ignores CODEX_HOME/config.toml and refuses a .codex/config.toml in the workspace. Auto-apply must not break runs that work today: when a Codex run would hit either condition (the operator config defines a custom model provider or profile, or the workspace contains .codex/config.toml), launch without auto-applied extensions and record a task event explaining why. The same rule applies to auto-applied items on automation runs; items an automation adds explicitly keep today's strict behaviour (refuse).
New Task
- Remove the profile selector from New Task and from the task submission payload for new submissions. Keep the write opt-in checkbox (shown only when a write server would apply to the chosen repository and agent).
- Add a "Run without extensions" switch that adds the
disable-extensionslabel to the created issue. - Show, read-only, which library items will apply for the chosen repository and agent.
Visibility
Each run records one task event listing the applied server names and skill names, the library revision, which were auto-applied and which were added explicitly, items left out because of the per-run limit, skipped additional items with reasons, and any label or Codex skip reason. No secrets, URLs with credentials, or tool output in the event. The existing network.extensions telemetry stays.
Acceptance criteria
- A label-started issue task in a matching repository launches with the matching read servers and skills; a non-matching repository or agent gets none.
- An item with
autoApply: falseis not applied to tasks. A disabled item is not applied; re-enabling it applies it to the next launched run. - Each of the three labels removes exactly its class of extensions, for issue tasks and for PR follow-ups.
- A write server is exposed only on the initial task of a New Task submission with the write opt-in; not on label-started tasks, retries, replacements or follow-ups.
- Editing the library between queue and launch does not fail the queued task; the task uses the new revision.
- Disabling or deleting an item, or rotating its secret, between launch preparation and container start still refuses that launch (existing fencing test adapted).
- Codex skip conditions launch without auto-applied extensions and record the reason; the run itself succeeds as before.
- Runs on unqualified runtimes and goal runs are unaffected.
- The applied-extensions task event has the fields above and contains no secret material (sentinel test).
- Docs:
docs/docs/features/agent-extensions.md(auto-apply, authority, labels, Codex rule, write rule) and the labels reference page.
Implementation
- Launch: in
packages/core/src/extensions/extensionLaunch.ts, extendexecuteWithExtensionsto issue tasks and PR follow-ups (resolve without additional items; skip other run kinds). - Pass run kind, repository, issue/PR labels and write authorization to the launch through
AgentTaskOptions(packages/core/src/agents/types.ts) fromsrc/jobs/processGitHubIssueJob.tsand the PR follow-up job; reuse labels already loaded for the task where possible to avoid extra GitHub calls. - Shared constants for the three labels; label read at launch.
- Codex pre-check for the two skip conditions next to the existing refusal in
packages/core/src/agents/impl/CodexAgent.ts. - Task submission:
packages/core/src/services/taskSubmissionService.tsandpackages/api/routes/taskSubmissionRoutes.ts(profile selection legacy only, write opt-in kept, disable switch -> label);propr-ui/src/pages/NewTaskPage.tsx. - Task event for applied extensions.
- Tests: core launch tests with the synthetic TLS MCP fixture (
test/fixtures/extensionLaunchIntegration.ts), submission tests, New Task UI test, e2epropr-ui/e2e/agent-extensions.pw.ts.
Notes
Depends on the library issue (resolveExtensionSet, library store). Ordinary task runs are one-shot: do not add any mid-run operator interaction. ProPR runs on SQLite only.
Activity
propr-dev commentedon Nov 13, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-53510/claude-opus-5-5-apply-library-extensions--20261113-0542-lwg3509-epic-extensions-library-14jissue-3510-20261113-0542-claude-opus-5-5-lwg🔍 Track Task Execution
Issue #3510 is implemented. Label-started and New Task issue tasks (i…