Skip to content

fix(ideation): corrige import named do GotchasMemory (#517)#521

Open
nikolasdehor wants to merge 7 commits intoSynkraAI:mainfrom
nikolasdehor:fix/ideation-engine-gotchas-import
Open

fix(ideation): corrige import named do GotchasMemory (#517)#521
nikolasdehor wants to merge 7 commits intoSynkraAI:mainfrom
nikolasdehor:fix/ideation-engine-gotchas-import

Conversation

@nikolasdehor
Copy link
Contributor

@nikolasdehor nikolasdehor commented Feb 26, 2026

Problema

Em ideation-engine.js:16, o import do GotchasMemory atribui o objeto module inteiro à variável:

GotchasMemory = require('../memory/gotchas-memory');
// GotchasMemory = { GotchasMemory: [Function], GotchaCategory: ..., Severity: ... }

Como gotchas-memory.js exporta named exports (module.exports = { GotchasMemory, ... }), new GotchasMemory() lança TypeError: GotchasMemory is not a constructor. O try/catch silencia o erro, e gotchasMemory fica sempre null.

Correção

Destructuring no import:

-  GotchasMemory = require('../memory/gotchas-memory');
+  ({ GotchasMemory } = require('../memory/gotchas-memory'));

Validação

  • Antes: engine.gotchasMemorynull (constructor silenciosamente falha)
  • Depois: engine.gotchasMemoryGotchasMemory {} (instância correta)
  • 7445 tests passando, zero regressões

Closes #517

Summary by CodeRabbit

  • Tests

    • Added regression test suite for memory handling covering auto-creation, custom memory configuration, and load failure scenarios.
  • Bug Fixes

    • Enhanced error handling for module loading failures with console warnings and graceful degradation, allowing the system to continue operating instead of failing silently.

Copilot AI review requested due to automatic review settings February 26, 2026 02:48
@vercel
Copy link

vercel bot commented Feb 26, 2026

@nikolasdehor is attempting to deploy a commit to the Pedro Valério Lopez's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link

coderabbitai bot commented Feb 26, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

This PR fixes a named export import bug affecting GotchasMemory instantiation in IdeationEngine. Changes include updating two core files to use destructured imports with proper error handling, and introducing a regression test suite validating three initialization scenarios: auto-creation, custom memory injection, and load failure handling.

Changes

Cohort / File(s) Summary
Test Suite
tests/core/ideation/ideation-engine-gotchas.test.js
New regression test suite validating GotchasMemory initialization: auto-creation when omitted from config, custom memory object usage, and graceful failure handling with console warning on load errors. Mocks fs and child_process, requires fresh module instances per test.
Import Fixes
core/execution/context-injector.js, core/execution/subagent-dispatcher.js
Replaces direct require with destructured assignment ({ GotchasMemory } = require(...)) to correctly handle named exports. Adds error handling to log warnings and set GotchasMemory to null on load failure, preventing silent failures and surfacing issues via console.

Possibly related issues

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main fix: correcting the named import of GotchasMemory, which directly addresses the core issue reported in #517.
Linked Issues check ✅ Passed The pull request fully addresses all coding objectives from #517: corrects named imports in ideation-engine.js, context-injector.js, and subagent-dispatcher.js; adds proper error handling with console warnings; and enables auto-creation of GotchasMemory instances.
Out of Scope Changes check ✅ Passed All changes are directly scoped to fixing the GotchasMemory import issue. The test suite addition and import fixes in three core files are all necessary and focused on resolving the reported bug without introducing unrelated modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical import bug in ideation-engine.js where GotchasMemory was being imported incorrectly. The module gotchas-memory.js exports named exports (module.exports = { GotchasMemory, ... }), but the import was treating it as a default export, causing new GotchasMemory() to throw a TypeError that was silently caught, leaving gotchasMemory always null.

Changes:

  • Fixed the import in ideation-engine.js to use destructuring: ({ GotchasMemory } = require('../memory/gotchas-memory'))

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -13,7 +13,7 @@ const { execSync } = require('child_process');
// Import dependencies with fallbacks
let GotchasMemory;
try {
GotchasMemory = require('../memory/gotchas-memory');
({ GotchasMemory } = require('../memory/gotchas-memory'));
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix correctly addresses the import issue in this file, but the same bug exists in two other files that also need to be fixed:

  1. .aios-core/core/execution/context-injector.js:24 - Uses GotchasMemory = require('../memory/gotchas-memory') and tries to instantiate with new GotchasMemory() on line 50
  2. .aios-core/core/execution/subagent-dispatcher.js:31 - Uses GotchasMemory = require('../memory/gotchas-memory') and tries to instantiate with new GotchasMemory() on line 99

Both files have the exact same bug where they import the entire module object instead of destructuring the GotchasMemory class, which will cause the same TypeError when instantiating. These should be fixed in the same PR to ensure consistency and prevent the same silent failure across the codebase.

Copilot uses AI. Check for mistakes.
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
.aios-core/core/ideation/ideation-engine.js (1)

15-19: Keep the fallback, but stop swallowing import failures silently.

On Line 17, catch {} removes error context for a critical-path module. Please capture/log minimal context so future regressions are diagnosable while still falling back to null.

Proposed adjustment
 try {
   ({ GotchasMemory } = require('../memory/gotchas-memory'));
-} catch {
+} catch (error) {
+  console.warn('[IdeationEngine] Failed to load GotchasMemory:', error.message);
   GotchasMemory = null;
 }

As per coding guidelines, "Verify error handling is comprehensive with proper try/catch and error context."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.aios-core/core/ideation/ideation-engine.js around lines 15 - 19, The empty
catch around the dynamic import of GotchasMemory swallows errors; change the
catch to capture the exception (e.g., catch (err)) and log minimal context
before falling back to null so failures are diagnosable; specifically update the
try/catch that wraps require('../memory/gotchas-memory') / GotchasMemory so the
catch logs a concise message including err.message (or uses the existing logger
if available) and then sets GotchasMemory = null.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.aios-core/core/ideation/ideation-engine.js:
- Line 16: Add a regression unit test that instantiates IdeationEngine without a
gotchasMemory option and asserts that the constructor creates a GotchasMemory
instance; specifically, in your test suite import/require IdeationEngine and the
GotchasMemory symbol (from core/ideation/ideation-engine.js), call new
IdeationEngine({ /* omit gotchasMemory */ }) and verify the resulting engine has
a gotchasMemory property that is an instance of GotchasMemory; place the test
under the .aios-core/core/** tests to satisfy coverage rules and include module
load success setup/mocks as needed so the constructor path runs.

---

Nitpick comments:
In @.aios-core/core/ideation/ideation-engine.js:
- Around line 15-19: The empty catch around the dynamic import of GotchasMemory
swallows errors; change the catch to capture the exception (e.g., catch (err))
and log minimal context before falling back to null so failures are diagnosable;
specifically update the try/catch that wraps require('../memory/gotchas-memory')
/ GotchasMemory so the catch logs a concise message including err.message (or
uses the existing logger if available) and then sets GotchasMemory = null.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 63db79b and 2aad3c5.

📒 Files selected for processing (1)
  • .aios-core/core/ideation/ideation-engine.js

@@ -13,7 +13,7 @@ const { execSync } = require('child_process');
// Import dependencies with fallbacks
let GotchasMemory;
try {
GotchasMemory = require('../memory/gotchas-memory');
({ GotchasMemory } = require('../memory/gotchas-memory'));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find the ideation-engine.js file
fd -HI "ideation-engine.js"

# Check the directory structure
find .aios-core/core/ideation -type f -name "*.js" -o -name "*.ts" | head -20

Repository: SynkraAI/aios-core

Length of output: 149


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Search for test files related to ideation engine
fd -HI "test|spec" | grep -i ideation

# Also search for gotchas-memory tests
fd -HI "test|spec" | grep -i gotchas

Repository: SynkraAI/aios-core

Length of output: 44


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find the ideation-engine.js file and read it to understand the constructor
fd -t f "ideation-engine.js" --path "*/core/ideation/*" -x wc -l

# Then examine the file
fd -t f "ideation-engine.js" --path "*/core/ideation/*" -x cat -n

Repository: SynkraAI/aios-core

Length of output: 295


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find and read the ideation-engine.js file
cat -n .aios-core/core/ideation/ideation-engine.js

Repository: SynkraAI/aios-core

Length of output: 28750


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Search for test files anywhere in the repo matching ideation pattern
find . -type f \( -name "*test*.js" -o -name "*spec*.js" -o -name "*test*.ts" -o -name "*spec*.ts" \) | grep -iE "(ideation|gotchas)" | head -20

Repository: SynkraAI/aios-core

Length of output: 44


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Search for any test files in the ideation directory
find .aios-core/core/ideation -type f | head -20

Repository: SynkraAI/aios-core

Length of output: 105


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find all test-like files in the entire repo
find . -type f -name "*.test.js" -o -name "*.spec.js" -o -name "*.test.ts" -o -name "*.spec.ts" | head -30

Repository: SynkraAI/aios-core

Length of output: 1971


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Search for directory patterns that commonly contain tests
find . -type d \( -name "test" -o -name "tests" -o -name "__tests__" -o -name "spec" -o -name "specs" \) | head -20

Repository: SynkraAI/aios-core

Length of output: 403


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Search for any mention of IdeationEngine in the entire codebase
rg -l "IdeationEngine" --type js --type ts | head -30

Repository: SynkraAI/aios-core

Length of output: 44


🏁 Script executed:

#!/bin/bash
set -euso pipefail

# Search for gotchas-memory references
rg -l "gotchas-memory|GotchasMemory" --type js --type ts | head -30

Repository: SynkraAI/aios-core

Length of output: 346


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Search for test files mentioning ideation or gotchas
find . -type f \( -name "*.test.js" -o -name "*.spec.js" -o -name "*.test.ts" -o -name "*.spec.ts" \) -exec grep -l "ideation\|gotchas" {} \; 2>/dev/null | head -20

Repository: SynkraAI/aios-core

Length of output: 180


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Check if there's a test directory under ideation
find . -path "*/ideation/*" -type f \( -name "*.test.js" -o -name "*.spec.js" -o -name "*test*.js" \) | head -20

Repository: SynkraAI/aios-core

Length of output: 44


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Search for any file that requires ideation-engine
rg "require.*ideation-engine|from.*ideation-engine" --type js --type ts | head -30

Repository: SynkraAI/aios-core

Length of output: 44


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Check if gotchas-memory has its own tests
find . -path "*/memory/*" -type f -name "*.test.js" -o -name "*.spec.js" -o -name "*test*.js" 2>/dev/null | head -20

Repository: SynkraAI/aios-core

Length of output: 1301


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# List all files in the memory test directory if it exists
ls -la .aios-core/core/memory/__tests__/ 2>/dev/null || echo "Directory does not exist"

Repository: SynkraAI/aios-core

Length of output: 247


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Find and read gotchas-memory.js
find . -name "gotchas-memory.js" -type f -exec cat -n {} \;

Repository: SynkraAI/aios-core

Length of output: 38907


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Look for any existing test that might test ideation-engine indirectly
rg "new IdeationEngine|ideation.*engine" --type js tests/ .aios-core/ -A 3 -B 1 | head -50

Repository: SynkraAI/aios-core

Length of output: 44


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Check if ideation-engine is imported/used anywhere in the codebase
rg "IdeationEngine" --type js --type ts -l

Repository: SynkraAI/aios-core

Length of output: 44


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Look for any test that might be testing core modules or memory modules
find . -name "*.test.js" -o -name "*.spec.js" | xargs grep -l "GotchasMemory\|ideation" 2>/dev/null || echo "No tests found matching pattern"

Repository: SynkraAI/aios-core

Length of output: 140


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Check test directories near ideation or memory
ls -la .aios-core/core/ideation/ 2>/dev/null || echo "No test dir in ideation"
ls -la .aios-core/core/memory/__tests__/ 2>/dev/null || echo "No tests in memory"

Repository: SynkraAI/aios-core

Length of output: 433


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Look for getAll method usage in tests since ideation-engine calls it (line 79)
rg "getAll" --type js -l | head -20

Repository: SynkraAI/aios-core

Length of output: 341


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Check what's in those test files that mention GotchasMemory
cat -n ./tests/core/context-injector.test.js | head -100

Repository: SynkraAI/aios-core

Length of output: 3865


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Check the other test file
cat -n ./tests/core/subagent-dispatcher.test.js | head -100

Repository: SynkraAI/aios-core

Length of output: 4239


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Final check: does IdeationEngine appear in any actual test that isn't just mocking?
rg "IdeationEngine" --type js tests/ .aios-core/ -B 2 -A 5 | head -50

Repository: SynkraAI/aios-core

Length of output: 1313


Add regression test coverage for IdeationEngine constructor's GotchasMemory initialization path.

This core framework module lacks test coverage. Per the coding guidelines for .aios-core/core/** paths, verify test coverage exists for new/modified functions. Specifically, test that new IdeationEngine({ ...without gotchasMemory... }) instantiates a GotchasMemory instance when the module loads successfully, confirming the backwards compatibility contract for agents consuming this core module.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.aios-core/core/ideation/ideation-engine.js at line 16, Add a regression
unit test that instantiates IdeationEngine without a gotchasMemory option and
asserts that the constructor creates a GotchasMemory instance; specifically, in
your test suite import/require IdeationEngine and the GotchasMemory symbol (from
core/ideation/ideation-engine.js), call new IdeationEngine({ /* omit
gotchasMemory */ }) and verify the resulting engine has a gotchasMemory property
that is an instance of GotchasMemory; place the test under the
.aios-core/core/** tests to satisfy coverage rules and include module load
success setup/mocks as needed so the constructor path runs.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
tests/core/ideation/ideation-engine-gotchas.test.js (1)

50-65: Consider using afterEach or try/finally for mock cleanup.

If an assertion fails before console.warn.mockRestore() is called, the mock won't be restored, potentially affecting subsequent tests.

♻️ Suggested improvement for robust cleanup
 test('sets gotchasMemory to null when module fails to load', () => {
   // Mock the gotchas-memory module to throw on require
   jest.doMock('../../../.aios-core/core/memory/gotchas-memory', () => {
     throw new Error('Module not found');
   });

   // Suppress the expected console.warn
-  jest.spyOn(console, 'warn').mockImplementation(() => {});
+  const warnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {});

-  IdeationEngine = require('../../../.aios-core/core/ideation/ideation-engine');
-  const engine = new IdeationEngine({ rootPath: '/tmp/test' });
-
-  expect(engine.gotchasMemory).toBeNull();
-
-  console.warn.mockRestore();
+  try {
+    IdeationEngine = require('../../../.aios-core/core/ideation/ideation-engine');
+    const engine = new IdeationEngine({ rootPath: '/tmp/test' });
+
+    expect(engine.gotchasMemory).toBeNull();
+  } finally {
+    warnSpy.mockRestore();
+  }
 });
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/core/ideation/ideation-engine-gotchas.test.js` around lines 50 - 65,
The test currently mocks console.warn and the gotchas-memory require but only
calls console.warn.mockRestore() at the end, which can leak if the assertion
throws; wrap the test's require/assert sequence in a try/finally (or move
cleanup to an afterEach) so that console.warn.mockRestore() always runs, and
also call jest.resetModules() (or jest.isolateModules) in the finally/afterEach
to clear the mocked require of '../../../.aios-core/core/memory/gotchas-memory'
before other tests; apply this around the code that requires IdeationEngine and
checks engine.gotchasMemory to ensure deterministic cleanup.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@tests/core/ideation/ideation-engine-gotchas.test.js`:
- Around line 50-65: The test currently mocks console.warn and the
gotchas-memory require but only calls console.warn.mockRestore() at the end,
which can leak if the assertion throws; wrap the test's require/assert sequence
in a try/finally (or move cleanup to an afterEach) so that
console.warn.mockRestore() always runs, and also call jest.resetModules() (or
jest.isolateModules) in the finally/afterEach to clear the mocked require of
'../../../.aios-core/core/memory/gotchas-memory' before other tests; apply this
around the code that requires IdeationEngine and checks engine.gotchasMemory to
ensure deterministic cleanup.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 061567f and 8ace5cb.

📒 Files selected for processing (2)
  • .aios-core/install-manifest.yaml
  • tests/core/ideation/ideation-engine-gotchas.test.js

@Pedrovaleriolopez
Copy link
Contributor

DevOps Review — @devops (Gage)

Veredicto: APPROVED — Merge após rebase

Análise

  • Fix crítico de bug silencioso: GotchasMemory estava sempre null em produção
  • Destructuring correto em 3 arquivos core + warn log no catch (endereça feedback CodeRabbit)
  • 7445 testes passando, pre-merge checks 5/5 PASSED
  • Desbloqueia PR test: add 54 unit tests for IdeationEngine and Analyzers #518 (testes de IdeationEngine)

Bloqueador

⚠️ Conflitos de merge detectados — o PR está CONFLICTING contra main. Provavelmente causado pelo merge recente de #529 (docs reorganization) que atualizou install-manifest.yaml.

Ação necessária

@nikolasdehor por favor faça rebase contra main para resolver os conflitos:

git fetch origin
git rebase origin/main
# Resolver conflitos (provavelmente em install-manifest.yaml)
npm run generate:manifest  # Regenerar manifest
git push --force-with-lease

Após rebase limpo, merge imediato.

Gage — Repository Guardian

@nikolasdehor nikolasdehor force-pushed the fix/ideation-engine-gotchas-import branch 2 times, most recently from fbbd291 to 50da339 Compare March 10, 2026 14:26
@nikolasdehor
Copy link
Contributor Author

@Pedrovaleriolopez, fiz o rebase que você pediu (pré-requisito do #518). O import do GotchasMemory tá corrigido com wrapper de compatibilidade no .aios-core. Pode aprovar pra desbloquear o #518?

…ning

Story 9.5 of Epic 9 (Persistent Memory Layer). Implements Phase 2
of the Agent Immortality Protocol (SynkraAI#482) — Persistence layer.

Features:
- Record decisions with context, rationale, and alternatives
- Track outcomes (success/partial/failure) with confidence scoring
- Auto-detect categories from description keywords
- Find relevant past decisions for context injection (AC7)
- Pattern detection across recurring decisions (AC9)
- Time-based confidence decay for relevance scoring
- Persistence to .aiox/decisions.json

37 unit tests covering all features.
gotchas-memory.js exporta named export { GotchasMemory, ... }, mas
ideation-engine.js atribuía o objeto module inteiro à variável.
Resultado: new GotchasMemory() lançava TypeError silenciado pelo
try/catch, e gotchasMemory ficava sempre null.

Corrige com destructuring: ({ GotchasMemory } = require(...))

Closes SynkraAI#517
CodeRabbit encontrou o mesmo bug de named export em context-injector.js
e subagent-dispatcher.js. Aplica destructuring ({ GotchasMemory }) nos 3
módulos e adiciona console.warn no catch para facilitar diagnóstico.

Módulos corrigidos:
- ideation-engine.js (catch vazio → console.warn)
- context-injector.js (import + catch)
- subagent-dispatcher.js (import + catch)

Regenera install-manifest.yaml.
Verifica que IdeationEngine instancia GotchasMemory corretamente
via named export. Cobre 3 cenários:
- Auto-criação quando config.gotchasMemory omitido
- Uso do gotchasMemory fornecido via config
- Fallback para null quando módulo falha ao carregar
Garante que o spy do console.warn é restaurado mesmo se
a asserção falhar, evitando leak entre testes.
- Criado .aios-core/core/ideation/ideation-engine.js (wrapper retrocompatível)
- Criado .aios-core/core/memory/gotchas-memory.js (wrapper retrocompatível)
- Corrigido path do jest.doMock no teste de GotchasMemory import failure
  (apontava para .aios-core mas o engine importa de .aiox-core)
@nikolasdehor nikolasdehor force-pushed the fix/ideation-engine-gotchas-import branch from 50da339 to d15bdc9 Compare March 11, 2026 02:23
@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 97.60479% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.aiox-core/core/memory/decision-memory.js 97.57% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@nikolasdehor
Copy link
Contributor Author

@Pedrovaleriolopez, esse PR é o fix original do GotchasMemory import (issue #517). Já rebased conforme você pediu. O #584 duplica esse trabalho. Pode aprovar pra desbloquear o #518 também?

@nikolasdehor
Copy link
Contributor Author

@Pedrovaleriolopez, fiz o rebase que você pediu no dia 26/fev e tá pronto desde então. Esse fix desbloqueia o PR de testes #518 também. Vi que o @oalanicolas abriu o #584 com o mesmo fix — mas o nosso é o original. Se precisar de qualquer mudança extra, é só avisar.

@github-actions github-actions bot added area: agents Agent system related area: workflows Workflow system related squad labels Mar 12, 2026
@github-actions github-actions bot added mcp type: test Test coverage and quality area: core Core framework (.aios-core/core/) area: installer Installer and setup (packages/installer/) area: synapse SYNAPSE context engine area: cli CLI tools (bin/, packages/aios-pro-cli/) area: pro Pro features (pro/) area: health-check Health check system area: docs Documentation (docs/) area: devops CI/CD, GitHub Actions (.github/) labels Mar 12, 2026
@nikolasdehor
Copy link
Contributor Author

@Pedrovaleriolopez, solicitando review deste PR. Aberto desde 26/fev, corrige a issue #517 (import incorreto do GotchasMemory no ideation-engine.js).

O PR duplicado #584 (aberto 11/mar) inclui a mesma correção. Este PR tem conflito de merge — posso fazer rebase rapidamente se necessário.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: agents Agent system related area: cli CLI tools (bin/, packages/aios-pro-cli/) area: core Core framework (.aios-core/core/) area: devops CI/CD, GitHub Actions (.github/) area: docs Documentation (docs/) area: health-check Health check system area: installer Installer and setup (packages/installer/) area: pro Pro features (pro/) area: synapse SYNAPSE context engine area: workflows Workflow system related mcp squad type: test Test coverage and quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ideation-engine falha ao instanciar GotchasMemory (export named vs default)

3 participants