Skip to content

fix(roadmap): the hostile AGENTS.md test compares an unfilled prompt #3114

Closed

Description

@dan-petty

What happened

On main, tests/roadmap/test_roadmap_implement_step_rules.py::test_a_hostile_agents_md_is_data_and_never_changes_the_instructions fails. Run uv run pytest tests/roadmap/test_roadmap_implement_step_rules.py -k hostile -n0 on a clean checkout of main.

The result is assert (False, True, True) == (True, True, True). The test compares inputs.instructions with load_task_prompt("roadmap_implement_step.md"). Since #3111, build_step_inputs fills the two placeholders of the prompt with fill_prompt. So the instructions no longer equal the raw prompt.

What should happen

The test compares the instructions with fill_prompt(load_task_prompt(...)).

Acceptance criteria

  • The test passes on main.
  • The test still shows that a hostile AGENTS.md does not change the instructions.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 1, 2026
  2. dan-petty commented on Nov 1, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P1-High. A failing test on main blocks the CI suite and hides other regressions.
    • Value: Medium. The test guards a security property, but the fix restores an already-worn guard rather than adding new protection.
    • Effort: Low. The fix changes one comparison expression in a single test function.
    • Related: feat(roadmap): the implement step gives the agent AGENTS.md and the documents it routes to #3097, which asks for a different change. Both items concern the implement step prompt, but #3097 delivered the prompt-filling feature while the candidate fixes a test that still compares against the unfilled prompt.
  3. added
    priority/p1-high
    status/in-review
    and removed
    status/new
    on Nov 1, 2026
  4. removed
    status/in-review
    on Nov 1, 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

    effort/lowpriority/p1-highscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions