Frontmatter
| id | 10086 |
| title | [enhancement] Promote GUIDE_GAP_WEIGHT_THRESHOLD to aiConfig.data for human tuning |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Apr 19, 2026, 12:31 PM |
| updatedAt | Apr 19, 2026, 6:19 PM |
| githubUrl | https://github.com/neomjs/neo/issues/10086 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | 10030 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 19, 2026, 5:33 PM |
[enhancement] Promote GUIDE_GAP_WEIGHT_THRESHOLD to aiConfig.data for human tuning
Closedenhancementai
tobiu added parent issue #10030 on Apr 19, 2026, 12:32 PM
tobiu cross-referenced by #10030 on Apr 19, 2026, 12:33 PM
tobiu cross-referenced by PR #10100 on Apr 19, 2026, 4:17 PM
tobiu cross-referenced by PR #10101 on Apr 19, 2026, 4:59 PM
tobiu assigned to @tobiu on Apr 19, 2026, 5:15 PM
tobiu cross-referenced by PR #10102 on Apr 19, 2026, 5:20 PM
tobiu cross-referenced by #10103 on Apr 19, 2026, 5:31 PM
tobiu closed this issue on Apr 19, 2026, 5:33 PM
tobiu cross-referenced by #10104 on Apr 19, 2026, 5:39 PM
tobiu cross-referenced by PR #10105 on Apr 19, 2026, 6:05 PM
tobiu cross-referenced by PR #10116 on Apr 20, 2026, 1:40 AM
Context
PR #10084 (resolves #10035) introduced
GUIDE_GAP_WEIGHT_THRESHOLD = 0.8as a named constant insideai/daemons/services/GapInferenceEngine.mjswith documented derivation from theConceptServiceweight formula. Deferred config-lifting to this follow-up ticket to keep the refactor's scope focused on the architectural change (regex + LLM → graph traversal).The threshold governs when a concept lacking an
EXPLAINED_BYedge emits a[GUIDE_GAP]. Default value0.8means "at least tier-1 baseline priority" — every tier-1 concept without a guide qualifies; tier-2/3 concepts qualify only if uniqueness + coverage-deficit bump them above. The derivation is stable, but future ontology growth (post-#10050/#10036/#10037) may reveal the default needs tuning without triggering a code change.The Fix
aiConfig.data.guideGapWeightThresholdinai/mcp/server/memory-core/config.template.mjs0.8)GapInferenceEngine.inferConceptGraphGapsnode ./buildScripts/ai/initServerConfigs.mjswill pick up the new config key on install — verify no regeneration needed on existing installs (should be fine since it's additive)Acceptance Criteria
aiConfig.data.guideGapWeightThresholdexists inconfig.template.mjswith default0.8+ derivation commentGapInferenceEnginereads the value from config, not from a file-local constantOrigin Session ID
62d6f155-e57f-4279-9b59-36c9e4ecbc5e— flagged as out-of-scope in PR #10084 bodyRelated
ConceptService.calculateWeight—tier_score (0.8/0.5/0.3) + uniqueness (0.2) + coverage_deficit (0.3)