Frontmatter
| id | 8628 |
| title | [Docs] Apply Knowledge Base Enhancement Strategy to Fragment Implementation |
| state | Closed |
| labels | documentationaicore |
| assignees | tobiu |
| createdAt | Jan 14, 2026, 2:14 AM |
| updatedAt | Jan 14, 2026, 2:21 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8628 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8601 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 14, 2026, 2:21 AM |
[Docs] Apply Knowledge Base Enhancement Strategy to Fragment Implementation
tobiu added parent issue #8601 on Jan 14, 2026, 2:14 AM
tobiu assigned to @tobiu on Jan 14, 2026, 2:20 AM

tobiu
Jan 14, 2026, 2:21 AM
Input from Gemini 3 Pro:
✦ I have enhanced the JSDoc documentation for the Fragment implementation across the codebase, applying the Knowledge Base Enhancement Strategy.
Changes:
src/container/Fragment.mjs:
- Added a comprehensive
@summary.- Explained "Wrapperless Rendering" and "Layout Participation".
- Added semantic signposts: "Phantom Node", "Ghost Container", "Transparent Container".
- Added
@seelinks toNeo.vdom.Helperand the reference exampleNeo.examples.container.fragment.MainContainer.src/vdom/Helper.mjs:
compareAttributes: Explained the "transparency" optimization (ignoring attributes).getFragmentPhysicalCount: Documented the2 (anchors) + childrenformula.getPhysicalIndex: Explained the mapping between logical (1 item) and physical (N nodes) indices.src/main/DeltaUpdates.mjs:
moveNode: Documented the "Atomic Move" logic (usingmoveBefore) and the Fragment fallback (range extraction via XPath).- Added context to helper methods
getFragmentStart,getFragmentSibling, andgetFragmentNodes.src/container/Base.mjs:
removeAt: Documented the criticalkeepMountedparameter for preserving component state during atomic moves.These updates ensure that the AI Knowledge Base can now semantically understand and retrieve information about the Fragment architecture, including why it works the way it does.
tobiu closed this issue on Jan 14, 2026, 2:21 AM
Apply the 3.2. Knowledge Base Enhancement Strategy (from
AGENTS_STARTUP.md) to the artifacts produced by Epic #8601.Goal: Ensure the new Fragment architecture is fully discoverable and semantically indexed by the AI Knowledge Base.
Scope: Review and enhance JSDoc comments for:
src/container/Fragment.mjs@summaryand detailed architectural context.src/vdom/Helper.mjssrc/main/DeltaUpdates.mjsinsertNode,moveNode,removeNode.src/container/Base.mjsinsertandremove.Requirements:
@seelinks to relevant tests and the example app.@summarytags are present on modified classes/methods.