Repository navigation
fix: build Ring's image and serve its routes again - #130
Merged
Merged
Conversation
tsconfig.base.json extends .stars/tsconfig.app.json, which stars prepare writes and git ignores. The image never ran it, so prisma generate failed and no image was published since 23 October.
Every route sets its own name, and plugin-api takes the path and the method of a named route from its options, not from its file name. With none given, no route answered: GET /guilds/:id, which Staryl and WolfStar read their limits from, returned 404.
Architecture Inside the changed components — 2 viewsComponent view — Route definitions Explicit paths and HTTP methods registered on named API endpoints
Component view — Docker container build Container image build step executing stars prepare
Data flow No data-flow sequence changed in this PR. Review ✨ Nothing flagged · reviewed Tip The CLI's 🪧 More tips
Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes: the full diff of both commits, checked against the installed @wolfstar/plugin-api 2.2.0 source.
- Docker build: the builder stage now runs
pnpm exec stars prepareafter install and beforeprisma:generate, so the git-ignored.stars/tsconfig.app.jsonthattsconfig.base.jsonextends exists. The runner stage only copiesdistandsrc/.env, so nothing at runtime depends on.stars. - Route registration: all 10 route files under
src/routes/now pass explicitrouteandmethods. InRoute's constructor,options.routebypasses file-name inference andmethodscome only from options, which explains the 404s.[param]segments are parsed as dynamic byisDynamicPart, sorequest.params.key,entityType,entityIdandidstill resolve. Each path and method matches its file name, and no route file was missed.
claude-sonnet-5-5 | 𝕏
This was referenced Nov 17, 2026
Merged
RedStar071
added a commit
that referenced
this pull request
Nov 23, 2026
### Context Weekly AGENTS.md review of PRs merged into `main` in the last 7 days (#128–#131). ### What changed and why - **`.github/copilot-instructions.md`** — the "Internal API" key pattern and "API Route Structure" section said plugin-api infers a route's path and method from its file location. That's no longer accurate (if it ever was): #130 found all ten existing routes were missing explicit `route`/`methods` options and were 404ing in production as a result. Corrected the description, the code example, and added a second "non-obvious gotcha" entry for it, since this is exactly the kind of silent failure the existing gotcha about route `name` collisions already warns about. - Noted that the Dockerfile's builder stage also runs `pnpm exec stars prepare` before `prisma:generate`/`build` now (#130), next to the existing Troubleshooting entry about that same step in CI. - Noted the new `semantic-pull-requests.yml` workflow (#128): PR titles follow Conventional Commits with a lowercase subject, and CI posts/removes a sticky comment on failures. Added a one-line mention to both `AGENTS.md`'s quick reference and `copilot-instructions.md`'s commit message section. #129 (raising Staryl's free limits, adding a Reddit limit) and #131 (dropping an unused Kodiak config block) didn't need any documentation changes — the existing `limits.ts` file reference already covers #129, and #131 is internal CI config with no agent-facing convention. --- _Generated by [Claude Code](https://claude.ai/code)_ <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=116062713&sig=607b14af4cc34dd06434b097ba641b2e1f1ae80f4fc53e0f305f1670fcc962a3"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=wolfstar-project&next=%2Fwolfstar-project%2Fring%2Fpull%2F136&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2> <!-- greptile-impact-verdict --> This documentation-only PR appears safe to merge. <!-- greptile_confidence_score:5 --> <sub>Reviews (1) · Last reviewed commit: ["docs: update AGENTS.md to reflect recent..."](3446e3b) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=wolfstar-project/ring)</sub> <!-- /greptile_comment -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🔗 Linked issue
No issue. Found while adding Staryl's limits (#129), which need Ring deployed and answering.
🧭 Context
Ring has not shipped since 23 October, and the code on
mainwould not answer if it did. Staryl and WolfStar read their per-guild limits fromGET /guilds/:id.📚 Description
Two fixes, one commit each:
tsconfig.base.jsonextends.stars/tsconfig.app.json, whichstars preparewrites and git ignores. CI runs that step, but the Dockerfile did not, soprisma generatestopped at "File './.stars/tsconfig.app.json' not found" and every Continuous Delivery run failed. The builder stage now runspnpm exec stars preparefirst.name. plugin-api takes the path and the method of a named route from its options, not from its file name. With none given, all ten routes matched nothing and answered 404. Each now setsrouteandmethodsto what its file implied.Checked by hand, with the image built locally and a throwaway Postgres:
GET /GET /guilds/:idwithout a tokenGET /guilds/:idwith Staryl's token, a stored guildGET /guilds/:idwith Staryl's token, an unknown guildGET /guilds/:idwith WolfStar's tokenGET /experiments

Confidence Score: 5/5
The PR appears safe to merge; no actionable defects were found.Reviews (2) · Last reviewed commit: "Merge branch 'main' into fix/docker-buil..." · Reviewed by Greptile