Skip to content

Add src/cognitive/grammar_engine.rs (audit recovery from session)#16

Open
AdaWorldAPI wants to merge 2 commits intomainfrom
pr/cognitive-engine-additions-audit
Open

Add src/cognitive/grammar_engine.rs (audit recovery from session)#16
AdaWorldAPI wants to merge 2 commits intomainfrom
pr/cognitive-engine-additions-audit

Conversation

@AdaWorldAPI
Copy link
Owner

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fc66829d01

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

let consciousness_resonance = input.similarity(&state.consciousness.vsa_core);

// mRNA field resonance
let field_resonances = self.mrna.pollinate(input);

Choose a reason for hiding this comment

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

P2 Badge Avoid double pollination in cognitive_cycle

In cognitive_cycle, the input is already added to the mRNA field via pollinate before calling query, but query itself calls self.mrna.pollinate(input) again. This inserts the same concept twice, inflating concept counts/history and skewing the returned resonance and butterfly statistics compared to the single-pass results you return from the cycle. If the query is meant to be read-only, consider using a snapshot/lookup API or reusing the resonances from step 1 instead of re‑pollinating.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant