Code graph and memory for your coding agents, in one Rust program. For Claude Code, Codex, Cursor and any MCP client.
Rust agent-memoryai-agentsclaude-codecode-analysiscode-graphcode-intelligencecode-searchcodexcoding-agentscontext-engineeringcursordeveloper-toolsgraphragknowledge-graphlocal-firstmcpmcp-servermodel-context-protocolrusttree-sitter
Graphicle 0.1.2: light theme, MCP Registry bundles, update-check back-off
VikramLex5e858a374064
diff --git a/.github/workflows/mcp-registry.yml b/.github/workflows/mcp-registry.ymlnew file mode 100644index 0000000..82fe0d3--- /dev/null+++ b/.github/workflows/mcp-registry.yml@@ -0,0 +1,212 @@+# Lists a Graphicle release in the official MCP Registry+# (registry.modelcontextprotocol.io) as io.github.Graphicle-AI/graphicle. Run it+# by hand from main (Actions, mcp-registry, Run workflow) with the tag of a+# final release once the release workflow has published it.+#+# The build job, which can only read the repository, checks the release,+# downloads its five archives, builds one MCP bundle per target with+# packaging/mcpb/build_mcpb.py (graphicle-<version>-<target>.mcpb), writes+# server.json with packaging/mcpb/render_server_json.py and validates it. The+# publish job uploads the bundles to the release, checks the uploaded files,+# publishes server.json with mcp-publisher, which logs in with the run's GitHub+# OIDC token (no secret is needed), and reads the listing back.+#+# The registry never changes a listed version, so a version it already lists+# stops the run before anything is uploaded, and so does an immutable release,+# whose assets cannot change. The scripts come from main, the programs from the+# release. packaging/mcpb/README.md describes the steps.+name: mcp-registry++on:+ workflow_dispatch:+ inputs:+ tag:+ description: Tag of the published release to list, such as v0.1.2+ required: true+ type: string++permissions:+ contents: read++concurrency:+ group: mcp-registry+ cancel-in-progress: false++env:+ # mcp-publisher, pinned: its release and the SHA-256 of its Linux x86-64+ # archive, from registry_1.8.1_checksums.txt in that release.+ MCP_PUBLISHER_VERSION: "1.8.1"+ MCP_PUBLISHER_SHA256: a06c9096dcb9727c13555b6be26c7effa707b01f06a4c561ba7a3635443cf2cc+ REGISTRY: https://registry.modelcontextprotocol.io+ SERVER_NAME: io.github.Graphicle-AI/graphicle+ TAG: ${{ inputs.tag }}++jobs:+ build:+ if: github.ref == 'refs/heads/main'+ runs-on: ubuntu-latest+ timeout-minutes: 30+ permissions:+ contents: read+ outputs:+ version: ${{ steps.version.outputs.version }}+ steps:+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0+ with:+ persist-credentials: false+ - name: Version+ id: version+ env:+ GH_TOKEN: ${{ github.token }}+ run: |+ if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then+ echo "::error::'$TAG' is not the tag of a final release, such as v0.1.2"; exit 1+ fi+ state="$(gh release view "$TAG" --repo "$GITHUB_REPOSITORY" --json isDraft,isPrerelease,isImmutable \+ --jq '"\(.isDraft) \(.isPrerelease) \(.isImmutable)"')"+ read -r draft prerelease immutable <<< "$state"+ if [ "$draft" != false ] || [ "$prerelease" != false ]; then+ echo "::error::the release $TAG is not published as a final release (draft $draft, prerelease $prerelease)"+ exit 1+ fi+ if [ "$immutable" != false ]; then+ echo "::error::the release $TAG is immutable: its assets cannot change, so the bundles cannot be added to it"+ exit 1+ fi+ echo "version=${TAG#v}" >> "$GITHUB_OUTPUT"+ - name: Not listed yet+ env:+ VERSION: ${{ steps.version.outputs.version }}+ run: |+ url="$REGISTRY/v0.1/servers/${SERVER_NAME/\//%2F}/versions/$VERSION?include_deleted=true"+ code="$(curl -sS -o "$RUNNER_TEMP/listed.json" -w '%{http_code}' "$url")"+ case "$code" in+ 404) echo "The registry does not list $SERVER_NAME $VERSION yet." ;;+ 200) echo "::error::the registry already lists $SERVER_NAME $VERSION, and a listed version never changes"+ cat "$RUNNER_TEMP/listed.json"; exit 1 ;;+ *) echo "::error::the registry answered $code to $url"; exit 1 ;;+ esac+ - name: Download the archives+ env:+ GH_TOKEN: ${{ github.token }}+ VERSION: ${{ steps.version.outputs.version }}+ run: |+ mkdir "$RUNNER_TEMP/archives"+ gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir "$RUNNER_TEMP/archives" \+ --pattern "graphicle-$VERSION-*.tar.gz" --pattern "graphicle-$VERSION-*.zip" --pattern SHA256SUMS+ cd "$RUNNER_TEMP/archives"+ sha256sum --check --strict SHA256SUMS+ - name: Build the bundles+ env:+ VERSION: ${{ steps.version.outputs.version }}+ run: |+ for archive in "$RUNNER_TEMP"/archives/graphicle-"$VERSION"-*.tar.gz "$RUNNER_TEMP"/archives/graphicle-"$VERSION"-*.zip; do+ python3 packaging/mcpb/build_mcpb.py "$archive" --version "$VERSION" --out "$RUNNER_TEMP/mcpb"+ done+ ls -l "$RUNNER_TEMP/mcpb"+ - name: server.json+ env:+ VERSION: ${{ steps.version.outputs.version }}+ run: |+ python3 packaging/mcpb/render_server_json.py --version "$VERSION" --bundles "$RUNNER_TEMP/mcpb" \+ --out "$RUNNER_TEMP/server.json"+ cat "$RUNNER_TEMP/server.json"+ {+ echo "server.json for $SERVER_NAME $VERSION (once the run has published it, commit it at the repository's root):"+ echo+ echo '```json'+ cat "$RUNNER_TEMP/server.json"+ echo '```'+ } >> "$GITHUB_STEP_SUMMARY"+ - name: Install mcp-publisher+ run: |+ curl -fsSL -o "$RUNNER_TEMP/mcp-publisher.tar.gz" \+ "https://github.com/modelcontextprotocol/registry/releases/download/v$MCP_PUBLISHER_VERSION/mcp-publisher_linux_amd64.tar.gz"+ echo "$MCP_PUBLISHER_SHA256 $RUNNER_TEMP/mcp-publisher.tar.gz" | sha256sum --check --strict+ tar -xzf "$RUNNER_TEMP/mcp-publisher.tar.gz" -C "$RUNNER_TEMP" mcp-publisher+ "$RUNNER_TEMP/mcp-publisher" --version+ - name: Validate server.json+ run: |+ "$RUNNER_TEMP/mcp-publisher" validate "$RUNNER_TEMP/server.json"+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ with:+ name: mcpb-${{ steps.version.outputs.version }}+ path: ${{ runner.temp }}/mcpb/+ if-no-files-found: error+ retention-days: 7+ overwrite: true+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ with:+ name: server-json-${{ steps.version.outputs.version }}+ path: ${{ runner.temp }}/server.json+ if-no-files-found: error+ overwrite: true++ publish:+ needs: build+ if: github.ref == 'refs/heads/main'+ runs-on: ubuntu-latest+ timeout-minutes: 30+ permissions:+ # gh release upload adds the bundles to the release.+ contents: write+ # mcp-publisher login github-oidc.+ id-token: write+ env:+ VERSION: ${{ needs.build.outputs.version }}+ steps:+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1+ with:+ name: mcpb-${{ needs.build.outputs.version }}+ path: ${{ runner.temp }}/mcpb+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1+ with:+ name: server-json-${{ needs.build.outputs.version }}+ path: ${{ runner.temp }}+ - name: Check the bundles against server.json+ run: |+ jq -r '.packages[] | "\(.fileSha256) \(.identifier | split("/") | last)"' "$RUNNER_TEMP/server.json" \+ > "$RUNNER_TEMP/bundles.sha256"+ cd "$RUNNER_TEMP/mcpb"+ sha256sum --check --strict "$RUNNER_TEMP/bundles.sha256"+ [ "$(find . -name '*.mcpb' | wc -l)" -eq "$(wc -l < "$RUNNER_TEMP/bundles.sha256")" ]+ - name: Upload the bundles to the release+ env:+ GH_TOKEN: ${{ github.token }}+ run: |+ gh release upload "$TAG" --repo "$GITHUB_REPOSITORY" --clobber "$RUNNER_TEMP"/mcpb/*.mcpb+ - name: Check the uploaded bundles+ env:+ GH_TOKEN: ${{ github.token }}+ run: |+ mkdir "$RUNNER_TEMP/uploaded"+ gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir "$RUNNER_TEMP/uploaded" \+ --pattern "graphicle-$VERSION-*.mcpb"+ cd "$RUNNER_TEMP/uploaded"+ sha256sum --check --strict "$RUNNER_TEMP/bundles.sha256"+ - name: Install mcp-publisher+ run: |+ curl -fsSL -o "$RUNNER_TEMP/mcp-publisher.tar.gz" \+ "https://github.com/modelcontextprotocol/registry/releases/download/v$MCP_PUBLISHER_VERSION/mcp-publisher_linux_amd64.tar.gz"+ echo "$MCP_PUBLISHER_SHA256 $RUNNER_TEMP/mcp-publisher.tar.gz" | sha256sum --check --strict+ tar -xzf "$RUNNER_TEMP/mcp-publisher.tar.gz" -C "$RUNNER_TEMP" mcp-publisher+ "$RUNNER_TEMP/mcp-publisher" --version+ - name: Log in to the MCP Registry+ run: |+ "$RUNNER_TEMP/mcp-publisher" login github-oidc+ - name: Publish+ run: |+ "$RUNNER_TEMP/mcp-publisher" publish "$RUNNER_TEMP/server.json"+ - name: Read the listing back+ run: |+ url="$REGISTRY/v0.1/servers/${SERVER_NAME/\//%2F}/versions/$VERSION"+ for attempt in 1 2 3 4 5 6; do+ if curl -fsS -o "$RUNNER_TEMP/listed.json" "$url"; then break; fi+ if [ "$attempt" -eq 6 ]; then echo "::error::the registry does not answer for $url"; exit 1; fi+ sleep 10+ done+ jq -e --slurpfile want "$RUNNER_TEMP/server.json" '+ .server.name == $want[0].name and .server.version == $want[0].version and+ ([.server.packages[] | [.identifier, .fileSha256]] | sort) ==+ ([$want[0].packages[] | [.identifier, .fileSha256]] | sort)' "$RUNNER_TEMP/listed.json"+ echo "The registry lists $SERVER_NAME $VERSION with each bundle's address and SHA-256."diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6fe68ef..a55c539 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,72 @@Notable changes to Graphicle: the graph engine (`graphicle-graph`), the memorylibrary (`graphicle-memory`) and the `graphicle` program.+## 0.1.2 - 2026-10-18++Every crate is at 0.1.2, and `graphicle --version` prints+`graphicle 0.1.2 (core)`.++### Dashboard++- A light theme for the app that `graphicle open` shows, and for its product+ and documentation pages (#2). The app follows the operating system's light+ or dark setting; Settings > Appearance picks System, Light or Dark, and the+ browser remembers the choice. The theme is set before the page is first+ drawn, so the page never flashes in the other theme. In the light theme,+ text has a contrast of at least 4.5:1 with its background, and control+ borders and focus rings at least 3:1. The dark theme looks as before.++### MCP Registry++- From this release on, the `mcp-registry` workflow adds one MCP bundle+ (`.mcpb`) for each release target to the GitHub release and lists the+ release in the official MCP Registry as `io.github.Graphicle-AI/graphicle`.+ Each bundle's manifest follows the MCP bundle format (checked against its+ 0.3 schema) and runs `graphicle mcp` on a project folder that+ `graphicle sync` has set up. `packaging/mcpb/README.md` describes the+ bundles and the steps at release time.++### Other changes++- The new-release check is no longer made again with the next command when+ a command ends before it does. 0.1.1 already counted a failed check as the+ day's check, but a check still running when a command ended was dropped+ and made again with the next command. Each check is now recorded before its+ request goes out, so such a check counts as the day's check, though not as+ a failure. Repeated real failures now back off: after a check that fails,+ or that GitHub refuses or limits, the next one waits a day, then two days+ after a second failure in a row, then four. The request is still one GET+ with no code or data in it, and the notice is still printed at most once a+ day.+- A test of `.graphiclerc` handling could fail when tests ran in parallel:+ another test could clear the record of folders already warned about+ between its two calls. The tests that change that process-wide state now+ run one at a time.+- Agent setup and detection read a Codex configuration whose multi-line+ strings hold non-ASCII text instead of crashing (#3, thanks+ @rudycelekli).+- Session capture cuts a conversation opening longer than 300 bytes on a+ character boundary, so a multi-byte character at the cut no longer+ crashes it (#4, thanks @rudycelekli).+- The graph engine's MCP server answers `initialize` with a protocol+ version it speaks: the client's when it knows it, otherwise 2025-06-18,+ instead of echoing whatever the client sent (#5, thanks @rudycelekli).+- The app's MCP endpoint over HTTP answers a method it does not serve with+ JSON-RPC's "Method not found" (-32601) instead of "Invalid params"+ (-32602); a refused call of a method it serves keeps -32602 (#6, thanks+ @rudycelekli).+- The engine's file ledger (`crates/graphicle-graph/migration/FILES.json`)+ marks each application module that has a passing comparison receipt against+ Graphify 0.9.91 as verified, with the Rust files that port it. The modules+ whose checks stop on the Linux host stay pending until the full run on+ macOS. The ledger's summaries beside it, `STATUS.md`, `AUDIT.json` and+ `PROGRESS.json`, now describe the 0.9.91 port instead of the 0.9.88 one.+- cargo-deny ignores RUSTSEC-2026-0367, RUSTSEC-2026-0368 and+ RUSTSEC-2026-0369 (zip 8.6.0, published after 0.1.1), with the reason: they+ affect only zip's extract-to-disk APIs, and Graphicle never extracts+ archives to disk; it reads archive members in memory. The ignores go once+ calamine, which still requires zip 8, moves to zip 9.+## 0.1.1 - 2026-10-15Every crate is at 0.1.1, and `graphicle --version` printsdiff --git a/crates/graphicle-graph/Cargo.lock b/crates/graphicle-graph/Cargo.lockindex 916dab3..9e76f2a 100644--- a/crates/graphicle-graph/Cargo.lock+++ b/crates/graphicle-graph/Cargo.lock@@ -1403,7 +1403,7 @@ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"[[package]]name = "graphicle"-version = "0.1.1"+version = "0.1.2"dependencies = ["aws-config","aws-sdk-bedrockruntime",@@ -1501,7 +1501,7 @@ dependencies = [[[package]]name = "graphicle-graph"-version = "0.1.1"+version = "0.1.2"dependencies = ["graphicle","libmimalloc-sys",diff --git a/crates/graphicle-graph/Cargo.toml b/crates/graphicle-graph/Cargo.tomlindex 0ab7a1f..55a8bdd 100644--- a/crates/graphicle-graph/Cargo.toml+++ b/crates/graphicle-graph/Cargo.toml@@ -1,6 +1,6 @@[package]name = "graphicle"-version = "0.1.1"+version = "0.1.2"edition = "2024"rust-version = "1.94.1"publish = falsediff --git a/crates/graphicle-graph/README.md b/crates/graphicle-graph/README.mdindex e9332c5..cd7b74a 100644--- a/crates/graphicle-graph/README.md+++ b/crates/graphicle-graph/README.md@@ -187,19 +187,22 @@ The port covers every application module of the pinned release; Graphify'soriginal Python test files are kept as development references, and fixtures,documentation and licenses retain their original formats. The comparisonchecks run Graphify's own tests against the engine and compare its results-with the pinned release. On 13 October 2026 every application module had a-passing receipt from them; on 14 October they were widened to run more of the-upstream `tests/test_*.py` files. The repository's `docs/benchmarks.md` gives-their results and limits, its-`docs/evidence/upstream-tests-known-differences.md` lists the upstream tests-that fail against the engine, with the reason for each, and its+with the pinned release. Against Graphify 0.9.88, on 13 October 2026, every+application module had a passing receipt from them; on 14 October they were+widened to run more of the upstream `tests/test_*.py` files. Against 0.9.91+they ran on Linux on 15 October 2026, where the modules whose checks need+nothing that host lacks have a passing receipt; the full run on macOS is still+to be made. The repository's `docs/benchmarks.md` gives their results and+limits, its `docs/evidence/upstream-tests-known-differences.md` lists the+upstream tests that fail against the engine, with the reason for each, and its`docs/evidence/upstream-tests-not-run.md` lists the test files the checks donot run, with the reason for each.-[migration/STATUS.md](migration/STATUS.md) and [AUDIT.json](migration/AUDIT.json)-record the 13 October qualification; the repository's `docs/evidence/` folder-summarizes it and the 14 October run of the widened checks. The-[file ledger](migration/FILES.json) lists every file of the pinned Graphify-0.9.91 archive with its SHA-256.+[migration/STATUS.md](migration/STATUS.md), [AUDIT.json](migration/AUDIT.json)+and the [file ledger](migration/FILES.json) record the 15 October run against+0.9.91: the ledger lists every file of the pinned Graphify 0.9.91 archive with+its SHA-256 and marks each application module that has a passing receipt as+verified. The repository's `docs/evidence/` folder summarizes the 13 October+qualification against 0.9.88 and the 14 October run of the widened checks.## Build and rundiff --git a/crates/graphicle-graph/cli/Cargo.toml b/crates/graphicle-graph/cli/Cargo.tomlindex 9e3b3c7..4757c10 100644--- a/crates/graphicle-graph/cli/Cargo.toml+++ b/crates/graphicle-graph/cli/Cargo.toml@@ -1,6 +1,6 @@[package]name = "graphicle-graph"-version = "0.1.1"+version = "0.1.2"edition = "2024"rust-version = "1.94.1"publish = falsediff --git a/crates/graphicle-graph/deny.toml b/crates/graphicle-graph/deny.tomlindex cd5fba8..48a9275 100644--- a/crates/graphicle-graph/deny.toml+++ b/crates/graphicle-graph/deny.toml@@ -62,9 +62,17 @@ db-path = "~/.cargo/advisory-db"db-urls = ["https://github.com/rustsec/advisory-db"]yanked = "warn"# Every vulnerability and unsoundness advisory is fixed (legacy AWS TLS client-# removed, lru >= 0.18.2). The remaining entries are "unmaintained" notices for-# transitive crates with no known vulnerability and no maintained drop-in:+# removed, lru >= 0.18.2), except three in zip 8's extraction to disk, which+# nothing here calls: the engine, the program and calamine open an archive and+# read its members in memory. zip 9 fixes them, but calamine 0.36.1, the latest+# release, requires zip ^8.6 (its main branch already uses zip 9.0, unreleased).+# Remove these three ignores, and move to zip 9, when calamine releases with it.+# The other entries are "unmaintained" notices for transitive crates with no+# known vulnerability and no maintained drop-in:ignore = [+ { id = "RUSTSEC-2026-0367", reason = "zip 8.6.0 (engine, program, calamine): SUID/SGID bits kept by ZipArchive::extract; archives are only read in memory, never extracted" },+ { id = "RUSTSEC-2026-0368", reason = "zip 8.6.0 (engine, program, calamine): symbolic links created by ZipArchive::extract; archives are only read in memory, never extracted" },+ { id = "RUSTSEC-2026-0369", reason = "zip 8.6.0 (engine, program, calamine): permissions applied through symbolic links by extract(); archives are only read in memory, never extracted" },{ id = "RUSTSEC-2024-0436", reason = "paste (proc-macro, build time only) via neo4rs -> nav-types -> nalgebra -> simba" },{ id = "RUSTSEC-2026-0192", reason = "ttf-parser via pdf-extract -> lopdf; font tables are parsed only from local PDFs" },{ id = "RUSTSEC-2025-0075", reason = "unic-char-range via rustpython-parser (Python literal parsing); no vulnerability" },diff --git a/crates/graphicle-graph/migration/AUDIT.json b/crates/graphicle-graph/migration/AUDIT.jsonindex c39abd6..39a48b7 100644--- a/crates/graphicle-graph/migration/AUDIT.json+++ b/crates/graphicle-graph/migration/AUDIT.json@@ -1,14 +1,14 @@{- "upstream_commit": "a9860f70dc3cc2e9c2d8cb923484cfa0592b9067",- "updated_utc": "2026-10-13T15:17:37.483257+00:00",- "archive_files": 1046,+ "upstream_commit": "10130e79ed9caf8f60d998073e097531eaa1a395",+ "updated_utc": "2026-10-18T02:21:03.858688+00:00",+ "archive_files": 1068,"application_files": 95,- "currently_verified_application_files": 95,- "currently_verified_source_lines": 84134,- "total_application_source_lines": 84134,+ "currently_verified_application_files": 88,+ "currently_verified_source_lines": 78578,+ "total_application_source_lines": 86217,"stale_receipts": [],- "complete_port": true,+ "complete_port": false,"qualification_manifests": [- "migration/qualification/d5aaef3ccf6dea8b61d58db81eefb23d7a1db793a4bf39fe6e7a8b2ebb6fdb72-85f2d451090c.json"+ "migration/qualification/f212d84678cacef5c37e17234abeaa94ddc3dfe0e7d8252dd7be75264f442370-8e1961e66955.json"]}diff --git a/crates/graphicle-graph/migration/FILES.json b/crates/graphicle-graph/migration/FILES.jsonindex 1af8585..8d1b39f 100644--- a/crates/graphicle-graph/migration/FILES.json+++ b/crates/graphicle-graph/migration/FILES.json@@ -840,7 +840,7 @@"lines": 30,"category": "application_python","rust_target": "src/lib.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "__getattr__",@@ -850,7 +850,14 @@],"imports": ["importlib"- ]+ ],+ "rust_files": [+ "src/lib.rs",+ "src/model.rs",+ "src/error.rs",+ "tests/public_api.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/__main__.py",@@ -963,8 +970,8 @@"bytes": 4143,"lines": 107,"category": "application_python",- "rust_target": "src/_minhash.rs",- "status": "pending",+ "rust_target": "src/minhash.rs",+ "status": "ported_verified","definitions": [{"name": "_mh_coeffs",@@ -1022,7 +1029,11 @@"hashlib","numpy","struct"- ]+ ],+ "rust_files": [+ "src/minhash.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/affected.py",@@ -1031,7 +1042,7 @@"lines": 393,"category": "application_python","rust_target": "src/affected.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "AffectedHit",@@ -1109,7 +1120,14 @@"pathlib","typing","unicodedata"- ]+ ],+ "rust_files": [+ "src/affected.rs",+ "src/graph.rs",+ "src/session.rs",+ "src/graph_node_link.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/always_on/agents-md.md",@@ -1184,7 +1202,7 @@"lines": 834,"category": "application_python","rust_target": "src/analyze.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_cross_language",@@ -1290,7 +1308,14 @@"itertools","networkx","pathlib"- ]+ ],+ "rust_files": [+ "src/analyze.rs",+ "src/analyze_data.rs",+ "src/graph_algorithms.rs",+ "src/python_compat.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/benchmark.py",@@ -1299,7 +1324,7 @@"lines": 121,"category": "application_python","rust_target": "src/benchmark.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_safe",@@ -1338,7 +1363,14 @@"graphify.serve","networkx","sys"- ]+ ],+ "rust_files": [+ "src/benchmark.rs",+ "src/query_terms.rs",+ "src/assets/query/stopwords.json",+ "src/assets/query/jieba-py-0.46.12.hmm"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/build.py",@@ -1347,7 +1379,7 @@"lines": 2806,"category": "application_python","rust_target": "src/build.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_is_ast_tier",@@ -1644,7 +1676,17 @@"sys","unicodedata","validate"- ]+ ],+ "rust_files": [+ "src/build.rs",+ "src/build_normalize.rs",+ "src/build_merge.rs",+ "src/build_api.rs",+ "src/build_global.rs",+ "src/build_labels.rs",+ "src/hyperedge_members.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/cache.py",@@ -1653,7 +1695,7 @@"lines": 1939,"category": "application_python","rust_target": "src/cache.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_grammar_fingerprint",@@ -1945,7 +1987,13 @@"tempfile","time","warnings"- ]+ ],+ "rust_files": [+ "src/cache.rs",+ "src/cache_paths.rs",+ "src/cache_api.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/callflow_html.py",@@ -1953,8 +2001,8 @@"bytes": 83274,"lines": 2051,"category": "application_python",- "rust_target": "src/callflow_html.rs",- "status": "pending",+ "rust_target": "src/callflow_data.rs",+ "status": "ported_verified","definitions": [{"name": "read_json",@@ -2331,7 +2379,13 @@"pathlib","re","sys"- ]+ ],+ "rust_files": [+ "src/callflow_data.rs",+ "src/callflow_html.rs",+ "src/assets/callflow/templates.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/cargo_introspect.py",@@ -2340,7 +2394,7 @@"lines": 166,"category": "application_python","rust_target": "src/cargo_introspect.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_load_toml",@@ -2371,7 +2425,11 @@"tomli","tomllib","typing"- ]+ ],+ "rust_files": [+ "src/cargo_introspect.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/cli.py",@@ -2380,7 +2438,7 @@"lines": 5364,"category": "application_python","rust_target": "src/cli.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_nudge_for_out",@@ -2679,7 +2737,20 @@"time","typing","urllib.parse"- ]+ ],+ "rust_files": [+ "src/cli.rs",+ "src/cli_cluster.rs",+ "src/cli_commands.rs",+ "src/cli_export.rs",+ "src/cli_extract.rs",+ "src/cli_guard.rs",+ "src/cli_merge.rs",+ "src/cli_state.rs",+ "src/assets/cli/constants.json",+ "src/assets/cli/help.txt"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/cluster.py",@@ -2688,7 +2759,7 @@"lines": 507,"category": "application_python","rust_target": "src/cluster.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_suppress_output",@@ -2758,7 +2829,11 @@"networkx","os","sys"- ]+ ],+ "rust_files": [+ "src/cluster.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/command-kilo.md",@@ -2778,7 +2853,7 @@"lines": 273,"category": "application_python","rust_target": "src/cross_repo_calls.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_key",@@ -2833,7 +2908,11 @@"networkx","os","typing"- ]+ ],+ "rust_files": [+ "src/cross_repo_calls.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/cross_repo_types.py",@@ -2842,7 +2921,7 @@"lines": 75,"category": "application_python","rust_target": "src/cross_repo_types.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "link_shared_type_declarations",@@ -2855,7 +2934,11 @@"collections","networkx","typing"- ]+ ],+ "rust_files": [+ "src/cross_repo_types.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/csharp_dispatch.py",@@ -2864,7 +2947,7 @@"lines": 39,"category": "application_python","rust_target": "src/csharp_dispatch.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "resolve_csharp_interface_dispatch",@@ -2875,7 +2958,11 @@"imports": ["__future__","graphify.interface_dispatch"- ]+ ],+ "rust_files": [+ "src/csharp_dispatch.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/dedup.py",@@ -2884,7 +2971,7 @@"lines": 1649,"category": "application_python","rust_target": "src/dedup.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_is_label_char",@@ -3135,7 +3222,13 @@"re","sys","unicodedata"- ]+ ],+ "rust_files": [+ "src/dedup.rs",+ "src/dedup_strings.rs",+ "src/dedup_api.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/detect.py",@@ -3144,7 +3237,7 @@"lines": 2981,"category": "application_python","rust_target": "src/detect.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "FileType",@@ -3594,7 +3687,16 @@"typing","unicodedata","zipfile"- ]+ ],+ "rust_files": [+ "src/detect.rs",+ "src/detect_types.rs",+ "src/detect_ignore.rs",+ "src/detect_documents.rs",+ "src/detect_manifest.rs",+ "src/assets/detect/constants.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/diagnostics.py",@@ -3603,7 +3705,7 @@"lines": 422,"category": "application_python","rust_target": "src/diagnostics.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_safe_text",@@ -3687,7 +3789,13 @@"pathlib","re","typing"- ]+ ],+ "rust_files": [+ "src/diagnostics.rs",+ "src/diagnostics_report.rs",+ "build.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/export.py",@@ -3886,9 +3994,13 @@"lines": 1,"category": "application_python","rust_target": "src/exporters/mod.rs",- "status": "pending",+ "status": "ported_verified","definitions": [],- "imports": []+ "imports": [],+ "rust_files": [+ "src/exporters/mod.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/exporters/base.py",@@ -3897,11 +4009,15 @@"lines": 14,"category": "application_python","rust_target": "src/exporters/base.rs",- "status": "pending",+ "status": "ported_verified","definitions": [],"imports": ["__future__"- ]+ ],+ "rust_files": [+ "src/exporters/base.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/exporters/graphdb.py",@@ -3965,7 +4081,7 @@"lines": 781,"category": "application_python","rust_target": "src/exporters/html.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_viz_node_limit",@@ -4016,7 +4132,16 @@"networkx","os","pathlib"- ]+ ],+ "rust_files": [+ "src/exporters/html.rs",+ "src/exporters/common.rs",+ "src/assets/export_html/styles.html",+ "src/assets/export_html/script.html.template",+ "src/assets/export_html/hyperedges.html.template",+ "src/assets/export_html/document.html.template"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extract.py",@@ -4025,7 +4150,7 @@"lines": 10974,"category": "application_python","rust_target": "src/extract.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_raise_recursion_limit",@@ -5162,7 +5287,22 @@"tree_sitter_typescript","typing","xml.etree.ElementTree"- ]+ ],+ "rust_files": [+ "src/extract.rs",+ "src/extract_languages.rs",+ "src/extract_members.rs",+ "src/extract_merge.rs",+ "src/extract_normalize.rs",+ "src/extract_projects.rs",+ "src/extract_python.rs",+ "src/assets/extract/constants.json",+ "src/cache.rs",+ "src/cache_paths.rs",+ "src/extractors/resolution.rs",+ "src/extractors/parse_cache.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/MIGRATION.md",@@ -5181,8 +5321,8 @@"bytes": 3083,"lines": 76,"category": "application_python",- "rust_target": "src/extractors/mod.rs",- "status": "pending",+ "rust_target": "src/extractors/registry.rs",+ "status": "ported_verified","definitions": [],"imports": ["__future__",@@ -5216,7 +5356,12 @@"graphify.extractors.zig","pathlib","typing"- ]+ ],+ "rust_files": [+ "src/extractors/registry.rs",+ "src/extractors/mod.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/apex.py",@@ -5225,7 +5370,7 @@"lines": 215,"category": "application_python","rust_target": "src/extractors/apex.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_apex",@@ -5248,7 +5393,11 @@"graphify.extractors.base","pathlib","re"- ]+ ],+ "rust_files": [+ "src/extractors/apex.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/base.py",@@ -5257,7 +5406,7 @@"lines": 153,"category": "application_python","rust_target": "src/extractors/base.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_make_id",@@ -5290,7 +5439,13 @@"graphify.ids","pathlib","sys"- ]+ ],+ "rust_files": [+ "src/extractors/base.rs",+ "src/extractors/builtins_data.rs",+ "src/path_syntax.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/bash.py",@@ -5299,7 +5454,7 @@"lines": 627,"category": "application_python","rust_target": "src/extractors/bash.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_bash_source_suffix",@@ -5382,7 +5537,11 @@"tree_sitter","tree_sitter_bash","typing"- ]+ ],+ "rust_files": [+ "src/extractors/bash.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/blade.py",@@ -5391,7 +5550,7 @@"lines": 67,"category": "application_python","rust_target": "src/extractors/blade.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_blade",@@ -5404,7 +5563,12 @@"graphify.extractors.base","pathlib","re"- ]+ ],+ "rust_files": [+ "src/extractors/blade.rs",+ "src/regex_compat.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/cobol.py",@@ -5413,7 +5577,7 @@"lines": 297,"category": "application_python","rust_target": "src/extractors/cobol.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_code_lines",@@ -5452,7 +5616,11 @@"pathlib","re","typing"- ]+ ],+ "rust_files": [+ "src/extractors/cobol.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/commonlisp.py",@@ -5461,7 +5629,7 @@"lines": 540,"category": "application_python","rust_target": "src/extractors/commonlisp.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_commonlisp",@@ -5566,7 +5734,11 @@"tree_sitter","tree_sitter_commonlisp","warnings"- ]+ ],+ "rust_files": [+ "src/extractors/commonlisp.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/csharp.py",@@ -5575,7 +5747,7 @@"lines": 567,"category": "application_python","rust_target": "src/extractors/csharp.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_build_csharp_type_def_index",@@ -5714,7 +5886,13 @@"graphify.rcfile","html","pathlib"- ]+ ],+ "rust_files": [+ "src/extractors/csharp.rs",+ "src/html_compat.rs",+ "src/html_entities.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/dart.py",@@ -5723,7 +5901,7 @@"lines": 589,"category": "application_python","rust_target": "src/extractors/dart.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_dart",@@ -5766,7 +5944,11 @@"graphify.extractors.base","pathlib","re"- ]+ ],+ "rust_files": [+ "src/extractors/dart.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/dm.py",@@ -5775,7 +5957,7 @@"lines": 507,"category": "application_python","rust_target": "src/extractors/dm.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_dm",@@ -5868,7 +6050,11 @@"tree_sitter_dm","typing","zlib"- ]+ ],+ "rust_files": [+ "src/extractors/dm.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/elixir.py",@@ -5877,7 +6063,7 @@"lines": 464,"category": "application_python","rust_target": "src/extractors/elixir.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_elixir",@@ -5958,7 +6144,11 @@"tree_sitter","tree_sitter_elixir","typing"- ]+ ],+ "rust_files": [+ "src/extractors/elixir.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/engine.py",@@ -5967,7 +6157,7 @@"lines": 10054,"category": "application_python","rust_target": "src/extractors/engine.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_csharp_namespace_id",@@ -6987,7 +7177,23 @@"json","pathlib","tree_sitter"- ]+ ],+ "rust_files": [+ "src/extractors/engine.rs",+ "src/extractors/engine_calls.rs",+ "src/extractors/engine_config.rs",+ "src/extractors/engine_declarations.rs",+ "src/extractors/engine_declarator.rs",+ "src/extractors/engine_extra.rs",+ "src/extractors/engine_parser.rs",+ "src/extractors/engine_ruby.rs",+ "src/extractors/engine_scope.rs",+ "src/extractors/engine_semantics.rs",+ "src/extractors/engine_types.rs",+ "src/assets/engine/sets.json",+ "src/assets/engine/configs.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/erlang.py",@@ -6996,7 +7202,7 @@"lines": 353,"category": "application_python","rust_target": "src/extractors/erlang.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_atom",@@ -7036,7 +7242,12 @@"tree_sitter","tree_sitter_language_pack","typing"- ]+ ],+ "rust_files": [+ "src/extractors/erlang.rs",+ "vendor/tree-sitter-erlang/SOURCE.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/fortran.py",@@ -7045,7 +7256,7 @@"lines": 431,"category": "application_python","rust_target": "src/extractors/fortran.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_strip_include_directives",@@ -7112,7 +7323,12 @@"subprocess","tree_sitter","tree_sitter_fortran"- ]+ ],+ "rust_files": [+ "src/extractors/fortran.rs",+ "src/process.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/go.py",@@ -7121,7 +7337,7 @@"lines": 754,"category": "application_python","rust_target": "src/extractors/go.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_go_type_param_names",@@ -7211,7 +7427,11 @@"pathlib","tree_sitter","tree_sitter_go"- ]+ ],+ "rust_files": [+ "src/extractors/go.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/json_config.py",@@ -7220,7 +7440,7 @@"lines": 276,"category": "application_python","rust_target": "src/extractors/json_config.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_is_config_json",@@ -7265,7 +7485,11 @@"pathlib","tree_sitter","tree_sitter_json"- ]+ ],+ "rust_files": [+ "src/extractors/json_config.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/julia.py",@@ -7274,7 +7498,7 @@"lines": 498,"category": "application_python","rust_target": "src/extractors/julia.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_julia",@@ -7364,7 +7588,12 @@"pathlib","tree_sitter","tree_sitter_julia"- ]+ ],+ "rust_files": [+ "src/extractors/julia.rs",+ "src/extractors/engine_semantics.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/markdown.py",@@ -7373,7 +7602,7 @@"lines": 582,"category": "application_python","rust_target": "src/extractors/markdown.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_split_frontmatter",@@ -7468,7 +7697,13 @@"unicodedata","urllib.parse","yaml"- ]+ ],+ "rust_files": [+ "src/extractors/markdown.rs",+ "src/extractors/markdown_data.rs",+ "src/extractors/yaml_frontmatter.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/models.py",@@ -7477,7 +7712,7 @@"lines": 131,"category": "application_python","rust_target": "src/extractors/models.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "LanguageConfig",@@ -7530,7 +7765,11 @@"dataclasses","pathlib","typing"- ]+ ],+ "rust_files": [+ "src/extractors/models.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/objc.py",@@ -7539,7 +7778,7 @@"lines": 813,"category": "application_python","rust_target": "src/extractors/objc.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_objc_category_base_stem",@@ -7648,7 +7887,13 @@"tree_sitter","tree_sitter_objc","typing"- ]+ ],+ "rust_files": [+ "src/extractors/objc.rs",+ "src/extractors/engine_declarator.rs",+ "src/extractors/resolution_paths.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/ocaml.py",@@ -7657,7 +7902,7 @@"lines": 357,"category": "application_python","rust_target": "src/extractors/ocaml.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_ocaml",@@ -7727,7 +7972,11 @@"pathlib","tree_sitter","tree_sitter_ocaml"- ]+ ],+ "rust_files": [+ "src/extractors/ocaml.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/pascal.py",@@ -7736,7 +7985,7 @@"lines": 720,"category": "application_python","rust_target": "src/extractors/pascal.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_pascal_strip_comments",@@ -7848,7 +8097,12 @@"tree_sitter","tree_sitter_pascal","typing"- ]+ ],+ "rust_files": [+ "src/extractors/pascal.rs",+ "src/extractors/pascal_paths.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/pascal_forms.py",@@ -7857,7 +8111,7 @@"lines": 196,"category": "application_python","rust_target": "src/extractors/pascal_forms.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_lazarus_form",@@ -7896,7 +8150,12 @@"pathlib","re","typing"- ]+ ],+ "rust_files": [+ "src/extractors/pascal_forms.rs",+ "src/io_compat.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/powershell.py",@@ -7905,7 +8164,7 @@"lines": 601,"category": "application_python","rust_target": "src/extractors/powershell.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_powershell",@@ -8001,7 +8260,11 @@"tree_sitter","tree_sitter_powershell","typing"- ]+ ],+ "rust_files": [+ "src/extractors/powershell.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/r.py",@@ -8010,7 +8273,7 @@"lines": 482,"category": "application_python","rust_target": "src/extractors/r.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_unquote",@@ -8105,7 +8368,12 @@"tree_sitter","tree_sitter_language_pack","typing"- ]+ ],+ "rust_files": [+ "src/extractors/r.rs",+ "vendor/tree-sitter-r/SOURCE.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/razor.py",@@ -8114,7 +8382,7 @@"lines": 196,"category": "application_python","rust_target": "src/extractors/razor.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_razor",@@ -8133,7 +8401,11 @@"graphify.security","pathlib","re"- ]+ ],+ "rust_files": [+ "src/extractors/razor.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/resolution.py",@@ -8142,7 +8414,7 @@"lines": 4232,"category": "application_python","rust_target": "src/extractors/resolution.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_declared_language_suffixes",@@ -8710,7 +8982,16 @@"tree_sitter_python","tree_sitter_typescript","typing"- ]+ ],+ "rust_files": [+ "src/extractors/resolution.rs",+ "src/extractors/resolution_facts.rs",+ "src/extractors/resolution_js.rs",+ "src/extractors/resolution_paths.rs",+ "src/extractors/resolution_types.rs",+ "src/extractors/pascal_paths.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/robot.py",@@ -8719,7 +9000,7 @@"lines": 297,"category": "application_python","rust_target": "src/extractors/robot.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_resolve_robot_import",@@ -8846,7 +9127,12 @@"re","robot.api","robot.api.parsing"- ]+ ],+ "rust_files": [+ "src/extractors/robot.rs",+ "src/assets/robot/languages.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/rust.py",@@ -8855,7 +9141,7 @@"lines": 906,"category": "application_python","rust_target": "src/extractors/rust.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_rust_collect_type_refs",@@ -8955,7 +9241,11 @@"re","tree_sitter","tree_sitter_rust"- ]+ ],+ "rust_files": [+ "src/extractors/rust.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/sln.py",@@ -8964,7 +9254,7 @@"lines": 92,"category": "application_python","rust_target": "src/extractors/sln.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "extract_sln",@@ -8977,7 +9267,12 @@"graphify.extractors.base","pathlib","re"- ]+ ],+ "rust_files": [+ "src/extractors/sln.rs",+ "src/fsutil.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/solidity.py",@@ -8986,7 +9281,7 @@"lines": 484,"category": "application_python","rust_target": "src/extractors/solidity.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_unquote",@@ -9031,7 +9326,12 @@"tree_sitter","tree_sitter_solidity","typing"- ]+ ],+ "rust_files": [+ "src/extractors/solidity.rs",+ "vendor/tree-sitter-solidity/SOURCE.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/sql.py",@@ -9040,7 +9340,7 @@"lines": 785,"category": "application_python","rust_target": "src/extractors/sql.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_scan_sql",@@ -9121,7 +9421,17 @@"re","tree_sitter","tree_sitter_sql"- ]+ ],+ "rust_files": [+ "src/extractors/sql.rs",+ "vendor/tree-sitter-sql/src/lib.rs",+ "vendor/tree-sitter-sql/build.rs",+ "vendor/tree-sitter-sql/grammar/parser.c",+ "vendor/tree-sitter-sql/grammar/scanner.c",+ "vendor/tree-sitter-sql/grammar/tree_sitter/parser.h",+ "vendor/tree-sitter-sql/SOURCE.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/terraform.py",@@ -9130,7 +9440,7 @@"lines": 462,"category": "application_python","rust_target": "src/extractors/terraform.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_redact_value",@@ -9229,7 +9539,16 @@"re","tree_sitter","tree_sitter_hcl"- ]+ ],+ "rust_files": [+ "src/extractors/terraform.rs",+ "vendor/tree-sitter-hcl/src/lib.rs",+ "vendor/tree-sitter-hcl/build.rs",+ "vendor/tree-sitter-hcl/grammar/parser.c",+ "vendor/tree-sitter-hcl/grammar/scanner.c",+ "vendor/tree-sitter-hcl/SOURCE.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/vbnet.py",@@ -9238,7 +9557,7 @@"lines": 433,"category": "application_python","rust_target": "src/extractors/vbnet.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "resolve_vbnet_partial_calls",@@ -9288,7 +9607,12 @@"tree_sitter","tree_sitter_vb_dotnet","typing"- ]+ ],+ "rust_files": [+ "src/extractors/vbnet.rs",+ "vendor/tree-sitter-vb-dotnet/SOURCE.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/verilog.py",@@ -9297,7 +9621,7 @@"lines": 364,"category": "application_python","rust_target": "src/extractors/verilog.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_sv_first_identifier",@@ -9382,7 +9706,11 @@"re","tree_sitter","tree_sitter_verilog"- ]+ ],+ "rust_files": [+ "src/extractors/verilog.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/extractors/zig.py",@@ -9391,7 +9719,7 @@"lines": 245,"category": "application_python","rust_target": "src/extractors/zig.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_is_tagged_union",@@ -9436,7 +9764,11 @@"tree_sitter","tree_sitter_zig","typing"- ]+ ],+ "rust_files": [+ "src/extractors/zig.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/file_slice.py",@@ -9445,7 +9777,7 @@"lines": 249,"category": "application_python","rust_target": "src/file_slice.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_pdf_text",@@ -9504,7 +9836,11 @@"graphify.detect","graphify.extractors.base","pathlib"- ]+ ],+ "rust_files": [+ "src/file_slice.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/global_graph.py",@@ -9513,7 +9849,7 @@"lines": 201,"category": "application_python","rust_target": "src/global_graph.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_load_manifest",@@ -9574,7 +9910,13 @@"networkx.readwrite","pathlib","sys"- ]+ ],+ "rust_files": [+ "src/global_graph.rs",+ "src/build_global.rs",+ "src/graph.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/google_workspace.py",@@ -9583,7 +9925,7 @@"lines": 237,"category": "application_python","rust_target": "src/google_workspace.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "google_workspace_enabled",@@ -9644,7 +9986,11 @@"typing","unicodedata","urllib.parse"- ]+ ],+ "rust_files": [+ "src/google_workspace.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/hooks.py",@@ -9653,7 +9999,7 @@"lines": 1137,"category": "application_python","rust_target": "src/hooks.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_unquote_git_path",@@ -9790,7 +10136,12 @@"re","subprocess","sys"- ]+ ],+ "rust_files": [+ "src/hooks.rs",+ "src/hooks_runtime.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/ids.py",@@ -9799,7 +10150,7 @@"lines": 93,"category": "application_python","rust_target": "src/ids.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "normalize_id",@@ -9816,7 +10167,12 @@"__future__","re","unicodedata"- ]+ ],+ "rust_files": [+ "src/ids.rs",+ "src/unicode15.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/ingest.py",@@ -9825,7 +10181,7 @@"lines": 383,"category": "application_python","rust_target": "src/ingest.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_yaml_str",@@ -9901,7 +10257,12 @@"urllib.error","urllib.parse","uuid"- ]+ ],+ "rust_files": [+ "src/ingest.rs",+ "src/ingest_api.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/install.py",@@ -9910,7 +10271,7 @@"lines": 2779,"category": "application_python","rust_target": "src/install.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_skill_lock_path",@@ -10382,7 +10743,18 @@"threading","time","typing"- ]+ ],+ "rust_files": [+ "src/install.rs",+ "src/install_fs.rs",+ "src/install_platforms.rs",+ "src/assets/install/SKILL.md",+ "src/assets/install/constants.json",+ "src/assets/install/pi/index.ts",+ "src/assets/install/pi/package.json",+ "src/assets/install/workflows.md"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/interface_dispatch.py",@@ -10391,7 +10763,7 @@"lines": 195,"category": "application_python","rust_target": "src/interface_dispatch.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_dispatch_confidence",@@ -10417,7 +10789,11 @@"imports": ["__future__","graphify.rcfile"- ]+ ],+ "rust_files": [+ "src/interface_dispatch.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/llm.py",@@ -10968,11 +11344,15 @@"lines": 4,"category": "application_python","rust_target": "src/manifest.rs",- "status": "pending",+ "status": "ported_verified","definitions": [],"imports": ["graphify.detect"- ]+ ],+ "rust_files": [+ "src/manifest.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/manifest_ingest.py",@@ -10981,7 +11361,7 @@"lines": 337,"category": "application_python","rust_target": "src/manifest_ingest.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_load_toml_module",@@ -11059,7 +11439,11 @@"typing","xml.etree.ElementTree","yaml"- ]+ ],+ "rust_files": [+ "src/manifest_ingest.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/markdown_resolution.py",@@ -11068,7 +11452,7 @@"lines": 231,"category": "application_python","rust_target": "src/markdown_resolution.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_symbol_label",@@ -11117,7 +11501,11 @@"os","re","typing"- ]+ ],+ "rust_files": [+ "src/markdown_resolution.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/mcp_ingest.py",@@ -11126,7 +11514,7 @@"lines": 386,"category": "application_python","rust_target": "src/mcp_ingest.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "is_mcp_config_path",@@ -11179,7 +11567,11 @@"re","typing","unicodedata"- ]+ ],+ "rust_files": [+ "src/mcp_ingest.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/multigraph_compat.py",@@ -11188,7 +11580,7 @@"lines": 212,"category": "application_python","rust_target": "src/multigraph_compat.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "CapabilityCheck",@@ -11275,7 +11667,12 @@"networkx.readwrite","sys","typing"- ]+ ],+ "rust_files": [+ "src/multigraph_compat.rs",+ "src/graph.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/pascal_resolution.py",@@ -11284,7 +11681,7 @@"lines": 129,"category": "application_python","rust_target": "src/pascal_resolution.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_pascal_raw_calls",@@ -11304,7 +11701,11 @@],"imports": ["__future__"- ]+ ],+ "rust_files": [+ "src/pascal_resolution.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/paths.py",@@ -11313,7 +11714,7 @@"lines": 593,"category": "application_python","rust_target": "src/paths.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_out_from_env",@@ -11421,7 +11822,13 @@"sys","tempfile","unicodedata"- ]+ ],+ "rust_files": [+ "src/paths.rs",+ "src/python_json.rs",+ "src/security.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/pg_introspect.py",@@ -11702,7 +12109,7 @@"lines": 80,"category": "application_python","rust_target": "src/querylog.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_log_path",@@ -11734,7 +12141,11 @@"re","time","typing"- ]+ ],+ "rust_files": [+ "src/querylog.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/rcfile.py",@@ -11743,7 +12154,7 @@"lines": 252,"category": "application_python","rust_target": "src/rcfile.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_normalise_ext",@@ -11797,7 +12208,12 @@"pathlib","sys","threading"- ]+ ],+ "rust_files": [+ "src/rcfile.rs",+ "src/par.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/reflect.py",@@ -11806,7 +12222,7 @@"lines": 882,"category": "application_python","rust_target": "src/reflect.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_yaml_unescape",@@ -11965,7 +12381,12 @@"pathlib","re","typing"- ]+ ],+ "rust_files": [+ "src/reflect.rs",+ "src/python_datetime.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/report.py",@@ -11974,7 +12395,7 @@"lines": 408,"category": "application_python","rust_target": "src/report.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_portable_root_label",@@ -12021,7 +12442,11 @@"networkx","pathlib","re"- ]+ ],+ "rust_files": [+ "src/report.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/resolver_registry.py",@@ -12030,7 +12455,7 @@"lines": 88,"category": "application_python","rust_target": "src/resolver_registry.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "LanguageResolver",@@ -12061,7 +12486,11 @@"logging","pathlib","typing"- ]+ ],+ "rust_files": [+ "src/resolver_registry.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/ruby_resolution.py",@@ -12070,7 +12499,7 @@"lines": 524,"category": "application_python","rust_target": "src/ruby_resolution.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_key",@@ -12148,7 +12577,12 @@"build","re","typing"- ]+ ],+ "rust_files": [+ "src/ruby_resolution.rs",+ "src/build_labels.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/scip_ingest.py",@@ -12157,7 +12591,7 @@"lines": 363,"category": "application_python","rust_target": "src/scip_ingest.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "ingest_scip_json",@@ -12221,7 +12655,11 @@"hashlib","re","typing"- ]+ ],+ "rust_files": [+ "src/scip_ingest.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/security.py",@@ -12230,7 +12668,7 @@"lines": 461,"category": "application_python","rust_target": "src/security.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_max_graph_file_bytes",@@ -12363,7 +12801,13 @@"urllib.error","urllib.parse","urllib.request"- ]+ ],+ "rust_files": [+ "src/security.rs",+ "src/ip_policy_data.rs",+ "src/decimal_data.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/semantic_cleanup.py",@@ -12372,7 +12816,7 @@"lines": 336,"category": "application_python","rust_target": "src/semantic_cleanup.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "validate_semantic_fragment",@@ -12411,7 +12855,12 @@"json","pathlib","re"- ]+ ],+ "rust_files": [+ "src/semantic_cleanup.rs",+ "src/hyperedge_members.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/serve.py",@@ -12420,7 +12869,7 @@"lines": 3007,"category": "application_python","rust_target": "src/serve.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "ToolError",@@ -12972,7 +13421,20 @@"unicodedata","uvicorn","warnings"- ]+ ],+ "rust_files": [+ "src/serve.rs",+ "src/serve_api.rs",+ "src/serve_find.rs",+ "src/serve_http.rs",+ "src/serve_live.rs",+ "src/serve_prs.rs",+ "src/serve_search.rs",+ "src/serve_socket.rs",+ "src/serve_text.rs",+ "src/assets/serve/constants.json"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/skill-agents.md",@@ -14389,7 +14851,7 @@"lines": 46,"category": "application_python","rust_target": "src/swift_dispatch.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "resolve_swift_protocol_dispatch",@@ -14400,7 +14862,11 @@"imports": ["__future__","graphify.interface_dispatch"- ]+ ],+ "rust_files": [+ "src/swift_dispatch.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/symbol_resolution.py",@@ -14409,7 +14875,7 @@"lines": 577,"category": "application_python","rust_target": "src/symbol_resolution.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "ImportedSymbol",@@ -14506,7 +14972,11 @@"re","typing","unicodedata"- ]+ ],+ "rust_files": [+ "src/symbol_resolution.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/transcribe.py",@@ -14576,7 +15046,7 @@"lines": 604,"category": "application_python","rust_target": "src/tree_html.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_common_root",@@ -14623,7 +15093,12 @@"json","pathlib","typing"- ]+ ],+ "rust_files": [+ "src/tree_html.rs",+ "src/assets/tree.html.template"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/validate.py",@@ -14632,7 +15107,7 @@"lines": 95,"category": "application_python","rust_target": "src/validate.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "validate_extraction",@@ -14647,7 +15122,13 @@],"imports": ["__future__"- ]+ ],+ "rust_files": [+ "src/validate.rs",+ "src/python_compat.rs",+ "src/python_repr_data.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/watch.py",@@ -14656,7 +15137,7 @@"lines": 2861,"category": "application_python","rust_target": "src/watch.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_queue_pending",@@ -15001,7 +15482,13 @@"watchdog.events","watchdog.observers","watchdog.observers.polling"- ]+ ],+ "rust_files": [+ "src/watch.rs",+ "src/watch_paths.rs",+ "src/watch_reconcile.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "graphify/wiki.py",@@ -15010,7 +15497,7 @@"lines": 455,"category": "application_python","rust_target": "src/wiki.rs",- "status": "pending",+ "status": "ported_verified","definitions": [{"name": "_safe_filename",@@ -15067,7 +15554,11 @@"pathlib","re","sys"- ]+ ],+ "rust_files": [+ "src/wiki.rs"+ ],+ "checked_utc": "2026-10-15T13:11:11+00:00"},{"path": "pyproject.toml",diff --git a/crates/graphicle-graph/migration/PROGRESS.json b/crates/graphicle-graph/migration/PROGRESS.jsonindex 7b81d5a..62cb0a9 100644--- a/crates/graphicle-graph/migration/PROGRESS.json+++ b/crates/graphicle-graph/migration/PROGRESS.json@@ -1,14 +1,13 @@{- "upstream_commit": "a9860f70dc3cc2e9c2d8cb923484cfa0592b9067",- "archive_files_accounted_for": 1046,+ "upstream_commit": "10130e79ed9caf8f60d998073e097531eaa1a395",+ "archive_files_accounted_for": 1068,"application_files_total": 95,- "application_files_ported_verified": 95,- "application_source_lines_total": 84134,- "application_source_lines_ported": 84134,- "complete_port": true,+ "application_files_ported_verified": 88,+ "application_source_lines_total": 86217,+ "application_source_lines_ported": 78578,+ "complete_port": false,"completed_files": ["graphify/__init__.py",- "graphify/__main__.py","graphify/_minhash.py","graphify/affected.py","graphify/analyze.py",@@ -25,10 +24,8 @@"graphify/dedup.py","graphify/detect.py","graphify/diagnostics.py",- "graphify/export.py","graphify/exporters/__init__.py","graphify/exporters/base.py",- "graphify/exporters/graphdb.py","graphify/exporters/html.py","graphify/extract.py","graphify/extractors/__init__.py",@@ -75,7 +72,6 @@"graphify/ingest.py","graphify/install.py","graphify/interface_dispatch.py",- "graphify/llm.py","graphify/manifest.py","graphify/manifest_ingest.py","graphify/markdown_resolution.py",@@ -83,8 +79,6 @@"graphify/multigraph_compat.py","graphify/pascal_resolution.py","graphify/paths.py",- "graphify/pg_introspect.py",- "graphify/prs.py","graphify/querylog.py","graphify/rcfile.py","graphify/reflect.py",@@ -97,12 +91,19 @@"graphify/serve.py","graphify/swift_dispatch.py","graphify/symbol_resolution.py",- "graphify/transcribe.py","graphify/tree_html.py","graphify/validate.py","graphify/watch.py","graphify/wiki.py"],- "pending_files": [],- "updated_utc": "2026-10-13T15:17:37.483257+00:00"+ "pending_files": [+ "graphify/__main__.py",+ "graphify/export.py",+ "graphify/exporters/graphdb.py",+ "graphify/llm.py",+ "graphify/pg_introspect.py",+ "graphify/prs.py",+ "graphify/transcribe.py"+ ],+ "updated_utc": "2026-10-18T02:21:03.858688+00:00"}diff --git a/crates/graphicle-graph/migration/STATUS.md b/crates/graphicle-graph/migration/STATUS.mdindex 158aaac..7a03a05 100644--- a/crates/graphicle-graph/migration/STATUS.md+++ b/crates/graphicle-graph/migration/STATUS.md@@ -1,10 +1,10 @@# Rust port of Graphify-Pinned source: Graphify 0.9.88, `a9860f70dc3cc2e9c2d8cb923484cfa0592b9067`.+Pinned source: Graphify 0.9.91, `10130e79ed9caf8f60d998073e097531eaa1a395`.-**95/95 application files currently verified** (84,134/84,134 source lines). The pinned application port is complete.+**88/95 application files currently verified** (78,578/86,217 source lines). Qualification is incomplete.-The inventory accounts for all **1046 archive files**. Copied documentation, parser fixtures and licenses retain their formats; they are not counted as converted application code.+The inventory accounts for all **1068 archive files**. Copied documentation, parser fixtures and licenses retain their formats; they are not counted as converted application code.| Archive category | Files || --- | ---: |@@ -13,11 +13,11 @@ The inventory accounts for all **1046 archive files**. Copied documentation, par| development_tool_python | 5 || documentation_or_prompt_asset | 350 || license_notice | 3 |-| other_asset_or_configuration | 16 |+| other_asset_or_configuration | 19 || reference_fixture | 157 |-| upstream_test_python | 406 |+| upstream_test_python | 425 |-The 406 original Python test files are retained as behavioral references and are not part of the Rust rewrite, as requested on 23 September 2026. During qualification the comparison checks run the upstream test files that their receipts name against the native APIs, and compare with the pinned reference with the reviewed upstream fixes applied. Not every upstream test file is run: the repository's `docs/evidence/upstream-tests-not-run.md` lists those that are not, with the reason for each. 5 developer tools and 14 build/CI files remain separately accounted for.+The 425 original Python test files are retained as behavioral references and are not part of the Rust rewrite, as requested on 23 September 2026. During qualification the comparison checks run the upstream test files that their receipts name against the native APIs, and compare with the pinned reference with the reviewed upstream fixes applied. Not every upstream test file is run: the repository's `docs/evidence/upstream-tests-not-run.md` lists those that are not, with the reason for each. 5 developer tools and 14 build/CI files remain separately accounted for.The Rust library is linked into the memory core through `graph.*` dispatch. The native executable provides the CLI, MCP server, extraction/update/watch workflows, hooks and installer. Optional build features and external integrations are described in [README](../README.md). Python is not a runtime fallback.@@ -26,29 +26,29 @@ Each current receipt binds the module, complete Rust source set, immutable binar| Application source | Lines | Status | Native files | Evidence || --- | ---: | --- | --- | --- || `graphify/__init__.py` | 30 | Verified | [src/lib.rs](../src/lib.rs), [src/model.rs](../src/model.rs), [src/error.rs](../src/error.rs), [tests/public_api.rs](../tests/public_api.rs) | receipt |-| `graphify/__main__.py` | 1,088 | Verified | [src/main.rs](../src/main.rs), [src/lib.rs](../src/lib.rs), [src/cli.rs](../src/cli.rs), [src/cli_cluster.rs](../src/cli_cluster.rs), [src/cli_commands.rs](../src/cli_commands.rs), [src/cli_export.rs](../src/cli_export.rs), [src/cli_extract.rs](../src/cli_extract.rs), [src/cli_guard.rs](../src/cli_guard.rs), [src/cli_merge.rs](../src/cli_merge.rs), [src/cli_state.rs](../src/cli_state.rs), [src/serve.rs](../src/serve.rs), [src/serve_api.rs](../src/serve_api.rs), [src/serve_find.rs](../src/serve_find.rs), [src/serve_http.rs](../src/serve_http.rs), [src/serve_live.rs](../src/serve_live.rs), [src/serve_prs.rs](../src/serve_prs.rs), [src/serve_search.rs](../src/serve_search.rs), [src/serve_socket.rs](../src/serve_socket.rs), [src/serve_text.rs](../src/serve_text.rs), [src/watch.rs](../src/watch.rs), [src/watch_paths.rs](../src/watch_paths.rs), [src/watch_reconcile.rs](../src/watch_reconcile.rs) | receipt |+| `graphify/__main__.py` | 1,091 | Pending | — | — || `graphify/_minhash.py` | 107 | Verified | [src/minhash.rs](../src/minhash.rs) | receipt || `graphify/affected.py` | 393 | Verified | [src/affected.rs](../src/affected.rs), [src/graph.rs](../src/graph.rs), [src/session.rs](../src/session.rs), [src/graph_node_link.rs](../src/graph_node_link.rs) | receipt, receipt || `graphify/analyze.py` | 834 | Verified | [src/analyze.rs](../src/analyze.rs), [src/analyze_data.rs](../src/analyze_data.rs), [src/graph_algorithms.rs](../src/graph_algorithms.rs), [src/python_compat.rs](../src/python_compat.rs) | receipt || `graphify/benchmark.py` | 121 | Verified | [src/benchmark.rs](../src/benchmark.rs), [src/query_terms.rs](../src/query_terms.rs), [src/assets/query/stopwords.json](../src/assets/query/stopwords.json), [src/assets/query/jieba-py-0.46.12.hmm](../src/assets/query/jieba-py-0.46.12.hmm) | receipt |-| `graphify/build.py` | 2,754 | Verified | [src/build.rs](../src/build.rs), [src/build_normalize.rs](../src/build_normalize.rs), [src/build_merge.rs](../src/build_merge.rs), [src/build_api.rs](../src/build_api.rs), [src/build_global.rs](../src/build_global.rs), [src/build_labels.rs](../src/build_labels.rs), [src/hyperedge_members.rs](../src/hyperedge_members.rs) | receipt |-| `graphify/cache.py` | 1,924 | Verified | [src/cache.rs](../src/cache.rs), [src/cache_paths.rs](../src/cache_paths.rs), [src/cache_api.rs](../src/cache_api.rs) | receipt |+| `graphify/build.py` | 2,806 | Verified | [src/build.rs](../src/build.rs), [src/build_normalize.rs](../src/build_normalize.rs), [src/build_merge.rs](../src/build_merge.rs), [src/build_api.rs](../src/build_api.rs), [src/build_global.rs](../src/build_global.rs), [src/build_labels.rs](../src/build_labels.rs), [src/hyperedge_members.rs](../src/hyperedge_members.rs) | receipt |+| `graphify/cache.py` | 1,939 | Verified | [src/cache.rs](../src/cache.rs), [src/cache_paths.rs](../src/cache_paths.rs), [src/cache_api.rs](../src/cache_api.rs) | receipt || `graphify/callflow_html.py` | 2,051 | Verified | [src/callflow_data.rs](../src/callflow_data.rs), [src/callflow_html.rs](../src/callflow_html.rs), [src/assets/callflow/templates.json](../src/assets/callflow/templates.json) | receipt || `graphify/cargo_introspect.py` | 166 | Verified | [src/cargo_introspect.rs](../src/cargo_introspect.rs) | receipt |-| `graphify/cli.py` | 5,190 | Verified | [src/cli.rs](../src/cli.rs), [src/cli_cluster.rs](../src/cli_cluster.rs), [src/cli_commands.rs](../src/cli_commands.rs), [src/cli_export.rs](../src/cli_export.rs), [src/cli_extract.rs](../src/cli_extract.rs), [src/cli_guard.rs](../src/cli_guard.rs), [src/cli_merge.rs](../src/cli_merge.rs), [src/cli_state.rs](../src/cli_state.rs), [src/assets/cli/constants.json](../src/assets/cli/constants.json), [src/assets/cli/help.txt](../src/assets/cli/help.txt) | receipt |-| `graphify/cluster.py` | 482 | Verified | [src/cluster.rs](../src/cluster.rs) | receipt |-| `graphify/cross_repo_calls.py` | 247 | Verified | [src/cross_repo_calls.rs](../src/cross_repo_calls.rs) | receipt |+| `graphify/cli.py` | 5,364 | Verified | [src/cli.rs](../src/cli.rs), [src/cli_cluster.rs](../src/cli_cluster.rs), [src/cli_commands.rs](../src/cli_commands.rs), [src/cli_export.rs](../src/cli_export.rs), [src/cli_extract.rs](../src/cli_extract.rs), [src/cli_guard.rs](../src/cli_guard.rs), [src/cli_merge.rs](../src/cli_merge.rs), [src/cli_state.rs](../src/cli_state.rs), [src/assets/cli/constants.json](../src/assets/cli/constants.json), [src/assets/cli/help.txt](../src/assets/cli/help.txt) | receipt |+| `graphify/cluster.py` | 507 | Verified | [src/cluster.rs](../src/cluster.rs) | receipt |+| `graphify/cross_repo_calls.py` | 273 | Verified | [src/cross_repo_calls.rs](../src/cross_repo_calls.rs) | receipt || `graphify/cross_repo_types.py` | 75 | Verified | [src/cross_repo_types.rs](../src/cross_repo_types.rs) | receipt |-| `graphify/csharp_dispatch.py` | 38 | Verified | [src/csharp_dispatch.rs](../src/csharp_dispatch.rs) | receipt |-| `graphify/dedup.py` | 1,595 | Verified | [src/dedup.rs](../src/dedup.rs), [src/dedup_strings.rs](../src/dedup_strings.rs), [src/dedup_api.rs](../src/dedup_api.rs) | receipt |+| `graphify/csharp_dispatch.py` | 39 | Verified | [src/csharp_dispatch.rs](../src/csharp_dispatch.rs) | receipt |+| `graphify/dedup.py` | 1,649 | Verified | [src/dedup.rs](../src/dedup.rs), [src/dedup_strings.rs](../src/dedup_strings.rs), [src/dedup_api.rs](../src/dedup_api.rs) | receipt || `graphify/detect.py` | 2,981 | Verified | [src/detect.rs](../src/detect.rs), [src/detect_types.rs](../src/detect_types.rs), [src/detect_ignore.rs](../src/detect_ignore.rs), [src/detect_documents.rs](../src/detect_documents.rs), [src/detect_manifest.rs](../src/detect_manifest.rs), [src/assets/detect/constants.json](../src/assets/detect/constants.json) | receipt || `graphify/diagnostics.py` | 422 | Verified | [src/diagnostics.rs](../src/diagnostics.rs), [src/diagnostics_report.rs](../src/diagnostics_report.rs), [build.rs](../build.rs) | receipt |-| `graphify/export.py` | 1,431 | Verified | [src/export.rs](../src/export.rs), [src/export_obsidian.rs](../src/export_obsidian.rs), [src/export_formats.rs](../src/export_formats.rs), [src/export_api.rs](../src/export_api.rs), [src/assets/export/digit_ranges.json](../src/assets/export/digit_ranges.json) | receipt |+| `graphify/export.py` | 1,432 | Pending | — | — || `graphify/exporters/__init__.py` | 1 | Verified | [src/exporters/mod.rs](../src/exporters/mod.rs) | receipt || `graphify/exporters/base.py` | 14 | Verified | [src/exporters/base.rs](../src/exporters/base.rs) | receipt |-| `graphify/exporters/graphdb.py` | 210 | Verified | [src/exporters/graphdb.rs](../src/exporters/graphdb.rs), [src/exporters/common.rs](../src/exporters/common.rs) | receipt |+| `graphify/exporters/graphdb.py` | 210 | Pending | — | — || `graphify/exporters/html.py` | 781 | Verified | [src/exporters/html.rs](../src/exporters/html.rs), [src/exporters/common.rs](../src/exporters/common.rs), [src/assets/export_html/styles.html](../src/assets/export_html/styles.html), [src/assets/export_html/script.html.template](../src/assets/export_html/script.html.template), [src/assets/export_html/hyperedges.html.template](../src/assets/export_html/hyperedges.html.template), [src/assets/export_html/document.html.template](../src/assets/export_html/document.html.template) | receipt |-| `graphify/extract.py` | 10,625 | Verified | [src/extract.rs](../src/extract.rs), [src/extract_languages.rs](../src/extract_languages.rs), [src/extract_members.rs](../src/extract_members.rs), [src/extract_merge.rs](../src/extract_merge.rs), [src/extract_normalize.rs](../src/extract_normalize.rs), [src/extract_projects.rs](../src/extract_projects.rs), [src/extract_python.rs](../src/extract_python.rs), [src/assets/extract/constants.json](../src/assets/extract/constants.json), [src/cache.rs](../src/cache.rs), [src/cache_paths.rs](../src/cache_paths.rs), [src/extractors/resolution.rs](../src/extractors/resolution.rs), [src/extractors/parse_cache.rs](../src/extractors/parse_cache.rs) | receipt, receipt |+| `graphify/extract.py` | 10,974 | Verified | [src/extract.rs](../src/extract.rs), [src/extract_languages.rs](../src/extract_languages.rs), [src/extract_members.rs](../src/extract_members.rs), [src/extract_merge.rs](../src/extract_merge.rs), [src/extract_normalize.rs](../src/extract_normalize.rs), [src/extract_projects.rs](../src/extract_projects.rs), [src/extract_python.rs](../src/extract_python.rs), [src/assets/extract/constants.json](../src/assets/extract/constants.json), [src/cache.rs](../src/cache.rs), [src/cache_paths.rs](../src/cache_paths.rs), [src/extractors/resolution.rs](../src/extractors/resolution.rs), [src/extractors/parse_cache.rs](../src/extractors/parse_cache.rs) | receipt, receipt || `graphify/extractors/__init__.py` | 76 | Verified | [src/extractors/registry.rs](../src/extractors/registry.rs), [src/extractors/mod.rs](../src/extractors/mod.rs) | receipt || `graphify/extractors/apex.py` | 215 | Verified | [src/extractors/apex.rs](../src/extractors/apex.rs) | receipt || `graphify/extractors/base.py` | 153 | Verified | [src/extractors/base.rs](../src/extractors/base.rs), [src/extractors/builtins_data.rs](../src/extractors/builtins_data.rs), [src/path_syntax.rs](../src/path_syntax.rs) | receipt |@@ -60,24 +60,24 @@ Each current receipt binds the module, complete Rust source set, immutable binar| `graphify/extractors/dart.py` | 589 | Verified | [src/extractors/dart.rs](../src/extractors/dart.rs) | receipt || `graphify/extractors/dm.py` | 507 | Verified | [src/extractors/dm.rs](../src/extractors/dm.rs) | receipt || `graphify/extractors/elixir.py` | 464 | Verified | [src/extractors/elixir.rs](../src/extractors/elixir.rs) | receipt |-| `graphify/extractors/engine.py` | 9,367 | Verified | [src/extractors/engine.rs](../src/extractors/engine.rs), [src/extractors/engine_calls.rs](../src/extractors/engine_calls.rs), [src/extractors/engine_config.rs](../src/extractors/engine_config.rs), [src/extractors/engine_declarations.rs](../src/extractors/engine_declarations.rs), [src/extractors/engine_declarator.rs](../src/extractors/engine_declarator.rs), [src/extractors/engine_extra.rs](../src/extractors/engine_extra.rs), [src/extractors/engine_parser.rs](../src/extractors/engine_parser.rs), [src/extractors/engine_ruby.rs](../src/extractors/engine_ruby.rs), [src/extractors/engine_scope.rs](../src/extractors/engine_scope.rs), [src/extractors/engine_semantics.rs](../src/extractors/engine_semantics.rs), [src/extractors/engine_types.rs](../src/extractors/engine_types.rs), [src/assets/engine/sets.json](../src/assets/engine/sets.json), [src/assets/engine/configs.json](../src/assets/engine/configs.json) | receipt |+| `graphify/extractors/engine.py` | 10,054 | Verified | [src/extractors/engine.rs](../src/extractors/engine.rs), [src/extractors/engine_calls.rs](../src/extractors/engine_calls.rs), [src/extractors/engine_config.rs](../src/extractors/engine_config.rs), [src/extractors/engine_declarations.rs](../src/extractors/engine_declarations.rs), [src/extractors/engine_declarator.rs](../src/extractors/engine_declarator.rs), [src/extractors/engine_extra.rs](../src/extractors/engine_extra.rs), [src/extractors/engine_parser.rs](../src/extractors/engine_parser.rs), [src/extractors/engine_ruby.rs](../src/extractors/engine_ruby.rs), [src/extractors/engine_scope.rs](../src/extractors/engine_scope.rs), [src/extractors/engine_semantics.rs](../src/extractors/engine_semantics.rs), [src/extractors/engine_types.rs](../src/extractors/engine_types.rs), [src/assets/engine/sets.json](../src/assets/engine/sets.json), [src/assets/engine/configs.json](../src/assets/engine/configs.json) | receipt || `graphify/extractors/erlang.py` | 353 | Verified | [src/extractors/erlang.rs](../src/extractors/erlang.rs), [vendor/tree-sitter-erlang/SOURCE.json](../vendor/tree-sitter-erlang/SOURCE.json) | receipt || `graphify/extractors/fortran.py` | 431 | Verified | [src/extractors/fortran.rs](../src/extractors/fortran.rs), [src/process.rs](../src/process.rs) | receipt |-| `graphify/extractors/go.py` | 624 | Verified | [src/extractors/go.rs](../src/extractors/go.rs) | receipt |+| `graphify/extractors/go.py` | 754 | Verified | [src/extractors/go.rs](../src/extractors/go.rs) | receipt || `graphify/extractors/json_config.py` | 276 | Verified | [src/extractors/json_config.rs](../src/extractors/json_config.rs) | receipt || `graphify/extractors/julia.py` | 498 | Verified | [src/extractors/julia.rs](../src/extractors/julia.rs), [src/extractors/engine_semantics.rs](../src/extractors/engine_semantics.rs) | receipt || `graphify/extractors/markdown.py` | 582 | Verified | [src/extractors/markdown.rs](../src/extractors/markdown.rs), [src/extractors/markdown_data.rs](../src/extractors/markdown_data.rs), [src/extractors/yaml_frontmatter.rs](../src/extractors/yaml_frontmatter.rs) | receipt || `graphify/extractors/models.py` | 131 | Verified | [src/extractors/models.rs](../src/extractors/models.rs) | receipt |-| `graphify/extractors/objc.py` | 640 | Verified | [src/extractors/objc.rs](../src/extractors/objc.rs), [src/extractors/engine_declarator.rs](../src/extractors/engine_declarator.rs), [src/extractors/resolution_paths.rs](../src/extractors/resolution_paths.rs) | receipt |+| `graphify/extractors/objc.py` | 813 | Verified | [src/extractors/objc.rs](../src/extractors/objc.rs), [src/extractors/engine_declarator.rs](../src/extractors/engine_declarator.rs), [src/extractors/resolution_paths.rs](../src/extractors/resolution_paths.rs) | receipt || `graphify/extractors/ocaml.py` | 357 | Verified | [src/extractors/ocaml.rs](../src/extractors/ocaml.rs) | receipt || `graphify/extractors/pascal.py` | 720 | Verified | [src/extractors/pascal.rs](../src/extractors/pascal.rs), [src/extractors/pascal_paths.rs](../src/extractors/pascal_paths.rs) | receipt || `graphify/extractors/pascal_forms.py` | 196 | Verified | [src/extractors/pascal_forms.rs](../src/extractors/pascal_forms.rs), [src/io_compat.rs](../src/io_compat.rs) | receipt || `graphify/extractors/powershell.py` | 601 | Verified | [src/extractors/powershell.rs](../src/extractors/powershell.rs) | receipt || `graphify/extractors/r.py` | 482 | Verified | [src/extractors/r.rs](../src/extractors/r.rs), [vendor/tree-sitter-r/SOURCE.json](../vendor/tree-sitter-r/SOURCE.json) | receipt || `graphify/extractors/razor.py` | 196 | Verified | [src/extractors/razor.rs](../src/extractors/razor.rs) | receipt |-| `graphify/extractors/resolution.py` | 4,156 | Verified | [src/extractors/resolution.rs](../src/extractors/resolution.rs), [src/extractors/resolution_facts.rs](../src/extractors/resolution_facts.rs), [src/extractors/resolution_js.rs](../src/extractors/resolution_js.rs), [src/extractors/resolution_paths.rs](../src/extractors/resolution_paths.rs), [src/extractors/resolution_types.rs](../src/extractors/resolution_types.rs), [src/extractors/pascal_paths.rs](../src/extractors/pascal_paths.rs) | receipt |+| `graphify/extractors/resolution.py` | 4,232 | Verified | [src/extractors/resolution.rs](../src/extractors/resolution.rs), [src/extractors/resolution_facts.rs](../src/extractors/resolution_facts.rs), [src/extractors/resolution_js.rs](../src/extractors/resolution_js.rs), [src/extractors/resolution_paths.rs](../src/extractors/resolution_paths.rs), [src/extractors/resolution_types.rs](../src/extractors/resolution_types.rs), [src/extractors/pascal_paths.rs](../src/extractors/pascal_paths.rs) | receipt || `graphify/extractors/robot.py` | 297 | Verified | [src/extractors/robot.rs](../src/extractors/robot.rs), [src/assets/robot/languages.json](../src/assets/robot/languages.json) | receipt |-| `graphify/extractors/rust.py` | 898 | Verified | [src/extractors/rust.rs](../src/extractors/rust.rs) | receipt |+| `graphify/extractors/rust.py` | 906 | Verified | [src/extractors/rust.rs](../src/extractors/rust.rs) | receipt || `graphify/extractors/sln.py` | 92 | Verified | [src/extractors/sln.rs](../src/extractors/sln.rs), [src/fsutil.rs](../src/fsutil.rs) | receipt || `graphify/extractors/solidity.py` | 484 | Verified | [src/extractors/solidity.rs](../src/extractors/solidity.rs), [vendor/tree-sitter-solidity/SOURCE.json](../vendor/tree-sitter-solidity/SOURCE.json) | receipt || `graphify/extractors/sql.py` | 785 | Verified | [src/extractors/sql.rs](../src/extractors/sql.rs), [vendor/tree-sitter-sql/src/lib.rs](../vendor/tree-sitter-sql/src/lib.rs), [vendor/tree-sitter-sql/build.rs](../vendor/tree-sitter-sql/build.rs), [vendor/tree-sitter-sql/grammar/parser.c](../vendor/tree-sitter-sql/grammar/parser.c), [vendor/tree-sitter-sql/grammar/scanner.c](../vendor/tree-sitter-sql/grammar/scanner.c), [vendor/tree-sitter-sql/grammar/tree_sitter/parser.h](../vendor/tree-sitter-sql/grammar/tree_sitter/parser.h), [vendor/tree-sitter-sql/SOURCE.json](../vendor/tree-sitter-sql/SOURCE.json) | receipt |@@ -85,15 +85,15 @@ Each current receipt binds the module, complete Rust source set, immutable binar| `graphify/extractors/vbnet.py` | 433 | Verified | [src/extractors/vbnet.rs](../src/extractors/vbnet.rs), [vendor/tree-sitter-vb-dotnet/SOURCE.json](../vendor/tree-sitter-vb-dotnet/SOURCE.json) | receipt || `graphify/extractors/verilog.py` | 364 | Verified | [src/extractors/verilog.rs](../src/extractors/verilog.rs) | receipt || `graphify/extractors/zig.py` | 245 | Verified | [src/extractors/zig.rs](../src/extractors/zig.rs) | receipt |-| `graphify/file_slice.py` | 248 | Verified | [src/file_slice.rs](../src/file_slice.rs) | receipt |+| `graphify/file_slice.py` | 249 | Verified | [src/file_slice.rs](../src/file_slice.rs) | receipt || `graphify/global_graph.py` | 201 | Verified | [src/global_graph.rs](../src/global_graph.rs), [src/build_global.rs](../src/build_global.rs), [src/graph.rs](../src/graph.rs) | receipt || `graphify/google_workspace.py` | 237 | Verified | [src/google_workspace.rs](../src/google_workspace.rs) | receipt |-| `graphify/hooks.py` | 1,064 | Verified | [src/hooks.rs](../src/hooks.rs), [src/hooks_runtime.rs](../src/hooks_runtime.rs) | receipt |+| `graphify/hooks.py` | 1,137 | Verified | [src/hooks.rs](../src/hooks.rs), [src/hooks_runtime.rs](../src/hooks_runtime.rs) | receipt || `graphify/ids.py` | 93 | Verified | [src/ids.rs](../src/ids.rs), [src/unicode15.rs](../src/unicode15.rs) | receipt |-| `graphify/ingest.py` | 371 | Verified | [src/ingest.rs](../src/ingest.rs), [src/ingest_api.rs](../src/ingest_api.rs) | receipt |-| `graphify/install.py` | 2,764 | Verified | [src/install.rs](../src/install.rs), [src/install_fs.rs](../src/install_fs.rs), [src/install_platforms.rs](../src/install_platforms.rs), [src/assets/install/SKILL.md](../src/assets/install/SKILL.md), [src/assets/install/constants.json](../src/assets/install/constants.json), [src/assets/install/workflows.md](../src/assets/install/workflows.md) | receipt |-| `graphify/interface_dispatch.py` | 163 | Verified | [src/interface_dispatch.rs](../src/interface_dispatch.rs) | receipt |-| `graphify/llm.py` | 3,642 | Verified | [src/llm.rs](../src/llm.rs), [src/llm_api.rs](../src/llm_api.rs), [src/llm_bedrock.rs](../src/llm_bedrock.rs), [src/llm_config.rs](../src/llm_config.rs), [src/llm_extract.rs](../src/llm_extract.rs), [src/llm_labels.rs](../src/llm_labels.rs), [src/llm_parse.rs](../src/llm_parse.rs), [src/llm_source.rs](../src/llm_source.rs), [src/llm_transport.rs](../src/llm_transport.rs), [src/process.rs](../src/process.rs), [src/assets/llm/backends.json](../src/assets/llm/backends.json), [src/assets/llm/deep_extraction_suffix.txt](../src/assets/llm/deep_extraction_suffix.txt), [src/assets/llm/extraction_schema.json](../src/assets/llm/extraction_schema.json), [src/assets/llm/extraction_system.txt](../src/assets/llm/extraction_system.txt), [src/assets/llm/label_prompt.txt](../src/assets/llm/label_prompt.txt) | receipt |+| `graphify/ingest.py` | 383 | Verified | [src/ingest.rs](../src/ingest.rs), [src/ingest_api.rs](../src/ingest_api.rs) | receipt |+| `graphify/install.py` | 2,779 | Verified | [src/install.rs](../src/install.rs), [src/install_fs.rs](../src/install_fs.rs), [src/install_platforms.rs](../src/install_platforms.rs), [src/assets/install/SKILL.md](../src/assets/install/SKILL.md), [src/assets/install/constants.json](../src/assets/install/constants.json), [src/assets/install/pi/index.ts](../src/assets/install/pi/index.ts), [src/assets/install/pi/package.json](../src/assets/install/pi/package.json), [src/assets/install/workflows.md](../src/assets/install/workflows.md) | receipt |+| `graphify/interface_dispatch.py` | 195 | Verified | [src/interface_dispatch.rs](../src/interface_dispatch.rs) | receipt |+| `graphify/llm.py` | 3,747 | Pending | — | — || `graphify/manifest.py` | 4 | Verified | [src/manifest.rs](../src/manifest.rs) | receipt || `graphify/manifest_ingest.py` | 337 | Verified | [src/manifest_ingest.rs](../src/manifest_ingest.rs) | receipt || `graphify/markdown_resolution.py` | 231 | Verified | [src/markdown_resolution.rs](../src/markdown_resolution.rs) | receipt |@@ -101,8 +101,8 @@ Each current receipt binds the module, complete Rust source set, immutable binar| `graphify/multigraph_compat.py` | 212 | Verified | [src/multigraph_compat.rs](../src/multigraph_compat.rs), [src/graph.rs](../src/graph.rs) | receipt || `graphify/pascal_resolution.py` | 129 | Verified | [src/pascal_resolution.rs](../src/pascal_resolution.rs) | receipt || `graphify/paths.py` | 593 | Verified | [src/paths.rs](../src/paths.rs), [src/python_json.rs](../src/python_json.rs), [src/security.rs](../src/security.rs) | receipt |-| `graphify/pg_introspect.py` | 165 | Verified | [src/pg_introspect.rs](../src/pg_introspect.rs), [src/assets/postgres/transaction.sql](../src/assets/postgres/transaction.sql), [src/assets/postgres/tables.sql](../src/assets/postgres/tables.sql), [src/assets/postgres/views.sql](../src/assets/postgres/views.sql), [src/assets/postgres/routines.sql](../src/assets/postgres/routines.sql), [src/assets/postgres/foreign_keys.sql](../src/assets/postgres/foreign_keys.sql) | receipt |-| `graphify/prs.py` | 808 | Verified | [src/prs.rs](../src/prs.rs), [src/prs_io.rs](../src/prs_io.rs), [src/prs_render.rs](../src/prs_render.rs), [src/prs_triage.rs](../src/prs_triage.rs), [src/prs_api.rs](../src/prs_api.rs), [src/assets/prs/help.txt](../src/assets/prs/help.txt) | receipt |+| `graphify/pg_introspect.py` | 165 | Pending | — | — |+| `graphify/prs.py` | 808 | Pending | — | — || `graphify/querylog.py` | 80 | Verified | [src/querylog.rs](../src/querylog.rs) | receipt || `graphify/rcfile.py` | 252 | Verified | [src/rcfile.rs](../src/rcfile.rs), [src/par.rs](../src/par.rs) | receipt || `graphify/reflect.py` | 882 | Verified | [src/reflect.rs](../src/reflect.rs), [src/python_datetime.rs](../src/python_datetime.rs) | receipt |@@ -115,8 +115,8 @@ Each current receipt binds the module, complete Rust source set, immutable binar| `graphify/serve.py` | 3,007 | Verified | [src/serve.rs](../src/serve.rs), [src/serve_api.rs](../src/serve_api.rs), [src/serve_find.rs](../src/serve_find.rs), [src/serve_http.rs](../src/serve_http.rs), [src/serve_live.rs](../src/serve_live.rs), [src/serve_prs.rs](../src/serve_prs.rs), [src/serve_search.rs](../src/serve_search.rs), [src/serve_socket.rs](../src/serve_socket.rs), [src/serve_text.rs](../src/serve_text.rs), [src/assets/serve/constants.json](../src/assets/serve/constants.json) | receipt || `graphify/swift_dispatch.py` | 46 | Verified | [src/swift_dispatch.rs](../src/swift_dispatch.rs) | receipt || `graphify/symbol_resolution.py` | 577 | Verified | [src/symbol_resolution.rs](../src/symbol_resolution.rs) | receipt |-| `graphify/transcribe.py` | 186 | Verified | [src/transcribe.rs](../src/transcribe.rs), [src/transcribe_native.rs](../src/transcribe_native.rs), [src/transcribe_api.rs](../src/transcribe_api.rs), [src/assets/transcribe/models.json](../src/assets/transcribe/models.json) | receipt |+| `graphify/transcribe.py` | 186 | Pending | — | — || `graphify/tree_html.py` | 604 | Verified | [src/tree_html.rs](../src/tree_html.rs), [src/assets/tree.html.template](../src/assets/tree.html.template) | receipt || `graphify/validate.py` | 95 | Verified | [src/validate.rs](../src/validate.rs), [src/python_compat.rs](../src/python_compat.rs), [src/python_repr_data.rs](../src/python_repr_data.rs) | receipt |-| `graphify/watch.py` | 2,790 | Verified | [src/watch.rs](../src/watch.rs), [src/watch_paths.rs](../src/watch_paths.rs), [src/watch_reconcile.rs](../src/watch_reconcile.rs) | receipt |+| `graphify/watch.py` | 2,861 | Verified | [src/watch.rs](../src/watch.rs), [src/watch_paths.rs](../src/watch_paths.rs), [src/watch_reconcile.rs](../src/watch_reconcile.rs) | receipt || `graphify/wiki.py` | 455 | Verified | [src/wiki.rs](../src/wiki.rs) | receipt |diff --git a/crates/graphicle-graph/src/rcfile.rs b/crates/graphicle-graph/src/rcfile.rsindex f9440be..765b7bb 100644--- a/crates/graphicle-graph/src/rcfile.rs+++ b/crates/graphicle-graph/src/rcfile.rs@@ -488,8 +488,26 @@ pub fn dispatch(r: &Value) -> Result<Value> {#[cfg(test)]mod tests {use super::*;- use std::fs;+ use std::{fs, sync::MutexGuard};++ /// The process-wide state these tests change: the fallback overrides and+ /// the warned roots. Tests run in parallel threads of one process, so a+ /// test that relies on that state holds this lock for its whole run;+ /// otherwise another test's [`reset`] could clear the warned roots between+ /// two calls (a second warning for the same root).+ static PROCESS_STATE: Mutex<()> = Mutex::new(());++ /// Holds [`PROCESS_STATE`] and starts from a fresh process's state. A test+ /// that failed while holding the lock does not fail the others.+ fn exclusive() -> MutexGuard<'static, ()> {+ let guard = PROCESS_STATE+ .lock()+ .unwrap_or_else(std::sync::PoisonError::into_inner);+ reset();+ guard+ }+ /// A fresh process's state; call it only while holding [`exclusive`].fn reset() {set_language_overrides(None);clear_warned_roots();@@ -497,7 +515,7 @@ mod tests {#[test]fn a_language_line_maps_an_extension_to_a_canonical_suffix() {- reset();+ let _state = exclusive();let dir = tempfile::tempdir().unwrap();for key in ["language.inc",@@ -587,7 +605,7 @@ mod tests {#[test]fn effective_suffix_and_cache_salt_follow_the_declaration() {- reset();+ let _state = exclusive();assert_eq!(effective_suffix("x/a.inc"), ".inc");assert_eq!(effective_suffix("x/a.F90"), ".F90");assert_eq!(cache_salt("a.inc"), None);@@ -605,7 +623,7 @@ mod tests {#[test]fn a_malformed_file_warns_once_and_activates_nothing() {- reset();+ let _state = exclusive();let dir = tempfile::tempdir().unwrap();fs::write(dir.path().join(RC_FILENAME),@@ -638,6 +656,7 @@ mod tests {#[test]fn overrides_stay_with_their_thread_and_reach_workers() {+ let _state = exclusive();let barrier = std::sync::Barrier::new(2);let seen = std::thread::scope(|scope| {let a = scope.spawn(|| {diff --git a/crates/graphicle-memory/Cargo.lock b/crates/graphicle-memory/Cargo.lockindex 5f27c35..c42fd4c 100644--- a/crates/graphicle-memory/Cargo.lock+++ b/crates/graphicle-memory/Cargo.lock@@ -1453,7 +1453,7 @@ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"[[package]]name = "graphicle"-version = "0.1.1"+version = "0.1.2"dependencies = ["aws-config","aws-sdk-bedrockruntime",@@ -1551,7 +1551,7 @@ dependencies = [[[package]]name = "graphicle-memory"-version = "0.1.1"+version = "0.1.2"dependencies = ["chrono","graphicle",diff --git a/crates/graphicle-memory/Cargo.toml b/crates/graphicle-memory/Cargo.tomlindex 9b0035e..f04a2ce 100644--- a/crates/graphicle-memory/Cargo.toml+++ b/crates/graphicle-memory/Cargo.toml@@ -1,6 +1,6 @@[package]name = "graphicle-memory"-version = "0.1.1"+version = "0.1.2"edition = "2024"rust-version = "1.94.1"publish = falsediff --git a/crates/graphicle-memory/deny.toml b/crates/graphicle-memory/deny.tomlindex 155de4f..b6457ff 100644--- a/crates/graphicle-memory/deny.toml+++ b/crates/graphicle-memory/deny.toml@@ -64,9 +64,17 @@ db-path = "~/.cargo/advisory-db"db-urls = ["https://github.com/rustsec/advisory-db"]yanked = "warn"# Every vulnerability and unsoundness advisory is fixed (legacy AWS TLS client-# removed, lru >= 0.18.2). The remaining entries are "unmaintained" notices for-# transitive crates with no known vulnerability and no maintained drop-in:+# removed, lru >= 0.18.2), except three in zip 8's extraction to disk, which+# nothing here calls: the engine, the program and calamine open an archive and+# read its members in memory. zip 9 fixes them, but calamine 0.36.1, the latest+# release, requires zip ^8.6 (its main branch already uses zip 9.0, unreleased).+# Remove these three ignores, and move to zip 9, when calamine releases with it.+# The other entries are "unmaintained" notices for transitive crates with no+# known vulnerability and no maintained drop-in:ignore = [+ { id = "RUSTSEC-2026-0367", reason = "zip 8.6.0 (engine, program, calamine): SUID/SGID bits kept by ZipArchive::extract; archives are only read in memory, never extracted" },+ { id = "RUSTSEC-2026-0368", reason = "zip 8.6.0 (engine, program, calamine): symbolic links created by ZipArchive::extract; archives are only read in memory, never extracted" },+ { id = "RUSTSEC-2026-0369", reason = "zip 8.6.0 (engine, program, calamine): permissions applied through symbolic links by extract(); archives are only read in memory, never extracted" },{ id = "RUSTSEC-2024-0436", reason = "paste (proc-macro, build time only) via neo4rs -> nav-types -> nalgebra -> simba" },{ id = "RUSTSEC-2026-0192", reason = "ttf-parser via pdf-extract -> lopdf; font tables are parsed only from local PDFs" },{ id = "RUSTSEC-2025-0075", reason = "unic-char-range via rustpython-parser (Python literal parsing); no vulnerability" },diff --git a/crates/graphicle/Cargo.lock b/crates/graphicle/Cargo.lockindex 16bd197..f35af50 100644--- a/crates/graphicle/Cargo.lock+++ b/crates/graphicle/Cargo.lock@@ -1327,7 +1327,7 @@ dependencies = [[[package]]name = "graphicle"-version = "0.1.1"+version = "0.1.2"dependencies = ["base64 0.22.1","calamine",@@ -1421,7 +1421,7 @@ dependencies = [[[package]]name = "graphicle-memory"-version = "0.1.1"+version = "0.1.2"dependencies = ["chrono","graphicle",@@ -1439,7 +1439,7 @@ dependencies = [[[package]]name = "graphicle-runtime"-version = "0.1.1"+version = "0.1.2"dependencies = ["aes-gcm","axum",diff --git a/crates/graphicle/Cargo.toml b/crates/graphicle/Cargo.tomlindex e4bb921..2925eff 100644--- a/crates/graphicle/Cargo.toml+++ b/crates/graphicle/Cargo.toml@@ -1,6 +1,6 @@[package]name = "graphicle-runtime"-version = "0.1.1"+version = "0.1.2"edition = "2024"rust-version = "1.94.1"publish = falsediff --git a/crates/graphicle/README.md b/crates/graphicle/README.mdindex 6263ef0..18c2842 100644--- a/crates/graphicle/README.md+++ b/crates/graphicle/README.md@@ -55,7 +55,7 @@ operations through the extension registry (`src/extension.rs`).provider permission mode ("is not part of Graphicle Core"), while it still enforcesthe provider permissions an existing store holds.- `build.info` reports the edition and its capabilities, and- `graphicle --version` prints it (`graphicle 0.1.1 (core)`).+ `graphicle --version` prints it (`graphicle 0.1.2 (core)`).- A store keeps every table when either edition opens it, and Core keeps theother edition's guarantees on a store it has used (`src/store_compat.rs`).diff --git a/crates/graphicle/deny.toml b/crates/graphicle/deny.tomlindex d464e18..514f074 100644--- a/crates/graphicle/deny.toml+++ b/crates/graphicle/deny.toml@@ -63,9 +63,17 @@ db-path = "~/.cargo/advisory-db"db-urls = ["https://github.com/rustsec/advisory-db"]yanked = "warn"# Every vulnerability and unsoundness advisory is fixed (legacy AWS TLS client-# removed, lru >= 0.18.2). The remaining entries are "unmaintained" notices for-# transitive crates with no known vulnerability and no maintained drop-in:+# removed, lru >= 0.18.2), except three in zip 8's extraction to disk, which+# nothing here calls: the engine, the program and calamine open an archive and+# read its members in memory. zip 9 fixes them, but calamine 0.36.1, the latest+# release, requires zip ^8.6 (its main branch already uses zip 9.0, unreleased).+# Remove these three ignores, and move to zip 9, when calamine releases with it.+# The other entries are "unmaintained" notices for transitive crates with no+# known vulnerability and no maintained drop-in:ignore = [+ { id = "RUSTSEC-2026-0367", reason = "zip 8.6.0 (engine, program, calamine): SUID/SGID bits kept by ZipArchive::extract; archives are only read in memory, never extracted" },+ { id = "RUSTSEC-2026-0368", reason = "zip 8.6.0 (engine, program, calamine): symbolic links created by ZipArchive::extract; archives are only read in memory, never extracted" },+ { id = "RUSTSEC-2026-0369", reason = "zip 8.6.0 (engine, program, calamine): permissions applied through symbolic links by extract(); archives are only read in memory, never extracted" },{ id = "RUSTSEC-2024-0436", reason = "paste (proc-macro, build time only) via neo4rs -> nav-types -> nalgebra -> simba" },{ id = "RUSTSEC-2026-0192", reason = "ttf-parser via pdf-extract -> lopdf; font tables are parsed only from local PDFs" },{ id = "RUSTSEC-2025-0075", reason = "unic-char-range via rustpython-parser (Python literal parsing); no vulnerability" },diff --git a/crates/graphicle/src/api.rs b/crates/graphicle/src/api.rsindex e13fdf5..eb306d9 100644--- a/crates/graphicle/src/api.rs+++ b/crates/graphicle/src/api.rs@@ -225,6 +225,7 @@ pub fn router(app: App) -> Router {.merge(crate::product::routes()).route("/", get(index)).route("/app.js", get(script))+ .route("/theme.js", get(theme_script)).route("/settings.js", get(settings_script)).route("/extensions.js", get(extensions_script)).route("/style.css", get(style))@@ -435,6 +436,14 @@ async fn script() -> impl IntoResponse {include_str!("../web/app.js"),)}+/// The colour theme (`web/theme.js`), which every page loads before its+/// stylesheets so the theme is set before the first paint.+async fn theme_script() -> impl IntoResponse {+ (+ [("content-type", "application/javascript; charset=utf-8")],+ include_str!("../web/theme.js"),+ )+}async fn settings_script() -> impl IntoResponse {([("content-type", "application/javascript; charset=utf-8")],diff --git a/crates/graphicle/src/update_notice.rs b/crates/graphicle/src/update_notice.rsindex ed4d854..dc521c7 100644--- a/crates/graphicle/src/update_notice.rs+++ b/crates/graphicle/src/update_notice.rs@@ -15,9 +15,13 @@//! - **When.** The check runs on its own thread while the command runs, with//! a 2-second timeout ([`TIMEOUT`]). After the command, the program waits//! for it at most [`WAIT`]; a check that has not finished by then is-//! dropped and runs again after the next command. A failed check counts-//! as a check and prints nothing. The notice itself is printed at most once-//! a day, from the last answer.+//! dropped. Each check is recorded before its request is sent, so a dropped+//! check still counts as that day's check, though not as a failure. A check+//! whose request fails, or that GitHub refuses or rate-limits, prints+//! nothing and counts as a failure. The next check waits a day; after+//! failures in a row it waits one, two, then at most four days+//! ([`backoff`]). The notice itself is printed at most once a day, from the+//! last answer.//! - **Never** ([`allowed`]): when standard error is not a terminal, on CI//! ([`CI_ENV`]), with [`OPT_OUT_ENV`] set to any non-empty value, with//! `update_notifier: false` in the configuration ([`SETTING`]), in a@@ -76,6 +80,8 @@ pub const TIMEOUT: Duration = Duration::from_secs(2);pub const WAIT: Duration = Duration::from_millis(200);/// How long a check, and a printed notice, last.const DAY: i64 = 24 * 60 * 60;+/// The longest wait after failed checks ([`backoff`]).+const MAX_BACKOFF: i64 = 4 * DAY;/// The state file's name in the cache folder.const STATE_FILE: &str = "update-check.json";@@ -132,6 +138,11 @@ pub struct State {/// or not.#[serde(default)]pub checked_at: i64,+ /// The checks in a row since the last answer whose request failed, was+ /// refused or was rate-limited (a dropped check does not count); 0 after+ /// an answer.+ #[serde(default, skip_serializing_if = "is_zero")]+ pub failures: u32,/// The latest release's version then.#[serde(default, skip_serializing_if = "Option::is_none")]pub latest: Option<String>,@@ -143,6 +154,10 @@ pub struct State {pub notified_at: i64,}+fn is_zero(count: &u32) -> bool {+ *count == 0+}+// ------------------------------------------------------------- versions/// `major.minor.patch` with its pre-release identifiers (build metadata@@ -321,25 +336,43 @@ fn write_state(path: &Path, state: &State) {}}-/// Whether the state's check is a day old, or later than `now` (the clock-/// moved back).+/// How long the next check waits after the last one, given the failed+/// checks in a row since the last answer: a day while there are none or+/// after one, two days after two, then four days ([`MAX_BACKOFF`]).+pub fn backoff(failures: u32) -> i64 {+ let doublings = failures.saturating_sub(1).min(2);+ (DAY << doublings).min(MAX_BACKOFF)+}++/// Whether the state's last check is older than its [`backoff`], or later+/// than `now` (the clock moved back).pub fn due(state: &State, now: i64) -> bool {- state.checked_at <= 0 || now - state.checked_at >= DAY || state.checked_at > now + 60+ state.checked_at <= 0+ || now - state.checked_at >= backoff(state.failures)+ || state.checked_at > now + 60}/// One check of the state at `path`: when it is [`due`], ask `fetch` for the-/// latest release and record the answer. A failed fetch is recorded as a-/// check that keeps the last known release. Returns the state after it.+/// latest release and record the answer. The attempt is written first, with+/// the failures as they were, so that a check the program drops at exit still+/// counts as a check but not as a failure. A failed fetch then counts as a+/// failure and keeps the last known release; an answer clears the failures.+/// Returns the state after it.pub fn check(path: &Path, now: i64, fetch: &dyn Fn() -> Option<Release>) -> State {let mut state = read_state(path);if !due(&state, now) {return state;}- if let Some(release) = fetch() {- state.latest = Some(release.version);- state.url = Some(release.url);- }state.checked_at = now;+ write_state(path, &state);+ match fetch() {+ Some(release) => {+ state.latest = Some(release.version);+ state.url = Some(release.url);+ state.failures = 0;+ }+ None => state.failures = state.failures.saturating_add(1),+ }// A notice another command printed meanwhile.state.notified_at = state.notified_at.max(read_state(path).notified_at);write_state(path, &state);@@ -707,10 +740,121 @@ mod tests {assert_eq!(fresh.latest.as_deref(), Some("0.1.3"));}+ #[test]+ fn failed_checks_back_off_from_one_day_to_four() {+ assert_eq!(backoff(0), DAY, "after an answer");+ assert_eq!(backoff(1), DAY);+ assert_eq!(backoff(2), 2 * DAY);+ assert_eq!(backoff(3), 4 * DAY);+ assert_eq!(backoff(4), MAX_BACKOFF);+ assert_eq!(backoff(u32::MAX), MAX_BACKOFF);+ let folder = tempfile::tempdir().unwrap();+ let path = folder.path().join(STATE_FILE);+ let calls = Cell::new(0);+ let failing = || -> Option<Release> {+ calls.set(calls.get() + 1);+ None+ };+ // Each failure doubles the wait, up to four days; nothing is asked+ // before the wait is over.+ let mut at = NOW;+ for (failures, wait) in [+ (1, DAY),+ (2, 2 * DAY),+ (3, 4 * DAY),+ (4, 4 * DAY),+ (5, 4 * DAY),+ ] {+ let state = check(&path, at, &failing);+ assert_eq!((state.failures, state.checked_at), (failures, at));+ assert_eq!(calls.get(), failures);+ check(&path, at + wait - 1, &failing);+ assert_eq!(calls.get(), failures, "asked again before {wait} s");+ at += wait;+ }+ // An answer ends the back-off: the release is kept and the next+ // check is a day later.+ let answered = check(&path, at, &|| Some(release("0.1.3")));+ assert_eq!(answered.failures, 0);+ assert_eq!(answered.latest.as_deref(), Some("0.1.3"));+ assert!(!due(&answered, at + DAY - 1));+ assert!(due(&answered, at + DAY));+ // A failure after an answer keeps the release it knew.+ let failed = check(&path, at + DAY, &failing);+ assert_eq!(+ (failed.failures, failed.latest.as_deref()),+ (1, Some("0.1.3"))+ );+ }++ #[test]+ fn a_dropped_check_counts_as_a_check_but_not_as_a_failure() {+ let folder = tempfile::tempdir().unwrap();+ let path = folder.path().join(STATE_FILE);+ check(&path, NOW, &|| Some(release("0.1.2")));+ // While the request runs, the file already holds the attempt, with+ // no failure counted: a program that exits now (the check dropped+ // after [`WAIT`]) asks again a day later, not after its next command.+ let seen = std::cell::RefCell::new(None);+ let failed = check(&path, NOW + DAY, &|| {+ *seen.borrow_mut() = Some(read_state(&path));+ None+ });+ let dropped = seen.into_inner().unwrap();+ assert_eq!((dropped.checked_at, dropped.failures), (NOW + DAY, 0));+ assert_eq!(dropped.latest.as_deref(), Some("0.1.2"));+ assert!(!due(&dropped, NOW + 2 * DAY - 1));+ assert!(due(&dropped, NOW + 2 * DAY));+ // The request did fail, so the finished check counts as a failure.+ assert_eq!(failed.failures, 1);+ assert_eq!(read_state(&path), failed);+ // A dropped check leaves earlier failures as they were: after two,+ // the next check still waits two days.+ let after_two = State {+ failures: 2,+ ..dropped+ };+ write_state(&path, &after_two);+ check(&path, NOW + 3 * DAY, &|| {+ let during = read_state(&path);+ assert_eq!((during.checked_at, during.failures), (NOW + 3 * DAY, 2));+ Some(release("0.1.3"))+ });+ assert_eq!(read_state(&path).failures, 0, "an answer clears them");+ }++ #[test]+ fn the_state_file_of_an_earlier_release_still_reads() {+ let folder = tempfile::tempdir().unwrap();+ let path = folder.path().join(STATE_FILE);+ // 0.1.1 wrote no failure count.+ std::fs::write(+ &path,+ r#"{"checked_at":1792000000,"latest":"0.1.1","url":"https://github.com/graphicle-ai/graphicle/releases/tag/v0.1.1","notified_at":0}"#,+ )+ .unwrap();+ let state = read_state(&path);+ assert_eq!((state.checked_at, state.failures), (NOW, 0));+ assert_eq!(state.latest.as_deref(), Some("0.1.1"));+ // The count is written only while it is not zero.+ let failing = State {+ failures: 2,+ ..state.clone()+ };+ assert_eq!(serde_json::to_value(&failing).unwrap()["failures"], 2);+ assert!(+ serde_json::to_value(&state)+ .unwrap()+ .get("failures")+ .is_none()+ );+ }+#[test]fn the_notice_names_both_versions_the_upgrade_command_and_the_page() {let state = State {checked_at: NOW,+ failures: 0,latest: Some("0.1.2".into()),url: Some("https://github.com/graphicle-ai/graphicle/releases/tag/v0.1.2".into()),notified_at: 0,@@ -812,6 +956,8 @@ mod tests {json!({"tag_name":"v0.1.2","html_url":"https://github.com/a b"}),json!({"tag_name":"v0.1.2","html_url":page,"draft":true}),json!({"tag_name":"v0.1.2","html_url":page,"prerelease":true}),+ // GitHub's answer when it rate-limits a client.+ json!({"message":"API rate limit exceeded for 192.0.2.1.","documentation_url":"https://docs.github.com/rest/overview/rate-limits-for-the-rest-api"}),] {assert_eq!(Release::from_api(&bad), None, "{bad}");}diff --git a/crates/graphicle/tests/it/product_workspace.rs b/crates/graphicle/tests/it/product_workspace.rsindex 61ee84f..47b06e9 100644--- a/crates/graphicle/tests/it/product_workspace.rs+++ b/crates/graphicle/tests/it/product_workspace.rs@@ -498,6 +498,7 @@ async fn public_assets_and_openapi_are_available_without_exposing_a_workspace()"/docs","/workspace.js","/workspace.css",+ "/theme.js","/v1/openapi.json",] {let (status, _, headers) = call(&app, path, "", None).await;@@ -514,6 +515,95 @@ async fn public_assets_and_openapi_are_available_without_exposing_a_workspace()assert!(!spec.to_string().contains(&f.owner));}+/// Every page sets its colour theme before the first paint: `/theme.js`+/// (the Content-Security-Policy allows no inline script) loads, without+/// defer, before the stylesheets, and the page declares both schemes.+#[test]+fn every_page_sets_its_theme_before_the_first_paint() {+ for (name, page) in [+ ("index.html", include_str!("../../web/index.html")),+ ("docs.html", include_str!("../../web/docs.html")),+ ("product.html", include_str!("../../web/product.html")),+ ] {+ let theme = page+ .find(r#"<script src="/theme.js"></script>"#)+ .unwrap_or_else(|| panic!("{name} loads /theme.js without defer"));+ let styles = page.find(r#"<link rel="stylesheet""#).unwrap();+ assert!(theme < styles, "{name}: /theme.js before the stylesheets");+ assert!(+ page.contains(r#"<meta name="color-scheme" content="light dark">"#),+ "{name}"+ );+ for scheme in ["light", "dark"] {+ let meta = format!(r#"media="(prefers-color-scheme: {scheme})">"#);+ assert!(page.contains(&meta), "{name}: theme-color for {scheme}");+ }+ for script in page.split("<script").skip(1) {+ assert!(+ script.trim_start().starts_with("src="),+ "{name}: inline script"+ );+ }+ }+ // The control in Settings offers the three choices; the script keeps the+ // choice under the graph export page's key.+ let index = include_str!("../../web/index.html");+ for choice in ["system", "light", "dark"] {+ assert!(+ index.contains(&format!(r#"data-theme-choice="{choice}""#)),+ "{choice}"+ );+ }+ let script = include_str!("../../web/theme.js");+ assert!(script.contains(r#"const KEY = "graphicle-theme";"#));+ assert!(script.contains("localStorage") && script.contains("catch"));+}++/// The light theme only gives other values to the dark theme's tokens, and+/// the stylesheets name no colour outside the theme blocks, so a new rule+/// cannot come out dark-only.+#[test]+fn the_light_theme_overrides_tokens_and_no_colour_is_hard_coded() {+ let style = include_str!("../../web/style.css");+ let block = |selector: &str| {+ let start = style.find(&format!("{selector} {{")).expect(selector);+ let end = start + style[start..].find("\n}").unwrap();+ &style[start..end]+ };+ let names = |text: &str| -> std::collections::BTreeSet<String> {+ text.lines()+ .filter_map(|line| line.trim().strip_prefix("--"))+ .filter_map(|line| line.split_once(':').map(|(name, _)| name.to_string()))+ .collect()+ };+ let (dark, light) = (block("\n:root"), block(r#":root[data-theme="light"]"#));+ assert!(light.contains("color-scheme: light;"));+ let missing: Vec<_> = names(light).difference(&names(dark)).cloned().collect();+ assert!(missing.is_empty(), "light-only tokens: {missing:?}");+ let colour = regex::Regex::new(r"#[0-9a-fA-F]{3,8}\b|rgba?\((?:[^v)]|v[^a])").unwrap();+ for (name, css) in [+ ("style.css", style),+ ("workspace.css", include_str!("../../web/workspace.css")),+ ] {+ let mut theme_block = false;+ for (number, line) in css.lines().enumerate() {+ let text = line.trim();+ if text.starts_with(":root") {+ theme_block = true;+ }+ if theme_block {+ theme_block = text != "}";+ continue;+ }+ // Masks use only the alpha channel.+ if text.contains("url(\"data:") || text.contains("mask-image:") {+ continue;+ }+ assert!(!colour.is_match(text), "{name}:{}: {text}", number + 1);+ }+ }+}+/// Both editions serve this `/docs` page, so it states the request budget/// rules that hold in each, and describes no other edition.#[test]diff --git a/crates/graphicle/web/docs.html b/crates/graphicle/web/docs.htmlindex 4efabb2..0ef367c 100644--- a/crates/graphicle/web/docs.html+++ b/crates/graphicle/web/docs.html@@ -3,13 +3,15 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">- <meta name="color-scheme" content="dark">- <meta name="theme-color" content="#0a0a12">+ <meta name="color-scheme" content="light dark">+ <meta name="theme-color" content="#f7f3ea" media="(prefers-color-scheme: light)">+ <meta name="theme-color" content="#0a0a12" media="(prefers-color-scheme: dark)"><meta name="description" content="Start a local Graphicle workspace, connect an agent over MCP and call the versioned HTTP API."><title>Graphicle documentation</title><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M9.7%204.6L20.5%2017.4L3.5%2019.4Z'%20fill='none'%20stroke='%235B7CFF'%20stroke-width='2.5'%20stroke-linejoin='round'/%3E%3Cpath%20d='M11%2014.1L9.7%204.6M11%2014.1L20.5%2017.4M11%2014.1L3.5%2019.4'%20stroke='%235B7CFF'%20stroke-width='1.6'%20stroke-linecap='round'/%3E%3Ccircle%20cx='9.7'%20cy='4.6'%20r='2.5'%20fill='%235B7CFF'/%3E%3Ccircle%20cx='20.5'%20cy='17.4'%20r='2.5'%20fill='%235B7CFF'/%3E%3Ccircle%20cx='3.5'%20cy='19.4'%20r='2.5'%20fill='%235B7CFF'/%3E%3Ccircle%20cx='11'%20cy='14.1'%20r='3.4'%20fill='%23A78BFA'/%3E%3C/svg%3E"><link rel="preload" href="/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="/fonts/space-grotesk-latin.woff2" as="font" type="font/woff2" crossorigin>+ <script src="/theme.js"></script><link rel="stylesheet" href="/style.css"><link rel="stylesheet" href="/workspace.css"></head>diff --git a/crates/graphicle/web/index.html b/crates/graphicle/web/index.htmlindex decf158..6e4ff4a 100644--- a/crates/graphicle/web/index.html+++ b/crates/graphicle/web/index.html@@ -3,12 +3,14 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">- <meta name="color-scheme" content="dark">- <meta name="theme-color" content="#0a0a12">+ <meta name="color-scheme" content="light dark">+ <meta name="theme-color" content="#f7f3ea" media="(prefers-color-scheme: light)">+ <meta name="theme-color" content="#0a0a12" media="(prefers-color-scheme: dark)"><title>Graphicle</title><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M9.7%204.6L20.5%2017.4L3.5%2019.4Z'%20fill='none'%20stroke='%235B7CFF'%20stroke-width='2.5'%20stroke-linejoin='round'/%3E%3Cpath%20d='M11%2014.1L9.7%204.6M11%2014.1L20.5%2017.4M11%2014.1L3.5%2019.4'%20stroke='%235B7CFF'%20stroke-width='1.6'%20stroke-linecap='round'/%3E%3Ccircle%20cx='9.7'%20cy='4.6'%20r='2.5'%20fill='%235B7CFF'/%3E%3Ccircle%20cx='20.5'%20cy='17.4'%20r='2.5'%20fill='%235B7CFF'/%3E%3Ccircle%20cx='3.5'%20cy='19.4'%20r='2.5'%20fill='%235B7CFF'/%3E%3Ccircle%20cx='11'%20cy='14.1'%20r='3.4'%20fill='%23A78BFA'/%3E%3C/svg%3E"><link rel="preload" href="/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="/fonts/space-grotesk-latin.woff2" as="font" type="font/woff2" crossorigin>+ <script src="/theme.js"></script><link rel="stylesheet" href="/style.css"><link rel="stylesheet" href="/workspace.css"><script src="/app.js" defer></script>@@ -39,6 +41,7 @@<symbol id="i-book" viewBox="0 0 24 24"><path d="M12 6.5C10.5 5.3 8.4 4.75 4.5 4.75v13.5c3.9 0 6 .55 7.5 1.75 1.5-1.2 3.6-1.75 7.5-1.75V4.75c-3.9 0-6 .55-7.5 1.75Z"/><path d="M12 6.5V20"/></symbol><symbol id="i-key" viewBox="0 0 24 24"><circle cx="8" cy="15.5" r="3.5"/><path d="m10.5 13 8.5-8.5M15.5 8l2.5 2.5M13.5 10l2 2"/></symbol><symbol id="i-link" viewBox="0 0 24 24"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/></symbol>+ <symbol id="i-theme" viewBox="0 0 24 24"><circle cx="12" cy="12" r="7.5"/><path d="M12 4.5a7.5 7.5 0 0 1 0 15Z" fill="currentColor" stroke="none"/></symbol><symbol id="i-cpu" viewBox="0 0 24 24"><rect x="6.5" y="6.5" width="11" height="11" rx="1.5"/><rect x="9.75" y="9.75" width="4.5" height="4.5" rx=".5"/><path d="M9.5 3.5v3M14.5 3.5v3M9.5 17.5v3M14.5 17.5v3M3.5 9.5h3M3.5 14.5h3M17.5 9.5h3M17.5 14.5h3"/></symbol></svg>@@ -296,6 +299,23 @@<div id="models-list" class="list"></div></section>+ <section class="settings-section">+ <div class="section-head">+ <span class="tile" aria-hidden="true"><svg class="icon"><use href="#i-theme"/></svg></span>+ <div class="section-text">+ <h2>Appearance</h2>+ <p>Follow your system’s light or dark setting, or choose one for this browser.</p>+ </div>+ <div class="section-actions">+ <div class="filters" role="group" aria-label="Theme">+ <button type="button" data-theme-choice="system" aria-pressed="true" class="selected">System</button>+ <button type="button" data-theme-choice="light" aria-pressed="false">Light</button>+ <button type="button" data-theme-choice="dark" aria-pressed="false">Dark</button>+ </div>+ </div>+ </div>+ </section>+<details id="index-maintenance-panel" class="panel settings-details"><summary>External index maintenance</summary><p class="muted">Track removal of outdated copies from connected graph and vector indexes.</p>diff --git a/crates/graphicle/web/product.html b/crates/graphicle/web/product.htmlindex f2d2c05..02653ab 100644--- a/crates/graphicle/web/product.html+++ b/crates/graphicle/web/product.html@@ -3,13 +3,15 @@<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">- <meta name="color-scheme" content="dark">- <meta name="theme-color" content="#0a0a12">+ <meta name="color-scheme" content="light dark">+ <meta name="theme-color" content="#f7f3ea" media="(prefers-color-scheme: light)">+ <meta name="theme-color" content="#0a0a12" media="(prefers-color-scheme: dark)"><meta name="description" content="Graphicle connects your repositories and documents so people and coding agents start from cited, source-backed context."><title>Graphicle — shared context for code and agents</title><link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M9.7%204.6L20.5%2017.4L3.5%2019.4Z'%20fill='none'%20stroke='%235B7CFF'%20stroke-width='2.5'%20stroke-linejoin='round'/%3E%3Cpath%20d='M11%2014.1L9.7%204.6M11%2014.1L20.5%2017.4M11%2014.1L3.5%2019.4'%20stroke='%235B7CFF'%20stroke-width='1.6'%20stroke-linecap='round'/%3E%3Ccircle%20cx='9.7'%20cy='4.6'%20r='2.5'%20fill='%235B7CFF'/%3E%3Ccircle%20cx='20.5'%20cy='17.4'%20r='2.5'%20fill='%235B7CFF'/%3E%3Ccircle%20cx='3.5'%20cy='19.4'%20r='2.5'%20fill='%235B7CFF'/%3E%3Ccircle%20cx='11'%20cy='14.1'%20r='3.4'%20fill='%23A78BFA'/%3E%3C/svg%3E"><link rel="preload" href="/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="/fonts/space-grotesk-latin.woff2" as="font" type="font/woff2" crossorigin>+ <script src="/theme.js"></script><link rel="stylesheet" href="/style.css"><link rel="stylesheet" href="/workspace.css"></head>diff --git a/crates/graphicle/web/style.css b/crates/graphicle/web/style.cssindex 6172da5..4a9ab9b 100644--- a/crates/graphicle/web/style.css+++ b/crates/graphicle/web/style.css@@ -89,6 +89,160 @@--mask-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.25'/%3E%3Cpath d='M8 7.4v3.6M8 5.1v.05'/%3E%3C/svg%3E");--mask-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.25'/%3E%3Cpath d='M8 4.7v3.9M8 10.9v.05'/%3E%3C/svg%3E");--select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23868a92' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");++ /* Colours that were literals; their values here are the dark theme's. */+ --gold-rgb: 214, 190, 142;+ --sand-rgb: 226, 204, 156;+ --line-rgb: 208, 203, 188;+ --slate-rgb: 120, 132, 160;+ --scrollbar: rgba(208, 203, 188, .2);+ --selection-bg: rgba(214, 190, 142, .32);+ --selection-text: #fff;+ --code-bg: #0b0c11;+ --code-text: #dcd6c8;+ --control-line: rgba(208, 203, 188, .16);+ --control-line-hover: rgba(208, 203, 188, .26);+ --focus-line: rgba(214, 190, 142, .62);+ --focus-glow: rgba(214, 190, 142, .15);+ --mark-bg: linear-gradient(150deg, #241f16, #15130e);+ --mark-inset: rgba(255, 236, 200, .06);+ --mark-icon: #dfc38d;+ --avatar-bg: linear-gradient(150deg, #2a2419, #16140f);+ --header-bg: rgba(10, 10, 18, .64);+ --header-line: rgba(211, 203, 181, .07);+ --page-header-bg: rgba(10, 10, 18, .8);+ --sidebar-overlay: rgba(8, 9, 13, .94);+ --shadow-card: 0 40px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 240, 210, .04);+ --shadow-dialog: 0 40px 120px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 240, 210, .04);+ --shadow-ask: 0 24px 60px -36px rgba(0, 0, 0, .85);+ --shadow-tools: 0 10px 28px -12px rgba(0, 0, 0, .8);+ --shadow-preview: 0 60px 120px -50px rgba(0, 0, 0, .95);+ --backdrop: rgba(4, 4, 8, .66);+ --ok-dot: #79c08f;+ --ok-dot-ring: rgba(121, 192, 143, .14);+ --chip-ring: rgba(197, 172, 123, .16);+ --error-text: #f7d3cd;+ --ask-actions-bg: rgba(8, 9, 13, .35);+ --row-settings: #0c0d13;+ --row-settings-hover: #101117;+ --row-detail: #0d0f13;+ --row-detail-hover: #121419;+ --graph-bg: #0b0c11;+ --graph-tools-bg: rgba(17, 19, 24, .82);+ --graph-caption-bg: rgba(11, 12, 17, .86);+ --source-dot: #d8bd8a;+ --symbol-dot-line: #9aa5b8;+ --meter-fill: linear-gradient(90deg, #8a7448, #d8bd8a);+ --accent-text: linear-gradient(180deg, #f3e3c1 10%, #c9ad78 90%);+ --preview-bg: linear-gradient(180deg, rgba(236, 226, 205, .05), rgba(236, 226, 205, .012));+ --docs-underline: rgba(223, 195, 141, .4);+ --selected-shadow: 0 0 #0000; /* the light theme draws it (.filters) */+}++/* Light theme: [data-theme="light"] on <html>, set by /theme.js before the first+ paint (the operating system's choice unless the viewer picks Light or Dark in+ Settings). Warm paper, ink text and a deeper gold. Body and secondary text are at+ least 4.5:1 on every surface; control boundaries, focus rings and icons at least+ 3:1. Without it (no script) the dark theme above applies. */+:root[data-theme="light"] {+ color-scheme: light;++ --ink: #f7f3ea;+ --sidebar: #efe9dc;+ --raised: #fffdf8;+ --row: #fbf8f1;+ --row-hover: #f4efe4;+ --well: #fffdf8;+ --surface-1: rgba(58, 46, 26, .025);+ --surface-2: rgba(58, 46, 26, .045);+ --surface-3: rgba(58, 46, 26, .075);+ --line: rgba(58, 46, 26, .11);+ --line-2: rgba(58, 46, 26, .18);+ --line-3: rgba(58, 46, 26, .3);+ --line-gold: rgba(135, 103, 38, .32);+ --card: linear-gradient(140deg, #fffdf8, #f9f5ec);++ --text-1: #1c1912;+ --text-2: #36312a;+ --text-3: #575146;+ --text-4: #6b6457;++ --gold: #876726;+ --link: #7a5b1e;+ --link-hover: #5c4310;+ --sand: #26221a;+ --sand-hover: #3a3428;+ --on-sand: #fbf7ee;+ --outline-bg: #fffdf8;+ --outline-line: #8a7f6b;+ --outline-text: #2d2820;+ --outline-hover-bg: #f1ebdf;+ --outline-hover-line: #6f6553;+ --tile-bg: #f3ead8;+ --tile-line: #c9b78f;+ --tile-icon: #76591f;+ --focus: #8a6420;++ --ok: #2c6a43;+ --ok-bg: rgba(44, 122, 74, .09);+ --ok-line: rgba(44, 122, 74, .32);+ --warn: #7a5310;+ --warn-bg: rgba(186, 135, 40, .12);+ --warn-line: rgba(160, 112, 22, .38);+ --error: #a1362b;+ --error-bg: rgba(190, 62, 46, .08);+ --error-line: rgba(170, 55, 40, .32);+ --info: #2e5584;+ --info-bg: rgba(58, 98, 156, .08);+ --info-line: rgba(58, 98, 156, .3);++ --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b6457' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");++ --gold-rgb: 150, 115, 45;+ --sand-rgb: 156, 122, 52;+ --line-rgb: 58, 46, 26;+ --scrollbar: rgba(58, 46, 26, .28);+ --selection-bg: rgba(176, 141, 74, .3);+ --selection-text: #1c1912;+ --code-bg: #f2ece0;+ --code-text: #2b261d;+ --control-line: #8a7f6b;+ --control-line-hover: #6f6553;+ --focus-line: #8a6420;+ --focus-glow: rgba(138, 100, 32, .18);+ --mark-bg: linear-gradient(150deg, #f6ecd6, #ead9b5);+ --mark-inset: rgba(255, 255, 255, .7);+ --mark-icon: #6e5118;+ --avatar-bg: linear-gradient(150deg, #f3e9d3, #e8d8b6);+ --header-bg: rgba(247, 243, 234, .82);+ --header-line: rgba(58, 46, 26, .1);+ --page-header-bg: rgba(247, 243, 234, .9);+ --sidebar-overlay: rgba(239, 233, 220, .97);+ --shadow-card: 0 30px 80px -40px rgba(70, 52, 20, .3), inset 0 1px 0 rgba(255, 255, 255, .7);+ --shadow-dialog: 0 30px 90px -30px rgba(70, 52, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .7);+ --shadow-ask: 0 20px 50px -34px rgba(70, 52, 20, .3);+ --shadow-tools: 0 10px 28px -14px rgba(70, 52, 20, .3);+ --shadow-preview: 0 50px 100px -50px rgba(70, 52, 20, .35);+ --backdrop: rgba(40, 32, 18, .38);+ --ok-dot: #2f8a55;+ --ok-dot-ring: rgba(47, 138, 85, .16);+ --chip-ring: rgba(135, 103, 38, .18);+ --error-text: #8f2c22;+ --ask-actions-bg: rgba(58, 46, 26, .035);+ --row-settings: #fffdf8;+ --row-settings-hover: #f6f1e6;+ --row-detail: #fffdf8;+ --row-detail-hover: #f6f1e6;+ --graph-bg: #fbf8f1;+ --graph-tools-bg: rgba(255, 253, 248, .92);+ --graph-caption-bg: rgba(251, 248, 241, .92);+ --source-dot: #a07a2c;+ --symbol-dot-line: #5a6478;+ --meter-fill: linear-gradient(90deg, #b08d4a, #7a5b1e);+ --accent-text: linear-gradient(180deg, #8a6a2c 10%, #5e4512 90%);+ --preview-bg: linear-gradient(180deg, rgba(58, 46, 26, .035), rgba(58, 46, 26, .01));+ --docs-underline: rgba(122, 91, 30, .45);+ --selected-shadow: 0 1px 2px rgba(70, 52, 20, .12);}/* Base */@@ -105,7 +259,7 @@ html {-webkit-text-size-adjust: 100%;text-size-adjust: 100%;text-rendering: optimizeLegibility;- scrollbar-color: rgba(208, 203, 188, .2) transparent;+ scrollbar-color: var(--scrollbar) transparent;}html.smooth { scroll-behavior: smooth; }@@ -126,7 +280,7 @@ img, svg { max-width: 100%; }[hidden] { display: none !important; }-::selection { background: rgba(214, 190, 142, .32); color: #fff; }+::selection { background: var(--selection-bg); color: var(--selection-text); }a {color: var(--link);@@ -212,8 +366,8 @@ pre {overflow: auto;border: 1px solid var(--line);border-radius: var(--radius-md);- background: #0b0c11;- color: #dcd6c8;+ background: var(--code-bg);+ color: var(--code-text);font-size: 12.5px;line-height: 1.65;white-space: pre-wrap;@@ -317,7 +471,7 @@ textarea {min-height: 38px;margin: 0;padding: 8px 12px;- border: 1px solid var(--line-2);+ border: 1px solid var(--control-line);border-radius: var(--radius);background: var(--well);color: var(--text-1);@@ -330,14 +484,14 @@ textarea::placeholder { color: var(--text-4); opacity: 1; }input:hover:not(:disabled):not(:focus),select:hover:not(:disabled):not(:focus),-textarea:hover:not(:disabled):not(:focus) { border-color: var(--line-3); }+textarea:hover:not(:disabled):not(:focus) { border-color: var(--control-line-hover); }input:focus,select:focus,textarea:focus {- border-color: rgba(214, 190, 142, .62);+ border-color: var(--focus-line);outline: none;- box-shadow: 0 0 0 3px rgba(214, 190, 142, .15);+ box-shadow: 0 0 0 3px var(--focus-glow);}input:disabled,@@ -428,9 +582,9 @@ label.check:hover { color: var(--text-2); }height: 30px;border: 1px solid var(--tile-line);border-radius: 7px;- background: linear-gradient(150deg, #241f16, #15130e);- box-shadow: inset 0 1px 0 rgba(255, 236, 200, .06);- color: var(--link);+ background: var(--mark-bg);+ box-shadow: inset 0 1px 0 var(--mark-inset);+ color: var(--mark-icon);}.mark .icon { width: 18px; height: 18px; }@@ -443,8 +597,8 @@ label.check:hover { color: var(--text-2); }position: sticky;top: 0;z-index: 20;- border-bottom: 1px solid rgba(211, 203, 181, .07);- background: rgba(10, 10, 18, .64);+ border-bottom: 1px solid var(--header-line);+ background: var(--header-bg);-webkit-backdrop-filter: saturate(140%) blur(18px);backdrop-filter: saturate(140%) blur(18px);}@@ -471,7 +625,7 @@ label.check:hover { color: var(--text-2); }transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);}-.site-nav a:hover { background: rgba(226, 204, 156, .055); color: var(--text-1); }+.site-nav a:hover { background: rgba(var(--sand-rgb), .055); color: var(--text-1); }.site-nav a[aria-current="page"] { color: var(--text-1); }@@ -491,8 +645,8 @@ label.check:hover { color: var(--text-2); }min-height: 100vh;min-height: 100dvh;background:- radial-gradient(1100px 560px at 80% -14%, rgba(214, 190, 142, .085), transparent 62%),- radial-gradient(900px 520px at -12% 112%, rgba(120, 132, 160, .055), transparent 60%),+ radial-gradient(1100px 560px at 80% -14%, rgba(var(--gold-rgb), .085), transparent 62%),+ radial-gradient(900px 520px at -12% 112%, rgba(var(--slate-rgb), .055), transparent 60%),var(--ink);}@@ -503,8 +657,8 @@ label.check:hover { color: var(--text-2); }z-index: -1;pointer-events: none;background-image:- linear-gradient(rgba(208, 203, 188, .045) 1px, transparent 1px),- linear-gradient(90deg, rgba(208, 203, 188, .045) 1px, transparent 1px);+ linear-gradient(rgba(var(--line-rgb), .045) 1px, transparent 1px),+ linear-gradient(90deg, rgba(var(--line-rgb), .045) 1px, transparent 1px);background-position: center top;background-size: 72px 72px;-webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 28%, #000 18%, transparent 76%);@@ -578,10 +732,10 @@ label.check:hover { color: var(--text-2); }.welcome-card {position: relative;padding: 32px;- border: 1px solid rgba(208, 203, 188, .13);+ border: 1px solid rgba(var(--line-rgb), .13);border-radius: var(--radius-lg);background: var(--card);- box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 240, 210, .04);+ box-shadow: var(--shadow-card);}.welcome-card::before {@@ -702,7 +856,7 @@ details.create[open] > summary::after { transform: rotate(180deg); }max-width: 1200px;margin: 0 auto;padding: 22px 32px 28px;- border-top: 1px solid rgba(211, 203, 181, .07);+ border-top: 1px solid var(--header-line);color: var(--text-4);font-size: 13px;}@@ -754,7 +908,7 @@ details.create[open] > summary::after { transform: rotate(180deg); }height: 30px;border: 1px solid var(--tile-line);border-radius: 7px;- background: linear-gradient(150deg, #2a2419, #16140f);+ background: var(--avatar-bg);color: var(--sand);font: 600 13px/1 var(--font-display);text-transform: uppercase;@@ -777,8 +931,8 @@ details.create[open] > summary::after { transform: rotate(180deg); }height: 6px;flex: none;border-radius: 50%;- background: #79c08f;- box-shadow: 0 0 0 3px rgba(121, 192, 143, .14);+ background: var(--ok-dot);+ box-shadow: 0 0 0 3px var(--ok-dot-ring);}.project-picker {@@ -831,12 +985,12 @@ details.create[open] > summary::after { transform: rotate(180deg); }.side-nav > button:hover:not(:disabled) { background: var(--surface-2); color: var(--text-1); }.side-nav > button[aria-current="page"] {- background: rgba(226, 204, 156, .075);- box-shadow: inset 0 0 0 1px rgba(214, 190, 142, .14);+ background: rgba(var(--sand-rgb), .075);+ box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .14);color: var(--text-1);}-.side-nav > button[aria-current="page"]:hover:not(:disabled) { background: rgba(226, 204, 156, .1); }+.side-nav > button[aria-current="page"]:hover:not(:disabled) { background: rgba(var(--sand-rgb), .1); }.side-nav > button[aria-current="page"] .icon { color: var(--link); }@@ -855,7 +1009,7 @@ details.create[open] > summary::after { transform: rotate(180deg); }text-align: center;}-.side-nav > button[aria-current="page"] .count { background: rgba(214, 190, 142, .16); color: var(--sand); }+.side-nav > button[aria-current="page"] .count { background: rgba(var(--gold-rgb), .16); color: var(--sand); }.side-nav > .nav-search {margin-bottom: 8px;@@ -868,8 +1022,8 @@ details.create[open] > summary::after { transform: rotate(180deg); }.side-nav > .nav-search:hover:not(:disabled) { border-color: var(--line-3); background: var(--surface-2); color: var(--text-2); }.side-nav > .nav-search[aria-current="page"] {- border-color: rgba(214, 190, 142, .34);- background: rgba(226, 204, 156, .06);+ border-color: rgba(var(--gold-rgb), .34);+ background: rgba(var(--sand-rgb), .06);box-shadow: none;color: var(--text-1);}@@ -925,7 +1079,7 @@ details.create[open] > summary::after { transform: rotate(180deg); }min-height: 68px;padding: 10px max(32px, calc((100% - 1200px) / 2 + 32px));border-bottom: 1px solid var(--line);- background: rgba(10, 10, 18, .8);+ background: var(--page-header-bg);-webkit-backdrop-filter: saturate(140%) blur(16px);backdrop-filter: saturate(140%) blur(16px);}@@ -974,7 +1128,7 @@ details.create[open] > summary::after { transform: rotate(180deg); }margin: 0 8px 1px 0;border-radius: 50%;background: var(--gold);- box-shadow: 0 0 0 3px rgba(197, 172, 123, .16);+ box-shadow: 0 0 0 3px var(--chip-ring);vertical-align: middle;}@@ -988,9 +1142,9 @@ details.create[open] > summary::after { transform: rotate(180deg); }gap: 10px;margin-bottom: 20px;padding: 11px 14px;- border: 1px solid rgba(214, 190, 142, .24);+ border: 1px solid rgba(var(--gold-rgb), .24);border-radius: var(--radius-md);- background: rgba(214, 190, 142, .065);+ background: rgba(var(--gold-rgb), .065);color: var(--text-1);font-size: 13.5px;line-height: 1.5;@@ -1009,7 +1163,7 @@ details.create[open] > summary::after { transform: rotate(180deg); }mask: var(--mask-info) center / 16px no-repeat;}-#notice.error { border-color: var(--error-line); background: var(--error-bg); color: #f7d3cd; }+#notice.error { border-color: var(--error-line); background: var(--error-bg); color: var(--error-text); }#notice.error::before {background: var(--error);@@ -1063,13 +1217,20 @@ details.create[open] > summary::after { transform: rotate(180deg); }.filters > button.selected,.filters > button.selected:hover:not(:disabled) {- background: rgba(226, 204, 156, .1);- box-shadow: inset 0 0 0 1px rgba(214, 190, 142, .2);+ background: rgba(var(--sand-rgb), .1);+ box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .2);color: var(--text-1);}.filters > button:focus-visible { outline-offset: -2px; }+/* On paper the tint alone is too faint to tell the selected choice apart. */+:root[data-theme="light"] .filters > button.selected,+:root[data-theme="light"] .filters > button.selected:hover:not(:disabled) {+ background: var(--raised);+ box-shadow: inset 0 0 0 1px var(--control-line), var(--selected-shadow);+}+.toolbar-actions,.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }@@ -1221,13 +1382,13 @@ details.create[open] > summary::after { transform: rotate(180deg); }border: 1px solid var(--line-2);border-radius: var(--radius-lg);background: var(--card);- box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .85);+ box-shadow: var(--shadow-ask);transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);}.ask-box:focus-within {- border-color: rgba(214, 190, 142, .42);- box-shadow: 0 0 0 3px rgba(214, 190, 142, .1), 0 24px 60px -36px rgba(0, 0, 0, .85);+ border-color: rgba(var(--gold-rgb), .42);+ box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .1), var(--shadow-ask);}.ask-box textarea {@@ -1252,7 +1413,7 @@ details.create[open] > summary::after { transform: rotate(180deg); }gap: 12px;padding: 10px 12px 10px 20px;border-top: 1px solid var(--line);- background: rgba(8, 9, 13, .35);+ background: var(--ask-actions-bg);}.ask-buttons { display: flex; flex-wrap: wrap; gap: 8px; }@@ -1307,7 +1468,7 @@ details.create[open] > summary::after { transform: rotate(180deg); }margin: 0 0 6px;padding: 2px 0 2px 14px;overflow: hidden;- border-left: 2px solid rgba(214, 190, 142, .4);+ border-left: 2px solid rgba(var(--gold-rgb), .4);color: var(--text-3);font-size: 13px;line-height: 1.6;@@ -1355,7 +1516,7 @@ details.create[open] > summary::after { transform: rotate(180deg); }padding: 7px 10px;border: 1px solid var(--line);border-radius: var(--radius);- background: #0b0c11;+ background: var(--code-bg);color: var(--sand);font-size: 12.5px;}@@ -1369,8 +1530,8 @@ button.more { width: 100%; margin-top: 12px; }#view-connections { display: flex; flex-direction: column; gap: 20px; }.settings-section {- --row: #0c0d13;- --row-hover: #101117;+ --row: var(--row-settings);+ --row-hover: var(--row-settings-hover);padding: 22px 24px 24px;border: 1px solid var(--line);border-radius: var(--radius-lg);@@ -1379,6 +1540,8 @@ button.more { width: 100%; margin-top: 12px; }.section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }+.section-head:last-child { margin-bottom: 0; }+.section-text { flex: 1; min-width: 0; }.section-text h2 { font: 600 16px/1.35 var(--font-display); letter-spacing: -.02em; }@@ -1444,17 +1607,17 @@ dialog {max-height: min(88vh, 900px);padding: 0;overflow: hidden;- border: 1px solid rgba(214, 190, 142, .2);+ border: 1px solid rgba(var(--gold-rgb), .2);border-radius: 12px;background: var(--raised);- box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 240, 210, .04);+ box-shadow: var(--shadow-dialog);color: var(--text-2);}dialog[open] { display: flex; flex-direction: column; animation: dialog-in 200ms var(--ease); }dialog::backdrop {- background: rgba(4, 4, 8, .66);+ background: var(--backdrop);-webkit-backdrop-filter: blur(3px);backdrop-filter: blur(3px);}@@ -1464,8 +1627,8 @@ dialog::backdrop {}#detail-content {- --row: #0d0f13;- --row-hover: #121419;+ --row: var(--row-detail);+ --row-hover: var(--row-detail-hover);flex: 1;min-height: 0;padding: 26px 28px 28px;@@ -1567,7 +1730,7 @@ dialog .close:hover:not(:disabled) { border-color: var(--line-3); background: vaoverflow: visible;border-right: 0;border-bottom: 1px solid var(--line);- background: rgba(8, 9, 13, .94);+ background: var(--sidebar-overlay);-webkit-backdrop-filter: saturate(140%) blur(16px);backdrop-filter: saturate(140%) blur(16px);}@@ -1607,8 +1770,8 @@ dialog .close:hover:not(:disabled) { border-color: var(--line-3); background: va.side-nav > .nav-search[aria-current="page"] {border-color: transparent;- background: rgba(226, 204, 156, .075);- box-shadow: inset 0 0 0 1px rgba(214, 190, 142, .14);+ background: rgba(var(--sand-rgb), .075);+ box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .14);}.side-nav kbd,diff --git a/crates/graphicle/web/theme.js b/crates/graphicle/web/theme.jsnew file mode 100644index 0000000..337ec12--- /dev/null+++ b/crates/graphicle/web/theme.js@@ -0,0 +1,66 @@+"use strict";+// The colour theme, applied before the first paint: pages load this file in+// <head> before their stylesheets, without defer (the Content-Security-Policy+// allows no inline script). The choice is "system" (the default: follow the operating system),+// "light" or "dark"; it is kept per browser in localStorage under+// "graphicle-theme", as the graph export page keeps its own, and when storage+// is unavailable it lasts until the page is closed. The theme is set as+// data-theme on <html> (style.css); buttons with data-theme-choice pick it.+(() => {+ const KEY = "graphicle-theme";+ const CHOICES = ["system", "light", "dark"];+ // The browser bar's colour for each theme: the page background (--ink).+ const BAR = {light: "#f7f3ea", dark: "#0a0a12"};+ const light = window.matchMedia ? window.matchMedia("(prefers-color-scheme: light)") : null;+ let unsaved = null;+ function stored() {+ try {+ const value = window.localStorage.getItem(KEY);+ return CHOICES.includes(value) ? value : null;+ } catch {+ return null;+ }+ }+ function choice() { return unsaved || stored() || "system"; }+ function resolve(chosen) { return chosen === "light" || chosen === "dark" ? chosen : (light && light.matches ? "light" : "dark"); }+ function apply() {+ const chosen = choice();+ const theme = resolve(chosen);+ document.documentElement.dataset.theme = theme;+ // With "system" each meta keeps the colour of the scheme its media names;+ // a picked theme sets both.+ for (const meta of document.querySelectorAll('meta[name="theme-color"]')) {+ const scheme = (meta.getAttribute("media") || "").includes("light") ? "light" : "dark";+ meta.content = BAR[chosen === "system" ? scheme : theme];+ }+ for (const button of document.querySelectorAll("[data-theme-choice]")) {+ const selected = button.dataset.themeChoice === chosen;+ button.setAttribute("aria-pressed", String(selected));+ button.classList.toggle("selected", selected);+ }+ }+ function pick(value) {+ if (!CHOICES.includes(value)) return;+ unsaved = null;+ try {+ if (value === "system") window.localStorage.removeItem(KEY);+ else window.localStorage.setItem(KEY, value);+ } catch {+ unsaved = value;+ }+ apply();+ }+ apply();+ if (light) {+ const follow = () => { if (choice() === "system") apply(); };+ if (light.addEventListener) light.addEventListener("change", follow);+ else if (light.addListener) light.addListener(follow);+ }+ // Another tab of this app changed the choice.+ window.addEventListener("storage", event => { if (event.key === KEY || event.key === null) apply(); });+ document.addEventListener("click", event => {+ const button = event.target instanceof Element ? event.target.closest("[data-theme-choice]") : null;+ if (button) pick(button.dataset.themeChoice);+ });+ document.addEventListener("DOMContentLoaded", apply);+})();diff --git a/crates/graphicle/web/workspace.css b/crates/graphicle/web/workspace.cssindex c0a2ac5..8ac56bd 100644--- a/crates/graphicle/web/workspace.css+++ b/crates/graphicle/web/workspace.css@@ -296,7 +296,7 @@ form.graph-controls > button { flex: none; min-height: 38px; }overflow: hidden;border: 1px solid var(--line);border-radius: var(--radius-lg);- background: #0b0c11;+ background: var(--graph-bg);}.graph-stage {@@ -304,7 +304,7 @@ form.graph-controls > button { flex: none; min-height: 38px; }display: flex;flex-direction: column;min-width: 0;- background-image: radial-gradient(rgba(208, 203, 188, .09) 1px, transparent 1.2px);+ background-image: radial-gradient(rgba(var(--line-rgb), .09) 1px, transparent 1.2px);background-size: 20px 20px;}@@ -333,10 +333,10 @@ form.graph-controls > button { flex: none; min-height: 38px; }padding: 3px;border: 1px solid var(--line-2);border-radius: var(--radius-md);- background: rgba(17, 19, 24, .82);+ background: var(--graph-tools-bg);-webkit-backdrop-filter: blur(10px);backdrop-filter: blur(10px);- box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .8);+ box-shadow: var(--shadow-tools);}.graph-tools > button.quiet {@@ -349,14 +349,14 @@ form.graph-controls > button { flex: none; min-height: 38px; }.graph-caption {padding: 10px 14px;border-top: 1px solid var(--line);- background: rgba(11, 12, 17, .86);+ background: var(--graph-caption-bg);color: var(--text-4);font-size: 12.5px;line-height: 1.5;}.graph-edge {- stroke: rgba(208, 203, 188, .2);+ stroke: rgba(var(--line-rgb), .2);stroke-width: 1.2;vector-effect: non-scaling-stroke;}@@ -371,15 +371,15 @@ form.graph-controls > button { flex: none; min-height: 38px; }transition: stroke var(--fast) var(--ease);}-.graph-node > .source-dot { fill: #d8bd8a; stroke: #0b0c11; }+.graph-node > .source-dot { fill: var(--source-dot); stroke: var(--graph-bg); }-.graph-node > .symbol-dot { fill: #0b0c11; stroke: #9aa5b8; }+.graph-node > .symbol-dot { fill: var(--graph-bg); stroke: var(--symbol-dot-line); }.graph-node > text {fill: var(--text-2);font: 500 12px var(--font-sans);paint-order: stroke;- stroke: #0b0c11;+ stroke: var(--graph-bg);stroke-width: 3px;stroke-linejoin: round;}@@ -516,9 +516,9 @@ meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 999px; backgrometer::-webkit-meter-optimum-value,meter::-webkit-meter-suboptimum-value,-meter::-webkit-meter-even-less-good-value { border-radius: 999px; background: linear-gradient(90deg, #8a7448, #d8bd8a); }+meter::-webkit-meter-even-less-good-value { border-radius: 999px; background: var(--meter-fill); }-meter::-moz-meter-bar { border-radius: 999px; background: linear-gradient(90deg, #8a7448, #d8bd8a); }+meter::-moz-meter-bar { border-radius: 999px; background: var(--meter-fill); }.loading-state {display: flex;@@ -549,8 +549,8 @@ meter::-moz-meter-bar { border-radius: 999px; background: linear-gradient(90deg,body.public {min-height: 100vh;background:- radial-gradient(1200px 600px at 78% -8%, rgba(214, 190, 142, .075), transparent 62%),- radial-gradient(900px 520px at -10% 40%, rgba(120, 132, 160, .04), transparent 60%),+ radial-gradient(1200px 600px at 78% -8%, rgba(var(--gold-rgb), .075), transparent 62%),+ radial-gradient(900px 520px at -10% 40%, rgba(var(--slate-rgb), .04), transparent 60%),var(--ink);background-repeat: no-repeat;}@@ -588,7 +588,7 @@ body.public > main {gap: 12px 32px;margin-top: 112px;padding: 26px max(32px, calc((100% - 1136px) / 2)) 32px;- border-top: 1px solid rgba(211, 203, 181, .07);+ border-top: 1px solid var(--header-line);color: var(--text-4);font-size: 13px;}@@ -608,7 +608,7 @@ body.public > main {padding: 7px 14px;border: 1px solid var(--line-gold);border-radius: 999px;- background: rgba(214, 190, 142, .06);+ background: rgba(var(--gold-rgb), .06);}.product-hero > h1 {@@ -620,7 +620,7 @@ body.public > main {}.accent {- background: linear-gradient(180deg, #f3e3c1 10%, #c9ad78 90%);+ background: var(--accent-text);-webkit-background-clip: text;background-clip: text;color: transparent;@@ -645,8 +645,8 @@ figure.preview {padding: 10px;border: 1px solid var(--line);border-radius: 16px;- background: linear-gradient(180deg, rgba(236, 226, 205, .05), rgba(236, 226, 205, .012));- box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .95);+ background: var(--preview-bg);+ box-shadow: var(--shadow-preview);}.preview-window {@@ -728,8 +728,8 @@ figure.preview {}.preview-item.is-current {- background: rgba(226, 204, 156, .075);- box-shadow: inset 0 0 0 1px rgba(214, 190, 142, .14);+ background: rgba(var(--sand-rgb), .075);+ box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .14);color: var(--text-1);}@@ -900,7 +900,7 @@ figure.preview {padding: 36px 40px;border: 1px solid var(--line-gold);border-radius: 14px;- background: radial-gradient(600px 220px at 100% 0%, rgba(214, 190, 142, .1), transparent 70%), var(--card);+ background: radial-gradient(600px 220px at 100% 0%, rgba(var(--gold-rgb), .1), transparent 70%), var(--card);}.cta-band h2 {@@ -979,7 +979,7 @@ main.docs-layout {line-height: 1.75;}-.docs-content p > a { text-decoration: underline; text-decoration-color: rgba(223, 195, 141, .4); }+.docs-content p > a { text-decoration: underline; text-decoration-color: var(--docs-underline); }.docs-content p > a:hover { text-decoration-color: currentColor; }@@ -998,7 +998,7 @@ main.docs-layout {overflow: hidden;border: 1px solid var(--line-2);border-radius: var(--radius-lg);- background: #0b0c11;+ background: var(--code-bg);}.code-block > figcaption {@@ -1057,7 +1057,7 @@ main.docs-layout {flex-direction: column;gap: 6px;border-color: var(--line-gold);- background: rgba(214, 190, 142, .045);+ background: rgba(var(--gold-rgb), .045);}.docs-content .callout > strong { font: 600 14px/1.3 var(--font-display); }diff --git a/docs/benchmarks.md b/docs/benchmarks.mdindex b09d260..0aaf274 100644--- a/docs/benchmarks.md+++ b/docs/benchmarks.md@@ -9,7 +9,7 @@ endorsement is implied.| Area | Status | Result ||---|---|---|-| Code-graph engine: parity | Graphify 0.9.91: run on Linux, 15 October 2026; the full run on macOS is pending. Graphify 0.9.88: done, 13 October 2026; widened 14 October 2026 | Against Graphify 0.9.91, the comparison checks pass on Linux, apart from those that stop on that host, as they did against 0.9.88 (IPv4 loopback, a speech recording and ffmpeg, and one layout tolerance). Against Graphify 0.9.88, every check passes, with reviewed upstream fixes applied to nine of the reference's modules; widened on 14 October, they run most of its test files against the engine, and every file they run passes apart from the recorded known differences. The limits are [below](#parity-with-graphify) |+| Code-graph engine: parity | Graphify 0.9.91: run on Linux, 15 October 2026, and again on the 0.1.2 source, 18 October 2026; the full run on macOS is pending. Graphify 0.9.88: done, 13 October 2026; widened 14 October 2026 | Against Graphify 0.9.91, the comparison checks pass on Linux, apart from those that stop on that host, as they did against 0.9.88 (IPv4 loopback, a speech recording and ffmpeg, and one layout tolerance). Against Graphify 0.9.88, every check passes, with reviewed upstream fixes applied to nine of the reference's modules; widened on 14 October, they run most of its test files against the engine, and every file they run passes apart from the recorded known differences. The limits are [below](#parity-with-graphify) || Code-graph engine: speed | Done, on a pre-release build that followed Graphify 0.9.77. The 0.1.0 engine: an exploratory survey, 14 October 2026; its registered quiet-host repeat is pending. Updates after commits: Graphicle 0.1.0 against Graphify 0.9.91, registered before the first update, 15 October 2026. 13 codebases against Graphify 0.9.91: Graphicle's 0.1.1 memory engine (a pre-release build), one session per program, 15 October 2026 | Django (pre-release build): code-only extract 7.5 s against 72.8 s for Graphify 0.9.77. Kubernetes v1.37.1 (the 0.1.0 engine, which follows Graphify 0.9.88; exploratory, one run each on one Linux host, the same 16 CPUs, 8 workers, with four recorded deviations): code-only extract 198.4 s against 1,597.9 s for Graphify 0.9.88, the same graph. [Details](#speed-on-kubernetes). Updates after each of 30 commits on prometheus, tokio and poetry (one Linux node, 4 CPUs per run): 6 to 8 times less time than Graphify 0.9.91, with the same differences from a fresh build in both. [Details](#updates-after-commits). 13 codebases, 3 operations each (Graphicle's 0.1.1 memory engine, a pre-release build, against Graphify 0.9.91; the same machine, 3 CPUs and 8 workers each): 3.0 to 22.7 times less time in all 39 measurements; the graphs differ slightly, with node counts within 4.7% and edge counts within 2.0%. [Details](#speed-on-13-codebases-against-graphify-0991) || Code-graph engine: peak memory | A pre-release build with 0.1.1's changes to how the engine holds its data, against Graphify 0.9.91, 15 October 2026; five measurements rechecked on a build of the merged 0.1.1 source | Less peak memory than Graphify 0.9.91 in all 39 measurements (13 repositories; extract, priming update and update with no change), from 0.29 to 0.97 times Graphify's figure; Kubernetes extract 2,091.5 against 2,767 MiB. One Linux node (its 8 H100 GPUs not used), 8 workers; Graphicle's peak RSS against Graphify's peak PSS. [Details](#peak-memory-against-graphify-0991) || Coding agents: Claude Code with Graphicle, Graphify or neither | Four task sets, each test registered before any answer was scored; Claude Code with Opus 5.5, and one set repeated with Haiku 5.5 | Graphicle tied plain Claude Code on finding files and facts in every test, and no token saving is claimed against it. Against Graphify 0.9.91, Graphicle found more facts on Graphify's showcase corpus and used fewer tokens in all four task sets (on SWE-bench Verified, a secondary comparison); in two of them, Graphicle's arm included a prototype that does not ship. [Details](#coding-agents-with-graphicle-graphify-or-neither) |@@ -44,8 +44,17 @@ That is the parity claim, with these limits:connections, which the host refuses, `check_transcribe` needs a speechrecording (`jfk.wav`) and ffmpeg, which the host lacks, and in`check_export` a graph layout position differs from NetworkX's by 2.2e-9,- against a tolerance of 2e-9. Since that run, the engine has changed only in- one test file. Before the merge, the port branch's own build (binary+ against a tolerance of 2e-9. The file ledger (`migration/FILES.json`)+ marks each application module with a passing receipt from that run as+ verified; the others stay pending. Since that run the engine has changed in+ tests, in its version and, on macOS, in its memory allocator. On 18 October+ 2026 a qualified build of the 0.1.2 source (binary SHA-256 `e9d7d0c6…`) had+ the same result on Linux, except that `check_detect` and `check_extract`+ stopped on upstream tests that depend on the run's folder: one fails when a+ detected file's path contains `build`, as that run's folder did (the pinned+ reference fails it there too), and in `check_detect` a Unix socket path was+ longer than the system allows. Apart from those tests, both checks passed.+ Before the merge, the port branch's own build (binarySHA-256 `adf81bb2…`) had the same result, except that `check_detect` passedonly when run on its own: in its full run of `tools/qualify_all.py`, oneupstream test could not bind a Unix socket because the run's temporarydiff --git a/docs/code-signing.md b/docs/code-signing.mdindex a15189c..962d539 100644--- a/docs/code-signing.md+++ b/docs/code-signing.md@@ -37,12 +37,14 @@ SignPath.Graphicle has no telemetry and no account. It contacts the network only inthese cases:-- **The update check, which is on by default.** Once a day, when you run a- command in a terminal, `graphicle` sends one GET request to GitHub's+- **The update check, which is on by default.** At most once a day, when you+ run a command in a terminal, `graphicle` sends one GET request to GitHub'sreleases API (`api.github.com/repos/Graphicle-AI/graphicle/releases/latest`)- to learn the latest version, and tells you when a newer one exists. If- GitHub has not answered by the time the command ends, the request is sent- again with your next command. The request carries no code, project data,+ to learn the latest version, and tells you when a newer one exists. A check+ that has no answer by the time the command ends counts as that day's check;+ after a check that fails, or that GitHub refuses or limits, the next one+ waits a day, then two days after a second failure in a row, then four. The+ request carries no code, project data,version or credentials; like any web request, it shows GitHub your IPaddress. Agents' MCP servers and hooks, CI runs, and commands whose outputis JSON or not a terminal never check. To turn it off, setdiff --git a/docs/configuration.md b/docs/configuration.mdindex cc54453..c248056 100644--- a/docs/configuration.md+++ b/docs/configuration.md@@ -365,9 +365,11 @@ instead of starting a browser.When a newer release is out, a command you run in a terminal ends with athree-line notice on standard error: the new version, the upgrade command and-the release page. Graphicle asks GitHub for the latest release once a day,-and asks again with the next command when GitHub has not answered by the time-a command ends. It prints the notice at most once a day.+the release page. Graphicle asks GitHub for the latest release at most once a+day; a check that has no answer by the time a command ends counts as that+day's check. After a check that fails, or that GitHub refuses or limits, the+next one waits a day, then two days after a second failure in a row, then+four. It prints the notice at most once a day.`GRAPHICLE_NO_UPDATE_NOTIFIER=1` or `graphicle config set update_notifier false`turns both off.diff --git a/docs/faq.md b/docs/faq.mdindex 22fde64..082b267 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -41,11 +41,13 @@ finds through an API key in your environment. Run `--dry-run` first to see whatit would send. The README's [privacy section](../README.md#privacy-and-local-first)lists every case.-One of them is on by default: once a day, when you run a command in a-terminal, `graphicle` asks GitHub's releases API for its latest release.+One of them is on by default: at most once a day, when you run a command in+a terminal, `graphicle` asks GitHub's releases API for its latest release.That is one GET request to api.github.com, with no code, project data or-version in it. If GitHub has not answered by the time the command ends, the-request is made again with your next command. The answer is kept in+version in it. A check that has no answer by the time the command ends counts+as that day's check. After a check that fails, or that GitHub refuses or+limits, the next one waits a day, then two days after a second failure in a+row, then four. The answer is kept in`~/.cache/graphicle/update-check.json`.When a newer release exists, `graphicle` prints the new version and theupgrade command for your install. It never checks from an agent's MCPdiff --git a/docs/install.md b/docs/install.mdindex 8445504..6bb8f0e 100644--- a/docs/install.md+++ b/docs/install.md@@ -16,7 +16,7 @@ step.```shbrew install graphicle-ai/tap/graphicle-graphicle --version # graphicle 0.1.1 (core)+graphicle --version # graphicle 0.1.2 (core)````brew upgrade graphicle` installs a new release. Afterwards, read@@ -145,7 +145,7 @@ folder with both programs, `LICENSE`, `NOTICE`, `NOTICE.md`, `README.md`,| Windows, x86-64 (preview) | `x86_64-pc-windows-msvc`, a `.zip` |```sh-version=0.1.1+version=0.1.2target=aarch64-apple-darwinbase=https://github.com/graphicle-ai/graphicle/releases/download/v$versioncurl -fLO "$base/graphicle-$version-$target.tar.gz"@@ -239,7 +239,7 @@ in them.## Check the installation```sh-graphicle --version # graphicle 0.1.1 (core)+graphicle --version # graphicle 0.1.2 (core)graphicle graph --help # the code-graph engine's commandsgraphicle doctor # checks the programs, the data folder and your agents```@@ -271,8 +271,8 @@ hooks. To keep 0.1.0's setup, with every tool and the guard hooks, run`graphicle setup --tools all --guards` instead; the[CHANGELOG](../CHANGELOG.md) lists the two small differences that remain.-You do not have to watch for releases: once a day, when you run a command in-a terminal, `graphicle` asks GitHub for the latest release. When it is+You do not have to watch for releases: at most once a day, when you run a+command in a terminal, `graphicle` asks GitHub for the latest release. When it isnewer, `graphicle` prints the version and the upgrade command for your install.`GRAPHICLE_NO_UPDATE_NOTIFIER=1` or `graphicle config set update_notifier false`turns this off.diff --git a/glama.json b/glama.jsonnew file mode 100644index 0000000..87bdd49--- /dev/null+++ b/glama.json@@ -0,0 +1,4 @@+{+ "$schema": "https://glama.ai/mcp/schemas/server.json",+ "maintainers": ["VikramLex"]+}diff --git a/packaging/mcpb/README.md b/packaging/mcpb/README.mdnew file mode 100644index 0000000..09ecd7e--- /dev/null+++ b/packaging/mcpb/README.md@@ -0,0 +1,100 @@+# MCP bundles and the MCP Registry++From 0.1.2 on, the `mcp-registry` workflow adds one MCP bundle (`.mcpb`) for+each release target to the GitHub release and lists the release in the official+MCP Registry (https://registry.modelcontextprotocol.io) as+`io.github.Graphicle-AI/graphicle`, with the bundles as its packages. An MCP+bundle (https://github.com/modelcontextprotocol/mcpb) is a zip file with a+manifest in the MCP bundle format; each bundle's manifest follows that format+(checked against its 0.3 schema) and runs `graphicle mcp` on a project folder+that `graphicle sync` has set up.++## What a bundle holds++`build_mcpb.py` turns a release archive into `graphicle-<version>-<target>.mcpb`:++- `manifest.json`: a binary server for the target's operating system+ (`compatibility.platforms`) that runs+ `graphicle mcp --project <folder> --allow-learning`, the server that+ `graphicle setup` connects a desktop client to, on a folder the user picks+ (the directory option `project_folder`);+- `server/graphicle` (`server/graphicle.exe` on Windows): the archive's program,+ byte for byte. `graphicle-graph` stays out, because `graphicle mcp` links the+ graph engine and never runs it;+- `LICENSE`, `NOTICE`, `NOTICE.md` and `licenses/` from the archive.++The server serves a project that `graphicle sync` has set up. It does not index+a folder by itself: with an unknown folder, or no data folder, it exits at+start with a message that says what to run. The manifest's long description+tells users to install the `graphicle` command and run `graphicle sync` in the+folder first. With the same Python and zlib, the same archive gives the same+bundle, byte for byte; elsewhere the bytes may differ, which changes nothing,+because each run records the SHA-256 of the bundles it builds and uploads.++## server.json++`render_server_json.py` writes `server.json`, the registry entry, from the five+bundles: each bundle's download address on the release tag, its SHA-256 (MCP+clients check it before they install the bundle) and the stdio transport. The+repository has no `server.json` before the first listing; after each listing,+step 3 below commits the entry the workflow published at the repository's root.++- The namespace keeps the organization's capitals, `io.github.Graphicle-AI`:+ the registry grants a GitHub Actions run of this repository the names under+ `io.github.<owner>/`, spelled as GitHub spells the owner, and compares names+ case-sensitively, so `io.github.graphicle-ai/graphicle` would be refused.+- The registry has no field for a package's platform or machine. The file+ names carry the target, each manifest names its operating system, and the+ packages are listed with the most common machine of each system first+ (Apple silicon before Intel, x86-64 Linux before Arm64).+- The description has at most 100 characters, the registry's limit.++## Steps at release time++1. Publish the release as usual ([README.md](../README.md)): the release+ workflow must have finished, and the release must be a final one, not a+ prerelease. Immutable releases must stay off for the repository: the+ workflow adds the bundles to the published release, which an immutable+ release refuses, so it stops at once on one.+2. Run the `mcp-registry` workflow from main with the release's tag, from+ Actions (Run workflow) or with+ `gh workflow run mcp-registry.yml --repo Graphicle-AI/graphicle --ref main -f tag=v0.1.2`.+ It stops at once if the registry already lists that version. Otherwise+ its build job, which can only read the repository, downloads the five+ archives and checks them against `SHA256SUMS`, builds the five bundles,+ and writes and validates `server.json`. Its publish job, the only one that+ may write to the release and ask GitHub for an OIDC token, uploads the+ bundles to the release (`gh release upload --clobber`), checks the+ uploaded files, logs in to the registry with the run's OIDC token,+ publishes, and reads the listing back to check its version and each+ bundle's SHA-256. The workflow needs no secret; it runs `mcp-publisher`+ 1.8.1, pinned by its SHA-256.+3. Commit the run's `server.json` (its summary shows it, and the artifact+ `server-json-<version>` holds it) at the repository's root: a new file after+ the first listing, and in place of the previous entry after later ones.+4. Check the entry:+ `curl -s 'https://registry.modelcontextprotocol.io/v0.1/servers/io.github.Graphicle-AI%2Fgraphicle/versions/latest'`.++A listed version never changes. To fix an entry, release a new version and+list that one; `mcp-publisher status` can mark a listed version deprecated.++## Locally++To build the bundles and the entry of a published release without uploading+anything:++```sh+gh release download v0.1.2 --repo Graphicle-AI/graphicle --dir dist/archives \+ --pattern 'graphicle-0.1.2-*.tar.gz' --pattern 'graphicle-0.1.2-*.zip'+for archive in dist/archives/graphicle-0.1.2-*; do+ python3 packaging/mcpb/build_mcpb.py "$archive" --version 0.1.2 --out dist/mcpb+done+python3 packaging/mcpb/render_server_json.py --version 0.1.2 --bundles dist/mcpb --out dist/server.json+```++## Glama++[glama.json](../../glama.json) names the GitHub accounts that maintain the+listing on Glama (https://glama.ai/mcp/servers), which asks an organization's+repositories for this file. Add the server there once (Add server, with the+repository's address), then claim it; after glama.json changes, claim it again.diff --git a/packaging/mcpb/build_mcpb.py b/packaging/mcpb/build_mcpb.pynew file mode 100755index 0000000..70af6d2--- /dev/null+++ b/packaging/mcpb/build_mcpb.py@@ -0,0 +1,287 @@+#!/usr/bin/env python3+"""Build the MCP bundle (.mcpb) of one Graphicle release archive.++ python3 packaging/mcpb/build_mcpb.py dist/graphicle-0.1.2-aarch64-apple-darwin.tar.gz \\+ --version 0.1.2 --out dist/mcpb++An MCP bundle (https://github.com/modelcontextprotocol/mcpb) is a zip file+with a manifest.json at its root, in the MCP bundle format, which tells an+MCP client how to run the server the bundle holds. The bundle of the archive+graphicle-<version>-<target>.tar.gz (a .zip for Windows) is+OUT/graphicle-<version>-<target>.mcpb, and it holds++ manifest.json the manifest (MCPB manifest version 0.3): a binary server+ for this target's operating system that runs+ `graphicle mcp --project <folder> --allow-learning`, as+ `graphicle setup` connects a desktop client, on the folder+ the user picks (the directory option project_folder)+ server/ the archive's program, graphicle (graphicle.exe on+ Windows), executable. graphicle-graph stays out:+ `graphicle mcp` links the graph engine and never runs it+ LICENSE, NOTICE, NOTICE.md and licenses/+ the archive's licence and notices, which go wherever the+ program goes++The server serves a project that `graphicle sync` has set up; it does not+index a folder by itself, and the manifest's long description says what to+run first. The entries are written in a fixed order, all with the archive's+own file time, the program with mode 0755 and every other file with 0644, so+the same archive gives the same bundle with the same Python and zlib. The+bundle's SHA-256 is printed as sha256sum prints it; render_server_json.py+records it in server.json.+"""+import argparse+import calendar+import hashlib+import json+import os+import re+import stat+import sys+import tarfile+import time+import zipfile+from pathlib import Path++# The public repository, which the manifest links to.+REPOSITORY = 'Graphicle-AI/graphicle'+# The release targets, in the order server.json lists them (the most common+# machine of each operating system first): the operating system as the+# manifest's compatibility.platforms names it, and what the programs run on+# (packaging/README.md).+TARGETS = {+ 'aarch64-apple-darwin': ('darwin', 'macOS 11 or later on Apple silicon'),+ 'x86_64-apple-darwin': ('darwin', 'macOS 11 or later on Intel'),+ 'x86_64-pc-windows-msvc': ('win32', 'Windows on x86-64 (preview)'),+ 'x86_64-unknown-linux-gnu': ('linux', 'Linux on x86-64 with glibc 2.35 or later'),+ 'aarch64-unknown-linux-gnu': ('linux', 'Linux on Arm64 with glibc 2.35 or later'),+}+# The manifest's description, which server.json repeats: the registry allows+# 100 characters.+DESCRIPTION = 'Code graph and project memory for coding agents, cited to exact files and lines, on your machine.'+VERSION = re.compile(r'\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?')+# The archive's licence and notices that go beside the program: the first two+# must be there, NOTICE.md and licenses/ are taken when the archive has them.+LEGAL = ['LICENSE', 'NOTICE']+LEGAL_EXTRA = ['NOTICE.md']+LICENCES = 'licenses/'+# The files a bundle takes from an archive stay below this size together.+MAX_TOTAL = 1 << 30+++def fail(message):+ if os.environ.get('GITHUB_ACTIONS') == 'true':+ print(f'::error::{message}', flush=True)+ sys.exit(message)+++def bundle_name(version, target):+ return f'graphicle-{version}-{target}.mcpb'+++def program_name(target):+ return 'graphicle.exe' if TARGETS[target][0] == 'win32' else 'graphicle'+++def archive_target(name, version):+ """The target of graphicle-<version>-<target>.tar.gz (.zip for Windows)."""+ prefix = f'graphicle-{version}-'+ for suffix in ('.tar.gz', '.zip'):+ if name.startswith(prefix) and name.endswith(suffix):+ target = name[len(prefix):-len(suffix)]+ if target not in TARGETS:+ fail(f'{name}: {target!r} is not a release target ({", ".join(TARGETS)})')+ expected = '.zip' if TARGETS[target][0] == 'win32' else '.tar.gz'+ if suffix != expected:+ fail(f'{name}: the {target} archive is a {expected}')+ return target, name[:-len(suffix)]+ fail(f'{name} is not graphicle-{version}-<target>.tar.gz or .zip')+++def inside(name, root):+ """A member's path inside the archive's one folder, root ('' for the+ folder itself). Every member must be in it, under a plain relative name."""+ path = name[2:] if name.startswith('./') else name+ parts = path.rstrip('/').split('/')+ if '\\' in path or path.startswith('/') or any(part in ('', '.', '..') for part in parts):+ fail(f'archive member {name!r} has an unsafe name')+ if parts[0] != root:+ fail(f'archive member {name!r} is outside the folder {root}/')+ return '/'.join(parts[1:])+++def wanted(relative, program):+ return relative in (program, *LEGAL, *LEGAL_EXTRA) or relative.startswith(LICENCES)+++def keep(files, name, relative, mtime, size, read):+ if relative in files:+ fail(f'the archive holds {relative} twice')+ if size + sum(len(data) for _, data in files.values()) > MAX_TOTAL:+ fail(f'the files to bundle pass {MAX_TOTAL} bytes at archive member {name}')+ files[relative] = (mtime, read())+++def read_tar(archive, root, program):+ files = {}+ with tarfile.open(archive, 'r:gz') as tar:+ for member in tar:+ relative = inside(member.name, root)+ if not relative or member.isdir() or not wanted(relative, program):+ continue+ if not member.isfile():+ fail(f'archive member {member.name} is not a regular file')+ keep(files, member.name, relative, member.mtime, member.size, lambda: tar.extractfile(member).read())+ return files+++def read_zip(archive, root, program):+ files = {}+ with zipfile.ZipFile(archive) as bundle:+ for info in bundle.infolist():+ relative = inside(info.filename, root)+ if not relative or info.is_dir() or not wanted(relative, program):+ continue+ mode = info.external_attr >> 16+ if info.create_system == 3 and stat.S_IFMT(mode) not in (0, stat.S_IFREG):+ fail(f'archive member {info.filename} is not a regular file')+ keep(files, info.filename, relative, calendar.timegm(info.date_time + (0, 0, 0)), info.file_size,+ lambda: bundle.read(info))+ return files+++def install_hint(version, platform):+ """How to install the graphicle command: this version's installer, or+ Homebrew's current formula on macOS."""+ base = f'https://github.com/{REPOSITORY}/releases/download/v{version}'+ if platform == 'darwin':+ return '`brew install graphicle-ai/tap/graphicle`'+ if platform == 'win32':+ return f"`$env:GRAPHICLE_VERSION = '{version}'; irm {base}/install.ps1 | iex` in PowerShell"+ return f'`curl -fsSL {base}/install.sh | sh -s -- --version {version}`'+++def long_description(version, target):+ platform, runs_on = TARGETS[target]+ docs = f'https://github.com/{REPOSITORY}/blob/v{version}/docs'+ return '\n\n'.join([+ 'Graphicle maps your repository into a code graph, keeps its documents, decisions and agent sessions '+ 'as project memory, and gives your agent cited excerpts from both: the exact files and lines. It runs '+ 'on your machine, with no account, no API key and no telemetry.',+ '**Set up the project first.** This bundle runs the Graphicle MCP server; it does not index a folder '+ f'by itself. Install the `graphicle` command ({install_hint(version, platform)}; other ways: '+ f'{docs}/install.md), run `graphicle sync` once in your project\'s folder, then choose that folder as '+ 'the project folder. Until the folder is synced, the server exits when it starts and its log says what '+ 'to run. Before each tool call it syncs a few changed files; after larger changes, run `graphicle sync` '+ 'again.',+ 'The server reads Graphicle\'s default data folder and starts as `graphicle setup` connects a desktop '+ 'client: `graphicle mcp --project <folder> --allow-learning`. The agent may propose memory drafts; a '+ 'person reviews each one in the app (`graphicle open`, under Memory) before recall uses it. If '+ '`graphicle setup` already connected this client, you need no bundle as well (`graphicle disconnect '+ 'claude` removes Claude Desktop\'s entry). To use another data folder, connect the client with '+ '`graphicle connect` instead.',+ f'This bundle is Graphicle {version} for {runs_on}. Keep it and the `graphicle` command at the same '+ f'version. How the server works: {docs}/mcp.md',+ ])+++def manifest(version, target):+ """The bundle's manifest.json (MCPB manifest version 0.3)."""+ program = program_name(target)+ return {+ 'manifest_version': '0.3',+ 'name': 'graphicle',+ 'display_name': 'Graphicle',+ 'version': version,+ 'description': DESCRIPTION,+ 'long_description': long_description(version, target),+ 'author': {'name': 'KarLex AI, Inc.', 'url': 'https://www.karlexai.com'},+ 'repository': {'type': 'git', 'url': f'https://github.com/{REPOSITORY}'},+ 'homepage': f'https://github.com/{REPOSITORY}',+ 'documentation': f'https://github.com/{REPOSITORY}/blob/v{version}/docs/mcp.md',+ 'support': f'https://github.com/{REPOSITORY}/issues',+ 'server': {+ 'type': 'binary',+ 'entry_point': f'server/{program}',+ 'mcp_config': {+ 'command': '${__dirname}/server/' + program,+ 'args': ['mcp', '--project', '${user_config.project_folder}', '--allow-learning'],+ 'env': {},+ },+ },+ # The tools depend on the server's options and are listed at run time.+ 'tools_generated': True,+ 'keywords': ['code graph', 'project memory', 'coding agents', 'code search', 'citations', 'local'],+ 'license': 'Apache-2.0',+ 'compatibility': {'platforms': [TARGETS[target][0]]},+ 'user_config': {+ 'project_folder': {+ 'type': 'directory',+ 'title': 'Project folder',+ 'description': 'The folder of your project. Run `graphicle sync` in it once before you use '+ 'the server.',+ 'required': True,+ },+ },+ }+++def sha256(path):+ digest = hashlib.sha256()+ with open(path, 'rb') as stream:+ for block in iter(lambda: stream.read(1 << 20), b''):+ digest.update(block)+ return digest.hexdigest()+++def write_bundle(path, entries, mtime):+ """Write entries (name, mode, bytes) in their order, every time at mtime+ (UTC; the format holds 1980 to 2107), files only, as `mcpb pack` does."""+ stamp = time.gmtime(min(max(mtime, 315532800), 4354819198))[:6]+ partial = path.with_name(path.name + '.part')+ with zipfile.ZipFile(partial, 'w') as bundle:+ for name, mode, data in entries:+ entry = zipfile.ZipInfo(name, date_time=stamp)+ entry.create_system = 3+ entry.external_attr = (stat.S_IFREG | mode) << 16+ bundle.writestr(entry, data, compress_type=zipfile.ZIP_DEFLATED, compresslevel=9)+ os.replace(partial, path)+++def build(archive, version, out):+ target, root = archive_target(archive.name, version)+ program = program_name(target)+ files = (read_zip if archive.name.endswith('.zip') else read_tar)(archive, root, program)+ missing = [name for name in (program, *LEGAL) if name not in files]+ if missing:+ fail(f'{archive.name} has no {", ".join(missing)} in {root}/')+ mtime, binary = files[program]+ text = json.dumps(manifest(version, target), indent=2, ensure_ascii=False) + '\n'+ entries = [('manifest.json', 0o644, text.encode('utf-8')), (f'server/{program}', 0o755, binary)]+ # Every other file is a document, 0644 whatever the archive says.+ entries += [(name, 0o644, files[name][1]) for name in (*LEGAL, *LEGAL_EXTRA) if name in files]+ entries += [(name, 0o644, data) for name, (_, data) in sorted(files.items()) if name.startswith(LICENCES)]+ out.mkdir(parents=True, exist_ok=True)+ path = out / bundle_name(version, target)+ write_bundle(path, entries, mtime)+ print(f'{path.name}: {path.stat().st_size} bytes, {len(entries)} files; server/{program} {len(binary)} bytes, '+ f'sha256 {hashlib.sha256(binary).hexdigest()}', file=sys.stderr)+ return path+++def main():+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])+ parser.add_argument('archive', type=Path, help='graphicle-<version>-<target>.tar.gz, or .zip for Windows')+ parser.add_argument('--version', required=True, help='the release version, without the tag\'s "v"')+ parser.add_argument('--out', type=Path, required=True, help='the folder to write the bundle to')+ args = parser.parse_args()+ if not VERSION.fullmatch(args.version):+ fail(f'--version {args.version!r} is not a version such as 0.1.2')+ if not args.archive.is_file():+ fail(f'{args.archive} is not a file')+ path = build(args.archive, args.version, args.out)+ print(f'{sha256(path)} {path.name}')+++if __name__ == '__main__':+ main()diff --git a/packaging/mcpb/render_server_json.py b/packaging/mcpb/render_server_json.pynew file mode 100755index 0000000..10857a7--- /dev/null+++ b/packaging/mcpb/render_server_json.py@@ -0,0 +1,124 @@+#!/usr/bin/env python3+"""Write server.json, Graphicle's entry in the official MCP Registry, for one release.++ python3 packaging/mcpb/render_server_json.py --version 0.1.2 --bundles dist/mcpb --out server.json++The entry follows the registry's schema of 2025-12-11 and lists the release's+five MCP bundles, which build_mcpb.py writes to the bundles folder, as+packages of type mcpb: each by its download address on the release (tag+v<version>), with the file's SHA-256, which MCP clients check before they+install a bundle, and stdio transport. The registry has no field for a+package's platform: the file names carry the target, each bundle's manifest+names its operating system, and the packages are listed with the most common+machine of each system first.++The namespace io.github.Graphicle-AI is spelled as GitHub spells the+organization: the registry grants a GitHub Actions run of this repository the+names under io.github.<owner>/ with the owner's own capitals, and compares+names case-sensitively. In a GitHub Actions run the script refuses another+repository.+"""+import argparse+import json+import os+import re+import sys+import zipfile+from pathlib import Path++sys.path.insert(0, str(Path(__file__).resolve().parent))+from build_mcpb import DESCRIPTION, REPOSITORY, TARGETS, VERSION, bundle_name, fail, program_name, sha256 # noqa: E402++SCHEMA = 'https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json'+OWNER = REPOSITORY.split('/')[0]+NAME = f'io.github.{OWNER}/graphicle'+TITLE = 'Graphicle'+# The repository's GitHub id (gh api repos/Graphicle-AI/graphicle --jq .id),+# which changes if the repository is ever deleted and created again.+REPOSITORY_ID = '1418870464'+# The registry's rules for these fields (its schema and its MCPB validator).+NAME_PATTERN = re.compile(r'[a-zA-Z0-9.-]+/[a-zA-Z0-9._-]+')+RELEASE_ASSET = re.compile(r'https://github\.com/[a-zA-Z0-9]([a-zA-Z0-9-]{0,37}[a-zA-Z0-9])?/[a-zA-Z0-9._-]+'+ r'/releases/download/[^/]+/[^/]+')+++def check_run():+ """In GitHub Actions, the run must belong to this repository: the+ registry would refuse the name to another owner anyway."""+ if os.environ.get('GITHUB_ACTIONS') != 'true':+ return+ owner = os.environ.get('GITHUB_REPOSITORY_OWNER', '')+ if owner != OWNER:+ fail(f'this run belongs to {owner!r}, but the name {NAME} is under io.github.{OWNER}/ '+ f'(the registry compares the owner case-sensitively)')+ if os.environ.get('GITHUB_REPOSITORY', '').lower() != REPOSITORY.lower():+ fail(f'this run belongs to {os.environ.get("GITHUB_REPOSITORY")}, not {REPOSITORY}')+ if os.environ.get('GITHUB_REPOSITORY_ID', REPOSITORY_ID) != REPOSITORY_ID:+ fail(f'the repository id is {os.environ["GITHUB_REPOSITORY_ID"]}, not {REPOSITORY_ID}')+++def package(bundles, version, target):+ """The registry package of one target's bundle, which must be this+ version's bundle for that target."""+ path = bundles / bundle_name(version, target)+ if not path.is_file():+ fail(f'{path} is missing: build it with build_mcpb.py')+ with zipfile.ZipFile(path) as bundle:+ try:+ manifest = json.loads(bundle.read('manifest.json'))+ except KeyError:+ fail(f'{path.name} has no manifest.json')+ entry = manifest.get('server', {}).get('entry_point')+ if entry != f'server/{program_name(target)}' or entry not in bundle.namelist():+ fail(f'{path.name}: the entry point {entry!r} is not the bundle\'s program')+ if manifest.get('version') != version or manifest.get('name') != 'graphicle':+ fail(f'{path.name} is {manifest.get("name")} {manifest.get("version")}, not graphicle {version}')+ if manifest.get('compatibility', {}).get('platforms') != [TARGETS[target][0]]:+ fail(f'{path.name} is not for {TARGETS[target][0]} only')+ url = f'https://github.com/{REPOSITORY}/releases/download/v{version}/{path.name}'+ if not RELEASE_ASSET.fullmatch(url) or 'mcp' not in url.lower():+ fail(f'{url} is not a release asset address the registry accepts')+ return {+ 'registryType': 'mcpb',+ 'identifier': url,+ 'version': version,+ 'fileSha256': sha256(path),+ 'transport': {'type': 'stdio'},+ }+++def server_json(bundles, version):+ if not NAME_PATTERN.fullmatch(NAME) or len(NAME) > 200:+ fail(f'{NAME} is not a server name the registry accepts')+ if not 1 <= len(DESCRIPTION) <= 100 or not 1 <= len(TITLE) <= 100:+ fail('the registry allows a title and a description of 1 to 100 characters')+ return {+ '$schema': SCHEMA,+ 'name': NAME,+ 'title': TITLE,+ 'description': DESCRIPTION,+ 'version': version,+ 'websiteUrl': f'https://github.com/{REPOSITORY}/blob/v{version}/docs/mcp.md',+ 'repository': {'url': f'https://github.com/{REPOSITORY}', 'source': 'github', 'id': REPOSITORY_ID},+ 'packages': [package(bundles, version, target) for target in TARGETS],+ }+++def main():+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])+ parser.add_argument('--version', required=True, help='the release version, without the tag\'s "v"')+ parser.add_argument('--bundles', type=Path, required=True, help='the folder holding the five bundles')+ parser.add_argument('--out', type=Path, help='where to write server.json (default: standard output)')+ args = parser.parse_args()+ if not VERSION.fullmatch(args.version):+ fail(f'--version {args.version!r} is not a version such as 0.1.2')+ check_run()+ text = json.dumps(server_json(args.bundles, args.version), indent=2, ensure_ascii=False) + '\n'+ if args.out:+ args.out.write_text(text, encoding='utf-8')+ else:+ sys.stdout.write(text)+++if __name__ == '__main__':+ main()