Skip to content

docs: prefer native log processing runtimes - #241

Merged
thomhurst merged 1 commit into
mainfrom
issue-239-native-partition-policy
Nov 2, 2026
Merged

thomhurst merged 1 commit into
mainfrom
issue-239-native-partition-policy

Conversation

@thomhurst

@thomhurst thomhurst commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

D23 currently directs every log transport to the core scheduler, even when its native client already owns processing. D40 supersedes that rule: Kafka's planned parallel adapter must wrap Dekaf's RunPartitionedAsync, and the core scheduler remains a fallback for clients without an equivalent runtime.

Closes #239

This delivers the independent policy/design/site work. Kafka adapter rework remains in #182 / #221, including the native gaps tracked in thomhurst/Dekaf#4054, #4055 and #4056. #240 separately owns D22's exception wording. This PR does not implement parallel Kafka receive or approve #221's current runtime.

Updated D13/D23 cross-references, design sections 2.4/7, transport-author and Kafka guides, completion guidance, roadmap and status page. The scheduler SPI, tests and runtime behavior remain unchanged. Removal is decided when the next log transport's native client is assessed, as #239 proposes.

Native/existing features: inspected Dekaf 1.25.0 PartitionedProcessing.cs and KeyOrderedPartitionDispatcher.cs for key ordering, byte-array equality, per-partition limits, pause/resume, bounded drain and commit tracking; checked Relayer's current serial Kafka adapter and scheduler call sites. No native feature is reimplemented in this documentation change.

Per-message cost: none; documentation/status text only, 0 B. No additional benchmark required.

Validation on da871c6: npm ci and npm run build passed on Node.js v24.14.1, including production documentation generation and broken-link/anchor checks. Decision numbering (D1–D40), D40 anchor and git diff --check passed. Full diff and range-diff reviewed for correctness, reuse and simplicity. No .NET build/tests or benchmarks were run for this documentation/status-text change. npm audit reports the existing 19 moderate/3 low findings dispositioned in website/README.md by #200 and tracked in #101; no high/critical findings.

Rebased onto b955339. The decisions-record conflict preserves the newly merged Protobuf schema-registry wording and appends D40. D22's native-reuse policy from #240 is preserved unchanged. No runtime or scheduler SPI changes.

Evidence is retained at C:/git/Relayer-evidence/pr-241/da871c6395dd4151648c93506789f727e0ddd805/. Nine inventory entries include raw install/build logs, decision/diff/range-diff checks, committed source archive, pinned native source inputs and tool provenance. All copied logs and source inputs matched their originals by length and SHA-256; all archive entries were verified against inventory.json. Local evidence is retained while this PR remains open and removed by cleanup after closure. The earlier head's evidence remains separately archived under its original SHA.

Pre-promotion evidence verification on 2026-11-02: all nine inventory entries at C:/git/Relayer-evidence/pr-241/da871c6395dd4151648c93506789f727e0ddd805/ match inventory.json by length and SHA-256. All entries with retained original paths also match their originals. Claude run 41462644737 attempt 2 succeeded with a receipt-verified CLEAR verdict for this head; Codex's completed summary reports no findings for the same full SHA.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cadeba58-4a04-43ac-8510-aa3878631ee8
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Review

Docs-only change (D40, design §2.4/§7, Kafka and scheduler pages, roadmap, status page). I read it against AGENTS.md and found nothing blocking.

  • D40 is numbered after D39, and the index row and anchor match the heading.
  • It follows the AGENTS.md rule to search the native client first (D1/D22). It names the Dekaf 1.25.0 source, files the upstream gaps (Dekaf#4054, #4055, #4056), and records the parallel-runtime exception.
  • It does not claim parallel Kafka receive works. Planned items are marked as planned, and the shipped serial adapter is still described accurately.
  • No code, public API or runtime behavior changes, so there is no per-message cost. The PR states this.

Non-blocking: website/docs/guides/configuration.md:44 and website/docs/transports/authoring.md:24 still say transports use "the core scheduler where applicable". Consider adding "fallback" there for consistency with D40.

@thomhurst

Copy link
Copy Markdown
Owner Author

@codex review

D40 replaces the core-first log scheduling policy with native-first processing. Kafka adapter implementation stays in #182; this PR preserves the public fallback SPI and updates design/site guidance. Documentation install/build, decision checks and diff checks pass. Evidence and scope are in the PR body.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T14:41:21.553627Z da871c6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@thomhurst

Copy link
Copy Markdown
Owner Author

Disposition of #241 (comment) on b9faccf: the two wording suggestions are non-blocking consistency edits. Both existing phrases say "where applicable"; D40 and the updated transport-author page now define that applicability as a fallback only when the native client has no equivalent. Neither page requires Kafka to use the core scheduler. No push for optional wording alone, following the review workflow's Feedback rule.

D40 grants no Kafka exception to duplicate the native runtime. Kafka implementation remains in #182 / #221, while #240 independently tightens D22. The Codex request for this exact head is posted; this PR stays draft for its review lifecycle.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: b9faccfed9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst
thomhurst force-pushed the issue-239-native-partition-policy branch from b9faccf to da871c6 Compare November 2, 2026 14:30
@thomhurst

Copy link
Copy Markdown
Owner Author

@codex review

Rebased #241 onto current main to resolve the decisions-record conflict. Commit da871c6 preserves main's Protobuf schema-registry wording and D22 native-reuse policy, with D40 appended. Range-diff confirms the intended policy/site changes remain intact.

npm ci, npm run build, decision numbering/anchor checks and git diff --check pass. Nine evidence files are verified by length and SHA-256 at the current-head location in the PR body. No runtime changes; per-message cost remains none, 0 B. The earlier optional wording suggestions remain dispositioned in #241 (comment).

This head stays draft for fresh Claude and Codex approvals. Claude review run 41462644737 is already in progress.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: da871c6395

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

Claude review delivery recovery: the original PR-associated run 41462644737, attempt 1, failed receipt verification with review posting failed: FileNotFoundError. It posted no review for da871c6. Logs also record one denied tool call. This is a delivery failure, not a blocking review verdict.

Verified the run uses .github/workflows/claude-code-review.yml, event pull_request_target, and associates PR #241 with the exact current head. Started the original run's one allowed whole-run recovery retry. No competing manual dispatch was started. Codex's completed summary approves this head; all review surfaces contain no outstanding findings or threads. The PR remains draft pending Claude's receipt-verified current-head verdict and a passing PR-associated review check.

RESULT for this unit: waiting #241: run 41462644737. A later unit must inspect attempt 2 and all review surfaces before promotion; do not repeat this retry if delivery fails again.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Review

Docs-only PR: D40 supersedes D23's core-first scheduling rule, and design §2.4/§7, the Kafka and scheduler guides, the roadmap and the status page are updated to match. The change follows AGENTS.md. It applies D1/D22 (reuse the native runtime), keeps the scheduler SPI and tests unchanged, and marks parallel Kafka receive as planned rather than shipped. D40 is numbered after D39, and the index row, supersession notes in D13 and D23, and cross-links are consistent. I did not open the Dekaf 1.25.0 source, so I did not check the RunPartitionedAsync behavior claims against it. I did not run the website build either.

Non-blocking nit: website/docs/transports/in-memory.md:51 still says "The core partition scheduler can later add finer key-level parallelism". That is still accurate for the in-memory transport, but it could point to the fallback framing for consistency.

No blocking findings.

@thomhurst

Copy link
Copy Markdown
Owner Author

The earlier blocker has cleared: PR-associated Claude run 41462644737 attempt 2 succeeded, including receipt verification, and posted CLEAR for da871c6. Codex's current summary independently reports completed review with no findings for that exact head. All review bodies, inline comments, conversation comments and review threads were checked; there are no outstanding blocking findings or threads.

Disposition of #241 (comment): the in-memory guide suggestion is non-blocking wording consistency. That guide accurately describes potential core scheduling for the in-memory transport, which has no equivalent native key-parallel processing runtime. D40 and the updated scheduler guidance already define the fallback policy. Declined this optional wording-only push under the Feedback rule; runtime behavior and documentation claims remain correct.

Reverified all nine archived evidence entries and every retained original by length and SHA-256; the PR body names the durable location. The current head is mergeable and both required reviewers approve it. Proceeding through Enable-AutoMerge.ps1 -Pr 241 -MarkReady so ready CI can run on the reviewed head.

@thomhurst
thomhurst marked this pull request as ready for review November 2, 2026 14:40
@thomhurst
thomhurst enabled auto-merge (squash) November 2, 2026 14:40
@thomhurst

Copy link
Copy Markdown
Owner Author

PR #241 is now ready with auto-merge armed on reviewed head da871c6 through Enable-AutoMerge.ps1 -Pr 241 -MarkReady. The protected gate passed; no branch-protection settings changed. Ready CI run 41464134094 is the remaining automatic gate. The earlier Claude delivery blocker is resolved. This single unit does not wait for CI; GitHub will squash-merge the armed head after required checks pass. No source push was needed.

@thomhurst
thomhurst merged commit fe1d7af into main Nov 2, 2026
18 of 19 checks passed
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.

Revisit D23: Kafka should use Dekaf's RunPartitionedAsync instead of the core PartitionScheduler

1 participant