50 ancestors of bf51212f614aecbc
|
2026-11-24
| ||
| 14:02 | guard post: a lone surrogate decodes to U+FFFD so the reply stays UTF-8; a result over 16 MB exits 1 with a message instead of passing silently; howto names what passes unchecked closed check-in: bf51212f61 user: dmestas tags: secrets-guard | |
| 13:52 | guard post: one pass over the JSON's strings (linear, every duplicate key, NULs kept), a field named data redacted with only base64 blobs left alone, and a host name under dp.st. not taken for a Doppler token check-in: eb30db897d user: dmestas tags: secrets-guard | |
| 13:30 | ctx guard: keep secrets out of the conversation. PreToolUse turns back direct reads of secret files (Read on .env, cat/grep of one, < from one, env or printenv alone) with a way to use them unprinted; ctx guard post (PostToolUse) returns the tool's result with the archive's redaction applied, as updatedToolOutput for pic and updatedMCPToolOutput for Claude Code's MCP tools. Redaction now also catches Doppler service tokens with a config (dp.st.prd.TOKEN), version 4, so the archive is redacted again. check-in: 100c35d51c user: dmestas tags: secrets-guard | |
| 11:37 | land stats-pic-journal check-in: 0ee3d8ff0d user: context-bot tags: trunk | |
| 11:11 | stats reads the workspace's pic journal: pic refuses its user database ~/.pic/pic.sqlite as --db, so ctx stats runs pic usage --lapse on .pic/journal.sqlite in the working directory (CTX_PIC_JOURNAL overrides, empty skips) closed check-in: 6b3f03353c user: dmestas tags: stats-pic-journal | |
|
2026-11-23
| ||
| 23:19 | land skill-catch-up check-in: 1257b95b32 user: context-bot tags: trunk | |
| 23:07 |
ctx skill: check archived work against its real state before reporting it
When picking up earlier work, an agent checks each branch, PR, ticket or check-in the archive mentions against git, gh, zit or the forge, and says which threads are merged, open, in flight, reverted or only planned. closed check-in: 78ad2dd0e7 user: dmestas tags: skill-catch-up | |
| 20:47 | land turn-user check-in: 791b2bd0d3 user: context-bot tags: trunk | |
| 20:24 |
ctx turn --user: show only what the person typed in a stretch
The ctx repeats review (#27) found agents piping ctx turn through grep to read the user's side of a stretch. --user does it directly and says when the stretch has none. The ctx skill and how-to use it. closed check-in: f634c462a6 user: dmestas tags: turn-user | |
| 02:58 | land artifacts-midnight check-in: 149ef419ec user: context-bot tags: trunk | |
| 02:36 |
artifacts: find a publish's command across a day boundary
A session is archived one document per day, so a publish just before UTC midnight can have its result in the next day's document. The command lookup searched only three turns back in the result's own document, so the publish was dropped (publisher pages) or lost its title (Artifact tool). It now also searches the last turns of the same session's previous day when the result is among a day's first turns. The publisher test failed between 00:00 and 02:00 UTC for this reason; a fixed-date test now covers it. closed check-in: 09cd4cfd60 user: dmestas tags: artifacts-midnight | |
| 02:35 | land repeats check-in: c1de11a33a user: context-bot tags: trunk | |
| 02:13 |
ctx repeats: the shell commands agents run again and again, grouped by shape
Normalises archived shell calls (heredocs to their first statement, quoted text, scratch paths, home, hex ids and numbers to placeholders; leading cd, echo and assignments, quiet redirects and trailing head, tail or cut -c dropped), groups by the first six words, and lists the top shapes with session, call and project counts and the latest turn. --inline keeps calls that hand an interpreter a script. ctx_shape(command) exposes the shape to ctx sql. Reads the redacted archive only; no model, no writes. Ticket #27. closed check-in: 403549a9f6 user: dmestas tags: repeats | |
|
2026-11-22
| ||
| 20:32 | land stats-pic check-in: 8e764bec7b user: context-bot tags: trunk | |
| 20:10 | ctx stats ends with pic's measured compaction savings, from pic usage --lapse closed check-in: 03da28c1f3 user: dmestas tags: stats-pic | |
| 17:42 | land docs-drift check-in: 2cc283c1ad user: context-bot tags: trunk | |
| 17:31 | Docs: name ctx gate, learned rules and ctx page; say docs checks never read code; test that docs and commands agree closed check-in: 922a62f1a3 user: dmestas tags: docs-drift | |
| 12:35 | land libfossil-8aa1823ae1 check-in: 7a387f8571 user: context-bot tags: trunk | |
| 12:35 | Re-vendor libfossil from sql-ext-int 8aa1823ae1: autosync fixes and the onefile write-lock fix closed check-in: cd0ccbd7cf user: dmestas tags: libfossil-8aa1823ae1 | |
|
2026-11-21
| ||
| 13:17 | land ctx-now check-in: 695c5d4c7e user: context-bot tags: trunk | |
| 13:06 |
CTX_NOW: run as if the clock read a past moment
A default SQLite VFS that answers the time with CTX_NOW moves every 'now' in every query, so a replay of a past moment, on an archive copy cut there, gets the brief it would have had. An unreadable value is refused. closed check-in: 08c5064553 user: dmestas tags: ctx-now | |
|
2026-11-20
| ||
| 22:30 | land telemetry-page check-in: 15ad4cb4f8 user: context-bot tags: trunk | |
| 22:19 | ctx telemetry page: charts of hook calls, times, cut-offs, decisions and harnesses from the Parquet files, queried through duckdb closed check-in: f78798bfdc user: dmestas tags: telemetry-page | |
| 22:11 | land telemetry-parquet check-in: 74215439ef user: context-bot tags: trunk | |
| 22:00 | Compare only permission digits in the telemetry mode test; a setgid parent adds 2000 closed check-in: 0ce0c5fa21 user: dmestas tags: telemetry-parquet | |
| 21:57 | Read file modes with GNU stat first; on Linux stat -f is file-system status check-in: 23ffb2d238 user: dmestas tags: telemetry-parquet | |
| 21:06 | Keep the call log as daily Parquet files: ctx telemetry roll | path. End lines now record exit, outcome, bytes, harness and session; never prompt, tool or file text. check-in: 47ce90b6ce user: dmestas tags: telemetry-parquet | |
| 12:17 | Read pic rows on ctx hook from pic check-in: 0096f1806c user: context-bot tags: trunk | |
| 12:06 |
Read pic's rows on ctx hook from pic, never its transcript_path
pic will run ctx hook after each reply and on exit, with transcript_path naming pic.sqlite and the conversation's rows committed first. On a hook marked "harness": "pic", ctx no longer queues transcript_path as a Claude Code transcript; it reads pic's database at once (ctx scan --pic, cheap when nothing changed), then runs the hourly scan when due, as before. closed check-in: ca35b2f5fc user: dmestas tags: pic-hook-archive | |
| 01:06 | Keep memory working in any harness check-in: f0aab8b69b user: context-bot tags: trunk | |
| 00:44 |
Keep memory working in any harness: tool names in any case, a remember line, an index line
pic sends lowercase tool names (bash, read, edit, write, grep, find, ls), and it writes no memory notes the way Claude Code's model does. - ctx gate, ctx hook post and the docs nudge compare one canonical tool name (lowercased; Glob is find, MultiEdit is edit), and ctx stats counts shell calls recorded in either case. - The session-start offer always carries one line saying what to save and how: ctx remember "TEXT", with --project '*' for every project. Its room is reserved before rules are placed, so a project whose rules fill the cap still gets it. - When rules are left out, the list ends with "N more: ctx rules", since the whole index is no longer loaded by the harness. - Every project with an archive now gets an offer, because the remember line is always there. closed check-in: a68b13a1e8 user: dmestas tags: harness-neutral-memory | |
| 00:05 | Offer pic the memory notes Claude Code would load itself check-in: 952a8a7de4 user: context-bot tags: trunk | |
|
2026-11-19
| ||
| 23:43 |
Offer pic the memory notes Claude Code would load itself
pic will run ctx's hooks from ~/.pic/hooks.json and marks each run with "harness": "pic" in the input and PIC_HOOK=1 in the environment. ctx rules offer leaves out the memory folder of the starting directory because Claude Code loads it; pic loads no memory folder, so on a hook from pic those notes are offered too. closed check-in: 4223fe05aa user: dmestas tags: pic-hooks-offer | |
| 19:29 | Rules for every coding agent, not only Claude Code check-in: 5b376bda6d user: context-bot tags: trunk | |
| 19:07 |
Rules for every coding agent, not only Claude Code: global and project instruction files from one agent table
ctx assumed Claude Code was the only agent. A table of agents (claude, codex, gemini, pi, opencode) now gives each one's global instruction file, with its env override, and the project file names it reads. - Every existing global instruction file is a * rule with an agent: line; project CLAUDE.md, AGENTS.md and GEMINI.md are imported, and whole instruction files are excluded everywhere by name from the table. - The covered check judges a project rule only against the global instructions of the agents it reaches (rule_reach: Claude Code memory and ctx remember rules reach claude), and retires it only when the quote is in a global file of every one of them. Reasons name the files, kept in ctx_rule_covered_file; old CLAUDE.md-worded retirements still revive. - An import retires a global instruction-file rule only when its file is gone from disk, so scans run with different CODEX_HOME, XDG_CONFIG_HOME or CLAUDE_CONFIG_DIR no longer retire and re-import each other's globals; other rules retire as before when an import no longer sees them. - Messages and docs say global instructions and name the file. Each instruction-file rule gets one new version on the first scan after upgrading. closed check-in: f3ab690bb4 user: dmestas tags: agent-instructions | |
| 19:00 | Archive pic conversations from rows in pic.sqlite check-in: 1521145a06 user: context-bot tags: trunk | |
| 18:39 |
Archive pic conversations from rows in pic.sqlite (picu_pi_session_line)
pic is moving its conversations off ~/.pic/sessions files into a table of ~/.pic/pic.sqlite holding the same Pi v3 lines. ctx now reads those rows: each decoded line goes through the existing Pi path, so turns get the same pi- - The session id comes from the header row, kept in a per-conversation cursor (ctx_pic_cursor) with the last seq read and the workspace; a conversation whose header can't be decoded is skipped.
- pic.sqlite is opened read-only, the conversation list is read first and rows in chunks, so no read is held across ctx's commits; a WAL database with no -wal or -shm is read immutable and re-checked after each read.
- An unchanged database (size, mtime and change counter) is skipped on the hourly scan.
- ctx exclude --project and --remove work for pic conversations by their workspace.
- Deflated rows are inflated with zlib, with size checks; a bad row is skipped with a warning.
- CTX_PIC_DB sets the path (default ~/.pic/pic.sqlite); empty skips it. | |
| 17:17 | Reduce rule redundancy: covered-by-global retirement, identical-copy collapse, global-rule offers, restore check-in: 0f26acda1d user: context-bot tags: trunk | |
| 17:07 |
Reduce rule redundancy: covered-by-global retirement, identical-copy collapse, global-rule offers, restore
A benchmark on real rules found reworded duplicates inside a project are rare; the redundancy is project rules that restate the global CLAUDE.md, identical copies, and one rule saved in several projects. - ctx rules restore KEY undoes any retirement or replacement, and neither automatic check retires that rule again while its text and the global text are unchanged. - Identical copies in one project collapse after each import (frontmatter and spacing ignored); a copy comes back when the rule it was collapsed into leaves force. - ctx rules covered sends active project rules to the automatic judge in bounded batches and retires one only with a verbatim quote of at least 20 characters from the global CLAUDE.md; the rule comes back when the quote leaves the global text, and a verdict is skipped if the rule changed during the call. - The decisions page offers groups of the same rule in several projects as one global rule; make global acts only on the listed keys, needs two projects, and refuses CLAUDE.md, AGENTS.md, global rules and rules with an until date. - ctx rules activity lists collapses, covered retirements and restores. tools/rule_redundancy.sh reports what each step would do on a copy of an archive. On a copy of the live archive: 380 active rules, 3 retired as covered, 0 identical copies, 10 cross-project groups offered. closed check-in: 35bb724e4f user: dmestas tags: rule-redundancy | |
| 15:42 | Keep a retired memory rule retired while its file is unchanged check-in: 8c855fd9ae user: context-bot tags: trunk | |
| 15:22 |
Keep a retired memory rule retired while its file is unchanged
ctx rules retire on a rule read from a memory file was undone by the next import, which runs in every hourly scan: the unchanged file was saved again without its status. Import now leaves a rule retired or replaced on purpose alone while the file's text is the same. Editing the file is a new statement and brings the rule back, and a file that returns after its removal retired the rule revives it as before. closed check-in: 2bb91b0d1f user: dmestas tags: rule-retire-sticks | |
| 11:43 | Archive Pi and pic session files: a second format in the same pipeline, from ~/.pi/agent/sessions and ~/.pic/sessions (CTX_PI_ROOTS), searchable and readable like Claude Code turns check-in: fc25af9a2a user: context-bot tags: trunk | |
| 11:33 | The scan test waits for the hourly scan the hook started in the background closed check-in: 6690e7eea7 user: dmestas tags: pi-sessions | |
| 11:19 | Archive Pi and pic session files: a second format in the same pipeline, from ~/.pi/agent/sessions and ~/.pic/sessions (CTX_PI_ROOTS), searchable and readable like Claude Code turns check-in: 91b6237cac user: dmestas tags: pi-sessions | |
| 02:01 | land bench-docs-tickets check-in: 9105c67d40 user: dmestas tags: trunk | |
| 01:52 | Record the docs-tickets benchmark, before and after the offer change: closures right and guarded, prods delivered, uptake still fails closed check-in: 62463acb84 user: dmestas tags: bench-docs-tickets | |
| 01:04 | The docs-ticket offer is one line that says to claim before working; ctx ticket done on a docs ticket is refused while the problem is still in the documents check-in: 2511537072 user: context-bot tags: trunk | |
| 00:54 | The docs-ticket offer is one line that says to claim before working; ctx ticket done on a docs ticket is refused while the problem is still in the documents closed check-in: 54bcf456d9 user: dmestas tags: docs-offer-v2 | |
|
2026-11-18
| ||
| 23:15 | Redact the stored archive once more with redaction that repeats until stable check-in: 8ac818e396 user: context-bot tags: trunk | |
| 22:56 | Redact the stored archive once more with redaction that repeats until stable closed check-in: bfdc97d36f user: dmestas tags: redact-v3 | |
| 22:47 | ctx status --json reports the current project for the status line; redaction repeats until stable, so a cut that changes what a later rule sees can no longer leave a secret behind (fuzz seed kept) check-in: f9f45e55a5 user: context-bot tags: trunk | |