Skip to content

chore(assistant): delete obsolete update-bulletin materialization#26402

Merged
siddseethepalli merged 2 commits into
mainfrom
run-plan/updates-bg-job/pr-6
Apr 18, 2026
Merged

chore(assistant): delete obsolete update-bulletin materialization#26402
siddseethepalli merged 2 commits into
mainfrom
run-plan/updates-bg-job/pr-6

Conversation

@siddseethepalli

@siddseethepalli siddseethepalli commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Deletes assistant/src/prompts/update-bulletin.ts and its test. PR 5 already swapped the last caller (lifecycle.ts) to the new runUpdateBulletinJobIfNeeded fire-and-forget path.
  • Leaves update-bulletin-state.ts, update-bulletin-format.ts, and update-bulletin-template-path.ts in place — those are removed in PRs 7-9.

Part of plan: updates-md-background-job.md (PR 6 of 9)


Open in Devin Review

@siddseethepalli siddseethepalli merged commit 6fa4acb into main Apr 18, 2026
9 of 10 checks passed
@siddseethepalli siddseethepalli deleted the run-plan/updates-bg-job/pr-6 branch April 18, 2026 20:49

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

Comment on lines -15 to -27
import {
appendReleaseBlock,
filterNewContentBlocks,
hasReleaseBlock,
} from "./update-bulletin-format.js";
import {
addActiveRelease,
getActiveReleases,
isReleaseCompleted,
markReleasesCompleted,
setActiveReleases,
} from "./update-bulletin-state.js";
import { getTemplatePath } from "./update-bulletin-template-path.js";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Dead Code Removal rule violation: orphaned helper modules left behind after deleting their sole production consumer

Deleting assistant/src/prompts/update-bulletin.ts was the only production consumer of three helper modules, which are now dead code in violation of the AGENTS.md "Dead Code Removal" rule ("Remove code your change makes unused, clean up adjacent dead code, delete rather than comment out, check for orphaned files").

Orphaned files that should also be deleted
  • assistant/src/prompts/update-bulletin-template-path.ts — completely orphaned, zero imports anywhere in the codebase
  • assistant/src/prompts/update-bulletin-state.ts — only imported by its test file (assistant/src/__tests__/update-bulletin-state.test.ts), no production consumer remains
  • assistant/src/prompts/update-bulletin-format.ts — only imported by its test file (assistant/src/__tests__/update-bulletin-format.test.ts), no production consumer remains
  • assistant/src/__tests__/update-bulletin-state.test.ts and assistant/src/__tests__/update-bulletin-format.test.ts — tests for dead production code
  • assistant/src/prompts/templates/UPDATES.md — only referenced by the orphaned update-bulletin-template-path.ts; not used by ensurePromptFiles() (which only copies PROMPT_FILES = ["SOUL.md", "IDENTITY.md"] at assistant/src/prompts/system-prompt.ts:29)

The replacement module (assistant/src/prompts/update-bulletin-job.ts) uses its own hash-based dedup mechanism and does not import any of these helpers.

Prompt for agents
The PR deletes update-bulletin.ts but leaves behind several helper modules that are now dead code. The following files should also be deleted in this PR to comply with the AGENTS.md Dead Code Removal rule:

1. assistant/src/prompts/update-bulletin-template-path.ts (zero imports anywhere)
2. assistant/src/prompts/update-bulletin-state.ts (only imported by its test file, no production consumer)
3. assistant/src/prompts/update-bulletin-format.ts (only imported by its test file, no production consumer)
4. assistant/src/__tests__/update-bulletin-state.test.ts (tests dead code)
5. assistant/src/__tests__/update-bulletin-format.test.ts (tests dead code)
6. assistant/src/prompts/templates/UPDATES.md (only referenced by update-bulletin-template-path.ts which is itself orphaned; not used by ensurePromptFiles in system-prompt.ts)

The new update-bulletin-job.ts uses its own hash-based approach and does not depend on any of these modules.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant