Skip to content

[Request]: make deterministic fixture suggestions and YAML change summaries reusable core authoring tools #722

Closed

Description

@jimhoyd

Problem or use case

urlcode-ai had to implement two generic, deterministic URLCode authoring helpers in application code: authoring-fixtures.mjs turns validated YAML into tests/requests.json candidates plus explicit review/gaps, and authoring-summary.mjs compares before/after YAML to surface route changes, capabilities, trusted/sandboxed code seams, and operator grants. Together they are roughly 700 lines with focused tests.

Neither helper requires the hosted service, user project access, a model, or an application-specific rule: both operate on supplied YAML and the runtime contract. The service is already importing core parser/validator APIs to implement them. This repeats the pattern that led to the MCP extension: a generally useful protocol/authoring concern first existed as application plumbing.

Proposed behavior and alternatives

  • Expose the deterministic engines from a public core authoring/agent-context API, with the exact fixture and summary result schemas documented and tested against the runtime.
  • Make them available through the local URLCode MCP/CLI tooling, preserving the local-only project validation and execution boundary.
  • Let hosted or custom services merely declare/wire handlers that call those public helpers; they should not need to copy runtime semantics.

Do not make fixture output a claim that a function-backed, proxy, extension, include, pattern-constrained, or external-binding route is tested. Preserve the current explicit review/gaps distinction and bounds.

Evidence

urlcode-ai is a production-shaped URLCode consumer. Its generic authoring-flow tools need this functionality even though the hosted surface never reads or executes a client project. The current implementation works but has to track core route semantics manually as the contract evolves.

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