Skip to content

Resolve merge conflicts in generated files by regenerating them #1523

Closed

Description

@JacobStephens2

This was generated by AI during triage.

From the 2026-10-28 retro of thirdshift's own runs.

Conflict Repairs are now the most common kind of Repair: 57 since 2026-10-15, against 49 CI-red Repairs. Most come from sibling Tickets merging into their Spec branch. Generated files are among the conflicting files: site/docs/index.html, generated from docs/guide.md (edited in 202 commits since 2026-10-15), and the prompts output generated from source. A conflict in a generated file has one right answer: regenerate it from the merged sources. The thirdshift-resolving-merge-conflicts Factory skill says to resolve each hunk by intent, and says nothing about generated files.

Activity

  1. added
    enhancement
    needs-triage
    on Oct 28, 2026
  2. JacobStephens2 commented on Oct 28, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: enhancement
    Summary: When a merge conflicts in a generated file, the conflict Repair regenerates it from the merged sources instead of resolving its hunks.

    Current behavior:
    The thirdshift-resolving-merge-conflicts Factory skill treats every conflicting file the same way: find each change's intent, then resolve hunk by hunk. Generated output such as this repository's user-manual HTML and prompts pages gets hand-merged, then has to be checked against its sources.

    Desired behavior:

    • The skill tells the session to recognize a generated file: the repository documents a command that produces it, or the file says it's generated.
    • For such a file, the session first resolves the sources it comes from, then reruns the repository's documented generator, and stages the result. It never hand-edits generated hunks.
    • The wording stays generic, because this skill ships to every repository thirdshift works on. Nothing in it names this repository's files.
    • This repository's own instructions name its generators where a session resolving a conflict will find them. AGENTS.md already gives the prompts command (UPDATE_PROMPTS=1 cargo test prompts_page); the user manual's command (npm run docs --prefix site) is in site/tests/README.md.

    Key interfaces:

    • The skill's source and the generated prompts output, regenerated with UPDATE_PROMPTS=1 cargo test prompts_page.

    Acceptance criteria:

    • The resolving-merge-conflicts skill has a step for generated files: resolve the sources, then regenerate, never hand-merge.
    • The skill names no file specific to this repository.
    • A session in this repository can find both generator commands from AGENTS.md, directly or by one pointer.
    • cargo test prompts_page passes, with the regenerated output committed.

    Out of scope:

    • Changing how thirdshift merges branches, or adding git merge drivers.
    • Reducing how often Spec Tickets touch the same pages (separate issue).
  3. added
    ready-for-agent
    in-progress
    and removed
    needs-triage
    ready-for-agent
    on Oct 28, 2026
  4. removed
    in-progress
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions