Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -34,7 +34,7 @@ Negative gap = module already past sprintTarget (graduation candidate).
| `apps/web/app/services/auth/**` | 78.7 | 85.8 | 82.0 | 60/50 | 90/85 | 11.3 | -0.8 | statements gap remains |
| `apps/web/app/utils/session.server.ts` | 90.0 | 88.6 | 87.5 | 60/50 | 95/90 | 5.0 | 1.4 | small gap |
| `apps/web/app/utils/db/permissions/**` | 15.9 | 60.9 | 7.8 | 50/40 | 90/80 | 74.1 | 19.1 | LARGE GAP |
| `apps/web/app/utils/stripe.server.ts` | 3.5 | 0.0 | 0.0 | 50/40 | 85/75 | 81.5 | 75.0 | LARGE GAP |
| `apps/web/app/utils/legacyProvider.server.ts` | 3.5 | 0.0 | 0.0 | 50/40 | 85/75 | 81.5 | 75.0 | LARGE GAP |
| `apps/web/app/utils/db/tenants.db.server.ts` | 2.9 | 0.0 | 0.0 | 50/40 | 95/90 | 92.1 | 90.0 | LARGE GAP |
## Standard-tier modules — gap to sprintTarget
@@ -46,7 +46,6 @@ Negative gap = already past sprintTarget.
| `apps/api/src` (overall) | 78.5 | 78.1 | 70/60 | none | - | - | - |
| `apps/worker/src/**` | 80.9 | 76.8 | 50/40 | none | - | - | passes |
| `apps/hocuspocus/src/**` | 58.9 | 90.7 | 40/30 | 70/60 | 11.1 | -30.7 | branches past |
| `apps/mobile/src/**` | 45.3 | 75.6 | 40/30 | 70/60 | 24.7 | -15.6 | branches past |
| `packages/ai/src/**` | 81.9 | 81.3 | 40/30 | 80/70 | -1.9 | -11.3 | GRADUATED |
| `packages/cli/src/**` | 65.9 | 79.1 | 40/30 | 80/70 | 14.1 | -9.1 | branches past |
| `packages/config/src/**` | 99.0 | 95.7 | 50/40 | 80/70 | -19.0 | -25.7 | GRADUATED |
@@ -92,8 +91,8 @@ Negative gap = already past sprintTarget.
separately and are out of scope for this baseline:
- `apps/web/app/application/ui/uiInventory.test.ts` (acknowledged in
HANDOFF as the allowed pre-existing failure)
- `apps/api/src/app.test.ts` — Stripe webhook integration test fails
when running outside the `TOOLCTRL_CORE_TESTS_ONLY=1` filter
- `apps/api/src/app.test.ts` — Legacy-Provider webhook integration test fails
when running outside the `HIVEGRID_CORE_TESTS_ONLY=1` filter
- `packages/config/src/env-examples.test.ts` — `.env.example` drift
against the cataloged env schema (plugin keys uncataloged)
- `packages/cli/src/commands/tenant/json-codec.test.ts` — JSON
@@ -57,7 +57,7 @@ the achievement in.
| `apps/web/app/services/auth/**` (raised) | 97.4 | 88.5 | 90/85 | **97/88** |
| `apps/web/app/utils/session.server.ts` (raised) | 100.0 | 99.1 | 95/90 | **99/98** |
| `apps/web/app/utils/auth/**` (raised) | 97.7 | 92.7 | 90/85 | **97/92** |
| `apps/web/app/utils/stripe.server.ts` (raised) | 95.4 | 91.1 | 85/75 | **95/90** |
| `apps/web/app/utils/legacyProvider.server.ts` (raised) | 95.4 | 91.1 | 85/75 | **95/90** |
| `apps/web/app/utils/db/tenants.db.server.ts` (raised) | 98.5 | 96.1 | 95/90 | **98/95** |
| `apps/web/app/utils/db/permissions/**` (raised) | 99.8 | 99.0 | 90/80 | **99/98** |
| `apps/api/src/billing/**` (raised) | 99.3 | 98.0 | 99/95 | **99/97** |
@@ -66,7 +66,6 @@ the achievement in.
| `packages/db/src/outbox*` (raised) | 93.0 | 88.6 | 90/80 | **92/88** |
| `packages/shared-store/**` (raised) | 91.3 | 90.7 | 90/80 | **91/90** |
| `packages/error-reporter/**` (raised) | 81.5 | 86.9 | 80/70 | **81/86** |
| `apps/mobile/src/**` (raised) | 79.2 | 80.2 | 70/60 | **79/79** |
| `apps/hocuspocus/src/**` (raised) | 89.2 | 92.9 | 70/60 | **88/90** |
| `packages/cli/src/**` (raised) | 80.4 | 83.6 | 80/70 | **80/83** |
| `packages/ui-app/src/**` (raised) | 95.1 | 73.7 | 70/60 | **94/73** |
@@ -105,7 +104,7 @@ the achievement in.
lost-pixel (#62). Do NOT force the active gate to 50/40 with shallow
unit tests; close that gap with the visual regression contract.
- **The latest full coverage run puts
`apps/web/app/utils/stripe.server.ts` past both sprint targets**. The
`apps/web/app/utils/legacyProvider.server.ts` past both sprint targets**. The
active gate is raised to 95/90 so future changes cannot drop back to the
old mock-only baseline.
- **The latest full coverage run graduates `packages/cli/src/**` at
@@ -135,12 +134,10 @@ the achievement in.
`packages/config/src/env-examples.test.ts`, and
`packages/cli/src/commands/tenant/json-codec.test.ts` (193 tests passing).
- **2026-05-29 closeout verification:** `pnpm run verify:test-coverage`
passes with the current gate set; #76 is closed in
`docs/improvement-plan/PROGRESS.md`.
passes with the current gate set; #76 is closed.
## References
- Spec: `docs/improvement-plan/10-compliance-polish/test-coverage.md`
- Policy: `docs/architecture/test-coverage.md`
- Baseline: `docs/testing/coverage-baseline-2026-05-25.md`
- Gate runner: `scripts/verify-test-coverage.mjs`
@@ -99,12 +99,12 @@ The workflow-execution + plugin tests were blocked by deployment config, not cod
test — do NOT un-gate it). native mode runs safe-core workflows (manual/log/if/switch/
httpRequest/email/rowGet…) directly in the worker via prisma. This made workflow execution
work (the outbox-drain canary goes green).
- **`PLUGIN_BINARY_BASE_PATH=/tmp/e2e-plugins`** on boilerplate-web + worker-general. The
- **`PLUGIN_BINARY_BASE_PATH=/tmp/e2e-plugins`** on hivegrid-web + worker-general. The
image default `/app/var/plugins` doesn't exist and is unwritable for uid 1000 `node`; the
seed writes the plugin bundle to `/tmp/e2e-plugins`. Set this so the web reads it. Made the
plugin settings iframe render.
- **boilerplate-web `custom_network_aliases=boilerplate-web`** so the cluster-internal URL
`http://boilerplate-web:8080` resolves (the public fqdn returns curl `000` from inside —
- **hivegrid-web `custom_network_aliases=hivegrid-web`** so the cluster-internal URL
`http://hivegrid-web:8080` resolves (the public fqdn returns curl `000` from inside —
hairpin NAT). (Only needed if you ever switch the worker back to http mode.)
### Test fixes (on main)
@@ -97,7 +97,7 @@ smoke runs.
`REQUIRE_E2E_READINESS=1` intentionally requires the mobile browser matrix, strict a11y mode, real log-only workflow-run opt-in, and every seeded path or credential consumed by the non-mutating strict specs: dashboard, account/profile settings, governance/policies, subscription, API overview/keys/docs/logs, portal analytics/settings, admin email sequences, plugin settings, read-only plugin credentials, workflow engine index, workflow builder/API-run/manual-run, webhook builder/manual-run, and the local plugin binary base path. That keeps staging/readiness runs from silently exercising only the desktop Chromium lane, skipping account/profile continuity, API docs/logs, portal management coverage, plugin permission coverage, workflow engine coverage, email-sequence dashboard coverage, or governance coverage, or ignoring moderate accessibility regressions. It does not require `E2E_ALLOW_WORKFLOW_WEBHOOK_RUN=1`; real webhook delivery stays operator-owned.
Subscription checkout success remains a separate strict opt-in because it
requires an externally acquired Stripe checkout session return path. Normal
requires an externally acquired Legacy-Provider checkout session return path. Normal
readiness runs stay non-mutating and do not require
`E2E_TENANT_SUBSCRIPTION_SUCCESS_PATH`. In an operator-approved lane that has a
valid success return URL, enable the manual `subscription_success` dispatch
@@ -114,8 +114,8 @@ page reload and a full logout plus re-login (a fresh appData load). Because
reconciliation is loader-side (pull-based), the reconciled state is read back
through the real subscription settings loader rather than the success-page
render alone, and the flow only navigates app routes (dashboard, settings,
login/logout) so it never triggers a real Stripe network call. This stays a
strict opt-in for the same external-blocker reason: it needs a real Stripe
login/logout) so it never triggers a real Legacy-Provider network call. This stays a
strict opt-in for the same external-blocker reason: it needs a real Legacy-Provider
checkout return path, so the lane skips when `E2E_REQUIRE_SUBSCRIPTION_SUCCESS`
is off and fails loudly when it is required but `E2E_TENANT_SUBSCRIPTION_SUCCESS_PATH`
or tenant credentials are missing.
@@ -124,7 +124,7 @@ The static a11y coverage gate also enforces named browser readiness surfaces,
not only raw file counts. `pnpm run verify:a11y-coverage` must keep explicit
coverage for registration-to-dashboard, plugin settings, tenant API docs/logs,
tenant API keys, audit logs, audit export, privacy self-service, tenant members,
tenant notification settings, tenant chatbot settings, AI usage, workflow
tenant notification settings, workflow
builder/run, portal management, admin email sequences, subscription smoke, authenticated mobile shell,
authenticated mobile locale persistence, public auth, and auth-locale flows. The required
files must contain the expected guard calls, not only exist: mobile/readiness
@@ -4,15 +4,15 @@
**Full "everything-on" chromium run against boiler (web image `944ef476`, freshly
reseeded): `203 passed / 0 failed / 5 skipped` (9.3m).** The 5 skips are correctly
operator-gated and justifiably impossible here: real-Stripe `subscription-success`
×3 (need an externally-acquired Stripe session), the registration email-verification
operator-gated and justifiably impossible here: real-Legacy-Provider `subscription-success`
×3 (need an externally-acquired Legacy-Provider session), the registration email-verification
inverse pair (env runs with `E2E_REGISTRATION_EXPECTS_EMAIL_VERIFICATION=0`), and the
`E2E_REQUIRE_PLUGIN_HOOK_AUDIT` hook-audit lane (operator-gated). A second clean
full run was used to confirm stability.
**The 12 remaining failures from the previous handoff, all fixed this session:**
1. **plugin cluster (49/120/173/201)** — cross-spec pollution. `plugin-hook-lifecycle`
now targets the dedicated, fully-provisioned `com.toolctrl.e2e-lifecycle` plugin
now targets the dedicated, fully-provisioned `com.hivegrid.e2e-lifecycle` plugin
instead of mutating the shared `e2e-readiness` plugin's audit-missing baseline.
2. **plugin-settings 244** — the grant/revoke + restore reloaded the page before the
in-flight single-fetch POST landed (stale read). Now waits for RR7 revalidation.
@@ -32,8 +32,8 @@ full run was used to confirm stability.
that api-docs was fine; only this test asserts `status < 500`). Fixed by gating the
editor behind a client mount (server + first client render emit an identical
placeholder → no hydration mismatch).
6. **portal-management** — operator chose to SHIP portals. Un-ignored the portal routes
(`app.$tenant/__portals/**`, `admin/portals.tsx`), gated the global enable behind
6. **portal-management** — operator chose to SHIP tenant portals. Un-ignored the tenant portal routes
(`app.$tenant/__portals/**`), gated the global enable behind
`PORTALS_ENABLED` (boilerplate default stays off; **boiler Coolify env set to
`true`**), seeded a minimal published Portal fixture (subdomain `e2e-readiness`),
and fixed 2 pre-existing type-drift errors the route-tree typecheck surfaced.
@@ -65,7 +65,7 @@ also deployed to boiler staging) · **Companion docs:** `docs/testing/e2e-readin
**Current state:** `main` HEAD `d8aaeacb`, deployed to boiler (web image `3cbb12d3`; the two
commits after it are test-only/docs and don't change the runtime image). Full chromium run, freshly
reseeded: **192 pass / 11 fail / 5 skip**. The original 26 failures are mostly fixed; the 11 are the
hard tail below. The 5 skips are correctly-gated (real-Stripe success + email-verification inverse).
hard tail below. The 5 skips are correctly-gated (real-Legacy-Provider success + email-verification inverse).
**What's already done (don't redo):** subscription/api-docs/golden-path/registration/workflow-builder-actions/
mobile-shell-drawer race+selector fixes; seed prunes leaked accounts; seed fully-provisions the
@@ -88,13 +88,13 @@ is now permitted (recipe in §4); you can also just psql the readiness plugin/gr
1. **[BIGGEST WIN — ~6 tests] Plugin cluster needs FIXTURE SEPARATION.** plugin-settings is **14/0 in
isolation** but fails ~5 in the serial run as CROSS-SPEC POLLUTION: `plugin-hook-lifecycle.*` sorts
first, mutates the SHARED `com.toolctrl.e2e-readiness` plugin (grants audit / deactivates), and the
first, mutates the SHARED `com.hivegrid.e2e-readiness` plugin (grants audit / deactivates), and the
"enabled + audit-missing" baseline is UI-unrestorable (revoke auto-disables; `plugins.tsx:415`
hides the enable form for disabled+missing-cap). **Fix:** seed a SECOND, fully-provisioned readiness
plugin WITH a settings UI (clone `buildE2eReadinessPluginManifest` → new id e.g.
`com.toolctrl.e2e-hooklifecycle`, grant ALL caps incl `hook:workflow.executed`), and repoint
`com.hivegrid.e2e-hooklifecycle`, grant ALL caps incl `hook:workflow.executed`), and repoint
`plugin-hook-lifecycle.mobile-a11y.spec.ts` (146/201) + the lifecycle/iframe tests at it; keep the
audit-missing `com.toolctrl.e2e-readiness` ONLY for the review/grant/deny tests (49/120/173/244).
audit-missing `com.hivegrid.e2e-readiness` ONLY for the review/grant/deny tests (49/120/173/244).
Then nothing mutates the audit-missing plugin's audit state. Also fix hook-lifecycle's
`isCapabilityGranted` — after grantAndEnable the grant lands server-side (DB-confirmed) but the
revoke-form detection misses it (inspect the rendered DOM for the audit revoke control).
@@ -189,7 +189,7 @@ restores it between runs), and `.check()` targets all review checkboxes. plugin-
⚠️ **BUT in the FULL serial run (CI), plugin-settings still shows ~5 failures — and they are
CROSS-SPEC POLLUTION, not the original cause.** `plugin-hook-lifecycle.*` sorts BEFORE
`plugin-settings.*`, so its mutating tests (146 grants audit; 201 grant/deactivate) run first on the
SHARED `com.toolctrl.e2e-readiness` plugin and leave it audit-GRANTED (or disabled) — then
SHARED `com.hivegrid.e2e-readiness` plugin and leave it audit-GRANTED (or disabled) — then
plugin-settings' review/grant tests (49/120/173) fail with "fixture has no missing capability" because
audit is no longer missing. The "enabled + audit-missing" baseline is UI-unrestorable (revoke
auto-disables), so NO per-test restore can undo this in a single seeded serial run. **The only clean
@@ -341,8 +341,8 @@ query to confirm account count/`defaultTenantId` was **blocked by the auto-mode
- Re-seed works and reports "E2E readiness fixtures seeded." (the trailing `EACCES … .env` is
harmless). Helper scripts left at `/tmp/e2e-reseed.sh`, `/tmp/e2e-run.sh` (full matrix),
`/tmp/e2e-run-chromium.sh` (fast triage) — they set the complete opt-in env.
- The 3 real-Stripe `subscription-success` tests (`subscription-smoke:198,260,603`) use
`skipWhenE2eOperatorOptInMissing` (never fail-closed) and need an externally-acquired Stripe
- The 3 real-Legacy-Provider `subscription-success` tests (`subscription-smoke:198,260,603`) use
`skipWhenE2eOperatorOptInMissing` (never fail-closed) and need an externally-acquired Legacy-Provider
session path — they are **separate from the 28** and correctly stay skipped here.
---
@@ -390,7 +390,7 @@ pass. The opt-in env vars (grep the specs for the exact set; current list):
| `E2E_ALLOW_REGISTRATION_CREATE=1` | registration creates a real account (2) | creates users/tenants in the DB |
| `E2E_ALLOW_ACCOUNT_CREATE=1` | account creation (1) | creates a tenant |
| `E2E_ALLOW_NO_TENANT_ACCOUNT_CREATE=1` | no-tenant account path (1) | creates a user |
| `E2E_ALLOW_SYNTHETIC_CHECKOUT_RETURN_SURFACE=1` | Stripe checkout return surface (2) | renders the post-checkout surface; check whether it needs Stripe test keys / a synthetic session |
| `E2E_ALLOW_SYNTHETIC_CHECKOUT_RETURN_SURFACE=1` | Legacy-Provider checkout return surface (2) | renders the post-checkout surface; check whether it needs Legacy-Provider test keys / a synthetic session |
| `E2E_REQUIRE_WORKFLOW_OUTBOX_DRAIN=1` | already set in your runs | needs the general worker draining the outbox |
| `REQUIRE_E2E_READINESS=1` | makes every fixture/opt-in guard FAIL instead of skip | the fail-closed mode you must satisfy |
@@ -498,7 +498,7 @@ cat "$d/error-context.md"
- SSH: `ssh boilerplate-staging` (root@46.225.5.93, key `~/.ssh/node1`).
- Web container name pattern: `mrf8lj...` (app UUID `mrf8lj70kmy9hqprx9dd6w7q`). General worker
(drains outbox + runs native executor): `wzshv933n2nhy0cvsxu8bqmm`.
- Gitea API: `https://git.tool-ctrl.de/api/v1`, repo `toolctrl-labs/boilerplate`, token
- Gitea API: `https://git.tool-ctrl.de/api/v1`, repo `toolctrl-labs/HiveGrid-Cloud`, token
`~/.cli-tokens/gitea` (the `gitea-ci-pat` lacks actions:read — use `gitea`).
**Re-seed (REQUIRED after every web deploy AND before every full run — `/tmp` is ephemeral):**