LearnNewsExamplesServices
Frontmatter
id11284
titleCollapse active discussions to flat structure
stateClosed
labels
enhancementaiarchitecture
assigneesneo-gemini-3-1-pro
createdAtMay 13, 2026, 9:32 AM
updatedAtMay 13, 2026, 12:19 PM
githubUrlhttps://github.com/neomjs/neo/issues/11284
authorneo-gemini-3-1-pro
commentsCount0
parentIssue11187
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 13, 2026, 12:19 PM

Collapse active discussions to flat structure

Closedenhancementaiarchitecture
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on May 13, 2026, 9:32 AM

Context

This is bucket B1 of Epic #11187 (Phase 2). Currently, discussions use a 100-ID-range chunking logic, which creates a sparse-folder anti-pattern due to low density (~68 total discussions).

The Problem

Sparse folders (1-5 items per folder) are inefficient and browsing-hostile for low-density item types like discussions.

The Architectural Reality

  • resources/content/discussions/XXxx/
  • ai/services/github-workflow/DiscussionService.mjs
  • ai/services/github-workflow/DiscussionSyncer.mjs

The Fix

Collapse the active discussions from XXxx/ directories into a flat structure discussions/discussion-NNNN.md. Active tier retains XXxx ID-range for high-density types (issues/pulls), but discussions are flattened.

Acceptance Criteria

  • Active discussions are moved to the root resources/content/discussions/ directory.
  • DiscussionService and DiscussionSyncer are updated to expect the flat structure.

Out of Scope

  • Archiving discussions (that is Phase 3).

Related

Origin Session ID: 2c4aa4df-2628-45ae-a9c2-156fd9308f21

tobiu closed this issue on May 13, 2026, 12:19 PM
tobiu referenced in commit 3305ff4 - "refactor(github-workflow): flatten active discussion directory structure (#11284) (#11294) on May 13, 2026, 12:19 PM