Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
aa4c279
fix: 为普通 WS 响应登记归属以保留工具增量续接
ranxi2001 Nov 15, 2026
f4d5c51
fix: 保留无响应 ID 的普通终态交付行为
ranxi2001 Nov 15, 2026
e29c254
ci: 修复旧源码反例目录恢复并隔离普通续接夹具
ranxi2001 Nov 15, 2026
dfadb25
fix: HTTP 桥保留已验证的普通存储响应续接
ranxi2001 Nov 15, 2026
f2cf728
fix: 将普通存储续接限制在 Beta 并保留历史调用接口
ranxi2001 Nov 15, 2026
27dfeab
refactor: 将桥接专用续接判断与调用方放在同一文件
ranxi2001 Nov 15, 2026
2c29ebc
fix: 在桥接入口独立复核普通响应归属
ranxi2001 Nov 15, 2026
8efff51
ci: 将恢复的历史文件纳入源码一致性比较
ranxi2001 Nov 15, 2026
67939e1
fix: 将 WS 恢复拒绝帧纳入定向错误采集
ranxi2001 Nov 15, 2026
a91d725
fix: 在原账号上校验并转换不存储的 WS 桥接历史
ranxi2001 Nov 15, 2026
09fb060
test: 等待采集记录完成后再关闭测试管理器
ranxi2001 Nov 15, 2026
dc5a4e3
fix: 已重建 WS 会话按实际交付响应继续后续增量
ranxi2001 Nov 15, 2026
627121b
test: 修正重建会话夹具的局部错误变量
ranxi2001 Nov 15, 2026
04ec5e7
fix: 普通桥接工具历史绑定本连接已交付的调用摘要
ranxi2001 Nov 15, 2026
72c21be
fix: 保留桥接完整响应并约束续接证明
ranxi2001 Nov 15, 2026
562352c
fix: 按本连接终态校验普通工具续接
ranxi2001 Nov 15, 2026
9059264
test: 修正桥接续接夹具账号与完成信号
ranxi2001 Nov 15, 2026
6cc3d31
test: 显式传递当前续接轮工具精度夹具
ranxi2001 Nov 15, 2026
3bc72b2
ci: 固定历史 WS 线体回归的类型兼容层
ranxi2001 Nov 15, 2026
4d65e79
ci: 隔离历史夹具未使用的响应锚点构造器
ranxi2001 Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/scripts/historical-ws-projection-types.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
# Disposable historical assemblies only: retain types, strip the unused new
# anchor constructor whose signature/body requires later recovery APIs.
set -euo pipefail
baseline="$1"
bridge_baseline="${2:-$baseline}"
target=backend/internal/service/openai_ws_plaintext_projection.go
bridge=backend/internal/service/openai_ws_http_bridge.go
expected_candidate=e9b345d5055fe055c7891ccb67a93179c49152e2
expected_overlay=88ab6381539ae1620f28807169c7bc3b7d25a220
test "$(git rev-parse "HEAD:$target")" = "$expected_candidate"
test "$(git hash-object "$target")" = "$expected_candidate"
if git cat-file -e "$baseline:$target" 2>/dev/null; then
echo "refusing to strip a historical baseline helper" >&2
exit 1
fi
test ! -e backend/internal/service/openai_ws_agent_recovery.go
test "$(git hash-object "$bridge")" = "$(git rev-parse "$bridge_baseline:$bridge")"
# No remaining executable caller may depend on the removed constructor.
set +e
git grep -n 'openAIWSBridgeAnchor' -- 'backend/**/*.go' ':!backend/**/*_test.go' \
':!backend/internal/service/openai_ws_plaintext_projection.go'
references=$?
set -e
test "$references" -eq 1
for oracle in backend/internal/handler/openai_issue715_recovery_test.go backend/internal/handler/openai_issue715_delivery_race_test.go; do
expected=$(git rev-parse "HEAD:$oracle")
actual=$(git hash-object "$oracle")
test "$expected" = "$actual"
printf 'retained oracle path=%s expected=%s actual=%s\n' "$oracle" "$expected" "$actual"
done
sed -i '/^func openAIWSBridgeAnchor(/,/^}$/d' "$target"
actual=$(git hash-object "$target")
test "$actual" = "$expected_overlay"
printf 'historical projection types baseline=%s bridge_baseline=%s path=%s baseline_blob=absent candidate_blob=%s expected_overlay=%s tested_overlay=%s\n' \
"$baseline" "$bridge_baseline" "$target" "$expected_candidate" "$expected_overlay" "$actual"
1 change: 1 addition & 0 deletions .github/workflows/http-recovery-native-controls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
*_test.go) continue ;;
*.go)
if git cat-file -e "$baseline:$target" 2>/dev/null; then
mkdir -p -- "$(dirname -- "$target")"
git show "$baseline:$target" > "$target"
test "$(git hash-object "$target")" = "$(git rev-parse "$baseline:$target")"
else
Expand Down
33 changes: 31 additions & 2 deletions .github/workflows/issue715-agent-recovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,12 @@ jobs:
# exact Issue715 recovery blobs and all retained handler assertions.
weekly_compat=f895ea743f34a4c4ab6c9d01c01e13c931625a6e
weekly_leaves=(backend/internal/service/openai_disable_scheduling_429.go backend/internal/service/openai_gateway_passthrough.go backend/internal/service/openai_plugin_transport.go backend/internal/service/openai_quota_service.go backend/internal/service/openai_quota_usage_snapshot.go backend/internal/service/openai_ws_forwarder_support.go backend/internal/service/openai_ws_forwarder_v2.go)
projection_types=backend/internal/service/openai_ws_plaintext_projection.go
git fetch --no-tags --depth=1 origin "$original"
git fetch --no-tags --depth=1 origin "$metadata_compat"
git fetch --no-tags --depth=1 origin "$analysis_compat"
git fetch --no-tags --depth=1 origin "$billing_compat"
trap 'git restore --source=HEAD -- "${targets[@]}" "${added[@]}" "$analysis_leaf" "$billing_leaf" "${weekly_leaves[@]}" "$handler_leaf" "$error_leaf" "$metadata_leaf" backend/internal/service/openai_request_timezone_egress.go backend/internal/service/openai_ws_client.go; git diff --exit-code' EXIT
trap 'git restore --source=HEAD -- "${targets[@]}" "${added[@]}" "$analysis_leaf" "$billing_leaf" "${weekly_leaves[@]}" "$handler_leaf" "$error_leaf" "$metadata_leaf" "$projection_types" backend/internal/service/openai_request_timezone_egress.go backend/internal/service/openai_ws_client.go; git diff --exit-code' EXIT
git restore --source="$original" -- "${targets[@]}"
git restore --source="$metadata_compat" -- "$metadata_leaf"
test "$(git hash-object "$metadata_leaf")" = "$(git rev-parse "$metadata_compat:$metadata_leaf")"
Expand Down Expand Up @@ -164,11 +165,13 @@ jobs:
test "$expected" = "$actual"
done
for path in "${added[@]}"; do test ! -e "$path"; done
bash .github/scripts/historical-ws-projection-types.sh "$original"
set +e
(cd backend && go test -tags=unit ./internal/handler -run '^TestIssue715HTTPResumesSameTaskAcrossTwoTurns$' -count=1 -v -timeout=10m) > "$RUNNER_TEMP/issue715-recovery-red.log" 2>&1
result=$?
set -e
cat "$RUNNER_TEMP/issue715-recovery-red.log"
python3 .github/scripts/assert-readable-continuation.py --clean-log "$RUNNER_TEMP/issue715-recovery-red.log"
test "$result" -ne 0
if grep -Eq 'build failed|no tests to run|undefined:|panic:' "$RUNNER_TEMP/issue715-recovery-red.log"; then exit 1; fi
grep -q -- '--- FAIL: TestIssue715HTTPResumesSameTaskAcrossTwoTurns/false' "$RUNNER_TEMP/issue715-recovery-red.log"
Expand Down Expand Up @@ -286,13 +289,14 @@ jobs:
# The Beta helper depends on fields absent in this historical recovery struct.
omission_added=(backend/internal/service/openai_409_omit_history.go backend/internal/service/openai_409_readable_shadow.go backend/internal/repository/gateway_cache_readable_shadow.go backend/internal/repository/gateway_cache_agent_shadow_epoch.go backend/internal/service/openai_400_omit_history.go backend/internal/service/openai_history_omission.go)
omission_added+=(backend/internal/service/openai_agent_replay_metadata.go)
projection_types=backend/internal/service/openai_ws_plaintext_projection.go
metadata_compat=aa8e596e6d6f3e4648d6beba73b39b240dd5357a
metadata_leaf=backend/internal/service/openai_gateway_request_body.go
git fetch --no-tags --depth=1 origin "$original"
git fetch --no-tags --depth=1 origin "$ws_original"
git fetch --no-tags --depth=1 origin "$scheduler_compat"
git fetch --no-tags --depth=1 origin "$metadata_compat"
trap 'git restore --source=HEAD -- "${targets[@]}" "$added" "${ws_targets[@]}" "${ws_added[@]}" "$scheduler_leaf" "$wait_added" "${omission_added[@]}" "$handler_leaf" "$error_leaf" "$metadata_leaf" backend/internal/service/openai_request_timezone_egress.go backend/internal/service/openai_ws_client.go; git diff --exit-code' EXIT
trap 'git restore --source=HEAD -- "${targets[@]}" "$added" "${ws_targets[@]}" "${ws_added[@]}" "$scheduler_leaf" "$wait_added" "${omission_added[@]}" "$handler_leaf" "$error_leaf" "$metadata_leaf" "$projection_types" backend/internal/service/openai_request_timezone_egress.go backend/internal/service/openai_ws_client.go; git diff --exit-code' EXIT
git restore --source="$original" -- "${targets[@]}"
git restore --source="$ws_original" -- "${ws_targets[@]}"
git restore --source="$metadata_compat" -- "$metadata_leaf"
Expand Down Expand Up @@ -321,11 +325,13 @@ jobs:
echo "baseline=$original path=$target expected_blob=$expected tested_blob=$actual"
test "$expected" = "$actual"
done
bash .github/scripts/historical-ws-projection-types.sh "$original" "$ws_original"
set +e
(cd backend && go test -race -tags=unit ./internal/handler -run '^TestIssue715HTTPFirstDeliveryCrossNodeBarrier$/(generated-json|generated-stream|generated-stream-items)$' -count=1 -v -timeout=5m) > "$RUNNER_TEMP/issue715-first-delivery-red.log" 2>&1
result=$?
set -e
cat "$RUNNER_TEMP/issue715-first-delivery-red.log"
python3 .github/scripts/assert-readable-continuation.py --clean-log "$RUNNER_TEMP/issue715-first-delivery-red.log"
test "$result" -ne 0
if grep -Eq 'build failed|no tests to run|undefined:|panic:|DATA RACE|fixture barrier not reached' "$RUNNER_TEMP/issue715-first-delivery-red.log"; then exit 1; fi
for format in generated-json generated-stream generated-stream-items; do
Expand Down Expand Up @@ -414,12 +420,35 @@ jobs:
actual_passthrough=$(git hash-object "$passthrough")
echo "baseline=$original path=$passthrough expected_blob=$expected_passthrough tested_blob=$actual_passthrough"
test "$expected_passthrough" = "$actual_passthrough"
# Compile-only compatibility with the retained candidate bridge.
# The old manager never assigns this zero-valued anchor; no old
# executable statement or built-payload regression is replaced.
python3 - "$target" <<'PY'
from pathlib import Path
import sys
path = Path(sys.argv[1])
original = path.read_bytes()
declaration = b'type openAIWSAgentRecovery struct {\n'
assert original.count(declaration) == 1
path.write_bytes(original.replace(declaration, declaration + b'\tcompletedBridge openAIWSBridgeResponseAnchor\n', 1))
PY
expected_overlay=41fc424e64fdf029addeaeff9213f55e150a7a21
actual_overlay=$(git hash-object "$target")
echo "baseline=$original path=$target original_blob=$expected expected_overlay=$expected_overlay tested_overlay=$actual_overlay"
test "$expected_overlay" = "$actual_overlay"
for retained in backend/internal/service/openai_ws_http_bridge.go backend/internal/service/openai_ws_plaintext_projection.go; do
expected_retained=$(git rev-parse "HEAD:$retained")
actual_retained=$(git hash-object "$retained")
echo "retained_candidate path=$retained expected_blob=$expected_retained tested_blob=$actual_retained"
test "$expected_retained" = "$actual_retained"
done
git diff --exit-code HEAD -- backend/internal/service/openai_ws_agent_recovery_test.go
set +e
(cd backend && go test -tags=unit ./internal/service -run '^TestIssue715WSBridgeValidatesBuiltPayload$' -count=1 -v -timeout=5m) > "$RUNNER_TEMP/issue715-ws-wire-red.log" 2>&1
result=$?
set -e
cat "$RUNNER_TEMP/issue715-ws-wire-red.log"
python3 .github/scripts/assert-readable-continuation.py --clean-log "$RUNNER_TEMP/issue715-ws-wire-red.log"
test "$result" -ne 0
if grep -Eq 'build failed|no tests to run|undefined:|panic:|--- SKIP:' "$RUNNER_TEMP/issue715-ws-wire-red.log"; then exit 1; fi
grep -q -- '--- FAIL: TestIssue715WSBridgeValidatesBuiltPayload' "$RUNNER_TEMP/issue715-ws-wire-red.log"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ws-owner-conflict.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
*_test.go) continue ;;
*.go)
if git cat-file -e "$BASELINE:$target" 2>/dev/null; then
mkdir -p -- "$(dirname -- "$RUNNER_TEMP/ws-owner-red/$target")"
git show "$BASELINE:$target" > "$RUNNER_TEMP/ws-owner-red/$target"
test "$(git hash-object "$RUNNER_TEMP/ws-owner-red/$target")" = "$(git rev-parse "$BASELINE:$target")"
printf '%s %s\n' "$(git rev-parse "$BASELINE:$target")" "$target" >> "$RUNNER_TEMP/ws-owner-evidence/baseline-blobs.txt"
Expand Down
Loading
Loading