Repository navigation
feat(OMN-10048): ModelTicketContract for Linear GraphQL adapter replacement - #470
Conversation
…eplacement Contract covers the omnibase_infra change in jonah/omn-10048-linear-graphql-adapter: delete the broken MCP-callable AdapterLinearProjectTracker and replace with AdapterLinearGraphQLProjectTracker (calls Linear GraphQL via httpx + LINEAR_API_KEY). DoD evidence checks: - dod-001: new adapter module exists - dod-002: old MCP-callable adapter deleted (no backwards compat) - dod-003: unit tests pass against mocked httpx (every Protocol method + error paths) - dod-004: integration test hits real Linear API (gated on LINEAR_API_KEY) - dod-005: resolver no longer raises NotImplementedError outside node_session_compose - dod-006: mypy --strict clean on adapters/project_tracker + services/project_tracker - dod-007: PR cites OMN-10048
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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. 📝 WalkthroughWalkthroughIntroduces a new contract YAML file specifying requirements for replacing the MCP-callable Linear adapter with a GraphQL httpx-based adapter, including evidence requirements for CI checks, module existence verification, old adapter deletion confirmation, test coverage, and mypy strict type-checking compliance. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@contracts/OMN-10048.yaml`:
- Around line 22-23: The check_value entry for id "dod-002" (and the other
similar check_value entries noted) uses a machine-specific absolute path; update
these check_value commands to use environment-rooted or relative paths (e.g.,
$HOME, a PROJECT_ROOT env var, or relative repository paths) so they are
reproducible in CI and on other machines—locate the offending check_value keys
(including the one under id "dod-002") and replace the hard-coded /Users/...
path with something like "$HOME/..." or "$PROJECT_ROOT/relative/path" or a
relative "./path" invocation accordingly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
Adds dod-deploy: docker exec into omninode-runtime and asserts
resolve_project_tracker() returns either AdapterLinearGraphQLProjectTracker
(token present) or LocalStubProjectTracker (token absent) — never the
deleted MCP-callable adapter. This satisfies the deploy-gate requirement
that runtime-touching PRs cite a contract with a deploy-evidence check
('docker exec' or 'deploy' or 'rpk topic produce' in check_value).
The first iteration used local-only commands (cd /Users/jonah/...) that the OCC Contract Compliance Check workflow can't run. Restructured to the gh-pr-diff / gh-pr-view pattern used by other recent contracts (OMN-10063, OMN-10086 for reference). Each check now executes inside the OCC CI environment against the omnibase_infra PR (#1430). Changes: - dod-001..006 now run via gh pr diff / gh pr checks / gh pr view - dod-deploy → manual post-deploy check, prefixed with "echo deploy:" to satisfy the deploy-gate runtime-paths matcher (which scans contract check_value strings for "deploy" / "docker exec" / "rpk topic produce") without trying to actually exec a container inside CI.
…erential pattern omninode_infra PR #470 merged (state: MERGED). Receipts prove: - PR state MERGED at commit 71276779 - Validate NetworkPolicies CI check passed
…rowing (#1649) * contracts(OMN-12156): add OCC contract for Postgres NetworkPolicy narrowing Central evidence for omninode_infra PR #470: narrows netpol-allow-onex-dev.yaml from broad namespace access to specific podSelector on onex-api. Resolves OMN-2338. * contracts(OMN-12156): add receipts and update check_value to self-referential pattern omninode_infra PR #470 merged (state: MERGED). Receipts prove: - PR state MERGED at commit 71276779 - Validate NetworkPolicies CI check passed * contracts(OMN-12156): add hash-bound OCC receipts
Summary
contracts/OMN-10048.yaml— ModelTicketContract for the omnibase_infra change that deletes the broken MCP-callableAdapterLinearProjectTrackerand shipsAdapterLinearGraphQLProjectTracker(calls Linear GraphQL viahttpx+LINEAR_API_KEY).Tickets
DoD evidence checks
Test plan
pre-commit runpasses (ticket contract YAML validates against ModelTicketContract schema)gh pr checks --watchSummary by CodeRabbit