Skip to content

fix: sync autofix-versions.env template and fix devcontainer PATH#962

Merged
stranske merged 9 commits intomainfrom
fix/followup-issue-generator-agent-feedback
Jan 19, 2026
Merged

fix: sync autofix-versions.env template and fix devcontainer PATH#962
stranske merged 9 commits intomainfrom
fix/followup-issue-generator-agent-feedback

Conversation

@stranske
Copy link
Copy Markdown
Owner

@stranske stranske commented Jan 19, 2026

Source: Issue #206

Automated Status Summary

Scope

Integration Sync Drift Detected

The Workflows-Integration-Tests repo has drifted from the templates in this repo.

Check Details: Run #6

Required Actions

Context for Agent

Design Decisions & Constraints

  • Changes to Integration-Tests should be made here first, then synced

Related Issues/PRs

References

Tasks

  • 1. Review the drift in the workflow run summary
  • 2. Update templates in templates/integration-repo/ to match Integration-Tests changes
  • 3. OR update Integration-Tests to match templates (if templates are correct)
  • 4. Close this issue when resolved

Acceptance criteria

  • - Templates in this repo are the source of truth
  • - Changes to Integration-Tests should be made here first, then synced
  • - Use maint-65-sync-label-docs.yml pattern for automated sync

Head SHA: 5aec033
Latest Runs: ✅ success — Gate
Required: gate: ✅ success

Workflow / Job Result Logs
Agents PR meta manager ✅ success View run
CI Autofix Loop ✅ success View run
Gate ✅ success View run
Health 40 Sweep ✅ success View run
Health 44 Gate Branch Protection ❌ failure 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

stranske and others added 5 commits January 19, 2026 06:16
Fixes based on review comments on sync PRs:

1. Add missing non_goals section to SECTION_ALIASES/SECTION_TITLES
   - Aligns with issue_formatter.py for consistent section parsing
   - Now properly recognizes 'Non-Goals', 'Out of scope', etc.

2. Fix _parse_sections to reset current at unrecognized headings
   - Previously, content under '## Out of scope' would be appended to
     the previous recognized section (e.g., Tasks)
   - Now terminates section capture at any heading, recognized or not

3. Add docstrings to all helper functions
   - _normalize_heading, _resolve_section, _parse_sections
   - _strip_checkbox, _parse_checklist

4. Fix redundant regex matching in _parse_checklist
   - Pass pre-computed LIST_ITEM_REGEX match to _strip_checkbox
   - Avoids matching the same regex twice per line

All 18 existing tests pass.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
The previous fix incorrectly reset 'current' for ALL headings, which would
discard content under subheadings like:

- [ ] Task 1
- [ ] Task 2

Now only top-level headings (# and ##) trigger section transitions.
Subheadings (###, ####, etc.) are preserved as content within the section.

Also fixed the docstring comment to use 'Random Notes' as an example of
an unrecognized heading, since 'Out of scope' is now a recognized alias
for non_goals.
- Update templates/consumer-repo autofix-versions.env to match source
  - BLACK_VERSION: 25.12.0 -> 26.1.0
  - RUFF_VERSION: 0.14.11 -> 0.14.13

- Fix devcontainer.json to use pip-installed tool versions
  - Add containerEnv to prepend ~/.local/bin to PATH
  - Remove stale system tools from /usr/local/py-utils/bin

This fixes the version drift that caused autofix to push formatting
that didn't match CI checks. The devcontainer image ships with old
versions of black/ruff in /usr/local/py-utils/bin which took precedence
over the pip-installed versions from pyproject.toml.

Root cause: Template autofix-versions.env was not being kept in sync
with the main Workflows autofix-versions.env source of truth.
Copilot AI review requested due to automatic review settings January 19, 2026 07:47
@github-actions github-actions bot added the autofix Opt-in automated formatting & lint remediation label Jan 19, 2026
The script now checks and syncs templates/consumer-repo/.github/workflows/autofix-versions.env
to match the source file. This ensures the maint-68 sync workflow always has
the correct versions to push to consumer repos.

Root cause of version drift: The template file was never automatically synced
from the source, so when BLACK_VERSION was updated in .github/workflows/autofix-versions.env,
the template stayed at the old version and got synced to consumers.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 19, 2026

Status | ✅ no new diagnostics
History points | 1
Timestamp | 2026-01-19 08:00:53 UTC
Report artifact | autofix-report-pr-962
Remaining | 0
New | 0
No additional artifacts

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 19, 2026

Automated Status Summary

Head SHA: 435cc78
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 93.12%
Baseline 85.00%
Delta +8.12%
Minimum 70.00%
Status ✅ Pass

Top Coverage Hotspots (lowest coverage)

File Coverage Missing
src/cli_parser.py 81.8% 4
src/percentile_calculator.py 95.0% 1
src/aggregator.py 95.0% 2
src/__init__.py 100.0% 0
src/ndjson_parser.py 100.0% 0

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


Keepalive checklist

Scope

Integration Sync Drift Detected

The Workflows-Integration-Tests repo has drifted from the templates in this repo.

Check Details: Run #6

Required Actions

Context for Agent

Design Decisions & Constraints

  • Changes to Integration-Tests should be made here first, then synced

Related Issues/PRs

References

Tasks

  • 1. Review the drift in the workflow run summary
  • 2. Update templates in templates/integration-repo/ to match Integration-Tests changes
  • 3. OR update Integration-Tests to match templates (if templates are correct)
  • 4. Close this issue when resolved

Acceptance criteria

  • - Templates in this repo are the source of truth
  • - Changes to Integration-Tests should be made here first, then synced
  • - Use maint-65-sync-label-docs.yml pattern for automated sync

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 19, 2026

🤖 Keepalive Loop Status

PR #962 | 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/7 complete
Timeout 45 min (default)
Timeout usage 2m elapsed (4%, 43m remaining)
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

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 88b7e10dcb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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 a critical issue where the template autofix-versions.env file was outdated, causing the sync workflow to push stale tool versions to consumer repos. It also fixes a devcontainer PATH ordering issue that caused system-installed tools to take precedence over pip-installed versions. Additionally, it includes improvements to the issue parser for handling non-goals sections and subheadings.

Changes:

  • Updated BLACK_VERSION (25.12.0 → 26.1.0) and RUFF_VERSION (0.14.11 → 0.14.13) in the template to match the source
  • Fixed devcontainer PATH by prepending ~/.local/bin via containerEnv and removing stale system tools
  • Enhanced issue parsing to support non-goals sections and properly handle subheadings within sections

Reviewed changes

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

File Description
templates/consumer-repo/.github/workflows/autofix-versions.env Synced BLACK and RUFF versions from source to template to fix sync workflow
.devcontainer/devcontainer.json Added containerEnv to fix PATH ordering and remove stale system tools
scripts/langchain/followup_issue_generator.py Added non_goals section support and improved section parsing to handle subheadings

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

- Add autouse fixture to disable template sync in existing tests
- Add tests for template mismatch detection and sync functionality
- Fix heading regex to match ### (used by GitHub issue forms) not just # and ##
- Remove unused non_goals section from SECTION_ALIASES and SECTION_TITLES
  (was added but never extracted/stored, causing silent data loss)
Keep #{1,3} regex to support GitHub issue forms (###)
@stranske stranske temporarily deployed to agent-high-privilege January 19, 2026 07:59 — with GitHub Actions Inactive
@stranske stranske merged commit f800f7f into main Jan 19, 2026
99 of 100 checks passed
@stranske stranske deleted the fix/followup-issue-generator-agent-feedback branch January 19, 2026 08:01
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