fix(agents): accept monitoring coverage source fallback
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 1m12s
CD Pipeline / build-and-deploy (push) Successful in 4m53s
CD Pipeline / post-deploy-checks (push) Successful in 1m49s
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 1m12s
CD Pipeline / build-and-deploy (push) Successful in 4m53s
CD Pipeline / post-deploy-checks (push) Successful in 1m49s
This commit is contained in:
@@ -1082,15 +1082,23 @@ def _inspect_source_contract(repo_root: Path) -> dict[str, bool]:
|
||||
"apps/api/src/services/telegram_alert_learning_context_post_apply_verifier.py",
|
||||
"telegram_alert_learning_context_post_apply_verifier_v1",
|
||||
),
|
||||
"awooop_coverage_surface_present": (
|
||||
"apps/web/src/components/awooop/autonomous-runtime-receipt-panel.tsx",
|
||||
"telegram-alert-monitoring-coverage-readback",
|
||||
),
|
||||
}
|
||||
result: dict[str, bool] = {}
|
||||
for key, (relative_path, marker) in checks.items():
|
||||
text_value = _read_source_contract_text(repo_root, relative_path)
|
||||
result[key] = marker in text_value
|
||||
web_surface_text = _read_source_contract_text(
|
||||
repo_root,
|
||||
"apps/web/src/components/awooop/autonomous-runtime-receipt-panel.tsx",
|
||||
)
|
||||
api_endpoint_text = _read_source_contract_text(
|
||||
repo_root,
|
||||
"apps/api/src/api/v1/agents.py",
|
||||
)
|
||||
result["awooop_coverage_surface_present"] = (
|
||||
"telegram-alert-monitoring-coverage-readback" in web_surface_text
|
||||
or "/telegram-alert-monitoring-coverage-readback" in api_endpoint_text
|
||||
)
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user