Skip to content

fix(OMN-10711): Declare storage/vector config in contract.yaml - #599

Merged
jonahgabriel merged 4 commits into
mainfrom
jonah/omn-10711-storage-config-contract
May 11, 2026
Merged

jonahgabriel merged 4 commits into
mainfrom
jonah/omn-10711-storage-config-contract

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Declares storage/vector connection env vars in contract.yaml for four nodes that were reading them bare without contract registration:

  • node_agent_coordinator_orchestrator: VALKEY_HOST (required at runtime by AdapterValkey)
  • node_baseline_capture: OMNIBASE_INFRA_DB_URL, POSTGRES_HOST, POSTGRES_PORT, VALKEY_HOST, VALKEY_PORT, QDRANT_HOST, QDRANT_PORT (all optional -- probes skip gracefully when unset)
  • node_navigation_history_reducer: QDRANT_HOST, QDRANT_PORT (optional -- no-op when unset)
  • node_projection_llm_cost: POSTGRES_HOST, POSTGRES_PORT (optional -- fallback when OMNIBASE_INFRA_DB_URL unset)

node_code_embedding_effect and node_code_enrichment_effect already covered by existing config: sections with env_var entries.

Also adds missing handler: block to node_navigation_history_reducer to fix pre-existing node-drift-gate strict violation triggered by touching the file.

No Python code changed -- contract declarations only.

Ticket

OMN-10711

Verification

  • uv run ruff format src/ && uv run ruff check src/ -- passed
  • uv run pytest tests/ -m unit -- 2271 passed, 0 failed
  • OMNIBASE_INFRA_PATH=.../omnibase_infra pre-commit run --all-files -- all hooks passed

Evidence-Source: OCC#926
Evidence-Ticket: OMN-10711

@coderabbitai

coderabbitai Bot commented May 11, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@jonahgabriel has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 3 minutes and 3 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 05246de4-9b8b-4a8c-bc54-b52cadcbea06

📥 Commits

Reviewing files that changed from the base of the PR and between 4d84c39 and cb01aa0.

📒 Files selected for processing (5)
  • docs/work-tracking/contracts/OMN-10711.yaml
  • src/omnimarket/nodes/node_agent_coordinator_orchestrator/contract.yaml
  • src/omnimarket/nodes/node_baseline_capture/contract.yaml
  • src/omnimarket/nodes/node_navigation_history_reducer/contract.yaml
  • src/omnimarket/nodes/node_projection_llm_cost/contract.yaml
📝 Walkthrough

Walkthrough

Five contract YAML files are updated to declare missing environment dependencies and handler metadata. Work ticket OMN-10711 tracks additions of env_dependencies sections to four node contracts and an explicit handler block to node_navigation_history_reducer, with no code changes or interface modifications.

Changes

Storage/Vector Configuration Contract Declarations

Layer / File(s) Summary
Work Tracking Contract
docs/work-tracking/contracts/OMN-10711.yaml
New contract file defines ticket scope: declaring env_dependencies for four nodes and a missing handler block, with emergency bypass disabled and definition-of-done evidence covering unit tests, lint, pre-commit, and deploy validation.
Handler Metadata Declaration
src/omnimarket/nodes/node_navigation_history_reducer/contract.yaml
Explicit handler block added to declare HandlerNavigationHistoryReducer module and class, alongside existing handler_config.
Environment Dependencies Declarations
src/omnimarket/nodes/node_agent_coordinator_orchestrator/contract.yaml, src/omnimarket/nodes/node_baseline_capture/contract.yaml, src/omnimarket/nodes/node_navigation_history_reducer/contract.yaml, src/omnimarket/nodes/node_projection_llm_cost/contract.yaml
Four node contracts declare env_dependencies: node_agent_coordinator_orchestrator requires VALKEY_HOST for caching; node_baseline_capture declares optional Postgres, Valkey, Qdrant, and database connectivity variables; node_navigation_history_reducer adds optional Qdrant variables; node_projection_llm_cost adds optional Postgres fallback variables.

Estimated Code Review Effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Four nodes now speak of services they need,
Valkey, Postgres, Qdrant—their trusty steed,
Contracts declare what once was hidden deep,
A handler joins the fold, promises to keep,
OMN-10711 hops toward the light! 🌟

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'fix(OMN-10711): Declare storage/vector config in contract.yaml' accurately and specifically summarizes the main change: declaring storage and vector configuration environment variables in contract.yaml files for four nodes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jonah/omn-10711-storage-config-contract

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

@github-actions
github-actions Bot enabled auto-merge May 11, 2026 14:52
@github-actions

github-actions Bot commented May 11, 2026 •

Copy link
Copy Markdown

✅ Architectural Review — PASSED

Errors: 0
Warnings: 0

What this checks

Rule Description
ARCH-TOPIC-001 No hardcoded Kafka topic strings in handler code
ARCH-DI-001 No event_bus=None bypass
ARCH-DI-002 No direct Handler instantiation outside workflow_runner/adapters
ARCH-DI-003 No reinvented DI containers
ARCH-TOPIC-002 contract.yaml topics follow `onex.{cmd

No architectural violations found.

Powered by node_pr_review_bot

@github-actions

github-actions Bot commented May 11, 2026 •

Copy link
Copy Markdown

✅ PR Review Bot — CLEAN

Findings: 0
Run ID: ``

Phase 1 (informational): Does not block merge. Required-check gate follows once a few runs confirm the bot completes successfully. See OMN-8890.


Verdict semantics

Verdict Meaning
clean No blocking findings
risks_noted Findings noted; threads passed judge verification
blocking_issue MAJOR/CRITICAL findings not resolved — do not merge

Powered by node_pr_review_bot — Qwen3-Coder-30B reviewer + DeepSeek-R1 judge (OMN-7963)

@github-actions

github-actions Bot commented May 11, 2026 •

Copy link
Copy Markdown

⚠️ Hostile Reviewer — DEGRADED (informational)

Blocking findings (critical/error): 0
Total findings: 0
Models succeeded: none

Note: All reviewer models failed or were unavailable. Degraded results are informational during the pilot phase (OMN-8524) and do not block merge. Error: cli_review exited non-zero (all models failed or binary error)


Gate semantics (pilot phase)

Verdict Meaning Blocks merge?
passed No critical/error findings No
blocked CRITICAL or ERROR findings found Yes
degraded All models unavailable (infra) No (pilot)

Powered by omniintelligence.review_pairing.cli_review — node-based adversarial review via HandlerLlmCliSubprocess (OMN-8524)

@jonahgabriel
jonahgabriel added this pull request to the merge queue May 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch May 11, 2026
Add env_dependencies sections to four nodes that read storage/vector
connection vars without contract declaration:
- node_agent_coordinator_orchestrator: VALKEY_HOST
- node_baseline_capture: OMNIBASE_INFRA_DB_URL, POSTGRES_{HOST,PORT}, VALKEY_{HOST,PORT}, QDRANT_{HOST,PORT}
- node_navigation_history_reducer: QDRANT_{HOST,PORT}
- node_projection_llm_cost: POSTGRES_{HOST,PORT}

node_code_embedding_effect and node_code_enrichment_effect were already
covered by existing config: sections with env_var declarations.
…ract

node_navigation_history_reducer was in KNOWN_MAIN_VIOLATIONS for missing
handler block; touching the contract in this PR promotes it to strict
validation, so the handler block must be added to pass node-drift-gate.

Also adds docs/work-tracking/contracts/OMN-10711.yaml to satisfy
the deploy-gate (dod-deploy evidence with docker exec check_value).
@jonahgabriel
jonahgabriel force-pushed the jonah/omn-10711-storage-config-contract branch from 4560471 to cb01aa0 Compare May 11, 2026 18:16
@jonahgabriel
jonahgabriel added this pull request to the merge queue May 11, 2026
Merged via the queue into main with commit f54be99 May 11, 2026
36 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-10711-storage-config-contract branch May 11, 2026 18:24
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