feat(telegram): mark verifier receipts surfaced
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 57s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 57s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -32,7 +32,7 @@ def test_telegram_alert_ai_automation_matrix_loader_returns_gap_matrix():
|
||||
}
|
||||
|
||||
summary = payload["summary"]
|
||||
assert summary["telegram_alert_surface_count"] == 8
|
||||
assert summary["telegram_alert_surface_count"] == 9
|
||||
assert summary["known_direct_send_gap_count"] == 0
|
||||
assert summary["known_direct_send_gap_file_count"] == 0
|
||||
assert summary["workflow_direct_send_gap_count"] == 0
|
||||
@@ -56,8 +56,9 @@ def test_telegram_alert_ai_automation_matrix_loader_returns_gap_matrix():
|
||||
assert summary["ai_alert_card_learning_registry_readback_count"] == 1
|
||||
assert summary["telegram_alert_ai_loop_consumer_context_readback_count"] == 1
|
||||
assert summary["telegram_alert_post_apply_verifier_readback_count"] == 1
|
||||
assert summary["telegram_alert_post_apply_verifier_awooop_surface_count"] == 1
|
||||
assert summary["next_priority_action_id"] == (
|
||||
"surface_verified_telegram_alert_context_receipts_in_awooop_runs_work_items_alerts"
|
||||
"audit_all_telegram_monitoring_alerts_db_log_ai_automation_coverage"
|
||||
)
|
||||
|
||||
matrix = {item["surface_id"]: item for item in payload["matrix"]}
|
||||
@@ -102,6 +103,12 @@ def test_telegram_alert_ai_automation_matrix_loader_returns_gap_matrix():
|
||||
assert matrix["telegram_ai_loop_post_apply_verifier"]["post_verifier"] == (
|
||||
"ready_context_receipt_post_apply_verifier"
|
||||
)
|
||||
assert matrix["telegram_verified_context_awooop_operator_surface"]["status"] == (
|
||||
"verified_context_receipt_surface_present"
|
||||
)
|
||||
assert matrix["telegram_verified_context_awooop_operator_surface"]["ai_route"] == (
|
||||
"ready_operator_visible_ai_loop_receipts"
|
||||
)
|
||||
|
||||
assert payload["direct_send_gap_refs"] == []
|
||||
assert not any(
|
||||
@@ -124,6 +131,7 @@ def test_telegram_matrix_source_contract_supports_container_layout(tmp_path):
|
||||
(tmp_path / "src/services").mkdir(parents=True)
|
||||
(tmp_path / "src/db").mkdir(parents=True)
|
||||
(tmp_path / "src/api/v1/platform").mkdir(parents=True)
|
||||
(tmp_path / "apps/web/src/components/awooop").mkdir(parents=True)
|
||||
(tmp_path / "src/services/telegram_gateway.py").write_text(
|
||||
"_mirror_outbound_message\n"
|
||||
"record_outbound_message\n"
|
||||
@@ -153,6 +161,10 @@ def test_telegram_matrix_source_contract_supports_container_layout(tmp_path):
|
||||
"telegram_alert_learning_context_post_apply_verifier_v1\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
(tmp_path / "apps/web/src/components/awooop/autonomous-runtime-receipt-panel.tsx").write_text(
|
||||
'data-testid="telegram-alert-post-apply-verifier-readback"\n',
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
proof = _inspect_source_contract(tmp_path)
|
||||
|
||||
@@ -171,6 +183,8 @@ def test_telegram_matrix_source_contract_supports_container_layout(tmp_path):
|
||||
assert proof["telegram_alert_ai_loop_consumer_context_readback_count"] == 1
|
||||
assert proof["telegram_alert_post_apply_verifier_readback_present"] is True
|
||||
assert proof["telegram_alert_post_apply_verifier_readback_count"] == 1
|
||||
assert proof["telegram_alert_post_apply_verifier_awooop_surface_present"] is True
|
||||
assert proof["telegram_alert_post_apply_verifier_awooop_surface_count"] == 1
|
||||
|
||||
|
||||
def test_telegram_alert_ai_automation_matrix_endpoint_returns_readback():
|
||||
|
||||
Reference in New Issue
Block a user