Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/INDEX.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
|---|---|
| [STATE.md](STATE.md) | Status board: in progress, completed, backlog. |
| [spec.md](spec.md) | v1 product spec: glossary, roles, write path, architecture, build phases, risks. |
| [roadmap.md](roadmap.md) | Plan: self-host release, Linear-class speed, keyboard, UI, parity matrix. Accepted 2026-11-10. |

## Decisions

Expand Down Expand Up @@ -31,6 +32,16 @@
| 020 | [Linking a workspace is checked with the user's own GitHub token](decisions/020-workspace-link-boundary.md) |
| 021 | [Task writes: user token first, App on refusal, synchronous](decisions/021-task-writes.md) |
| 022 | [Cloudflare hosting requires the Workers Paid plan](decisions/022-cloudflare-paid-plan.md) |
| 023 | [Self-host release scope](decisions/023-self-host-release.md) |
| 024 | [AGPL-3.0-only confirmed; contributions under a DCO](decisions/024-license-dco.md) |
| 025 | [Self-host v0.1 ships with tasks only, before docs](decisions/025-release-order.md) |
| 026 | [Client store with polled deltas](decisions/026-client-store-sync.md) |
| 027 | [Optimistic edits; bulk edits through the job queue](decisions/027-optimistic-edits.md) |
| 028 | [One keymap; Linear's default keys](decisions/028-keymap.md) |
| 029 | [A Linear project is a board field plus a doc](decisions/029-projects.md) |
| 030 | [Assignees are GitHub users only](decisions/030-assignees.md) |
| 031 | [Linear features out of scope for v1](decisions/031-v1-scope.md) |
| 032 | [Triage is linked-repo issues not on the board](decisions/032-triage.md) |

## Features

Expand Down
20 changes: 20 additions & 0 deletions docs/decisions/023-self-host-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 023 — Self-host release scope

Date: 2026-11-10 · Status: Accepted (owner) · Builds on 001, 022

## Context
The owner asked to make Gitwork "possible to host open source". Two readings: anyone can run their
own copy, or open-source maintainers can show public boards.

## Decision
- The goal is a self-host release: a Docker image on GHCR, `docker-compose.yml`, a Deploy to
Cloudflare button, a self-host guide, boot-time config checks, an admin health page, and repo
hygiene (README, CONTRIBUTING, SECURITY, templates, CHANGELOG, semver).
- Public, no-sign-in boards for open-source maintainers are a separate, later item.

## Alternatives considered
- **Public boards now:** needs anonymous reads and personal-account repos (decision 006). Larger,
and not what most self-hosters need first.

## Consequences
- Roadmap Track A. The live GitHub check gates the release.
20 changes: 20 additions & 0 deletions docs/decisions/024-license-dco.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 024 — AGPL-3.0-only confirmed; contributions under a DCO

Date: 2026-11-10 · Status: Accepted (owner) · Confirms 001

## Context
Decision 001 chose AGPL-3.0 with the SPDX id `AGPL-3.0-only` pending owner confirmation, and left
the contribution terms open.

## Decision
- The license is `AGPL-3.0-only`.
- Contributors sign off each commit under the Developer Certificate of Origin (DCO). No contributor
license agreement (CLA).

## Alternatives considered
- **CLA:** lets Flywheel relicense outside contributions or sell closed add-ons. Adds friction for
contributors and is not needed while the hosted version runs the open code.

## Consequences
- Flywheel cannot later sell closed add-ons that include outside contributions.
- CI checks for `Signed-off-by` on pull-request commits.
13 changes: 13 additions & 0 deletions docs/decisions/025-release-order.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 025 — Self-host v0.1 ships with tasks only, before docs

Date: 2026-11-10 · Status: Accepted (owner) · Changes the phase order in the spec

## Decision
Order of work: live GitHub check → self-host v0.1 (tasks only) → speed, keyboard, and layout
foundation → Linear parity tier 1 (with Phase 5) → Phase 4 Docs → parity tier 2 → Phase 6 Mac app.

## Alternatives considered
- **Docs first (the original phase order):** delays the first usable release.

## Consequences
- v0.1 has no docs editor. The README says so.
24 changes: 24 additions & 0 deletions docs/decisions/026-client-store-sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 026 — Client store with polled deltas

Date: 2026-11-10 · Status: Accepted (owner) · Builds on 004, 010, 012

## Context
Each view switch renders on the server and runs `listTasks()` again. Linear-class speed needs the
data in the browser.

## Decision
- `GET /api/v1/workspaces/:id/sync` returns everything the viewer may see, filtered by
`isTaskVisible()`, with an opaque cursor. `?since=<cursor>` returns changes.
- The browser keeps the data in memory and IndexedDB, keyed by user and workspace, cleared on
sign-out. Views, filters, sort, and search run in the browser.
- The client polls every 5 s while the tab is visible, and on focus. Server push comes later behind
a decision 004 adapter (SSE on Node, a Durable Object on Cloudflare).
- Leak rules: tombstones only for IDs the client holds; the cursor is opaque; each response carries
a visibility key, and a change of key drops the client cache.

## Alternatives considered
- **Push first:** two runtime-specific transports before any speed win.

## Consequences
- A `workspace_changes` table, written in the same batch as each cache write.
- The Read Only E2E exit check extends to the sync endpoint, deltas, search, and the cache.
13 changes: 13 additions & 0 deletions docs/decisions/027-optimistic-edits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 027 — Optimistic edits; bulk edits through the job queue

Date: 2026-11-10 · Status: Accepted (owner) · Amends 021

## Decision
- The client applies an edit at once and rolls it back if the server refuses. `Cmd+Z` undoes the
last edit.
- A single edit stays synchronous on the server: user token first, then the App (decision 021).
- **Amendment to 021:** bulk edits (many tasks at once) run through the job queue (decision 004),
paced under GitHub's ~80 writes per minute. Each write still gets its audit row.

## Consequences
- The UI shows bulk progress and per-task failures.
12 changes: 12 additions & 0 deletions docs/decisions/028-keymap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 028 — One keymap; Linear's default keys

Date: 2026-11-10 · Status: Accepted (owner)

## Decision
- `packages/core/src/keymap.ts` holds every shortcut as data. The web app and the Mac app read it.
- Defaults follow Linear (`Cmd+K`, `/`, `?`, `C`, `G` then a letter, `J`/`K`, `X`, `S`, `P`, `A`,
`L`, `I`, `E`). Check each against Linear's in-app list before the keymap is frozen.
- Single-key shortcuts never fire in an input, a textarea, or the code editor.

## Consequences
- A unit test fails on two commands with the same keys in one scope.
16 changes: 16 additions & 0 deletions docs/decisions/029-projects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 029 — A Linear project is a board field plus a doc

Date: 2026-11-10 · Status: Accepted (owner) · Keeps 006

## Decision
- A workspace keeps one board (decision 006).
- A "project" is an option of a board single-select field named "Project" (auto-detected like
Status), plus `docs/projects/<slug>.md` in a linked repo for description, lead, status, and
target date (frontmatter).

## Alternatives considered
- **Several boards per workspace:** breaks decision 006 and multiplies sync cost.
- **Repo milestones:** scoped to one repo.

## Consequences
- Project pages wait for Phase 4 (Docs).
13 changes: 13 additions & 0 deletions docs/decisions/030-assignees.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 030 — Assignees are GitHub users only

Date: 2026-11-10 · Status: Accepted (owner)

## Decision
Only GitHub users can be assignees (GitHub issue assignees). Members without a linked GitHub
account follow tasks instead, and see them in My tasks and the inbox.

## Alternatives considered
- **A local assignee field:** data GitHub cannot hold; breaks the source-of-truth rule.

## Consequences
- The assignee picker lists the org's members that can be assigned to the repo.
11 changes: 11 additions & 0 deletions docs/decisions/031-v1-scope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 031 — Linear features out of scope for v1

Date: 2026-11-10 · Status: Accepted (owner)

## Decision
Out of v1: SAML and SCIM, third-party integrations (Slack, Zendesk, Intercom, Sentry, Figma),
importers, Linear-style AI and coding agents, an MCP server, recurring issues, SLAs, triage rules,
initiatives across workspaces, insights dashboards, mobile apps, and "related" links.

## Consequences
- Roadmap Track E lists each, with tiers for what is in.
11 changes: 11 additions & 0 deletions docs/decisions/032-triage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 032 — Triage is linked-repo issues not on the board

Date: 2026-11-10 · Status: Accepted (owner) · Builds on 009, 012

## Decision
- Triage lists open issues in the workspace's linked repos that are not on the board.
- Accept adds the issue to the board with a status. Decline closes it as not planned.
- Members and up see Triage. Read Only never does.

## Consequences
- Issues filed by outsiders on GitHub land in Triage without extra setup.
Loading
Loading