Skip to content

check-agent-record is RED on main: .agents/issue-index.md lists #1649 twice, so agent-record fails on every PR #1733

Description

@localai-bot

scripts/check-agent-record.py is RED on main at 038ff61e5:

ERROR: .agents/issue-index.md: issue #1649 listed twice. Under `merge=union` a
duplicate is what two branches appending the same issue look like

so scripts/agent-preflight.sh reports 2 gate(s) failed: check-agent-record test_agent_record, and the agent-record CI job will fail on every pull request opened from this point until it is repaired.

Both rows are legitimate content, written by two different rows, which is why this is not a one-line delete.

This is #1619's mechanism arriving through the ordinary route rather than through a union-driver merge: two branches each appended a row for the same issue number, both appends are additions, git merge-tree calls the merge clean, and check-issue-index-append-only.py passes because a duplicate is an addition and that checker only collects removals. check-agent-record.py is the one that catches it, and it catches it after the fact.

The repair is measured and it is NOT blocked, which is worth stating because the recorded expectation was that it would be. Removing one of the two rows in a worktree and running both checkers gives agent record OK: ENGINE=170 MODEL=377 ... and OK: issue index append-only -- the same conditional .agents/specs/ltx25-phase-residue.md records for #1619, read the other way: the append-only checker diffs merge-base..HEAD, so a removal of a base-reachable duplicate does red it only when the duplicate is also reachable from the base of the branch making the repair.

What is NOT decided, and why this is filed rather than fixed in flow by the row that found it: the two rows carry different text owned by two different rows. Deleting either loses that row's record, and AGENTS.md says in as many words "Never edit a row and never delete one". The repair is either a merged single row carrying both accounts, or a decision by the two owning rows about which survives. Neither is in the authority of a row whose subject is the LTX-2.5 phase instrument.

Found by scripts/agent-preflight.sh while gating PR #1711, where it is an inherited red: git show origin/main:.agents/issue-index.md | grep -c '^| \[#1649\]' returns 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions