Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
60 changes: 34 additions & 26 deletions .github/workflows/quality-gates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,50 @@ name: Quality Gates

on:
pull_request:
branches:
- main
branches: [main]
push:
branches:
- main
paths:
- "app/**"
- "scripts/ci-quality.sh"
- ".github/workflows/quality-gates.yml"
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: quality-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
quality:
runs-on: ubuntu-latest
timeout-minutes: 25
name: Web (Node 22)
runs-on: ubuntu-24.04
timeout-minutes: 15
defaults:
run:
working-directory: app
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
SKIP_CLERK_CI_BUILD: "1"

NEXT_PUBLIC_DATA_MODE: demo
NEXT_TELEMETRY_DISABLED: "1"
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "20"
node-version: "22"
cache: npm
cache-dependency-path: app/package-lock.json
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm test
- run: npm run build
- run: npm audit --omit=dev

- name: Run quality gate script
run: |
set -euo pipefail
export NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:-pk_test_ci_placeholder}"
export CLERK_SECRET_KEY="${CLERK_SECRET_KEY:-sk_test_ci_placeholder}"
./scripts/ci-quality.sh
sql:
name: SQL contract
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Use runner PostgreSQL binaries
run: echo "$(pg_config --bindir)" >> "$GITHUB_PATH"
- name: Check isolated schema, RLS, RPCs and concurrency
run: python3 supabase/tests/contract.py
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,11 @@ screenshots/
# "Reply All" bei einer Firmen-E-Mail.
# Man lernt es nur einmal auf die harte Tour.
# ==========================================

# v2 local validation artifacts and HTTPS development certificates
output/
.playwright-cli/
app/certificates/

# Preserve this historical report locally; it contains credential-like literals.
/_legacy_v1/Agents/BUILDER_deployment-report.md
12 changes: 12 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Humans Only 2.0 — project constitution

- The binding product/architecture source is MASTERPLAN_2027.md and the user’s reboot request.
- Work in this local workspace, connected to `cubetribe/HumansOnly` with base branch `main`. Never commit, push, deploy or mutate a remote database without explicit authorization. Use a topic branch and PR for releases; do not rewrite shared history.
- `_legacy_v1/` is a preserved, read-only archive of v1.18.6. Never remove its files or apply its old CI/deployment scripts to v2. `.env_new_Server` remains a private infrastructure reference; never copy its credentials into the new app.
- New runtime lives in `app/`: Next.js 15 App Router, strict TypeScript, npm, Tailwind, Radix, Supabase. No MUI, Prisma, Clerk or Turnstile.
- `supabase/` owns six core tables, RLS, storage policies and authoritative business RPCs. Web and Flutter share that contract. Demo data is explicitly local and cannot silently replace a failing production backend.
- VCG source assets are copied from the user-authorized neighboring project. Preserve originals under `app/app/styles/`, `app/app/fonts/`, and `app/public/images/karl-dieter/`.
- Use one implementation writer. Independent read-only research and validation agents may work in parallel with bounded ownership. Do not delegate further.
- Required checks in `app/`: `npm run lint`, `npm run typecheck`, `npm test`, `npm run build`; verify key flows on desktop/mobile and SQL behavior with an isolated database when available.
- Release law: the old manual v1 changelog is archived unchanged. V2 uses `app/package.json` as its version source, initially 2.0.0. Releases are manual: dated notes in `docs/RELEASE_<version>.md`, a matching `v<version>` tag and GitHub Release after the PR's web/SQL quality checks pass. No automatic deployment or auto-release workflow exists. Record evidence/limitations in `docs/VALIDATION.md`; the v2 reboot's release impact is major. Future version changes require a release request, not automatic changelog edits.
- Keep configuration in `app/lib/config.ts` and `.env.example`; public values only in browser bundles. No service-role key is needed by the app.
Loading
Loading