# Changelog Notable changes to Graphicle: the graph engine (`graphicle-graph`), the memory library (`graphicle-memory`) and the `graphicle` program. ## 0.1.20 - 2026-11-29 Every crate is at 0.1.20, and `graphicle --version` prints `graphicle 0.1.20 (core)`. The Python and TypeScript SDKs are at 0.1.20 too. This is a security release: indexing a repository no longer looks at a network path the repository names, which on Windows could hand the user's credentials to another machine. No migration of the store runs. As after every release, each file is extracted again once (the extraction cache is kept per version). ### Security - Indexing a repository no longer looks at a path on another machine that the repository itself names (the class of Graphify's GHSA-g6c9-j4vm-mwq4, fixed there in 0.9.115 for shell scripts and `.git` files, reported to Graphify by Torch4084). On Windows, looking at a path such as `\\host\share\x` or `//host/share/x` makes Windows connect to that host and offer the user's credentials, so a hostile repository could collect them from anyone who synced it, with default settings. Such paths could come from a shell script's `source` line or script invocation, a Markdown link, a solution or project file's project reference, a `tsconfig.json`, a `.git` file or folder (`gitdir:`, `commondir`, alternates, config includes and values) or a symbolic link. Now: - every shared reader (file checks, path resolution, the source reader) refuses a path on another machine during a scan, unless the folder being indexed is itself on a network share and the path is inside it; a reference to such a path stays in the graph as text but is never opened; - a symbolic link to another machine is not followed, unless the path being resolved is itself on one; - a shell script's paths must also stay inside the folder being indexed, so a script's link to a file outside it is no longer made; - git is not run in a checkout whose git files (`.git` file or folder, `commondir`, alternates, config) lead it to another machine or include other config files; such a checkout is indexed without git, so its `info/exclude` and `core.excludesFile` rules are not applied. Two path separators of either kind at the start count as another machine, as do Windows device and `\??\` paths other than a local drive. A path is also refused when one of its folders below the folder being indexed (or anywhere in it, outside every indexed folder) is a link to another machine. Known limits, to be lifted in a later release: a repository on a network share whose git files point into the same share is indexed without git, and Cargo workspace links between crates on a share can be missing. - url goes from 2.5.8 to 2.5.9 in every crate (with form_urlencoded 1.2.3), for RUSTSEC-2026-0592: `Url::origin()` recursed once per nested `blob:` prefix, so one crafted URL, such as a next-page link from a connected server, could overflow the stack and stop the program. - A project's status (`graphicle status --json`, the `repository_status` tool) reports `write_lock`, the process-wide report of slow write-lock holders with their code locations, only to a credential that may administer the workspace; reader and other keys get the rest of the status without it (reported by @andreimerlescu). ### Fixes - An empty `GRAPHICLE_DATA_DIR` or `XDG_DATA_HOME` counts as unset: an empty `GRAPHICLE_DATA_DIR` made `graphicle init` fail with "not writable", and on Linux an empty `XDG_DATA_HOME` put the store in the folder the command ran from. The Python SDK already read them this way (#47, by @leninworld). - An empty `CLAUDE_CONFIG_DIR` or `CODEX_HOME` counts as unset in `graphicle sessions import`, which failed with "Transcript path not found", and in `setup` and `connect codex --hooks`, which wrote Codex's `hooks.json` to the current folder (#48, by @leninworld). - An empty `CARGO_HOME` counts as unset, as in Cargo: `graphicle update` and `graphicle uninstall` did not recognise a `cargo install` and gave the install script and `rm` commands instead of Cargo's (#49, by @leninworld). - An empty `PGPASSFILE` or `HOME` counts as unset when reading the PostgreSQL password file, as in libpq: an empty `PGPASSFILE` looked for a file named "" instead of `~/.pgpass`, and an empty `HOME` read `.pgpass` from the current folder (#50, by @leninworld). ## 0.1.19 - 2026-11-21 Every crate is at 0.1.19, and `graphicle --version` prints `graphicle 0.1.19 (core)`. The Python and TypeScript SDKs are at 0.1.19 too. This release adds a read-only mode, fixes a vulnerable zlib dependency, gates releases on known vulnerabilities and takes in part of Graphify 0.9.104 to 0.9.113. No migration of the store runs. The engine takes in Graphify 0.9.104 to 0.9.113 in part (0.1.18 followed 0.9.103); it still reports Graphify 0.9.103 until the rest of that range, and 0.9.114, are ported. As after every release, each file is extracted again once (the extraction cache is kept per version). The AST cache schema goes from 11 to 12, which is part of the code graph's format, so each project's code graph is built again at its next sync. ### Security - zlib: libz-sys goes from 1.1.31 to 1.1.33 in every crate, for RUSTSEC-2026-0544 (CVE-2026-85091), a heap buffer overflow in zlib's `gz_vacate()` reached through non-blocking `gzwrite()` and `gzprintf()`. ### Added - Read-only mode: `--read-only` on any command, or `GRAPHICLE_READ_ONLY=1`, opens a SQLite data folder without changing its files. Reads such as `graphicle context`, `graphicle call context` and `graphicle pack` answer, also from a folder that cannot be written: the store, its query files and the count of tokens served are not written, and a folder's changes are not synced before an answer (the answer says so). Commands that write, such as `sync`, `login` and `config set`, are refused with a message. The folder must have been last used by this version, with an empty write-ahead log (`docs/configuration.md`, A read-only data folder). - Releases check known vulnerabilities: a `vulnerabilities` workflow ranks RustSec advisories by severity on pull requests, on main, daily and before a release, and a release is not published while a high or critical one is neither fixed nor accepted with a reason in `.github/advisories.toml` (#46, by @andreimerlescu). ### Fixes - A folder no project was synced from, given as `--project` (a store or a folder moved or unpacked elsewhere), is refused with a message that lists the projects by id and the folder each was synced from; before, `graphicle call` passed the path on and answered "Repository not found in this workspace". - Cross-repository links of npm packages follow npm's prerelease rule: a prerelease is linked only by a range that names a prerelease of the same version (#44, by @dajiaohuang). - OpenCode: setup gives up on `opencode --version` after 5 seconds instead of waiting for a program that does not answer. - The docs point questions to GitHub Discussions. ### Code graph engine (from Graphify 0.9.104 to 0.9.113) - Solidity: members, free functions and types whose names differ only by a leading `_` or by case get their own nodes; a call on a typed receiver (`IERC20 token; token.transfer()`, `IERC20(a).transfer()`) binds to the type's own declaration, and a call attached by `using A for T` binds to the library or free function it attaches (#5027, #5060, #5062). - C#: constructors (instance, static, primary) are nodes of their own and own their calls; `new X(...)`, `: base(...)` and `: this(...)` link the overload their argument count fits. Calls in property and indexer accessors and in operators belong to that member (#5054, #5056). - PHP, Java, Kotlin and Dart members, and module-level declarations in many languages, whose names differ only by a leading `_` or by case no longer collapse into one node (#2810). - JavaScript and TypeScript: a destructured `require` of a barrel file reaches the declaring symbol (#5034); names captured from enclosing scopes, or a `this.x = function` member's parameters, no longer make false `indirect_call` edges (#5217, #5241). - Python: aliased imported calls are linked from methods and decorated functions (#5214); a subscript annotation's value is no longer its own generic argument (#5113). - Go: an internal `_test.go` file's methods fold into the package type (#5209), and a bare receiver type resolves in the caller's own package when two packages declare it (#5242). Variadic parameters reference their type in Go, Java, C#, Scala and PHP (#4638). - SQL: comma joins and `@dblink` tables in routine bodies (#5169), Oracle `[NON]EDITIONABLE` routines (#5167), and no table node for an unparsed derived table's alias (#5147) or a non-ASCII table name (#5250). - YAML: CloudFormation intrinsic tags (`!Ref`, `!Sub`) no longer fail the whole file (#5071). Maven POM namespaces in any spelling (#5124). - Updates: a missing graph.json, or a changed `package.json`, `package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `jsconfig.json` or `tsconfig*.json`, rebuilds the whole graph (#5016, #5017); hyperedges survive an incremental merge (#5081); a degraded semantic result is not replayed from the cache (#5083); the write guard no longer counts re-extracted or pruned semantic sources as lost (#5107); the report keeps the token cost from cost.json (#5154). - Query, path and affected: a same-label seed that is a term's only match is kept (#5027); a label behind a schema or namespace qualifier matches its name (#5080); `--context inherits` and `implements` reach heritage edges (#5178); `path` refuses an endpoint of unknown words (#5079) and prefers a route away from import hubs (#5153); `affected ` reaches callers of nested members (#5094); `explain`, get_node and get_neighbors resolve an exact node id before ranking (#5343). - Watch reloads the ignore rules when `.gitignore` or `.graphicleignore` changes (#5033). The wiki keeps both articles of labels that fold to one name (#5087). Malformed learning overlay and global manifest entries are skipped one by one (#5019, #5020). - Analyze lists two-file import cycles before its enumeration cap fills (#5267). The fuzzy label merge keeps a prefixed word apart from its base (`synchronous`/`asynchronous`). The Kilo installer refuses to rewrite a config it cannot parse (#5265). - LLM extraction: a provider's `extra_headers` are sent (#3680); a reply with several graph fragments is refused instead of cached as its first (#5192); a truncated or timed-out document slice is retried or marked for re-extraction (#5072, #5099). ## 0.1.18 - 2026-11-16 Every crate is at 0.1.18, and `graphicle --version` prints `graphicle 0.1.18 (core)`. The Python and TypeScript SDKs are at 0.1.18 too. This release adds OpenCode, makes updates of large graphs faster and reports incomplete dependency invalidation. No migration runs, and graphs are not rebuilt: an update writes the same graph and report as 0.1.17. ### Added - OpenCode: `graphicle setup` finds OpenCode (its `~/.config/opencode` folder or the `opencode` program), and `graphicle connect opencode` and `graphicle disconnect opencode` add and remove the project's MCP server in OpenCode's global `opencode.json` (or `opencode.jsonc`, comments kept). The entry takes OpenCode 2's shape (`mcp.servers`) when the file already uses it or `opencode --version` reports 2 or later, else OpenCode 1.x's (`mcp`, which 2.x still reads); `disconnect` removes it from both. The graph engine's OpenCode skill and plugin stay a separate install: `graphicle graph install --platform opencode` (#43, requested by @rfrezino). - `GRAPHICLE_PROFILE=1` also times an update's read of the stored graph, its manifest load and its split of changed files. ### Fixes - Invalidation: a walk that reaches the 100,000-artifact limit used to stop without a sign, leaving the rest of the dependents fresh. The change still goes through, and the source now carries an `invalidation_incomplete` marker that `freshness` and every repository's freshness count, as they count an outdated answer. The marker stays until a walk from that source finishes, or until the document or project is removed, so a source with more than 100,000 dependents keeps it (#32, by @dajiaohuang). ### Performance - Updates of large graphs: matching each new community to the previous run's, which keeps community ids stable, counts overlaps from each node's communities instead of comparing every pair of communities, with the same result. On Kubernetes v1.37.1 (437,234 nodes, about 22,000 communities, 4 vCPUs) the clustering step of an update went from about 22 s to 10 s. - An update no longer loads the whole graph to learn that its HTML view cannot render (more communities than the view's node limit); it decides from the counts it already holds, with the same message. On the same Kubernetes graph that step went from 6.4 s to 1.5 s. ### Documentation - The README leads with what Graphicle does, a quick start, and Graphicle 0.1.17 against Graphify 0.9.108 on Kubernetes; `docs/benchmarks.md` has the method and every measurement. ## 0.1.17 - 2026-11-13 Every crate is at 0.1.17, and `graphicle --version` prints `graphicle 0.1.17 (core)`. The Python and TypeScript SDKs are at 0.1.17 too. This release collects fixes from contributors. No migration runs; graphs and the memory library's derived data are rebuilt where the label deduplication fix or the new code key changes them. ### Behaviour changes - Python SDK: `Tools` leaves out a tool that does not declare `readOnlyHint: true` unless `include_write=True`, as the service already treats such a tool as a write. Before, a tool with no annotations was offered as read-only (#31, by @dajiaohuang). - An existing Qdrant collection must use cosine distance, the distance Graphicle ranks with; one with another distance is refused with a message instead of returning a wrong ranking (#39, by @dajiaohuang). ### Fixes - Backup archives: `verify` and `restore` refuse an archive whose trailer row count differs from its rows, or that has bytes after the trailer (#30, by @dajiaohuang). - An agent file's backup is written to a temporary file and published by a hard link, so a stopped write never leaves a partial backup under the backup's name (#35, by @dajiaohuang); on a filesystem without hard links it is published by rename. A temporary copy left by a stopped process ends in `.graphicle-bak`, so it is kept out of Git and of folder syncs like every backup. - PostgreSQL: `sslmode=verify-full` and `verify-ca` are read as `require` without changing other connection settings, such as a password that contains the same text (#41, by @dajiaohuang). - The workflow status of a job older than the 100 most recent is found by its id (#42, by @dajiaohuang). - A standalone version such as `1.2:3` in an answer is not read as a file citation; `pkg/1.2:4` still is (#40, by @dajiaohuang). - Label deduplication in the graph engine points every edge of a duplicate at the final surviving node when a node is replaced twice (#29, by @dajiaohuang), resolving each chain once after the pass. Graphify 0.9.103 keeps such edges on the removed node; the difference is recorded in the upstream review. - Python SDK `Memory`: `get_all`, `delete_all` and lookups by id leave out documents without Memory's session schema, such as another connector's document with a session-shaped id (#34, by @dajiaohuang). - The memory library's code key includes its enabled features, so builds with different features no longer share a key (#36, by @dajiaohuang). ### Documentation - The Python SDK describes which `Tools` may reach other projects (#33) and that `AsyncClient` factories stay synchronous (#37); the size report's byte estimate is described as it is computed (#38), all by @dajiaohuang. ## 0.1.16 - 2026-11-11 Every crate is at 0.1.16, and `graphicle --version` prints `graphicle 0.1.16 (core)`. The Python and TypeScript SDKs are at 0.1.16 too. This release collects fixes from contributors and from the 0.1.15 release checks; nothing in it changes stored data. ### Security - The reference comparison environment of the graph engine (`crates/graphicle-graph/tools/reference-requirements.txt`) pins pypdf 6.21.4 instead of 6.21.2, for its security advisories. pypdf is used only by that comparison environment, never by Graphicle itself. ### PostgreSQL - PostgreSQL 17 and 18 can hold a store: since 17, `JSON` (a keyword since 16) can no longer name a function or a parameter unquoted, so the store's `json()` function and `json_each`'s `json` column are now quoted where they are created (#22, by @andreimerlescu). - A connection the server ended (a server restart, `pg_terminate_backend`) no longer panics with "Cannot start a runtime from within a runtime" when `graphicle serve` or another async caller drops it; the store goes on with a new connection. ### Fixes - `graphicle-graph extract --no-cluster` with a new `--exclude` writes the graph without the excluded files instead of leaving the outputs untouched (#26, by @dajiaohuang). - The MCP config extractor reads VS Code's `.vscode/mcp.json`, whose servers are under a root `servers` map (#25, by @dajiaohuang). - `chunks` counts a document of which only some passages were kept as left out in its coverage report (#24, by @dajiaohuang). With `prefer: newest`, a document the passage bound cuts is both kept and left out, so `omitted_documents_are` is then `earliest_listed`, where it was `oldest`. - `sync.abort` reports `"aborted": false` when the sync was not pending or preparing, or does not exist (#27, by @dajiaohuang). - The global graph hashes its input files in 64 KiB chunks instead of reading each whole file into memory (#28, by @dajiaohuang). - The store-load benchmark writes valid JSON (`null`) for the percentiles of a phase with no samples (#23, by @dajiaohuang). - A graph build reuses its source cache when the cache lock is held only for a moment (a child process that copied the lock file's descriptor holds it until it starts its program): it tries again for up to 250 ms before building an isolated temporary tree. ### Known issues - On macOS, the test of the SQLite write-ahead-log limit (`sqlite_wal::the_write_ahead_log_stays_bounded_under_constant_reads`) can fail: the first checkpoint finds readers, and the log grows past the test's margin during the 8-second pause that follows. Its message now says how many checkpoints found readers. ## 0.1.15 - 2026-11-10 Every crate is at 0.1.15, and `graphicle --version` prints `graphicle 0.1.15 (core)`. The Python and TypeScript SDKs are at 0.1.15 too. The code-graph engine takes in the changes of Graphify 0.9.96 to 0.9.103 (16218bfc); 0.1.14 followed 0.9.95. The port ledger is pinned to 0.9.103, and its module-by-module comparison against that release has not been run yet: `migration/FILES.json` lists the 97 application modules as pending. No speed or graph-size figures are claimed for this release; the published comparison is still the one of 0.1.11 against Graphify 0.9.100. ### Security - The bundled SQLite is now 3.54.1 (rusqlite 0.41.1, libsqlite3-sys 0.39.1), for CVE-2026-119375 (RUSTSEC-2026-0459): SQLite before 3.54.0 can return stale bytes from the process's memory when it opens a database file together with a `-wal` file of a different page size. Graphicle is exposed only when it opens a SQLite store and `-wal` file that a less trusted party could have written; its own data folder is private to your user. 0.1.14 and earlier bundle an affected SQLite. ### After upgrading - The AST cache schema goes from 10 to 11 for the new extraction rules, and cache keys now keep the case of a path on every platform. The first `update` after upgrading extracts every file again; later ones use the cache as before. - To get the new Claude Code hook that restores the nudge budget after a compaction (below), run `graphicle graph install --platform claude` again. ### Updates: only the files that changed - `update` re-extracts only the files whose content differs from the manifest, plus those that left the disk (Graphify 0.9.102, #4740). An explicit path list wins; `--force`, or a missing or empty manifest, keep the full rebuild. - An incremental update needs a baseline: a rebuild that stamps the manifest also records the engine build, the settings and the configuration above the root in `.graphicle_update_base.json`. Another engine build, other settings or a manifest another command wrote take the full rebuild. - The early stop of 0.1.13 runs first and is unchanged. An update whose manifest shows no changed file takes the full update, which records the early stop; an incremental update that finds nothing to change records it too when a record vouched for the graph it started from. - A contended incremental request leaves `.pending_incremental` for the next holder instead of being dropped or turned into a full rebuild. - The resolution context handed to re-extracted files keeps the newer resolver markers of unchanged files, so a member call on a method's result, a Go struct field or a C++ qualified name in a changed file still resolves through an unchanged one. - A code-only graph (`extract --code-only`) stays code-only through hook, `update` and `watch` rebuilds (#4923). ### Extraction - **Python:** member calls bind the method they spell (#4734); a local bound to a method's result is typed from its return annotation (#4726); imports resolve across namespace packages under `src/` (#4933); a dispatch table of `module.func` values links each function as an `indirect_call` (#1566); a call on a module-level instance resolves through its class; a builtin-named call (such as `NotImplementedError`) binds a project symbol only when the file imports it (#4989); a call inside `_main` is credited to `_main`, not `main` (#4994). - **JavaScript and TypeScript:** nested functions stay scoped; CommonJS `require` and `module.exports` forms are imports and exports, so `class A extends X` reaches a required class (#4688); a member call through a default-imported object binds the object's method (#4963); relative imports with `?query` or `#fragment` resolve (#4860); an `import(...)` in a type position is no runtime dependency (#4992); a temporary parse repairs typed tagged templates and import-qualified generics the grammar fails on. - **Go:** calls in package-level `var` initialisers belong to the file (#2360); method values passed as arguments and reached through receiver fields are `indirect_call` edges (#1566); struct fields declared in a sibling file type `s.field.M()` (#3368); receiver bindings are lexical, a `pkg.T` receiver binds only to the `T` at the imported path, and calls through an interface method reach the types that satisfy it (#4962). - **Rust:** a `use` is scoped to the crate it names (#4699, #4712); a module-qualified call binds only to a free function of the caller's crate at the path the qualifier names; calls inside macro arguments bind. - **C++:** member-call receivers are typed from parameters and fields as well as locals, and names typed two ways are dropped as ambiguous (#3215); qualified out-of-line definitions bind only to the class the file includes. - **C#:** methods are labelled `Owner.Name()` in the graph (#4883); preprocessor directives are blanked before parsing and derailing `#if` branches are dropped, so later members keep their owner. - **Solidity:** `emit`, `revert` and `require(c, Err(..))` link to the event or error, and `Lib.f()` calls bind through the library, contract or interface the file declares or imports. - **Java and Kotlin** share one package and type index, so imports, inheritance and calls cross the two languages (#4874); Kotlin overloads are one target and `init` blocks belong to their class (#4935). - **PHP:** `Scope::MEMBER` in initialisers and defaults references the class it names (#4648); Markdown code spans recognise `App\Services\Mailer` and `Mailer::send()` (#4610). - **YAML** keys keep their written spelling (`on:` stays `on`, #4784), and in a `<<: [*a, *b]` merge the earlier map wins, as the YAML merge spec says. - Smaller fixes for Zig, Dart, Robot, VB.NET, Razor, COBOL, Blade, Pascal, SystemVerilog, CommonMark, Fortran, OCaml, PowerShell, Common Lisp, Scala 3, R, Elixir, Terraform and pnpm workspaces. - A declaration whose id would equal its file's id gets a unique one, and a reference never resolves to the file's own id (#4854). - `detect` warns when at least 20 files, and at least a fifth of those seen, have no extractor (#2942). ### Graph build and queries - When two edges with one relation collapse, the weaker copy is kept in the winner's `also_seen` list (#4881); a two-file import cycle is stamped so `find_import_cycles` still sees it (#4839). - `path` ends with the path's confidence, the tier of its weakest hop, and reports the weakest of equally short routes, so the confidence never overstates the connection (#4881, #4885). A `Type.Member` query resolves to the member (#4884). - `query` weighs tests, documents and configuration files lower unless the question asks about them, answers file by file, and takes `--depth N` (1 to 6); `.graphiclerc` can set `query_budget` and `query_depth`. - `affected` and `query --seed` resolve `path::Symbol` and dotted Python names as `explain` does, and `affected` exits 3 for an ambiguous name and 4 for no match (#4792). - A semantic node with evidence of its own (rationale, source URL, author) keeps its id when a fresh AST node collides with it, and the write guard refuses a graph that empties such a node's provenance (#4896, #4927). Folds into AST twins are no longer counted as losses (#4778, #4940, #4955). - A file split into slices is checkpointed only once every slice has returned (#4943); a linked worktree whose main checkout is inside the scan root is excluded, and its old records are evicted (#4683, #4912). - The tree view caps every directory's children while keeping full totals (#4766); `extract` reports what the ignore rules skipped; `explain` and the wiki list every parallel relation. - Credential redaction covers more shapes: tokens glued to identifiers, whole PEM private-key blocks, Slack refresh tokens, short JWTs and URL user info. ### Hooks, installs and models - A Claude Code install also registers a `SessionStart` hook for compactions that restores the per-session nudge budget, since the model loses the earlier nudges while the session id stays. - Bash file reads (`cat`, `head`, `sed -n` and the like) of a graphed code file get the read nudge; they are never denied. - Hooks keep working under an exported `CDPATH` (#4977); a file whose content still matches its manifest row is not flagged stale by its modification time; strict mode also covers the first `Grep` of a session. - A global OpenCode install writes its plugin to `~/.config/opencode` (#3398); a project install for Pi writes `.pi/skills` (#5011); a user-scope Gemini install writes `~/.gemini/skills` on every system (#2800); a global uninstall removes the skill registration it added to `CLAUDE.md` or `CODEBUDDY.md`, never a hand-written section. - The Claude extraction backend marks its system prompt cacheable (`GRAPHICLE_CLAUDE_PROMPT_CACHE=0` turns it off; #4835); cached tokens still count in `cost.json`. - Before a protected graph is overwritten, the daily backup is reused only when it holds every artifact beside the graph (#3769). ### Repository - A root `Dockerfile` builds the MCP server image that registries such as Glama run: it installs the latest released Linux build, prepares an empty data folder and starts `graphicle mcp` over stdio. Since 0.1.14, `graphicle mcp` refuses to start without a data folder, so such a build could not list the server's tools. - The README no longer mentions the hackathon or shows the excalidraw flow picture; [docs/flow.md](docs/flow.md) still describes the flow. ## 0.1.14 - 2026-11-08 Every crate is at 0.1.14, and `graphicle --version` prints `graphicle 0.1.14 (core)`. The Python and TypeScript SDKs are at 0.1.14 too. ### After upgrading - Nothing to do if you do not set `GRAPHICLE_DATABASE_URL`: the store stays one SQLite file, `reviews.sqlite3`, with the same tables as 0.1.13, and no database server is needed. - To move a data folder to PostgreSQL, set `GRAPHICLE_DATABASE_URL` and run `graphicle --data-dir FOLDER import-sqlite` once. See [docs/configuration.md](docs/configuration.md#the-store). ### Storage: PostgreSQL as an optional store With `GRAPHICLE_DATABASE_URL` set, Graphicle keeps new stores in PostgreSQL 16 or newer, one schema per data folder, named in the folder's `postgres.json`. Andrei Merlescu wrote the PostgreSQL store, its connection layer, `import-sqlite`, the backup archive and the load harness (#19). - A server on another machine is reached only over TLS, with its certificate and host name checked; `sslmode=disable` to such a server is refused unless `GRAPHICLE_DATABASE_ALLOW_PLAINTEXT=1` is set. A Unix socket or localhost needs no TLS. - The address and password never appear in errors, logs or files Graphicle writes. Test commands that `fix` runs do not inherit the address, and the other programs Graphicle starts (Git, the graph engine, the document worker and helpers, the browser opener) inherit neither it nor `PGPASSFILE`. Graphicle reads a password file (`~/.pgpass` or `PGPASSFILE`) as libpq does, so the password can stay out of the address. - Graphicle needs a role that may create schemas in its database and nothing more: no superuser. Every connection's `search_path` names only the data folder's schema, and restore loads only into it. A table that a backup has and this version does not create is created with plain column types only (such as `bigint`, `text`, `double precision`, `bytea`, `boolean`, `jsonb`, or arrays of them); a backup that gives anything else, such as a `CHECK` or `DEFAULT` clause, is refused before the data folder is made, so a backup file cannot run database functions while it loads. - Sessions get a statement timeout (600 seconds by default, `GRAPHICLE_DATABASE_STATEMENT_TIMEOUT`) and are ended when idle in a transaction for 10 minutes. - `graphicle import-sqlite` copies a data folder's SQLite store into PostgreSQL once, from one snapshot of the file; the SQLite file is left as it is. It runs only with `GRAPHICLE_DATABASE_URL` set. It refuses a SQLite store that has a table or column this version does not know, or that needs a newer Graphicle. Until the copy has committed, the folder's `postgres.json` marks the new store unfinished and every command refuses it, so a copy that fails or is stopped (Ctrl-C, a kill, a reboot) never leaves a store that opens empty. The refusal says which command left it and how to replace it: `import-sqlite` again for an import (the SQLite file is untouched), the same `restore` again for a restore. `restore` loads into a store marked the same way. A second import or restore on the folder is refused while the first is still copying. - With `GRAPHICLE_DATABASE_URL` set, a data folder that has only `reviews.sqlite3` is refused by every command, read-only ones too, until it is imported. - Deletion receipts say `storage.secure_delete: true` on SQLite, which overwrites deleted rows and then truncates its write-ahead log, and `false` on PostgreSQL, which cannot: a deleted row's bytes stay in the table's free space until reused, in the server's write-ahead log until it recycles the segment, and in any WAL archive or base backup. Graphicle vacuums the store's tables after a deletion; keep the database on an encrypted volume and expire archives if deleted data must not be recoverable. ### Storage: SQLite under constant reads - The write-ahead log no longer grows without bound while readers are always in flight, as long as reads are short, well under the 2 seconds a checkpoint waits. SQLite's own checkpoint could copy pages back but never restart the log, so it grew by everything written (8.3 GB on one service). The store now checkpoints and truncates the log once it passes 64 MiB, waiting at most 2 seconds for readers; a process runs one such checkpoint of a store at a time, however many times it opened the store, and pauses 8 seconds after one that found readers, so other writers wait at most 2 seconds for it. A checkpoint also waits for reads that start during its wait, so reads that each take close to 2 seconds can keep it from finishing, and a long read, such as a backup or a long request, keeps every checkpoint from cutting the log back while it runs; the log then grows by what is written meanwhile. This bounds the log between write transactions, not within one: a single large write, such as storing the code graph of a large project, still grows the log by what it writes until it commits. - A request no longer waits for the write lock to be counted against its workspace's request budget. When the lock is not free within 50 milliseconds, the server checks the budget with a read, serves the request and holds the count in memory until its next write. A budget is never exceeded by the requests one server process admits; two processes serving one data folder at once can exceed it by the counts the other holds. A killed process loses its held counts. The usage report lists unwritten counts as `unrecorded_requests`. - An MCP message no longer takes the write lock to check that its project exists, and neither do the `graph_as_of`, episode and cross-project edge tools: they read a snapshot. - `write_lock` in a project's status also counts waits of 2 s or more for the lock in the store's write transactions (`slow_waits`, `longest_wait_seconds`, `longest_wait_at`). Migrations, request counts, metering, offboarding and backup loads take the lock on their own, and their waits are not counted. - Measured with `bench/store-load` on one Databricks serverless machine (AMD EPYC 9V84), Graphicle under `taskset` on 6 CPUs while a second process indexed 25,543 files, one run per case. With no readers, indexing finished and the code graph was ready in 134.2 seconds before the SQLite changes above and in 136.3 seconds with them. With 33 MCP clients each reading as fast as it could, the server answered 25.4 reads a second and 9 of 30,099 reads failed, none of them "database is locked"; before the changes, the indexer itself failed with "database is locked" after 297 seconds. The graph is built by one thread that shares the 6 CPUs with the threads serving reads, so the graph build alone took 573 seconds under that load, against 108 seconds with no readers and 199 seconds with reads held to 15 a second. That last case was run with a load harness option that is not shipped in `bench/store-load`: a rate cap added for this measurement. Graphicle has no setting that limits reads; if the graph must be ready sooner while clients read, have fewer clients reading at once or give the server more CPUs. ### Fixes - Reads during indexing on SQLite no longer fail with "database is locked" because their request count waited for the write lock (see above). - A code graph build that runs while the store is busy keeps its job. Its lease renewal waited at most a second for the write lock and was skipped otherwise, so under constant reads the 240 second lease could run out and a second process built the same graph again from the start. A renewal now waits up to 5 seconds and retries 5 seconds later. - `restore` of a PostgreSQL backup no longer creates a table with the column types the file gives whatever they are: a type that carried a `CHECK`, `DEFAULT` or `GENERATED` clause ran functions of the file's choosing in the database as the rows loaded. Only plain type names are accepted, checked before the data folder is made. - An `import-sqlite` or `restore` that was stopped during its copy no longer leaves a data folder whose PostgreSQL store opens empty beside the SQLite file, and the same command can be run again to replace the unfinished store, never one whose copy is still running (see above). An empty `postgres.json`, left by a process stopped while creating it, is refused instead of being filled by whichever process opens it next; the refusal says to remove only that file. - `import-sqlite` no longer drops, without a word, the data of a column that this version does not know, and no longer copies a store that needs a newer Graphicle. - A PostgreSQL store whose creation failed part way, for example in a migration, no longer leaves its schema behind in the database. - Git, the graph engine, document helpers and the other programs Graphicle starts no longer inherit `GRAPHICLE_DATABASE_URL`, which may hold the database password, or `PGPASSFILE`. - Read-only commands, such as `graphicle graph`, no longer use a data folder's SQLite store when `GRAPHICLE_DATABASE_URL` is set; they refuse it until it is imported, as the other commands do. - Two stores of one SQLite data folder opened in one process share one write-ahead log checkpoint and its pause, instead of each running its own. - The Python SDK's `Client.from_session()` finds the session on Windows, in `%LOCALAPPDATA%\Graphicle` as the program keeps it, instead of looking under `~/.local/share` (Wu Shuwen, #20). ### Docs - docs/configuration.md describes the store choice, the PostgreSQL role, connections, credentials, locks, backups and deletion, and the bound on request budgets on SQLite. ### Packaging - `server.json` at the repository's root is the MCP Registry entry of 0.1.13, the latest listed release (it named 0.1.12). - New direct dependencies of the program, for the PostgreSQL store: `postgres` 0.19, `r2d2` 0.8, `bytes` 1, and for its TLS `rustls` 0.23 (ring), `rustls-native-certs` 0.8 and `tokio-rustls` 0.26. The licence pages list them. ### Added - `bench/store-load/`: a load harness that indexes a large repository into a store while 10 to 33 clients read from it over MCP. It records read latency and failures, memory, WAL size and fsyncs. ## 0.1.13 - 2026-11-05 Every crate is at 0.1.13, and `graphicle --version` prints `graphicle 0.1.13 (core)`. The Python and TypeScript SDKs are at 0.1.13 too. ### After upgrading - Run `graphicle sync` once in each project, as after 0.1.12: the saved graph and the query file are keyed to the program's build, so the first sync writes both again. - The first `graphicle-graph update` after upgrading is a full one: the extraction cache's schema moved on, and the early stop below needs a record that only a full update writes. ### Faster updates - `graphicle-graph update` stops early when nothing has changed since a full update that itself changed nothing. That update records, in `.graphicle_build_state.json` in the output folder, the size, modification time and (on Unix) status-change time and inode of every file it scanned, of the configuration files around the project, and of every file the extractors read outside the scan, such as a C header in an ignored folder or a Sphinx `conf.py` above the project. The next `update` scans the project, compares, and if nothing differs prints "No relevant changes" and keeps the graph. Anything it cannot prove the same takes the full update: a file edited while an update runs, a JavaScript workspace above the project, `--precise`, or an extractor that walks the tree without the ignore rules (Pascal and C# project files). See `docs/configuration.md`. - Measured on one cloud machine with 8 CPUs and 8 workers, an update with nothing to change took, as the median of 5 runs, 15.7 s on kubernetes v1.37.1, 1.02 s on react v19.3.0 and 0.25 s on redis 8.10.2, against 164.8 s, 22.6 s and 3.40 s for 0.1.12's full update (median of 3), with the same outputs. - A file whose content always fails to extract (a JSON or YAML file over the size limit, a YAML file the parser refuses, a binary Delphi form) no longer keeps the early stop away; a read error, a timeout or an extractor that stopped still does. ### Project wiki - `graphicle wiki build` has a model write one article per area of the code, with an index of one-line summaries, in `.graphicle/wiki/written/`. Each paragraph cites files and lines, and a citation must fall on lines the model was shown, or the paragraph is dropped and counted. `graphicle wiki update` rewrites only the articles whose code, docs or reviewed memories changed. Calls are capped by `--max-cost` (1 USD by default) and the profile's caps, logged in `graphicle usage`, and priced first with `--dry-run`. Captured sessions are never sent. `graphicle wiki hook on` adds an optional post-commit update with its own cap. See `docs/wiki.md`. - `graphicle wiki check` lists, with no model, doc passages whose named code changed since they were written, stale memories, wiki citations that no longer hold and areas of the code with no doc or article. With a model it proposes corrections: a doc's as a patch file, a memory's in the approval queue. It never edits your files. - The wiki was tested against local stand-in models; no live model run is part of this release. ### Fixes - Doc links flag a passage whose named function changed after the passage was written, in `graph.doc_links` and as a note on recall excerpts. - An output folder given by a relative path that leads outside the project (`GRAPHICLE_OUT=../out`) now gives one graph, as an absolute one has since 0.1.12. - A deleted Office document takes its nodes with it, wherever the output folder is. - `extract` after `update` no longer warns that it kept nodes "fail-closed" for a converted Office document the scan lists. ### Docs - The README's benchmarks gain a chart of an update with nothing to change, 0.1.13 against 0.1.12, with the numbers above. ### Packaging - `server.json` at the repository's root is the MCP Registry entry of 0.1.12, the latest listed release (it named 0.1.11). - `deny.toml` in graphicle-graph and graphicle-memory ignores RUSTSEC-2026-0441: pin-utils, which the AWS SDK of the bedrock feature brings in, is unmaintained, with no known vulnerability. ## 0.1.12 - 2026-11-03 Every crate is at 0.1.12, and `graphicle --version` prints `graphicle 0.1.12 (core)`. The Python and TypeScript SDKs are at 0.1.12 too. Everything new in 0.1.12 was written during Meta's Global AI Developer Hackathon. [HACKATHON.md](https://github.com/Graphicle-AI/graphicle/blob/v0.1.12/HACKATHON.md) lists it with when it was written. ### After upgrading - Run `graphicle sync` once in each project, as after 0.1.11: the saved graph and the query file are keyed to the program's build, so the first sync writes both again. - On Windows, if you set `GRAPHICLE_MAX_WORKERS=1` to get past the crash below, remove it: extract and update use all their workers again. ### Fixes - On Windows, `graphicle-graph extract` and `update` no longer exit with 0xC0000005 (an access violation) once they split their work across worker threads, which a file with a few tens of symbols was enough to start. The crash came from mimalloc 3.3.2, most likely microsoft/mimalloc#1306, so the Windows programs now use the system allocator, as the macOS programs have since 0.1.1. Linux keeps mimalloc. Reported by Michael George in #18, with the cases that reproduced it. - `graphicle fix`: a second run on the same issue that starts within the same second as the first takes the next free worktree folder (`-2`, `-3` and so on), as the branch name already did. Before, it stopped with git's "already exists". - `graphicle fix` applies the model's edits to files whose lines end in CRLF, as Git for Windows checks them out, and those files keep CRLF. Before, every edit whose search text spans a line break was refused there with "the search text is not in the file as it is now". An edit takes the file's line breaks when all of them are CRLF or all are LF; a file with both, or with none, takes an edit as it is written (`docs/fix.md`, step 4). - With the output folder outside the project, given by an absolute path in `GRAPHICLE_OUT`, the nodes of Office documents no longer depend on where that folder is. Each `.docx` and `.xlsx` file is converted to a Markdown file in the output folder, and the ids of its nodes were taken from that file's path, so two output folders gave two graphs with the same counts; the 0.1.11 benchmarks found three graphs of pandas this way. The ids now come from the converted file's name, which is hashed from the document's path in the project, so they change once, at the first `graphicle-graph update`, or `watch` or hook rebuild, after upgrading. Graphs without Office documents or Google Workspace shortcuts, and graphs in the default output folder (`.graphicle` in the project), are unchanged. An output folder given by a relative path that leads outside the project (`../out`) still names them by that path. - `graphicle-graph watch` of a subfolder (`watch src`) keeps the nodes of Office documents in its incremental rebuilds. Before, with an output folder more than three folders up, it dropped them until the next full update. ### Dependencies - zip 9.2.2 and calamine 0.38.0, for RUSTSEC-2026-0367, -0368, -0369 and -0429 and GitHub's zip advisories of 28 and 29 October, one of them critical (GHSA-m665-v7pm-7grj, fixed in zip 9.0.5, the lowest zip the crates now accept). `deny.toml` no longer makes exceptions for them, and the third-party licence pages list the new versions. - calamine 0.38 reads two kinds of legacy `.xls` file more correctly: the rows of an embedded chart no longer appear in its sheet, and BIFF5 rich-text strings keep symbols such as `•` and `’`. ### Hosted demo - `demo/modal_app.py` runs the hosted demo on Modal: an image with the v0.1.10 release's binary and the checkouts, a Volume with the data folder, and `server.py` scaling to zero, live with the Meta key's secret or, without it, showing the recorded answers (`demo/README.md`, "Modal"). ### Docs - The README opens with "Graphify, ported to Rust. Plus memory." and the live flow from a bug on the screen to a tested fix, and gives the 13-codebase results as bar charts of time and peak memory. - `docs/benchmarks.md` gives Graphicle 0.1.11 against Graphify 0.9.100 on one Linux machine: updates after 30 recent commits in three repositories, and the time and peak memory of three operations on 13 codebases. Its note on pandas' three graphs now gives their cause, fixed above. - HACKATHON.md calls the pack, `ask --pack` and `plan` written before the kickoff first drafts, and says that every change to them after it is event work. - `docs/fix.md` and `graphicle fix --help` say that the test command runs with `cmd /C` on Windows, not `sh -c`, so a test command written for sh does not run there as it is written; `docs/flow.md` and `graphicle see --help` say the same of its driver. ### Packaging - `server.json` at the repository's root is the MCP Registry entry of 0.1.11, the latest listed release (it named 0.1.10). - `graphicle-graph`'s NOTICE says that the program uses mimalloc as its Rust allocator on Linux only. ## 0.1.11 - 2026-11-02 Every crate is at 0.1.11, and `graphicle --version` prints `graphicle 0.1.11 (core)`. The Python and TypeScript SDKs are at 0.1.11 too. Everything new in 0.1.11 was written during Meta's Global AI Developer Hackathon. [HACKATHON.md](https://github.com/Graphicle-AI/graphicle/blob/v0.1.11/HACKATHON.md) lists it with when it was written. ### After upgrading - Run `graphicle sync` once in each project, as after 0.1.10: the saved graph and the query file are keyed to the program's build, so the first sync writes both again. ### `graphicle fix` - A long test output keeps the lines that report failures. When a round's test output is longer than the 6,000 bytes that go back to the model, the round keeps the lines that report failures from the part that is cut (lines with `FAIL`, `×`, `AssertionError`, `Error:`, `panicked`, `Traceback`, `error[E0425]:`, `expected` or `received`, and the like), each once and at most 2,400 bytes of them, then a `[...]` line and the output's end. Before, only the end was kept, so a runner that prints its failures before a long dump, as vitest does before the DOM it compared, sent the model the dump without the assertion. While the test runs, each output stream holds up to 128 KiB, then drops whole lines from its start down to about its last 64 KiB; the lines that report failures are read in all that it holds and in what it drops, so an output of 64 to 128 KiB keeps an assertion it printed first. Terminal colour codes are removed from the output; the values of the model keys are still hidden in it. - The next round reads the files that the failure and the model name. After a failed round, the next round's request adds, after the diff, the files that the test output (or the reasons the edits were refused) names, that the model's explanation and edits name by path, and that define a code name the explanation gives (found in the project's code graph), when the pack does not hold them whole: at most 6 files and 24,000 tokens a round, counted as the pack counts, read from the worktree, and only files the project's last sync holds, inside the project. Without `--budget`, the files take only the room the round's request has left after the pack, so the round is sent with the same pack and its start can stay in the provider's prompt cache. The instructions tell the model that a file it names this way is added to the next round. Each round's JSON report lists what its request added and why under `context`, with what was left out; the readable report lists the added files under each round. A round whose request does not fit the model's input limit with its files goes without them: the readable report lists them as not added, and the next round adds them only when the failure or the model names them again. Before, a file the pack did not hold stayed out of every round. See `docs/fix.md`. ### Fixes - `graphicle ask` answers when the model cites more passages than an answer keeps. An answer keeps at most 12 citations and 20 unanswered parts (and, with the `grounded-v3` contract, its limit of reading notes). A reply with more, which a broad question can draw, failed the job with "Model output does not match the workflow contract". The reply now keeps its first 12 citations and first 20 unanswered parts, and the job's result gives, under `trimmed_to_cap`, how many the model returned and how many were kept. An answer's text never refers to a citation by its number, so nothing in it points at a citation that was cut. `--workflow reflect` keeps its final reply the same way. (reported in #17) - `graphicle ask --workflow reflect` goes on when the model asks to read a source the answer does not have, such as a path it guessed from the code or a file that `sync` leaves out. The read is skipped, the job's trace records it with `"unavailable": true`, the next step reads that note, and the answer comes from the sources that could be read. Before, the job failed with "Reflection requested an unavailable source". (reported in #17) - `graphicle ask --pack`, `plan`, `fix` and `review` use a model key saved in the app (`graphicle open`, then Connections), as `ask` and `doctor` do, for the call and for the provider's token count. Before, they read the key only from an environment variable and failed with "Provider credential unavailable; workspace credentials require the service worker". A key in an environment variable is read as before. `fix` hides a key saved in the app in the test output that goes back to the model and into its report, as it hides the keys in variables. (reported in #17) ### The flow and its docs - `demo/flow/flow.py` uses Muse Spark for computer use by default (`--see-model spark`). On 30 October 2026 Muse Wonder answered the computer tool with HTTP 400 "Unsupported tool type" on the key we tested, and Muse Spark 1.3 ran it. `docs/flow.md` and `demo/README.md` describe the live runs. The Muse Code docs describe the plugin's first live session (Muse Code 1.4.14, 30 October 2026, with 0.1.10's plugin): Muse Code ran four of its six hooks and called its `pack` tool, but stopped its session-start hook, whose output passed the 16,384 bytes Muse Code takes from a hook, so the session started without Graphicle's session-start context (fixed below, under Muse Code plugin). - The flow's check keeps its budget when the fix runs on another profile. With computer use on Muse Spark and the fix on Muse Wonder, the check took the computer-use profile's cap less everything the run had spent, so a fix that cost more than that cap left the check a cent and the binary refused its call. The check's budget is now its profile's cap less that profile's own calls. ### Muse Code plugin - The session start stays within Muse Code's limit on a hook's output. Muse Code takes at most 16,384 bytes of what a hook prints and reads none of a longer output: in the plugin's first live session (Muse Code 1.4.14, 30 October 2026), the session start printed more than that, Muse Code stopped it, and the session started without Graphicle's session-start context. The session start now prints at most 14,000 bytes for Muse Code. When the map and the memories do not fit together, it leaves out parts of the map first, in the order a pack over its budget drops them (its least connected files first, then its documentation, folder map and architecture summary), then the whole map, then the memory's last lines (recent turns before memories), never the line on when to use Graphicle, and ends with a line that says what was left out and which tool returns it. Claude Code and Codex get the same output as before. This is tested against the stand-in `muse` program, not yet in a live session. - Muse Code's session map is 2,500 tokens by default and at most 3,500 tokens (8,000 and 100,000 before), and it lists the most connected files first. Measured on 31 October 2026, a map of 2,500 tokens took 8,464 bytes for Graphicle's own Rust code and 10,580 bytes for its Python tools, which leaves room for the memories; at 8,000 tokens the same maps took 27,551 and 33,570 bytes, more than Muse Code's limit on their own. ### Benchmark kits - The whole-repository benchmark's model runs, which 0.1.10's kit was written for, were made on 30 October 2026. Their results are not in this release. - `bench/whole-repo/run.py` gains a `fireworks` profile for Muse Spark Open on Fireworks' serverless API (chat completions, key from `FIREWORKS_API_KEY` or `--key-file`). The run's session id goes in the `x-session-affinity` header and the `user` field, the two hints Fireworks documents for its prompt cache, and the cached tokens come from the usage or, when it has none, from the `fireworks-cached-prompt-tokens` header. `prices.json` has the model's Fireworks prices. - `bench/muse-code/` reads the events of Muse Code 1.4.14: an event's name is in `payload_type`, the model calls and tokens come from the one `run.usage` event at the end of a run, and the answer from `run.terminal.completed`. Before, the kit counted no calls and no cost for a 1.4.14 session. With 1.4.14 the kit's cost caps (`--run-cap`, `--day-cap`) can act only after a run, since the usage arrives at its end. ### Packaging - libz-sys 1.1.31 (from 1.1.29, through flate2). RUSTSEC-2026-0418, a build script that prints the whole build environment when built with cc 1.6.0 or later, no longer applies, and `cargo deny` checks every crate without an exception for it. The locks keep cc 1.4.7. ## 0.1.10 - 2026-10-30 Every crate is at 0.1.10, and `graphicle --version` prints `graphicle 0.1.10 (core)`. The Python and TypeScript SDKs are at 0.1.10 too. Everything new in 0.1.10 was written during Meta's Global AI Developer Hackathon. [HACKATHON.md](https://github.com/Graphicle-AI/graphicle/blob/v0.1.10/HACKATHON.md) lists it with when it was written. ### After upgrading - Run `graphicle sync` once in each project, as after 0.1.9. The saved graph and the query file are keyed to the program's build, so the first sync writes both again. Until then a question reads the code graph from the store, and on a project of 2,000 files or more the prompt hook gives only the files that define the code names a prompt gives. - The first check of a folder that an earlier version synced finds its HTML files changed, though nothing on disk changed, so the next command that reads the project (such as `graphicle pack`, `ask`, `context` or `status`, or an MCP tool call) syncs them again as they are (see the first bullet of Fixes). A folder with more than 200 such files, or one whose sync is slow, gets a note to run `graphicle sync` instead; with `freshness` set to `off`, run `graphicle sync` yourself. - A reviewed project memory that cites a folder's HTML file goes stale after that sync, because the page's stored text changes from its words to its markup. Review those memories in the app (`graphicle open`, under **Memory**). - In the GitHub Action of `graphicle review`, set `graphicle-version` to 0.1.10, and `graphicle-sha256` to the SHA-256 of 0.1.10's archive for the runner (in the release's `SHA256SUMS`): the escaping under Fixes comes from the program the Action installs. ### Whole-repository packs - Packs in the standard layout hold their top-ranked files whole more often. In a pack of 32,768 tokens or less, the first ranked file goes in whole when its estimated size fits in half the budget; in a pack of 131,072 tokens or more, the first two go in whole when each one's estimated size fits in a quarter of it. The estimate comes from a file's size in bytes, not from the tokenizer. This changes `graphicle pack`, the MCP server's `pack` tool (32,000 tokens by default), and the packs of `ask --pack`, `plan` and `fix`, which use the standard layout by default. The default budget of `graphicle pack`, 128,000 tokens, stays below the second tier, and so do the packs for a model with a 128K window, unless a calibration from earlier calls raises their budget past 131,071 tokens. A pack with pinned passages (`fix --focus`, `review`) keeps the per-file caps for every file, so each pinned passage keeps its room. This rule leaves packs of 32,769 to 131,071 tokens, and the cache layout, as they were. - Measured without a model, as the share of questions (tasks, on SWE-bench Pro) whose pack holds every line that the reference fix changes, with tokens counted by the Muse Spark Open tokenizer: 0.1.9 against a candidate build of 0.1.10 with both changes (whole top files, and a folder's HTML files kept as they are, under Fixes), made before this release's last fixes, at budgets of 16K to 1M tokens (16,384 to 1,015,808; the 128K budget is 131,072 tokens, in the second tier). A build with those fixes, run again on the development questions, matched the candidate except for one question at 256K, whose pack left out one file the fix changed. - On the 90 held-out questions of the whole-repository benchmark (pytorch, vscode and elasticsearch, never tuned on): 26.7% to 34.4% at 32K, 41.1% to 48.9% at 128K, 47.8% to 52.2% at 256K, 53.3% to 58.9% at 512K and 58.9% to 64.4% at 1M; unchanged at 16K (21.1%) and 64K (33.3%). The mean share of the fix's files inside the pack (whole, or as excerpts or outlines) moved by +1.7 points at 16K, -0.3 at 128K and -1.1 at 512K, and not at the other budgets. - On 633 tasks of SWE-bench Pro's public set (at 1M, the 505 whose files hold more than 1M tokens): 10.3% to 15.0% at 16K, 16.7% to 20.4% at 32K, 29.1% to 29.2% at 64K, 40.8% to 42.3% at 128K, 51.5% to 52.8% at 256K and 66.5% to 68.3% at 1M, where file-level BM25 holds every changed line in 14.2%, 19.0%, 25.9%, 32.7%, 41.5% and 58.0% of tasks. The share of tasks with every file the fix changes inside the pack (any of its text) moved by -0.8 points at 16K and at 128K, -0.3 at 32K and -0.2 at 1M, and not at 64K and 256K. Counting only the files the pack holds as text, not as an outline, it fell by 2.1 points at 16K (95% interval -3.5 to -0.6) and by 0.3 points or less at the other budgets. A diagnosis of 0.1.9 on these tasks chose the directions of this change, though not its settings, so they are not an untouched test. - On the 200 development questions it was tuned on (kubernetes, home-assistant, angular, keycloak and godot): 32.0% to 36.0% at 16K, 48.0% to 51.0% at 32K, 70.0% to 72.0% at 128K, 76.0% to 77.5% at 256K, 79.5% to 81.0% at 512K and 81.0% to 82.5% at 1M; unchanged at 64K (57.5%). The mean share of the fix's files inside moved by -1.0 point at 32K and -0.5 at 1M, and by 0.2 points or less at the other budgets. The tables are in [bench/whole-repo/results-lines.md](https://github.com/Graphicle-AI/graphicle/blob/v0.1.10/bench/whole-repo/results-lines.md) and [bench/swe-bench-pro/results-e1l.md](https://github.com/Graphicle-AI/graphicle/blob/v0.1.10/bench/swe-bench-pro/results-e1l.md). ### Fixes - A project folder's `.html` and `.htm` files are kept as they are on disk. Earlier versions stored the text that html2text extracted from them, so `graphicle pack` quoted that text under its own line numbers, not the file's, and a `graphicle fix` edit copied from that text could fail to match the file. Search and project memory read the same stored text, so they now see a page's markup as well as its words, and a hit or a quote points at the file's own line. - Office files, spreadsheets, PDF, EPUB and images are converted as before, and so is HTML that is uploaded or that the Confluence connector brings in. The GitHub and Google Drive connectors already kept `.html` files as they are. - A folder's HTML file that is not UTF-8, such as a Latin-1 or Shift-JIS page, or that is larger than `limits.file_bytes` (8 MiB by default), is still read as its extracted text, as before, up to `limits.document_bytes` (128 MiB by default). - An HTML file read as it is counts its whole markup, not just its words, toward `limits.project_bytes` (1 GiB by default), so a folder with many large pages comes closer to that limit; raise the limit if a sync is refused. - The notes-first ranking, which is off by default, no longer counts `.html` and `.htm` files as notes. - `graphicle review --format github` and the GitHub Action escape `&`, `<` and `>` in the review's text outside code spans and code blocks, so markup in a model's comment (an `` tag, or a `