Skip to content

Support optional connection IDs in SyncAsk - #150

Merged
arnaugrispg merged 5 commits into
mainfrom
PDPS-2123-blank-connection-id-in-sync-ask-agent
Sep 29, 2026
Merged

arnaugrispg merged 5 commits into
mainfrom
PDPS-2123-blank-connection-id-in-sync-ask-agent

Conversation

@arnaugrispg

Copy link
Copy Markdown
Contributor

Enable hybrid SyncAsk retrieval when connection_ids is empty, allowing public resources while securely authorizing synchronized content. Preserve restricted behavior for configured connections and add regression tests.

@arnaugrispg
arnaugrispg requested review from a team and a lite review from Copilot September 28, 2026 10:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Critical and moderate findings remain unresolved.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Adds optional connection_ids support for hybrid SyncAsk retrieval, allowing public resources alongside authorized synchronized content.

Changes:

  • Adds optional connection ID validation.
  • Implements lazy sync configuration resolution and hybrid filtering.
  • Adds regression tests for hybrid authorization and caching.
File Summary Findings
agents/​nucliadb/​tests/​test_sync.py Adds regression coverage for hybrid behavior. No findings.
agents/​nucliadb/​src/​hyperforge_nucliadb/​sync/​driver.py Adds lazy sync configuration resolution and caching. No findings.
agents/​nucliadb/​src/​hyperforge_nucliadb/​sync/​config_driver.py Makes connection IDs optional with validation. No findings.
agents/​nucliadb/​src/​hyperforge_nucliadb/​sync/​agent.py Implements hybrid filtering and authorization. Critical (4 votes): Cached hybrid configurations can incorrectly filter public resources; skip the prefilter for hybrid sources. Moderate (1 vote): Resource metadata is fetched twice, increasing request volume and latency.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Two critical issues in hybrid filtering and source initialization must be fixed.

Review effort: Lite
Findings: 2 High severity

Open (2)
Resolved since last review (1)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Three moderate issues in hybrid filtering and resource handling must be addressed before approval.

Review effort: Lite
Findings: None

Resolved since last review (2)

@arnaugrispg
arnaugrispg added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit 865a413 Sep 29, 2026
4 checks passed
@arnaugrispg
arnaugrispg deleted the PDPS-2123-blank-connection-id-in-sync-ask-agent branch September 29, 2026 08:21
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.

3 participants