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

docs([issue-2620]): note jira Done-without-resolutiondate also hits the permanent-suppression branch

[._.]/ Adam Eivyb99082b5d482
diff --git a/server/services/layeredIntelligence.js b/server/services/layeredIntelligence.js
index 930fb47a9c..610204baaf 100644
--- a/server/services/layeredIntelligence.js
+++ b/server/services/layeredIntelligence.js
@@ -209,12 +209,14 @@ export function normalizeSlug(slug) {
* Whether an existing tracker issue is still within the dedup suppression window:
* OPEN, or CLOSED within CLOSED_SUPPRESSION_MS. Only a closed-long-ago issue
* falls out of the window so its work can be re-proposed. A closed issue with a
- * missing/unparseable `closedAt` is PERMANENTLY in-window (suppressed): the only
+ * missing/unparseable `closedAt` is PERMANENTLY in-window (suppressed): the main
* producer of that shape is a checked `- [x]` PLAN.md item (checkboxes carry no
* timestamp), and a completed plan item never needs re-proposal — treating it as
* "closed long ago" made the reasoner re-propose every done item on every run
- * (#2620). Shared by both the slug dedup and the semantic dedup so the two
- * guards agree on which issues still count.
+ * (#2620). A tracker row missing its close time (e.g. a jira Done ticket with no
+ * resolutiondate) is likewise suppressed rather than re-proposed — done work is
+ * never worth re-reasoning. Shared by both the slug dedup and the semantic dedup
+ * so the two guards agree on which issues still count.
*/
export function isIssueWithinDedupWindow(issue, now = Date.now()) {
if ((issue?.state || '').toLowerCase() === 'open') return true;
diff --git a/server/services/layeredIntelligence.test.js b/server/services/layeredIntelligence.test.js
index 26fdecab38..49c7b59453 100644
--- a/server/services/layeredIntelligence.test.js
+++ b/server/services/layeredIntelligence.test.js
@@ -1098,8 +1098,9 @@ describe('semantic dedup — pure helpers', () => {
expect(isIssueWithinDedupWindow({ state: 'closed', closedAt: old }, NOW)).toBe(false);
});
it('closed with missing/unparseable close time stays permanently in-window (#2620)', () => {
- // The only producer of closed-without-closedAt is a checked `- [x]` PLAN
- // item — a completed proposal must stay suppressed, not become re-proposable.
+ // Closed-without-closedAt (a checked `- [x]` PLAN item, or a tracker row
+ // missing its close time) is completed work — it must stay suppressed,
+ // not become re-proposable.
expect(isIssueWithinDedupWindow({ state: 'closed' }, NOW)).toBe(true);
expect(isIssueWithinDedupWindow({ state: 'closed', closedAt: 'not-a-date' }, NOW)).toBe(true);
});