Architectural Decision Records (ADRs)¶
Architecture and product decisions for ICS. Every decision that changes "how we build" or "what we build" goes here as a numbered Markdown file.
Why¶
- Git-tracked. A decision is a commit: versioned and searchable.
- Searchable.
git log --grep="ADR-NNNN"gives the full context. - Keeps the code clean. No 20-line "decision pending" comments in
main.py. A code comment is at most a 2-3 line pointer to the ADR. - Forces discipline. Writing an ADR means thinking through the options and their cost; debt cannot be parked "for later".
Status lifecycle¶
| Status | Meaning |
|---|---|
Pending |
Not decided yet. Code may be in a temporary state (e.g. a commented-out router). Work is limited to the described scope. |
Accepted |
Decided. The ADR describes what we did and why. The code follows the decision. |
Superseded by NNNN |
Replaced by a newer ADR. The old one stays, to show what we used to think. |
Rejected |
Considered and rejected. Kept so nobody proposes the same thing again in six months. |
Format¶
See 0001-comments-feature-deferred.md as the template. Sections:
- Status + decision owners + scope (which files it affects)
- Context: what happened that requires a decision
- Problem: what exactly does not work or needs settling
- Decision (with options 1/2/3 and estimates in hours or days)
- Reactivation trigger: which event forces a return to the topic
- Consequences: what the current state takes away and what it adds
- References: commits, files, links to discussions
Numbering¶
Numbers start at 0001. Numbers are never reused (not even from deleted ADRs). A new number is the current max + 1.
ADR list¶
- ADR-0001: Comments feature, rejected and removed.
- ADR-0002: Quality bar (10/10 ratchet): what "high standard" means in ICS.
- ADR-0003: Major dependency upgrades (React 19, TS 6, shiki 4, ...) and a backend refresh.
- ADR-0004: Archived version preview is read-only and separate from restore.
- ADR-0005: Link hierarchy:
/v/<slug>resolves to an access channel. - ADR-0006: Rendered Markdown cache keyed by asset version.
- ADR-0007: Liberal password policy, strength shown instead of enforced.
- ADR-0008: MIT license.
- ADR-0009: English first, UI translated through i18n.
- ADR-0010: UI i18n with a typed in-house
t()and flat JSON catalogues. - ADR-0011: Backend message catalogue (pl, en) and locale resolution.
- ADR-0012: One navigation model for every signed-in page. Superseded by ADR-0024.
- ADR-0013: PDF as an asset kind, with its text served as Markdown.
- ADR-0014: Word and OpenDocument text as an asset kind, served as Markdown.
- ADR-0015: Asset metadata model: typed columns plus JSONB, doc type vocabulary, computed freshness.
- ADR-0016: Asset relation graph in PostgreSQL: eight relation types, extraction from content, graph access per step.
- ADR-0017: Project shares: an asset assigned to several projects as a fifth role source.
- ADR-0018: External references: OpenProject work package as the task identity, project mapping and key documents.
- ADR-0019: Agent context pack: one call with ordering, token budget and freshness signals.
- ADR-0020: Personal access tokens for Project Standard: read only, no admin bypass, enforced scopes.
- ADR-0021: OCR of scanned PDF pages, local engine behind a provider interface.
- ADR-0022: PDF reader on pdf.js' viewer components, with full screen.
- ADR-0023: Notifications: watches in PostgreSQL, inbox in Redis, in-app, browser push, e-mail and Google Chat.
- ADR-0024: App shell and design system v2: one sidebar navigation, token-only styling, reader inspector, Anime.js motion.
- ADR-0025: Graph explorer: an incremental walk through the document graph from projects or one document.
- ADR-0026: Unified document search: one PostgreSQL full-text query for the web app and MCP.
- ADR-0027: Micro-applications: agent-published apps with their own data, run by a shared broker and QuickJS/WASM runners on origins of their own.
- ADR-0028: Short micro-application hosts: a random 8-character name per app, reserved for good; long hosts keep working.
- ADR-0029: Asset archive and trash: the archive leaves lists and search but keeps links working; the trash keeps a deleted asset 30 days, then purges it with its files.
- ADR-0030: Copyable share addresses: HTML bundles and micro-applications keep the share link in their address (
ics_share) through a platform-injected script, so a copied address takes its recipient through the same link. - ADR-0031: Google Sheets links of micro-applications: one collection syncs with one sheet tab on request, by a three-way comparison with the last agreed values, conflicts decided by a person, the app's part once per operation through the broker and the sheet in one atomic write that stays
uncertainuntil read back. - ADR-0032: Realtime channels of micro-applications: one WebSocket per open page through the broker carries collection change signals and the app's own channel messages; the broker's report of open pages and changed collections drives Google Sheets automatic syncs.
- ADR-0033: Google Sheets links per spreadsheet file: one link per app and file, each collection mapped to one tab or to a group of tabs of one kind of record (keyed, with the tab new records go to and an optional field for the tab name), all-
sheetmappings as lists the app only reads, one operation for the file with one broker transaction and onebatchUpdate, and no new plan while an earlier sheet write is unsettled. - ADR-0034: Content Security Policy of micro-application pages: scripts only from the app, inline styles and images from any
https:host for every app,fetch/WebSocket only to the hosts a release declares infrontend.connect, listed inapp_changes.