LearnNewsExamplesServices
Frontmatter
id9873
titleRefactor Agent Startup Workflow to Prevent Premature UI Guide Loading
stateClosed
labels
bugai
assigneestobiu
createdAtApr 11, 2026, 9:58 AM
updatedAtApr 12, 2026, 7:01 PM
githubUrlhttps://github.com/neomjs/neo/issues/9873
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 11, 2026, 10:02 AM

Refactor Agent Startup Workflow to Prevent Premature UI Guide Loading

tobiu
tobiu commented on Apr 11, 2026, 9:58 AM

The Problem

During the mandatory initialization sequence defined in AGENTS_STARTUP.md, Step 4 dictates that the agent should read learn/gettingstarted/DescribingTheUI.md. However, at this specific point in the boot cycle, the agent has not yet fetched the Context Frontier or interacting with the user to determine if the task actually involves frontend UI components. Reading UI guides prematurely when the task might be backend or infrastructure-related wastes cognitive bandwidth and violates context scoping protocols.

The Architectural Reality

The current instructions linearly enforce frontend document processing before the Memory Core determines the strategic task. This must be decoupled. This flaw has caused agents in past sessions to pollute their initial context window with UI assumptions.

The Solution Implementation

  1. Remove Step 4: Understand the Two Component Models from the rigid, domain-agnostic session initialization loop in AGENTS_STARTUP.md.
  2. Reposition the requirement to read DescribingTheUI.md as a conditional mandate inside the Implementation Loop (Section 4), explicitly stating that the document should only be loaded after the agent confirms the task involves frontend DOM/VDOM components. This ensures the session initialization remains lean and task-agnostic.
tobiu added the bug label on Apr 11, 2026, 9:58 AM
tobiu added the ai label on Apr 11, 2026, 9:58 AM
tobiu referenced in commit 3895417 - "docs: Refactor Agent Startup Workflow to delay UI Guide loading (#9873)" on Apr 11, 2026, 9:59 AM
tobiu cross-referenced by PR #9874 on Apr 11, 2026, 9:59 AM
tobiu referenced in commit bfc374c - "docs: Refactor Agent Startup Workflow to delay UI Guide loading (#9873) (#9874)" on Apr 11, 2026, 10:02 AM
tobiu closed this issue on Apr 11, 2026, 10:03 AM
tobiu referenced in commit d1aa13a - "Docs: Refine AI infrastructure scale and boundaries in CodebaseOverview (#9876) on Apr 11, 2026, 10:26 AM
tobiu assigned to @tobiu on Apr 12, 2026, 7:01 PM