Skip to content

[Bug]: After extensions add, AGENTS.md, README and the workflow still describe an empty project (no-active-routes, allow-empty-project) #1003

Closed

Description

@jimhoyd

From the fourth agent workflow trial (all three sites).

Runtime revision and environment

main 7454d3f2, core 0.6.5 packed with scripts/pack-addons.ts.

Minimal reproduction

urlcode init credits
cd credits && urlcode extensions add auth store
grep -n "no-active-routes" AGENTS.md README.md
grep -n "allow-empty-project" .github/workflows/urlcode.yml
cat app/tests/audit.json

Relevant output

AGENTS.md:62:With no active routes, this initial audit intentionally exits nonzero with `no-active-routes`. Add the first route and its fixture, then make the audit pass; remove `allow-empty-project: true` from the generated GitHub workflow at that point. The audit expects the route count committed in `app/tests/audit.json` (`{"expectRoutes": 0}`), ...
README.md:22:audit` intentionally reports `no-active-routes` until you add the first route.
.github/workflows/urlcode.yml:24:          allow-empty-project: true # remove after adding the first active route
{
  "expectRoutes": 1
}

After extensions add auth, /api/auth/* is an active route and app/tests/audit.json is 1 (extensions add moved it and said so). The site's AGENTS.md and README.md still describe an empty project, and the workflow still has allow-empty-project: true. An agent that follows AGENTS.md has to notice that "the first route" already arrived with the extension and remove the workflow flag itself.

Expected: extensions add (which already edits app/tests/audit.json) also removes allow-empty-project when the site gains its first active route, or the generated guidance says that an extension's mount counts as the first route and the {"expectRoutes": 0} example refers to a site with no extensions.

Not verified: what the GitHub action does with allow-empty-project: true when the audit is not ready for another reason (the trial ran no CI for the sites).

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

    bugdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions