Repository navigation
[3510 by Claude Opus 5.5] Apply library extensions automatically to issue tasks and PR follow-ups, with label opt-outs - #3522
Conversation
…ncluding retries and replacements) and PR follow-ups now get matching library items automatically, resolved when the container is created, with label opt-outs, the write rule, the Codex skip rule and the New Task changes. New and updated tests pass; I did not run the complete repository suite.
What a run gets
- Who gets items: Issue tasks and PR follow-ups now resolve the current library at launch, so editing the library never invalidates a queued task. Only Claude and Codex task runs use it; other runtimes and goal runs launch as before.
- What a follow-up covers: "PR follow-up" here means comment-driven follow-ups, `/fix` and Ultrafix fix steps. Review runs and Ultrafix review steps don't use the library.
- Labels: `disable-mcps`, `disable-skills` and `disable-extensions` are shared constants. On the issue (or on the PR for follow-ups) they remove only their class of items, never add any, and don't affect automations. The labels are read when the job fetches the issue or PR, not with an extra GitHub call.
- Write servers: exposed only on the first task of a New Task submission with the write opt-in. The opt-in is sealed into the submission and checked against the exact run. Label-started tasks, retries, replacements and follow-ups get read servers and skills only. If the check doesn't match, the run quietly gets read items instead of failing.
- Codex: before launch, the worker checks two conditions: the operator `config.toml` defines a custom model provider or profile, or the workspace has `.codex/config.toml`. If either holds, the run launches without its auto-applied items and the task event records why. Items an automation adds explicitly keep today's strict behaviour.
- Task event: each run records one event with the library revision, run kind, provenance (`auto`, `additional` or `mixed`, plus the revision's audit actor), applied server and skill names split into auto-applied and added, omitted and skipped items with reasons, and any label or Codex skip reason. No secrets or URLs. The grant records the same source.
New Task
- The Advanced Options section lists, read-only, the items that will apply, using a new names-only endpoint, `GET /api/task-submission-extensions`.
- It has a "Run without extensions" switch, which adds the `disable-extensions` label to the issue.
- A write opt-in checkbox appears only when a write server applies. The API accepts the opt-in only with the `X-ProPR-Extensions: 1` header, and not together with the disable switch.
Decisions for you
- Who may opt into write servers: anyone with push access to the repository can tick the write opt-in. I did not require an instance administrator, which the old profile selection did. If write servers should stay admin-only, it's a small change, but the form would then need to know whether the user is an admin.
- Fallback when the library can't be read: if the library can't be read at all (for example after a restore with mismatched revision identity), issue tasks and follow-ups launch without extensions and log a warning, instead of every task failing. This wasn't in the issue. Automations and explicitly added items still refuse, and disabling, deleting or rotating an item between preparation and container start still refuses the launch.
- Queued pre-library submissions: these keep their explicit migrated items and do not also receive auto-applied ones.
Verification
- New core suite `extensionTaskAutoApply.test.ts` (10 tests) covers the acceptance criteria, including the no-secrets sentinel and the adapted fencing test.
- New API suite `taskSubmissionExtensions.test.ts` covers write-opt-in sealing, the disable label and the preview endpoint.
- New integration test: a label-started task and a follow-up launch with auto-applied items through the real workflow wrapper.
- I adapted two existing tests (the automation event shape, and the write opt-in now being valid). These pass: the other core extension tests, the affected API and root job suites, the UI tests, and the e2e `agent-extensions.pw.ts` (5/5).
- Lint, typecheck and `gen:openapi:check` are clean.
- Several of these suites finish all their tests but then don't exit and are stopped by a timeout. That matches an exit hang already known in this repo; it's not a test failure.
Docs and UI copy: `agent-extensions.md` covers auto-apply, the run table, labels, New Task, the event fields and the Codex rule. `usage.md` ("How Labels Work") and `launching-work.md` have the labels and the New Task options, and the Settings guide text is updated. The OpenAPI spec and client types are regenerated.
Previews of the New Task extensions panel at desktop and mobile width are attached.
|
/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: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR connects issue tasks and PR follow-ups to library resolution, with scoped write authorization and useful coverage. It needs a localized correction before merge: the Codex conflict detector misses valid TOML configurations. ✅ Scoped write authorization — Submission authority is sealed and checked against the task, repository, issue, agent, model and payload; mismatches fall back without write authority. ✅ Label isolation — Opt-out filtering applies to issue and PR runs while preserving automation behavior, with tests covering all three labels. This is a static review of the supplied code; no commands were run. The supplied checks show no failures and three pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Parse valid quoted TOML keys
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Record library fallback durablyThe unreadable-library branch in ScoreThe implementation has substantial focused coverage and clear authorization boundaries, but the Codex configuration compatibility defect requires correction. Pending checks should also finish 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 66c9d24
Summary of ChangesI fixed F1: the Codex conflict detector now reads the operator Change (
Decision for you: if the operator config can't be parsed as TOML, the detector now counts it as a conflict, so auto-applied items are skipped. I chose this because Codex already reads that file on today's runs, and dropping it silently could change what the run does. The alternative is to treat an unparsable file as no conflict and let auto-apply go ahead with Same defect elsewhere: none. This is the only TOML reader in the PR. The other Codex skip condition (a workspace Verification
There's no visual change, so I didn't create a preview. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…tor `config.toml` with a real TOML parser instead of matching lines with a regex. Your example (literal keys `'model_provider' = "azure"` plus an inline `'model_providers'` table) is now detected, so that run launches without its auto-applied items and keeps its provider. Before, extensions stayed on and `--ignore-user-config` threw the provider away. I fixed F1: the Codex conflict detector now reads the operator `config.toml` with a real TOML parser instead of matching lines with a regex. Your example (literal keys `'model_provider' = "azure"` plus an inline `'model_providers'` table) is now detected, so that run launches without its auto-applied items and keeps its provider. Before, extensions stayed on and `--ignore-user-config` threw the provider away. **Change** (`packages/core/src/agents/impl/utils/codexExtensionConflict.ts`) - The function parses the file and checks only four top-level fields. It reports a conflict if `model_providers`, `profiles` or `profile` is present, or if `model_provider` is set to anything other than a built-in provider (`openai`, `oss`, `ollama`, `lmstudio`). - Every way of writing a key is now handled: bare, double-quoted and single-quoted keys, dotted keys like `model_providers.azure.name = …`, inline tables, and quoted table headers like `['profiles'.'work']`. - It no longer gets false positives from text inside multi-line strings, or from keys with the same name under other tables (e.g. `[mcp_servers.docs]`). - New dependency: `smol-toml` `^1.9.1` in `packages/core`. It has no dependencies of its own, and the lockfile only gains that one entry. **Decision for you:** if the operator config can't be parsed as TOML, the detector now counts it as a conflict, so auto-applied items are skipped. I chose this because Codex already reads that file on today's runs, and dropping it silently could change what the run does. The alternative is to treat an unparsable file as no conflict and let auto-apply go ahead with `--ignore-user-config`. Tell me if you want that instead. **Same defect elsewhere:** none. This is the only TOML reader in the PR. The other Codex skip condition (a workspace `.codex/config.toml`) only checks whether the file exists, and the entrypoint scripts don't parse TOML. **Verification** - I added a regression test to `packages/core/test/extensionTaskAutoApply.test.ts`. It covers your example, single-quoted and dotted keys, inline tables, quoted headers, unparsable TOML, and the false-positive cases above. It also checks that `codexAutoApplyConflict` returns `codex_operator_config` for your example file. - All 11 tests in that suite pass with the fix. Against the old detector, your example and `'profile' = "work"` both come back `false`, so the new test catches the original bug. - Core `tsc --noEmit` and core lint pass. Core's lint only covers `src/`, so the test file wasn't linted. There's no visual change, so I didn't create a preview. PR: #3522 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 extends library auto-application to issue tasks and PR follow-ups, with label opt-outs, sealed write authorization, Codex compatibility checks, and a names-only preview. No merge-blocking defect was verified from the supplied diff and context. It is merge-ready within the reviewed scope, conditional on pending checks completing successfully. ✅ Bounded write authorization — The worker checks sealed payload integrity and exact task, repository, issue, agent, and model identity before granting write access; mismatches fall back to read items. ✅ Controlled preview disclosure — The preview endpoint checks repository access and explicitly projects names and capabilities, excluding credentials and endpoints. ✅ Launch fencing coverage — Added tests exercise library changes between queueing and resolution, and refusal after selected items are disabled, removed, or rotated before launch. This was a static review only; no commands or tests were run. The supplied current-head status reports 29 passed checks, five pending, and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Record library fallback in task historyIn S3: 🟢 Exercise production job entry pointsThe added integration test constructs extension requests directly before invoking the workflow wrapper. Additional tests through the actual issue and PR-comment job entry points would help detect future failures to forward labels or submission authority. The current wiring is visible in the diff, so this is additional regression protection rather than a demonstrated blocker. ScoreThe implementation has substantial focused coverage and no verified blocker within scope. Pending checks still need to complete; runtime behavior was not independently tested during this review. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3510
Branch:
3510/claude-opus-5-5-apply-library-extensions--20261113-0542-lwgCommits: ✅ Changes committed (a7275d6)
AI Processing Completed
Execution Details:
Summary:
Issue #3510 is implemented. Label-started and New Task issue tasks (including retries and replacements) and PR follow-ups now get matching library items automatically, resolved when the container is created, with label opt-outs, the write rule, the Codex skip rule and the New Task changes. New and updated tests pass; I did not run the complete repository suite.
What a run gets
/fixand Ultrafix fix steps. Review runs and Ultrafix review steps don't use the library.disable-mcps,disable-skillsanddisable-extensionsare shared constants. On the issue (or on the PR for follow-ups) they remove only their class of items, never add any, and don't affect automations. The labels are read when the job fetches the issue or PR, not with an extra GitHub call.config.tomldefines a custom model provider or profile, or the workspace has.codex/config.toml. If either holds, the run launches without its auto-applied items and the task event records why. Items an automation adds explicitly keep today's strict behaviour.auto,additionalormixed, plus the revision's audit actor), applied server and skill names split into auto-applied and added, omitted and skipped items with reasons, and any label or Codex skip reason. No secrets or URLs. The grant records the same source.New Task
GET /api/task-submission-extensions.disable-extensionslabel to the issue.X-ProPR-Extensions: 1header, and not together with the disable switch.Decisions for you
Verification
extensionTaskAutoApply.test.ts(10 tests) covers the acceptance criteria, including the no-secrets sentinel and the adapted fencing test.taskSubmissionExtensions.test.tscovers write-opt-in sealing, the disable label and the preview endpoint.agent-extensions.pw.ts(5/5).gen:openapi:checkare clean.Docs and UI copy:
agent-extensions.mdcovers auto-apply, the run table, labels, New Task, the event fields and the Codex rule.usage.md("How Labels Work") andlaunching-work.mdhave the labels and the New Task options, and the Settings guide text is updated. The OpenAPI spec and client types are regenerated.Previews of the New Task extensions panel at desktop and mobile width are attached.
Detailed Logs:
503ed34b-c4b9-41aa-bf24-f588147ab68dLog files stored at:
/usr/src/app/logs/executions/issue-3510-2026-11-13T06-38-38-952Z-conversation.json/usr/src/app/logs/executions/issue-3510-2026-11-13T06-38-38-952Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3510.
💡 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
New Task: extensions that will apply (desktop)
Advanced Options now lists, read-only, the library MCP servers and skills that will apply for the chosen repository and agent, with the "Run without extensions" switch and the write opt-in (shown because a write server applies).
Connect sign-in required. Original retained until 2027-02-11T06:38:44.051Z.
View the full-resolution original in ProPR Connect
New Task: extensions that will apply (mobile)
The same extensions panel at a 390px phone width.
Connect sign-in required. Original retained until 2027-02-11T06:38:45.122Z.
View the full-resolution original in ProPR Connect