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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (antigravity): fix the same stale claim in normalizeReviewerEfforts' doc
[._.]/ Adam Eivy4c787382f36b
diff --git a/server/lib/cosValidation.js b/server/lib/cosValidation.jsindex 18c095ba92..823f946efa 100644--- a/server/lib/cosValidation.js+++ b/server/lib/cosValidation.js@@ -531,12 +531,12 @@ export function normalizeReviewerEffort(raw, reviewer) {* same emitted `--review-with` token as `normalizeReviewerModels` (e.g.* `{ codex: 'high', ollama: 'low' }`).*- * Unlike the model pin, this never becomes part of a slashdo token: slashdo's- * entry grammar has no effort suffix. It reaches a reviewer through the two- * places PortOS actually controls the invocation — the review-loop follow-up- * prompt's CLI command line (`codex -c model_reasoning_effort=high`, `claude- * --effort high`) and the `reasoning_effort` field of the local reviewer's- * `/api/code-review/local` request body.+ * Three carriers, depending on who invokes the reviewer. On a slashdo invocation+ * it rides the emitted token as `~effort=<level>` (`markSuffixes`), which slashdo+ * turns into the reviewer's own flag. Where PortOS drives the invocation itself it+ * is spelled out instead: the review-loop follow-up prompt's CLI command line+ * (`codex -c model_reasoning_effort=high`, `claude --effort high`) and the+ * `reasoning_effort` field of the local reviewer's `/api/code-review/local` body.** An absent key means "let that reviewer use its own default effort", which is* NOT the same as a blank string, so an unusable value is DROPPED rather thandiff --git a/server/lib/cosValidation.test.js b/server/lib/cosValidation.test.jsindex 7eadcd8b6e..13454fbe5d 100644--- a/server/lib/cosValidation.test.js+++ b/server/lib/cosValidation.test.js@@ -333,6 +333,10 @@ describe('per-reviewer reasoning effort (reviewerEfforts)', () => {expect(noEffort).not.toContain('~effort=');expect(buildReviewerEffortNote(['codex'], { codex: 'high' }, { reviewWith: noEffort })).toContain('`codex -c model_reasoning_effort=high`');expect(buildReviewerEffortNote(['codex'], { codex: 'high' }, { reviewWith: '' })).toContain('`codex -c model_reasoning_effort=high`');+ // And a lone copilot can't carry an effort at all (no ladder — see the DROPS+ // test above), which is why the lone-default suppression stays correct without+ // an effort clause of its own in applySlashdoInvocation.+ expect(buildReviewWithArgs(['copilot'], { reviewerEfforts: { copilot: 'high' } })).toBe('');});it('never claims --review-with lacks an effort suffix', () => {diff --git a/server/services/agentPromptBuilder.js b/server/services/agentPromptBuilder.jsindex 985d08a339..1b41ee5186 100644--- a/server/services/agentPromptBuilder.js+++ b/server/services/agentPromptBuilder.js@@ -618,7 +618,11 @@ async function applySlashdoInvocation(task, {// explicit naming: nothing defaults to either suffix, so both are deliberate// choices, and dropping one would silently turn a non-blocking review blocking// or spend an unbudgeted number of rounds. `buildReviewWithArgs` makes the same- // exemption for its lone-default suppression — keep the two in step.+ // exemption for its lone-default suppression — keep the two in step. It carries a+ // third clause for a copilot `~effort=`; there is deliberately none here, because+ // copilot has no effort ladder at all (`REVIEWER_EFFORT_LEVELS` is keyed off+ // `reviewerCliBinary`, and copilot names no binary), so `normalizeReviewerEfforts`+ // drops the pin long before either function sees it.const taskPinnedReviewer = (Array.isArray(task.metadata?.reviewers) && task.metadata.reviewers.length > 0)|| (typeof task.metadata?.reviewer === 'string' && !!task.metadata.reviewer);const optionalDefaultReviewer = resolvedOptional.some(t => t.toLowerCase() === DEFAULT_REVIEWER);