fix(perf): recover invalid telegram receipt index
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 4m0s
CD Pipeline / build-and-deploy (push) Successful in 14m58s
CD Pipeline / post-deploy-checks (push) Successful in 8m50s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 10s

This commit is contained in:
ogt
2026-07-17 03:52:34 +08:00
committed by Your Name
parent 5fc3082a7b
commit 43d2376d65
6 changed files with 393 additions and 35 deletions

View File

@@ -30,8 +30,9 @@ def test_agent99_is_dispatch_only_and_apply_requires_independent_verifier() -> N
source = AGENT99_ENTRYPOINT.read_text()
for fixed in (
'$CommandId = "telegram_receipt_index_apply_v1"',
'$CommandId = "telegram_receipt_index_v2_apply_v1"',
'$CanonicalAsset = "public.awooop_outbound_message"',
'$NormalizedReindexSqlSha256 = "1857625d45032fba6fea52ebfa6cd0961ffe170b8c09488c773c60a63c75b1b7"',
'$JumpHost = "192.168.0.110"',
'$ControlPlaneHost = "192.168.0.120"',
'$Kubectl = "/usr/local/bin/kubectl"',
@@ -50,6 +51,11 @@ def test_agent99_is_dispatch_only_and_apply_requires_independent_verifier() -> N
assert 'Invoke-Agent99FixedDbStage "check" $ExecutorPod' in source
assert 'Invoke-Agent99FixedDbStage "apply" $ExecutorPod' in source
assert 'Invoke-Agent99FixedDbStage "verify" $VerifierPod' in source
assert "--normalized-reindex-sql-sha256 $NormalizedReindexSqlSha256" in source
assert (
'$operation -in @("create_index_concurrently", "reindex_index_concurrently")'
in source
)
apply_flow = source[source.index("# Apply is the only write path") :]
assert apply_flow.index('Invoke-Agent99FixedDbStage "check"') < apply_flow.index(
'Invoke-Agent99FixedDbStage "apply"'
@@ -112,6 +118,10 @@ def test_agent99_atomic_bundle_owns_the_dispatch_entrypoint() -> None:
for source in (deploy, bootstrap, contract, transport, receiver):
assert '"agent99-db-bounded-executor.ps1"' in source
assert 'Add-Check "database:fixed_bounded_executor"' in contract
assert "$dbExecutorIdentityContract" in contract
assert "$dbExecutorRecoveryContract" in contract
assert "awoooi_db_bounded_executor_receipt_v2" in contract
assert "Receipt.database_sqlstate" in contract
assert 'expectedRuntimeFileCount": 16' in transport
assert "expectedRuntimeFileCount=16" in transport
assert "expectedRuntimeFileCount -ne 16" in receiver