Skip to content

[ISSUE #8206] Adopt Divide Rule contracts with Admin and gateway parity - #8278

Open
yangjj-iso wants to merge 7 commits into
apache:masterfrom
yangjj-iso:feat/issue-8206-divide-contract
Open

yangjj-iso wants to merge 7 commits into
apache:masterfrom
yangjj-iso:feat/issue-8206-divide-contract

Conversation

@yangjj-iso

@yangjj-iso yangjj-iso commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Adopt the shared scoped Rule contract for Divide, including nested field metadata and compatibility fixtures. Keep pure shared parsing separate from Admin dictionary checks and the gateway's actual SPI/client binding. Report bounded structural/semantic/binding errors without exposing values.

Fixes #8206.

Depends on #8274 and #8276. This PR includes the contract foundation and generic Rule write hook. Merge those prerequisites first, then rebase/update this branch; Divide adoption is the final commit after them.

Feature-only comparison: yangjj-iso/shenyu@feat/issue-8205-rewrite-contract...feat/issue-8206-divide-contract

Validation: DivideRuleContractTest, RuleServiceTest and DivideContractCompatibilityTest use shared fixtures at Admin create/update/import and actual gateway publication boundaries. Cover default/coercion behavior, nested settings, unknown extensions, invalid updates and retained previous state. Checkstyle and RAT run against master 92d16c2. Existing conditional null-handle removal behavior is documented rather than silently changed.

@yangjj-iso
yangjj-iso marked this pull request as ready for review November 1, 2026 22:41
Divide rule contract, compatibility and Admin rule service tests passed across the 40-module reactor. Checkstyle and RAT passed.

Signed-off-by: redyyang <3202137046@qq.com>

@Aias00 Aias00 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.

Stream Agent analysis

FINAL synthesis of PR #8278 (apache/shenyu) at head a1b75b4: all 17 partition reviews PASS with no blocking findings, complete_diff true, but CI passed=false. Cannot issue FINAL PASS; no concrete defects to mandate NEEDS_CHANGES, thus INCONCLUSIVE.

Evidence

  • Frozen attachment review: 17/17 partition nodes PASS, blocking_findings empty, all_parts_passed true
  • CI object: complete=true, passed=false, check_count=9, legacy_state=pending
  • head_sha=a1b75b4b03ced8e5f304534371e7b513c19e00f5, base_sha=d7e8282b44abe279f9a34602498342af0038976d, complete_diff=true

Recommended next steps

  • Investigate CI failure (9 checks reported passed=false) to identify if it's flaky or indicates integration defect
  • Confirm cross-module contract registration behavior in prerequisite PRs not fully covered in this FINAL scope

Scope: captured diff and GitHub check metadata only; no local tests were executed.

Task: f6c88420-8bbe-4902-ac28-5fc3b8845e95 · Commit: a1b75b4b03ced8e5f304534371e7b513c19e00f5

Review verdict: INCONCLUSIVE

FINAL synthesis scope: assessed all child partition summaries (part-0..part-16) which all returned PASS with no HIGH/CRITICAL findings. complete_diff=true and all_parts_passed=true. However, the attached CI evidence shows passed=false (9 checks, complete=true). Per review rules, a FINAL PASS requires all_parts_passed true, complete_diff true, AND CI passed. Since CI did not pass, FINAL PASS is prohibited. There are no anchored diff defects to justify NEEDS_CHANGES, so verdict is INCONCLUSIVE due to unverified CI status blocking confirmation of cross-file correctness.

Publication: COMMENT (INCONCLUSIVE_REVIEW)

Review details

PR #8278 introduces configuration contract framework and adopts Divide/Rewrite/AgentGateway contracts with admin/gateway parity. All partitioned code/doc/test reviews passed with no high/critical issues. However, the CI suite (9 checks) is marked passed=false, which blocks a final merge recommendation. Please investigate CI failures and re-run checks before merging. No code-level blockers identified in supplied diffs.

Aias00
Aias00 previously approved these changes Nov 5, 2026

@Aias00 Aias00 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.

Stream Agent analysis

FINAL synthesis of PR #8278 (head a1b75b4) adopting Divide Rule contracts with Admin/gateway parity. All 17 partition reviews (part-0 to part-16) returned PASS with zero blocking findings; complete_diff and global_complete_diff true; CI with 68 checks passed. Cross-file contract framework, admin validators, gateway handlers, endpoint, and tests are consistent in the reviewed summaries.

Evidence

  • Attachment JSON shows all_parts_passed: true, complete_diff: true, global_complete_diff: true, ci.passed: true with 68 checks complete.
  • 17 partition nodes (part-0..part-16) each have review_verdict PASS and empty blocking_findings.
  • Scope FINAL with head_sha a1b75b4 matches requested review.

Recommended next steps

  • Maintainers should verify prerequisite PRs providing ConfigurationContractRegistry are merged before integrating this PR.
  • Optionally run integration tests in staging to confirm gateway-admin parity at runtime.
  • Document any remaining manual validation steps for the new /config-contracts endpoint.

Scope: captured diff and GitHub check metadata only; no local tests were executed.

Task: 5f6b1fae-533d-4b9f-9d5a-87eaa61ef813 · Commit: a1b75b4b03ced8e5f304534371e7b513c19e00f5

Review verdict: PASS

FINAL scope assessment: all child partition reviews (17) passed with no HIGH/CRITICAL findings; complete_diff and global_complete_diff true; CI passed (68 checks). Cross-file correctness, compatibility, and contract adoption are described consistently across partitions (shared ConfigurationContractRegistry used by admin validators, gateway handlers, new endpoint, and tests). Limitations noted in child partitions (e.g., external prerequisite classes, fixture files not in segment) are not concrete defects and do not override PASS. No NEEDS_CHANGES or INCONCLUSIVE child existed. Therefore FINAL PASS is justified per synthesis rules.

Publication: APPROVE (EXPLICIT_PASS)

Review details

Based on the durable partition reviews and CI status, this PR is recommended for merge (RECOMMENDATION). All supplied diff segments were reviewed with no HIGH/CRITICAL defects; cross-file interactions described in child summaries show consistent use of the shared ConfigurationContractRegistry. Note: no local tests executed by this agent; runtime validation depends on prerequisite PRs. Maintainers should confirm those are integrated.

Describe the existing DTO fields and include them in the shared contract fixtures.

This branch has not been deployed

No deployments
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.

[Task][Divide] Adopt the shared rule configuration contract with Admin and gateway parity tests

2 participants