Skip to content
pi-c View Ticket
Login

View Ticket

2026-11-29
08:14 • Closed ticket [4fe5925eaf]: keel: design principles - core records and enforces, components decide plus 3 other changes artifact: 77dcedadd0 user: dmestas
00:48 • Closed ticket [4fe5925eaf]. artifact: 0841a00111 user: dmestas
2026-11-22
21:56 • Ticket [4fe5925eaf]: 2 changes artifact: cab9c6e147 user: dmestas
21:55 • Ticket [4fe5925eaf]: 2 changes artifact: 28f60809e6 user: dmestas
21:53 • Ticket [4fe5925eaf]: 2 changes artifact: c0e8b39f45 user: dmestas
21:51 • Ticket [4fe5925eaf]: 2 changes artifact: 21b0655c08 user: dmestas
21:50 • Ticket [4fe5925eaf]: 2 changes artifact: 7583640563 user: dmestas
21:48 • Ticket [4fe5925eaf]: 2 changes artifact: 6bf5b1108d user: dmestas
21:46 • Ticket [4fe5925eaf]: 2 changes artifact: 56d6d1f1b0 user: dmestas
21:44 • Ticket [4fe5925eaf]: 2 changes artifact: c613cd693e user: dmestas
21:43 • Ticket [4fe5925eaf]: 2 changes artifact: fa36686417 user: dmestas
21:42 • Ticket [4fe5925eaf]: 2 changes artifact: 3c34cab905 user: dmestas
21:41 • Ticket [4fe5925eaf]: 2 changes artifact: d4ae048b1a user: dmestas
20:31 • Ticket [4fe5925eaf]: 2 changes artifact: 82785c7c52 user: dmestas
2026-11-21
21:18 • Ticket [4fe5925eaf]: 1 change artifact: e111308478 user: quarry
13:36 • New ticket [4fe5925eaf]. artifact: f262db31bd user: dmestas

keel: design principles - core records and enforces, components decide

Closed4fe5925eaf98ee164f3ed564f04ced10945ee7b4Created 9.4 days agoUpdated 1.6 days ago
Description2026-11-21 13:36:56
Principles and first audit: https://artifacts.craftdesign.group/v/7AcFU37QOBvcGyD3TEMpp#8b97a2dfe17cd12d8d19f2b890bd60dc80e77ed6cfa7b22a13851a27c01d9630 pic core is durable infrastructure (journal, effects and recovery, files/executor, process supervision, comms/inbox/transport, credential storage, event/RPC protocol, extension host). Fast-evolving policy (token-saving and compaction strategies, model catalogs and provider quirks, prompting, cost tables) lives in replaceable components. Seven-question sorting test into four tiers: core, bundled component, external component, data; conflicting answers split a capability into mechanism (core) and policy (component). Rules: a component's decision is journaled before it takes effect; only core writes the journal; core passes the crash suite with the scripted provider alone. Component ladder: data, hooks, protocol clients, C interfaces, extension host (same C seams). Audit: core ~15.8k lines, bundled 10.3k, TUI 14.8k; vendor facts in core (src/models.c:47 model ids, src/provider_http.c:341 cache lifetimes, src/loop.c:1777 vendor error wording, src/loop.c:1859/1899 compaction triggers); pic.h includes models.h; tui/app.c calls internals; seven seams missing. Method: tier field on every ticket, ci/tiers.tsv, six grep-level CI checks with a shrinking allowance file, 20-minute periodic audit. Twelve owner questions on the page. Sub-tickets: keel-method, keel-lapse.
2026-11-22 20:31:39

RPC command registry seam cut in #102: components register RPC commands; rpc.c includes no component header. Allowance 29 to 25, core stubs 29 to 20. Remaining: provider registration (13 lines), TUI to RPC (10), models in core (2).

2026-11-22 21:41:16

Provider registration seam cut in #103: provider adapters register with core; core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines incl. atfile/clipboard), models in core (2), frozen migration (1, by design).

2026-11-22 21:42:20

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-22 21:43:39

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-22 21:44:52

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-22 21:46:38

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-22 21:48:22

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-22 21:50:07

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-22 21:51:52

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-22 21:53:37

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-22 21:55:28

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-22 21:56:40

Provider registration seam cut in #103: provider adapters register with core, and core names no vendor except the frozen v3 migration. Allowance 25 to 14, core stubs 20 to 16. Remaining: TUI to RPC (11 lines with atfile and clipboard), models in core (2), the frozen migration (1, by design).

2026-11-29 00:48:55
Built: send_message between conversations, delivery through the durable inbox, and wake by default (docs/manual/peers.md). The idle-terminal follow-up is #96.
2026-11-29 08:14:08

Done on trunk since 3f1d41d5f3ac (2026-11-23): TUI to RPC cut in 60526238eacd, models out of core in c03ef62c2f87; allowance 2 lines, stubs 6, docs/design/keel.md marked complete. The remaining src/tui/app.c include of cred.h is the unlock seam the design keeps local (keel.md, the unlocked key never crosses the command channel).