FactoryWager Wiki

Development Standards — Quick Reference

Full: .custom-instructions.md · Agents: AGENTS.md · Wire: WIRE_BOUNDARY.md · Install: UNIFIED.md

Terminology

Prefer Avoid
artifact “codebase” (for delivered/proven things)
repository / source tree “codebase” (for location)
brand bare string domain IDs

Domain IDs (mandatory)

Parse once at the boundary. No sessionId: string / bare id: string without // brand-ok.

Boundary Constructor
Wire parseXId(unknown)
Optional tryXId(...)
Trusted asXId(string)
bun tools/brand-catalog.ts
bun run check:brands:all

Everyday

bun run install:verify
bun run type-check
bun run test:changed
bun run lint:harness
bun run harness:status
bun tools/bun-doc-refs.ts suggest "Bun.secrets"

Before merge

Map: docs/README.md · brands: lib/types/branded/README.md.