Release 0.39.0: a Rust method call never binds a fn without self (#378); replies say what the index state actually is (#379) #386

Merged
buildagent merged 18 commits from train-0390 into master 2026-10-15 19:26:20 +02:00
Member

Release train 0.39.0. Fixes #378 and #379, plus the follow-ups found by two independent review rounds per lane and a five-reviewer pass over the whole train.

#378: a Rust method call never binds a fn without self

  • The fact: both Rust extractors record receiverless functions from the syntax tree. The builtin uses a trait method; the package uses the new optional ABI tag TAG_SYMBOL_RECEIVERLESS. The fact is stored in the side table receiverless_symbols, and the schema moves to 83.
  • The gate: the language-profile trait method_call_requires_receiver is set for Rust only. A METHOD-pool decision onto a receiverless target is refused at all three decision points. When no symbol is receiverless, the refusal scans are skipped.
  • Downstream uses: the same fact drives the call-shape filter (name-fallback rows) and the check_rename/safe_delete counts. same_name_shape_excluded ships only where a proof applies.
  • Package: de.h-dv.rust 0.1.4. All seven build.py extractors rebuild byte-identically. Provenance now also covers the crates/core files that extract-types pulls in by #[path].
  • Corpus bind diff:
    • rust-analyzer: −485, all wrong binds, read at source by the lane (34) and by independent reviewers (15 + 15). Nothing gained.
    • rust-ripgrep: unchanged.
    • this repo: −180, all phantoms.

#379: replies say what the index state actually is

  • Each unmeasured-population explanation now follows the row's own reason.
  • Concise rows: the descriptions now match exactly what the rows carry.
  • Startup activation removes files that are gone from disk before the build, through one snapshot builder for both callers. list_files reports such a file as not_on_disk.
  • The nearest-spelling hint now uses extension, prefix and edit-distance nearness instead of substring matching.
  • One cursor classifier reports MALFORMED, FOREIGN or STALE for every dialect. The cursors doc resource is rewritten to match.
  • did_you_mean is suppressed when a filter emptied the result.

Indexer robustness

  • RemovalProbe lists each directory once per pass. Before, 20k ignored files took 91 s.
  • A stat error now withdraws the file instead of deleting it, through a pure decision function tested without filesystem permissions.

Records (all attributed)

  • tests/corpus/tier3-baseline.json: rust-analyzer −485 resolved. Operator-approved; the rule deltas reconcile exactly.
  • host-package-lifecycle.json: the schema condition only.
  • ruby-package-cost.json: a schema condition. A +17.6k vm_step cost was attributed by cost_attribution to the refusal scans and then removed by the empty-table skip, so the record now reads at or below the schema-82 values.
  • tests/corpus/baseline.json and cost-baseline.json are byte-identical to master.

Verification

  • Two local full runs, including ci.yml's nightly-only jobs.
  • Final targeted reruns: the workspace (5093/5093), the daemon leg (962/962), agent_task_bench and the isolated JavaScript overhead leg.
  • precision_gate: 7/7 with 0 phantoms.
  • Every new test was mutation-run red→green by its lane, and the key mutations were re-run independently.
  • The 0.38 → 0.39 upgrade was exercised live, with handles, approvals and the downgrade refusal.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YDDBdWU4yThi8Zi51E6FCj

Release train 0.39.0. Fixes #378 and #379, plus the follow-ups found by two independent review rounds per lane and a five-reviewer pass over the whole train. ## #378: a Rust method call never binds a fn without `self` - **The fact:** both Rust extractors record receiverless functions from the syntax tree. The builtin uses a trait method; the package uses the new optional ABI tag `TAG_SYMBOL_RECEIVERLESS`. The fact is stored in the side table `receiverless_symbols`, and the schema moves to 83. - **The gate:** the language-profile trait `method_call_requires_receiver` is set for Rust only. A METHOD-pool decision onto a receiverless target is refused at all three decision points. When no symbol is receiverless, the refusal scans are skipped. - **Downstream uses:** the same fact drives the call-shape filter (name-fallback rows) and the `check_rename`/`safe_delete` counts. `same_name_shape_excluded` ships only where a proof applies. - **Package:** `de.h-dv.rust` 0.1.4. All seven build.py extractors rebuild byte-identically. Provenance now also covers the `crates/core` files that extract-types pulls in by `#[path]`. - **Corpus bind diff:** - rust-analyzer: −485, all wrong binds, read at source by the lane (34) and by independent reviewers (15 + 15). Nothing gained. - rust-ripgrep: unchanged. - this repo: −180, all phantoms. ## #379: replies say what the index state actually is - Each unmeasured-population explanation now follows the row's own reason. - Concise rows: the descriptions now match exactly what the rows carry. - Startup activation removes files that are gone from disk before the build, through one snapshot builder for both callers. `list_files` reports such a file as `not_on_disk`. - The nearest-spelling hint now uses extension, prefix and edit-distance nearness instead of substring matching. - One cursor classifier reports MALFORMED, FOREIGN or STALE for every dialect. The cursors doc resource is rewritten to match. - `did_you_mean` is suppressed when a filter emptied the result. ## Indexer robustness - `RemovalProbe` lists each directory once per pass. Before, 20k ignored files took 91 s. - A stat error now withdraws the file instead of deleting it, through a pure decision function tested without filesystem permissions. ## Records (all attributed) - `tests/corpus/tier3-baseline.json`: rust-analyzer −485 resolved. Operator-approved; the rule deltas reconcile exactly. - `host-package-lifecycle.json`: the schema condition only. - `ruby-package-cost.json`: a schema condition. A +17.6k vm_step cost was attributed by `cost_attribution` to the refusal scans and then removed by the empty-table skip, so the record now reads at or below the schema-82 values. - `tests/corpus/baseline.json` and `cost-baseline.json` are byte-identical to master. ## Verification - Two local full runs, including ci.yml's nightly-only jobs. - Final targeted reruns: the workspace (5093/5093), the daemon leg (962/962), `agent_task_bench` and the isolated JavaScript overhead leg. - `precision_gate`: 7/7 with 0 phantoms. - Every new test was mutation-run red→green by its lane, and the key mutations were re-run independently. - The 0.38 → 0.39 upgrade was exercised live, with handles, approvals and the downgrade refusal. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01YDDBdWU4yThi8Zi51E6FCj
1. UNMEASURED POPULATION follows each row's reason. compose_evidence_semantics
   grouped every row under the paragraph written for no_use_reference_channel
   ("a 0 is STRUCTURAL"), and find_callers(all_plugins) shipped it beside
   total_resolved: 262. Rows are now grouped by reason, one sentence each; the
   mechanism per code comes from unmeasured_reason_why, which
   mixed_denominator_note (search_symbols' note) now reads too, and
   evidence_semantics_registry grades its literals.

2. Concise ref rows: the find_references/find_callers/find_callees
   descriptions said concise keeps resolved_by/influence; by design (#139,
   PROVENANCE_OMITTED_CONCISE) it keeps them only on dynamically decided rows.
   The descriptions now say so; rows unchanged. Startup payload 15873 -> 15886
   tokens (629 left, reserve 622), no baseline moved.

3. Deleted files in the startup window. Root cause: the startup activation
   (a daemon whose recorded activation digest differs, e.g. a new release)
   took every unwalked indexed path into its build snapshot, so the promotion
   withdrew a deleted file's live contribution and left its files anchor for
   the delayed reconcile -> project_overview counted it permanently_unclaimed.
   build::activation_snapshot, now the one producer for the daemon's startup
   activation and index's reconcile_activation_before_index, deletes paths
   gone from disk (WriterMsg::removal, #376) before the build. list_files
   reports a missing file as not_on_disk (also when its directory went), and
   keeps not_readable for a file that is there and unreadable.

4. lang hint: only near spellings are called nearest. `lang: "py"` now says
   "`py` is the file extension of `python` ... Other spellings (the first 11
   of 19, by name)"; a held value lists "the 1 nearest, then the first N of
   the other M by name".

5. (a) search_symbols ships no did_you_mean when empty_population measured the
   unfiltered query matching (both paths). (b) A cursor stamp that is not hex
   is refused as MALFORMED, not as "a DIFFERENT index snapshot", in all three
   cursor decoders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDDBdWU4yThi8Zi51E6FCj
1. confidence.symbol_shape_excluded_unavailable said "an empty population"
   for any withheld name-fallback counter, beside six resolved rows on
   find_references(ConciseRefRow). It now names the row's reason and its
   mechanism through unmeasured_reason_why (shape_excluded_withheld).
2. The uses_may_be_generated clause says counts "may miss" call sites the
   annotation generates (a FLOOR), not that every count in the reply misses
   them; the ref-kind advice stays with no_use_reference_channel.
3. New indexer test activation_snapshot_removal: an `index` pass with a
   changed recorded digest and a deleted file removes it in the activation
   (the ordinary pass finds nothing left to delete), and a delete that
   cannot commit (write lock held by a second connection) falls back to
   the snapshot with the row kept.
4. WriterMsg::removal: a spelling that cannot be checked (read_dir failed)
   answers Withdraw, not Delete, for a file is_file() finds.
5. Wording: activation_snapshot's fallback covers any commit error;
   lang_spellings_note never lists a spelling the sentence already named;
   the malformed-cursor hint no longer claims "nothing changed in the
   index", which a diff cursor cannot know.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDDBdWU4yThi8Zi51E6FCj
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`find_callers(PoolAdmit::prepare)` reported 35 resolved callers; 32 were
rusqlite `tx.prepare(sql)` calls bound through the import-key edge. In
Rust `x.f()` can only reach a fn whose first parameter is a receiver.

THE FACT. Both Rust extractors read the receiver off the syntax tree
(`takes_receiver`: a `self_parameter`, or a typed `parameter` whose
pattern is `self`; never the signature text) in one helper,
`receiverless_symbols`, used by the builtin through a new defaulted
`LanguagePlugin::receiverless_symbols` and by the guest's Rust lane in
`wire.rs`, which emits the new optional ABI tag
`TAG_SYMBOL_RECEIVERLESS` (0x800A; skippable, thinner when skipped, no
ABI_MINOR move, no capability: it can only remove its own symbol).
Stored in a new contribution-scoped side table `receiverless_symbols`
(schema 83). Not a `RawSymbol`/`ExtractResult` field: that moved all nine
package extractors / every frozen builtin. Not a `symbols` column: that
widened the row the planner costs and took tier 1R's ident arm from
0.42M to 8.9M VM steps on rust-ripgrep (corpus_cost +22.1%).

THE GATE. Profile trait `method_call_requires_receiver` (Rust only; the
other six dot-call statics legitimately). `receiverless_target_sql`
REFUSES a decided METHOD-pool target in `resolve_decisions`,
`qual_decisions` and `recv_decisions` before apply - the
`shadow_refused` shape - so the symbol stays a competitor. Narrowing the
pool instead was measured first: same wrong binds lost, 362 gained on
rust-analyzer, mostly phantoms.

MEASURED. rust-ripgrep: no bind moved. rust-analyzer: -485 binds (479
tier3_import_boost, 3 tier1b_container_import, 1 tier1b_file_key_import,
2 tier1r_receiver), all onto fns with no `self` (`AstNode::kind() x475`,
`TextSize::sum`, `PerNs::values`, ...), 0 gained, 7 retargeted from
`AstNode::kind` to the typed `Comment::kind`/`ClosureCapture::kind`.
Dogfood: PoolAdmit::prepare 35 -> 3 resolved callers (the path calls).
corpus_ratchet green, corpus_cost green (+0.15..0.25% vs master),
precision_gate 7/7 phantoms 0.

de.h-dv.rust 0.1.4: extractor rebuilt; the eight other build.py
extractors rebuild byte-identical (the wire.rs hook is line-neutral and
cfg-gated). Frozen builtin rust.rs re-pinned with the package walker.

Not re-recorded (operator): tests/corpus/host-package-lifecycle.json
needs a conditions-only re-measure for schema 82 -> 83 (measured:
outcome conditions_only, 0 categorised changes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Tests per refusal site in receiverless_method_call.rs: tier 1R
  (`g.open()` on a typed `g: Gate`, fn open() without self), tier 1Q
  (a Rust-profile producer emitting QUALIFIED method calls, which the ABI
  allows and neither first-party walker emits - the only shape that
  reaches `qual_decisions`, so the refusal stays and is now graded), and
  the scoped re-resolve: a body-only edit of the caller keeps the
  refusal; the callee gaining `&self` makes it bindable and leaves no
  `receiverless_symbols` row behind. Each site's `refused = "0"` and a
  full-pass-only refusal were run: RED.
- tests/fixtures/rust/receiver_forms.rs: every receiver form, trait decls
  with/without self, default methods, assoc fns, a free fn; graded by
  rust_walker_parity, whose symbol rows now carry the receiverless fact.
  Guest `self: Box<Self>` read as receiverless: RED. The builtin comment
  no longer claims agreement "by construction"; both helper docs say the
  package owns its own copy and why free fns are marked. Builtin re-pinned;
  de.h-dv.rust 0.1.4 (unreleased) rebuilt and re-recorded, the eight other
  extractors still rebuild byte-identical.
- Name fallback: the existing call-shape filter now treats a receiverless
  member in a `method_call_requires_receiver` language as having no
  `method_call` arm (RECEIVERLESS_MEMBER_CLAUSE), in find_references,
  find_callers and the search_symbols enrichment, with the matching
  complement, so `x.prepare()` counts as shape-excluded, never as a
  fallback for `PoolAdmit::prepare`. e2e on both legs; the
  ref_count + name_fallback_count == find_references.total pair holds.
  resolution_gaps vocabulary unchanged.

Not edited (operator): tests/corpus/tier3-baseline.json moves on
rust-analyzer (count.resolved 151047 -> 150562, rule deltas sum to -485);
host-package-lifecycle.json needs its schema 82 -> 83 condition re-measure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-recorded with COSI_TIER3_BLESS against a copy of the pinned corpus.
Seven categorised changes, all rust-analyzer, rule deltas sum to the
resolved delta; py-django unchanged; schema 82 -> 83.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
row_generation_column classifies the new table as a direct contribution
join; harness_settle_barrier counts receiverless_method_call_e2e;
abi_projection's rust pin rises by the 27 refs of receiver_forms.rs,
measured by indexing that fixture alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cost_attribution on ruby-sinatra attributed the package leg's
+17.6k vm_step / +609 fullscan_step to the three #378 refusal DELETEs,
which scanned their decision tables in a project with no receiverless
symbol. One primary-key probe now skips them. The re-measure then reads
at or below the schema-82 record, so ruby-package-cost.json moves by the
schema condition only; its bless instruction names the right crate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Indexer:
- writer: `RemovalProbe` replaces `WriterMsg::removal`. One probe per pass
  caches each directory listing, so a reconcile lists each directory once
  (was one read_dir per path and component: 20k ignored files in one dir
  took 91 s). Callers: build::activation_snapshot, index reconcile,
  watcher soft re-walk.
- writer: the decision is the pure `removal_from(metadata, spelled)`. A
  stat error other than NotFound/NotADirectory is unknown and withdraws;
  `is_file()` mapped it to "no file" and deleted a rollback anchor.

Tests (each with its mutation run red):
- writer: every removal arm without permissions; a 0o644 directory; a
  structural bound (read_dir calls <= directories).
- activation_snapshot_removal: a newly ignored file joins the activation
  and keeps its superseded anchor.
- receiverless_method_call: a bare call still binds a free fn; a
  receiverless fact outside Rust refuses nothing (the language gate).
  No ingest-side gate: method_call_requires_receiver is declarable per
  index, so the resolver's gate is the one that sees the profile in force.
- host_extraction_epoch: receiverless_symbols and facts_receiverless are
  inside the epoch gate (fingerprints unchanged: no frozen package emits
  the record yet).
- receiver_forms.rs: comment-before-receiver cases (abi_projection rust
  stays 254: the new fns carry no refs).

Records:
- oracle.toml rust name_fallback_ceiling back to 18 (measured 18; the
  #378 decoy is excluded by the call-shape filter).
- support/inputs.rs: a crate's inputs include its `#[path]` targets, so
  crates/core/src/{kinds,raw,module_facts}.rs are shared inputs of the
  seven build.py packages; records re-recorded (wasm unchanged, all seven
  rebuild byte-identical under COSI_GUEST_REBUILD=1). ci_changes.sh is
  record-driven and now routes those paths; ci_path_gating grades raw.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Cursors: one classifier (`ParsedCursor`) for all three dialects. Every
  decoder refuses MALFORMED (no dialect parses it: wrong shape, length or
  alphabet), FOREIGN (well-formed, another call) and STALE (well-formed,
  snapshot or diff changed) apart, with exact minted widths (snapshot 64
  hex, diff 32, query fingerprint 8). `code-index://docs/cursors` now
  names the three dialects and the three refusals.
- Lang "nearest": near is an extension, a prefix either way, or a
  Damerau typo (<=1 edit up to 3 chars, <=2 above), ranked by distance.
  Substring containment is no longer near.
- An invalid `lang` value is named even when another filter also empties
  the result.
- The shape-excluded sentence reads the symbol-wide name-fallback count,
  not the page (limit 0, resolution "resolved").
- check_rename / safe_delete leave out same-name method calls #378 proves
  cannot reach a receiverless fn, and ship `same_name_shape_excluded`.
- The no-use-channel clause covers non-zero counts and no longer points at
  find_references; the withheld-counter note is the code plus a pointer.
- Stale prose fixed (unmeasured_population doc, ref-kinds resource,
  search_symbols description, concise ref-row descriptions).
- Tests: classifier table, nearness table, disk reasons without
  permissions, unknown reason code, language gate in receiverless_member,
  symlink-escape list_files e2e, concise row serialization.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDDBdWU4yThi8Zi51E6FCj
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#379 round 2: same_name_shape_excluded ships only where a proof applies
All checks were successful
CI / cargo clippy (pull_request) Successful in 23m46s
Package CI / package (vue) (pull_request) Successful in 30m28s
Package CI / package (xaml) (pull_request) Successful in 30m27s
Package CI / package (rust) (pull_request) Successful in 30m38s
Package CI / package (php) (pull_request) Successful in 30m57s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m8s
Package CI / package (javascript) (pull_request) Successful in 31m40s
Package CI / package (csharp) (pull_request) Successful in 32m6s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 1m46s
Package CI / package (typescript) (pull_request) Successful in 32m22s
Package CI / package (ruby) (pull_request) Successful in 32m53s
Package CI / package (python) (pull_request) Successful in 38m14s
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Successful in 38m28s
CI / cargo check (MSRV 1.98) (pull_request) Successful in 18m19s
CI / cargo doc (intra-doc links) (pull_request) Successful in 9m35s
CI / cargo deny (pull_request) Successful in 11m39s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 12m42s
CI / cargo check (windows-gnu) (pull_request) Successful in 16m15s
Package CI / package-corpus (python) (pull_request) Successful in 47m47s
Package CI / package-corpus (javascript) (pull_request) Successful in 47m56s
Package CI / package-corpus (csharp) (pull_request) Successful in 47m59s
Package CI / package-corpus (php) (pull_request) Successful in 47m58s
Package CI / package-corpus (rust) (pull_request) Successful in 48m0s
Package CI / package-corpus (typescript) (pull_request) Successful in 46m12s
Package CI / package-corpus (ruby) (pull_request) Successful in 52m44s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
CI / cargo test (pull_request) Successful in 25m45s
CI / OSS corpus (tier 1) (pull_request) Successful in 37m17s
CI / cargo test (daemon transport) (pull_request) Successful in 10m18s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
9237dd1243
The field was Some(0) on every check_rename/safe_delete reply for symbols
no shape proof covers (every non-Rust symbol, every Rust fn taking self),
which put cs-dapper's agent-task bench 6 tokens into its reserve (+15:
safe_delete +7, check_rename +8). Absent now means 'no proof applies or an
older daemon'; never a silent 0. Bench back to 11135 of 11644.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index!386
No description provided.