ci(workflows): stop chronic autonomous heal loops - #503
Conversation
🔗 Broken Links DetectedPlease fix the broken links before merging. |
|
🤖 Hi @4444J99, I've received your request, and I'm working on it now! You can track my progress in the logs for more details. |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. OpenSSF Scorecard
Scanned Files
|
💬 Task Catcher Summary💬 Unresolved discussions - Resolve review threads 📋 Task Overview
🎯 Next Steps
Options:
Last scanned: 2026-07-12 18:11 UTC |
|
This PR is quite large:
Consider:
If this PR must remain large, please provide extra context in the description about why these changes are grouped together. |
🔗 Broken Links DetectedSummary
Errors per inputErrors in .config/schema-org/README.md
Errors in CONTRIBUTING.md
Errors in docs/ai_framework/agents/neon-migration-specialist.agent.md
Errors in docs/ai_framework/agents/neon-optimization-analyzer.agent.md
Errors in docs/ai_framework/chatmodes/azure-verified-modules-terraform.chatmode.md
Errors in docs/audits/activation/2026-06-11-EV-447.md
Errors in docs/audits/activation/README.md
Errors in docs/guides/BATCH_ONBOARDING_GUIDE.md
Errors in docs/guides/COPILOT_QUICK_START.md
Errors in docs/guides/CUSTOM_INSTRUCTIONS_SETUP.md
Errors in docs/guides/GITHUB_PROJECTS_DEPLOYMENT.md
Errors in docs/guides/GITHUB_PROJECTS_IMPLEMENTATION.md
Errors in docs/guides/GITHUB_PROJECTS_QUICKREF.md
Errors in docs/guides/GITHUB_PROJECTS_VISUAL.md
Errors in docs/guides/MCP_SERVER_SETUP.md
Errors in docs/guides/monitoring.md
Errors in docs/guides/NEW_CONTRIBUTOR_GUIDE.md
Errors in docs/guides/README.chatmodes.md
Errors in docs/guides/SCHEMA_ORG_SEMVER_GUIDE.md
Errors in docs/guides/SECRETS_SETUP.md
Errors in docs/guides/SLACK_INTEGRATION_CONFIGURATION.md
Errors in docs/reference/COPILOT_ENHANCEMENTS_INDEX.md
Errors in docs/reference/ORGANIZATIONAL_CONTENT_INDEX.md
Errors in docs/reports/GITHUB_PROJECTS_SUMMARY.md
Errors in docs/reports/POSTING_WALKTHROUGH_ANNOUNCEMENT.md
Errors in docs/reports/WALKTHROUGH_ANNOUNCEMENT.md
Errors in docs/reports/WEEK_9_COMPLETION_SUMMARY.md
Errors in docs/runbooks/SECRET_SCANNING_RESOLUTION.md
Errors in docs/workflows/REUSABLE_WORKFLOWS.md
Errors in profile/README.md
Errors in README.md
Errors in src/ai_framework/agents/neon-migration-specialist.agent.md
Errors in src/ai_framework/agents/neon-optimization-analyzer.agent.md
Errors in src/ai_framework/chatmodes/azure-verified-modules-terraform.chatmode.md
Errors in src/automation/scripts/utils/README_PROJECTS.md
Errors in src/automation/scripts/utils/setup-automation-rules.md
Redirects per inputRedirects in .github/docs/REUSABLE_WORKFLOWS.md
Redirects in CODE_OF_CONDUCT.md
Redirects in docs/ai_framework/agents/data-decommissioning.agent.md
Redirects in docs/ai_framework/agents/data-reclamation.agent.md
Redirects in docs/ai_framework/chatmodes/atlassian-requirements-to-jira.chatmode.md
Redirects in docs/ai_framework/chatmodes/kusto-assistant.chatmode.md
Redirects in docs/architecture/AI_CODE_INTELLIGENCE.md
Redirects in docs/architecture/WORKSPACE_CONTAINERIZATION_PROTOCOLS.md
Redirects in docs/automation/AUTOMATION_MASTER_GUIDE.md
Redirects in docs/getting-started/CONFIGURATION.md
Redirects in docs/governance/CODE_OF_CONDUCT.md
Redirects in docs/guides/AGENT_ARCHITECTURE_GUIDE.md
Redirects in docs/guides/COPILOT_QUICK_START.md
Redirects in docs/guides/CUSTOM_INSTRUCTIONS_SETUP.md
Redirects in docs/guides/dependency-management.md
Redirects in docs/guides/GITHUB_COPILOT_ACTIONS_SETUP.md
Redirects in docs/guides/MCP_SERVER_SETUP.md
Redirects in docs/guides/PR_COMPLIANCE_GUIDE.md
Redirects in docs/guides/SECRET_MANAGEMENT_GUIDE.md
Redirects in docs/guides/SLACK_INTEGRATION_CONFIGURATION.md
Redirects in docs/guides/testing-best-practices.md
Redirects in docs/reference/COPILOT_ENHANCEMENTS_INDEX.md
Redirects in docs/reference/SEMANTIC_VERSIONING.md
Redirects in docs/reports/WEEK5_DEPLOYMENT_CHECKLIST.md
Redirects in profile/README.md
Redirects in README.md
Redirects in src/ai_framework/chatmodes/atlassian-requirements-to-jira.chatmode.md
Redirects in src/automation/scripts/utils/1PASSWORD_QUICK_START.md
Please fix the broken links before merging. |
|
This PR is quite large:
Consider:
If this PR must remain large, please provide extra context in the description about why these changes are grouped together. |
🧪 Integration Test Results
Overall: ✅ All tests passed! View detailed test reports |
Code Review — PR #503:
|
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
🧪 Integration Test Results
Overall: ✅ All tests passed! View detailed test reports |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🧪 Integration Test Results
Overall: ✅ All tests passed! View detailed test reports |
Code Review — PR #503: ci(workflows): stop chronic autonomous heal loopsSummary: This PR is a well-structured root-cause fix that addresses a chronic autonomous-heal loop by making the owner repository itself satisfy its own policy contracts. The approach is architecturally sound — fixing producers rather than repeatedly patching symptoms. StrengthsSecurity fix in Shell injection elimination in Python correctness in
Gemini availability gate Test coverage Issues and Suggestions
The file re-declares the More specifically:
Recommendation: Add
After the change, Suggestion: Either promote token-over-limit to an error, or return a separate
The old map had
elif [[ "$HAS_WIF_PROVIDER" == "true" && "$USE_VERTEX_AI" == "$USE_CODE_ASSIST" ]]; then
reason="Workload Identity requires exactly one Gemini backend"This fires when both are
Minor
VerdictThe security fixes (injection prevention in The main actionable items before merge are:
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Code Review — PR #503Overall this is a well-scoped, high-quality PR. The root-cause diagnosis is correct, the fixes are targeted, and the regression suite is substantive. A few findings below, ordered by severity. Security — Fixed (noteworthy)
Both are exactly the right approach. Bug — Fixed (noteworthy)
Minor Issue
Observation —
|
🧪 Integration Test Results
Overall: ✅ All tests passed! View detailed test reports |
What changed
actions/first-interactionto its pinned action's underscore input contract.logs/agents/as local runtime state so heartbeat snapshots cannot become repair diffs.Root cause
The heal fleet was fixing symptoms on branches that violated the owner repository's policy contract. Repeated branches carried either an unterminated volatile
opencode.json, an optional Gemini review invocation with no authentication method, or nonconventional metadata. Two branches also contained real product work that had never received durable mainline custody.This PR moves the fixes to the owner: producers now satisfy policy, optional review has an availability gate, volatile state is excluded, and the substantive deltas are preserved with tests.
Superseded-heal map
683a78f.191eebd, then corrected and tested.logs/agents/opencode.jsononly; superseded by the runtime-state exclusion and owner policy fixes.No existing PR is merged or closed by this change. After this exact head is green and merged, those branches can be patch-equivalence closed against the resulting default-branch commit.
Verification
.venv/bin/python -m pytest— 2,010 tests, 0 failures, 0 errors, 11 runtime-fixture skips; 85.91% line coverage.npm test && npm run build && npm run typecheck— passed (TypeScript emits no output).bash src/automation/project_meta/context-handoff/tests/test_workflow.sh— minimal, standard, and full payloads generated and validated within token targets.actionlint -shellcheck= <changed workflows>— passed; shell scripts are covered by the pre-commit shellcheck hook.SKIP=mypy,bandit,detect-secrets,resolve-managed-links,no-commit-to-branch,eslint,python-safety-dependencies-check pre-commit run --all-files --show-diff-on-failure— passed, matching CI's full-repository skip contract.bash src/automation/scripts/validate-standards.sh --branchandgit diff --check— passed.Impact
The owner repository gets one reviewable root fix instead of another recursive repair branch. Provider credentials remain optional and are never exposed; absence is reported as a clean skip rather than a red required check.