Repository navigation
fix(omnibase_infra): eliminate HARDCODED_TOPIC + UNDECLARED_TRANSPORT violations [OMN-8605] - #1264
Merged
Merged
Conversation
Replace all hardcoded Kafka topic string literals in non-test source files with references to canonical suffix constants from platform_topic_suffixes.py and generated enum_platform_topic.py. New suffix constants added to platform_topic_suffixes.py: - SUFFIX_LINEAR_SNAPSHOT, SUFFIX_GIT_HOOK - SUFFIX_OMNICLAUDE_CONTEXT_UTILIZATION, SUFFIX_OMNICLAUDE_AGENT_MATCH - SUFFIX_OMNICLAUDE_LATENCY_BREAKDOWN, SUFFIX_OMNICLAUDE_MANIFEST_INJECTION_STARTED - SUFFIX_OMNICLAUDE_MANIFEST_INJECTED, SUFFIX_OMNICLAUDE_MANIFEST_INJECTION_FAILED Files fixed (9): - runtime/contract_registration_event_router.py (3 constants) - tui/consumers/consumer_status.py (3 constants) - cli/linear_relay.py, cli/git_hook_relay.py (1 constant each) - services/service_timeout_emitter.py (2 class defaults via EnumPlatformTopic) - services/observability/agent_actions/consumer.py (14 dict keys) - services/observability/injection_effectiveness/config.py (6 topic strings) - services/observability/llm_cost_aggregation/config.py (1 topic string)
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis pull request centralizes Kafka topic suffix constants by introducing 8 new shared constants in a dedicated module and updating 8 modules to import these constants instead of using hardcoded topic strings. Integration tests validate the new exports and topic compliance. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
jonahgabriel
enabled auto-merge
April 13, 2026 09:22
…y [OMN-8605] Add SUFFIX_GIT_HOOK, SUFFIX_LINEAR_SNAPSHOT, SUFFIX_OMNICLAUDE_AGENT_MATCH, SUFFIX_OMNICLAUDE_CONTEXT_UTILIZATION, SUFFIX_OMNICLAUDE_LATENCY_BREAKDOWN, SUFFIX_OMNICLAUDE_MANIFEST_INJECTED, SUFFIX_OMNICLAUDE_MANIFEST_INJECTION_FAILED, and SUFFIX_OMNICLAUDE_MANIFEST_INJECTION_STARTED to both the import block and __all__ list. Fixes F56 (check_topic_suffix_exports) lint gate failure. Also adds integration test to enforce export completeness going forward.
jonahgabriel
added a commit
that referenced
this pull request
Apr 13, 2026
Fallout from PRs #1264 (OMN-8605) and #1262 (OMN-8550) which landed on main without test verification, blocking PR #1266 from going green. Fix 1 — test_topic_suffix_exports.py: `from omnibase_infra.topics import __init__ as topics_init` resolved to a method-wrapper, not the module. Replace with a standard module import. Fix 2 — test_protocol_ownership.py: KNOWN_DUPLICATE_LOCATIONS["ProtocolPublisher"] was missing the node_baseline_capture entry added by OMN-7484. Also allowlists ProtocolDomainPlugin (still present in runtime/ as a backward-compat shim post OMN-8550 SPI migration). Fix 3 — test_topic_parity.py / check_contract_topic_parity.py: 8 SUFFIX_* constants added in #1264 had no spec group entries: - 6 omniclaude injection-effectiveness topics (OMN-1889, OMN-2942) added to _OMNICLAUDE_AGENT_OBSERVABILITY_TOPIC_SUFFIXES in platform_topic_suffixes.py, and to _LEGACY_ALLOWLIST (cross-repo, contract.yaml lives in omniclaude). - onex.evt.git.hook.v1 and onex.evt.linear.snapshot.v1 added to ALL_OMNIBASE_INFRA_TOPIC_SPECS (3 partitions, 7-day retention), and to _LEGACY_ALLOWLIST (CLI relay producers, no node contract). No new tickets filed per standing rule — OMN-8605 and OMN-8550 are the parent tickets for these regressions.
4 tasks done
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Jun 19, 2026
* feat(OMN-13298): wire url-authority gate (pre-commit + CI) Wires the existing check-url-authority remote hook from omnibase_core and adds url-authority-gate.yml CI workflow. Existing violations are grandfathered in the shared baseline (seeded via omnibase_core PR #1264). Only NEW hardcoded URL fingerprints will fail the gate going forward. - pre-commit hook: check-url-authority (ratchet, burn-down baseline) - CI workflow: url-authority-gate.yml (REQUIRED STATUS CHECK) - Baseline: seeded in omnibase_core#1264 (OMN-13298) Child of OMN-12803. * fix(OMN-13298): pin url authority validator source * fix(OMN-13298): run pinned url authority validator in CI * chore(OMN-13298): refresh infra CI summary --------- Co-authored-by: jonahgabriel <jonahgabriel@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
platform_topic_suffixes.pyandEnumPlatformTopicplatform_topic_suffixes.pyfor topics that were missing:SUFFIX_LINEAR_SNAPSHOT,SUFFIX_GIT_HOOK, and 6 omniclaude injection-effectiveness topicsNo hardcoded ONEX topic stringsgateFiles changed
runtime/contract_registration_event_router.py— 3 module-level constantstui/consumers/consumer_status.py— 3 module-level constantscli/linear_relay.py,cli/git_hook_relay.py— 1 constant eachservices/service_timeout_emitter.py— 2 class defaults viaEnumPlatformTopicservices/observability/agent_actions/consumer.py— 14 dict key stringsservices/observability/injection_effectiveness/config.py— 6 topic strings in default_factoryservices/observability/llm_cost_aggregation/config.py— 1 topic stringTest plan
No hardcoded ONEX topic stringsexplicitly passed)ruff format+ruff checkcleanSummary by CodeRabbit
Refactor
Tests