Repository navigation
feat(examples): six deployable example apps and a Deploy with Reliant Forge badge - #2787
reliant-01 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
review:changes
Lane: HIGH (no model review: the rollout pre-check stopped it before the first pass; deterministic checks ran).
HIGH: auth (examples/nextjs-static-go-api/scaffold.sh); prod-deploy (examples/express-postgres/deploy/kcl/prod/main.k, examples/express-postgres/deploy/kcl/staging/main.k, …)
No model reviewed this head: the PR body has no Post-merge check and no Rollback section, which every HIGH-risk PR needs, so the review stopped before its first pass. The deterministic checks ran; everything they found is below.
- blocker [B1]
:0— The PR body has no Post-merge check and no Rollback section. A HIGH-risk PR names, for every effect only production or a write shows, how it is checked after the deploy (Post-merge check) and how it is undone if that check fails (Rollback); the review blocks on any effect without them, so no model reviewed this head (rollout-sections) Fix: Add a "## Post-merge check" and a "## Rollback" section to the PR body ("none: " is an answer when nothing is live-only), then push, or reply citing this blocker's id to have this same head reviewed.
Generated, reviewed through their inputs (not line by line): examples/express-postgres/package-lock.json, examples/llm-app/package-lock.json, examples/vite-spa/package-lock.json
Fix the blockers and push: the push is reviewed again. (pr-fix takes over if nobody does.)
Reviewed 0b07a036293958717f6c92f2db05cc67d26fa3af.
Posted by Reliant for PR pipeline · pr-review · opened, an automation of @reliant-01.
pr-fix: the PR body now has its rollout sections; asking for a re-review of this head[B1]: pr-fix added the missing No code changed, so nothing is pushed: pr-review re-reviews |
There was a problem hiding this comment.
review:changes
Lane: HIGH (Sol pass + second pass in this run).
HIGH: auth (examples/nextjs-static-go-api/scaffold.sh); prod-deploy (examples/express-postgres/deploy/kcl/prod/main.k, examples/express-postgres/deploy/kcl/staging/main.k, …)
Read all hand-written changed hunks and reviewed generated lockfiles through their manifests. Found an unauthenticated billed LLM endpoint, missing dev migrations, and unhandled database failures. RC-04/08/09/13 introduce no additional findings; RC-10 is implicated by the broken ordinary dev startup.
- blocker [B1]
examples/llm-app/server.js:41— Every unauthenticated request to the public root invokes the organization's billed gateway once a key is available. Anyone discovering the deployed URL can consume the environment's budget and deny legitimate use. The gateway authenticates the app, not the HTTP visitor. No authorization or abuse-denial test accompanies this new billed entry point. Fix: Authenticate and authorize callers before invoking the gateway, fail closed when credentials are missing, and add tests proving anonymous/invalid requests make zero model calls and authorized requests work. - blocker [B2]
examples/fastapi-postgres/deploy/kcl/dev/main.k:20— The dev bundle selects only db and api. The compose api depends only on database health, not migration completion, and the table is created exclusively by the migrate service. Thus the documented freshforge env up devstarts an API whose GET/POST /notes fail because the notes table does not exist (RC-10 ordinary-case check). Fix: Include the migration job in dev startup with completion ordering before the API, or make compose api depend on successful migrate completion. Add a fresh-database startup/CRUD regression test. - blocker [B3]
examples/express-postgres/server.js:15— Both Express 4 async handlers await database queries without catching failures or forwarding them to next(). Express 4 does not handle rejected handler promises; Node 22's default unhandled-rejection behavior terminates the process. A transient database failure, including a readiness probe during an outage, crashes the service rather than returning an HTTP error. Fix: Catch rejected queries and forward errors to an error handler that returns a sanitized 503/500. Add tests that reject each query and prove an error response without an unhandled rejection or process exit.
Earlier blockers, at this head:
- R1.B1 fixed — The current PR body contains Post-merge check and Rollback sections; example READMEs also describe endpoint checks.
Generated, reviewed through their inputs (not line by line): examples/express-postgres/package-lock.json, examples/llm-app/package-lock.json, examples/vite-spa/package-lock.json
Not verified (non-blocking):
- high_risk: Actual unclaimed frontend sandbox/CORS behavior was not established by the supplied source; the PR explicitly leaves that behavior unverified.
- high_risk: The LLM gateway URL/model and automatic credential refresh after claiming were not confirmed against their deciding renderer/operator helpers. Supplied claim lifecycle files do not establish those contracts.
Post-merge verification (only a live environment shows these; not review blockers, each verified by the plan named):
- Example deployment and external LLM behavior — Use the example README health/CRUD/static-route checks and require a real haiku for claimed LLM access; run the PR's post-release obs check.; rollback: PR body specifies reverting or fixing this PR through a release:asap fix-forward PR.
Fix the blockers and push: the push is reviewed again. (pr-fix takes over if nobody does.)
Evidence re-review 1 of at most 2 at this same head: nothing was pushed since its verdict; a reply citing its blockers (reliant-labs[bot] at 2026-11-25T08:14:50Z) was read and judged. This review is now the head's verdict.
Reviewed 0b07a036293958717f6c92f2db05cc67d26fa3af.
Posted by Reliant for PR pipeline · pr-review · queued, an automation of @reliant-01.
GTM phase 2 (new.txt F39 and section 4 "GitHub"):
examples/held only a README.Added
Six small example apps under
examples/, each with a README (what it shows, prerequisites, run locally, deploy command, unclaimed vs claimed limits, verification, what was not verified):vite-spa(static, adopted with--kind site): really deployed with--claimable;/and/aboutreturned 200.fastapi-postgres(Dockerfile + compose,--kind app --claimable): really deployed with--claimable; rollout succeeded,/healthz,POST /notes,GET /notesworked on the live URL.express-postgres: docker build + migrate +/healthzagainst postgres:16;env render prod;--claimable --plan-onlyfits. Not deployed.llm-app: stock OpenAI SDK throughforge.LLM/forge.llm_env(); answers 503 without a key. Docker build, render,--plan-onlyonly. The README says the model call works only after claim or sign-in (an unclaimed service has no outbound internet).go-forge-crudandnextjs-static-go-api: ascaffold.shand README, not a committed tree (generated projects are ~170 and ~440 files, 2.2 and 4.5 MB, and a nested go.mod/gen would land inside forge's tree). Scripts were run end to end;go build,npm run buildand--plan-onlypass.examples/README.md.docs/assets/deploy-with-reliant-forge.svg(rendered in headless Chrome) anddocs/deploy-badge.md(paste-ready markdown linking https://docs.reliantlabs.io/forge/deploy-without-an-account, the raw.githubusercontent.com URL, a shields.io alternative, the--claimable/--plan-onlycommands). It says plainly that GitHub cannot run a one-click deploy.Committed example
forge.yamlfiles are pinned toforge_version: v1.11.0. No claim links, deploy URLs or.forge/state are in any file.CI/guards
No guard changes. With the examples in place:
go build ./...,go vet ./internal/ciguard/, and full-mode tests of ciguard, deadcodeguard, fmtguard, mockheaderguard, modguard, pkgguard, procguard, removalguard, repowalk, trimpathguard, vacuousguard, writeguard, envdoc, goexec, tierguard and the templates retired-claims/drift tests pass.forge ci validate-kclreads only the rootdeploy/kcl; the npm license check is given an explicitweb-runtimepath. Formatted withtask fmt:web. gitleaks and pre-commit were not installed here, so not run.Findings (see the PR conversation)
forge scaffoldhardcodesauth_required: trueon CRUD rpcs (internal/cli/scaffold/entity.go:388-391), so an--auth-mode noneproject's generated pages return 401 (report 60db3871).nextjs-static-go-api/scaffold.shworks around it.project newinside Reliant pins an unpublished forge version intoforge.yaml;--kind sitewrites AGENTS.md / a nested pre-commit config /harness: reliantfrom$RELIANT_AGENT_SHELL;--kind appdoes not detect an LLM SDK; a Go project made without--claimableis refused on a claimable deploy;--plan-onlysays "one static site" for a backend-only env;--claimableis refused when signed in.Not verified
A real LLM response from
llm-app;forge env up devfor any example; real deploys of express, llm and the two Go apps; whethernextjs-static-go-api's frontend works on an unclaimed preview (the sandbox/CORS issue in the GTM briefing).PR title is the changelog entry; CHANGELOG.md untouched. Does not touch README.md.
Post-merge check
after the release that carries it promotes,
reliant forge obs check prod --wait --jsonexits 0Rollback
fix forward: revert this PR on main (or fix it) in a PR labelled
release:asap, which ships the next set; we roll forward, never back