Skip to content

[Request]: audit cannot cover the ui extension's content-hashed asset mount, so ui-composed sites never report ready #816

Closed

Description

@jimhoyd

Problem or use case

This came up while building the cookie-jar work for #811, in PR #815.

With #811, the headless-auth-profile recipe's fixtures cover every /account/* and /api/profile/* method, with 0 failed and 0 unasserted cases. urlcode audit still does not report the project ready. Two method/route pairs stay uncovered: GET and HEAD on the ui extension's asset mount, /assets/ui/*.

  • That mount serves only content-hashed file names, so a fixture cannot know a valid path in advance.
  • A coveredElsewhere waiver needs another passing fixture on the same route.

As a result, any project that composes ui, meaning every auth, admin or forms site, is blocked from a ready audit by a mount it cannot write a fixture for.

Proposed behavior and alternatives

Choose one:

  • The ui extension exposes one stable, unhashed path under its mount, for example a small manifest, that fixtures and audit can hit.
  • Audit treats an extension's declared asset mount as covered by the extension's own contract. It would still check that an unknown path under the mount answers 404.
  • A documented, reviewed waiver form for extension asset mounts.

Evidence

Observed in recipes/headless-auth-profile. Its README documents that audit is not among its commands for this reason, and packages/auth/test/headless-auth-profile-recipe.test.ts asserts it. Not reproduced on other compositions.


Generated by Claude Code

Activity

  1. added
    enhancement
    ai-first
    extension
    on Sep 27, 2026
  2. jimhoyd commented on Sep 27, 2026

    @jimhoyd
    CollaboratorAuthor

    Decision (owner, 2026-09-27): option (b). Audit treats an extension's declared asset mount as covered by the extension's own contract. This is generic, with no ui special case in core. Audit still actively checks that an unknown path under the mount answers 404 with no cookie, and it reports those pairs under a distinct label.


    Generated by Claude Code

  3. added
    in-progress
    on Sep 27, 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

    ai-firstenhancementextensionin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions