- 19.6.1-VALIDATION.md: per-task map green, Wave 0 ticked with the files as built, wave_0_complete true - deferred-items.md: lagoon's model validator skips string min/max; granted does not expand a held leading wildcard
7.7 KiB
7.7 KiB
phase, slug, status, nyquist_compliant, wave_0_complete, created
| phase | slug | status | nyquist_compliant | wave_0_complete | created |
|---|---|---|---|---|---|
| 19.6.1 | backend-administrators-screen | draft | false | true | 2026-10-21 |
Phase 19.6.1 — Validation Strategy
Per-phase validation contract for feedback sampling during execution.
Test Infrastructure
| Property | Value |
|---|---|
| Framework | Go testing; testcontainers-go Postgres via adminGorm(t) (skips under -short) |
| Config file | none — package helpers adminGorm, adminHandler, insertAdmin in modules/cabana/auth_test.go |
| Quick run command | go vet ./modules/cabana ./modules/pact && go test -short ./modules/cabana ./modules/pact ./modules/surf |
| Full suite command | go vet ./... && go test ./... && (cd examples/hello && go test ./...) && go test ./cmd/summer -run TestDocsTree && go run ./cmd/summer docs:build --check |
| Estimated runtime | ~180 seconds (Docker-backed) |
Sampling Rate
- After every task commit: Run the quick run command
- After every plan wave:
go test ./modules/cabana ./modules/surf(Docker) +cd examples/hello && go test ./... - Before
/msd-verify-work: Full suite must be green - Max feedback latency: 180 seconds
Per-Task Verification Map
Filled by the planner per task; the decision → test map lives in 19.6.1-RESEARCH.md § Validation Architecture.
| Task ID | Plan | Wave | Requirement | Threat Ref | Secure Behavior | Test Type | Automated Command | File Exists | Status |
|---|---|---|---|---|---|---|---|---|---|
| 19.6.1-01-01 | 01 | 1 | D-01, D-02, D-04, D-14, D-15 | T-19.6.1-09, -10, -14 | seam merged before permission validation; contributed actions behind target + own permissions; no default role grant | smoke (-short + Postgres) | go test -short -run '^TestBackendScreensSmoke$' ./modules/cabana; go test -run '^TestBackendScreensPostgresSmoke$' ./modules/cabana; go -C examples/hello test ./... |
✅ | ✅ green |
| 19.6.1-01-02 | 01 | 1 | D-03, D-05..D-08, D-11, D-12, D-19, D-20 | T-19.6.1-01..-05, -07, -08, -11, -13, -17 | save-path rules in the save tx; is_superuser projected; hidden for non-superusers | smoke (Postgres) | go test -run '^TestAdministratorsFormSmoke$' ./modules/cabana |
✅ | ✅ green |
| 19.6.1-01-03 | 01 | 1 | D-08, D-09, D-10, D-12, D-19 | T-19.6.1-05, -06, -11, -12 | last-superuser guard under advisory lock; soft delete only; revocation | smoke (Postgres) | go test -run '^TestAdministratorsLifecycleSmoke$' ./modules/cabana |
✅ | ✅ green |
| 19.6.1-01-04 | 01 | 1 | D-02, D-07, D-16, D-17 | T-19.6.1-04, -15 | roles ceiling; system role code locked; in-use delete refused | smoke (Postgres) | go test -run '^TestRolesSmoke$' ./modules/cabana; scripts/check-admin-openapi.sh --check |
✅ | ✅ green |
| 19.6.1-02-01 | 02 | 2 | D-21 (D-16, D-08) | T-19.6.1-19, -20, -22, -23 | record-locked codes kept server-side; changed value 403 | smoke (-short) + vitest | go test -short -run '^TestPermissionRecordLocksSmoke$' ./modules/cabana; scripts/check-admin-openapi.sh --check; npm --prefix admin run test |
✅ | ✅ green |
| 19.6.1-02-02 | 02 | 2 | D-21 (D-06) | T-19.6.1-18, -21, -22, -23 | trigger boot errors; disabled field not sent; dist matches build | smoke (-short) + vitest + dist | go test -short -run '^TestFieldTriggerSmoke$' ./modules/cabana; npm --prefix admin run test; scripts/check-admin-dist.sh |
✅ | ✅ green |
| 19.6.1-03-01 | 03 | 3 | D-05, D-18 | T-19.6.1-24, -26 | harness + first rule over HTTP | Postgres | go test -run '^TestAdministratorsSuperuserFlag$' ./modules/cabana |
✅ | ✅ green |
| 19.6.1-03-02 | 03 | 3 | D-03, D-06, D-07, D-08, D-11, D-19, D-20 | T-19.6.1-24 | each save-path rule has a failing-without-rule test | unit (-short) + Postgres | go test -short -run '^TestRoleCeiling$' ./modules/cabana; go test -run '^TestAdministrators(SuperuserHidden|SuperuserProjected|PermissionCeiling|RoleCeiling|SelfEdit|PasswordAndIdentity|Outranked|OwnPassword)$' ./modules/cabana |
✅ | ✅ green |
| 19.6.1-03-03 | 03 | 3 | D-04, D-09, D-10, D-12, D-14, D-16, D-17 | T-19.6.1-24, -25, -26 | held-lock race on 5 paths; revocation; seam boot and run; roles | unit (-short) + Postgres | go test -short -run '^(TestActionExtensionBoot|TestBackendScreensActivation)$' ./modules/cabana; go test -run '^(TestAdministratorsLastSuperuser|TestAdministratorsLastSuperuserConcurrent|TestAdministratorsLifecycle|TestAdministratorsRevocation|TestActionExtensionRun|TestRolesLifecycle|TestRolesPermissionCeiling)$' ./modules/cabana |
✅ | ✅ green |
| 19.6.1-03-04 | 03 | 3 | D-21, D-18 | T-19.6.1-24, -27 | D-21 Go + SPA tests incl. backstops; fail-closed gate | unit + vitest + browser + gate | go test -short -run '^(TestFieldTriggerBoot|TestPermissionRecordLocks)$' ./modules/cabana; go test -run '^TestRolesCodeDeclaredLocks$' ./modules/cabana; npm --prefix admin run test; npm --prefix admin run test:browser; bash scripts/check-phase19.6.1.sh --all |
✅ | ✅ green |
Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky
Wave 0 Requirements
Ticked with the files as built (Plan 03 moved the screens harness out of backend_screens_smoke_test.go into administrators_harness_test.go).
modules/cabana/backend_screens_test.go— activation and schema (-short;TestBackendScreensSmokein plan 01,TestBackendScreensActivationin plan 03)modules/cabana/backend_screens_smoke_test.go— plan 01 Postgres smokesmodules/cabana/record_locks_smoke_test.go,modules/cabana/field_trigger_smoke_test.go— plan 02 smokes (-short)modules/cabana/action_extensions_test.go(TestActionExtensionBoot,-short) andmodules/cabana/action_extensions_postgres_test.go(TestActionExtensionRun) — D-14modules/cabana/backend_privileges_internal_test.go—TestRoleCeilingagainstgrantsCovered(package cabana)modules/cabana/administrators_harness_test.go—newScreensEnv,seedAdmin,seedRole,login,isolateSuperusers, row snapshotsmodules/cabana/administrators_postgres_test.go— D-03, D-05..D-08, D-11, D-19, D-20 at HTTP levelmodules/cabana/administrators_lifecycle_postgres_test.go— D-09 held-lock race on five paths, the unsynchronized rounds, D-10, D-12modules/cabana/roles_postgres_test.go— D-07 (roles), D-16, D-17, D-21 code-declared locksmodules/cabana/field_trigger_test.go,modules/cabana/record_locks_test.go— D-21 (-short)admin/tests/form/trigger.test.ts+ additions to PermissionEditorField, formState, FormView, PreviewView tests;admin/tests/browser/record-actions-wrap.test.tsscripts/check-phase19.6.1.sh— phase gate (--all: self-test, go, admin, docs, sc1, docker)modules/cabana/export_test.go—SuperuserLockKey
Manual-Only Verifications
| Behavior | Requirement | Why Manual | Test Instructions |
|---|---|---|---|
| Administrators/Roles screens render and save in the admin SPA | SC-1 | visual SPA check | log in as superuser and as a limited admin, open Settings → Administrators / Roles, create, edit, deactivate |
Validation Sign-Off
- All tasks have
<automated>verify or Wave 0 dependencies - Sampling continuity: no 3 consecutive tasks without automated verify
- Wave 0 covers all MISSING references
- No watch-mode flags
- Feedback latency < 180s
nyquist_compliant: trueset in frontmatter
Approval: pending