Shared abstraction layers that domains consume. Platform code lives in
crates/sp42-types, sp42-platform (contracts, runtime, scoring engine),
sp42-coordination, sp42-wiki, sp42-live, sp42-reporting,
sp42-inference, sp42-fetch, and sp42-parsoid. The authoritative layer
map is in scripts/check-layering.sh, drawn in
architecture.md.
- architecture.md — generated layered crate map with ADR/PRD cross-links (regenerate with
scripts/generate-architecture-map.sh) - RUNTIME_CONFIGURATION.md — server environment, API base URL, and local dev auth
- DESKTOP_DISTRIBUTION.md — desktop shell backends, build prerequisites, signing/notarization
- DEVELOPER_SURFACE.md — localhost reporting, action/live boundaries, telemetry, milestone boundaries
- CLI.md —
sp42-clicommand-line reference: flags, modes, environment, exit codes - FRONTEND_DESIGN_CONTRACT.md — binding frontend design spec
- CODEX_DESIGN_SYSTEM.md — how SP42 aligns to Wikimedia Codex (tokens, not Vue components) and where it deliberately diverges
The scoring engine is a platform layer: patrolling consumes it today, and other domains may consume it as the system expands toward sourcing and quality signals.
- scoring/SCORING_CONSTITUTION.md — scoring mission, principles, and signal philosophy
- scoring/POLICY_LAYOUT.md — policy/evaluation directory layout and lifecycles
- ADR-0001 — Foundational architectural decisions
- ADR-0002 — Local dev-auth bridge contract
- ADR-0003 — Node-anchored wikitext editing
- ADR-0004 — Crate boundaries for collaborative ownership
- ADR-0005 — Design system and shared component layer (
sp42-ui) - ADR-0006 — Using LLMs: model panel, measured agreement, inference endpoint
- ADR-0010 — Operator-confirmed content proposals (propose/confirm)
- ADR-0012 — Frontend end-to-end testing approach (Proposed)
- ADR-0013 — Layered platform/domain architecture with mechanical enforcement
- ADR-0014 — Required Wikimedia OAuth login + any-Wikimedia-project resolution
- ADR-0016 — Wikidata entity content-model: revision read,
EntityDiff, and content-model routing (Proposed) - ADR-0017 — Wikidata statement-proposal write contract (Proposed)
- ADR-0021 — Scoring and ranking contract: composite score, policy schema, compile step
- ADR-0022 — Reviewer-action contract: dispositions, execute route, tokens, CSRF/baserevid
- ADR-0023 — Coordination contract: message kinds, relay, room state, wire codec
ADR-0006 defines the provider-agnostic LLM interface every capability reaches a model through, and ADR-0010 defines the propose/confirm editing pattern domains reuse — both are platform layers even though they landed alongside the citation work. The citation-specific ADRs that build on them live in domains/references/adr/.