Skip to content

fix: reject indeterminate gateway network authority - #14

Draft
seonghobae wants to merge 84 commits into
feat/pg-erd-admin-config-v1from
fix/pg-erd-listener-wildcard-collision-v1
Draft

fix: reject indeterminate gateway network authority#14
seonghobae wants to merge 84 commits into
feat/pg-erd-admin-config-v1from
fix/pg-erd-listener-wildcard-collision-v1

Conversation

@seonghobae

@seonghobae seonghobae commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Scope and authority

This Draft owns shared Admin Config network-authority hardening and bounded deployment evidence for the characterized pg-erd edge migration lane. Generic v1 and the pg-erd profile reject zero traffic/metrics/upstream ports and effective socket-authority overlap, including same-family wildcard/concrete aliases, [::] plus IPv4 dual-stack ambiguity, exact IPv4-mapped/native aliases, native/mapped IPv4 wildcard aliases, and mapped-to-mapped IPv4 wildcard aliases. Product authentication/authorization, business routing, Keyverse identity, Wardnet/EgressWeave policy, service discovery, arbitrary per-request destinations, domain retries/failover and certificate-authority ownership remain outside this boundary.

The dedicated cwl-pingora-pg-erd-migration process remains a bounded OCI profile. CWL_GATEWAY_BIN is a build-time-only fail-closed allowlist of exactly cwl-pingora-gateway and cwl-pingora-pg-erd-migration; the image contains one selected executable. OCI and Supply Chain lanes build/scan both profiles under the non-root/read-only/capability-free boundary. Routed pg-erd parity, registry-bound immutable digests, release-bound SBOM/provenance/reproducibility, rollback, shadow/canary and cutover remain separate gates.

Repair lineage

The prior semantic repairs remain valid source history: listener/socket authority is centralized in edge_contract; parent forwarding/HTTP-policy/migration-proxy/runtime/process fixtures are preserved; dual-profile OCI/Supply Chain and reproducibility evidence contracts remain intact; direct-Serde revalidation at build_proxy() and measured-origin readiness are retained.

Exact 8937364909b82f50fd911aa001a8d073b517f5d9 previously had independent terminal CI 34163230667 and Supply Chain 34163230576, including exact checkout, Rust 1.98.0, compile/test, Clippy, warning-denied rustdoc, 100% owned coverage, dual-profile OCI exercise and controlled generic-loopback p95 1.5951211 ms. Those receipts are historical only after the current head movement.

Ordinary two-parent repair 9eb1dbd36140d18fba79e948c6eba6e455727c91 adopts repaired #12 exact eaa1d92587e11522312071e7a53c4e4399ed946f and restores docs/product-technical-gap-baseline.md to parent authority. The network-authority/dual-profile OCI/reproducibility/TRACEABILITY/test delta is preserved, while this branch no longer competes with dedicated baseline writer #61. No force-push, destructive rebase, close/reopen churn, self-approval or gate weakening was used.

Exact integration state

Base is now exact current #12 feat/pg-erd-admin-config-v1@eaa1d92587e11522312071e7a53c4e4399ed946f; current head is exact 9eb1dbd36140d18fba79e948c6eba6e455727c91. This ordinary two-parent commit has parents prior child 8937364909b82f50fd911aa001a8d073b517f5d9 and repaired #12 eaa1d925...; no valid child delta was discarded.

Fresh base-range inventory is 19 paths: .github/workflows/ci.yml, .github/workflows/supply-chain.yml, API_CONFIG_CONTRACT.md, CHANGELOG.md, Dockerfile, OPERABILITY.md, SECURITY.md, TEST_STRATEGY.md, THREAT_MODEL.md, TRD.md, docs/adr/0008-bounded-pg-erd-admin-activation.md, docs/doctoring/TRACEABILITY.md, examples/pg-erd-migration.yaml, src/edge_contract.rs, src/migration_admin.rs, tests/listener_authority_contract.rs, tests/load_evidence_workflow_contract.rs, tests/reproducibility_contract.rs, and tests/supply_chain_evidence_workflow_contract.rs. The baseline path is no longer an effective delta and GitHub reports the Draft mergeable again.

All checks/reviews from 89373649... are predecessor evidence and do not transfer. Keep Draft until 9eb1dbd... reacquires exact-current CI/coverage/rustdoc/supply-chain/security and current review/thread evidence. Direct descendants must ordinary/non-force adopt this repaired parent and independently remove residual historical baseline copies. No protected merge, immutable release, routed pg-erd parity, representative TLS/network performance, shadow/canary, cutover, rollback or legacy-removal credit is claimed.

@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Generic 및 migration 설정이 0번 포트와 효과적 소켓 권한 중첩을 거부하도록 변경되었습니다. 중첩 판정은 공유 함수로 통합되었습니다. 관련 계약 문서, ADR, 제품 기준선, 변경 이력, 회귀 테스트를 갱신했습니다.

Changes

소켓 권한 검증

Layer / File(s) Summary
공유 소켓 권한 계약
src/edge_contract.rs, API_CONFIG_CONTRACT.md
리스너, 메트릭, 업스트림의 0번 포트를 거부합니다. 와일드카드와 IPv4-mapped 주소를 포함한 효과적 소켓 권한 중첩을 공유 함수로 판정합니다.
Migration Admin 통합
src/migration_admin.rs
로컬 중첩 판정을 socket_authorities_overlap 호출로 교체합니다. ZeroTransportAuthorityPort가 먼저 반환되도록 검증 순서를 조정합니다.
계약 문서와 회귀 검증
tests/listener_authority_contract.rs, tests/pg_erd_admin_config_contract.rs, docs/adr/..., docs/product-technical-gap-baseline.md, CHANGELOG.md
Generic 및 pg-erd 설정의 중첩 주소, 구별된 주소, 0번 포트, IPv4-mapped 주소 동작을 문서와 테스트에 반영합니다.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant GatewayConfig
  participant edge_contract
  participant UpstreamConfig
  participant MigrationAdmin
  GatewayConfig->>edge_contract: 리스너와 메트릭 권한 검증
  edge_contract-->>GatewayConfig: ListenerCollision 또는 성공
  GatewayConfig->>UpstreamConfig: 업스트림 포트 검증
  UpstreamConfig-->>GatewayConfig: ZeroUpstreamPort 또는 성공
  MigrationAdmin->>edge_contract: 리스너와 메트릭 권한 중첩 검사
  MigrationAdmin-->>MigrationAdmin: ZeroTransportAuthorityPort 우선 반환
Loading

Merge Risk: 🟡 Moderate · up to 04f31

This change hardens listener admission, but some IPv4-mapped IPv6 wildcard collisions can still be accepted and IPv6 regression fixtures may not reach the intended validation path. Resolve these cases before merge to ensure conflicting listener configurations are rejected reliably.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 91.67% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 12 functions across 4 files. (4 skipped: 4 …
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.
Title check ✅ Passed 제목은 gateway network authority의 불명확한 상태를 거부하는 핵심 변경을 요약합니다. 소켓 권한 중복과 포트 0 거부를 포함한 변경 범위와 직접 관련됩니다.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/pg-erd-listener-wildcard-collision-v1

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

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

@seonghobae seonghobae changed the title fix: reject overlapping pg-erd listener authority fix: reject overlapping gateway listener authority Sep 2, 2026
@seonghobae seonghobae changed the title fix: reject overlapping gateway listener authority fix: reject indeterminate gateway network authority Sep 2, 2026
@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='a48b03f20715b6e708cb26648d16b954ba57be24'
head='1b0848d4e745b78072af5f499d5fd0626439e024'
merge='bc00010494276b826c62476e55954e8f81d0f806'
prior_child='c4a71b866ca4fe3e62a125174473f1a18a7b2e9d'

echo '== Exact topology =='
printf 'merge-base: '; git merge-base "$base" "$head"
printf 'ahead/behind: '; git rev-list --left-right --count "$base...$head"
git show -s --format='head=%H%nparents=%P%nsubject=%s%nbody=%b' "$head"
echo '== Exact range commits =='
git log --format='%H %P %s' --reverse "$base..$head"
echo '== Exact range paths =='
git diff --name-status "$base...$head"
echo '== Whitespace check =='
git diff --check "$base...$head"

echo '== Claimed succession ancestry =='
for commit in "$base" "$prior_child" "$merge"; do
  printf '%s: ' "$commit"
  if git cat-file -e "${commit}^{commit}" 2>/dev/null &&
     git merge-base --is-ancestor "$commit" "$head"; then
    echo ancestor
  else
    echo not-ancestor-or-unavailable
  fi
done

echo '== Movement after merge =='
git log --format='%H %P %s' "$merge..$head"
git diff --name-status "$merge..$head"
git diff --no-ext-diff --unified=120 "$merge..$head" -- docs/product-technical-gap-baseline.md

echo '== Merge topology and parent contributions =='
git show -s --format='merge=%H%nparents=%P%nsubject=%s' "$merge"
mapfile -t parents < <(git show -s --format='%P' "$merge")
for i in "${!parents[@]}"; do
  echo "-- parent[$i] ${parents[$i]} -> merge --"
  git diff --name-status "${parents[$i]}..$merge"
done
git show --cc --no-ext-diff --format=fuller --unified=100 "$merge" -- \
  tests/pg_erd_admin_config_contract.rs

echo '== Dependency boundary and Peer usage =='
rg -n -C 5 '^\s*pingora\s*=|^\s*pingora-core\s*=|^\s*pingora_core\s*=' Cargo.toml
rg -n -C 12 --glob '*.rs' \
  'use pingora(_core)?::upstreams::peer::Peer|\bPeer\b|\.address\(\)' \
  tests src

echo '== Relevant test structure and collision cases =='
ast-grep outline tests/pg_erd_admin_config_contract.rs --items all --view expanded
rg -n -C 12 \
  'mapped|wildcard|ffff|ListenerCollision|listener_authorities|Peer::|\.address\(\)' \
  tests/pg_erd_admin_config_contract.rs
echo '-- First-parent vs exact-head pg-erd test delta --'
first_parent="${parents[0]}"
git diff --no-ext-diff --unified=120 "$first_parent..$head" -- \
  tests/pg_erd_admin_config_contract.rs

echo '== Current baseline assertions and exact diff =='
git diff --no-ext-diff --unified=140 "$base...$head" -- \
  docs/product-technical-gap-baseline.md
rg -n -i -C 8 \
  'a48b03f|bc000104|1b0848d|c4a71b|pingora_core|pingora::upstreams::peer::Peer|E0433|E0599|compiler|RED|repair|restack|mapped|wildcard|pg-erd|regression' \
  docs/product-technical-gap-baseline.md

echo '== Current authority implementation is unchanged from merge =='
for file in src/edge_contract.rs src/migration_admin.rs tests/listener_authority_contract.rs; do
  printf '%s: ' "$file"
  if git diff --quiet "$merge" "$head" -- "$file"; then
    echo identical
  else
    echo changed
  fi
done

Length of output: 35900


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='a48b03f20715b6e708cb26648d16b954ba57be24'
head='1b0848d4e745b78072af5f499d5fd0626439e024'
merge='bc00010494276b826c62476e55954e8f81d0f806'
first_parent='c4a71b866ca4fe3e62a125174473f1a18a7b2e9d'

echo '== Declared dependency and current import =='
rg -n -C 4 '^\s*pingora\s*=|^\s*pingora-core\s*=|^\s*pingora_core\s*=' Cargo.toml
rg -n -C 10 --glob '*.rs' \
  'use pingora(_core)?::upstreams::peer::Peer|\bPeer::|\bPeer\b|\.address\(\)' \
  tests/pg_erd_admin_config_contract.rs

echo '== Repair parent patch =='
git show --no-ext-diff --format=fuller --unified=80 "$base" -- \
  tests/pg_erd_admin_config_contract.rs Cargo.toml

echo '== Merge effect on pg-erd regression table =='
git diff --no-ext-diff --unified=160 "$first_parent..$merge" -- \
  tests/pg_erd_admin_config_contract.rs
echo '== Current pg-erd regression cases =='
sed -n '1,280p' tests/pg_erd_admin_config_contract.rs
echo '== Historical bounded regression commit =='
git show --no-ext-diff --format=fuller --unified=100 \
  34e6df99c46369303a30dbc0da80c77833a8fa77 -- \
  tests/pg_erd_admin_config_contract.rs
git show --no-ext-diff --format=fuller --unified=100 \
  22197d020027819fd30611a8e1716a18bb840f77 -- \
  tests/pg_erd_admin_config_contract.rs

echo '== Exact head changes after merge =='
git diff --no-ext-diff --unified=120 "$merge..$head" -- \
  docs/product-technical-gap-baseline.md
echo '== Baseline current compiler-repair claims =='
rg -n -C 12 \
  'c4a71b|a48b03f|bc000104|1b0848d|pingora_core|pingora::upstreams::peer::Peer|E0433|E0599|hosted|GREEN|reacquire' \
  docs/product-technical-gap-baseline.md

echo '== Verify authority and workflow paths did not change after merge =='
for path in \
  src/edge_contract.rs \
  src/migration_admin.rs \
  tests/listener_authority_contract.rs \
  .github/workflows/ci.yml \
  .github/workflows/supply-chain.yml \
  tests/load_evidence_workflow_contract.rs \
  tests/supply_chain_evidence_workflow_contract.rs
do
  if git diff --quiet "$merge" "$head" -- "$path"; then
    printf 'identical %s\n' "$path"
  else
    printf 'changed %s\n' "$path"
  fi
done

Length of output: 81939


@seonghobae Review complete for exact range a48b03f20715b6e708cb26648d16b954ba57be24...1b0848d4e745b78072af5f499d5fd0626439e024.

I found one actionable issue.

Medium — Restore the six pg-erd mapped-wildcard regression cases.
a48b03f... correctly changes the test import to:

use pingora::upstreams::peer::Peer;

Cargo.toml declares pingora and does not declare pingora_core. The repair therefore respects the dependency boundary.

However, merge bc000104... removes six cases from tests/pg_erd_admin_config_contract.rs. The removed cases cover:

  • mapped concrete IPv4 with native IPv4 wildcard, in both orders;
  • mapped IPv4 wildcard with native concrete IPv4, in both orders;
  • mapped IPv4 wildcard with mapped concrete IPv4, in both orders.

The shared implementation remains unchanged. The generic tests still cover the rule. The bounded pg-erd configuration path no longer covers these alias cases through PgErdMigrationConfig::from_yaml.

Restore the six cases while retaining use pingora::upstreams::peer::Peer;. Update docs/product-technical-gap-baseline.md if needed, because it currently states that the bounded regressions remain preserved.

The requested base is the exact merge base. The requested head has bc000104... and predecessor child c4a71b... in its ancestry. The only change after bc000104... is the baseline update. The authority implementation and workflow-evidence paths are unchanged after that merge.

This is a static source review. I did not transfer predecessor review or hosted execution credit. Exact-head compilation, tests, formatting, Clippy, rustdoc, coverage, OCI, load, and supply-chain evidence remain required.


✏️ Learnings added
Learnt from: seonghobae
URL: https://github.com/ContextualWisdomLab/pingora-gateway/pull/14

Timestamp: 2026-09-07T13:38:43.826Z
Learning: In this Rust repository, `Cargo.toml` directly declares `pingora` at the pinned Pingora revision but does not declare `pingora_core`. Tests that need the `Peer` trait must import `pingora::upstreams::peer::Peer`, not `pingora_core::upstreams::peer::Peer`.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Fresh exact-head review required after source and baseline movement. Review exact current range a48b03f20715b6e708cb26648d16b954ba57be24...1b0848d4e745b78072af5f499d5fd0626439e024; do not reuse the prior 7f88e637...c4a71b86 result. Verify ordinary/non-force adoption bc000104... of the parent’s corrected use pingora::upstreams::peer::Peer;, preservation of all child network-authority and workflow-evidence semantics, and docs-only 1b0848d4... synchronization of docs/product-technical-gap-baseline.md. Check exact ancestry/tree and still-valid defects. Hosted exact-head execution remains a separate gate.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='a48b03f20715b6e708cb26648d16b954ba57be24'
head='1b0848d4e745b78072af5f499d5fd0626439e024'
merge='bc00010494276b826c62476e55954e8f81d0f806'
prior_child='c4a71b866ca4fe3e62a125174473f1a18a7b2e9d'

echo '== Exact topology and post-merge movement =='
printf 'merge-base: '; git merge-base "$base" "$head"
printf 'ahead/behind: '; git rev-list --left-right --count "$base...$head"
git show -s --format='head=%H%nparents=%P%nsubject=%s' "$head"
git log --format='%H %P %s' --reverse "$base..$head"
git diff --name-status "$base...$head"
git diff --check "$base...$head"

echo '== Required ancestry =='
for commit in "$base" "$prior_child" "$merge"; do
  printf '%s: ' "$commit"
  if git cat-file -e "${commit}^{commit}" 2>/dev/null &&
     git merge-base --is-ancestor "$commit" "$head"; then
    echo ancestor
  else
    echo not-ancestor-or-unavailable
  fi
done

echo '== Movement after adoption merge =='
git log --format='%H %P %s' "$merge..$head"
git diff --name-status "$merge..$head"
git diff --no-ext-diff --unified=120 "$merge..$head" -- docs/product-technical-gap-baseline.md

echo '== Adoption merge contributions and resolution =='
git show -s --format='merge=%H%nparents=%P%nsubject=%s' "$merge"
mapfile -t parents < <(git show -s --format='%P' "$merge")
for i in "${!parents[@]}"; do
  echo "-- parent[$i] ${parents[$i]} -> merge --"
  git diff --name-status "${parents[$i]}..$merge"
done
git show --cc --no-ext-diff --unified=160 "$merge" -- tests/pg_erd_admin_config_contract.rs

echo '== Declared dependency and Peer import/use =='
rg -n -C 5 '^\s*pingora\s*=|^\s*pingora[-_]core\s*=' Cargo.toml
rg -n -C 10 --glob '*.rs' \
  'use pingora(_core)?::upstreams::peer::Peer|\bPeer\b|\.address\(\)' \
  tests/pg_erd_admin_config_contract.rs src tests

echo '== pg-erd regression table and first-parent comparison =='
ast-grep outline tests/pg_erd_admin_config_contract.rs --items all --view expanded
rg -n -C 12 'mapped|wildcard|ffff|ListenerCollision|Peer::|\.address\(\)' \
  tests/pg_erd_admin_config_contract.rs
git diff --no-ext-diff --unified=180 "${parents[0]}..$merge" -- \
  tests/pg_erd_admin_config_contract.rs
git diff --no-ext-diff --unified=180 "${parents[0]}..$head" -- \
  tests/pg_erd_admin_config_contract.rs

echo '== Child authority and workflow-evidence tree preservation =='
for path in \
  src/edge_contract.rs src/migration_admin.rs \
  tests/listener_authority_contract.rs tests/pg_erd_admin_config_contract.rs \
  .github/workflows/ci.yml .github/workflows/supply-chain.yml \
  tests/load_evidence_workflow_contract.rs tests/supply_chain_evidence_workflow_contract.rs \
  API_CONFIG_CONTRACT.md CHANGELOG.md \
  docs/adr/0008-bounded-pg-erd-admin-activation.md \
  docs/doctoring/TRACEABILITY.md docs/product-technical-gap-baseline.md
do
  if git diff --quiet "${parents[0]}" "$merge" -- "$path"; then
    printf 'identical %s\n' "$path"
  else
    printf 'changed %s\n' "$path"
  fi
done

echo '== Current authority and evidence controls =='
rg -n -A70 -B12 --glob '*.rs' \
  'socket_authorities_overlap|validate_transport_authority|ZeroTransportAuthorityPort|ZeroUpstreamPort|ZeroListenerPort|ZeroMetricsListenerPort|ListenerCollision' \
  src tests
rg -n -C 10 \
  'test -s k6-summary\.json|candidate-evidence|candidate-failure-diagnostics|Bind candidate evidence|Upload exact candidate evidence|Upload candidate failure diagnostics|if-no-files-found' \
  .github/workflows/ci.yml .github/workflows/supply-chain.yml \
  tests/load_evidence_workflow_contract.rs tests/supply_chain_evidence_workflow_contract.rs

echo '== Baseline repair claims at exact head =='
rg -n -i -C 10 \
  'a48b03f|bc000104|1b0848d|c4a71b|pingora_core|pingora::upstreams::peer::Peer|E0433|E0599|compiler|RED|repair|restack|mapped|wildcard|pg-erd|regression|hosted' \
  docs/product-technical-gap-baseline.md

Length of output: 36693


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='a48b03f20715b6e708cb26648d16b954ba57be24'
head='1b0848d4e745b78072af5f499d5fd0626439e024'
merge='bc00010494276b826c62476e55954e8f81d0f806'
first_parent='c4a71b866ca4fe3e62a125174473f1a18a7b2e9d'
second_parent='a48b03f20715b6e708cb26648d16b954ba57be24'

echo '== Merge parent contributions and resolution =='
git diff --name-status "$first_parent..$merge"
git diff --no-ext-diff --unified=180 "$first_parent..$merge" -- \
  tests/pg_erd_admin_config_contract.rs
git diff --name-status "$second_parent..$merge"
git show --cc --no-ext-diff --format=fuller --unified=180 "$merge" -- \
  tests/pg_erd_admin_config_contract.rs

echo '== Dependency boundary and current Peer usage =='
rg -n -C 5 '^\s*pingora\s*=|^\s*pingora[-_]core\s*=' Cargo.toml
rg -n -C 12 --glob '*.rs' \
  'use pingora(_core)?::upstreams::peer::Peer|\bPeer\b|\.address\(\)' \
  tests/pg_erd_admin_config_contract.rs src tests

echo '== Exact current pg-erd listener collision cases =='
ast-grep outline tests/pg_erd_admin_config_contract.rs --items all --view expanded
sed -n '1,300p' tests/pg_erd_admin_config_contract.rs
rg -n -C 15 'mapped|wildcard|ffff|ListenerCollision|Peer::|\.address\(\)' \
  tests/pg_erd_admin_config_contract.rs

echo '== Historical expected bounded regression changes =='
for commit in \
  34e6df99c46369303a30dbc0da80c77833a8fa77 \
  22197d020027819fd30611a8e1716a18bb840f77
do
  echo "== $commit =="
  git show --no-ext-diff --format=fuller --unified=120 "$commit" -- \
    tests/pg_erd_admin_config_contract.rs
done

echo '== Child tree preservation at adoption merge =='
for path in \
  src/edge_contract.rs src/migration_admin.rs \
  tests/listener_authority_contract.rs tests/pg_erd_admin_config_contract.rs \
  .github/workflows/ci.yml .github/workflows/supply-chain.yml \
  tests/load_evidence_workflow_contract.rs tests/supply_chain_evidence_workflow_contract.rs \
  API_CONFIG_CONTRACT.md CHANGELOG.md \
  docs/adr/0008-bounded-pg-erd-admin-activation.md \
  docs/doctoring/TRACEABILITY.md docs/product-technical-gap-baseline.md
do
  if git diff --quiet "$first_parent" "$merge" -- "$path"; then
    printf 'identical %s\n' "$path"
  else
    printf 'changed %s\n' "$path"
  fi
done

echo '== Current authority and workflow-evidence controls =='
rg -n -A75 -B15 --glob '*.rs' \
  'socket_authorities_overlap|validate_transport_authority|ZeroTransportAuthorityPort|ZeroUpstreamPort|ZeroListenerPort|ZeroMetricsListenerPort|ListenerCollision' \
  src tests
rg -n -C 12 \
  'test -s k6-summary\.json|candidate-evidence|candidate-failure-diagnostics|Bind candidate evidence|Upload exact candidate evidence|Upload candidate failure diagnostics|if-no-files-found' \
  .github/workflows/ci.yml .github/workflows/supply-chain.yml \
  tests/load_evidence_workflow_contract.rs tests/supply_chain_evidence_workflow_contract.rs

echo '== Baseline code-current repair claims =='
rg -n -i -C 12 \
  'a48b03f|bc000104|1b0848d|c4a71b|pingora_core|pingora::upstreams::peer::Peer|E0433|E0599|compiler|RED|repair|restack|mapped|wildcard|pg-erd|regression|hosted' \
  docs/product-technical-gap-baseline.md

Length of output: 162954


@seonghobae I found one actionable issue in the exact range a48b03f20715b6e708cb26648d16b954ba57be24...1b0848d4e745b78072af5f499d5fd0626439e024.

Medium — Restore the bounded mapped-wildcard regression cases.

bc00010494276b826c62476e55954e8f81d0f806 correctly adopts the parent repair:

use pingora::upstreams::peer::Peer;

Cargo.toml declares pingora and does not declare pingora_core. This repair respects the dependency boundary. I used the repository learning that documents this rule.

However, the same merge removes six cases from tests/pg_erd_admin_config_contract.rs. The overlap table at Line 90 no longer tests:

  • mapped concrete IPv4 with native IPv4 wildcard, in both orders;
  • mapped IPv4 wildcard with native concrete IPv4, in both orders;
  • mapped IPv4 wildcard with mapped concrete IPv4, in both orders.

socket_authorities_overlap still implements these rules. Generic tests also retain coverage. The bounded PgErdMigrationConfig::from_yaml path no longer verifies these cases.

Restore the six cases while keeping the pingora::upstreams::peer::Peer import. Also update docs/product-technical-gap-baseline.md if the cases are not restored. The document currently states that the bounded regressions remain preserved.

The requested base is the exact merge base. The requested head is 66 commits ahead of the base. c4a71b... and bc000104... are ancestors of the requested head. Only docs/product-technical-gap-baseline.md changes after bc000104....

The shared authority predicate, generic and migration error ordering, and workflow-evidence controls remain unchanged. Hosted exact-head execution remains a separate gate.


🧠 Learnings used
Learnt from: seonghobae
URL: https://github.com/ContextualWisdomLab/pingora-gateway/pull/14

Timestamp: 2026-09-07T13:38:43.870Z
Learning: In this Rust repository, `Cargo.toml` directly declares `pingora` at the pinned Pingora revision but does not declare `pingora_core`. Tests that need the `Peer` trait must import `pingora::upstreams::peer::Peer`, not `pingora_core::upstreams::peer::Peer`.

You are interacting with an AI system.

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Review exact current repair 1b0848d4e745b78072af5f499d5fd0626439e024...6002b7d35b48caeb808f210e34d057236ed2eaa5. The immediately prior exact review found one valid Medium regression-loss finding: six pg-erd mapped-wildcard listener-collision tuples were dropped by the non-force merge resolution. Current commit restores exactly the six historical cases from c4a71b... while retaining use pingora::upstreams::peer::Peer;. Verify all six cases are restored in both required orders/categories, no current production/dependency/workflow/gate semantics changed, and no still-valid defect remains. Do not transfer predecessor review or hosted execution credit.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='1b0848d4e745b78072af5f499d5fd0626439e024'
head='6002b7d35b48caeb808f210e34d057236ed2eaa5'
historical_child='c4a71b866ca4fe3e62a125174473f1a18a7b2e9d'

echo '== Exact topology and scope =='
printf 'merge-base: '; git merge-base "$base" "$head"
printf 'ahead/behind: '; git rev-list --left-right --count "$base...$head"
git show -s --format='head=%H%nparents=%P%nsubject=%s%nbody=%b' "$head"
git log --format='%H %P %s' --reverse "$base..$head"
git diff --name-status "$base...$head"
git diff --check "$base...$head"

echo '== Exact repair diff =='
git diff --no-ext-diff --unified=180 "$base...$head" -- \
  tests/pg_erd_admin_config_contract.rs \
  Cargo.toml \
  src \
  .github/workflows \
  Dockerfile \
  docs

echo '== Dependency boundary and current Peer import/use =='
rg -n -C 6 '^\s*pingora\s*=|^\s*pingora[-_]core\s*=' Cargo.toml
rg -n -C 14 --glob '*.rs' \
  'use pingora(_core)?::upstreams::peer::Peer|\bPeer\b|\.address\(\)' \
  tests/pg_erd_admin_config_contract.rs src tests

echo '== Current pg-erd collision regression table =='
ast-grep outline tests/pg_erd_admin_config_contract.rs --items all --view expanded
sed -n '1,320p' tests/pg_erd_admin_config_contract.rs
rg -n -C 16 \
  'mapped|wildcard|ffff|ListenerCollision|listener_authorities|Peer::|\.address\(\)' \
  tests/pg_erd_admin_config_contract.rs

echo '== Historical-child comparison for restored cases =='
git diff --no-ext-diff --unified=180 "$historical_child..$head" -- \
  tests/pg_erd_admin_config_contract.rs
for commit in \
  34e6df99c46369303a30dbc0da80c77833a8fa77 \
  22197d020027819fd30611a8e1716a18bb840f77
do
  if git cat-file -e "${commit}^{commit}" 2>/dev/null; then
    echo "== Historical case commit $commit =="
    git show --no-ext-diff --format=fuller --unified=140 "$commit" -- \
      tests/pg_erd_admin_config_contract.rs
  fi
done

echo '== Production, authority, and workflow invariance =='
for path in \
  src/edge_contract.rs \
  src/migration_admin.rs \
  src/migration_delivery.rs \
  src/bin/cwl-pingora-gateway.rs \
  src/bin/cwl-pingora-pg-erd-migration.rs \
  .github/workflows/ci.yml \
  .github/workflows/supply-chain.yml \
  tests/load_evidence_workflow_contract.rs \
  tests/supply_chain_evidence_workflow_contract.rs \
  docs/product-technical-gap-baseline.md
do
  printf '%s: ' "$path"
  if git diff --quiet "$base" "$head" -- "$path"; then
    echo identical
  else
    echo changed
    git diff --no-ext-diff --unified=80 "$base...$head" -- "$path"
  fi
done

echo '== Exact-head shared predicate and validation ordering =='
rg -n -A90 -B18 --glob '*.rs' \
  'socket_authorities_overlap|validate_transport_authority|ZeroTransportAuthorityPort|ZeroUpstreamPort|ZeroListenerPort|ZeroMetricsListenerPort|ListenerCollision' \
  src tests

Length of output: 131032


@seonghobae Review complete for exact range 1b0848d4e745b78072af5f499d5fd0626439e024...6002b7d35b48caeb808f210e34d057236ed2eaa5.

I found no new actionable issues.

  • The requested base is the exact merge base.
  • The range contains one head-only commit.
  • The range changes only tests/pg_erd_admin_config_contract.rs.
  • The repair restores all six bounded pg-erd mapped-wildcard collision cases at Line 99:
    • mapped concrete IPv4 with native IPv4 wildcard, in both orders;
    • mapped IPv4 wildcard with native concrete IPv4, in both orders;
    • mapped IPv4 wildcard with mapped concrete IPv4, in both orders.
  • Each tuple still expects PgErdMigrationConfigError::ListenerCollision through PgErdMigrationConfig::from_yaml.
  • The restored table matches the historical case categories from commits 34e6df99... and 22197d02....
  • The test retains use pingora::upstreams::peer::Peer;. This matches the declared pingora dependency. I used the repository learning for this dependency boundary.
  • src/edge_contract.rs, src/migration_admin.rs, both composition roots, OCI and supply-chain workflows, evidence contract tests, and docs/product-technical-gap-baseline.md are unchanged in this range.
  • The shared socket-authority predicate and generic and migration validation ordering are unchanged.
  • git diff --check reported no whitespace errors.

This is a static source review. Exact-head compilation, tests, formatting, Clippy, rustdoc, coverage, OCI, load, and supply-chain validation remain separate hosted gates. I did not transfer predecessor review or hosted-execution credit.


🧠 Learnings used
Learnt from: seonghobae
URL: https://github.com/ContextualWisdomLab/pingora-gateway/pull/14

Timestamp: 2026-09-07T13:38:43.870Z
Learning: In this Rust repository, `Cargo.toml` directly declares `pingora` at the pinned Pingora revision but does not declare `pingora_core`. Tests that need the `Peer` trait must import `pingora::upstreams::peer::Peer`, not `pingora_core::upstreams::peer::Peer`.

If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

You are interacting with an AI system.

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Please review exact current head 40424d4d8f79c505f7e91588741937bb23ac9541 against exact base 691ae67a96bc2e43bf48a348daf231968b0165e2. Verify the ordinary two-parent parent adoption 8b7b170d5eef2d5dbe4241957a4684ab5faa9dc9, the test-only reproducibility repair dbf872e8f70d3973dc3499cfb26a3c4ff508c2ae, and the code-current baseline projection. Please specifically check that descending route priority, mapped/native listener collision regressions, one-binary-per-image packaging, --locked release builds, load/security thresholds and authority boundaries remain intact. Do not transfer predecessor review credit.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='691ae67a96bc2e43bf48a348daf231968b0165e2'
head='40424d4d8f79c505f7e91588741937bb23ac9541'
adoption='8b7b170d5eef2d5dbe4241957a4684ab5faa9dc9'
repair='dbf872e8f70d3973dc3499cfb26a3c4ff508c2ae'

echo '== Exact topology and range =='
printf 'merge-base: '; git merge-base "$base" "$head"
printf 'ahead/behind: '; git rev-list --left-right --count "$base...$head"
git show -s --format='head=%H%nparents=%P%nsubject=%s%nbody=%b' "$head"
git log --format='%H %P %s' --reverse "$base..$head"
git diff --name-status "$base...$head"
git diff --check "$base...$head"

echo '== Required ancestry and post-adoption movement =='
for commit in "$base" "$adoption" "$repair"; do
  printf '%s: ' "$commit"
  if git cat-file -e "${commit}^{commit}" 2>/dev/null &&
     git merge-base --is-ancestor "$commit" "$head"; then
    echo ancestor
  else
    echo not-ancestor-or-unavailable
  fi
done
git log --format='%H %P %s' "$adoption..$head"
git diff --name-status "$adoption..$head"
git diff --no-ext-diff --unified=120 "$adoption..$head"

echo '== Parent adoption topology and merge resolution =='
git show -s --format='adoption=%H%nparents=%P%nsubject=%s' "$adoption"
mapfile -t parents < <(git show -s --format='%P' "$adoption")
for i in "${!parents[@]}"; do
  echo "-- parent[$i] ${parents[$i]} to adoption --"
  git diff --name-status "${parents[$i]}..$adoption"
done
git show --cc --no-ext-diff --format=fuller --unified=140 "$adoption"

echo '== Candidate file structure =='
for file in \
  src/edge_contract.rs src/migration_admin.rs \
  tests/listener_authority_contract.rs tests/pg_erd_admin_config_contract.rs \
  tests/pg_erd_production_path.rs
do
  if test -f "$file"; then
    echo "== $file =="
    ast-grep outline "$file" --items all --view expanded || true
  fi
done

echo '== Route priority, authority, and listener regression controls =='
rg -n -C 12 --glob '*.rs' \
  'priority|route|sort_by|sort_by_key|socket_authorities_overlap|ZeroTransportAuthorityPort|ZeroUpstreamPort|ZeroListenerPort|ZeroMetricsListenerPort|ListenerCollision|mapped|wildcard|ffff' \
  src tests

echo '== Packaging, locked builds, load, and security controls =='
for file in Dockerfile .github/workflows/ci.yml .github/workflows/supply-chain.yml; do
  if test -f "$file"; then
    echo "== $file =="
    rg -n -C 12 \
      'CWL_GATEWAY_BIN|cargo build|--locked|--release|COPY|ENTRYPOINT|cwl-pingora-gateway|cwl-pingora-pg-erd-migration|k6|p95|threshold|vus|iterations|trivy|cargo deny|read-only|cap-drop|no-new-privileges|user' \
      "$file" || true
  fi
done

echo '== Current baseline projection and exact delta =='
if test -f docs/product-technical-gap-baseline.md; then
  git diff --no-ext-diff --unified=160 "$base...$head" -- docs/product-technical-gap-baseline.md
  rg -n -i -C 10 \
    '40424d|691ae|8b7b170|dbf872e|route|priority|mapped|wildcard|one.binary|Docker|locked|load|p95|security|authority|hosted|compiler|reproduc' \
    docs/product-technical-gap-baseline.md
fi

echo '== Invariant path comparisons: adoption to exact head =='
for file in \
  src/edge_contract.rs src/migration_admin.rs \
  tests/listener_authority_contract.rs tests/pg_erd_admin_config_contract.rs \
  Dockerfile .github/workflows/ci.yml .github/workflows/supply-chain.yml \
  Cargo.toml
do
  printf '%s: ' "$file"
  if git diff --quiet "$adoption" "$head" -- "$file"; then
    echo identical
  else
    echo changed
    git diff --no-ext-diff --stat "$adoption..$head" -- "$file"
  fi
done

echo '== Reproducibility repair content =='
git show --no-ext-diff --format=fuller --unified=140 "$repair"

Length of output: 43168


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='691ae67a96bc2e43bf48a348daf231968b0165e2'
head='40424d4d8f79c505f7e91588741937bb23ac9541'
adoption='8b7b170d5eef2d5dbe4241957a4684ab5faa9dc9'
child_parent='6002b7d35b48caeb808f210e34d057236ed2eaa5'
parent_root='691ae67a96bc2e43bf48a348daf231968b0165e2'
repair='dbf872e8f70d3973dc3499cfb26a3c4ff508c2ae'

echo '== Adoption merge parent deltas and resolution =='
echo '-- child first parent to adoption --'
git diff --name-status "$child_parent..$adoption"
git diff --no-ext-diff --unified=160 "$child_parent..$adoption"
echo '-- repaired parent to adoption --'
git diff --name-status "$parent_root..$adoption"
git show --cc --no-ext-diff --format=fuller --unified=160 "$adoption"

echo '== Exact head current source controls =='
for file in \
  src/edge_routing.rs \
  src/edge_contract.rs \
  src/migration_admin.rs \
  tests/listener_authority_contract.rs \
  tests/pg_erd_admin_config_contract.rs \
  tests/reproducibility_contract.rs
do
  if test -f "$file"; then
    echo "== $file =="
    ast-grep outline "$file" --items all --view expanded || true
  fi
done
rg -n -C 16 --glob '*.rs' \
  'sort_by|sort_by_key|Reverse\(route\.priority\)|priority|duplicate.*priority|socket_authorities_overlap|mapped|wildcard|ffff|ListenerCollision|ZeroTransportAuthorityPort|ZeroUpstreamPort|ZeroListenerPort|ZeroMetricsListenerPort' \
  src tests

echo '== Exact listener regression table =='
if test -f tests/pg_erd_admin_config_contract.rs; then
  sed -n '60,190p' tests/pg_erd_admin_config_contract.rs
fi
if test -f tests/listener_authority_contract.rs; then
  cat -n tests/listener_authority_contract.rs
fi

echo '== Docker packaging and locked release-build contract =='
cat -n Dockerfile
cat -n tests/reproducibility_contract.rs
rg -n -C 12 \
  'CWL_GATEWAY_BIN|cargo build|--locked|--release|--bin|COPY|ENTRYPOINT|cwl-pingora-gateway|cwl-pingora-pg-erd-migration' \
  Dockerfile tests/reproducibility_contract.rs Cargo.toml

echo '== Workflow load and security thresholds =='
for file in .github/workflows/ci.yml .github/workflows/supply-chain.yml; do
  echo "== $file =="
  rg -n -C 14 \
    'k6|summary|p95|threshold|vus|iterations|requests|cargo test|cargo clippy|--locked|trivy|HIGH|CRITICAL|read-only|cap-drop|no-new-privileges|CWL_GATEWAY_BIN' \
    "$file"
done

echo '== Authority-boundary changes after adoption =='
git diff --no-ext-diff --unified=100 "$adoption..$head" -- \
  src Dockerfile .github/workflows \
  tests/listener_authority_contract.rs \
  tests/pg_erd_admin_config_contract.rs \
  tests/load_evidence_workflow_contract.rs \
  tests/supply_chain_evidence_workflow_contract.rs \
  tests/reproducibility_contract.rs

echo '== Baseline claims at requested head =='
git diff --no-ext-diff --unified=180 "$base...$head" -- \
  docs/product-technical-gap-baseline.md
rg -n -i -C 10 \
  '40424d|691ae|8b7b170|dbf872e|sort_by_key|descending|priority|mapped|wildcard|one fixed|one.binary|CWL_GATEWAY_BIN|locked|load|20 ms|p95|security|authority|hosted|reproduc' \
  docs/product-technical-gap-baseline.md

echo '== Scope after adoption =='
git diff --name-status "$adoption..$head"
git diff --check "$base...$head" || true

echo '== Test-only repair commit =='
git show --no-ext-diff --format=fuller --unified=120 "$repair" -- \
  tests/reproducibility_contract.rs Dockerfile .github/workflows/ci.yml

Length of output: 174120


@seonghobae Review complete for exact range 691ae67a96bc2e43bf48a348daf231968b0165e2...40424d4d8f79c505f7e91588741937bb23ac9541.

I found no new actionable issues.

  • The requested base is the exact merge base.
  • The range contains 70 head-only commits and no base-only commits.
  • 8b7b170d5eef2d5dbe4241957a4684ab5faa9dc9 is an ordinary two-parent adoption. Its first parent is the existing #14 child tip. Its second parent is 691ae67....
  • Relative to the child first parent, the adoption changes only src/edge_routing.rs.
  • The adoption replaces sort_by with sort_by_key(|route| std::cmp::Reverse(route.priority)).
  • This preserves descending route priority, duplicate-priority rejection, and first-match route selection.
  • The characterized priorities remain 110, 100, and 1.

The network-authority behavior remains intact.

  • socket_authorities_overlap still canonicalizes native IPv4 and IPv4-mapped IPv6 authorities before equality and wildcard evaluation.
  • Generic and pg-erd tests retain native/mapped equality, native/mapped wildcard, and mapped-to-mapped wildcard collision cases in both required orders.
  • The pg-erd path still returns ZeroTransportAuthorityPort before shared upstream validation can return ZeroUpstreamPort.

The OCI and workflow controls remain intact.

  • The Dockerfile allows only cwl-pingora-gateway and cwl-pingora-pg-erd-migration at build time.
  • The Dockerfile uses cargo build --locked --release --bin "${CWL_GATEWAY_BIN}".
  • The final image copies one selected executable to /usr/local/bin/cwl-pingora-runtime.
  • The final image has no runtime binary selector and does not contain both application binaries.
  • The CI workflow retains the k6 workload and its p95 <20 ms gate.
  • The OCI workflow retains rootless, read-only-root, capability-drop, and no-new-privileges checks for both images.
  • The supply-chain workflow still fails on HIGH or CRITICAL image findings and binds both image scan outputs to the exact source.

dbf872e8f70d3973dc3499cfb26a3c4ff508c2ae changes only tests/reproducibility_contract.rs. The updated oracle now checks the parameterized locked release-build command. It matches the Dockerfile allowlist. It does not weaken production, packaging, workflow, load, security, route, or authority behavior.

docs/product-technical-gap-baseline.md matches the current source state. It correctly records the parent route-order repair, the ordinary two-parent adoption, the test-only reproducibility repair, the preserved bounded authority model, and the requirement to reacquire exact-head evidence.

This was a static review. I did not transfer predecessor review or hosted-execution credit. Exact-head formatting, compilation, tests, Clippy, rustdoc, coverage, load, OCI, and supply-chain validation remain required.

You are interacting with an AI system.

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Please review the exact current head 24990d380eb157a9954a8aead1c95f0fcf421025 after the hosted coverage RED root repairs. Treat predecessor review evidence as stale; focus on 3ccf192e8d20a9b05b2a323bc2fffc636aadbb0c..24990d380eb157a9954a8aead1c95f0fcf421025, especially graceful child-profile flush, exhaustive listener-authority semantics, validated runtime-limit construction, forwarding-header failure behavior, and the code-current baseline.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='3ccf192e8d20a9b05b2a323bc2fffc636aadbb0c'
head='24990d380eb157a9954a8aead1c95f0fcf421025'

echo '== Exact topology and range =='
printf 'merge-base: '; git merge-base "$base" "$head"
printf 'ahead/behind: '; git rev-list --left-right --count "$base...$head"
git show -s --format='head=%H%nparents=%P%nsubject=%s%nbody=%b' "$head"
echo '-- commits --'
git log --format='%H %P %s' --reverse "$base..$head"
echo '-- changed paths --'
git diff --name-status "$base...$head"
echo '-- whitespace --'
git diff --check "$base...$head"

echo '== Locate candidate source, tests, and baseline =='
fd -HI -t f . | rg -i \
  '(^|/)(edge_contract|migration|delivery|routing|.*runtime.*|.*forward.*|.*listener.*|.*coverage.*|.*flush.*|.*graceful.*|product-technical-gap-baseline)\.(rs|md)$' | sort

echo '== Rust structure map =='
ast-grep outline src --items all --view expanded || true
for file in $(fd -HI -t f -e rs . | rg '(tests/|src/).*(migration|listener|runtime|forward|coverage|flush|graceful).*\.rs$' | sort); do
  echo "== $file =="
  ast-grep outline "$file" --items all --view expanded || true
done

echo '== Exact changed implementation and test diff =='
git diff --no-ext-diff --unified=120 "$base...$head" -- \
  src tests docs/product-technical-gap-baseline.md \
  API_CONFIG_CONTRACT.md CHANGELOG.md \
  docs/adr docs/doctoring

echo '== Focused current symbols and call paths =='
rg -n -C 12 --glob '*.rs' \
  'flush|graceful|shutdown|child|PgErdMigrationConfig|socket_authorities_overlap|ListenerCollision|ZeroTransportAuthorityPort|ZeroUpstreamPort|ZeroListenerPort|ZeroMetricsListenerPort|RuntimeIsolationLimits|RequestAdmissionBudget|RequestBodyBudget|forwarded|x-forwarded|Forwarded|header|Header|invalid' \
  src tests

echo '== Current contract tests for focus areas =='
for file in $(fd -HI -t f -e rs tests | rg -i '(migration|listener|runtime|forward|coverage|flush|graceful).*\.rs$' | sort); do
  echo "== $file =="
  cat -n "$file"
done

echo '== Code-current baseline =='
if test -f docs/product-technical-gap-baseline.md; then
  echo '-- baseline diff --'
  git diff --no-ext-diff --unified=160 "$base...$head" -- docs/product-technical-gap-baseline.md
  echo '-- relevant current claims --'
  rg -n -i -C 10 \
    '24990d|3ccf192|coverage|flush|graceful|child|listener|mapped|wildcard|runtime.limit|in.flight|keepalive|forward|header|hosted|RED|repair' \
    docs/product-technical-gap-baseline.md
fi

echo '== Activation and shutdown paths =='
rg -n -C 14 --glob '*.rs' \
  'add_tcp|run_forever|run\(|shutdown|graceful|join|wait|flush|GatewayProxy|Migration' \
  src

Length of output: 203144


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='3ccf192e8d20a9b05b2a323bc2fffc636aadbb0c'
head='24990d380eb157a9954a8aead1c95f0fcf421025'

echo '== Compact topology and changed paths =='
git merge-base "$base" "$head"
git rev-list --left-right --count "$base...$head"
git log --format='%H %s' --reverse "$base..$head"
git diff --name-status "$base...$head"

echo '== Individual repair commits =='
for commit in \
  2d2226aed33d393ae71c3fd7cd095430c761d7f4 \
  a78830cbfd10fb148e3a7983c226beb0f92f492d \
  8b5bceed36bb2a9653627bdfe9113fbd4ec39020 \
  a3b29e462180dc38cba6509a182521519b8c51da
do
  echo "== $commit =="
  git show --no-ext-diff --format='%H%n%s%n%b' --stat "$commit"
  git show --no-ext-diff --format= --unified=120 "$commit"
done

echo '== Exact-head changed files =='
while IFS= read -r file; do
  echo "== $file =="
  cat -n "$file"
done < <(git diff --name-only "$base...$head" | sort)

echo '== Authority predicate and its full contract table =='
rg -n -A100 -B20 --glob '*.rs' \
  'fn socket_authorities_overlap|enum .*Authority|canonical|to_ipv4_mapped|is_unspecified|ListenerCollision' \
  src/edge_contract.rs tests/listener_authority_contract.rs tests/pg_erd_admin_config_contract.rs

echo '== Runtime isolation constructors and all uses =='
rg -n -A65 -B15 --glob '*.rs' \
  'fn try_new|fn from_validated|RuntimeIsolationLimits::try_new|RuntimeIsolationLimits::from_validated' \
  src tests

echo '== Full forwarding policy and tests =='
ast-grep outline src/forwarding_policy.rs --items all --view expanded
sed -n '1,320p' src/forwarding_policy.rs
for file in $(fd -HI -t f -e rs tests | rg -i 'forward.*\.rs$' | sort); do
  echo "== $file =="
  cat -n "$file"
done

echo '== pg-erd process teardown code =='
rg -n -A90 -B30 'struct GatewayProcess|impl Drop|kill\(|SIGTERM|terminate|wait\(' \
  tests/pg_erd_production_path.rs

echo '== Diffs and check of baseline claims post-repair =='
git diff --check "$base...$head"
rg -n -C 6 -i \
  '2d2226a|a78830c|8b5bcee|a3b29e4|graceful|flush|canonical|from_validated|invalid.host|forward' \
  docs/product-technical-gap-baseline.md

Length of output: 37720


@seonghobae Review complete for exact range 3ccf192e8d20a9b05b2a323bc2fffc636aadbb0c...24990d380eb157a9954a8aead1c95f0fcf421025.

I found no new actionable issues.

  • The requested base is the exact merge base.
  • The range contains five head-only commits.
  • The range changes only five paths: the pg-erd production test, listener-authority logic, migration Admin Config construction, forwarding policy, and the product technical-gap baseline.
  • git diff --check found no whitespace errors.

The pg-erd coverage repair is causally correct.

  • tests/pg_erd_production_path.rs now sends SIGTERM after all traffic assertions.
  • The test waits for a successful child-process exit.
  • GatewayProcess still provides hard-kill cleanup if the test exits before the successful teardown path.
  • This allows the exercised child process to execute graceful shutdown and flush its LLVM profile.

The listener-authority refactor preserves the effective authority matrix.

  • socket_authorities_overlap first canonicalizes native IPv4 and IPv4-mapped IPv6 addresses.
  • It compares canonical V4/V4 and V6/V6 pairs for equality and wildcard overlap.
  • It preserves the conservative V6-wildcard/V4 overlap decision.
  • It rejects same-port mapped/native equality, native/mapped wildcard aliases, mapped/mapped wildcard aliases, same-family wildcard aliases, and IPv6 wildcard overlap.
  • It continues to allow distinct concrete non-aliased addresses and distinct ports.
  • The generic and bounded pg-erd listener-collision regressions remain present, including the restored mapped-wildcard cases in both orders.

The runtime-limit construction remains fail-closed.

  • PgErdMigrationConfig::validate calls RuntimeIsolationLimits::try_new before listener activation.
  • PgErdMigrationConfig::build_proxy now calls RuntimeIsolationLimits::from_validated.
  • The refactor removes only a duplicate error branch after the validated configuration boundary.
  • ZeroTransportAuthorityPort still occurs before UpstreamConfig::validate() can return ZeroUpstreamPort.

The forwarding-header repair preserves the failure boundary.

  • ForwardingContext::apply removes request-controlled forwarding headers first.
  • It still propagates failure from the original Host value through X-Forwarded-Host.
  • The new regression verifies that a CRLF-containing Host value fails closed.
  • IP address, port, and enumerated scheme values are typed derivations. Their header insertion cannot fail for the generated values.
  • The change does not add product authentication, business policy, dynamic routing, or arbitrary destination authority.

docs/product-technical-gap-baseline.md matches the current source changes. It records the prior coverage failure, the SIGTERM flush repair, the exhaustive authority representation, the validated runtime-limit construction, and the invalid-Host regression. It also keeps the 100% owned-production coverage gate unchanged.

This was a static review. I did not transfer predecessor review or hosted-execution credit. Exact-head CI, LLVM coverage, load, OCI, security, and supply-chain evidence remain required.

You are interacting with an AI system.

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Fresh exact-head review requested for 69f22265cd88881b8e14cedb32defa0a91180aa2...8937364909b82f50fd911aa001a8d073b517f5d9. Please treat predecessor review coverage only as historical. Current exact CI 34163230667 and Supply Chain 34163230576 are terminal success; review the current 20-path effective range after the ordinary non-force #12 adoption, including the shared socket-authority normalization, direct-Deserialize revalidation, dual-profile OCI/Supply Chain evidence semantics, and docs-to-code alignment. Do not infer human approval or release/cutover credit.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='69f22265cd88881b8e14cedb32defa0a91180aa2'
head='8937364909b82f50fd911aa001a8d073b517f5d9'

echo '== Exact topology and scope =='
printf 'merge-base: '; git merge-base "$base" "$head"
printf 'ahead/behind: '; git rev-list --left-right --count "$base...$head"
git show -s --format='head=%H%nparents=%P%nsubject=%s%nbody=%b' "$head"
git log --format='%H %P %s' --reverse "$base..$head"
git diff --name-status "$base...$head"
git diff --check "$base...$head"

echo '== Merge commits and parent contributions in the exact range =='
while IFS= read -r merge; do
  echo "-- merge $merge --"
  git show -s --format='parents=%P%nsubject=%s' "$merge"
  mapfile -t parents < <(git show -s --format='%P' "$merge")
  for parent in "${parents[@]}"; do
    echo "parent $parent -> merge:"
    git diff --name-status "$parent..$merge"
  done
  git show --cc --no-ext-diff --format= --unified=80 "$merge"
done < <(git rev-list --merges "$base..$head")

echo '== Relevant source and test structure =='
for file in \
  src/edge_contract.rs src/migration_admin.rs src/migration_delivery.rs \
  tests/listener_authority_contract.rs tests/pg_erd_admin_config_contract.rs \
  tests/deserialize_contract.rs tests/oci_workflow_contract.rs \
  tests/supply_chain_evidence_workflow_contract.rs
do
  if test -f "$file"; then
    echo "== $file =="
    ast-grep outline "$file" --items all --view expanded || true
  fi
done

echo '== Authority normalization and direct-deserialization validation =='
rg -n -A95 -B18 --glob '*.rs' \
  'socket_authorities_overlap|to_ipv4_mapped|canonical|Deserialize|deserialize|from_yaml|try_from|validate_transport_authority|ZeroTransportAuthorityPort|ZeroUpstreamPort|ZeroListenerPort|ZeroMetricsListenerPort|ListenerCollision' \
  src tests

echo '== OCI and supply-chain evidence controls =='
for file in Dockerfile .github/workflows/ci.yml .github/workflows/supply-chain.yml; do
  if test -f "$file"; then
    echo "== $file =="
    rg -n -C 14 \
      'CWL_GATEWAY_BIN|cargo build|--locked|--release|read-only|cap-drop|no-new-privileges|65532|pg-erd|candidate-evidence|candidate-failure-diagnostics|trivy|source_sha|local_image_id|if-no-files-found|upload-artifact' \
      "$file"
  fi
done
rg -n -C 12 --glob '*.rs' \
  'candidate-evidence|candidate-failure-diagnostics|CWL_GATEWAY_BIN|read-only|cap-drop|no-new-privileges|trivy|source_sha|local_image_id|Deserialize|deserialize' \
  tests

echo '== Exact implementation, workflow, test, and documentation diffs =='
git diff --no-ext-diff --unified=110 "$base...$head" -- \
  src tests Dockerfile Cargo.toml \
  .github/workflows/ci.yml .github/workflows/supply-chain.yml \
  API_CONFIG_CONTRACT.md CHANGELOG.md OPERABILITY.md SECURITY.md TEST_STRATEGY.md \
  THREAT_MODEL.md TRD.md docs/adr docs/doctoring docs/product-technical-gap-baseline.md

echo '== Documentation alignment at head =='
for file in \
  API_CONFIG_CONTRACT.md CHANGELOG.md OPERABILITY.md SECURITY.md TEST_STRATEGY.md \
  THREAT_MODEL.md TRD.md docs/product-technical-gap-baseline.md \
  docs/doctoring/TRACEABILITY.md
do
  if test -f "$file"; then
    echo "== $file =="
    rg -n -i -C 7 \
      'deserialize|socket.authorit|mapped|wildcard|IPv4|IPv6|OCI|Docker|image|pg.erd|supply.chain|evidence|candidate|hosted|CI|Rust|authority|release|cutover' \
      "$file" || true
  fi
done

echo '== Current exact-head tests for focus areas =='
for file in $(fd -HI -t f -e rs tests | rg -i '(listener|pg.erd|deserialize|oci|supply.chain|workflow|contract).*\.rs$' | sort); do
  echo "== $file =="
  cat -n "$file"
done

Length of output: 16091


🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='ContextualWisdomLab/pingora-gateway'

echo '== CI run =='
gh run view 34163230667 --repo "$repo" --json \
  databaseId,workflowName,displayTitle,headSha,headBranch,status,conclusion,event,createdAt,updatedAt,url,jobs

echo '== Supply Chain run =='
gh run view 34163230576 --repo "$repo" --json \
  databaseId,workflowName,displayTitle,headSha,headBranch,status,conclusion,event,createdAt,updatedAt,url,jobs

Length of output: 12206


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='69f22265cd88881b8e14cedb32defa0a91180aa2'
head='8937364909b82f50fd911aa001a8d073b517f5d9'

echo '== Merge topology in requested range =='
git rev-list --merges "$base..$head" > /tmp/range_merges.txt
cat /tmp/range_merges.txt
while IFS= read -r merge; do
  test -n "$merge" || continue
  echo "-- merge: $merge --"
  git show -s --format='parents=%P%nsubject=%s' "$merge"
  git show -s --format='%P' "$merge" | tr ' ' '\n' > /tmp/merge_parents.txt
  while IFS= read -r parent; do
    echo "parent $parent -> merge paths:"
    git diff --name-status "$parent..$merge"
  done < /tmp/merge_parents.txt
  git show --cc --no-ext-diff --format= --unified=100 "$merge"
done < /tmp/range_merges.txt

echo '== Exact delta for latest adoption and repair commits =='
for commit in ca38e6c11b7d9a355e3e7ec777aa567f2b53f917 \
              2c9e420478a5c36364808c5bfd2a231ebf76a276 \
              bf7a69d1b7c0e8782c503cd7b0b483a759e19ed1 \
              83a2c48efc5774d83f0f00aa1f305e02f20745ee \
              8937364909b82f50fd911aa001a8d073b517f5d9
do
  echo "-- $commit --"
  git show --no-ext-diff --format='%H%n%s%n%b' --stat "$commit"
  git show --no-ext-diff --format= --unified=140 "$commit"
done

echo '== Shared authority normalization and validation boundary =='
sed -n '1,380p' src/edge_contract.rs
sed -n '1,330p' src/migration_admin.rs
rg -n -C 14 --glob '*.rs' \
  'socket_authorities_overlap|to_ipv4_mapped|Deserialize|deserialize|from_yaml|validate\(|try_new|from_validated|PgErdMigrationConfig' \
  src tests

echo '== Relevant tests =='
for file in \
  tests/listener_authority_contract.rs \
  tests/pg_erd_admin_config_contract.rs \
  tests/pg_erd_production_path.rs
do
  if test -f "$file"; then
    echo "-- $file --"
    cat -n "$file"
  fi
done
fd -HI -t f -e rs tests | rg -i 'deserialize|admin.*contract|listener.*contract|workflow.*contract|supply.*chain' > /tmp/relevant_tests.txt || true
while IFS= read -r file; do
  test -n "$file" || continue
  echo "-- $file --"
  rg -n -C 10 'Deserialize|deserialize|from_yaml|socket_authorities_overlap|candidate-evidence|read-only|pg-erd' "$file" || true
done < /tmp/relevant_tests.txt

echo '== OCI and supply-chain workflows =='
cat -n Dockerfile
cat -n .github/workflows/ci.yml
cat -n .github/workflows/supply-chain.yml

echo '== Documentation updates and current claims =='
git diff --no-ext-diff --unified=120 "$base...$head" -- \
  API_CONFIG_CONTRACT.md CHANGELOG.md OPERABILITY.md SECURITY.md TEST_STRATEGY.md \
  THREAT_MODEL.md TRD.md docs/adr/0008-bounded-pg-erd-admin-activation.md \
  docs/doctoring/TRACEABILITY.md docs/product-technical-gap-baseline.md
for file in \
  API_CONFIG_CONTRACT.md CHANGELOG.md OPERABILITY.md SECURITY.md TEST_STRATEGY.md \
  THREAT_MODEL.md TRD.md docs/adr/0008-bounded-pg-erd-admin-activation.md \
  docs/doctoring/TRACEABILITY.md docs/product-technical-gap-baseline.md
do
  if test -f "$file"; then
    echo "-- $file --"
    rg -n -i -C 6 \
      'deserialize|socket.authorit|mapped|wildcard|OCI|image|pg.erd|supply.chain|evidence|candidate|hosted|adoption|release|cutover' \
      "$file" || true
  fi
done

Length of output: 203655


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='69f22265cd88881b8e14cedb32defa0a91180aa2'
head='8937364909b82f50fd911aa001a8d073b517f5d9'
merge='ca38e6c11b7d9a355e3e7ec777aa567f2b53f917'

echo '== Adoption parents and semantic-resolution paths =='
git show -s --format='merge=%H%nparents=%P%nsubject=%s' "$merge"
git show -s --format='%P' "$merge" | tr ' ' '\n' > /tmp/adoption_parents.txt
nl -ba /tmp/adoption_parents.txt
while IFS= read -r parent; do
  echo "-- $parent -> adoption --"
  git diff --name-status "$parent..$merge"
done < /tmp/adoption_parents.txt
git show --cc --no-ext-diff --format= --unified=100 "$merge" -- \
  src/edge_contract.rs src/migration_admin.rs src/migration_proxy.rs \
  .github/workflows/ci.yml .github/workflows/supply-chain.yml \
  tests/pg_erd_admin_config_contract.rs tests/pg_erd_production_path.rs

echo '== Exact source definitions and call paths =='
rg -n --glob '*.rs' \
  'pub\(crate\) fn socket_authorities_overlap|fn canonical|to_ipv4_mapped|impl PgErdMigrationConfig|pub fn build_proxy|pub fn from_yaml|fn validate_transport_authority|RuntimeIsolationLimits::from_validated|RuntimeIsolationLimits::try_new' \
  src tests

echo '-- edge contract authority implementation --'
line=$(rg -n --glob '*.rs' 'pub\(crate\) fn socket_authorities_overlap' src/edge_contract.rs | cut -d: -f1 | head -1)
sed -n "$((line-35)),$((line+105))p" src/edge_contract.rs

echo '-- migration Admin Config validation and activation --'
rg -n -A80 -B20 \
  'impl PgErdMigrationConfig|pub fn from_yaml|pub fn build_proxy|fn validate_transport_authority' \
  src/migration_admin.rs

echo '== Direct-Deserialize test and listener matrix assertions =='
rg -n -A95 -B15 \
  'Deserialize|deserialize|build_proxy|mapped|wildcard|ListenerCollision|ZeroTransportAuthorityPort' \
  tests/pg_erd_admin_config_contract.rs tests/listener_authority_contract.rs

echo '== CI OCI and load control flow =='
rg -n -A42 -B10 \
  'Build admitted candidate images|Verify declared non-root identities|Exercise generic read-only|Exercise pg-erd read-only|measured|origin|k6|Require loopback latency summary|Upload loopback' \
  .github/workflows/ci.yml

echo '== Supply Chain evidence control flow =='
rg -n -A58 -B12 \
  'Build admitted candidate images|Generate SPDX|Scan exact generic|Scan exact pg-erd|Bind candidate evidence|Upload exact candidate|Stage candidate failure|Upload candidate failure|candidate-evidence|source_sha|local_image_id|if-no-files-found' \
  .github/workflows/supply-chain.yml

echo '== Documentation statements about exact current head evidence =='
rg -n -i -C 3 \
  'exact.current.head|exact-head|terminal GREEN|terminal success|pending|reacquire|34163230667|34163230576' \
  docs/product-technical-gap-baseline.md TRD.md OPERABILITY.md SECURITY.md TEST_STRATEGY.md CHANGELOG.md

echo '== Exact documents changed after final source behavior commits =='
git log --format='%H %s' --reverse 2c9e420478a5c36364808c5bfd2a231ebf76a276.."$head" -- \
  docs/product-technical-gap-baseline.md TRD.md OPERABILITY.md SECURITY.md TEST_STRATEGY.md CHANGELOG.md

Length of output: 3677


🏁 Script executed:

#!/bin/bash
set -euo pipefail

base='69f22265cd88881b8e14cedb32defa0a91180aa2'
head='8937364909b82f50fd911aa001a8d073b517f5d9'
merge='ca38e6c11b7d9a355e3e7ec777aa567f2b53f917'
child='3c3b53180e2231d81b3da1bc02ff5dcb62a08d6f'

echo '== Adoption tree preservation =='
for file in \
  src/edge_contract.rs src/migration_admin.rs \
  .github/workflows/ci.yml .github/workflows/supply-chain.yml \
  tests/listener_authority_contract.rs tests/pg_erd_admin_config_contract.rs \
  tests/load_evidence_workflow_contract.rs tests/supply_chain_evidence_workflow_contract.rs
do
  printf '%s: ' "$file"
  if git diff --quiet "$child" "$merge" -- "$file"; then
    echo identical-to-child-parent
  else
    echo merge-resolution-change
    git diff --no-ext-diff --unified=40 "$child..$merge" -- "$file"
  fi
done

echo '== Latest focused commits =='
git show --no-ext-diff --format='%H %s' --stat 2c9e420478a5c36364808c5bfd2a231ebf76a276
git show --no-ext-diff --format= --unified=90 2c9e420478a5c36364808c5bfd2a231ebf76a276 -- src/migration_admin.rs tests
git show --no-ext-diff --format='%H %s' --stat bf7a69d1b7c0e8782c503cd7b0b483a759e19ed1
git show --no-ext-diff --format= --unified=90 bf7a69d1b7c0e8782c503cd7b0b483a759e19ed1 -- .github/workflows/ci.yml tests

echo '== Authority normalization =='
rg -n -A95 -B20 \
  'socket_authorities_overlap|to_ipv4_mapped|enum Canonical|canonical' \
  src/edge_contract.rs
echo '== Admin validation and public activation =='
rg -n -A100 -B20 \
  'impl PgErdMigrationConfig|pub fn from_yaml|pub fn build_proxy|fn validate\(|validate_transport_authority|from_validated' \
  src/migration_admin.rs
echo '== Direct deserialization and listener tests =='
rg -n -A60 -B12 \
  'deserialize|Deserialize|build_proxy|mapped|wildcard|ListenerCollision|ZeroTransportAuthorityPort' \
  tests/pg_erd_admin_config_contract.rs tests/listener_authority_contract.rs

echo '== Dual-profile OCI acceptance =='
rg -n -A46 -B10 \
  'Build admitted candidate images|Verify declared non-root identities|Exercise generic read-only|Exercise pg-erd read-only|CWL_GATEWAY_BIN|read-only|cap-drop|no-new-privileges|measured origin|k6-summary' \
  .github/workflows/ci.yml Dockerfile

echo '== Supply-chain evidence acceptance =='
rg -n -A62 -B12 \
  'Build admitted candidate images|Scan exact generic|Scan exact pg-erd|Bind candidate evidence|Upload exact candidate|Stage candidate failure|Upload candidate failure|candidate-evidence|candidate-failure|source_sha|local_image_id|if-no-files-found' \
  .github/workflows/supply-chain.yml

echo '== Documentation evidence status at head =='
rg -n -i -C 2 \
  '34163230667|34163230576|exact.current.head.*pending|exact-head.*pending|reacquire.*exact|terminal.*GREEN|terminal success' \
  docs/product-technical-gap-baseline.md TRD.md OPERABILITY.md SECURITY.md TEST_STRATEGY.md CHANGELOG.md || true

echo '== Source and workflow paths changed after adoption =='
git diff --name-status "$merge..$head"
git diff --check "$base...$head"

Length of output: 109745


@seonghobae I found one actionable issue in exact range 69f22265cd88881b8e14cedb32defa0a91180aa2...8937364909b82f50fd911aa001a8d073b517f5d9.

Medium — Update the baseline and operational documents with the current exact-head evidence.

docs/product-technical-gap-baseline.md still says that exact-current-head quality, coverage, rustdoc, load, OCI, and Supply Chain evidence must be reacquired. It also labels dedicated health, OCI isolation, and coverage/rustdoc as “exact hosted GREEN pending.” TRD.md, OPERABILITY.md, SECURITY.md, and CHANGELOG.md contain equivalent conditional wording.

The reported hosted evidence is now terminal success on this exact head:

  • CI 34163230667 completed successfully for 8937364909b82f50fd911aa001a8d073b517f5d9.
    • test passed formatting, locked compile/test, Clippy, warning-denied rustdoc, and 100% owned-production coverage.
    • load-contract passed the k6 workload and the non-empty summary check.
    • oci-runtime passed both generic and pg-erd rootless, read-only-root, capability-drop, and no-new-privileges runtime lanes.
  • Supply Chain 34163230576 completed successfully for the same head.
    • It built and scanned both image profiles.
    • It bound the SBOM, both scan outputs, and both local image IDs to the exact source SHA.
    • It uploaded the exact candidate evidence artifact.

Update the documents to identify these exact runs as completed evidence. Keep the remaining limits explicit: this evidence does not establish human approval, protected release status, immutable registry provenance, pg-erd routed load/failure parity, shadow/canary, cutover, or rollback credit.

I found no additional actionable defect.

  • The requested base is the exact merge base. The head is 83 commits ahead and 0 commits behind.
  • Ordinary adoption ca38e6c... preserves the child socket_authorities_overlap implementation and both workflow-evidence contracts. Its semantic merge change adds the parent Admin Config and production-path coverage.
  • socket_authorities_overlap canonicalizes IPv4-mapped IPv6 values to IPv4 before equality and wildcard checks. Generic and pg-erd tests retain mapped/native and mapped-to-mapped wildcard collision coverage in both required orders.
  • PgErdMigrationConfig::build_proxy() calls self.validate()? before materializing delivery peers and calling RuntimeIsolationLimits::from_validated. Direct Deserialize therefore cannot bypass deterministic version, listener, runtime, keepalive, or transport-authority validation.
  • The migration validation order still returns ZeroTransportAuthorityPort before shared UpstreamConfig::validate() can return ZeroUpstreamPort.
  • The OCI workflow builds both admitted process identities. The Dockerfile admits only the two fixed binary names and copies only the selected binary to the final image.
  • The supply-chain success path requires all evidence files, exact checkout identity, and both local image IDs before it creates candidate-evidence.txt. The failure path uses the separate candidate-failure-diagnostics-* namespace.

This review does not infer human approval, release, deployment, cutover, or rollback credit.

You are interacting with an AI system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant