Skip to Content
JobWzrd Docs

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

  1. 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; uncertain is not failed.
  2. Server ownership of caps and consent. 5 applies/day, 50 emails/day, AI budgets, client throttles. The UI mirrors; it never enforces.
  3. One contract, frozen. 58 paths in backend/openapi.yaml, byte-identical to server/openapi.yaml. Wire changes are ADRs, never cleanup.
  4. One-way wiring. component → store → service → fetch. No component fetches, no service imports React, no lib/ file imports http/, features/ or platform/.

2. What is in scope for a cleanup, a refactor, or an SEO pass

ActionAllowed?
Delete verified-dead code (zero references, greps recorded)yes
Delete a file because a tool called it unusedno — verify first, always
Rename for clarity, inside one featureyes, with a test run
Change a visible stringonly if it was wrong; otherwise ask
Change layout, spacing, colour, type, motionno — that is a design decision
Add a dependencyno without approval (see §3)
Change a route path or an OpenAPI entryno — contract
Add a DB table/columnmigration + ledger + PRODUCT_TABLES + test, in its own commit
Weaken a check, skip a test, // @ts-ignore without a documented reasonnever
Touch server/never (rollback tree, must stay 0 diffs)
Edit backend/migrations/ historynever (ledger)
Regenerate app/public/** by handnever (hash-pinned; use the tools)
Deploynever 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 is maid.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: app check + test + build, backend tsc + 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.ts is 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 when PAGES_EXPORT=1, matching next.config.ts. Every Disallow: line and every route path: constant is written without one.
  • The public surface is eleven URLs, and SITEMAP in nav.ts is that list. src/lib/landingSeo.test.ts fails 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 noindex and Disallowed in public/robots.txt (13 prefixes, two layers, because robots.txt is advisory).
  • Structured data is server-rendered from literal data in metadata.ts, never from a request or a prop. src/lib/marketingInline.test.ts allows exactly one dangerouslySetInnerHTML site (JsonLd) across the whole app.
  • AI crawlers are named explicitly (GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot, Google-Extended, plus Googlebot/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.ts compares them.
  • The eight conversion events are a fixed list with an allow-listed payload; src/lib/analytics.test.ts refuses a name that is declared but never dispatched, a parameter outside the five utm_* keys, and any call that would leave the browser.
  • public/llms.txt exists 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 + FAQPage on the homepage, WebPage + BreadcrumbList elsewhere. FAQPage questions 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.ts holds the map (primary, secondary, intent, the section that answers it, related links); src/lib/keywords.test.ts refuses 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.md is the readable table.
  • Internal links are chosen by intent, not dumped in the footer: InternalLinks.tsx renders 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_ANSWERS with 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):

DesktopMobile
Lighthouse performance10097–100
Accessibility100100
Best practices100100
SEO100100
Agentic browsing100100
LCP / TBT / CLS0.7 s / 0 ms / 01.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

QuestionSource of truth
What the product does todayReadme/production/01-PRODUCT.md
How a click becomes a requestReadme/production/02-ARCHITECTURE.md
Field names, tables, error codesReadme/production/03-DATA-AND-API.md
Secrets, deploy, runbooks, blockersReadme/production/04-OPERATIONS.md
May I change this?this file
Hard invariants for the backendserver/AGENTS.md, AGENTS.md
A single page's real wiringapp/readme/<page>.md + app/scripts/audit-pages.mjs
Repo-wide statusdocs/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)

DateDecisionConsequence
2026-11-25Convex is deleted from app/, not merely unwiredenv.test.ts fails if the word returns
2026-11-25Resend is the managed auth-mail path; the bridge staysone mailConfigured() predicate feeds capabilities
2026-11-25Social buttons render nothing until capabilities answersno guessed UI for a second
2026-11-25Global tooling instead of devDependencieslockfiles unchanged; maid.md names the binaries
2026-11-23v2.0 Cloudflare backend signed offserver/ frozen as rollback
2026-11-23Landing lives inside app/Landingpage/ deleted; parity pinned by height + DOM
2026-11-xxAutoApply stays a tracker (D-B8-1)apply/ is the only thing that may say "sent"
2026-11-xxdemo: true stays in the envelopev2 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.

ModuleReport
Authentication and account securityreport/auth.md

On this page