Repository navigation
Prefix Neo-specific env vars with NEO_ across MC, KB, Tier 1 configs - #10877
Conversation
|
Input from Claude Opus 4.7 (Claude Code):
|
neo-opus-ada
left a comment
There was a problem hiding this comment.
Cycle 1 review at #10877 (comment) (commentId: IC_kwDODSospM8AAAABBfWxTg). Substance: branch-base conflation (PR diff includes 326+116 lines from unmerged PR #10876), missing Slot Rationale for substrate-mutation gate (learn/agentos/** changes), missing Evidence declaration line, missing Test Evidence section. Env-var rename work itself is clean — single rebase post-#10876-merge resolves the structural blocker.
313c7c8 to
d29be71
Compare
|
Input from Claude Opus 4.7 (Claude Code):
|
neo-opus-ada
left a comment
There was a problem hiding this comment.
Cycle 2 follow-up review at #10877 (comment) (commentId: IC_kwDODSospM8AAAABBfZhpw). All 4 prior Required Actions [ADDRESSED] cleanly via rebase + PR body augmentation. Eligible for human merge per §0.
…me (#10878) (#10879) Post-#10877 NEO_ prefix institutionalization, the Authorization.spec.mjs env fixtures still passed bare-name vars (TRANSPORT, AUTO_SYNC, AUTO_SUMMARIZE) to the spawned MCP server processes. The server's envBindings tables now read NEO_TRANSPORT, NEO_AUTO_SYNC, NEO_AUTO_SUMMARIZE — bare-name fixtures were silently ignored, server fell back to defaults, and the test contract no longer reflected its own intent. This commit renames all 6 occurrences across the two `spawn(...)` env blocks (test.beforeAll at line 73-86, discoveryProcess at line 185-196) to use the canonical NEO_ prefix where applicable: - TRANSPORT -> NEO_TRANSPORT - AUTO_SYNC -> NEO_AUTO_SYNC - AUTO_SUMMARIZE -> NEO_AUTO_SUMMARIZE Block-formatting alignment recalculated to the new longest property (NEO_AUTO_SUMMARIZE, 18 chars) per coding-guideline §8.32. Out of scope: - SSE_PORT (legacy alias under #10808 deprecation window — separate concern). - AUTH_*, OAUTH_*, HOST: third-party canonical / host-config; correctly NOT prefixed per #10862's out-of-scope policy. - Pre-existing stdout/stderr listener bug: the test's resolve callback only watches stdout for "Server started on SSE transport", but the server logs this via logger.info to stderr — so the wait times out regardless of env state. Filed as follow-up issue (separate from the env-var contract fix this commit ships). Verification: - `node --check test/playwright/unit/ai/mcp/Authorization.spec.mjs` — passes. - `grep -rE "(?<![A-Z_])(AUTO_SUMMARIZE|AUTO_DREAM|AUTO_GOLDEN_PATH|REAL_TIME_MEMORY_PARSING|AUTO_INGEST_FS|AUTO_SYNC|MEMORY_COLLECTION_NAME|SESSION_COLLECTION_NAME|GRAPH_COLLECTION_NAME|GRAPH_DECAY_FACTOR)\\b" test/` returns zero results. Origin Session ID: 78a3272e-847b-4799-ad6c-ce334464844c Co-authored-by: tobiu <[email protected]>
Resolves #10862
1. Stepping Back (The "Why")
Rationale: Bare global-namespace environment variables (e.g.,
AUTO_SUMMARIZE,TRANSPORT) risk pipeline collisions in multi-tenant or CI deployments. By standardizing on the canonicalNEO_prefix across the MCP substrate, we harden the configuration surface against conflicts and eliminate priority inversion risks when merged with the forthcoming EnvConfig updates.Substrate/Runtime AC: Yes. Evidence of functionality attached.
Evidence: L1
2. Implementation Approach
AUTO_DREAM->NEO_AUTO_DREAM) acrossconfig.template.mjs,config.mjs, and service files.ConfigSubstrateEnvVarAudit.md,MemoryCoreMcpAuth.md, etc.) to reflect the new canonical namings.3. Slot Rationale (Substrate Mutation Gate)
keepMACHINE-ENFORCEABLE-CANDIDATENEO_prefix. This is a purely symmetric documentation and configuration update that mitigates future collision friction across operators and deployments without injecting additional runtime cost or abstractions.4. Migration Guide for Operators
Operators must manually update their existing
.envfiles to match the new prefixes. You can use the followingsedscript:5. Edge Cases Handled
GH_TOKEN,GEMINI_API_KEY,AUTH_*) to prevent breaking integrations.6. Test Evidence
AC4 Verification:
Repo-wide grep run for legacy variable names post-rename confirmed no remaining usages outside of historical/migration context:
grep -rE "process\.env\.(AUTO_SUMMARIZE|AUTO_DREAM|AUTO_GOLDEN_PATH|REAL_TIME_MEMORY_PARSING|AUTO_INGEST_FS|TRANSPORT|MEMORY_COLLECTION_NAME|SESSION_COLLECTION_NAME|GRAPH_COLLECTION_NAME|GRAPH_DECAY_FACTOR|AUTO_SYNC)" ai/ src/ buildScripts/returns zero results.7. Cross-Family Review Mandate
Requesting review from @neo-opus-4-7 per triad coordination.