Files
wanderbooks/crates/ledger-core
swaitsandDeepSeek V4.1 Flash 4d3444c0af fix(core): the gate walks a whole path and pins its skips
Three holes in the traceability gate let a name pass that should not:

- an imported uppercase type excused any associated item, so
  NaiveDate::NoSuchThing resolved. External types' items are now an
  explicit list of what the claims cite (NaiveDate::MAX only);
- only the last two segments of a qualified path were checked, so
  bogus::Ledger::post_entry and bogus::form1099::untagged_payments
  resolved. The whole path is walked: an optional crate name, then every
  module segment against the real module tree (file modules, inline mods,
  glob re-exports), then the item the module or type defines;
- a bare-name call counted in any module, so other::take( looked like
  take. Only kernel::name( or an imported name( counts now.

The right-law check was skippable by omission: a function with no rule or
no harness law was silently counted as skipped. Every ordinary function
must now be applied, and the skipped set is pinned to the excepted
wrappers that lack a law or a rule (SKIPPED), compared exactly.

source_ids reads only the spec block's source clause and is keyed by the
function's signature, so the free flip and Direction::flip no longer share
one id set and fx_booked stops picking BS-ledger-14 from prose.

The index also read root.rs badly: strip_code treated the backslash in a
raw Windows path (r"\\?\UNC\") as an escape and blanked the rest of
the file, so Root (and its adopt) were invisible. Raw strings are parsed
as raw strings now; Root::adopt resolves through its own impl, not through
the imported-type excuse that used to hide the bug.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-08 22:34:28 -07:00
..