Skip to content

fix: Add PYTHONPATH and Phase 3 workflows to Workflows repo#694

Merged
stranske merged 7 commits intomainfrom
fix/workflows-pythonpath-phase3
Jan 9, 2026
Merged

fix: Add PYTHONPATH and Phase 3 workflows to Workflows repo#694
stranske merged 7 commits intomainfrom
fix/workflows-pythonpath-phase3

Conversation

@stranske
Copy link
Copy Markdown
Owner

@stranske stranske commented Jan 9, 2026

Source: Issue #691

Automated Status Summary

Scope

Part of Phase 3 workflow rollout validation per langchain-post-code-rollout.md

Tasks

  • Create a large issue with 8+ subtasks (e.g., 'Build user dashboard with auth, profile, settings, notifications, themes, export, import, admin') in the test repo.
  • Create an atomic issue (e.g., 'Fix null check in parser') in the test repo.
  • Create a decomposable issue with labels/milestone in the test repo.

Acceptance criteria

  • DCPT01 creates linked child issues.
  • DCPT02 leaves atomic issues alone.
  • DCPT03 preserves metadata on children.

Head SHA: d91670b
Latest Runs: ❔ in progress — Gate
Required: gate: ❔ in progress

Workflow / Job Result Logs
Agents PR meta manager ❔ in progress View run
CI Autofix Loop ✅ success View run
Gate ❔ in progress View run
Health 40 Sweep ✅ success View run
Health 44 Gate Branch Protection ✅ success View run
Health 45 Agents Guard ✅ success View run
Health 50 Security Scan ✅ success View run
Maint 52 Validate Workflows ✅ success View run
PR 11 - Minimal invariant CI ✅ success View run
Selftest CI ✅ success View run
Validate Sync Manifest ✅ success View run

- Added missing PYTHONPATH env var to agents-issue-optimizer.yml (Phase 1, 2, dedup)
- Copied agents-capability-check.yml, agents-decompose.yml, agents-dedup.yml from template
- Adapted all workflows for Workflows repo (removed self-checkout, fixed paths)
- Fixed agents-auto-label.yml checkout and paths
- Created SHORT_TERM_PLAN.md and SHORT_TERM_PLAN_SUMMARY.md

Fixes: agents:optimize failing with 'No module named tools' error on issue #691
Copilot AI review requested due to automatic review settings January 9, 2026 14:10
@stranske stranske temporarily deployed to agent-high-privilege January 9, 2026 14:10 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 9, 2026

Automated Status Summary

Head SHA: ab2f414
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / Enforce agents workflow protections
Required: core tests (3.11): ⏳ pending, core tests (3.12): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 92.21%
Baseline 85.00%
Delta +7.21%
Minimum 70.00%
Status ✅ Pass

Top Coverage Hotspots (lowest coverage)

File Coverage Missing
scripts/workflow_health_check.py 62.6% 28
scripts/classify_test_failures.py 62.9% 37
scripts/ledger_validate.py 65.3% 63
scripts/mypy_return_autofix.py 82.6% 11
scripts/ledger_migrate_base.py 85.5% 13
scripts/fix_cosmetic_aggregate.py 92.3% 1
scripts/coverage_history_append.py 92.8% 2
scripts/workflow_validator.py 93.3% 4
scripts/update_autofix_expectations.py 93.9% 1
scripts/pr_metrics_tracker.py 95.7% 3
scripts/generate_residual_trend.py 96.6% 1
scripts/build_autofix_pr_comment.py 97.0% 2
scripts/aggregate_agent_metrics.py 97.2% 0
scripts/fix_numpy_asserts.py 98.1% 0
scripts/sync_test_dependencies.py 98.3% 1

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

Part of Phase 3 workflow rollout validation per langchain-post-code-rollout.md

Tasks

  • Create a large issue with 8+ subtasks (e.g., 'Build user dashboard with auth, profile, settings, notifications, themes, export, import, admin') in the test repo.
  • Create an atomic issue (e.g., 'Fix null check in parser') in the test repo.
  • Create a decomposable issue with labels/milestone in the test repo.

Acceptance criteria

  • DCPT01 creates linked child issues.
  • DCPT02 leaves atomic issues alone.
  • DCPT03 preserves metadata on children.

@stranske stranske temporarily deployed to agent-high-privilege January 9, 2026 14:12 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 9, 2026

🤖 Keepalive Loop Status

PR #694 | Agent: Codex | Iteration 0/5

Current State

Metric Value
Iteration progress [----------] 0/5
Action wait (missing-agent-label)
Disposition skipped (transient)
Gate success
Tasks 0/6 complete
Keepalive ❌ disabled
Autofix ❌ disabled

🔍 Failure Classification

| Error type | infrastructure |
| Error category | resource |
| Suggested recovery | Confirm the referenced resource exists (repo, PR, branch, workflow, or file). |

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes critical issues preventing agent workflows from running in the Workflows repository itself by adding missing PYTHONPATH environment variables and copying Phase 3 workflows from the consumer template. The changes adapt these workflows to work directly in the Workflows repo by removing self-checkout logic and adjusting paths.

Key changes:

  • Added PYTHONPATH environment variable to agents-issue-optimizer.yml phases to fix ModuleNotFoundError
  • Copied and adapted three Phase 3 workflows (capability-check, decompose, dedup) to work in the Workflows repo
  • Fixed agents-auto-label.yml to remove unnecessary self-checkout logic

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
.github/workflows/agents-issue-optimizer.yml Added PYTHONPATH to three workflow steps to fix Python module import errors
.github/workflows/agents-capability-check.yml New workflow to check if agents can complete tasks before assignment
.github/workflows/agents-decompose.yml New workflow to break down large issues into actionable sub-tasks
.github/workflows/agents-dedup.yml New workflow to detect potential duplicate issues using semantic similarity
.github/workflows/agents-auto-label.yml Removed self-checkout logic and updated to Python 3.11 for Workflows repo
docs/plans/SHORT_TERM_PLAN_SUMMARY.md New planning document with 2-week execution summary
docs/plans/SHORT_TERM_PLAN.md New detailed planning document for Phase 3 completion

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Remove ../ prefix from file paths in capability-check, decompose, and dedup workflows.
Consumer template uses ../ because workflows-repo is a subdirectory, but Workflows repo itself doesn't need the prefix.
@stranske stranske temporarily deployed to agent-high-privilege January 9, 2026 14:16 — with GitHub Actions Inactive
- Add agents-capability-check.yml to workflow docs
- Add agents-decompose.yml to workflow docs
- Add agents-dedup.yml to workflow docs

Fixes remaining test failures in PR #694
@stranske stranske temporarily deployed to agent-high-privilege January 9, 2026 14:25 — with GitHub Actions Inactive
@stranske stranske temporarily deployed to agent-high-privilege January 9, 2026 14:27 — with GitHub Actions Inactive
Per Copilot review comment - this was missing PYTHONPATH which could
cause the same ModuleNotFoundError this PR is fixing. All other
workflows in this PR have PYTHONPATH set, this one was overlooked.

Co-authored-by: copilot-pull-request-reviewer
@stranske stranske temporarily deployed to agent-high-privilege January 9, 2026 14:29 — with GitHub Actions Inactive
- agents-capability-check.yml
- agents-decompose.yml
- agents-dedup.yml

Fixes test_canonical_workflow_names_match_expected_mapping failure
@stranske stranske temporarily deployed to agent-high-privilege January 9, 2026 14:34 — with GitHub Actions Inactive
@github-actions github-actions bot added the autofix Opt-in automated formatting & lint remediation label Jan 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 9, 2026

Status | ✅ no new diagnostics
History points | 1
Timestamp | 2026-01-09 14:35:23 UTC
Report artifact | autofix-report-pr-694
Remaining | 0
New | 0
No additional artifacts

@stranske stranske merged commit c5ea6b7 into main Jan 9, 2026
93 checks passed
@stranske stranske deleted the fix/workflows-pythonpath-phase3 branch January 9, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autofix Opt-in automated formatting & lint remediation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants