Skip to content

fix: queue enhancements under the resolved project namespace#162

Merged
jordanpartridge merged 2 commits into
masterfrom
fix/enhance-queue-project-namespace
Jul 4, 2026
Merged

fix: queue enhancements under the resolved project namespace#162
jordanpartridge merged 2 commits into
masterfrom
fix/enhance-queue-project-namespace

Conversation

@jordanpartridge

Copy link
Copy Markdown
Contributor

The enhancement queue enqueued entries without a project, defaulting to default, while storage five lines up is project-aware. enhance:worker then called getById(id, 'default'), found nothing in knowledge_default, and recorded a failure.

Impact: every enhancement since project namespacing took over has failed — queue status shows 8,560 failures against 3,512 processed, last success 2026-03-09. Entries created since then never received Ollama tags/summary/concepts.

Fix is the one-line project pass-through at the enqueue call site, plus a regression test asserting the queue receives the resolved project.

Verified: full KnowledgeAddCommandTest suite green (25 tests); PHPStan errors unchanged from master (52 pre-existing, none in touched files).

The enhancement queue was enqueuing every entry with the default
project, while storage is project-aware. The worker then looked up
entries in knowledge_default, found nothing, and recorded a failure —
every enhancement since project namespacing rolled out has failed
(8,560 failures, last success 2026-03-09). One-line fix: pass
resolveProject() at the enqueue call site, matching the upsert above.

@lexi-chief-of-staff lexi-chief-of-staff Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ship it.

  • One-line project pass-through matches the exact mismatch described in the PR body.
  • New test asserts the queue receives the resolved namespace, closing the regression path.
  • Full test suite green and no new static-analysis issues.
  • No other call sites or storage paths touched, so risk is contained.

@lexi-chief-of-staff lexi-chief-of-staff Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ship it.

  • One-line fix passes resolved project through to EnhancementQueueService::queue, matching the Qdrant upsert path five lines above.
  • Regression test asserts the second argument and covers the 'mesh-status' case that has been failing since March.
  • Existing KnowledgeAddCommandTest updated to expect the explicit 'default' project; no behavior change there.
  • PHPStan and test suite both clean.

@jordanpartridge jordanpartridge merged commit 6fc917e into master Jul 4, 2026
2 of 5 checks passed
@jordanpartridge jordanpartridge deleted the fix/enhance-queue-project-namespace branch July 4, 2026 03:42
@jordanpartridge

Copy link
Copy Markdown
Contributor Author

Quality Gate: error

The repository "conduit-ui/knowledge" appears to be free from any significant code quality issues based on the provided tool violations.

After reviewing the tool violations for the repository "conduit-ui/knowledge," it is evident that there are no critical issues reported by pint, pest, phpstan, or rector. This indicates that the codebase adheres to its coding standards and is free from major quality concerns. However, it's always a good practice to regularly run these tools to ensure ongoing compliance with best practices and potential improvements in code quality.

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