Skip to content

fix: build Ring's image and serve its routes again - #130

Merged
kodiakhq[bot] merged 3 commits into
mainfrom
fix/docker-build
Nov 17, 2026
Merged

kodiakhq[bot] merged 3 commits into
mainfrom
fix/docker-build

Conversation

@RedStar071

@RedStar071 RedStar071 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

🔗 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 main would not answer if it did. Staryl and WolfStar read their per-guild limits from GET /guilds/:id.

📚 Description

Two fixes, one commit each:

  • The image build. tsconfig.base.json extends .stars/tsconfig.app.json, which stars prepare writes and git ignores. CI runs that step, but the Dockerfile did not, so prisma generate stopped at "File './.stars/tsconfig.app.json' not found" and every Continuous Delivery run failed. The builder stage now runs pnpm exec stars prepare first.
  • The routes. Every route sets its own 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 sets route and methods to what its file implied.

Checked by hand, with the image built locally and a throwaway Postgres:

Request Before After
GET / 404 200
GET /guilds/:id without a token 404 401
GET /guilds/:id with Staryl's token, a stored guild 404 200, its stored limits
GET /guilds/:id with Staryl's token, an unknown guild 404 200, the defaults
GET /guilds/:id with WolfStar's token 404 200, WolfStar's fields only
GET /experiments 404 500 locally, which had no Redis

🤖 AI disclosure: Wolfstar Agent Kit modified this description. AI open source policy.


Read this PR faster

RetriggerView in GreptileConfidence 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

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.
@coldtea-pr-lens

coldtea-pr-lens Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
  • Redraw · drawn at 7fbd7ef, the branch has moved on

Architecture

Walkthrough of Declare explicit paths on named API routes and prepare Docker build, in three steps

Read this PR faster

Inside the changed components — 2 views

Component view — Route definitions

Explicit paths and HTTP methods registered on named API endpoints

Architecture view of Component view — Route definitions in wolfstar-project/ring

Component view — Docker container build

Container image build step executing stars prepare

Architecture view of Component view — Docker container build in wolfstar-project/ring

Data flow

No data-flow sequence changed in this PR.


Review

✨ Nothing flagged · reviewed 7fbd7ef


Tip

The CLI's render reads .github/pr-lens.yml and applies your renames, exclusions and lane pins at draw time

🪧 More tips
  • Run npx skills add coldteadotai/pr-lens, then tell your coding agent: "Diagram the change you just made with PR Lens and attach it to the pull request."
  • Run npx @coldtea/pr-lens-cli analyze --base origin/main on a branch, then npx @coldtea/pr-lens-cli render .pr-lens/graph.json. Same lenses, your own model key, before the pull request exists
  • Click the link under each diagram to open it on a canvas you can zoom, pan and step through
  • The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change
  • Open a diagram on the canvas, then press W or click play to walk through the change one step at a time
  • Set github.comment.collapsed: true in .github/pr-lens.yml to fold the comment behind one View architecture… row. Drawing still runs as before
  • Set github.draw: on-demand in .github/pr-lens.yml and PR Lens stops drawing pull requests on its own. Comment @pr-lens draw on a pull request when you want that one drawn
  • Add .github/workflows/pr-lens.yml with coldteadotai/pr-lens/packages/action@v0 and your model provider's key as its api-key to run PR Lens from your own CI. Any /chat/completions endpoint works
  • After a push, tick Redraw to draw the latest commit
  • Switch GitHub to dark mode and the diagrams follow. The moving dots are this pull request's data in motion
  • Set github.description: false in .github/pr-lens.yml to stop PR Lens adding buttons to your PR descriptions

Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it.  Star PR Lens on GitHub

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 prepare after install and before prisma:generate, so the git-ignored .stars/tsconfig.app.json that tsconfig.base.json extends exists. The runner stage only copies dist and src/.env, so nothing at runtime depends on .stars.
  • Route registration: all 10 route files under src/routes/ now pass explicit route and methods. In Route's constructor, options.route bypasses file-name inference and methods come only from options, which explains the 404s. [param] segments are parsed as dynamic by isDynamicPart, so request.params.key, entityType, entityId and id still resolve. Each path and method matches its file name, and no route file was missed.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kodiakhq
kodiakhq Bot merged commit 66d7536 into main Nov 17, 2026
10 of 12 checks passed
@kodiakhq
kodiakhq Bot deleted the fix/docker-build branch November 17, 2026 17:35
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&amp;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&amp;next=%2Fwolfstar-project%2Fring%2Fpull%2F136&amp;utm_source=greptile_review&amp;utm_medium=github&amp;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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant