Rules and what guarantees them
120 rules: 25 enforced by a check, 21 guidance by design, 74 not yet.
- Rules come from PRAW's RULES.md, each repo's AGENTS.md, and the plan's proposals. (Architecture & File Structure Rules, Design System Standards, Web Component Development, Build & Development Workflow, AI-Generated Content, Instructional Design, Project-Specific Rules, AGENTS.md: code style, AGENTS.md: security, Proposed: Content contract, Proposed: Platform rules, Proposed: DDD layers, Proposed: Learning data, Proposed: Conventions)
- 25 rules have a check that enforces them. (HAXcms Backend Security/Parity, DDD Design System (Primary), DDD Usage Audit, HAX Schema Capability, Accessibility Audits, Dark Mode and Reduced Motion, JavaScript Standards — globalThis, JavaScript Standards — No optional chaining, Testing — Property Tests For Untrusted Input, Memory — Nothing Outlives a Removed Element, Perf Check Before Core Front-End PRs, Outline Designer Changes Run the Fuzzer, Browser Support Policy — Baseline, Monorepo Dependency Verification, AI Guardrails — CodeQL Clean On First Push, Unbundled Approach, Formatting, Feature PRs change English source strings only, Dependencies, Component Security, Library Security, Element front-end APIs never change, The HAX version is never shown to unauthenticated users, No native prompt or confirm dialogs, HAX imports use explicit .js paths, Accessibility sweep, Fuzz hunt, Dependency audit, CodeQL, Color contrast (light and dark), dark-motion, DDD token lint, Dependency licenses, Element API snapshot, Format check, fuzz-nightly, nightly, haxschema, ESLint, Locale guard, Memory leaks, Mutation testing, weekly, Backend parity, nightly, PHPUnit, Render benchmarks, size-report, Test all elements, Unit and API conformance tests, Unused code (knip))
- Rules serve the pillars. (Accessible, Efficient, Extensible, Free and open, Platform agnostic, Remixable, Sustainable, Issue Tracking, HAXcms Backend Security/Parity, DDD Design System (Primary), DDD Usage Audit, HAX UI: Admin Surfaces Layer of DDD, Admin Fields Are simple-fields, HAX Schema Capability, Accessibility Audits, Color Vision — Opposing Actions Read Apart Without Color, Meaning Channels — Meaning and Consequential Decisions Use All Five, Dark Mode and Reduced Motion, JavaScript Standards — No optional chaining, Works With or Without HAX, Educational Content Standards (OER Schema), Testing — Property Tests For Untrusted Input, Memory — Nothing Outlives a Removed Element, Perf Check Before Core Front-End PRs, Outline Designer Changes Run the Fuzzer, Cross-Repo References — No Local Paths, Browser Support Policy — Baseline, AI Guardrails — CodeQL Clean On First Push, Worldview Pillar Checks, Mascot Name: the Future Traveler, Unbundled Approach, Feature PRs change English source strings only, Dependencies, Component Security, Library Security, Element front-end APIs never change, Content elements don't require the full DDD stack, User-authored links are always respected, The HAX version is never shown to unauthenticated users, No native prompt or confirm dialogs, HAX imports use explicit .js paths, DDD layers: content scale, HAX UI admin style, instructional element blueprint, xAPI conformance and stable answer keys, Green for correct, purple for incorrect)
- 21 rules are guidance by design: how agents and people work, which no check could decide. (Issue Tracking, Canonical Repository Directories Are Never Renamed, Schema Repos — Documentation-Only Contracts, Testing — Use the Repo's Own Runner Config, HAX CLI Usage, Web Component Scaffolding, HAX Site Scaffolding, HAXcms Page Creation via CLI, No Traditional Build Prompts, Command Automation, Version Control, HAX Rules Win Over Modern Web Guidance, Script Restrictions, AI Guardrails — State Assumptions, AI Guardrails — Minimum Viable, AI Guardrails — Surgical Diffs, AI Guardrails — Verify Outcomes, HAX Skill Lookup Locations, HAX Course Units via Understanding by Design, Universal Design for Learning (UDL) Audit, Learning-Science Design Matched to Learner Proficiency)
- 74 rules nothing enforces yet: the backlog of what to automate next. (HAXcms Site Organization, HAXcms Site Metadata, Reserved Routes, Web Component Registry, MFR Call Namespacing (`@system/` and `@site/`), Editor State vs Site State (Dual Store), HAXiam Multi-Tenant Path/User Alignment, HAXcms Platform Upgrades Run From a Shell, Never on HAXiam, SimpleColors (Legacy System), DESIGN.md Compliance (PRAW Design Source of Truth), DDD Palettes vs Single Colors, HAX UI: Admin Surfaces Layer of DDD, HAXcms Prototypes Are Built On The Real System, Admin Fields Are simple-fields, Color Vision — Opposing Actions Read Apart Without Color, Meaning Channels — Meaning and Consequential Decisions Use All Five, Shadow-Boundary ARIA References, HAX Content Authoring, a11y-collapse heading-button, haxHooks lifecycle integration, Works With or Without HAX, Educational Content Standards (OER Schema), User-Scaffold For Adaptive UX State, Tracking Is Visible to the Person Tracked, Tracking Records the Outcome, Not the Stream, SSR Safety & Enhancement Audit, Testing — Poll, Don't Sleep, Async Results Must Not Overwrite Newer State, Never Rely on querySelectorAll Across Elements That May Stub It, New Themes Ship With the Editor Demo Link, Element Docs Setup, HAXcms Theme Build, HAXcms Site Custom Code — Build On HAXCMSLitElementTheme, Cross-Repo References — No Local Paths, Node.js Version — Latest LTS, Outside Skills Are Version-Pinned, Rules and Skills Earn Their Tokens, Suggest Only What the Backends Can Ship, AI Guardrails — Pre-Submission Checks, Worldview Pillar Checks, AI Content — Model Output Is Validated Before Use, AI Content — Facts Come From the Data, Not the Model, AI Content — A Model Never Approves Its Own Proposals, AI Content — Personal Information Is Stripped Before a Model Call, AI Content — Nothing Is Truncated Silently, AI Content — Cost Is Shown Before Bulk Work, AI Content — Tests Make No Paid or Networked Model Calls, Recurring security-audit playbook for the 5 core repos, Mascot Name: the Future Traveler, Language, NO TypeScript, Third-party Libraries, ES Modules, License header, Modern JavaScript, HTML sinks, CSS template literals, Every field in admin chrome is a `simple-fields-field`, Theme Development, File Structure, Web Components, Package Names, CSS Classes, Security Audits, Sensitive Data, Site Imports, File Permissions, Schema Validation, External Dependencies)
- Proposed rules, not written down yet. (Element front-end APIs never change, Content elements don't require the full DDD stack, User-authored links are always respected, The HAX version is never shown to unauthenticated users, No native prompt or confirm dialogs, HAX imports use explicit .js paths, DDD layers: content scale, HAX UI admin style, instructional element blueprint, xAPI conformance and stable answer keys, Green for correct, purple for incorrect)
- All of it.