Skip to content
context Timeline
Login

Timeline

50 ancestors of 12e86a9f6acef823

2026-11-10
16:15
Update libfossil to e84af25d79; fuzz SQLite with the function sanitizer on check-in: 12e86a9f6a user: context-bot tags: trunk
16:02
Update libfossil to e84af25d79; fuzz SQLite with the function sanitizer on

libfossil's fsl_sqlext_init now takes sqlite3_api_routines const *, so SQLite's call through the extension pointer is well typed. ctx's declaration matches it, and the fuzzers' sqlite3.o no longer turns -fsanitize=function off. The alignment exemption for libfossil.o stays until the SHA-1 fix reaches onefile. closed check-in: 8fe1a2a0aa user: dmestas tags: libfossil-e84af25d79

15:02
Tell the person's turns from tool output and harness text, and drop request-blob copies check-in: 0d045e82e4 user: context-bot tags: trunk
14:49
Tell the person's turns from tool output and harness text, and drop request-blob copies

Transcripts label tool results, reminders, notifications and peer messages as the user's. Turns now record user (what the person typed), assistant, tool or meta, from origin.kind, isMeta, the message parts and harness openings, and technotes carry the speaker so it syncs. The technote parser reads all four.

Records that are not user or assistant lines are skipped. api-request-blob records copy the conversation with no timestamp, and were archived as extra turns.

Once per machine, the scan corrects the existing archive from the transcripts still on disk, matched by session and timestamp since older headings carry no turn id. On the real archive: 182,840 turns now say tool or meta, 48,820 request copies are removed from 1,120 technotes, 9,926 turns remain the person's, and a rebuild reproduces the result. Each technote is read and saved in one write transaction, and the done marker is written last.

The ctx skill and the how-to describe the four speakers. closed check-in: 6b84c8be59 user: dmestas tags: speakers

07:43
Add ctx stats; ctx remote writes a missing local copy; usage knows every command check-in: f430dde4b9 user: context-bot tags: trunk
07:30
Add ctx stats; ctx remote writes a missing local copy; usage knows every command

ctx stats shows, per week and per project, session days and how often agents really used ctx: searches, searches with no matches, ctx turn reads and skill loads. It counts commands that ran, not mentions in arguments or heredocs, through a ctx_calls(body, sub) SQL function that ctx sql can use too, and runs in seconds on a 500,000-turn archive. A new fuzz target covers the command scanner.

ctx remote NAME FILE, given a local file that does not exist, writes a copy of the repository there, readable only by its owner, so sharing no longer needs a manual fsl_export. An existing file is never overwritten.

eval/skill_eval.py usage now reads the command list from ctx's own usage text, so wiki, source, project and the other newer commands are no longer counted as unknown. closed check-in: a4373d90f3 user: dmestas tags: stats

06:28
Rewrite the README and add a how-to guide; --as-of serves undated sources check-in: dc66ca307b user: context-bot tags: trunk
06:15
Rewrite the README and add a how-to guide; --as-of serves undated sources

README.md is now a front page: what ctx does, install, a first look, how it is stored, checks, releases and the license. docs/howto.md walks through each task: install, archiving, search, audit, projects, tickets, sources, supersession, the wiki, syncing machines, the opt-in inject hook, rebuild, the skill eval, raw SQL and the environment. Every command in it was run against a sandbox database and Fossil repository, and the docs were reviewed against the code.

search --as-of compared a source's valid-from date directly, so a source added without --valid-from, such as any evergreen one, never appeared. A missing date now means valid from the start, with a test. closed check-in: c96b21ad6d user: dmestas tags: docs

06:01
License ctx under the BSD 2-Clause license check-in: 5b9690f2b2 user: context-bot tags: trunk
05:49
License ctx under the BSD 2-Clause license

The plugin manifest names it and release archives carry it beside libfossil's. closed check-in: 2b6dbda9ad user: dmestas tags: license

05:11
Build either Linux architecture with tools/dist-linux.sh check-in: 992dc470d9 user: context-bot tags: trunk
04:57
Build either Linux architecture with tools/dist-linux.sh closed check-in: a4aa00bbad user: dmestas tags: distarch
04:52
Release archives as a Claude Code plugin, and one command for every check check-in: 9cb40830bf user: context-bot tags: trunk
04:44
Fail make fuzz when a fuzzer fails; the pipe through tail hid its status closed check-in: 5fbe03cc46 user: dmestas tags: check
04:39
Release archives as a Claude Code plugin, and one command for every check

make dist builds build/dist/ctx-VERSION-OS-ARCH.tar.gz: bin/ctx, the ctx and ctx-wiki skills, hooks that archive each session, a local marketplace entry, install notes and libfossil's license. On Linux zlib is linked statically. tools/dist-linux.sh builds the Linux archive in Ubuntu 22.04 under docker so it runs on glibc 2.34 or later. make check runs everything CI runs, and CI now runs make check. check-in: ee9ba5ffcd user: dmestas tags: check

04:38
Run the suite and every saved fuzz input under Fil-C check-in: 4f68b6ac9b user: context-bot tags: trunk
04:30
Add the fuzz replay driver and the Fil-C script closed check-in: 0089dfd06a user: dmestas tags: filc
04:30
Run the suite and every saved fuzz input under Fil-C

make filc builds ctx and the four fuzz harnesses with Fil-C, runs test/run.sh against the Fil-C binary and replays the seeds and corpora through a small driver that needs no libFuzzer. tools/filc.sh fetches a pinned, checksummed Fil-C release and zlib, builds zlib with it, and runs make filc; it skips on anything but Linux x86_64 and aarch64. CI runs it. The link rule now honours LDFLAGS. check-in: a751f20e85 user: dmestas tags: filc

04:08
Version the schema, and rebuild derived tables instead of migrating check-in: 3345845225 user: context-bot tags: trunk
04:02
Version the schema, and rebuild derived tables instead of migrating

State and derived tables are split into schema/state.sql and schema/index.sql, both applied on open. When the derived version changes, ctx rebuilds those tables from the repositories once; ctx rebuild does it on request. Technotes now record each turn's id, so a rebuilt index still knows which turns it holds. closed check-in: c7e932c08b user: dmestas tags: schema-version

03:53
Fuzz the parsers and run the suite under sanitizers check-in: 01079ca3a2 user: context-bot tags: trunk
03:50
Make the eval's copy without the wiki before parallel runs share it closed check-in: 942c243e70 user: dmestas tags: fuzz
03:43
Fuzz the parsers and run the suite under sanitizers

make sanitize runs every test under AddressSanitizer and UBSan, and make fuzz runs libFuzzer on redaction, transcript lines, wiki pages and technotes, checking properties as well as crashes. They found real bugs, fixed here: a token glued to another survived redaction, redaction was not idempotent around Doppler output and URL credentials, and a Doppler rule matched its own marker. Two findings are in libfossil and are reported there; only those checks are off, only for those objects. check-in: e827ba9421 user: dmestas tags: fuzz

02:58
Add ctx inject, a selective prompt hook, and an eval condition for it check-in: b1d696dce4 user: context-bot tags: trunk
02:56
Add ctx inject, a selective prompt hook, and an eval condition for it

It adds up to three turns from earlier sessions of the same project, only when a turn holds at least two of the prompt's rare words, and nothing otherwise. The eval can now compare the skill with and without it. Not yet installed. closed check-in: 5357595347 user: dmestas tags: inject

02:52
Link each cited check-in from a page sources section check-in: 2964b48ad7 user: context-bot tags: trunk
02:50
Link each cited check-in from a page's Sources section

In a Markdown page Fossil records a backlink for [label](/info/HASH) but not for a bare [HASH], so check-ins could not list the pages citing them. closed check-in: 971af3351b user: dmestas tags: backlinks

02:28
Keep NUL bytes out of technotes, and read old ones whole check-in: e0ce171eca user: context-bot tags: trunk
02:26
Keep NUL bytes out of technotes, and read old ones whole

Tool output can carry NUL bytes. Stored in a technote they end the text for any C reader, so another machine indexed only part of 22 sessions. New turns are stored without them, and existing technotes are read by length. closed check-in: 757ca132d4 user: dmestas tags: nul-bytes

02:20
Keep undated turns whole when another machine rebuilds sessions check-in: ffab6e6436 user: context-bot tags: trunk
02:18
Keep undated turns whole when another machine rebuilds sessions

A turn with no timestamp has a heading with nothing after its role, and parsing read on into the next line. About four percent of real turns were merged into the turn before them on the other machine. closed check-in: e964676ffd user: dmestas tags: undated-turns

02:08
Add sync, and restore tests a bad edit removed check-in: 1e2424b516 user: context-bot tags: trunk
02:06
Add sync, and restore tests a bad edit removed

ctx remote and ctx sync push and pull each repository with a remote. A second machine starts with ctx init --clone and indexes the first one's sessions. A claim syncs before and after, so two machines cannot both take a ticket.

The previous landing's edit to the deadline test deleted the tests that followed it, from audit through retirement. They are back. closed check-in: 107db11b5e user: dmestas tags: sync

01:43
Measure the wiki against plain sources, and fix what that found check-in: e86a9ed2a9 user: context-bot tags: trunk
01:41
Measure the wiki against plain sources, and fix what that found

The eval gains a sources-only condition and two wiki conditions, and grades in batches. ctx wiki why keeps a sentence whole across abbreviations. The deadline test no longer depends on how busy the machine is. closed check-in: b8b2a89501 user: dmestas tags: wiki-eval

01:12
Tell the compile skill to keep hedges, scope and credit check-in: b8b47e198c user: context-bot tags: trunk
01:11
Tell the compile skill to keep hedges, scope and credit

A review of the first compiled pages found five of 28 claims overstated, each by dropping a caveat or attribution the source carried. closed check-in: 2947c16a6f user: dmestas tags: skill-caveats

01:10
Fix what the first real run of the wiki found check-in: 891e1788df user: context-bot tags: trunk
01:08
Fix what the first real run of the wiki found

Repository names keep only letters and digits, because libfossil refuses a name that extends another with an underscore. Spaces in page links are encoded instead of breaking the link. The compile skill says where tickets live. closed check-in: f14ffaa27a user: dmestas tags: real-run-fixes

00:57
Clone project repositories, and add the first research sources check-in: 891147b28d user: context-bot tags: trunk
00:55
Clone project repositories, and add the first research sources

zit repositories are not plain Fossil files, so a project is cloned over the sync protocol. The sources are the research behind the wiki design. closed check-in: b9985e5407 user: dmestas tags: pilot-sources2

00:53
Add the wiki compile skill and the first research sources check-in: f1f018f0f5 user: context-bot tags: trunk
00:51
Add the wiki compile skill and the first research sources

The sources are the research behind the wiki design, with recorded origins. closed check-in: d19b59060e user: dmestas tags: pilot-sources

00:50
Generate wiki index and health pages and a review queue check-in: 9b3311104b user: context-bot tags: trunk
00:48
Generate wiki index and health pages and a review queue

The index, health page and queue are computed from what is stored. Staleness times impact orders review. Automatic retirement touches only what nothing uses, and anything else goes to a person as a ticket. closed check-in: 415a62c12b user: dmestas tags: queue

00:43
Retire old information without erasing it check-in: 66d706d0fd user: context-bot tags: trunk
00:41
Retire old information without erasing it

A source can be replaced, amended or retracted through an append-only event. Search stops serving what was retired, and re-pinning moves each claim whose quote survives and opens a ticket for each one that does not. closed check-in: d27b3ce9c1 user: dmestas tags: retire

00:32
Add the wiki write gate and provenance commands check-in: 6d2e57dd34 user: context-bot tags: trunk
00:30
Add the wiki write gate and provenance commands

ctx wiki save refuses a page unless every claim is cited, every quote exists at its pinned version, and every source has a recorded origin. ctx wiki why follows a claim back to its origin, and ctx source uses lists what depends on a source. closed check-in: 16e7803c2a user: dmestas tags: wiki-gate

00:24
Index sources and wiki pages and check their citations check-in: b03078cbfd user: context-bot tags: trunk
00:22
Index sources and wiki pages and check their citations

ctx index reads a project repository at trunk, makes sources and Markdown wiki pages searchable, and records each citation with its pinned check-in, file hash and whether its quote is really there. ctx project pull updates the repository. closed check-in: c3db3464d4 user: dmestas tags: index