Repository navigation
feat(share): share links — CLI, guest reading room, tunnel - #947
Merged
Merged
Conversation
Recovered 2026-09-18 from an abandoned agent worktree where it sat uncommitted since 2026-09-14: xerj-api/src/share.rs (1,071 lines, untracked) plus wiring in auth, authz, audit_mw, router, state, memory_api and engine. Not built and not tested at the time of this commit. It exists so the work cannot be lost to worktree cleanup; verification follows in later commits.
rate_windows_lock_out_after_the_limit failed on the salvaged tree. The limiter is correct; the test's arithmetic was not. A minute-throttled attempt returns before the hour window is charged - it never reaches passcode verification, so it is not a guess - which meant the test's 19 filler attempts landed only 9 on the hourly budget (21 of 30) and the final lock-out assertion could not hold. The test now fills the hour with accepted charges across fresh minute windows, asserts the lock-out comes from the hour window (retry > 60s), and pins the property that matters: verified guesses per share never exceed SHARE_PER_HOUR.
Found by the first live run of the share API. validate_share_index refused only the .xerj-memory-* namespace, so every other dot-index was shareable - and the live test minted a guest link onto .xerj_audit. The same gap covered .xerj_sessions, .xerj_api_tokens, .xerj_passkeys and .xerj_magic_links: one mistaken share would have handed a guest the node's credential stores. It takes the owner's own key to do it, so this is a footgun rather than a remote hole, but a feature whose whole job is handing strangers a key must not be able to point that key at credentials. The rule is now the prefix - no index starting with '.' - rather than a list that has to track every system index added later. No user index starts with a dot; a brain's edges index is still granted through `brain`, not by name. Adds tests/live/share_security_live.py: 24 checks against a real node with auth ON - refusal without a key, passcode and unknown-id handling, the guest key reaching exactly the shared index (not another index, not _search over everything, not a multi-index list, not _cat/indices), no writes or deletes, no share management, max_claims, nothing secret in shares.json (0600), revoke killing the minted key, and 429 under wrong-passcode hammering. Result: 24/24 live, 7/7 unit. Before this fix: 23/24.
… — UNVERIFIED
Found uncommitted in the worktree at the start of this session (a prior
agent died before committing). Committed verbatim so it cannot be lost a
second time; nothing here has been built or tested yet by this session.
Contents, as found:
- engine/crates/xerj-server/src/share.rs (new, 1591 lines): xerj share CLI
- xerj-ux/share/ (new): guest page index.html + share.js + share.css + icon
- engine/crates/xerj-api/src/authz.rs: guest route allow-list
- engine/crates/xerj-api/src/share.rs: two-throttle rework, ClaimSource
- engine/crates/xerj-api/src/auth.rs, xerj-autoindex/src/esclient.rs,
xerj-server/src/{brain,main}.rs: wiring
Next: rebase onto origin/main, build, run unit + live tests, review.
…lve aliases at create - xerj-server did not build: share.rs named reqwest::Method but the crate has no reqwest dependency. Es::request_json now takes the verb as text. - xerj-console-api/src/spa.rs: /_xerj-console/share and /share/ answer with share/index.html (the old fallback tried share.html -> 404, and the trailing slash was a 400). Everything under share/ is served no-store with a strict CSP (default-src 'none', self-only script/style/img/connect, form-action 'none', frame-ancestors 'none'), Referrer-Policy no-referrer, nosniff, X-Frame-Options DENY. Unit tests scan the bundled page for inline code, third-party origins and markup sinks. - xerj-api/src/share.rs: an alias named in POST /_share is resolved to its backing indices at create time. authz authorizes an alias by its backing indices, so a grant on the alias name minted a key that could read nothing. - tests/live/share_security_live.py rewritten: exit status, every reach item. Build in progress; nothing here is verified yet.
…thz + tests
Found by the first live run of the extended security test (all fixed here):
- The guest page was 404 on a warm target dir: xerj-console-api/build.rs only
emitted rerun-if-changed per EXISTING file, so a new directory under xerj-ux
never re-ran the bundler. It now also names the tree root.
- A PIT decides the searched index in place of the path. The engine funnel
already refused a guest riding the owner's PIT (404), but echoed the other
index's name. authz::guest_body_denied refuses 'pit' in a guest's _search
and _msearch bodies outright (403).
- graph_api authorized a comma-joined nodes_index ('ax-a,ax-b' — what xerj
brain writes for a multi-dataset folder) as ONE literal name, so every
scoped key got 403 on overview/hydration. Each name is now authorized on its
own; overview counts notes across the names that exist (it reported 0).
- Guest page: multi_match always carries fields (the engine 400s without),
simple_query_string when no mapping; named highlight fields (a '*' field
pattern returns no highlight); snippet window around the first term when no
highlight comes back (hybrid); honest count wording for hybrid; PUA
delimiters written as escapes.
New: .github/scripts/share-links-smoke.sh (boots throwaway nodes; live security
test, CLI, headless Chrome guest flow, trusted-proxy run, open-node refusal),
xerj-ux/test/share-guest-flow.e2e.mjs (dependency-free, CDP over pipe).
Last full smoke before these fixes: live 192/193, browser 29/30.
…er checks share-links-smoke.sh: boot() now fails when something already answers on the port. A leftover node of mine answered 401 and was adopted as 'up', so the live test ran against a node with a different data dir. Guest page: highlight asks for named fields (a '*' pattern returns no highlight on this engine); body fragments are preferred over title fragments. e2e: the Referer check reads Network.requestWillBeSentExtraInfo (the headers actually sent) — requestWillBeSent lists an empty Referer key for every request. Full smoke, this commit, release binary: A live 193/193, B CLI 7/7, C browser 30/30, D trusted-proxy 192/192, E refusal 2/2.
…, docs/SHARING.md - xerj brain's share hint and xerj share's revoke lines now repeat --url and --data-dir when they are not the defaults (never --api-key). Without --data-dir the pasted command looked for the admin key in ~/.xerj/brain. - Guest page: a hybrid hit containing none of the query's words is labelled as ranked by vector similarity; ax_path shown in hit metadata. - share-links-smoke.sh: phase B covers --tunnel without cloudflared (install steps + local link, exit 0); new phase F runs xerj brain <folder> then xerj share <folder>, claims, searches, walks the brain, and checks the catalog/_cat/_share stay shut. Wired into ci.yml's usecase-smoke job. - docs/SHARING.md: command, guest reach table, threat model, the limiter and trusted_proxies, quick-tunnel caveats (Cloudflare terminates TLS), why guests use link+passcode rather than passkeys, the HTTP API, how to verify. Verified by hand on 2026-09-18 against a real cloudflared quick tunnel (curl -4): guest page 200 with the full header set, wrong passcode 401, claim 200, guest search 200, guest _cat 403; after SIGINT cloudflared was gone, the share was 'revoked', keys_invalidated=1 and the guest key answered 401.
…angelog WIP: content/answers/* cite docs/usecases/share-links/VERIFICATION.md, which is written after the final verification run; the generated site is not rebuilt yet. - docs/SECURITY_MODEL.md: 'Share-link guests' + 'The share-claim limiter' and four new known limits (whole-index grant, tunnel third party, no guest passkeys, claim route added to the rate-limited set). - docs/SECOND_BRAIN.md: 'Sharing a brain', the guest row in the principals table, and the multi-dataset nodes_index fix. - scripts/seo: 'share' is a real xerj subcommand now (article command gate + the FC-CLI-SUBCOMMAND rule text). - landing/llms.txt, llms-full.txt, README docs list, CHANGELOG Unreleased.
Salvaged from an interrupted run. Everything here is either `cargo fmt` output over the share crates, or the one addition below. The guest allow-list in `authz_middleware` runs on both HTTP listeners, but the live test only ever exercised the ES-compatible port. It now takes `XERJ_NATIVE_URL` and, when set, asserts that a guest key is refused on `/v1/indices`, `/v1/indices/<shared>` (list/search/write), `/v1/metrics`, `/_cat/indices` and a foreign index search on the native port. The smoke script passes `rest_port = es_port + 1`. docs/SHARING.md gains the honest paragraph about the gRPC listener: same per-index grants, not on the allow-list, not live-tested with a guest key, loopback-only by default and not behind `--tunnel`. Files: engine/crates/xerj-api/tests/live/share_security_live.py, .github/scripts/share-links-smoke.sh, docs/SHARING.md.
Making write_secret_file_atomic pub (for xerj-api::share) shortened the signature enough that rustfmt collapses it onto one line; cargo fmt --check on xerj-engine was red on this hunk alone.
…session
Full smoke, release binary, 2026-09-18: A live 201/202, B CLI 7/8, C browser
30/31, D 192/192, E 2/2, F 3/3. Each failure had a distinct cause:
- A: the owner check I added for the native listener asked `GET /v1/indices`,
which is POST-only (create) — 405. The native listing is
`GET /v1/indices/{name}`; the eight guest refusals on that port were right.
- B: `share --list | grep -q "$HANDLE"` under `set -o pipefail`. grep -q
exits on its first match, the CLI's next write gets SIGPIPE (exit 141,
nothing on stderr — forced deterministically with `| true`), and the
pipeline fails with the handle right there in the output. 0/40 under light
load, 1/1 in the loaded smoke run. Capture, then grep; same for --revoke.
- C: the e2e waited for "two result rows" after searching `landlord`, but the
previous query (`deposit`) had also produced exactly two rows, which stay on
screen until the response lands — the check ran against the stale list
(its snippet was windowed around "deposit"). The page now stamps
`#results` with `data-query` after rendering, and the test's `search()`
waits for that stamp. The similarity-label logic itself was correct.
Also: STE050 rewording in what-a-share-link-guest-can-reach.md ("records"
is a banned synonym for "document" in this corpus).
- docs/usecases/share-links/VERIFICATION.md: what was run on which build with which result (two full smoke runs, the by-hand quick tunnel, the ES-YAML gate); the three content/answers articles cite it as evidence. - e2e: a predicate that throws while the page is still navigating is "not yet", not fatal; visible() is null-safe. Found by smoke run 3 under a load average of 54: the first wait ran before the guest page had loaded. - Live-test count in the article and llms-full.txt is the measured 202 (192 without the native-listener section). - Generated site: build_articles --write, gen_sitemap --write, fix_heads, fix_links; every --check, seo_lint, factcheck (0 ERROR) and audit pass. - Two STE fixes in the articles (a 47-word sentence; "record" as a verb). Smoke run on the final binary: A 202/202, B 8/8, C 31/31, D 192/192, E 2/2, F 3/3. ES-YAML on the final binary: 1371 passed, 0 failed, 3 skipped.
…er procedural sentence)
CI's `Format + Clippy` job (clippy 0.1.97, `-D warnings`) rejected `self.charges.fetch_add(1, Relaxed) % PRUNE_EVERY == 0` in `ClaimLimiter::charge` with `manual_is_multiple_of`. Same arithmetic, spelled `.is_multiple_of(PRUNE_EVERY)` (stable since Rust 1.87; the repo declares no lower MSRV). Behaviour unchanged: the window table is still pruned once every 64 charges. engine/crates/xerj-api/src/share.rs:379
Pre-existing on main, not introduced by this branch: the advisory (TLS 1.3 handshake messages accepted across encryption level boundaries, published 2026-09-14) post-dates main's last CI run (2026-09-14 01:55Z, green), so `cargo audit` is red on every PR opened since, including #947. main and this branch both locked 0.23.38. Scoped update only: `cargo update -p rustls` moves rustls to 0.23.45 (the advisory's stated fix) and its rustls-webpki to 0.103.15; nothing else in Cargo.lock changes. If another PR lands the same bump first, this commit rebases away to nothing.
…efused management calls Review remediation for PR #947, server side. Every finding below was reproduced on the pre-fix release binary (head 2d3dac4) on a throwaway auth-on node before anything was changed. BLOCKER — the share id reached the access log. The guest page keeps the id in the URL fragment so that no server sees it, and then posted it as part of a request PATH: POST /_share/{id}/claim. With `[logging] access_log = true` the node wrote the id to server.log twice per claim (on_request + on_response); any reverse proxy or tunnel in front logs the same request line. Reproduced: `grep -c <share_id> server.log` -> 2. docs/SHARING.md said "it is in no access log, no proxy log". Root cause: the route shape. Fix: the claim is POST /_share/claim with {id, passcode} in the BODY (router.rs, share.rs `claim_id`). The old shape is deliberately not auth-exempt any more (auth.rs `is_share_claim_path` matches the one exact path), so it is a plain 401 rather than a second, id-leaking way in. The route also gets its own 4 KiB body cap (`MAX_CLAIM_BODY_BYTES`, DefaultBodyLimit on that route only) — the module docs said "a fixed-size body" while an unauthenticated caller was given the node-wide bulk limit. MAJOR — a guest's escalation attempts left no audit line. Guest key: POST /_share, GET /_share, DELETE /_share/{handle}, POST /_security/api_key -> four 403s, audit.jsonl 7 lines before and 7 after. Root cause: audit_mw skipped `_share` and `_security/api_key` outright because "the handler audits them" — and those requests are refused in authz_middleware, so no handler ran. Fix: authz marks the responses it produced itself (`RefusedBeforeHandler`), and audit_mw records a self-aud 8000 iting route exactly when that marker is present — so the refusals the handler could not see are recorded and the ones it could see are not doubled (an ordinary scoped key's GET /_share still yields exactly one `share.list denied`). The audit resource is `_share` or the 12-hex public handle, never another path segment: DELETE also accepts the full share id, and the audit log must not be where an id is written down. MAJOR — `xerj share autoindex-catalog` worked while three public docs said the catalog "is never granted". A guest read every corpus's catalog row. `validate_share_index` now refuses it by name, in a list and as an alias target, with a sentence that says what to share instead. MAJOR — `GET _source/{id}` was documented as a guest route. The router has no such route (404 for the admin key). It is off `GUEST_DOC_OPS`: an allow-list entry for a route that does not exist is a permission nobody tested. MINOR — "every /_share response is no-store" was false for the 401/403 the middleware produces. A layer outside authentication now covers the subtree, and every response to a guest key (results, documents, refusals) is no-store. Tests. engine/crates/xerj-api/tests/share_links_review_findings.rs — five tests, run against the pre-fix sources first: 0 passed, 5 failed (200 on the id-in-path claim; 0 audit entries; no Cache-Control on the 401; catalog share 200; _source 404-not-403). After: 5 passed. Unit tests added in share.rs, audit_mw.rs, authz.rs. share_security_live.py claims through the body, probes the retired shape, adds the missing positive rows of the "a guest can" table (GET /, _security/_authenticate, the health probes, HEAD _doc, _field_caps), the audit and no-store checks, and — given XERJ_SERVER_LOG — looks for every share id it created in the node's own log. `cargo test --release -p xerj-api --test share_links_review_findings --test audit_records_writes_and_who --test brain_is_a_security_boundary` -> 5 + 6 + 5 passed, 0 failed `cargo test --release -p xerj-api --lib -- share:: audit_mw:: authz:: auth::` -> 61 passed, 0 failed Reference-coding mandate: skipped — the change is confined to this repository's own share-link code (no peer-project subsystem is ported).
…e noticed, Cloudflare is named Review remediation for PR #947, the guest page (xerj-ux/share/). Each item was reproduced first: the extended browser test was run against the pre-fix binary's bundled page and failed on exactly these points. BLOCKER (page half) — on a tunnel the page told the guest "Nothing is uploaded to a third party — your browser talks to their machine", served through Cloudflare, which ends TLS and reads the passcode, the key and every document. The static text is now true in every mode ("over the connection the owner set up"), and on a *.trycloudflare.com hostname the page shows, before the passcode is typed and again in the room, that Cloudflare carries the connection and can read it. The CLI half is the next commit. BLOCKER (page half) — the claim POST carried the share id in its path. It is `POST /_share/claim` with `{id, passcode}` now; the id is in no URL the page requests. MAJOR — re-opening the same link in the same tab dropped a valid session (`boot()` called dropSession() whenever a fragment was present). On the default max-claims=1 share the second claim is 410 "used up": a guest who clicked the emailed link twice was locked out of a share with days left. Pre-fix e2e: `{"room":false,"claim":true,"stored":false}`. Fix: the page remembers the share's PUBLIC handle — sha256(id)[..12], what `xerj share --list` prints, not reversible into the link — in sessionStorage['xerj.share.link'], beside the five-key `xerj.share` record the console's guest mode reads (that contract is unchanged). A link whose handle matches keeps the session and spends no claim. A link to a different share asks for its passcode, and what the tab holds is replaced only when that claim succeeds. SHA-256 is a 45-line synchronous implementation rather than crypto.subtle, which does not exist on a plain-http LAN page; it was checked against node:crypto on 2009 vectors and the e2e asserts the stored handle equals the node's. MAJOR — a link pasted over another one changes only the fragment, which no browser reloads for; boot() ran once, so the stale view ("no longer active — ask for a new one") stayed. There is a `hashchange` listener now and the routing decision is one function, `route()`, run at load and on every fragment change. Pre-fix e2e: still "This link is no longer active" after the new link. MINOR — a query no document contains listed ten similarity-ranked notes under "10 documents ranked". When no listed hit contains a query word the status line says "No document contains …" first. Tests. xerj-ux/test/share-guest-flow.e2e.mjs grows phases 7–10: same link via a full load and via a fragment-only change (and `claims` stays 1 on the node), the no-match line, a different and a dead link pasted over the current one, and the page under a quick-tunnel hostname (Chrome's --host-resolver-rules maps one made-up *.trycloudflare.com name to the node; nothing leaves the machine). The request assertions now require the id in NO requested URL and in exactly the two claim bodies. spa.rs pins the claim route, the absence of a path built from a variable, the hashchange listener and the page wording. Pre-fix binary: 18 FAIL lines. Results on the rebuilt binary are recorded in docs/usecases/share-links/VERIFICATION.md (later commit). Note for anyone running this by hand: not on port 10080 — it is on the WHATWG bad-port list, so both node's fetch and Chrome refuse it. Reference-coding mandate: skipped — this repository's own page; SHA-256 is FIPS 180-4, verified against node:crypto rather than re-derived from a peer.
…, quoting, tunnel last words Review remediation for PR #947, `xerj share` / `xerj brain`. All reproduced on the pre-fix binary first (a stub `cloudflared` stood in for the tunnel). BLOCKER (CLI half) — `xerj share --tunnel` printed "your documents stay on this machine; the guest's browser reads from this node" and the word Cloudflare appeared nowhere in its output or under `--tunnel` in --help, while every byte — passcode and guest key included — crossed Cloudflare's TLS termination. The disclosure existed only in the docs. `render_created` now takes a `Reach` (loopback / direct / public-url / cloudflare-tunnel) and in tunnel mode prints, with the link, that Cloudflare ends TLS and can read the passcode, the guest's key, the searches and every document opened, that nothing is stored there, and that --public-url with your own certificate is the alternative. --help says the same under --tunnel; `--json` gains `via` and `transit_notice`. MAJOR — with a FOLDER argument a wrong or non-admin key was reported as "<folder> has not been indexed … run `xerj brain` first". `Es::get_doc` reads any body without `found: true` as "no document", 401 included. The brain-meta lookup now goes through `brain_meta(status, body)`: only a 404 (or a 200 that says found:false) means "not indexed"; anything else is routed through `explain()`, the same sentences an index argument already got. MINORS - "only this machine can reach" was printed for any --url: `local_only` looked at the flags, not at the URL. `reach_of` checks the host for loopback; a LAN or public http:// address gets a plain-http warning instead. - `--public-url http://…` printed a cleartext link silently; it warns now. - `--url localhost:9613` was reported as "no xerj node answers": a missing scheme is a usage error (exit 2) that says what to type. - `xerj brain "case files"` printed a share command that failed when pasted (`unknown argument: files`). `sh_quote` makes every argument of the printed share and revoke commands one shell word. The hint's parenthesis now says "the documents stay on this machine" — true in every mode — instead of "nothing is uploaded". - when `cloudflared` died on its own the owner saw "cloudflared stopped" and nothing else. The last 20 lines it wrote are kept and printed then, and when it exits before giving an address. - "can be opened 1 time" now says what that means: one browser tab, and --max-claims for a guest who will come back. - gRPC (reviewer: safe by reading, exercised by nothing): an in-process test drives the real interceptor and RPC handlers with a claimed guest key — reads the shared index; PermissionDenied on every other index, on patterns, on system indices, on every write; Unauthenticated after a revoke. No socket. Smoke script: phase A's node runs with `logging.access_log = true`, so "no share id in the server log" is checked against a node that logs (it passed before only because the access log is off by default); phase B adds folder+wrong-key, --url without a scheme, the catalog refusal, the --public-url http:// warning, and --tunnel against a stub cloudflared that registers and then dies. `cargo test --release -p xerj-server -p xerj-console-api -- share spa brain::tests` -> xerj 33 passed · xerj-console-api 8 + 2 passed · 0 failed Reference-coding mandate: skipped — this repository's own CLI.
…, two unbacked sentences CI on df11e5f (run 35422191143) failed "Format + Clippy" and "Use-case harnesses". Every failure below was read off that run's log and then reproduced or re-run locally. Format + Clippy (rustc/clippy 1.97.1, -D warnings) - xerj-server/src/grpc.rs:1148 — result_large_err on the test closure that returns the interceptor's tonic::Status. Allowed on that one test fn, with the same rationale as the existing allow on `authorize` (Status is tonic's type; boxing it in a test helps nothing). - xerj-api/src/share.rs:1510 — assertions_on_constants. Now `const { assert! (...) }`, so the "passcode fits in the claim body cap" check fails at compile time instead of in a test. Use-case harnesses (share-links-smoke.sh), 4 failures 1. Phase A, "no share id … in the node's log": the live test itself revoked the alias share with `DELETE /_share/{asid}` — the full id in a request path, on the node that phase A now runs with `logging.access_log = true`. The server was right; the test wrote the id down. It revokes by the handle now, as the CLI does. The smoke's by-shape grep ("a share id was written to the server log") failed for the same line. 2. Phase A/D, `POST /_share/{id}/claim` expected 401 and got 404: on the full server an unrouted path is answered by the merged router's fallback, which runs before authentication (probe on :12000 with this branch's binary: no-auth old-shape claim 404, admin `GET /casefile/_source/1` 404, no-auth `/a/b/c/d/e` 404, all `content-length: 0`). The in-process test in share_links_review_findings.rs sees 401 because it drives the ES router alone. What the check is for — no handler, no key — holds either way, so it accepts 401 or 404 and still requires no api_key. 3. Same cause for the guest's `GET /casefile/_source/1` (expected 403, got 404). It now requires 403/404 and no `_source` in the body; the allow-list itself stays pinned by the authz unit tests. 4. Phase C, "an unknown link ends in not recognised" saw "Too many tries": the browser test ran on phase A's node, whose junk-id bucket for 127.0.0.1 phase A drains on purpose. Phase C now boots its own node (also with the access log on) and greps that node's log for a 32-hex share path after the browser flow. `xerj share --revoke` takes exactly the 12-hex handle. A 32-hex share id is refused with a message that does not echo it: the server would accept it, but the id would then be in the DELETE's request path, and the docs say the CLI never puts a share id in a URL. Unit test extended (list_revoke_and_create_are_mutually_exclusive). Two sentences nobody can back, removed rather than defended: - "Nothing is stored there" / "It does not store them" about Cloudflare, in the CLI's tunnel notice, --help and both tunnel notices on the guest page. What Cloudflare retains is not something this project can verify; what it can read is, and that part stays. - `--public-url` printed "the guest's browser reads from this node". Behind a reverse proxy or a CDN it reads from whatever serves that address; the banner now says the browser reaches the node through that address and that whoever ends TLS for it can read the traffic. Unit test a_tunnel_link_says_cloudflare_can_read_the_traffic covers both. Verified (this commit, local, literal): cargo fmt --check -p xerj-api -p xerj-server -p xerj-console-api -> clean cargo clippy -j 6 -p xerj-api -p xerj-server -p xerj-console-api \ --all-targets -- -D warnings -> exit 0 cargo build --release -j 6 -p xerj-server -> 8m 32s XERJ_SHARE_PORT=12003 XERJ_SHARE_REQUIRE_BROWSER=1 \ bash .github/scripts/share-links-smoke.sh -> all phases passed A live 237/0 · no share id in the server log (access log on) B CLI 14/14 · C browser 48/0 + no share id in its node's log D live (trusted loopback proxy) 225/0 · E 2/2 · F 3/3 Reference-coding mandate: skipped — test expectations, CLI argument validation and wording in this repository's own share-link code; no peer-project subsystem is involved.
…y what is true Review remediation for PR #947, the docs half. The two blockers of the docs-and-honesty lens were false public claims, and a false claim that merges is a false claim on xerj.org (merging deploys landing/). This commit carries the corrected text everywhere it appeared: docs/SHARING.md, docs/SECURITY_MODEL.md, docs/SECOND_BRAIN.md, the three content/answers articles (site regenerated with scripts/seo/build_articles.py --write), landing/llms.txt and llms-full.txt (this PR's own share lines, corrected, not new ones), CHANGELOG and the verification record. It starts from the previous remediator's uncommitted draft (salvaged 2026-09-19), which was reviewed line by line: kept where correct, tightened where it still overclaimed. Blocker 1 — "no third party" under --tunnel. All traffic crosses Cloudflare's TLS termination. Every place now says Cloudflare can read the passcode, the guest key, the searches and every document opened, and that the command and the page say so. The draft's "Nothing is stored there" / "not uploaded or stored there" is cut to "not uploaded there": what Cloudflare retains is not something this project can check. "Nothing is uploaded" became "the folder is not uploaded" where it stood unqualified (CHANGELOG, llms lines). Blocker 2 — "the share id is in no access log / never written to disk". After 7bfa24e the id travels in the claim body. The text now says exactly that: not in any URL the CLI or the page requests, not in the node's log with logging.access_log = true (the smoke checks it), not in shares.json, api_keys.json or the audit log; a proxy that logs request BODIES would still record it; the raw API's DELETE also accepts the full id, which then sits in that request's path, and `xerj share --revoke` sends only the handle. "reaches no access log" became "not in the request line an access log records". Majors, docs side: `GET _source/{id}` is gone from all four places (no such route); the catalog refusal is described as enforced; the audit paragraphs list every unaudited successful read (_msearch, _mget, _count, _mapping, _field_caps, GET _doc) and say refused requests from authenticated keys are recorded, including a guest's management and key-minting attempts. VERIFICATION.md: the literal UNIT_PLACEHOLDER is replaced by the fmt, clippy and test results of this session; the dangling 9c5bfaf is 8f5d1a5; a Run 3 section records the post-review smoke and ES-YAML runs; the 2026-09-18 tunnel run is labelled as predating the fixes. The article evidence line and llms-full move from 202 to the 237 live checks run today (225 without the native-listener section). Also: gRPC is now described as tested in process with a guest key (not over a socket; bulk_index not called); --public-url http:// and LAN URLs are described as they behave; "one open is one browser tab" is in the article, SHARING.md and llms-full; "Verifying it yourself" pastes cleanly. Numbers in this commit, all from this session on the release binary of f152538: share-links smoke (XERJ_SHARE_PORT=12003, REQUIRE_BROWSER=1): all phases passed — A 237/0 · B 14/14 · C 48/0 · D 225/0 · E 2/2 · F 3/3 es-yaml-runner --url http://localhost:12000: 1371 passed · 0 failed · 3 skipped · 1374 total cargo test --profile ci-test -p xerj-api -p xerj-server -p xerj-console-api: 86 binaries, 778 passed, 0 failed, 3 ignored Site gates as seo.yml runs them: build_articles/gen_sitemap/fix_heads/ fix_links/mk_og_card --check, seo_lint, factcheck --self-test / --fixture-check / --fail-on error (0 ERROR, 67 WARN, none in the share articles), audit.py 0 critical; landing-constants-guard all passed. Reference-coding mandate: skipped — documentation of this repository's own feature; nothing is ported.
…the folder is not uploaded' in the how-to summary The Technical SEO gate failed on e587d63: build_articles.py --check found 7 generated files different from the committed ones. Cause: the generator stamps each article's "updated" / dateModified from the content file's last commit date, and the pages were generated while the three content files were still uncommitted, so they carried the previous commit's date (2026-09-18). Regenerated after the commit: 2026-09-19. Same pass: the how-to article's summary said "Nothing is uploaded." With --tunnel the documents a guest ope 8000 ns do cross Cloudflare, so the sentence now says what is exact and matches the CHANGELOG and llms lines: "The folder is not uploaded." python3 scripts/seo/build_articles.py --write -> 7 + 3 changed files python3 scripts/seo/build_articles.py --check -> run after this commit
# Conflicts: # landing/answers/agent-memory-without-postgres-qdrant.html # landing/answers/audit-php-codebase-with-an-index.html # landing/answers/autoindex-exit-codes.html # landing/answers/catalog-files-with-autoindex-map.html # landing/answers/cheap-low-volume-log-search.html # landing/answers/check-codebase-index-is-complete.html # landing/answers/code-search-mcp-for-claude-code.html # landing/answers/coding-agent-memory-across-sessions.html # landing/answers/do-search-embeddings-help.html # landing/answers/estimate-autoindex-time-before-running.html # landing/answers/evidence-for-agent-memory-links.html # landing/answers/filter-knn-exact-scan-caveat.html # landing/answers/full-text-search-browser-history.html # landing/answers/full-text-search-sqlite-database.html # landing/answers/give-chatgpt-claude-local-file-access.html # landing/answers/how-xerj-autoindexes-a-folder.html # landing/answers/how-xerj-combines-search.html # landing/answers/improve-basic-faiss-rag-pipeline.html # landing/answers/index-csv-with-many-columns.html # landing/answers/index-markdown-into-elasticsearch-api.html # landing/answers/index-monorepo-for-agent.html # landing/answers/index-multiple-csv-files.html # landing/answers/index-reference-library-for-coding-agent.html # landing/answers/index.html # landing/answers/is-pdf-indexing-efficient.html # landing/answers/knowledge-graphs-for-agent-memory.html # landing/answers/local-embeddings-without-openai-api.html # landing/answers/mcp-api-search-or-vector-search.html # landing/answers/notion-export-duplicate-search-results.html # landing/answers/private-agent-memory-namespaces.html # landing/answers/rag-without-vector-database.html # landing/answers/read-autoindex-progress.html # landing/answers/reciprocal-rank-fusion-when-to-use.html # landing/answers/reduce-embedding-api-cost.html # landing/answers/reindex-taking-forever.html # landing/answers/resume-interrupted-autoindex-run.html # landing/answers/search-all-pdfs-in-a-folder.html # landing/answers/search-bvh-motion-capture-files.html # landing/answers/search-confluence-html-export.html # landing/answers/search-engine-without-docker.html # landing/answers/search-file-contents-in-a-folder.html # landing/answers/search-gzip-logs-without-zgrep.html # landing/answers/search-gzipped-csv-or-json.html # landing/answers/search-html-export.html # landing/answers/search-json-and-jsonl-logs.html # landing/answers/search-jupyter-notebook-cells.html # landing/answers/search-kubernetes-pod-logs-on-disk.html # landing/answers/search-obsidian-pdf-docx-attachments.html # landing/answers/search-openapi-spec-for-agent.html # landing/answers/search-slack-json-export.html # landing/answers/search-sql-dump-file.html # landing/answers/search-unity-project-assets.html # landing/answers/search-word-documents-in-a-folder.html # landing/answers/search-yaml-xml-config-repository.html # landing/answers/search-zendesk-ticket-json-export.html # landing/answers/set-mcp-memory-storage-path.html # landing/answers/store-agent-memory-without-llm-call.html # landing/answers/syntax-aware-code-search-refactoring.html # landing/answers/vector-database-vs-full-text-search.html # landing/answers/what-is-xerj.html # landing/answers/why-autoindex-skipped-files.html # landing/compare/index.html # landing/compare/xerj-vs-ast-grep.html # landing/compare/xerj-vs-docfetcher.html # landing/compare/xerj-vs-elasticsearch-local.html # landing/compare/xerj-vs-houdahspot.html # landing/compare/xerj-vs-khoj.html # landing/compare/xerj-vs-localsynapse.html # landing/compare/xerj-vs-meilisearch.html # landing/compare/xerj-vs-obsidian-omnisearch.html # landing/compare/xerj-vs-pagefind.html # landing/compare/xerj-vs-recoll.html # landing/compare/xerj-vs-ripgrep-all.html # landing/compare/xerj-vs-ripgrep-for-code-agents.html # landing/compare/xerj-vs-spotlight.html # landing/compare/xerj-vs-typesense.html # landing/compare/xerj-vs-vector-database.html # landing/compare/xerj-vs-web-agent-search.html # landing/sitemap.xml
… store `f152538f` removed the retention claim from the Cloudflare transit notice as unverifiable, but the line one above it still said "nothing is uploaded or stored anywhere else" — in `xerj share --help` and in the banner printed under a tunnelled link. Under `--tunnel` the traffic passes through Cloudflare, and what Cloudflare keeps of what it carries is not ours to promise. Both now say what is actually true and ours to know: "the documents stay on this machine — XERJ copies them nowhere", with the transit notice right after it. The banner test forbids "or stored" / "stored anywhere" / "stored elsewhere" alongside the existing "stored there" guard; restoring the old sentence fails it. Found by the verification pass; xerj-server share tests 22 passed, fmt clean.
# Conflicts: # CHANGELOG.md # engine/Cargo.lock # engine/crates/xerj-api/src/state.rs # engine/crates/xerj-autoindex/src/esclient.rs # landing/answers/agent-memory-without-postgres-qdrant.html # landing/answers/audit-php-codebase-with-an-index.html # landing/answers/autoindex-exit-codes.html # landing/answers/catalog-files-with-autoindex-map.html # landing/answers/cheap-low-volume-log-search.html # landing/answers/check-codebase-index-is-complete.html # landing/answers/code-search-mcp-for-claude-code.html # landing/answers/coding-agent-memory-across-sessions.html # landing/answers/do-search-embeddings-help.html # landing/answers/does-xerj-support-s3-alerting-plugins.html # landing/answers/estimate-autoindex-time-before-running.html # landing/answers/evidence-for-agent-memory-links.html # landing/answers/filter-knn-exact-scan-caveat.html # landing/answers/full-text-search-browser-history.html # landing/answers/full-text-search-sqlite-database.html # landing/answers/give-chatgpt-claude-local-file-access.html # landing/answers/how-xerj-autoindexes-a-folder.html # landing/answers/how-xerj-combines-search.html # landing/answers/improve-basic-faiss-rag-pipeline.html # landing/answers/index-csv-with-many-columns.html # landing/answers/index-markdown-into-elasticsearch-api.html # landing/answers/index-monorepo-for-agent.html # landing/answers/index-multiple-csv-files.html # landing/answers/index-reference-library-for-coding-agent.html # landing/answers/index.html # landing/answers/index.json # landing/answers/is-pdf-indexing-efficient.html # landing/answers/knowledge-graphs-for-agent-memory.html # landing/answers/local-embeddings-without-openai-api.html # landing/answers/mcp-api-search-or-vector-search.html # landing/answers/notion-export-duplicate-search-results.html # landing/answers/private-agent-memory-namespaces.html # landing/answers/rag-without-vector-database.html # landing/answers/read-autoindex-progress.html # landing/answers/reciprocal-rank-fusion-when-to-use.html # landing/answers/reduce-embedding-api-cost.html # landing/answers/reindex-taking-forever.html # landing/answers/resume-interrupted-autoindex-run.html # landing/answers/search-all-pdfs-in-a-folder.html # landing/answers/search-bvh-motion-capture-files.html # landing/answers/search-confluence-html-export.html # landing/answers/search-engine-without-docker.html # landing/answers/search-file-contents-in-a-folder.html # landing/answers/search-gzip-logs-without-zgrep.html # landing/answers/search-gzipped-csv-or-json.html # landing/answers/search-html-export.html # landing/answers/search-json-and-jsonl-logs.html # landing/answers/search-jupyter-notebook-cells.html # landing/answers/search-kubernetes-pod-logs-on-disk.html # landing/answers/search-obsidian-pdf-docx-attachments.html # landing/answers/search-openapi-spec-for-agent.html # landing/answers/search-slack-json-export.html # landing/answers/search-sql-dump-file.html # landing/answers/search-unity-project-assets.html # landing/answers/search-word-documents-in-a-folder.html # landing/answers/search-yaml-xml-config-repository.html # landing/answers/search-zendesk-ticket-json-export.html # landing/answers/set-mcp-memory-storage-path.html # landing/answers/store-agent-memory-without-llm-call.html # landing/answers/syntax-aware-code-search-refactoring.html # landing/answers/vector-database-vs-full-text-search.html # landing/answers/what-is-xerj.html # landing/answers/why-autoindex-skipped-files.html # landing/compare/index.html # landing/compare/xerj-vs-ast-grep.html # landing/compare/x 10B60 erj-vs-docfetcher.html # landing/compare/xerj-vs-elasticsearch-local.html # landing/compare/xerj-vs-houdahspot.html # landing/compare/xerj-vs-khoj.html # landing/compare/xerj-vs-localsynapse.html # landing/compare/xerj-vs-meilisearch.html # landing/compare/xerj-vs-obsidian-omnisearch.html # landing/compare/xerj-vs-pagefind.html # landing/compare/xerj-vs-recoll.html # landing/compare/xerj-vs-ripgrep-all.html # landing/compare/xerj-vs-ripgrep-for-code-agents.html # landing/compare/xerj-vs-spotlight.html # landing/compare/xerj-vs-typesense.html # landing/compare/xerj-vs-vector-database.html # landing/compare/xerj-vs-web-agent-search.html # landing/sitemap.xml
Amakurai
pushed a commit
to Amakurai/xerj
that referenced
this pull request
Sep 27, 2026
…/share/mbox ARE on main, xerj-org#948 is closed, residual retention re-anchored to xerj-org#1032 The hand-written status lines in landing/llms.txt drifted from the tree because nothing checks them against releases (the generated article tree is checked; these lines are not). Four defects, all filed by xerj-org#1028 and re-verified against main 2c31f96 before this commit: 1. "Not implemented" bullet listed rerank, share links and mbox/Takeout ingest as "in flight on branches, not on main". All three are on main and shipped since rc.75: rerank_stage.rs + docs/RERANK.md (xerj-org#946), `xerj share` + docs/SHARING.md (xerj-org#947), extract/mbox.rs (xerj-org#949) — and all three are already documented as usable elsewhere in the same file (rerank caveat L45, share L79/L203, mbox L3/L26/L38). Sentence removed from llms.txt L50 and llms-full.txt L289. 2. The mail-export limit quoted the PRE-xerj-org#1002 numbers (66.9 GiB, did not finish under the 16 GiB cap) and linked xerj-org#948 as if open. xerj-org#948 was closed by xerj-org#1002 on 2026-09-21 (rc.76). Now states the measured post-fix truth, figures taken verbatim from the xerj-org#1002 PR body: completes in 407.7 s under the cap, peak 21,405.3 MiB (1.3x cap), verify p95 5.54 s while the breaker is engaged, 300 MB mailbox fits an 8 GiB cap (7,963.6 MiB). llms.txt L38, llms-full.txt L482. 3. Ingest-scale caveat called the RSS-runaway "an open, tracked defect". The runaway IS fixed (xerj-org#1002: at-rest retention ~677 -> ~108 MB on the 100k-doc variant), but xerj-org#1002's root cause 1 (memtable_shards) is a different structure from the 2026-07-09 scale ticket's remaining suspects — stored_value_cache / dv_cache / id_pos_cache are still "Left unbounded for now" as of index.rs:8569. Filed xerj-org#1032 so the caveat links a live tracked issue again instead of a closed one. The 20.2 GB sizing data point is now dated "before xerj-org#1002". 4. "First run" had two items numbered 4 (study M6, live since the research). Field-report step renumbered to 5. Scope deliberately narrow: obligation-language rework and the full llms.txt rewrite stay with the planned rewrite PR (research rules: one PR per llms.txt edit, docs/research/llms-txt-2026-09/README.md rule 10); xerj-org#1028's release-gate-check proposal is a separate change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
xerj share <index|folder>gives one person read-only search over one indexed folder: a link, a passcode, an expiry. The guest opens the link in a browser, types the passcode, and gets a reading room (search box, highlighted snippets, a document view) served by the owner's node. The folder is not uploaded; the guest installs nothing; it is search and reading only — no text is generated. With--tunnelthe traffic passes through Cloudflare, which can read it; the command and the guest page both say so.Full description, threat model and guest-reach table:
docs/SHARING.md. Verification record with every number:docs/usecases/share-links/VERIFICATION.md.What landed
xerj-api/src/share.rs,authz.rs,auth.rs,audit_mw.rs,router.rs,graph_api.rs):POST/GET /_share,DELETE /_share/{handle}(admin key only); unauthenticated, rate-limited, auditedPOST /_share/claimwith{id, passcode}in a body capped at 4 KiB — the share id is in no request path; SHA-256 share id, Argon2id passcode,shares.json0600; a guest-only route allow-list on top of the per-index grants; PIT refusal in guest bodies; aliases resolved at create time; system indices andautoindex-catalognever shareable; every/_shareresponse (including middleware 401/403) and every response to a guest key isno-store; a guest's refused management and key-minting calls are audited.xerj-server/src/share.rs):xerj share <index|folder> [--expires] [--max-claims] [--passcode] [--label] [--brain] [--tunnel [--keep]] [--public-url] [--url] [--data-dir] [--api-key] [--json],--list,--revoke <handle>. Refuses an open/--insecurenode before any tunnel is opened. The banner says who can read the traffic for the address the link really has (loopback / LAN or public http /--public-url/ Cloudflare tunnel).xerj brainprints a pasteable, shell-quoted share command for the folder it indexed.--tunnel: supervises the operator's owncloudflared, prints the full link with the Cloudflare notice, runs until Ctrl-C/SIGTERM/SIGHUP, then terminates the tunnel and revokes the share (--keepto leave it). Ifcloudflareddies on its own, its last 20 lines are printed and the share is revoked. Missingcloudflared→ install steps + the local link, exit 0.xerj-ux/share/, served byxerj-console-api/src/spa.rsat/_xerj-console/sharewithout a session): buildless, same-origin only; share id read fromlocation.hash, sent only in the claim body;sessionStorage['xerj.share']holds exactly{api_key, index, brain, expires_at, label}plus the share's public handle inxerj.share.link; the same link re-opened in the same tab keeps the session; a link pasted over another is noticed (hashchange); all document text viatextContent; a Cloudflare notice on atrycloudflare.comhostname before the passcode is typed.docs/SHARING.md(new),docs/SECURITY_MODEL.md,docs/SECOND_BRAIN.md, threecontent/answersarticles (site regenerated),landing/llms.txt+llms-full.txt(this PR's existing share lines, corrected — see below), one CHANGELOG bullet,docs/usecases/share-links/VERIFICATION.md..github/scripts/share-links-smoke.shin theusecase-smokejob (XERJ_SHARE_REQUIRE_BROWSER=1).Review remediation
Three adversarial review lenses ran on head
2d3dac44(security: approve with minor; correctness + UX: approve with minor; docs + honest claims: block). Fix commits:7bfa24ec(server),a47df92a(guest page),df11e5ff(CLI),f152538f(CI red atdf11e5ff+ two unbacked sentences),e587d63f+fc6ad7fd(docs, site, llms lines, verification record; the second regenerates the pages after the content commit, whose date the generator stamps). "Smoke" below =XERJ_SHARE_PORT=12003 XERJ_SHARE_REQUIRE_BROWSER=1 bash .github/scripts/share-links-smoke.shon the release binary off152538f, all phases passed (A 237/0, B 14/14, C 48/0, D 225/0, E 2/2, F 3/3).--tunnelthe guest page and the CLI said no third party was involved while all traffic went through Cloudflare (blocker)--tunnelin--help;--jsoncarriesvia+transit_notice. Page: static text no longer says "nothing is uploaded to a third party / your browser talks to their machine"; on*.trycloudflare.coma notice shows before the passcode and in the room.--public-urlbanner no longer says "reads from this node". Unverifiable "Cloudflare stores nothing" sentences deleted. Docs, articles, llms lines and CHANGELOG say the same.a_tunnel_link_says_cloudflare_can_read_the_traffic(xerj-server); spa.rs wording test; smoke B "--tunnel says the link goes through Cloudflare, and what Cloudflare can read" (stub cloudflared); e2e "on a quick-tunnel hostname the page says, before the passcode is typed, that Cloudflare can read the traffic" + "the page never claims that no third party is involved" (Chrome mapping atrycloudflare.comname to the local node)POST /_share/claimwith{id, passcode}in the body; the old shape is not auth-exempt;xerj share --revoketakes only the 12-hex handle. Docs now say: no id in any URL the CLI or the page requests; not in the node's log even withaccess_log = true; a proxy that logs request bodies would record it; the raw API'sDELETEalso accepts the full id, which then is in that request's path.logging.access_log = true: "no share id, passcode or guest key is anywhere in the node's log" + by-shape grep "no share id in the server log"; smoke C (fresh node, access log on) "no share id in the server log after the browser flow"; e2e "the share id is in NO url the browser requested" / "it travels in the BODY of the claim POST"; in-processthe_share_id_travels_in_the_claim_body_never_in_a_pathmax-claims=1the guest was locked out (major)claims == 1)brain_meta(status, body): only 404 /found:falsemeans not indexed; anything else goes through the key explanationautoindex-catalogis never granted, but it could be shared (major)validate_share_indexrefuses it by name, in a list and through an aliasthe_autoindex_catalog_cannot_be_shared_by_name_list_or_aliashashchangelistener; oneroute()for load and fragment changes/_shareand_security/api_keycalls left no audit line; unaudited successful reads understated (major)RefusedBeforeHandler) and audit_mw records self-auditing routes exactly then (no double entries). Docs list every unaudited successful read (_msearch,_mget,_count,_mapping,_field_caps,GET _doc).a_guests_refused_escalation_attempts_are_audited; audit_mw unit testsGET _source/{id}documented as a guest route but absent (major)source_by_id_is_not_a_route_and_not_a_guest_permissionUNIT_PLACEHOLDERand dangling SHAs; PR body stale (major)9c5bfaf0→8f5d1a5e; run 3 recorded; this body rewrittengrep -c UNIT_PLACEHOLDER docs/usecases/share-links/VERIFICATION.md→ 0; every SHA cited here is an ancestor of the heada_share_guest_key_reads_its_index_over_grpc_and_nothing_else(xerj-server grpc.rs). No socket-level test._security/_authenticateshows a guest as "Xerj Administrator" (minor)rolesis correct and nothing wider is grantedcloudflareds_last_lines_are_kept_for_when_it_dies; smoke B "when cloudflared dies on its own: its last lines are shown and the share is revoked"--urlwithout a scheme reported as "no node answers" (minor)a_url_without_a_scheme_is_a_usage_error_that_says_what_to_type; smoke Bmax-claims 1+ tab-scoped session undocumented (minor)docs/SHARING.md"One open is one browser tab"xerj brainends its output with" the share command (minor)/_sharenotno-store(minor)no-storetooshare_responses_and_guest_reads_are_never_cacheable(cd engine && cargo build …)xerj brainshare hint broke on a folder with a space (minor)sh_quoteon every argumentshare_hint_quotes_a_folder_with_a_space,pasted_follow_up_commands_survive_spaces_and_quotes--url;--public-url http://silent (minor)reach_oflooks at the URL host; plain-http warningthe_banner_is_about_the_address_the_link_really_has; smoke B "--public-url http:// warns that the passcode and key travel unencrypted"Verification (literal, this session)
All on Linux x86_64, private ports 12000–12005, throwaway data dirs, every node stopped by PID afterwards.
cargo fmt --check -p xerj-api -p xerj-server -p xerj-console-apicargo clippy -j 6 -p xerj-api -p xerj-server -p xerj-console-api --all-targets -- -D warnings(1.97.1)cargo test --profile ci-test -j 6 -p xerj-api -p xerj-server -p xerj-console-api -- --test-threads=4XERJ_SHARE_PORT=12003 XERJ_SHARE_REQUIRE_BROWSER=1 bash .github/scripts/share-links-smoke.sh(release binary off152538f)cargo run --release -p es-yaml-runner -- --url http://localhost:12000 --dir tests/es-compat-yaml/yaml(insecure throwaway node, same binary)build_articles.py --check,gen_sitemap.py --check,fix_heads.py --check,fix_links.py --check,mk_og_card.py --check,seo_lint.py,factcheck.py --self-test,--fixture-check,--fail-on error,audit.py --root landing --fail-on critical --max-findings 99bash .github/scripts/landing-constants-guard.shllms.txt lines (for the coordinator)
This PR already carried share lines in
landing/llms.txtandlanding/llms-full.txt; they are kept and corrected, because the originals named a claim route that no longer exists and said nothing about Cloudflare reading tunnel traffic:POST /_share/claimwith{id, passcode}(wasPOST /_share/{id}/claim).--tunnel— "Cloudflare terminates TLS and can read the passcode, the guest key and what the guest opens — the command says so"; "With the default local URL the link only works on this machine".Not done / known gaps
cloudflaredquick tunnel was run by hand once, on 2026-09-18, before the review fixes. It was not repeated. The Cloudflare notice (CLI) is tested against a stubcloudflared, and the page's notice under atrycloudflare.comname mapped to the local node.bulk_indexis not called (it needs a transport; it runs the same per-item check asindex)._security/_authenticatestill labels every API key "Xerj Administrator" (pre-existing; finding 11).404before authentication (the merged router's fallback), so an unauthenticated caller can tell a routed path from an unrouted one. Pre-existing, not introduced here; the live test accepts 401 or 404 for the retired claim shape and asserts no key is minted.