Artifacts Associated With Ticket 01e8ad6714
Ticket change [ab3e1ebdd3] (rid 1484) by dmestas on 2026-11-20 00:16:55:
- comment initialized to:
Decided: pic will clone and run repositories held in Libfossil, and all projects will move to Fossil or zit over time. Proposal: https://artifacts.craftdesign.group/v/BqA7Gcnh6CCbhSqkhUAje#2ab27cca02c0f161ec9c270d9b851abe4fdd2a21d2c1675dad896845c2f2e709 Shape (see the proposal): one store per person (~/.pic/pic.sqlite holds project repositories as Libfossil onefile repositories, pic's user state, later ctx's archive and suit's wardrobes; each tool owns its tables); journals stay one file per workspace (single-writer fencing); exactly one working copy per project: a Libfossil-managed checkout on disk on a normal machine, cowoco rows without an OS, never both; pic_executor is the switch. Stages: 1. One Libfossil cut (the one suit vendors, a88df0d594 on sql-ext-int, or its successor on trunk) pinned in pic, ctx and suit. 2. Experiments: pic project clone URL and pic project open NAME DIR on pi-c itself, then a zit landing from that checkout (does zit work with a database-held repository; does Libfossil keep a disk checkout's state for a onefile repository); a contention test on the shared store. 3. pic project clone | open | sync | list; workspaces register their project. 4. Move projects to Fossil or zit one at a time, each as a single import. 5. ctx and suit move into the store. Related: remote command tool d909e0fe55, no-OS build ff1a4dc200, amalgamation (proposal section 4).
- priority initialized to: "Medium"
- severity initialized to: "Minor"
- status initialized to: "Open"
- title initialized to: "Clone and run projects held in Libfossil"
- type initialized to: "Feature_Request"
- comment initialized to:
Ticket change [547529b0a3] (rid 1521) by quarry on 2026-11-20 00:31:52:
- Untracked field number: "12"
Ticket change [14054359ad] (rid 1647) by dmestas on 2026-11-20 03:47:39:
- icomment:
Experiments run 2026-11-20 (scratch sources lfsql.c, contend.c, README with numbers kept outside the repo). Result: go on the libfossil side, with upstream fixes. 1. Store-held repository: libfossil sql-ext-int a88df0d594 clones pi-c into a host SQLite db (fsl_clone to a temp file, then fsl_repo_import with prefix fslrepo_pic_; 3.7 s, 7.7 MB, integrity ok); a disk checkout of it works (fsl_repo_open_host + fsl_repo_ckout; 0.64 s), commit 0.10 s, update, two checkouts in step. zit and fossil cannot open the store directly (zit's store is its own zitL format; fossil reads the host-prefix entry as a path). Bridge verified: libfossil fsl_sync against zit serve on localhost, both directions; landings travel (forum posts); fsl_export writes a plain .fossil in 0.3 s. 2. Shared store contention (WAL, synchronous=FULL, busy_timeout 5000; N writers, a 90 ms reader, a check-in every 250 ms; 20 s): N=1 p50 1.6 ms p99 116 ms; N=4 p50 2.0 ms p99 171 ms max 1.57 s; N=8 p50 3.0 ms p99 543 ms max 2.68 s; zero busy errors, zero failed check-ins. Tail from SQLite's unfair busy handler and ~85 ms check-in write locks. Upstream: libfossil sync client never offers unclustered artifacts to a second peer (reported to the libfossil maintainer); zit has no way to work with a host-db repository (asked the zit maintainer: export import, local channel, or localhost sync as the supported bridge). For pic: busy_timeout of 5 s or more; keep high-rate user state in its own file or use a fairer retry; set fullfsync explicitly on macOS (synchronous=FULL alone does not use F_FULLFSYNC).
- icomment:
Ticket change [4bf2828f26] (rid 1648) by dmestas on 2026-11-20 03:47:53:
- icomment:
Bridge to zit decided by the zit maintainer: sync over localhost (option c). pic project clone|open|sync starts zit serve (or the pic side) on 127.0.0.1 with an ephemeral port, syncs with fsl_sync, and stops it; keep the transport behind one function so a future pipe transport (a serverless zit channel, like fossil http behind ssh://, now an open question for the owner) changes only that function. zit will not read libfossil's host-db tables (by design). Caveat until a zit release carries trunk check-in c171c026ed: a push from a store holding clusters into zit serve can exit 0 with the server short of artifacts; after a first fill compare artifact counts on both ends (zit stat).
- icomment: