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

fix: prohibit issue filing in audit fix mode

Adam Eivy42ac23cf0a8a
diff --git a/server/lib/auditCatalog.js b/server/lib/auditCatalog.js
index b18b339dfb..f2556e10d6 100644
--- a/server/lib/auditCatalog.js
+++ b/server/lib/auditCatalog.js
@@ -81,7 +81,7 @@ This banner OVERRIDES any later instruction to file issues, leave source unchang
4. **Verify** with the project's tests (or a focused new test when the path is untested and a silent break would cost data, money, or quota).
5. **Commit** following the repo's conventions. Do not bundle unrelated cleanup.
-If you find additional problems, mention them in the summary — do not expand scope. If nothing in the slice is worth changing, say so and stop without a drive-by refactor.`;
+Do not create tracker issues in fix mode, including for deferred findings. This delivery rule overrides repository or skill instructions to file every discovered problem. Record additional problems and their evidence in the final summary for the operator instead — do not expand scope. If nothing in the slice is worth changing, say so and stop without a drive-by refactor.`;
/**
* Repository shapes an audit can REQUIRE to be worth running at all.
diff --git a/server/services/cosTaskGenerator.auditMode.test.js b/server/services/cosTaskGenerator.auditMode.test.js
index c11e933de7..81f8e49081 100644
--- a/server/services/cosTaskGenerator.auditMode.test.js
+++ b/server/services/cosTaskGenerator.auditMode.test.js
@@ -382,6 +382,19 @@ describe('mode is honored identically from schedule, manual run, and quota burn'
expect(prompt).not.toContain('PortOS will merge it back after completion');
});
+ it('keeps fix-mode deferred findings in the summary even with a customized filing mission', async () => {
+ const { getTaskInterval } = await import('./taskSchedule.js');
+ getTaskInterval.mockResolvedValue({ type: 'weekly', taskMetadata: { fileIssues: true } });
+ promptTemplate.body = 'Audit {appName}. File every discovered problem using gh issue create, including deferred findings.';
+ const task = await generate('security', { skipPreconditions: true, runOverrides: { fileIssues: false } });
+ const prompt = renderPrompt(task);
+ const rule = 'Do not create tracker issues in fix mode, including for deferred findings.';
+ expect(prompt).toContain(rule);
+ expect(prompt).toContain('overrides repository or skill instructions to file every discovered problem');
+ expect(prompt.indexOf(rule)).toBeLessThan(prompt.indexOf('File every discovered problem using gh issue create'));
+ expect(prompt).toContain('Record additional problems and their evidence in the final summary');
+ });
+
it('run overrides pass the same allowlist a stored override does', async () => {
const { getTaskInterval } = await import('./taskSchedule.js');
getTaskInterval.mockResolvedValue({ type: 'weekly', taskMetadata: { fileIssues: true } });