Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (codex): let a pinned target re-check configured exclusions; widen the claim-prompt fetch to match the detector; let an app opt out of every inherited exclusion

[._.]/ Adam Eivy7896c025e0de
diff --git a/client/src/components/cos/tabs/schedule/AppOverrideRow.jsx b/client/src/components/cos/tabs/schedule/AppOverrideRow.jsx
index 5fc6ad0968..4c1da8ff32 100644
--- a/client/src/components/cos/tabs/schedule/AppOverrideRow.jsx
+++ b/client/src/components/cos/tabs/schedule/AppOverrideRow.jsx
@@ -73,8 +73,16 @@ const AppOverrideRow = memo(function AppOverrideRow({ app, taskType, globalInter
// Comma-separated free text for the issueExcludeLabels override — an array
// field, so it doesn't fit the scalar '' = inherit select pattern the other
- // overrides use. An empty box clears the override (inherits the global
- // list), matching every other override field here.
+ // overrides use. An empty BOX clears the override (inherits the global
+ // list) — but a blank box is also what an EXPLICIT `[]` override renders
+ // as (nothing to join), so the two states are visually identical in the
+ // text field alone. The "None" checkbox below disambiguates: it reflects
+ // (and sets) the explicit-empty-array override distinctly from "no
+ // override key at all," letting an app opt OUT of every inherited
+ // exclusion — e.g. reclaim `good first issue` for this app's own
+ // automation — which a merely-blank box could never express.
+ const excludeLabelsExplicitlyEmpty = Array.isArray(override?.taskMetadata?.issueExcludeLabels)
+ && override.taskMetadata.issueExcludeLabels.length === 0;
const excludeLabelsDraft = useFieldDraft(
(override?.taskMetadata?.issueExcludeLabels || []).join(', '),
(next) => {
@@ -210,17 +218,29 @@ const AppOverrideRow = memo(function AppOverrideRow({ app, taskType, globalInter
)}
{ISSUE_AUTHOR_FILTER_TASK_TYPES.has(taskType) && (
- <input
- type="text"
- value={excludeLabelsDraft.value}
- onChange={excludeLabelsDraft.onChange}
- onBlur={excludeLabelsDraft.onBlur}
- disabled={updating}
- aria-label={`Labels to leave for humans for ${app.name}`}
- title={`Comma-separated labels to skip when auto-claiming (blank inherits: ${(globalTaskMetadata?.issueExcludeLabels || []).join(', ') || 'none'})`}
- placeholder="Inherit"
- className="bg-port-card border border-port-border rounded px-2 py-1.5 text-xs text-white min-w-[140px] min-h-[40px]"
- />
+ <span className="flex items-center gap-1">
+ <input
+ type="text"
+ value={excludeLabelsDraft.value}
+ onChange={excludeLabelsDraft.onChange}
+ onBlur={excludeLabelsDraft.onBlur}
+ disabled={updating}
+ aria-label={`Labels to leave for humans for ${app.name}`}
+ title={`Comma-separated labels to skip when auto-claiming (blank inherits: ${(globalTaskMetadata?.issueExcludeLabels || []).join(', ') || 'none'})`}
+ placeholder="Inherit"
+ className="bg-port-card border border-port-border rounded px-2 py-1.5 text-xs text-white min-w-[140px] min-h-[40px]"
+ />
+ <label htmlFor={`exclude-labels-none-${app.id}-${taskType}`} className="flex items-center gap-1 text-[10px] text-gray-500 whitespace-nowrap" title="Explicitly claim ALL labels for this app, ignoring the global exclusion list — a blank box alone means inherit, this means override to none">
+ <input
+ type="checkbox"
+ id={`exclude-labels-none-${app.id}-${taskType}`}
+ checked={excludeLabelsExplicitlyEmpty}
+ onChange={(e) => handleOverrideChange('issueExcludeLabels', e.target.checked ? [] : '')}
+ disabled={updating}
+ />
+ None
+ </label>
+ </span>
)}
{SWARM_TASK_TYPES.has(taskType) && (
diff --git a/client/src/components/cos/tabs/schedule/AppOverrideRow.test.jsx b/client/src/components/cos/tabs/schedule/AppOverrideRow.test.jsx
index ab0d4ce8f8..ee40357d9e 100644
--- a/client/src/components/cos/tabs/schedule/AppOverrideRow.test.jsx
+++ b/client/src/components/cos/tabs/schedule/AppOverrideRow.test.jsx
@@ -116,6 +116,52 @@ describe('AppOverrideRow — issue exclude labels override', () => {
expect(onUpdate).toHaveBeenCalledWith('app-1', 'claim-work', { taskMetadata: null });
});
+
+ describe('explicit-empty override ("None" checkbox)', () => {
+ const noneCheckbox = () => screen.getByLabelText('None');
+
+ it('is unchecked when there is no override, and when the override is a non-empty list', () => {
+ renderRow({ taskType: 'claim-issue', globalTaskMetadata: { issueExcludeLabels: ['good first issue'] } });
+ expect(noneCheckbox()).not.toBeChecked();
+ });
+
+ it('reflects an existing explicit-empty override distinctly from inherit — both render a blank text box', () => {
+ renderRow({
+ taskType: 'claim-issue',
+ globalTaskMetadata: { issueExcludeLabels: ['good first issue'] },
+ override: { taskMetadata: { issueExcludeLabels: [] } },
+ });
+ expect(excludeLabelsInput()).toHaveValue('');
+ expect(noneCheckbox()).toBeChecked();
+ });
+
+ it('checking it submits an explicit empty array override, letting this app opt out of every inherited exclusion', async () => {
+ const onUpdate = renderRow({
+ taskType: 'claim-issue',
+ globalTaskMetadata: { issueExcludeLabels: ['good first issue'] },
+ });
+ expect(noneCheckbox()).not.toBeChecked();
+
+ await act(async () => { fireEvent.click(noneCheckbox()); });
+
+ expect(onUpdate).toHaveBeenCalledWith('app-1', 'claim-issue', {
+ taskMetadata: { issueExcludeLabels: [] },
+ });
+ });
+
+ it('unchecking it clears the override back to inherit', async () => {
+ const onUpdate = renderRow({
+ taskType: 'claim-work',
+ globalTaskMetadata: { issueExcludeLabels: ['good first issue'] },
+ override: { taskMetadata: { issueExcludeLabels: [] } },
+ });
+ expect(noneCheckbox()).toBeChecked();
+
+ await act(async () => { fireEvent.click(noneCheckbox()); });
+
+ expect(onUpdate).toHaveBeenCalledWith('app-1', 'claim-work', { taskMetadata: null });
+ });
+ });
});
describe('AppOverrideRow — file issues only', () => {
diff --git a/server/services/cosTaskGenerator.js b/server/services/cosTaskGenerator.js
index 8634c08af7..237c6c6f7a 100644
--- a/server/services/cosTaskGenerator.js
+++ b/server/services/cosTaskGenerator.js
@@ -532,7 +532,7 @@ export async function buildClaimWorkTask(app, {
.replace(/\{reviewers\}/g, () => reviewersCsv)
.replace(/\{issueAuthorFilter\}/g, () => issueAuthorFilterBlock)
.replace(/\{issueExcludeLabels\}/g, () => issueExcludeLabelsBlock)
- + appendTargetWorkItemBlock(promptTaskType, targetRef)
+ + appendTargetWorkItemBlock(promptTaskType, targetRef, issueExcludeLabelsBlock)
+ appendPrefetchedIssueContext(promptTaskType, targetRef, issueContext)
+ appendClaimOverrideContext(overrideContext)
+ appendReviewerEffortBlock(reviewersList, promptReviewerEfforts, promptReviewerModels)
@@ -596,13 +596,30 @@ export function normalizeWorkItemRef(ref) {
// GitHub and GitLab share one claim flow (identical phases, branch naming, and
// skip-list — only the forge CLI differs), so their constraint copy is one
// factory rather than two paragraphs that must be edited in lockstep.
-const forgeIssueConstraint = (forge) => (ref) => `## Target Issue Constraint
-
-The user explicitly selected ${forge} issue #${ref}. Override Phase 1 ("Pick the target issue"): do NOT pick a different issue and do NOT scan for the next eligible one — claim exactly #${ref}, and ignore the author filter above (an explicit selection overrides it). Still honor the safety checks: if #${ref} is already closed, already assigned, already carries \`in-progress\` / \`blocked\` / \`needs-input\`, is already on a \`claim/issue-${ref}\` (or \`cos/.../issue-${ref}/...\`) branch, is a tracking epic, or is stale (Phase 3), exit cleanly rather than forcing it. Otherwise run Phases 2–7 against #${ref}.`;
+// `excludeLabelsBlock` is the SAME resolved list Phase 1 checks against
+// (fixed NON_ACTIONABLE_ISSUE_LABELS plus any configured issueExcludeLabels)
+// — a pinned target still must not re-claim an issue the user reserved for
+// humans, including one that gained the label AFTER the picker snapshot the
+// user selected from was taken (the picker itself already excludes these
+// issues; this is the staleness/race backstop, same reason the pinned-target
+// block already re-checks closed/assigned/epic/stale rather than trusting
+// the snapshot).
+const forgeIssueConstraint = (forge) => (ref, excludeLabelsBlock) => {
+ // Fall back to the original fixed-3 text when no resolved block is passed
+ // (a caller that doesn't thread issueExcludeLabels, or a 2-arg test call)
+ // rather than interpolating an empty string into the sentence.
+ const labels = excludeLabelsBlock || '`in-progress`, `blocked`, `needs-input`';
+ return `## Target Issue Constraint
+
+The user explicitly selected ${forge} issue #${ref}. Override Phase 1 ("Pick the target issue"): do NOT pick a different issue and do NOT scan for the next eligible one — claim exactly #${ref}, and ignore the author filter above (an explicit selection overrides it). Still honor the safety checks: if #${ref} is already closed, already assigned, already carries any of ${labels}, is already on a \`claim/issue-${ref}\` (or \`cos/.../issue-${ref}/...\`) branch, is a tracking epic, or is stale (Phase 3), exit cleanly rather than forcing it. Otherwise run Phases 2–7 against #${ref}.`;
+};
// Per-claim-flow copy for the "claim exactly this item" constraint. Each entry
// renders the tracker's own vocabulary (issue / ticket / PLAN item) over one
-// shared shape, so the four flows can't drift apart.
+// shared shape, so the four flows can't drift apart. Every render fn takes
+// `(ref, excludeLabelsBlock)` even though only the forge-issue flows use the
+// second argument — plan-task/jira ignore it — so buildTargetWorkItemBlock
+// can call all four uniformly.
const TARGET_ITEM_BLOCKS = {
// Provenance-neutral: the same copy serves a user-picked target and a
// scheduler-reserved planId (see buildPlanConstraintBlock).
@@ -626,10 +643,13 @@ The user explicitly selected JIRA ticket \`${ref}\` from the board. Override Pha
* (already-claimed, stale, too-large → exit cleanly). Returns the bare block
* (callers own their own separators), or '' when there is no target (the
* agent-picks default) or the flow has no constraint copy.
+ *
+ * `excludeLabelsBlock` (optional, default '') is only consumed by the
+ * forge-issue flows' render fn — plan-task/jira ignore the third argument.
*/
-export function buildTargetWorkItemBlock(promptTaskType, ref) {
+export function buildTargetWorkItemBlock(promptTaskType, ref, excludeLabelsBlock = '') {
const render = TARGET_ITEM_BLOCKS[promptTaskType];
- return (!ref || !render) ? '' : render(ref);
+ return (!ref || !render) ? '' : render(ref, excludeLabelsBlock);
}
const PREFETCHED_ISSUE_BODY_MAX_CHARS = 12_000;
@@ -709,8 +729,8 @@ const appendClaimOverrideContext = (overrideContext) => {
};
/** The same block with the leading blank-line separator a prompt append needs. */
-const appendTargetWorkItemBlock = (promptTaskType, ref) => {
- const block = buildTargetWorkItemBlock(promptTaskType, ref);
+const appendTargetWorkItemBlock = (promptTaskType, ref, excludeLabelsBlock = '') => {
+ const block = buildTargetWorkItemBlock(promptTaskType, ref, excludeLabelsBlock);
return block ? `\n\n${block}` : '';
};
diff --git a/server/services/cosTaskGenerator.test.js b/server/services/cosTaskGenerator.test.js
index 2bcaff12e5..cd980dc24f 100644
--- a/server/services/cosTaskGenerator.test.js
+++ b/server/services/cosTaskGenerator.test.js
@@ -538,6 +538,21 @@ describe('work-item target', () => {
expect(block).toContain(ref);
expect(block).toContain(marker);
});
+
+ it('falls back to the fixed 3-label text when no excludeLabelsBlock is passed', () => {
+ const block = buildTargetWorkItemBlock('claim-issue', '42');
+ expect(block).toContain('already carries any of `in-progress`, `blocked`, `needs-input`');
+ });
+
+ it('re-checks the SAME resolved exclude-labels list Phase 1 uses, not just the fixed 3, so a pinned target can\'t bypass a configured exclusion (e.g. a stale picker selection that gained the label after being selected)', () => {
+ const block = buildTargetWorkItemBlock('claim-issue', '42', resolveIssueExcludeLabelsBlock(['good first issue']));
+ expect(block).toContain('already carries any of `in-progress`, `blocked`, `needs-input`, `future`, `wontfix`, `question`, `discussion`, `good first issue`');
+ });
+
+ it('threads the same wiring through the gitlab flow', () => {
+ const block = buildTargetWorkItemBlock('claim-issue-gitlab', '42', resolveIssueExcludeLabelsBlock(['good first issue']));
+ expect(block).toContain('`good first issue`');
+ });
});
describe('buildPrefetchedIssueContextBlock', () => {
@@ -715,6 +730,10 @@ describe('resolveIssueExcludeLabelsBlock', () => {
it('stays in sync with the NON_ACTIONABLE_ISSUE_LABELS set the perpetual-drain detector uses', () => {
expect(readFileSync(join(__dirname, 'cosTaskGenerator.js'), 'utf-8')).toContain("from './perpetualWork.js'");
});
+
+ it('buildClaimWorkTask threads the resolved block into the pinned-target constraint, not just the {issueExcludeLabels} placeholder', () => {
+ expect(GEN_SRC).toContain('appendTargetWorkItemBlock(promptTaskType, targetRef, issueExcludeLabelsBlock)');
+ });
});
// resolveSwarmBlock is prepended to the claim-issue prompt when swarmCount turns
diff --git a/server/services/taskPromptDefaults.test.js b/server/services/taskPromptDefaults.test.js
index 5b4bf7650c..eaeee7211c 100644
--- a/server/services/taskPromptDefaults.test.js
+++ b/server/services/taskPromptDefaults.test.js
@@ -549,4 +549,14 @@ describe('taskPromptDefaults integrity snapshot', () => {
expect(v2).not.toContain('SUPERSEDED');
expect(v2).not.toBe(current);
});
+
+ // Phase 1's candidate fetch must match perpetualWork.js's detector — both
+ // apply the blocking-label filter (fixed set + configured issueExcludeLabels)
+ // to the fetched page, so a mismatched cap risks the live agent and the
+ // perpetual drain reaching different "actionable or not" verdicts on the
+ // same repo.
+ it('claim-issue Phase 1 fetches --limit 500, matching perpetualWork.js\'s widened detector fetch', () => {
+ expect(DEFAULT_TASK_PROMPTS['claim-issue']).toContain('--limit 500');
+ expect(DEFAULT_TASK_PROMPTS['claim-issue']).not.toContain('--limit 100');
+ });
});
diff --git a/server/services/taskPromptDefaults/integrity.snapshot.json b/server/services/taskPromptDefaults/integrity.snapshot.json
index e8fd859a15..74239b2196 100644
--- a/server/services/taskPromptDefaults/integrity.snapshot.json
+++ b/server/services/taskPromptDefaults/integrity.snapshot.json
@@ -15,7 +15,7 @@
"simplify": "2a048214d1dd3b75bee9ae1a38fa1589",
"feature-ideas": "d3282f16da29efe2d53595b3b34778bc",
"plan-task": "2012a0da54bdbf441911a0eed05f0cb1",
- "claim-issue": "e9909d2614eb7a19743850f16bb51049",
+ "claim-issue": "5bcaf3230a7a46ee039404943feab187",
"claim-issue-gitlab": "eed428fc96a8a58ee94d38e6e4896932",
"claim-issue-jira": "9d782972b20d6b721eb44d0673315cad",
"code-reviewer-review": "1cd13ee5142d130f95cc390098d0f278",
diff --git a/server/services/taskPromptDefaults/prompts.js b/server/services/taskPromptDefaults/prompts.js
index e4025c1ead..48f68c1565 100644
--- a/server/services/taskPromptDefaults/prompts.js
+++ b/server/services/taskPromptDefaults/prompts.js
@@ -756,8 +756,11 @@ Run steps 1–5 in order.
# do NOT pack flag+value into one variable: a bare \`$VAR\` holding "--author x"
# is a single argv token in zsh (no word-splitting) and gh rejects it.
# Owner-only mode (default): resolve the owner, then add --author "$OWNER"
+ # --limit 500 (not 100): the blocking-label filter below runs on this
+ # fetched page, so a small cap risks missing eligible work further down
+ # a busy queue when the first page is full of excluded/in-flight issues.
OWNER="$(gh repo view --json owner -q .owner.login)"
- gh issue list --state open --author "$OWNER" --search "sort:created-asc" --json number,title,author,assignees,labels,createdAt --limit 100
+ gh issue list --state open --author "$OWNER" --search "sort:created-asc" --json number,title,author,assignees,labels,createdAt --limit 500
# Any-author mode: run the SAME command WITHOUT the --author "$OWNER" flag.
\`\`\`
3. Build the in-flight set. Collect every branch/PR ref:
diff --git a/server/services/taskPromptDefaults/versions.js b/server/services/taskPromptDefaults/versions.js
index 6f8fe44086..3337f3cd5d 100644
--- a/server/services/taskPromptDefaults/versions.js
+++ b/server/services/taskPromptDefaults/versions.js
@@ -12,7 +12,7 @@ export const PROMPT_VERSIONS = {
'do-replan': 2, // v2: scheduled issue-quality gate rejects speculative/future-only work and keeps valid current refactors claimable
'feature-ideas': 10, // v10: Phase 4 (Brainstorm) consults the repo's REJECTED.md and recently closed-unmerged PRs before proposing, so ideas the user already declined aren't re-proposed (mirrors idle-review's REJECTED.md contract). v9: drop DONE.md reads — use `.changelog/` + `git log` (last 50) as the completed-work signal
'plan-task': 16, // v16: every reviewer that can read the working tree runs BEFORE the PR is opened — Phase 6 splits the configured list into LOCAL reviewers (every non-`@<login>` token, reviewed against `git diff origin/main...HEAD`) and PR-SIDE reviewers (`@<login>` plus any auto-requested review bot), opens the PR only once the branch is review-clean, and then waits on those PR-side reviewers plus required CI. Previously the PR was opened first and every reviewer ran against its diff, so each round of findings landed as follow-up commits on an already-public PR. v14: claim worktree creation passes `--no-track`, so a branch based on `origin/main` cannot inherit `main` as its upstream and make a config-derived push write directly to the default branch; the later `git push -u` sets the intended branch upstream. v13: Phase 5's changelog step reads the repo's documented convention FIRST (per-branch fragment directory + helper script, as PortOS now uses) and only falls back to detect-and-append when none is documented; the Phase 6 review-stuck note no longer names `.changelog/NEXT.md` as the file it wrote. v12: the reviewer bullets name the antigravity reviewer's actual PATH binary (`agy`) — the bare `antigravity` slug is a command that exists nowhere, and a review-loop agent that probed for it concluded no reviewer was available and merged on its own self-review. The same bump adds the missing-binary guard: a reviewer whose CLI is not on PATH is UNSATISFIED, never a clean review the agent substitutes its own self-review for. v11: worktree is created under PortOS's shared worktrees dir (`{worktreesRoot}` → data/cos/worktrees) instead of a repo-relative `data/cos/worktrees/` path, so the agent's checkout no longer lands inside the managed app's working tree. v10: Phase 3 "decide, don't defer" — an *ambiguous* PLAN.md item no longer jumps to the Phase 3b clarification PR; the agent picks the most reasonable reading, notes it, and implements. Phase 3b is reserved for destructive/irreversible or genuinely-human-gated items. Mirrors claim-issue v7 + CLAUDE.md. v9: per-kind reviewer bullets name `grok` alongside `claude`/`codex`/`antigravity` as a local-CLI reviewer (grok is now a selectable Review Loop reviewer). v8: Phase-6 merge fallback prefers --merge over --squash (after --auto), matching the /do:pr + review-loop default and PortOS's merge-only policy
- 'claim-issue': 16, // v16: Phase 1 step 4's blocking-label check is now the `{issueExcludeLabels}` placeholder (resolveIssueExcludeLabelsBlock, cosTaskGenerator.js) — the fixed NON_ACTIONABLE_ISSUE_LABELS set plus any app-configured `taskMetadata.issueExcludeLabels` extras (e.g. `good first issue`), so the live claim agent honors the same per-app exclusions the perpetual-drain detector applies, not just the hardcoded set. v15: Phase 5 is now the pre-PR local review (LOCAL reviewers = every non-`@<login>` token, run against the branch diff; an unsatisfied one blocks PR creation entirely) and Phase 6 opens the PR, satisfies the PR-SIDE reviewers (`@<login>` plus any auto-requested review bot) and required CI, then merges. v13: follow-up issue recipes choose independent slashdo dispatch hints (`model:`/`effort:`) and contributor labels (`good first issue`/`help wanted`) instead of only `plan`. v12: claim worktree creation passes `--no-track`, so a branch based on `origin/main` cannot inherit `main` as its upstream and make a config-derived push write directly to the default branch; the later `git push -u` sets the intended branch upstream. v11: EVERY Phase-3 release now converges — the "already fixed / superseded" case CLOSES the issue (with a comment naming what delivered it) and the "stale reference" case tags `needs-input`, instead of both releasing the issue open and unlabeled. `isActionableIssue` (perpetualWork.js) can only see labels/assignees/epic/in-flight, so a body-or-comment-driven release left the issue looking actionable and the perpetual drain re-spawned a no-op agent on it every tick. v10: Phase 5's changelog step defers to the convention the repo documents (per-branch fragment directory + helper script when present) instead of prescribing an append to `.changelog/NEXT.md`. v9: reviewer bullets name the antigravity reviewer's actual PATH binary (`agy`) — mirrors plan-task v12. The same bump adds the missing-binary guard: a reviewer whose CLI is not on PATH is UNSATISFIED, never a clean review the agent substitutes its own self-review for. v8: worktree is created under PortOS's shared worktrees dir (`{worktreesRoot}` → data/cos/worktrees) instead of a repo-relative `data/cos/worktrees/` path, so the agent's checkout no longer lands inside the managed app's working tree. v7: Phase 3 no longer releases/parks an *ambiguous* issue to `needs-input` — the agent decides (picks the most reasonable reading, records it in an issue comment, ships) rather than punting the choice back to a human; `needs-input` is reserved for destructive/irreversible or genuinely-human-gated (hardware/credentials) cases. Mirrors the "Decide, don't defer" policy in CLAUDE.md. v6: Phase 1 epic skip also recognizes a leading `[epic]` bracket or `Epic:` colon title tag (e.g. "[Epic] …" / "Epic: …"), not just an `epic` label or a "(epic)" suffix — mirrors the perpetualWork detector so a `[Epic]`-titled issue with no `epic` label stops re-spawning a claim agent that always skips it (perpetual drain now converges/parks). v5: per-kind reviewer bullets name `grok` alongside `claude`/`codex`/`antigravity` as a local-CLI reviewer (grok is now a selectable Review Loop reviewer). v4: Phase 5 chooses the issue trailer deliberately (Closes for a full ship, Refs + a `## Remaining` section for a partial one) and Phase 7 reconciles the issue with the partial-ship hybrid — close + file a scoped follow-up when the remainder is separable, else comment "done/remaining" + release the `in-progress` claim — so a partial ship is never left OPEN + `in-progress` (a zombie the claim queue skips forever). v3: Phase 3 tags an ambiguous/too-large issue `needs-input` (not just a comment) so it's excluded from future autonomous claims — required for `perpetual` (drain-until-done) mode to converge instead of re-picking the same un-actionable issue. v2: stop treating the bare `plan` label as a skip — `plan` is the claimable-queue label (do-replan --issues labels every migrated backlog item `plan`), so v1's exclusion emptied the whole actionable queue; now skip only true epics (`epic` label or "(epic)" title)
+ 'claim-issue': 16, // v16: Phase 1 step 4's blocking-label check is now the `{issueExcludeLabels}` placeholder (resolveIssueExcludeLabelsBlock, cosTaskGenerator.js) — the fixed NON_ACTIONABLE_ISSUE_LABELS set plus any app-configured `taskMetadata.issueExcludeLabels` extras (e.g. `good first issue`), so the live claim agent honors the same per-app exclusions the perpetual-drain detector applies, not just the hardcoded set. The pinned-target constraint (`/do:next <num>` / the work-item picker) also re-checks that resolved list, not just the fixed 3, so a target that gained an excluded label after the picker snapshot still isn't force-claimed. Phase 1's candidate fetch widened to `--limit 500` (was 100), matching perpetualWork.js's detector — the label filter runs on the fetched page, so a small cap risked missing eligible work further down a busy queue. v15: Phase 5 is now the pre-PR local review (LOCAL reviewers = every non-`@<login>` token, run against the branch diff; an unsatisfied one blocks PR creation entirely) and Phase 6 opens the PR, satisfies the PR-SIDE reviewers (`@<login>` plus any auto-requested review bot) and required CI, then merges. v13: follow-up issue recipes choose independent slashdo dispatch hints (`model:`/`effort:`) and contributor labels (`good first issue`/`help wanted`) instead of only `plan`. v12: claim worktree creation passes `--no-track`, so a branch based on `origin/main` cannot inherit `main` as its upstream and make a config-derived push write directly to the default branch; the later `git push -u` sets the intended branch upstream. v11: EVERY Phase-3 release now converges — the "already fixed / superseded" case CLOSES the issue (with a comment naming what delivered it) and the "stale reference" case tags `needs-input`, instead of both releasing the issue open and unlabeled. `isActionableIssue` (perpetualWork.js) can only see labels/assignees/epic/in-flight, so a body-or-comment-driven release left the issue looking actionable and the perpetual drain re-spawned a no-op agent on it every tick. v10: Phase 5's changelog step defers to the convention the repo documents (per-branch fragment directory + helper script when present) instead of prescribing an append to `.changelog/NEXT.md`. v9: reviewer bullets name the antigravity reviewer's actual PATH binary (`agy`) — mirrors plan-task v12. The same bump adds the missing-binary guard: a reviewer whose CLI is not on PATH is UNSATISFIED, never a clean review the agent substitutes its own self-review for. v8: worktree is created under PortOS's shared worktrees dir (`{worktreesRoot}` → data/cos/worktrees) instead of a repo-relative `data/cos/worktrees/` path, so the agent's checkout no longer lands inside the managed app's working tree. v7: Phase 3 no longer releases/parks an *ambiguous* issue to `needs-input` — the agent decides (picks the most reasonable reading, records it in an issue comment, ships) rather than punting the choice back to a human; `needs-input` is reserved for destructive/irreversible or genuinely-human-gated (hardware/credentials) cases. Mirrors the "Decide, don't defer" policy in CLAUDE.md. v6: Phase 1 epic skip also recognizes a leading `[epic]` bracket or `Epic:` colon title tag (e.g. "[Epic] …" / "Epic: …"), not just an `epic` label or a "(epic)" suffix — mirrors the perpetualWork detector so a `[Epic]`-titled issue with no `epic` label stops re-spawning a claim agent that always skips it (perpetual drain now converges/parks). v5: per-kind reviewer bullets name `grok` alongside `claude`/`codex`/`antigravity` as a local-CLI reviewer (grok is now a selectable Review Loop reviewer). v4: Phase 5 chooses the issue trailer deliberately (Closes for a full ship, Refs + a `## Remaining` section for a partial one) and Phase 7 reconciles the issue with the partial-ship hybrid — close + file a scoped follow-up when the remainder is separable, else comment "done/remaining" + release the `in-progress` claim — so a partial ship is never left OPEN + `in-progress` (a zombie the claim queue skips forever). v3: Phase 3 tags an ambiguous/too-large issue `needs-input` (not just a comment) so it's excluded from future autonomous claims — required for `perpetual` (drain-until-done) mode to converge instead of re-picking the same un-actionable issue. v2: stop treating the bare `plan` label as a skip — `plan` is the claimable-queue label (do-replan --issues labels every migrated backlog item `plan`), so v1's exclusion emptied the whole actionable queue; now skip only true epics (`epic` label or "(epic)" title)
'claim-issue-gitlab': 15, // v15: mirrors claim-issue v16 — Phase 1 step 4's blocking-label check is now the `{issueExcludeLabels}` placeholder. v14: mirrors claim-issue v15 — Phase 5 runs the LOCAL reviewers against the branch diff before any MR exists, Phase 6 opens the MR and satisfies the MR-SIDE reviewers + pipeline before merging. v12: follow-up issue recipes choose independent slashdo dispatch hints (`model:`/`effort:`) and contributor labels (`good first issue`/`help wanted`) instead of only `plan`. v11: claim worktree creation passes `--no-track`, so a branch based on the default-branch remote ref does not inherit it as an upstream; the later `git push -u` sets the intended branch upstream. v10: mirrors claim-issue v11 — every Phase-3 release converges (close the already-fixed/superseded issue, tag the stale-reference one `needs-input`) so the perpetual drain stops re-picking it. v9: mirrors claim-issue v10 — Phase 5's changelog step defers to the repo's documented convention (per-branch fragments) rather than prescribing a `.changelog/NEXT.md` append. v8: reviewer bullets name the antigravity reviewer's actual PATH binary (`agy`) — mirrors plan-task v12. The same bump adds the missing-binary guard: a reviewer whose CLI is not on PATH is UNSATISFIED, never a clean review the agent substitutes its own self-review for. v7: worktree is created under PortOS's shared worktrees dir (`{worktreesRoot}` → data/cos/worktrees) instead of a repo-relative `data/cos/worktrees/` path, so the agent's checkout no longer lands inside the managed app's working tree (mirrors claim-issue v8). v6: mirrors claim-issue v7 — Phase 3 decides an *ambiguous* issue (record the chosen reading in an issue note, ship) instead of parking it to `needs-input`, which is reserved for destructive/irreversible or genuinely-human-gated (hardware/credentials) cases. v5: mirrors claim-issue v6 — Phase 1 epic skip also recognizes a leading `[epic]` bracket or `Epic:` colon title tag (e.g. "[Epic] …" / "Epic: …"), not just an `epic` label or a "(epic)" suffix, so the GitLab detector/agent converge on epic-titled issues too. v4: per-kind reviewer bullets name `grok` alongside `claude`/`codex`/`antigravity` as a local-CLI reviewer (grok is now a selectable Review Loop reviewer). v3: mirrors claim-issue v4 — Phase 5 chooses Closes-vs-Refs deliberately and Phase 7 reconciles the issue with the partial-ship hybrid (close + scoped follow-up when separable, else "done/remaining" note + release the `in-progress` claim) so a partial ship is never stranded. v2: Phase 3 tags an ambiguous/too-large issue `needs-input` (mirrors claim-issue v3) so it's excluded from future autonomous claims — required for `perpetual` (drain-until-done) mode to converge. v1: GitLab sibling of claim-issue — same 7-phase /claim --issues flow over `glab` issues + merge requests. Reached via the claim-work router when an app's resolved workTracker is 'gitlab'.
'claim-issue-jira': 12, // v12: mirrors claim-issue v15 in the JIRA flow — Phase 5 runs the LOCAL reviewers against the branch diff before the MR/PR is opened (and before the In Review transition), Phase 6 keeps only the PR-side reviewers plus the worktree cleanup. v10: follow-up tickets receive equivalent hyphenated dispatch (`model-*`/`effort-*`) and contributor (`good-first-issue`/`help-wanted`) labels when independently justified. v9: claim worktree creation passes `--no-track`, so a branch based on the default-branch remote ref does not inherit it as an upstream; the later `git push -u` sets the intended branch upstream. v8: mirrors claim-issue v11 in JIRA's status vocabulary — an already-fixed/superseded ticket transitions to Done/Closed and a stale-reference ticket parks on a Blocked/On Hold status behind a Review Hub todo, instead of transitioning back to a not-started status that Phase 1 immediately re-picks. v7: mirrors claim-issue v10 — Phase 5's changelog step defers to the repo's documented convention (per-branch fragments) rather than prescribing a `.changelog/NEXT.md` append. v6: reviewer bullets name the antigravity reviewer's actual PATH binary (`agy`) — mirrors plan-task v12. The same bump adds the missing-binary guard: a reviewer whose CLI is not on PATH is UNSATISFIED, never a clean review the agent substitutes its own self-review for. v5: worktree is created under PortOS's shared worktrees dir (`{worktreesRoot}` → data/cos/worktrees) instead of `{repoPath}/data/cos/worktrees/`, so the agent's checkout no longer lands inside the managed app's working tree (mirrors claim-issue v8). v4: mirrors claim-issue v7 — Phase 3 decides an *ambiguous* ticket (record the chosen reading in a ticket comment, ship) instead of parking it to a "Needs clarification" Review Hub todo, and Phase 1 no longer skips a merely-underspecified ticket; the todo is reserved for destructive/irreversible or genuinely-human-gated cases. v3: per-kind reviewer bullets name `grok` alongside `claude`/`codex`/`antigravity` as a local-CLI reviewer (grok is now a selectable Review Loop reviewer). v2: Phase 5 records remaining scope in the ticket (Done/Remaining comment) and files a follow-up ticket when a partial ship's remainder is separable, so remaining work isn't lost when a human lands the MR/PR. v1: JIRA sibling of claim-issue — claim ONE ready sprint ticket, move it To Do→In Progress→In Review around a self-managed worktree + MR/PR. Reached via the claim-work router when an app's resolved workTracker is 'jira' (replaces the prior jira→jira-sprint-manager route).
'pr-reviewer': 3, // v3: multi-stage pipeline (security scan → code review + merge)