Review security, deployment and maintenance evidence
Review release evidence, not just the demo
The capstone has three trust boundaries: browser input, the API session and the data store. Threats include forged roles, stale writes, invalid values, disclosure in logs and malicious dependencies. Keep server authorization independent of the UI, validate data, send only necessary fields and use conditional writes. The offline model does not exercise cookies, transport security, CSRF, a real database or a session provider. In production use a reviewed session strategy, appropriate CSRF protections, TLS and monitored server-side authorization.
export const requiredGates=['dependencies','typecheck','unit','component','browser','accessibility','security','build','rollback'];export function releaseBlockers(evidence) { return requiredGates.filter(gate=>evidence[gate]?.status!=='PASS' || !evidence[gate]?.artifact);}The gate checks that an artifact is recorded for each passed category; it cannot establish that the artifact is authentic or the tests adequate. A human reviewer verifies each result against the release revision. A failing or missing gate blocks promotion. Do not mark the capstone production-ready on the basis of Node tests.
Test the user-visible contract
import React from 'react';import {render,screen} from '@testing-library/react';import userEvent from '@testing-library/user-event';import {MemoryRouter} from 'react-router';import {test,expect} from 'vitest';import App from './App.jsx';import {createInventoryApi} from './api.mjs';import {actors} from './contracts.mjs';test('viewer can filter but cannot adjust',async()=>{ const user=userEvent.setup(); render(<MemoryRouter><App actor={actors.viewer} api={createInventoryApi(actors.viewer)}/></MemoryRouter>); await screen.findByRole('rowheader',{name:'Drill'}); await user.type(screen.getByLabelText('Filter equipment'),'saw'); expect(screen.queryByRole('rowheader',{name:'Drill'})).toBeNull(); expect(screen.getByRole('rowheader',{name:'Saw'})).toBeTruthy(); expect(screen.queryByRole('button',{name:'Save quantity'})).toBeNull();});The component test uses a memory router and semantic queries. It needs approved React Testing Library, Vitest, user-event and DOM environment packages. Run it independently from Node tests. A direct API authorization test remains mandatory because a hidden button is not a security control.
import {test,expect} from '@playwright/test';test('manager adjusts stock and filters the table',async({page})=>{ await page.goto('/'); await expect(page.getByRole('rowheader',{name:'Drill'})).toBeVisible(); await page.getByLabel('New quantity').fill('7'); await page.getByRole('button',{name:'Save quantity'}).click(); await expect(page.getByRole('status')).toHaveText('Saved'); await expect(page.getByRole('row').filter({hasText:'Drill'})).toContainText('7'); await page.getByLabel('Filter equipment').fill('saw'); await expect(page.getByRole('rowheader',{name:'Drill'})).toHaveCount(0);});The Playwright test targets the manager-only local fixture; configure a reviewed loopback server and a fresh browser context. Add viewer denial, failure/retry, keyboard focus and mobile reflow checks. Use the Profiler only after establishing a baseline. No React timing or browser results are claimed here.
Package and operate the release
Build once from a reviewed lockfile, store the exact artifact and promote the same bytes after tests. Serve HTML with appropriate revalidation and fingerprinted assets with immutable caching. Keep API routes separate from SPA fallback. Define a rollback to the previous compatible artifact and test database compatibility separately. Estimate hosting costs from actual expected traffic, storage and request volume; the offline lab requires no paid resources. Attach the ADR, threat model, test evidence, accessibility checklist and release runbook. Evaluate functional behavior, architecture rationale and honest limitations rather than polish alone.