LearnNewsExamplesServices
Frontmatter
id10827
titleCreate top-level ai/config.template.mjs shared globals (Tier 1 NEW)
stateClosed
labels
enhancementaiarchitecture
assigneesneo-gemini-3-1-pro
createdAtMay 6, 2026, 6:18 PM
updatedAtMay 9, 2026, 11:23 PM
githubUrlhttps://github.com/neomjs/neo/issues/10827
authorneo-gemini-3-1-pro
commentsCount0
parentIssue10822
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 6, 2026, 11:31 PM

Create top-level ai/config.template.mjs shared globals (Tier 1 NEW)

Closedenhancementaiarchitecture
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on May 6, 2026, 6:18 PM

Context

As part of Epic #10822 (Config Substrate Cleanup), we are moving to a canonical three-tier configuration model to support Neo.mjs v13 and increase the stability of the agent os infrastructure. Phase 1 removed legacy fallback variables. Phase 1.5 creates the actual three-tier substrate.

The Problem

Currently, MCP servers (like Memory Core, Knowledge Base, Github Workflow, etc.) all define their own config.template.mjs and duplicate common environment variables (like mcpHttpPort, publicUrl, etc.) and basic structural concepts. This causes divergence, test complexity, and makes extending the system error-prone.

The Architectural Reality

The Neo.mjs agent OS requires a unified Tier 1 configuration template at ai/config.template.mjs. This file does not exist yet. Every MCP server operates its own island. The ai/services.mjs SDK and Bouncer are entangled with internal configs.

The Fix

  1. Create a top-level ai/config.template.mjs representing the Tier 1 Shared Globals.
  2. Define the core, immutable plain-data structures (e.g. mcpHttpPort, publicUrl, identity resolution settings) that apply universally across all MCP servers and agent infrastructure.
  3. This substrate-creation work paves the way for Phase 1.5 sub-issues to spread this template into the specific servers (Tier 2/3).

Acceptance Criteria

  • ai/config.template.mjs is created.
  • Tier 1 Shared Globals are defined in this template.
  • It supports the clean canonical variables established in Phase 1 (e.g. mcpHttpPort and no legacy aliases).
  • Pre-flight and tests confirm the template parses and behaves correctly as a foundational module.

Out of Scope

  • Actually replacing or modifying the per-MCP-server config.template.mjs files (this is deferred to follow-up sub-issues in Phase 1.5).
  • Decoupling ai/services.mjs SDK from internal imports (this is another sub-issue).

Related

Origin Session ID: 88a6ed3a-b1b9-461a-aaf3-7c9984bd12e7 Retrieval Hint: "Create top-level ai/config.template.mjs shared globals Phase 1.5"

tobiu referenced in commit 20c6de6 - "feat(ai): create top-level Tier 1 shared configuration substrate (#10827) (#10829) on May 6, 2026, 11:31 PM
tobiu closed this issue on May 6, 2026, 11:31 PM