Quality, Scope, and Decision Rules
The file that answers "may I delete this?", "may I change that?", and "which document is telling the truth?". Rules are ordered: a lower number wins.
1. The four invariants
- Honesty. Never claim an external effect that did not happen. A queued draft is
not a sent email; a blocked source is not an empty result;
uncertainis notfailed. - Server ownership of caps and consent. 5 applies/day, 50 emails/day, AI budgets, client throttles. The UI mirrors; it never enforces.
- One contract, frozen. 58 paths in
backend/openapi.yaml, byte-identical toserver/openapi.yaml. Wire changes are ADRs, never cleanup. - One-way wiring. component → store → service → fetch. No component fetches, no
service imports React, no
lib/file importshttp/,features/orplatform/.
2. What is in scope for a cleanup, a refactor, or an SEO pass
| Action | Allowed? |
|---|---|
| Delete verified-dead code (zero references, greps recorded) | yes |
| Delete a file because a tool called it unused | no — verify first, always |
| Rename for clarity, inside one feature | yes, with a test run |
| Change a visible string | only if it was wrong; otherwise ask |
| Change layout, spacing, colour, type, motion | no — that is a design decision |
| Add a dependency | no without approval (see §3) |
| Change a route path or an OpenAPI entry | no — contract |
| Add a DB table/column | migration + ledger + PRODUCT_TABLES + test, in its own commit |
Weaken a check, skip a test, // @ts-ignore without a documented reason | never |
Touch server/ | never (rollback tree, must stay 0 diffs) |
Edit backend/migrations/ history | never (ledger) |
Regenerate app/public/** by hand | never (hash-pinned; use the tools) |
| Deploy | never without the owner saying so |
3. Dependency policy
app/ runtime deps are: react, react-dom, @heroicons/react, better-auth,
@convex-dev/better-auth (legacy, pending removal), @sentry/react. Nothing else
without the backend forcing it. Tooling is global, not in package.json
(maid.md §Toolchain). A new dep must name the capability it unlocks and the one it
replaces.
4. Cleanup standard (maid.md + CodeMaid)
- The skill lives at
~/.agents/skills/codemaid/; the repo entry point ismaid.md. - Two override rules: functionality unchanged, UI/UX pixel-identical. Anything that cannot meet both is reported, not fixed.
- Baselines measured 2026-11-25 (do not re-report as new): biome 152 errors / 71 warnings / 31 infos; knip 17 unused exports, 0 unused files; jscpd 0 clones; legacy-scan 3 findings in 2 guides.
- Validation after any batch:
appcheck + test + build,backendtsc + vitest. Nothing is "clean" until those ran in this session.
5. SEO / GEO standard (applies to every page)
docs/SEO.md is the enforced rulebook. It maps every rule to the file that
implements it and the test that fails when it regresses. This section is the
summary; that file is the reference.
Non-negotiables, enforced by tests:
src/features/marketing/metadata.tsis the only source of public head tags:SITE_ORIGIN, title ≤ 60, description 50–160, one canonical (https://jobwzrd.com<path>), one OG image per page.- The canonical form follows the build:
canonicalPath()appends a trailing slash only whenPAGES_EXPORT=1, matchingnext.config.ts. EveryDisallow:line and every routepath:constant is written without one. - The public surface is eleven URLs, and
SITEMAPinnav.tsis that list.src/lib/landingSeo.test.tsfails if a page exists without a sitemap entry, if a sitemap entry has no page, or if a private route appears in either. - Authed routes are
noindexandDisallowed inpublic/robots.txt(13 prefixes, two layers, becauserobots.txtis advisory). - Structured data is server-rendered from literal data in
metadata.ts, never from a request or a prop.src/lib/marketingInline.test.tsallows exactly onedangerouslySetInnerHTMLsite (JsonLd) across the whole app. - AI crawlers are named explicitly (
GPTBot,OAI-SearchBot,ClaudeBot,PerplexityBot,Google-Extended, plusGooglebot/Bingbot). Public marketing copy is meant to be retrievable; being cited with a link is distribution.
GEO (getting cited by answer engines) — the rules that fit this product:
- Every public page states what the product is in one plain sentence near the top; no slogan-only headers.
- Prefer factual, quotable sentences over marketing adjectives ("5 applies per day,
enforced by the server" beats "unlimited power"). The caps on the page are the caps
in code, and
landingPage.test.tscompares them. - The eight conversion events are a fixed list with an allow-listed payload;
src/lib/analytics.test.tsrefuses a name that is declared but never dispatched, a parameter outside the fiveutm_*keys, and any call that would leave the browser. public/llms.txtexists and is maintained: canonical pages, facts worth citing, and an explicit "not claimed on this site" (no counts, ratings, testimonials, uptime or deliverability). Adding a page means adding it there and to the sitemap.- Structured data:
Organization+WebSite+SoftwareApplication(AggregateOffer 7.99–12.99) +WebPage+FAQPageon the homepage,WebPage+BreadcrumbListelsewhere.FAQPagequestions are the visible questions, from one source file. - One H1 per page, in source order, before any card grid.
- One query per page.
src/features/marketing/content/keywords.tsholds the map (primary, secondary, intent, the section that answers it, related links);src/lib/keywords.test.tsrefuses a duplicate primary, a missing row, a primary absent from the page head, and a related link to a private route or to itself.docs/KEYWORDS.mdis the readable table. - Internal links are chosen by intent, not dumped in the footer:
InternalLinks.tsxrenders two or three related pages per page, and every page reaches/in ≤2 hops. - The eight questions an answer engine needs answered (what it is, who it is for, how
it finds jobs, how matching works, how it differs from a board, whether it applies
automatically, whether it tracks, how résumés are handled) are named in
GEO_ANSWERSwith the verbatim fragment that answers each, and a test fails if a fragment disappears from the copy.
Measured 2026-11-26 (built site, not dev):
| Desktop | Mobile | |
|---|---|---|
| Lighthouse performance | 100 | 97–100 |
| Accessibility | 100 | 100 |
| Best practices | 100 | 100 |
| SEO | 100 | 100 |
| Agentic browsing | 100 | 100 |
| LCP / TBT / CLS | 0.7 s / 0 ms / 0 | 1.1 s / 40–200 ms / 0 |
Three mobile runs scored 100 / 100 / 97 with LCP 1.1 s each; TBT varied 40–200 ms on a shared machine, so the range is printed rather than the best run. An earlier cold run measured 2.5 s LCP.
axe-core WCAG 2.2 AA: 0 violations on all eleven public pages. The homepage
document went from 2.30 MB (vendored Framer export) to 72 KB (React), and the
13 MB of export residue plus the 40 MB app/landing source tree are deleted.
Owner-run gates are not claimed anywhere: Search Console, Bing Webmaster, DNS +
HTTPS, analytics destination, uptime monitoring, external listings. The 27-gate
checklist with per-gate evidence (20 proved here, 7 owner-run) is docs/SEO-GATES.md;
the owner steps are docs/SEO.md §8.
If a proposed SEO change would alter visible copy or layout, it needs the owner's decision — that is a design change wearing an SEO hat.
6. Which document is true
| Question | Source of truth |
|---|---|
| What the product does today | Readme/production/01-PRODUCT.md |
| How a click becomes a request | Readme/production/02-ARCHITECTURE.md |
| Field names, tables, error codes | Readme/production/03-DATA-AND-API.md |
| Secrets, deploy, runbooks, blockers | Readme/production/04-OPERATIONS.md |
| May I change this? | this file |
| Hard invariants for the backend | server/AGENTS.md, AGENTS.md |
| A single page's real wiring | app/readme/<page>.md + app/scripts/audit-pages.mjs |
| Repo-wide status | docs/status/PROJECT-PHASE-STATUS.md |
Known-stale, do not trust without checking: Readme/SYSTEM-DESIGN.md (describes
Convex + Bearer JWT, 42 tables), Readme/Old Docs/* (Convex era),
Readme/app-PRODUCT.md (demo-only SPA, 17 hash routes), migration.md §3/§7
(leak L-2). When a stale doc contradicts reality, fix the doc in the same PR that
touched reality.
7. Decision log (one line each; newest first)
| Date | Decision | Consequence |
|---|---|---|
| 2026-11-25 | Convex is deleted from app/, not merely unwired | env.test.ts fails if the word returns |
| 2026-11-25 | Resend is the managed auth-mail path; the bridge stays | one mailConfigured() predicate feeds capabilities |
| 2026-11-25 | Social buttons render nothing until capabilities answers | no guessed UI for a second |
| 2026-11-25 | Global tooling instead of devDependencies | lockfiles unchanged; maid.md names the binaries |
| 2026-11-23 | v2.0 Cloudflare backend signed off | server/ frozen as rollback |
| 2026-11-23 | Landing lives inside app/ | Landingpage/ deleted; parity pinned by height + DOM |
| 2026-11-xx | AutoApply stays a tracker (D-B8-1) | apply/ is the only thing that may say "sent" |
| 2026-11-xx | demo: true stays in the envelope | v2 contract decision, not a defect |
8. The one rule that resolves every argument
A change that makes the system claim something untrue is wrong, whatever it improves. Everything else in this file is a consequence of that sentence.
Per-module security reports
Each module under verification gets a report that states the wiring, the controls, the measured evidence and the residual risks — not a checklist of intentions.
| Module | Report |
|---|---|
| Authentication and account security | report/auth.md |