Repository navigation
Engine: wrapper-aware counts beside the literal rules -- wrapped_<rule> (#3313 step 4) - #3337
Merged
Merged
Conversation
…e> (#3313 step 4) Per file and rule, the unqualified call sites that resolve to a project wrapper recorded in wrapper_data (step 3's resolution, unchanged): file_data wrapped_debug_prints / wrapped_panics_and_aborts / wrapped_memory_alloc, and the same three summed onto repo_data. Same unit as the literal rule (sites), never folded into it; literal + wrapped counts distinct sites that reach the behaviour directly or through a wrapper. Contract: docs/wrapper_aware_count_contract.md (corollaries + D1 no score reads it, guarded by a test over gitgalaxy/metrics; D2 never folded into the literal column; D3 presence-keyed report surfaces). Stream contract corollary 3 points to it (sheet re-rendered; it also picks up rows other merged PRs left unrendered). Report surfaces: audit '12. Calls Through Idiom Wrappers' (literal vs wrapped, calling files only) and LLM brief section 14 repo totals. Acceptance (curl, C family): literal memory_alloc 1197 -> 171 across the 8.17 -> 8.18 refactor, literal + wrapped 2629 -> 2719 (+3.4%). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01PderVG28YMuzeSP6XH8yi5
32 differences per fixture, every one an added '12. Calls Through Idiom Wrappers' block (literal vs wrapped sites) on a file whose call sites reach a recorded wrapper. No signal, score or coordinate moved. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01PderVG28YMuzeSP6XH8yi5
Contributor
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.
Step 4 of epic #3313, the step whose acceptance evidence the epic was built for. It reports a wrapper-aware count beside each literal rule the wrapper channel covers. No score reads it.
Acceptance: curl 8.17 → 8.18 (C family, full clones)
memory_allocThe literal column reproduces temporal-crucible's #3003 finding exactly (1,197 → 171). Literal plus wrapped shows the allocation surface moving behind
curlx_*rather than vanishing. CPython 3.14 reads 226 literal + 1,848 wrapped.What
wrapped_<rule>fordebug_prints,panics_and_abortsandmemory_alloc: per file, the unqualified call sites in that file that resolve to a project wrapper recorded inwrapper_data, using step 3's resolution unchanged.file_data(0 when none), and the same three summed ontorepo_datafrom the snapshot's own rows.wrapper_facts; never restored.docs/wrapper_aware_count_contract.md. Kindsite, unit sites (the literal rule's unit), so literal + wrapped counts distinct sites that reach the behaviour directly or through a wrapper. Corollaries:gitgalaxy/metrics/references awrapped_*key. A score that reads it is a separate, measured score-contract change.docs/signal_contracts.mdwas re-rendered, which also picks up thecalls_outrow and two helper keys that other merged PRs had left unrendered.12. Calls Through Idiom Wrappersblock shows literal vs wrapped per rule, only on files with wrapped sites;literal + wrapped = totalper rule.Verification
Tests:
tests/core_engine/test_wrapper_aware_counts.pypins:print/stopare literal hits);curl_free→curlx_free);file_data/repo_datawrite path;Full suite: 10,568 passed.
audit_checkwith CI's pinned ruff 0.16.0: all clear. The signal-contract audit reports no new findings.Golden masters, re-blessed against crucible v1.4.0: exactly 32 differences per fixture, every one an added
12. Calls Through Idiom Wrappersblock. No signal, score or coordinate moved.🤖 Generated with Claude Code
https://claude.ai/code/session_01PderVG28YMuzeSP6XH8yi5