Skip to content

[Request]: fixture suggestions and change summaries should follow project includes #733

Closed

Description

@jimhoyd

Problem or use case

#722 adds suggestFixtures / urlcode fixtures suggest / MCP suggest_fixtures and summarizeYamlChange / urlcode diff / MCP summarize_yaml_change. By design they read only the supplied YAML text: they never read includes, so every route defined in an include file is reported as an include gap. A project organised mostly in include files (e.g. examples/cookbook) therefore gets almost no fixtures, and a change summary misses route changes made inside includes.

Proposed behavior and alternatives

  • In project mode (CLI --project, MCP without an explicit yaml argument), also read the root-confined include files the loader already resolves, using the same containment rules as loadDocument. Keep the text-only mode for callers that pass YAML strings, such as hosted services that never see client files.
  • For diff, accept two project directories (or a git revision) so include changes are compared too.
  • Keep the existing bounds and the review/gaps distinction; still never execute project code.

Found while implementing #722; not yet designed.

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