diff --git a/changelog.d/711-ts-paths-alias-import.md b/changelog.d/711-ts-paths-alias-import.md new file mode 100644 index 000000000..1976ca31b --- /dev/null +++ b/changelog.d/711-ts-paths-alias-import.md @@ -0,0 +1,10 @@ +### Fixed — a TypeScript call through a tsconfig `paths` alias binds through its import (#711, reported by SStonkSS1) + +A named import through a `compilerOptions.paths` alias that points inside the root (`import { f } from "@/lib/mod"` with +Next.js's default `@/*` → `./src/*`) now pins its call to the imported definition, as a relative `../lib/mod` import +already did. Before, the call binder asked only the path resolver, which leaves such a specifier unresolved, so the call +bound by its name alone and was declined (``) as soon as any class had a same-named method, +dropping it from `--callers`, `--impact` and `--test-gate`, while the file edge for the same import resolved. The binder +now reads the same tsconfig resolution as the file edge (`baseUrl`, `extends` chains and directory `index.ts` targets +included). Unchanged: an alias whose target is outside the root, missing, or in another workspace root; a bare package +import; a relative import. Gate: `test/lib/tspathsalias.sh`, run by `test/tsimportprecisecheck.sh`. diff --git a/changelog.d/overload-split.md b/changelog.d/overload-split.md index c07303865..04d8e4eee 100644 --- a/changelog.d/overload-split.md +++ b/changelog.d/overload-split.md @@ -1,5 +1,5 @@ ### Fixed — a C++ call whose argument types pick one overload, and a Go call through a generic field, no longer split -A C++ call to one class's same-arity overloads was split onto every overload (`prov="split"`), even when the arguments' declared types pick one of them. Now, when every argument is one of the calling function's own parameters and exactly one non-template overload takes each argument as its exact declared type, that overload is the edge, bound alone. Otherwise the split stays: no overload takes every argument by identity (one reachable only by a conversion), or a guard stops the pick: a template overload, a const or pointer mismatch, a shadowed parameter, a different namespace, a receiver no lookup proved, or a qualifier naming another class. On envoy, `WatermarkBuffer::prepend( absl::string_view data )` now calls only `OwnedImpl::prepend( absl::string_view )`. 41 envoy call sites move from split to one edge. +A C++ call to one class's same-arity overloads was split onto every overload (`prov="split"`), even when the arguments' declared types pick one of them. Now, when every argument is one of the calling function's own parameters and exactly one non-template overload takes each argument as its exact declared type, that overload is the edge, bound alone. Otherwise the split stays: no overload takes every argument by identity (one reachable only by a conversion), or a guard stops the pick: a template overload, a const or pointer mismatch (a `const` inside a template argument, `Box`, belongs to the type), a shadowed parameter, a different namespace, a receiver no lookup proved, or a qualifier naming another class. On envoy, `WatermarkBuffer::prepend( absl::string_view data )` now calls only `OwnedImpl::prepend( absl::string_view )`. 41 envoy call sites move from split to one edge. A Go call through a struct field whose type is a qualified generic instantiation (`suppressedModules addrs.Set[addrs.Module]`) now reaches that package's type (`addrs.Set.Add`), not every type named `Set`. Other qualified field types also bind to their own package's type when it defines the method. Interfaces and embedded types keep their previous answer. New gate arms in `test/aritycheck.sh` (section 3d) and `test/receiverevidencecheck.sh` (G). diff --git a/changelog.d/proven-site-keeps-namesakes.md b/changelog.d/proven-site-keeps-namesakes.md index f15896d33..8f545c138 100644 --- a/changelog.d/proven-site-keeps-namesakes.md +++ b/changelog.d/proven-site-keeps-namesakes.md @@ -1,5 +1,5 @@ ### Fixed — a call a rule proved is no longer listed as a call site of a same-named method -A caller row's `sites_at=` (the callers verb, `--safe-delete`, the `--for` callers hop and its site pick, `--edit-check`'s sites) matched call sites by the callee's leaf name, so a caller with edges to two definitions of one name listed every call of that name under both rows. envoy's `FilterManagerImpl::onConnectionClose` showed its proven `close_action.closeSocket()` lines (145, 154) under the by-name `ConnectionImpl::closeSocket` and `RawBufferSocket::closeSocket` rows, which read as a proven site keeping by-name namesake edges; only line 153 (`latched_close_action_->closeSocket()`, through a `std::optional`) is matched by name. A call a rule proved now counts as a site of its own targets only, and a file- or scope-qualified `--uses` drops it the same way. A call matched by name keeps the name test, and a caller with no proven call of the name keeps its row and sites. The `sites_at=` legend reading says so in the same number of bytes. +A caller row's `sites_at=` (the callers verb, `--safe-delete`, the `--for` callers hop and its site pick, `--edit-check`'s sites) matched call sites by the callee's leaf name, so a caller with edges to two definitions of one name listed every call of that name under both rows. envoy's `FilterManagerImpl::onConnectionClose` showed its proven `close_action.closeSocket()` lines (145, 154) under the by-name `ConnectionImpl::closeSocket` and `RawBufferSocket::closeSocket` rows, which read as a proven site keeping by-name namesake edges; only line 153 (`latched_close_action_->closeSocket()`, through a `std::optional`) is matched by name. A call a rule proved now counts as a site of its own targets only, and a file- or scope-qualified `--uses` drops it the same way. A call matched by name keeps the name test, and a caller with no proven call of the name keeps its row and sites. A proven recursive call is a site of its own caller only: cockroach's free function `startExec` no longer lists its `startExec(params, child)` recursion (`pkg/sql/plan.go:557`) under the 163 `startExec` method rows it also calls through `plan.startExec(params)`. The `sites_at=` legend reading says so in the same number of bytes. Versions: the session legend dictionary moves to `dictv=7138c98f32671fec entries=1167` (the `sites_at=` reading); docs/COMMANDS.md and the 2026-11-19 showcase capture record the new pair. diff --git a/docs/COMMANDS.md b/docs/COMMANDS.md index e685c74fa..9b0e87e0e 100644 --- a/docs/COMMANDS.md +++ b/docs/COMMANDS.md @@ -72,10 +72,10 @@ $ ./build/ripwire . --top-k=5 - - + + - + @@ -108,10 +108,10 @@ $ ./build/ripwire . --top-k=5 --no-inventory - - + + - + @@ -142,10 +142,10 @@ $ ./build/ripwire . --max-tokens=1500 - - + + - + @@ -172,7 +172,7 @@ _GATE form: exit 3 if the map's own est_tokens exceeds the budget (over-budget f ``` $ ./build/ripwire . --token-budget=100 - + ``` **Shaped by:** `--top-k`, `--max-tokens`, `--for`, `--sections`, `--recall`, `--handoff`, `--pr-context`, `--from-trace` @@ -225,11 +225,11 @@ _Name-shaped query: the router picks name-exact BM25 (header says which/why)._ ``` $ ./build/ripwire . --for="rankGraphTeleport" - + - + PageRank with an explicit teleport / personalization vector p (Σp = 1). The prior is name-quality-biased through biasPrior() so all rank modes share one weighting seam; the transition matrix (edgesinline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>&am … [line truncated: 31 more bytes on this line] #### The convergence disclosure contract ### Wave-2 adversarial verification (2026-08-19) — six probes against `aa97c9e` @@ -262,10 +262,10 @@ _Restore the / sections the --for bundle collapses to a counted s ``` $ ./build/ripwire . --for="tree-sitter parse of a source file" --sections=lego,compose - + - + inline bool topLevelEvidence( std::string_view source, const TSLanguage* language, const Predicate& predicate ) The crawl's per-file byte ceiling. A text file larger than this is skipped: at this size it is o…constexpr std::size_t kDefaultMaxFileBytes = 4u * 1024u * 1024u @@ -289,11 +289,11 @@ _T3 opt-out: the signatures-only lens (no auto bodies, no bundle="auto" attribut ``` $ ./build/ripwire . --for="rankGraphTeleport" --signatures-only - + - + PageRank with an explicit teleport / personalization vector p (Σp = 1). The prior is name-quality-biased through biasPrior() so all rank modes share one weighting seam; the transition matrix (edgesinline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>&am … [line truncated: 31 more bytes on this line] #### The convergence disclosure contract ### Wave-2 adversarial verification (2026-08-19) — six probes against `aa97c9e` @@ -324,10 +324,10 @@ _Opt OUT of compact conceptual serving: restore the rank-first auto wal ``` $ ./build/ripwire . --for="tree-sitter parse of a source file" --auto-bodies - + - + inline bool topLevelEvidence( std::string_view source, const TSLanguage* language, const Predicate& predicate ) The crawl's per-file byte ceiling. A text file larger than this is skipped: at this size it is o…constexpr std::size_t kDefaultMaxFileBytes = 4u * 1024u * 1024u @@ -356,13 +356,13 @@ _Same query with routing forced OFF (plain subtoken+body BM25) — contrast with ``` $ ./build/ripwire . --for="rankGraphTeleport" --no-route - + - + PageRank with an explicit teleport / personalization vector p (Σp = 1). The prior is name-quali…inline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>& p, float alpha = 0.85f ) - + uniform-teleport PageRank (the default). A kRankFlagNotNamed unit (model.h) has no edge and a 0 …inline RankedGraph rankGraph( const Graph& g, float alpha = 0.85f ) The default map's PageRank — uniform teleport, the one rank that is a function of the Graph al…inline std::optional<RankedGraph>& storedDefaultRank() noexcept @@ -388,10 +388,10 @@ _Cut the result at the relevance cliff (Adaptive-k) — on a flat ranking nothin ``` $ ./build/ripwire . --for="tree-sitter parse of a source file" --adaptive - + - + inline bool topLevelEvidence( std::string_view source, const TSLanguage* language, const Predicate& predicate ) The crawl's per-file byte ceiling. A text file larger than this is skipped: at this size it is o…constexpr std::size_t kDefaultMaxFileBytes = 4u * 1024u * 1024u @@ -419,7 +419,7 @@ _Same task with the anchor disabled — the contrast the flag exists for._ ``` $ ./build/ripwire . --for="why does src/lexical.h chooseForRanker pick name-exact BM25" --no-mention-boost - @@ -449,14 +449,14 @@ _The same task with doc-mention surfacing OFF — the contrast the flag exists f ``` $ ./build/ripwire . --for="quality delta acks ledger rubber stamp" --no-doc-mention - + L2 stale acks in the range form. A changed-files answer holds no whole target tree to check the …std::vector<rw::quality::StaleAck> refPairStaleAcks( const gtl::btree_map<std::string, rw::quality::AckRecord>& acks, const RefPairDelta& refs ) inline QualityDeltaOutcome computeQualityDelta( const std::string& root ) -inline std::string staleByKindValue( const std::vector<StaleAck>& staleAcks ) +inline std::string staleByKindValue( const std::vector<StaleAck>& staleAcks ) inline constexpr const char* kAtStampLegend = "<!-- at= is the git commit these numbers were computed at ... [22 more line(s); run it to see the whole thing] ``` @@ -479,7 +479,7 @@ _Interface -> implementors view: every existing impl of the named interface; the $ ./build/ripwire . --lego=Vehicle - + @@ -510,7 +510,7 @@ _The repo's best-in-class instance to imitate before writing new code (picked by $ ./build/ripwire . --exemplar="format byte sizes for humans" - + @@ -713,7 +713,7 @@ $ ./build/ripwire . --order=stable --top-k=5 - + @@ -744,10 +744,10 @@ $ ./build/ripwire . --no-stable --top-k=3 - - + + - + @@ -778,7 +778,7 @@ $ ./build/ripwire . --around=rankGraphTeleport - + @@ -828,18 +828,18 @@ _What SYM calls (1-hop out-edges)._ ``` $ ./build/ripwire . --callees=rankGraphTeleport - - + + - - - - - - + + + + + + ``` @@ -863,10 +863,10 @@ _The resolvable use-sites (call/read/write/import/extends) with file:line; count ``` $ ./build/ripwire . --uses=rankGraphTeleport - + - - + + @@ -897,10 +897,10 @@ _Composable node-set query: functions within 2 caller-hops of rankGraphTeleport. ``` $ ./build/ripwire . --graph-query='and(callers(name("rankGraphTeleport"),2),kind(all,fn))' - + - - + + @@ -934,19 +934,19 @@ _Names referenced but never defined in-corpus (stdlib/third-party surface). The ``` $ ./build/ripwire . --external-surface - - - - + + + + - - + + - + - - + + ... [17 more line(s); run it to see the whole thing] ``` @@ -969,7 +969,7 @@ _Shortest directed call-path SRC -> DST. CHANGED: now reports from_p/to_p/from_d ``` $ ./build/ripwire . --path=main,rankGraphTeleport - @@ -998,7 +998,7 @@ $ ./build/ripwire . --defs=main,rankGraphTeleport - + @@ -1021,10 +1021,10 @@ _Minimal connecting subgraph over 3 symbols (finds shared-caller joins)._ ``` $ ./build/ripwire . --connect=rankGraphTeleport,runEval,getIndex - + - + @@ -1133,7 +1133,7 @@ _Test files that transitively reach the changed file._ ``` $ ./build/ripwire . --affected=src/graph.h - @@ -1193,7 +1193,7 @@ _Mid-task situational report for the current git diff — recorded against a CLE $ ./build/ripwire . --situ ripwire situational-awareness — 0 changed file(s), 0 symbols in them root: . -at: da897642e +at: cee081132 (0 changed files — working tree is clean, nothing to analyze) ``` @@ -1212,18 +1212,18 @@ _The continuation packet for the NEXT session: disk truth (branch/sha ``` $ ./build/ripwire . --handoff - + - + - - - + + + + ... [1 more line(s); run it to see the whole thing] ``` @@ -1247,7 +1247,7 @@ _Pre-PR gate on a CLEAN tree: no obligations, exit 0._ ``` $ ./build/ripwire . --test-gate - ``` @@ -1332,15 +1332,15 @@ $ ./build/ripwire . --grep=DISCLOSE --and=cache CDATA text (/ context around it); complete=1 only for an exhaustive literal scan (beside pattern_meta=, of the literal reading only); = off-index. window: shown= capped= (capped=1 cut). hits_capped=1: hits= is a floor. root=: p= relative to it. parse_degraded=1: E … [line truncated: 1693 more bytes on this line] - + - - - - - + + + + + - + ... [17 more line(s); run it to see the whole thing] ``` @@ -1423,7 +1423,7 @@ _Span tiers off: the exhaustive view — the comment and string hits the default $ ./build/ripwire . --grep=DISCLOSE --grep-in=any - + - + - + ... [17 more line(s); run it to see the whole thing] ``` @@ -1574,7 +1574,7 @@ _Importance-weighted detail: FULL bodies for top-2, signatures for the rest._ ``` $ ./build/ripwire . --for="pagerank power iteration" --detail=2 - + @@ -1601,20 +1601,20 @@ test/showcasecapturecheck.sh (C) re-derives this range from the SAME repo every **Try it** -_Body-elided decl skeletons — recounted on this corpus. Measured as element bytes: the signature+doc elements --pack-signatures emits, against the SAME symbols' full bodies from --expand, with the CORPUS-ROOT PREFIX SUBTRACTED FROM BOTH SIDES. That subtraction is the whole methodology and the figure is meaningless without it: the root repeats inside every element's id= and p=, it is not what this verb elides, and counting it makes the headline a function of how deep the checkout happens to sit on disk — on one corpus, three spellings of the same root read 18.6 points apart before the subtraction and agree exactly after it. Root-neutralised on THIS repo: 89.7% fewer bytes at top-10, 88.0% at top-50, 87.8% at top-100 (re-derived 2026-10-10 when the C++ standard-member gate stopped std::vector/std::string calls such as out.push_back() and s.empty() from binding to in-tree namesakes by name: the ranked top-10/50 lost one-line container accessors (svector::push_back, WidePath::c_str, every empty) and gained one-line forwarding helpers and macros (kindIs, ASSUME, formatTo, emitTo) whose signature is nearly the whole body, so less of the set is elidable, from 92.7/88.7/87.6; before that, re-derived 2026-09-20 when the native Windows port landed: src/infra/os_win32.cpp and os_win32_logic.h are ~3,900 lines of new, heavily commented infra that the ranked top-10/50/100 now reach, and their bodies are this ratio's DENOMINATOR, so the figure rises without --pack-signatures eliding anything new, from top-50 87.1. Measured by test/showcasecapturecheck.sh's own recount arm on the combined tree, which is the gate that would otherwise report the drift; before that, re-derived 2026-09-17 at the self-check macro vocabulary rename: VERIFY/VERIFY_TEXT/VERIFY_DEBUG_ONLY/VERIFY_NOT_REACHED/VERIFY_SAME_THREAD/VERIFY_NO_ALIAS*/DYNMAP_VERIFY/DEGRADED_PATH_ALERT renamed to ASSUME/EXPECTS/ENSURES/DASSERT/UNREACHABLE/ASSUME_SAME_THREAD*/ASSUME_NO_ALIAS*/DYNMAP_ASSUME/DISCLOSE (plus new VALIDATE sites) across 839 identifier renames in 179 files, and a hand-written Diagnostics.h/diagnostics.cpp replacing the old ones outright: this moves both WHICH symbols the ranked top-10/50/100 hold and how large their bodies are, from top-50 85.2. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-12 when the rows dropped the path-repeating id= for the short sc= scope: the signature side shrank, the bodies did not; before that, 89.5% / 81.8% / 84.3% re-derived 2026-09-10 at the sibs= cap raise: kMaxExpandSibs went 8 -> 100, so --expand's bodies now carry the file context the old cap hid — 89.3% of all sibling names — and the body side is this ratio's DENOMINATOR, so the figure rises without --pack-signatures eliding anything new. Measured on a fixed tree with the top-50 membership and the signature side unchanged: top-50 from 71.0. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-09 at the printf-family -> std::print conversion: converting ~1,500 emitter call sites to rw::emitTo/emitRaw/formatTo across 93 files changes how large the ranked symbols' BODIES are, and the body side is this ratio's denominator — top-50 from 72.3. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-08 at the confident-zero round, issues #62/#63/#66: that change adds symbols to src/graphlegend.h and the new src/preprocdead.h and re-homes two long comment blocks from call sites onto the helpers they explain, which moves both WHICH symbols the ranked top-50 holds and how large their bodies are — top-50 from 74.0. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-06 at the stranger-audit fix round: the doctor, cache-sweep and html-provenance bodies grew this corpus's BODY side, moving top-50 from 75.6 — a real re-derivation, not a tolerance edit; before that, re-derived 2026-09-05 at the capture-audit close: lane L7's P16 caps --expand's sibs= at 8 names, which SHRINKS the body side of this ratio and moved the figure down from 84.5/80.2/80.6 — the V1 2026-08-15 re-center, when sibs=/inc= first grew the body side from 70.0/61.0/63.8, in reverse; both were real re-derivations, not tolerance edits). top-50 is the number to quote, because the sigs payload is top-50 regardless of --top-k and is therefore what THIS command emits. A single small/trivial body can still invert it (signature+doc bigger than the body), like the --format=columnar sibling below. test/showcasecapturecheck.sh (C) re-derives all three from this repo every run, in the same quantity, and fails if the caption and the recount drift apart._ +_Body-elided decl skeletons — recounted on this corpus. Measured as element bytes: the signature+doc elements --pack-signatures emits, against the SAME symbols' full bodies from --expand, with the CORPUS-ROOT PREFIX SUBTRACTED FROM BOTH SIDES. That subtraction is the whole methodology and the figure is meaningless without it: the root repeats inside every element's id= and p=, it is not what this verb elides, and counting it makes the headline a function of how deep the checkout happens to sit on disk — on one corpus, three spellings of the same root read 18.6 points apart before the subtraction and agree exactly after it. Root-neutralised on THIS repo: 87.9% fewer bytes at top-10, 87.6% at top-50, 88.6% at top-100 (re-derived 2026-11-20 when train 1118a's qualified C++ calls began binding the namespace their qualifier names (qual-ns-call-bind: this repo's graph went from 43,002 to 43,540 edges): the ranked top-10 lost the RW_CHECK_ macro and gained enumcount.h's enumTableAt, whose signature is most of its short body, from 89.7/88.0/87.8; before that, re-derived 2026-10-10 when the C++ standard-member gate stopped std::vector/std::string calls such as out.push_back() and s.empty() from binding to in-tree namesakes by name: the ranked top-10/50 lost one-line container accessors (svector::push_back, WidePath::c_str, every empty) and gained one-line forwarding helpers and macros (kindIs, ASSUME, formatTo, emitTo) whose signature is nearly the whole body, so less of the set is elidable, from 92.7/88.7/87.6; before that, re-derived 2026-09-20 when the native Windows port landed: src/infra/os_win32.cpp and os_win32_logic.h are ~3,900 lines of new, heavily commented infra that the ranked top-10/50/100 now reach, and their bodies are this ratio's DENOMINATOR, so the figure rises without --pack-signatures eliding anything new, from top-50 87.1. Measured by test/showcasecapturecheck.sh's own recount arm on the combined tree, which is the gate that would otherwise report the drift; before that, re-derived 2026-09-17 at the self-check macro vocabulary rename: VERIFY/VERIFY_TEXT/VERIFY_DEBUG_ONLY/VERIFY_NOT_REACHED/VERIFY_SAME_THREAD/VERIFY_NO_ALIAS*/DYNMAP_VERIFY/DEGRADED_PATH_ALERT renamed to ASSUME/EXPECTS/ENSURES/DASSERT/UNREACHABLE/ASSUME_SAME_THREAD*/ASSUME_NO_ALIAS*/DYNMAP_ASSUME/DISCLOSE (plus new VALIDATE sites) across 839 identifier renames in 179 files, and a hand-written Diagnostics.h/diagnostics.cpp replacing the old ones outright: this moves both WHICH symbols the ranked top-10/50/100 hold and how large their bodies are, from top-50 85.2. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-12 when the rows dropped the path-repeating id= for the short sc= scope: the signature side shrank, the bodies did not; before that, 89.5% / 81.8% / 84.3% re-derived 2026-09-10 at the sibs= cap raise: kMaxExpandSibs went 8 -> 100, so --expand's bodies now carry the file context the old cap hid — 89.3% of all sibling names — and the body side is this ratio's DENOMINATOR, so the figure rises without --pack-signatures eliding anything new. Measured on a fixed tree with the top-50 membership and the signature side unchanged: top-50 from 71.0. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-09 at the printf-family -> std::print conversion: converting ~1,500 emitter call sites to rw::emitTo/emitRaw/formatTo across 93 files changes how large the ranked symbols' BODIES are, and the body side is this ratio's denominator — top-50 from 72.3. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-08 at the confident-zero round, issues #62/#63/#66: that change adds symbols to src/graphlegend.h and the new src/preprocdead.h and re-homes two long comment blocks from call sites onto the helpers they explain, which moves both WHICH symbols the ranked top-50 holds and how large their bodies are — top-50 from 74.0. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-06 at the stranger-audit fix round: the doctor, cache-sweep and html-provenance bodies grew this corpus's BODY side, moving top-50 from 75.6 — a real re-derivation, not a tolerance edit; before that, re-derived 2026-09-05 at the capture-audit close: lane L7's P16 caps --expand's sibs= at 8 names, which SHRINKS the body side of this ratio and moved the figure down from 84.5/80.2/80.6 — the V1 2026-08-15 re-center, when sibs=/inc= first grew the body side from 70.0/61.0/63.8, in reverse; both were real re-derivations, not tolerance edits). top-50 is the number to quote, because the sigs payload is top-50 regardless of --top-k and is therefore what THIS command emits. A single small/trivial body can still invert it (signature+doc bigger than the body), like the --format=columnar sibling below. test/showcasecapturecheck.sh (C) re-derives all three from this repo every run, in the same quantity, and fails if the caption and the recount drift apart._ ``` $ ./build/ripwire . --pack-signatures --top-k=10 - - + + - + @@ -1640,7 +1640,7 @@ $ ./build/ripwire . --outline=rankGraphTeleport --top-k=0 signature rows. est_tokens=: price as emitted (an upper bound under compact). root=: p= relative to it. --> - + & p, float alpha = 0.85f ) { PROFILE_SCOPE_DESCRIBE( "rankGraph: PageRank (power iteration)" ); @@ -1671,7 +1671,7 @@ $ ./build/ripwire . --top-k=0 --expand=rankGraphTeleport - + of ; resolved callees (p= when not the b's file). window: shown= total= capped= (capped=1 cut). sibs_capped=/inc_capped=: 1 = cut. est_tokens=: price as emitted (an upper bound under compact). root=: p= relative to it. : that callee matched by name alone (receiver unproven); it … [line truncated: 410 more bytes on this line] -: that callee matched by name alone (receiver unproven); it does NOT mean the edge is false. sc=: enclosing scope; the full id is p::sc::n (p= of the row or its ) and selectors take it. amb=K: K calls split over several defs. locals_floor=1: locals= is a floor. role=hub: in= is 8 or more. s in= out= cx= ccx= loc= params= nest= cbo= lcom4= amp=: callers, callees, cyclomatic/cognitive complexity, lines, parameters, nesting depth, coupled types, class cohesion, callers + co-changed files. ev=/ev_why=: essential complexity (2+: jumps block extract-method; absent: 1) / the jumps behind it, tag:count. ev_floor=1: ev= is a FLOOR; noreturn calls, macro-hidden exits and unresolved gotos are unseen. layer=: built-in arch layer (game|infra|render|math|audio|ai|test) from a dir name in p=; absent if none. l=N: start line; only on a same-name overload's row, one row per body (bodyless decls fold into overloads=). f p=: a file; s t= n=: kind, name; c n=: a resolved callee. s k=: rank. --> + - - + + - + @@ -1843,10 +1843,10 @@ _File->file dependency graph (god-files, cycles)._ ``` $ ./build/ripwire . --deps - - - - + + + + @@ -1880,18 +1880,18 @@ _Complexity x recent git churn (maintenance pain)._ $ ./build/ripwire . --hotspots - - - + + + - + - + - + ... [17 more line(s); run it to see the whole thing] ``` @@ -1908,7 +1908,7 @@ _Token-normalized duplicate bodies._ ``` $ ./build/ripwire . --clones - + @@ -1918,7 +1918,7 @@ $ ./build/ripwire . --clones - + ... [17 more line(s); run it to see the whole thing] @@ -1939,8 +1939,8 @@ _Per-function size ranking, largest Halstead volume/token entropy/lines first ``` $ ./build/ripwire . --biggest-first --limit=8 - - + + @@ -1972,7 +1972,7 @@ _Per function, the non-local MUTABLE state it can reach (transitively), most wri ``` $ ./build/ripwire . --nonlocal-state --limit=8 - @@ -2007,7 +2007,7 @@ _The family join: per function, which of four orthogonal evidence families fire, ``` $ ./build/ripwire . --ensemble --limit=8 - @@ -2038,17 +2038,17 @@ _THE single wide-angle quality read: six families in one pass, an eligible/ranke ``` $ ./build/ripwire . --quality-panel - - - + + - + ... [17 more line(s); run it to see the whole thing] @@ -2075,13 +2075,13 @@ _The local-reasoning lens: to understand this symbol, how much must you know tha ``` $ ./build/ripwire . --context-ratio --limit=8 - - - - - - + + + + + + ... [23 more line(s); run it to see the whole thing] ``` @@ -2106,7 +2106,7 @@ _Score the naming-* rules against this repo's own rename history: proxy=old/(old ``` $ ./build/ripwire . --naming-calibration - + @@ -2141,16 +2141,16 @@ _The corpus's OWN case-convention vote per (language, kind) group; off-conventio ``` $ ./build/ripwire . --naming-consistency --limit=8 - - - + + + - + @@ -2178,8 +2178,8 @@ _The opt-in --lint modifier: naming predicates over LOCAL variable names too, C/ ``` $ ./build/ripwire . --lint --naming-locals - - + + @@ -2187,10 +2187,10 @@ $ ./build/ripwire . --lint --naming-locals - + - + ... [17 more line(s); run it to see the whole thing] ``` @@ -2213,7 +2213,7 @@ _Functions WITH a doc comment, most name-restating first: c_coeff (high = the co ``` $ ./build/ripwire . --comment-coherence --limit=8 - + @@ -2246,16 +2246,16 @@ _Files that change together in git (hidden coupling)._ ``` $ ./build/ripwire . --cochange - - + - + + - - - + + + ... [22 more line(s); run it to see the whole thing] ``` @@ -2278,16 +2278,16 @@ _Only pairs whose co-change RECURS in 2+ sub-windows of the mined window (sub_wi ``` $ ./build/ripwire . --cochange --cochange-recur=2 - + - - - + + + - - + + ... [22 more line(s); run it to see the whole thing] ``` @@ -2304,7 +2304,7 @@ _Modularity-violation GROUPS instead of pairs: "X co-changes with {A,B,C}, none ``` $ ./build/ripwire . --cochange --cochange-groups - + @@ -2333,19 +2333,19 @@ _Hotspots scoped to RECENT churn (the regression lens)._ ``` $ ./build/ripwire . --hotspots --since="2 weeks ago" - - - - - - - - + + + + + + + + + + - - ... [17 more line(s); run it to see the whole thing] ``` @@ -2371,7 +2371,7 @@ _Enforce layering rules (exit 2 on violation) — run against the repo's own tes $ ./build/ripwire . --arch=test/archfix/rules.txt - + @@ -2403,7 +2403,7 @@ _Enforce layering rules (exit 2 on violation) — run against the repo's own tes $ ./build/ripwire . --arch=test/archfix/rules.txt - + @@ -2430,7 +2430,7 @@ _Enforce layering rules (exit 2 on violation) — run against the repo's own tes $ ./build/ripwire . --arch=test/archfix/rules.txt - + @@ -2458,8 +2458,8 @@ _Built-in AST checks (c-cast, goto, unsafe-c-fn, ...)._ ``` $ ./build/ripwire . --lint - - + + @@ -2467,10 +2467,10 @@ $ ./build/ripwire . --lint - + - + ... [17 more line(s); run it to see the whole thing] ``` @@ -2567,8 +2567,8 @@ _DROP two families, applied after selection; the raw select=/ignore= you passed ``` $ ./build/ripwire . --lint --lint-ignore=naming-,cache- - + @@ -2576,10 +2576,10 @@ $ ./build/ripwire . --lint --lint-ignore=naming-,cache- - + - + ... [17 more line(s); run it to see the whole thing] ``` @@ -2681,15 +2681,15 @@ _Cluster the call graph into cohesive modules._ ``` $ ./build/ripwire . --communities - + - - - - + + + + - + @@ -2712,7 +2712,7 @@ _Drill into ONE call-graph community by id — the drill= the --communities outp ``` $ ./build/ripwire . --community=0 - ``` @@ -2737,15 +2737,15 @@ _Nested module hierarchy (multi-level Louvain) + cross-module bridges — shown_ ``` $ ./build/ripwire . --zoom - - + + - - + + @@ -2774,16 +2774,16 @@ $ ./build/ripwire . --report # ripwire architecture report -4813 files · 43892 symbols · 43002 edges · 5098 modules (20772 call-graph isolated) +4825 files · 44048 symbols · 43566 edges · 5028 modules (20789 call-graph isolated) Root: `.` -Call-graph isolate provenance: 5690 declaration, 3459 header, 4579 source, 7044 document; 0 connected Louvain singletons +Call-graph isolate provenance: 5708 declaration, 3474 header, 4561 source, 7046 document; 0 connected Louvain singletons -## Modules (call-graph clusters; showing 12 of 5098) -- **src::emitTo@infra/emit.h:53:2760 [write,run,emit]** — 1598 symbols -- **src::kindIs@infra/nodekind.h:46:3271 [push,emit,read]** — 701 symbols -- **src::DISCLOSE@infra/Diagnostics.h:622:43913 [read,compute,run]** — 554 symbols +## Modules (call-graph clusters; showing 12 of 5028) +- **src::emitTo@infra/emit.h:53:2760 [write,run,emit]** — 1893 symbols +- **src::kindIs@infra/nodekind.h:46:3271 [push,emit,read]** — 706 symbols +- **src::DISCLOSE@infra/Diagnostics.h:622:43913 [read,compute,resolve]** — 546 symbols ... [17 more line(s); run it to see the whole thing] ``` @@ -2800,10 +2800,10 @@ _Cross-module call seams no test reaches. NOW carries seam_pairs/shown/capped._ ``` $ ./build/ripwire . --seams - + - + @@ -2831,15 +2831,15 @@ $ ./build/ripwire . --mermaid %% ripwire --mermaid: module (directory) dependency graph — node = dir (symbol count), edge = inter-module calls (>= 3). Render at mermaid.live. flowchart LR subgraph sg0 ["src"] - n105["src
14247"] - n106["src/infra
1679"] + n105["src
14348"] + n106["src/infra
1680"] end subgraph sg1 ["test"] - n107["test
6942"] + n107["test
6961"] n750["test/legochargefix
546"] n472["test/fixtures/recallpassage
314"] n491["test/fnslotcpp2
285"] - n913["test/lib
235"] + n913["test/lib
242"] n712["test/ifacepeelfix/cpp
206"] n1260["test/slotjoinfix
182"] ... [17 more line(s); run it to see the whole thing] @@ -2860,8 +2860,8 @@ _Bus-factor: recency-weighted author ownership per file._ ``` $ ./build/ripwire . --owners - - + + @@ -2891,17 +2891,20 @@ _Internal functions with no caller found in the index — a name-based graph rea ``` $ ./build/ripwire . --dead-code=src - + - + - - -... [20 more line(s); run it to see the whole thing] + + + + + +... [1 more line(s); run it to see the whole thing] ``` **Shaped by:** `--safe-delete`, `--limit` @@ -2964,7 +2967,7 @@ _The same run, the same clone, the folded rows printed back: each stale acknowle ``` $ ./build/ripwire . --quality-delta --show-stale - @@ -2993,7 +2996,7 @@ _The regression-free answer on a clone whose ledger holds stale acknowledgements ``` $ ./build/ripwire . --quality-delta - ``` @@ -3018,7 +3021,7 @@ _The regression-free answer on a clone whose ledger holds stale acknowledgements ``` $ ./build/ripwire . --quality-delta - ``` @@ -3043,7 +3046,7 @@ _A ref range run for two of the twelve kinds only: the named kinds' rows are exa ``` $ ./build/ripwire . --quality-delta=HEAD~1..HEAD --quality-kinds=complexity,dead-code -

-

+

-

-… [187 more display lines; full output is 18223 bytes on 1 raw line(s)] +

+… [188 more display lines; full output is 18300 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --lint --naming-locals` *The opt-in --lint modifier: naming predicates over LOCAL variable names too, C/C++ only, only inside functions already past a size/complexity gate.* -**wall time: 3.90s** +**wall time: 5.93s** ````` - - + + @@ -5967,27 +5913,27 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir - + - - + + - - + + - + - + - -… [638 more display lines; full output is 72794 bytes on 1 raw line(s)] + +… [638 more display lines; full output is 72745 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --lint-catalog` @@ -6070,7 +6016,7 @@ ripwire.path/v1 : one DIRECTED call path from= to to=, each a *Run ONLY one rule family; the root carries selected="K of N" so a filtered zero is never confusable with an unfiltered one.* -**wall time: 2.72s** +**wall time: 3.16s** ````` @@ -6110,12 +6056,12 @@ ripwire.path/v1 : one DIRECTED call path from= to to=, each a *DROP two families, applied after selection; the raw select=/ignore= you passed rides on the root.* -**wall time: 3.30s** +**wall time: 4.99s** ````` - + @@ -6123,17 +6069,17 @@ ripwire.path/v1 : one DIRECTED call path from= to to=, each a - + - - + + - + - + @@ -6143,14 +6089,14 @@ ripwire.path/v1 : one DIRECTED call path from= to to=, each a 20 delta < 0.02 && delta > -0.02 0.02 -… [710 more display lines; full output is 67089 bytes on 1 raw line(s)] +… [710 more display lines; full output is 67103 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --lint --lint-select=goto --lint-max-per-rule=4` *A rule that spends its own match budget (here 4, set BELOW the default 5000 so the floor shows on this repo): goto carries count_capped="1", its count= is a FLOOR, and the root names the call that counts the rest — findings_next= re-runs only the floored rules under a 10x budget.* -**wall time: 2.98s** +**wall time: 4.01s** ````` @@ -6167,7 +6113,7 @@ ripwire.path/v1 : one DIRECTED call path from= to to=, each a *Pasting that findings_next=: the same rule under a 10x budget counts its true total — no count_capped=, no findings_next=.* -**wall time: 3.56s** +**wall time: 4.47s** ````` @@ -6197,7 +6143,7 @@ ripwire.path/v1 : one DIRECTED call path from= to to=, each a *An unresolvable PREFIX refuses (exit 1) with a did-you-mean from a real edit distance (one character off cache-).* -**exit code: 1** — **wall time: 2.92s** +**exit code: 1** — **wall time: 3.27s** ````` (empty) @@ -6213,7 +6159,7 @@ ripwire: --lint-select: 'cach-' matches no rule or family (did you mean 'cache-' *A PREFIX with no near miss at all: the refusal points at --lint-catalog instead of guessing.* -**exit code: 1** — **wall time: 2.61s** +**exit code: 1** — **wall time: 3.00s** ````` (empty) @@ -6229,7 +6175,7 @@ ripwire: --lint-select: 'nosuchfamily' matches no rule or family — see --lint- *The SAME findings as SARIF 2.1.0 (what github/codeql-action/upload-sarif consumes) — pure re-serialization, results count == the native run's.* -**wall time: 3.20s** +**wall time: 3.49s** ````` {"version":"2.1.0","$schema":"https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json","runs":[{"tool":{"driver":{"name":"ripwire","rules":[{"id":"c-style-cast","shortDescription":{"text":"c-style-cast"},"properties":{"builtin":true,"capped":false,"applicable": … [line truncated: 7 more bytes on this line] @@ -6262,13 +6208,13 @@ ripwire: --lint-select: 'nosuchfamily' matches no rule or family — see --lint- {"id":"atom-nested-ternary","shortDescription":{"text":"atom-nested-ternary"},"properties":{"builtin":true,"capped":false,"applicable":true}}, {"id":"atom-implicit-predicate","shortDescription":{"text":"atom-implicit-predicate"},"properties":{"builtin":true,"capped":false,"applicable":true}}, {"id":"atom-octal-literal","shortDescription":{"text":"atom-octal-literal"},"properties":{"builtin":true,"capped":false,"applicable":true}}, -… [17007 more display lines; full output is 2414195 bytes on 1 raw line(s)] +… [17033 more display lines; full output is 2418273 bytes on 1 raw line(s)] ````` Parsed summary of the same SARIF (past the display cut): ````` -sarif 2.1.0 rules= 39 results= 8499 +sarif 2.1.0 rules= 39 results= 8512 ````` ## `./build/ripwire . --lint --sarif --limit=5` @@ -6291,11 +6237,11 @@ ripwire: --sarif always emits the full result set — drop --limit=N/--offset=M *The Delta Maintainability Model scalar for the WORKING TREE vs HEAD — recorded against a CLEAN tree (the sandbox section shows a real delta). UNAVAILABLE is a stated reason, never 0 or 1.* -**wall time: 8.82s** +**wall time: 8.25s** ````` -

@@ -6306,14 +6252,14 @@ ripwire: --sarif always emits the full result set — drop --limit=N/--offset=M *The per-commit scalar: HEAD vs its first parent, with the three separately actionable sub-scores.* -**wall time: 17.74s** +**wall time: 17.69s** ````` - - -

-

+ + +

+

````` @@ -6321,14 +6267,14 @@ ripwire: --sarif always emits the full result set — drop --limit=N/--offset=M *The range form: tree HEAD vs tree HEAD~3.* -**wall time: 19.00s** +**wall time: 18.24s** ````` - -

-

+ +

+

````` @@ -6336,11 +6282,11 @@ ripwire: --sarif always emits the full result set — drop --limit=N/--offset=M *Modularity-violation GROUPS instead of pairs: "X co-changes with {A,B,C}, none of which it depends on" — a greedy cover, disclosed as greedy.* -**wall time: 5.09s** +**wall time: 4.03s** ````` - + @@ -6369,48 +6315,48 @@ ripwire: --sarif always emits the full result set — drop --limit=N/--offset=M -… [990 more display lines; full output is 66745 bytes on 1 raw line(s)] +… [989 more display lines; full output is 66680 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --cochange --cochange-recur=2` *Only pairs whose co-change RECURS in 2+ sub-windows of the mined window (sub_windows= is the denominator) — a one-off sprint stops reading like a structural defect.* -**wall time: 4.80s** +**wall time: 5.41s** ````` - + - - - + + + - - + + - - + - + + - + - - + + ````` @@ -6418,7 +6364,7 @@ ripwire: --sarif always emits the full result set — drop --limit=N/--offset=M *The HTML graph with the initial colour mode set to community (the page embeds all five modes and keeps a live selector).* -**wall time: 4.95s** +**wall time: 4.39s** ````` (empty) @@ -6427,14 +6373,14 @@ ripwire: --sarif always emits the full result set — drop --limit=N/--offset=M Artifact written: ````` - 155106 /aux/map2.html + 155140 /aux/map2.html ````` ## `./build/ripwire . --index-out=/aux/ci_index` *CI generate-and-exit: cold-parse and write BOTH committable cache families (lean + rich), no map on stdout.* -**wall time: 9.49s** +**wall time: 6.83s** ````` (empty) @@ -6443,33 +6389,33 @@ Artifact written: stderr: ````` -ripwire: --index-out wrote /aux/ci_index.lean.ripwirecache (39659984 bytes, lean family) -ripwire: --index-out wrote /aux/ci_index.rich.ripwirecache (80032730 bytes, rich family) +ripwire: --index-out wrote /aux/ci_index.lean.ripwirecache (39772479 bytes, lean family) +ripwire: --index-out wrote /aux/ci_index.rich.ripwirecache (80238101 bytes, rich family) ````` Artifact written: ````` - 39659984 /aux/ci_index.lean.ripwirecache - 80032730 /aux/ci_index.rich.ripwirecache - 119692714 total + 39772479 /aux/ci_index.lean.ripwirecache + 80238101 /aux/ci_index.rich.ripwirecache + 120010580 total ````` ## `./build/ripwire . --cache=/aux/ci_index.lean.ripwirecache --top-k=3` *Consume the lean artifact in a PR job: restore-equivalence, never blob-byte-identity.* -**wall time: 2.72s** +**wall time: 2.59s** ````` - - + + - + @@ -6480,7 +6426,7 @@ Artifact written: - + @@ -6492,24 +6438,24 @@ Artifact written: -… [80 more display lines; full output is 10006 bytes on 1 raw line(s)] +… [81 more display lines; full output is 10053 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --pin-census=/aux/pin_census.tsv --top-k=3` *Eval-only: a per-call-site census of WHICH mechanism resolved each call, and the canonical id of every surviving target.* -**wall time: 1.94s** +**wall time: 3.23s** ````` - - + + - + @@ -6520,7 +6466,7 @@ Artifact written: - + @@ -6532,7 +6478,7 @@ Artifact written: -… [80 more display lines; full output is 10006 bytes on 1 raw line(s)] +… [81 more display lines; full output is 10053 bytes on 1 raw line(s)] ````` Artifact written: @@ -6546,18 +6492,18 @@ Artifact written: # whose template-argument list spans lines keeps its line break as \n instead of splitting the row. # line is the 1-based call-site line in the caller's file (v2, appended LAST so v1 readers are unchanged): # the key a SCIP occurrence joins on, so a coverage loss can be classified per site instead of guessed. - 178117 /aux/pin_census.tsv + 178660 /aux/pin_census.tsv ````` ## `./build/ripwire . --plan-lint=test/planlintfix/wave.md` *The house PLAN/DESIGN format's STRUCTURE check — never semantics; exit 2 when a card or ledger row gates.* -**exit code: 2** — **wall time: 3.95s** +**exit code: 2** — **wall time: 3.06s** ````` - + @@ -6575,11 +6521,11 @@ Artifact written: *The ledger-shaped fixture through the same check (exit 2: one gating card).* -**exit code: 2** — **wall time: 2.64s** +**exit code: 2** — **wall time: 1.60s** ````` - + @@ -6591,18 +6537,18 @@ Artifact written: *--doctor plus a LIVE integration inspection for one agent: PATH binary, installed-skill manifest parity, hook executability, MCP wiring — read-only, fixed repair commands, never config contents; exit 1 when any check fails.* -**exit code: 1** — **wall time: 37.74s** +**exit code: 1** — **wall time: 18.73s** ````` - - + - - + + - - + @@ -6638,21 +6584,21 @@ Everything below runs with `cwd` = the throwaway clone at `/dirty` (`gi *Situational report for a real diff: blast radius + tests + co-change + forgotten co-change partners.* -**wall time: 19.43s** +**wall time: 13.33s** ````` ripwire situational-awareness — 1 changed file(s), 13 symbols in them root: . -at: da897642e+dirty +at: cee081132+dirty change_set: granularity=file changed_symbols=13 file_symbols=13 files_narrowed=0 files_file_granular=1 diff_hunks=7 diff_hunks_located=6 diff_hunks_unlocated=1 — seeds = symbols a diff -U0-vs-HEAD hunk overlaps (function/method body spans only); an unlocated hunk (module-level, deletion, rename) … [line truncated: 34 more bytes on this line] - [1] blast radius: 351 symbols across 79 files transitively depend on these changes (showing 8 of 79 files — shown=8 total=79 capped=1 prcontext_cap=20 (--pr-context's own per-file list is cut at 20 too); next: --situ --limit=79) - counts_floor=1 graph_ambiguous=3634 graph_unresolved=20011 graph_unindexed=313 (files no grammar in this build could read at all) (the map header's own gauges) — every count above is a FLOOR, never a total: call edges are name-based, so dynamic dispatch, callbacks and macros can be missing … [line truncated: 45 more bytes on this line] + [1] blast radius: 356 symbols across 79 files transitively depend on these changes (showing 8 of 79 files — shown=8 total=79 capped=1 prcontext_cap=20 (--pr-context's own per-file list is cut at 20 too); next: --situ --limit=79) + counts_floor=1 graph_ambiguous=3968 graph_unresolved=19992 graph_unindexed=313 (files no grammar in this build could read at all) (the map header's own gauges) — every count above is a FLOOR, never a total: call edges are name-based, so dynamic dispatch, callbacks and macros can be missing … [line truncated: 45 more bytes on this line] src/mcpverbs.h (37 dependent symbols) src/verbs_for.h (27 dependent symbols) src/verbs_quality.h (17 dependent symbols) src/verbs_navigate.h (16 dependent symbols) + src/graph.h (15 dependent symbols) src/quality.h (15 dependent symbols) - src/graph.h (12 dependent symbols) src/forfilesyms.h (11 dependent symbols) src/main.cpp (10 dependent symbols) [2] tests to run (6) order=evidence: [changed] you edited it, [partner] named after a changed file, then hops asc (1 = direct); "(n): a, b" = n runner-less files sharing that evidence; a (run: …) is relative to root: @@ -6662,21 +6608,27 @@ at: da897642e+dirty test/verify_csr.cpp [hops=2] (run: bash test/a9disclosurecheck.sh) test/includeprecise_unit.cpp [hops=4] (run: bash test/includeprecisecheck.sh) test/rustimport_unit.cpp [hops=4] (run: bash test/rustimportprecisecheck.sh) - script_gates_unmodelled=942 — test/*.sh gates never appear above: script-to-binary edges are not call edges (a path count) - [3] co-change — usually edited with these but NOT in your diff (0) window="18mo@HEAD" commits="7839": - (none — 7839 commits were mined and none co-edited a file outside your diff) + script_gates_unmodelled=945 — test/*.sh gates never appear above: script-to-binary edges are not call edges (a path count) + [3] co-change — usually edited with these but NOT in your diff (0) window="18mo@HEAD" commits="7886": + (none — 7886 commits were mined and none co-edited a file outside your diff) next: --test-gate ````` +stderr: + +````` +ripwire: cache : over its 2048 MiB budget — evicted 13 blob(s) of other roots or other ripwire builds (this build's blobs for this root are kept) +````` + ## `./build/ripwire . --test-gate` *The pre-PR gate with real obligations — exit 4 when tests-to-run or untested blast radius is non-empty.* -**exit code: 4** — **wall time: 15.83s** +**exit code: 4** — **wall time: 10.37s** ````` - @@ -6689,7 +6641,7 @@ at: da897642e+dirty - + @@ -6715,11 +6667,11 @@ at: da897642e+dirty *Every row carries p="file:line", the gating rows are marked gating="1" and now bar= (the threshold each numeric row is judged against), and the exit-2 refusal prints a naming line on stderr; a gating row carries a pasteable next=.* -**exit code: 2** — **wall time: 55.92s** +**exit code: 2** — **wall time: 52.73s** ````` - @@ -6748,7 +6700,7 @@ at: da897642e+dirty -… [159 more display lines; full output is 19544 bytes on 1 raw line(s)] +… [161 more display lines; full output is 19753 bytes on 1 raw line(s)] ````` stderr: @@ -6762,11 +6714,11 @@ ripwire: --quality-delta gating: 5 preexisting-worse major finding(s); first: ap *The same gating report under --legend=full — same rows, same exit 2; the default compact comment (schema="ripwire.quality-delta/v1", the shape an agent's edit loop should run) becomes ~4 KB of prose legend.* -**exit code: 2** — **wall time: 31.26s** +**exit code: 2** — **wall time: 18.59s** ````` - @@ -6795,7 +6747,7 @@ ripwire: --quality-delta gating: 5 preexisting-worse major finding(s); first: ap -… [159 more display lines; full output is 24936 bytes on 1 raw line(s)] +… [161 more display lines; full output is 25145 bytes on 1 raw line(s)] ````` stderr: @@ -6809,10 +6761,10 @@ ripwire: --quality-delta gating: 5 preexisting-worse major finding(s); first: ap *The same findings as JSON (one of the CI/scripting verbs --json supports) — same exit 2 as the XML form.* -**exit code: 2** — **wall time: 27.40s** +**exit code: 2** — **wall time: 19.83s** ````` -{"baseline":"git-HEAD","regressions":9,"minor":1,"acked":0,"stale":177,"preexisting-worse":6,"new-symbol":3,"gating":5,"register-macro-excluded":63,"api-new-surface":2,"at":"da897642e+dirty","renames":68,"rename_window_commits":400,"acked_by_rename":0,"acked_by_content":0,"renames_window_truncated": … [line truncated: 240 more bytes on this line] +{"baseline":"git-HEAD","regressions":9,"minor":1,"acked":0,"stale":179,"preexisting-worse":6,"new-symbol":3,"gating":5,"register-macro-excluded":63,"api-new-surface":2,"at":"cee081132+dirty","renames":68,"rename_window_commits":400,"acked_by_rename":0,"acked_by_content":0,"renames_window_truncated": … [line truncated: 240 more bytes on this line] {"kind":"complexity","sym":"src/infra/sortutil.h::rw::sortutil::lessByScoreDescId","was":1,"now":67,"p":"src/infra/sortutil.h:52","gating":true}, {"kind":"dead-code","sym":"src/infra/sortutil.h::rw::sortutil::nonNegativeFloatAscKeyCopy","p":"src/infra/sortutil.h:122","origin":"new-symbol"}, {"kind":"dead-code","sym":"src/infra/sortutil.h::rw::sortutil::sortScoredIdsWithOptions","p":"src/infra/sortutil.h:132","origin":"new-symbol"}, @@ -6842,7 +6794,7 @@ ripwire: --quality-delta gating: 5 preexisting-worse major finding(s); first: ap {"kind":"api-surface:new-symbol","key":"36e39c7ab0fc1686","why":"target-gone"}, {"kind":"api-surface:new-symbol","key":"4bce64bd920de0c3","why":"target-gone"}, {"kind":"api-surface:new-symbol","key":"61f0e361ef7dee27","why":"target-gone"}, -… [156 more display lines; full output is 18157 bytes on 1 raw line(s)] +… [158 more display lines; full output is 18380 bytes on 1 raw line(s)] ````` stderr: @@ -6856,7 +6808,7 @@ ripwire: --quality-delta gating: 5 preexisting-worse major finding(s); first: ap *NEW FLAG: --ack-only matching nothing REFUSES rather than falling back to acking everything.* -**exit code: 1** — **wall time: 22.90s** +**exit code: 1** — **wall time: 12.95s** ````` (empty) @@ -6874,7 +6826,7 @@ ripwire: --ack-only=zzznope matched none of the 9 finding(s) — nothing accepte *NEW FLAG: ack only the api-surface findings — a per-finding ratchet instead of a rubber stamp.* -**wall time: 24.06s** +**wall time: 15.80s** ````` (empty) @@ -6892,11 +6844,11 @@ ripwire: acknowledged 1 of 9 finding(s) (8 left UNACKED by --ack-only, 0 already *Re-run after the partial ack: acked=3, the rest still gate (exit 2).* -**exit code: 2** — **wall time: 32.14s** +**exit code: 2** — **wall time: 26.48s** ````` - @@ -6925,7 +6877,7 @@ ripwire: acknowledged 1 of 9 finding(s) (8 left UNACKED by --ack-only, 0 already -… [158 more display lines; full output is 19247 bytes on 1 raw line(s)] +… [160 more display lines; full output is 19456 bytes on 1 raw line(s)] ````` stderr: @@ -6955,11 +6907,11 @@ ripwire: --ack-only=SUBSTR narrows --quality-ack — pass both (e.g. ripwire row identical.* -**wall time: 7.57s** +**wall time: 2.99s** ````` - @@ -6987,31 +6939,31 @@ ripwire: --ack-only=SUBSTR narrows --quality-ack — pass both (e.g. ripwire - - + + - + - + - @@ -7027,30 +6979,30 @@ ripwire: --ack-only=SUBSTR narrows --quality-ack — pass both (e.g. ripwire ) and selectors take it. layer=: built-in arch layer (game|infra|render|math|audio|ai|test) from a dir name in p=; absent if none. f p=: a file; s t= n=: kind, name; c n=: a resolved callee. s k=: rank. --> - - + + - + - + - + - + @@ -7060,11 +7012,11 @@ ripwire: --ack-only=SUBSTR narrows --quality-ack — pass both (e.g. ripwire of ; dup_loc=/dup_pct=. window: shown= total= capped= has_more= next_offset= offset= limit= (capped=1 cut; next_offset= pastes as offset=). root=: p= relative to it. groups=/type3=: Type-2 and Type-3 group totals over all groups; total= is their sum. exempt_groups=N: groups whose members all sit on fixture/shell-runner paths quality-delta duplication ignores. idiom_groups=/demoted_groups=: groups of one recognized idiom / those quality-delta demotes to minor; floors. clone_groups=N: clusters after merging pairs (rows sharing gid=); a floor under type3_capped=1. total_loc=N: lines of every function body the detector considered; dup_pct= is dup_loc= over it. group exempt=fixture|shell-runner: every member is on such a path; quality-delta duplication ignores it. group idiom=: the recognized shape every member spells: threshold-ladder, switch-name-table, builder-chain, one-statement. --> - + @@ -7074,7 +7026,7 @@ ripwire: --ack-only=SUBSTR narrows --quality-ack — pass both (e.g. ripwire - + @@ -7084,7 +7036,7 @@ ripwire: --ack-only=SUBSTR narrows --quality-ack — pass both (e.g. ripwire - + @@ -7100,12 +7052,12 @@ ripwire: --ack-only=SUBSTR narrows --quality-ack — pass both (e.g. ripwire ; v=unknown = no merge base. at=: commit+dirty+shallow. head=: the HEAD commit, bare 9-hex sha (at= adds +dirty). head_ref=: HEAD's branch (HEAD when detached); that branch itself is not scanned. refs=N: local branches scanned (refs/heads only); unmerged + superseded + merged + unknown = refs. blobs=N: distinct git blobs read for the sweep. unmerged=N: refs whose authored work the live line genuinely lacks. superseded=N: refs whose work the live line re-implemented (removed the same base code). merged=N: refs whose work HEAD already has; omitted from the rows. name=: the local branch. tip=: the branch tip commit (9 hex). date=: the tip's committer date, YYYY-MM-DD. files=N: files with stray lines; rows capped at 12, a more element counts the rest (detail=1 lists all). ref superseded=N>: of this ref's stray= lines, those in files the live line re-implemented. unknown=N: refs that could not be analysed (v=unknown, e.g. no merge base); never counted merged. --> - - + + ````` @@ -7120,11 +7072,11 @@ stderr: *CHANGED: --plan surfaces those same refs as an row rather than silently dropping them.* -**wall time: 11.86s** +**wall time: 7.57s** ````` - + ````` @@ -7139,11 +7091,11 @@ stderr: *The DMM scalar on a REAL delta: the sandbox edit grew one unit past the nesting/complexity thresholds and added an 8-parameter one, so dmm is low and the three sub-scores say which property moved.* -**wall time: 17.55s** +**wall time: 11.27s** ````` -

@@ -7154,11 +7106,11 @@ stderr: *OWNERSHIP partition for a shared tree: every regression here lives in src/infra/, so under a scope naming src/graph.h they ALL print under with a do-not-ack banner and never gate — scoped-out-gating= says how many would have.* -**wall time: 32.87s** +**wall time: 19.61s** ````` - @@ -7187,7 +7139,7 @@ stderr: -… [161 more display lines; full output is 19514 bytes on 1 raw line(s)] +… [163 more display lines; full output is 19723 bytes on 1 raw line(s)] ````` stderr: @@ -7200,7 +7152,7 @@ ripwire: no ./.ripwire_quality_baseline — auto-comparing the working tree vs g *The rubber-stamp guard: an --ack-only that names an OUT-OF-SCOPE row refuses (exit 1) and writes nothing.* -**exit code: 1** — **wall time: 18.64s** +**exit code: 1** — **wall time: 14.99s** ````` (empty) @@ -7220,11 +7172,11 @@ ripwire: --ack-only=api-surface selects 1 finding(s) OUT OF SCOPE for --scope=sr *The continuation packet with a REAL diff: verified changed symbols + blast radius + tests-to-run, then the heuristic rows.* -**wall time: 13.70s** +**wall time: 10.36s** ````` - + @@ -7250,11 +7202,11 @@ ripwire: --ack-only=api-surface selects 1 finding(s) OUT OF SCOPE for --scope=sr - - - - - + + + + + ````` @@ -7263,10 +7215,10 @@ ripwire: --ack-only=api-surface selects 1 finding(s) OUT OF SCOPE for --scope=sr *Pin a field note (write-side memory) to a symbol; committed to .ripwire_notes in the sandbox. The BARE name is resolved through the same resolver the read verbs use and stored as the canonical id — the rewrite is echoed on stderr, because a silent one is not a disclosure.* -**wall time: 2.29s** +**wall time: 1.06s** ````` -src/infra/sortutil.h::rw::sortutil::lessByScoreDescId 2026-11-20 keep this branch-free — it sits inside the PageRank sort comparator da897642edba82f8c83c0b65ff9fb6bd4738681e integration/train-1117d2-s +src/infra/sortutil.h::rw::sortutil::lessByScoreDescId 2026-11-20 keep this branch-free — it sits inside the PageRank sort comparator cee081132922142dae18338f8b8849795aedae65 integration/train-1118a ````` stderr: @@ -7280,7 +7232,7 @@ ripwire: --note-add: target 'lessByScoreDescId' canonicalised to 'src/infra/sort *The note is listed under the canonical id, dangling="0" — i.e. it will actually surface. (Before the H1 fix the bare name was stored verbatim and read dangling="1": recorded, and surfaced nowhere.)* -**wall time: 1.58s** +**wall time: 1.09s** ````` @@ -7293,7 +7245,7 @@ ripwire: --note-add: target 'lessByScoreDescId' canonicalised to 'src/infra/sort - + @@ -7310,7 +7262,7 @@ ripwire: --note-add: target 'lessByScoreDescId' canonicalised to 'src/infra/sort *Two definitions carry this name, so the write REFUSES rather than pick one: a note keys ONE canonical id, and an ambiguous selector is refused, never silently narrowed. Every candidate is named, with a runnable retry.* -**exit code: 1** — **wall time: 2.37s** +**exit code: 1** — **wall time: 1.31s** ````` (empty) @@ -7327,7 +7279,7 @@ ripwire: --note-add: target 'gitOneLine' is ambiguous — it matches 2 definitio *A name that resolves to nothing is refused with the read verbs' own did-you-mean — never written as a dead note.* -**exit code: 1** +**exit code: 1** — **wall time: 1.59s** ````` (empty) @@ -7344,20 +7296,20 @@ ripwire: --note-add: target not found: lessByScoreDescIdd (did you mean 'lessByS *The same symbol addressed by its CANONICAL id: already canonical, so nothing is rewritten and both notes land on ONE target.* -**wall time: 2.33s** +**wall time: 2.19s** ````` -src/infra/sortutil.h::rw::sortutil::lessByScoreDescId 2026-11-20 chose the flat two-branch compare over the nested ladder because the comparator sits inside the PageRank sort da897642edba82f8c83c0b65ff9fb6bd4738681e integration/train-1117d2-s +src/infra/sortutil.h::rw::sortutil::lessByScoreDescId 2026-11-20 chose the flat two-branch compare over the nested ladder because the comparator sits inside the PageRank sort cee081132922142dae18338f8b8849795aedae65 integration/train-1118a ````` ## `./build/ripwire . --expand=lessByScoreDescId --top-k=0` *Both notes riding along with the symbol's body — the elements follow the body, past the display cut, so they are extracted below.* -**wall time: 1.89s** +**wall time: 2.13s** ````` - + @@ -7387,16 +7339,16 @@ src/infra/sortutil.h::rw::sortutil::lessByScoreDescId 2026-11-20 chose the flat } else { -… [22 more display lines; full output is 3073 bytes on 47 raw line(s)] +… [22 more display lines; full output is 3067 bytes on 47 raw line(s)] ````` The element on the same output — past the 30-line display cut above: ````` - + - + ````` @@ -7421,7 +7373,7 @@ ripwire: --edit-payload is empty; empty never means delete *Whole-symbol replace without a whole-file read: the payload is the ORIGINAL flat body, so this edit undoes the sandbox's deep-nesting regression. The receipt's span is the POST-edit byte range; replaced_bytes counts the old bytes overwritten.* -**wall time: 13.02s** +**wall time: 11.77s** Input file: @@ -7438,13 +7390,13 @@ inline bool lessByScoreDescId( const std::vector& scores, std::uint32_t a ````` {"applied":"replace_symbol_body","symbol":"lessByScoreDescId","file":"src/infra/sortutil.h","span":{"start":2428,"end":2641},"lines":{"start":52,"end":59},"replaced_bytes":1718,"old_file_bytes":10184,"new_file_bytes":8679,"file_eol":"lf","eol_normalized":false,"trailing_newline_folded":true,"separat … [line truncated: 830 more bytes on this line] -"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, +"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, {"p":"test/adaptivecutshapefix/adaptive_cut_shape_test.cpp","hops":2,"run":"bash test/adaptivecutshapecheck.sh"}, {"p":"test/forrowfeatures_unit.cpp","hops":2,"run":"bash test/forrowfeaturescheck.sh"}, {"p":"test/verify_csr.cpp","hops":2,"run":"bash test/a9disclosurecheck.sh"}, {"p":"test/includeprecise_unit.cpp","hops":4,"run":"bash test/includeprecisecheck.sh"}, {"p":"test/rustimport_unit.cpp","hops":4,"run":"bash test/rustimportprecisecheck.sh"}], -"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":942,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"next":"bash test/greptiercheck.sh"} +"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":945,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"next":"bash test/greptiercheck.sh"} ````` stderr: @@ -7457,15 +7409,15 @@ ripwire edit: applied atomically; receipt carries region, blob_sha, edit_check, *The closed loop: contract unchanged (same params, same publicness) after the replace — nothing provably incompatible.* -**wall time: 7.18s** +**wall time: 3.87s** ````` - + - + @@ -7479,17 +7431,17 @@ ripwire edit: applied atomically; receipt carries region, blob_sha, edit_check, *Insert immediately AFTER one uniquely-resolved definition; replaced_bytes=0 because the insert verbs never overwrite. The receipt carries the folded post-edit verification (lines=, edit_check, tests_to_run) so the loop closes in one call.* -**wall time: 12.60s** +**wall time: 6.68s** ````` {"applied":"insert_after_symbol","symbol":"lessByScoreDescId","file":"src/infra/sortutil.h","span":{"start":2641,"end":2729},"lines":{"start":59,"end":61},"replaced_bytes":0,"old_file_bytes":8679,"new_file_bytes":8767,"file_eol":"lf","eol_normalized":false,"trailing_newline_folded":true,"separator_p … [line truncated: 650 more bytes on this line] -"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, +"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, {"p":"test/adaptivecutshapefix/adaptive_cut_shape_test.cpp","hops":2,"run":"bash test/adaptivecutshapecheck.sh"}, {"p":"test/forrowfeatures_unit.cpp","hops":2,"run":"bash test/forrowfeaturescheck.sh"}, {"p":"test/verify_csr.cpp","hops":2,"run":"bash test/a9disclosurecheck.sh"}, {"p":"test/includeprecise_unit.cpp","hops":4,"run":"bash test/includeprecisecheck.sh"}, {"p":"test/rustimport_unit.cpp","hops":4,"run":"bash test/rustimportprecisecheck.sh"}], -"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":942,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"next":"bash test/greptiercheck.sh"} +"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":945,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"next":"bash test/greptiercheck.sh"} ````` stderr: @@ -7502,7 +7454,7 @@ ripwire edit: applied atomically; receipt carries region, blob_sha, edit_check, *The opt-out: the same insert with the folded verification skipped — lines= still rides (it is free), edit_check/tests_to_run do not, and the two pasteable commands stay on stderr.* -**wall time: 3.89s** +**wall time: 4.41s** ````` {"applied":"insert_after_symbol","symbol":"lessByScoreDescId","file":"src/infra/sortutil.h","span":{"start":2641,"end":2729},"lines":{"start":59,"end":61},"replaced_bytes":0,"old_file_bytes":8767,"new_file_bytes":8855,"file_eol":"lf","eol_normalized":false,"trailing_newline_folded":true,"separator_p … [line truncated: 570 more bytes on this line] @@ -7518,20 +7470,20 @@ ripwire edit: applied atomically; receipt carries region, blob_sha (post-check s *Insert BEFORE, with --edit-target-file pinning which same-named definition (here unambiguous — the disambiguator is simply honoured).* -**wall time: 11.04s** +**wall time: 7.39s** ````` {"applied":"insert_before_symbol","symbol":"nonNegativeFloatDescKey","file":"src/infra/sortutil.h","span":{"start":3161,"end":3249},"lines":{"start":77,"end":78},"replaced_bytes":0,"old_file_bytes":8855,"new_file_bytes":8943,"file_eol":"lf","eol_normalized":false,"trailing_newline_folded":false,"sep … [line truncated: 753 more bytes on this line] {"n":"benchAdaptive","p":"bench/bench_radix_ab.cpp:157","l":[162]}, {"n":"radixSortNonNegativeFloatsDesc","p":"src/infra/sortutil.h:108","l":[117]}, {"n":"radixSortByScoreDescId","p":"src/infra/sortutil.h:123","l":[183]}], -"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, +"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, {"p":"test/adaptivecutshapefix/adaptive_cut_shape_test.cpp","hops":2,"run":"bash test/adaptivecutshapecheck.sh"}, {"p":"test/forrowfeatures_unit.cpp","hops":2,"run":"bash test/forrowfeaturescheck.sh"}, {"p":"test/verify_csr.cpp","hops":2,"run":"bash test/a9disclosurecheck.sh"}, {"p":"test/includeprecise_unit.cpp","hops":4,"run":"bash test/includeprecisecheck.sh"}, {"p":"test/rustimport_unit.cpp","hops":4,"run":"bash test/rustimportprecisecheck.sh"}], -"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":942,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"next":"--uses=src/infra/sortutil.h:nonNegativeFloatDescKey"} +"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":945,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"next":"--uses=src/infra/sortutil.h:nonNegativeFloatDescKey"} ````` stderr: @@ -7544,7 +7496,7 @@ ripwire edit: applied atomically; receipt carries region, blob_sha, edit_check, *An unknown TARGET refuses and leaves every file byte-identical.* -**exit code: 1** — **wall time: 5.48s** +**exit code: 1** — **wall time: 4.23s** ````` (empty) @@ -7560,7 +7512,7 @@ ripwire: --replace-symbol-body: symbol 'DoesNotExist' not found *A versioned multi-edit TRANSACTION preflighted without writing: the receipt shows what each op would read and touch.* -**wall time: 9.72s** +**wall time: 3.42s** Input file: @@ -7578,21 +7530,21 @@ Input file: ````` ````` -{"schema":"ripwire.edit-plan/v1","mode":"dry-run","edits":1,"files":1,"callers_union":4,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"atomic_scope":"per-file","rollback_on_write_error":true,"recheck_before_each_write":true,"multifile_crash_atomic":false," … [line truncated: 400 more bytes on this line] +{"schema":"ripwire.edit-plan/v1","mode":"dry-run","edits":1,"files":1,"callers_union":4,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"atomic_scope":"per-file","rollback_on_write_error":true,"recheck_before_each_write":true,"multifile_crash_atomic":false," … [line truncated: 400 more bytes on this line] ````` ## `./build/ripwire . --edit-plan=/aux/edit_plan.json --apply` *The same plan committed: per-file locks, re-verify-before-write, atomic rename, rollback on a later failure.* -**wall time: 10.73s** +**wall time: 7.71s** ````` -{"schema":"ripwire.edit-plan/v1","mode":"apply","edits":1,"files":1,"callers_union":4,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"applied":1,"atomic_files":1,"atomic_scope":"per-file","rollback_on_write_error":true,"recheck_before_each_write":true,"mult … [line truncated: 584 more bytes on this line] +{"schema":"ripwire.edit-plan/v1","mode":"apply","edits":1,"files":1,"callers_union":4,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"applied":1,"atomic_files":1,"atomic_scope":"per-file","rollback_on_write_error":true,"recheck_before_each_write":true,"mult … [line truncated: 584 more bytes on this line] {"n":"benchAdaptive","p":"bench/bench_radix_ab.cpp:157","l":[162]}, {"n":"radixSortNonNegativeFloatsDesc","p":"src/infra/sortutil.h:110","l":[119]}, {"n":"radixSortByScoreDescId","p":"src/infra/sortutil.h:125","l":[185]}], -"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true}}]} +"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true}}]} ````` ## `./build/ripwire . --edit-plan=/aux/edit_plan.json` @@ -7615,11 +7567,11 @@ ripwire: --edit-plan requires exactly one of --dry-run or --apply *After the agent's edits: the complexity/nesting rows on lessByScoreDescId are gone (the replace undid them), the rest still gate (exit 2).* -**exit code: 2** — **wall time: 29.10s** +**exit code: 2** — **wall time: 20.30s** ````` - @@ -7648,7 +7600,7 @@ ripwire: --edit-plan requires exactly one of --dry-run or --apply -… [155 more display lines; full output is 18613 bytes on 1 raw line(s)] +… [157 more display lines; full output is 18822 bytes on 1 raw line(s)] ````` stderr: @@ -7662,7 +7614,7 @@ ripwire: --quality-delta gating: 2 preexisting-worse major finding(s); first: du *REFUSES, exit 1: this sandbox tree is already regressed, and pinning here would swallow that debt into the floor so every later delta read clean. It names how many gating findings it would absorb, the first of them, and the way forward.* -**exit code: 1** — **wall time: 19.60s** +**exit code: 1** — **wall time: 14.37s** ````` (empty) @@ -7681,7 +7633,7 @@ ripwire: --quality-baseline: this tree already holds 2 gating finding(s) against *The consent form: pin anyway. The sidecar is stamped with the dirty pin and the absorbed count, so the fact outlives the process that knew it.* -**wall time: 25.56s** +**wall time: 21.05s** ````` (empty) @@ -7691,16 +7643,16 @@ stderr: ````` ripwire: --quality-baseline --allow-dirty: pinned with 2 gating finding(s) ABSORBED into the floor (stamped in the sidecar; every --quality-delta against it carries baseline_absorbed="2") -ripwire: wrote ./.ripwire_quality_baseline (snapshot of 41761 per-symbol rows, 43894 indexed symbols total) +ripwire: wrote ./.ripwire_quality_baseline (snapshot of 41912 per-symbol rows, 44050 indexed symbols total) ````` Artifact written: ````` - 8624015 .ripwire_quality_baseline + 8655015 .ripwire_quality_baseline # ripwire quality baseline v6 — regenerate with --quality-baseline; do not hand-edit -producer 044858a0c11fca09380aca26038052044e9b87b551e1aeb643fc0d5f83177cc6 -head da897642edba82f8c83c0b65ff9fb6bd4738681e +producer 001895a3747c0a780cba69eb8c9cd791fc3d6c22d51721f02c8fa68b77f6371d +head cee081132922142dae18338f8b8849795aedae65 dirty 1 absorbed 2 ccx 67c15011ee8b 0 @@ -7713,11 +7665,11 @@ ccx 6a732f6699b *Against that sidecar the same tree reads regressions=0 — but baseline_absorbed= is on the root, so this green means clean SINCE THE PIN, never clean. A baseline is a floor YOU chose, and it belongs BEFORE the change.* -**wall time: 24.30s** +**wall time: 16.98s** ````` - ````` @@ -7731,7 +7683,7 @@ ccx 6a732f6699b *initialize + tools/list: the manifest an agent host loads at session start — every verb's name, description and input schema.* ````` -{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","serverInfo":{"name":"ripwire","version":"0.6.10-dev.100+gda897642e"},"capabilities":{"tools":{},"resources":{}},"instructions":"Map before reading files. Start a new task with explore; use from_trace for an error; use impact plus uses … [line truncated: 760 more bytes on this line] +{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","serverInfo":{"name":"ripwire","version":"0.6.10-dev.104+gcee081132"},"capabilities":{"tools":{},"resources":{}},"instructions":"Map before reading files. Start a new task with explore; use from_trace for an error; use impact plus uses … [line truncated: 760 more bytes on this line] {"jsonrpc":"2.0","id":2,"result":{"tools":[{"name":"analyze","description":"Architecture map for a directory: signatures and the call graph for the top symbols. Use when landing cold in a repo or subdir, before reading files; for a task-scoped inventory use 'for', for one symbol's neighborhood find_ … [line truncated: 742 more bytes on this line] {"name":"rank_by","description":"The SAME architecture map 'analyze' serves, ranked by a different signal instead of plain PageRank. rank_by = pagerank (default, omit it — the CLI's own unbiased --rank-by=pagerank; 'analyze' can rank differently on a tree with uncommitted changes, where it biases … [line truncated: 1077 more bytes on this line] {"name":"find_symbol","description":"A symbol's 1-hop neighborhood: the symbol (with a fetch_body handle) plus direct callers (calledBy) and callees (calls). Full transitive reach: 'impact'. Read/write/import sites, not just calls: 'uses'. JSON {symbol, calledBy, calls, defs, count, hop_tested, hop_ … [line truncated: 1181 more bytes on this line] @@ -7811,7 +7763,7 @@ quality_baseline desc_bytes= 407 schema_bytes= 193 required=[] *--mcp-tools=core: the server lists only the core profile's tools (explore, batch, from_trace, impact, uses, fetch_body, edit_check, quality_delta), so a host that loads every schema at session start pays only for those.* ````` -{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","serverInfo":{"name":"ripwire","version":"0.6.10-dev.100+gda897642e"},"capabilities":{"tools":{},"resources":{}},"instructions":"Map before reading files. Start a new task with explore; use from_trace for an error; use impact plus uses … [line truncated: 977 more bytes on this line] +{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","serverInfo":{"name":"ripwire","version":"0.6.10-dev.104+gcee081132"},"capabilities":{"tools":{},"resources":{}},"instructions":"Map before reading files. Start a new task with explore; use from_trace for an error; use impact plus uses … [line truncated: 977 more bytes on this line] {"jsonrpc":"2.0","id":2,"result":{"tools":[{"name":"fetch_body","description":"Full (or partial-range) source of a symbol's definition, addressed by the stable `handle` a read verb attached to it (bodies on request, not by default). start_line/end_line are optional, 1-based, INCLUSIVE and BODY-RELAT … [line truncated: 1092 more bytes on this line] {"name":"quality_delta","description":"Your PR self-check, run every time you think a change is DONE — pairs with the CLI-only --test-gate (names the tests to run + the untested blast radius; not MCP-exposed) to form the two-step pre-PR gate. Reports ONLY what your tree made WORSE vs baseline, acr … [line truncated: 862 more bytes on this line] {"name":"impact","description":"IS IT SAFE TO CHANGE X? — the TRANSITIVE blast radius of a symbol via calls, nearest first (d= hop depth), then PageRank. Use before modifying or deleting a symbol; it beats find_referencing_symbols (direct callers only), and 'uses' catches the read/write/import sit … [line truncated: 1325 more bytes on this line] @@ -7840,68 +7792,68 @@ quality_delta desc_bytes= 742 schema_bytes= 279 required=[] *MCP `for`: always bundle=sigs (never the CLI's compact route), the same ranked signatures as --for.* -**wall time: 8.53s** +**wall time: 6.58s** ````` -{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","serverInfo":{"name":"ripwire","version":"0.6.10-dev.100+gda897642e"},"capabilities":{"tools":{},"resources":{}},"instructions":"Map before reading files. Start a new task with explore; use from_trace for an error; use impact plus uses … [line truncated: 760 more bytes on this line] -{"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":". window: shown= total= capped= has_more= next_offset= offset= limit= (ca … [line truncated: 13902 more bytes on this line] -"_index":"[index: files=4813 symbols=43892 hash=951e3883]","_fresh":"ok"}} +"_index":"[index: files=4825 symbols=44048 hash=c33967bb]","_fresh":"ok"}} {"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"

@@ -3136,7 +3139,7 @@ _OWNERSHIP partition for a shared tree: every regression here lives in src/infra ``` $ ./build/ripwire . --quality-delta --scope=src/graph.h - @@ -3166,10 +3169,10 @@ _Fast per-symbol post-edit contract check vs git HEAD (unchanged on a clean tree ``` $ ./build/ripwire . --edit-check=rankGraphTeleport - - - + + @@ -3220,13 +3223,13 @@ $ ./build/ripwire . --insert-before-symbol=nonNegativeFloatDescKey --edit-payloa {"n":"benchAdaptive","p":"bench/bench_radix_ab.cpp:157","l":[162]}, {"n":"radixSortNonNegativeFloatsDesc","p":"src/infra/sortutil.h:108","l":[117]}, {"n":"radixSortByScoreDescId","p":"src/infra/sortutil.h:123","l":[183]}], -"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, +"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, {"p":"test/adaptivecutshapefix/adaptive_cut_shape_test.cpp","hops":2,"run":"bash test/adaptivecutshapecheck.sh"}, {"p":"test/forrowfeatures_unit.cpp","hops":2,"run":"bash test/forrowfeaturescheck.sh"}, {"p":"test/verify_csr.cpp","hops":2,"run":"bash test/a9disclosurecheck.sh"}, {"p":"test/includeprecise_unit.cpp","hops":4,"run":"bash test/includeprecisecheck.sh"}, {"p":"test/rustimport_unit.cpp","hops":4,"run":"bash test/rustimportprecisecheck.sh"}], -"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":942,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"next":"--uses=src/infra/sortutil.h:nonNegativeFloatDescKey"} +"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":945,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"next":"--uses=src/infra/sortutil.h:nonNegativeFloatDescKey"} ``` ### `--insert-after-symbol=TARGET` @@ -3242,13 +3245,13 @@ _Insert immediately AFTER one uniquely-resolved definition; replaced_bytes=0 bec ``` $ ./build/ripwire . --insert-after-symbol=lessByScoreDescId --edit-payload=/aux/payload_note.h {"applied":"insert_after_symbol","symbol":"lessByScoreDescId","file":"src/infra/sortutil.h","span":{"start":2641,"end":2729},"lines":{"start":59,"end":61},"replaced_bytes":0,"old_file_bytes":8679,"new_file_bytes":8767,"file_eol":"lf","eol_normalized":false,"trailing_newline_folded":true,"separator_p … [line truncated: 650 more bytes on this line] -"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, +"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, {"p":"test/adaptivecutshapefix/adaptive_cut_shape_test.cpp","hops":2,"run":"bash test/adaptivecutshapecheck.sh"}, {"p":"test/forrowfeatures_unit.cpp","hops":2,"run":"bash test/forrowfeaturescheck.sh"}, {"p":"test/verify_csr.cpp","hops":2,"run":"bash test/a9disclosurecheck.sh"}, {"p":"test/includeprecise_unit.cpp","hops":4,"run":"bash test/includeprecisecheck.sh"}, {"p":"test/rustimport_unit.cpp","hops":4,"run":"bash test/rustimportprecisecheck.sh"}], -"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":942,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"next":"bash test/greptiercheck.sh"} +"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":945,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"next":"bash test/greptiercheck.sh"} ``` **Caveats (stated by the binary):** @@ -3294,13 +3297,13 @@ $ ./build/ripwire . --insert-before-symbol=nonNegativeFloatDescKey --edit-payloa {"n":"benchAdaptive","p":"bench/bench_radix_ab.cpp:157","l":[162]}, {"n":"radixSortNonNegativeFloatsDesc","p":"src/infra/sortutil.h:108","l":[117]}, {"n":"radixSortByScoreDescId","p":"src/infra/sortutil.h:123","l":[183]}], -"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, +"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true},"tests_to_run":[{"p":"test/verify_radix.cpp","hops":1,"run":"bash test/greptiercheck.sh"}, {"p":"test/adaptivecutshapefix/adaptive_cut_shape_test.cpp","hops":2,"run":"bash test/adaptivecutshapecheck.sh"}, {"p":"test/forrowfeatures_unit.cpp","hops":2,"run":"bash test/forrowfeaturescheck.sh"}, {"p":"test/verify_csr.cpp","hops":2,"run":"bash test/a9disclosurecheck.sh"}, {"p":"test/includeprecise_unit.cpp","hops":4,"run":"bash test/includeprecisecheck.sh"}, {"p":"test/rustimport_unit.cpp","hops":4,"run":"bash test/rustimportprecisecheck.sh"}], -"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":942,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"next":"--uses=src/infra/sortutil.h:nonNegativeFloatDescKey"} +"order":"evidence","partners":0,"run_first":1,"tests":6,"script_gates_unmodelled":945,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"next":"--uses=src/infra/sortutil.h:nonNegativeFloatDescKey"} ``` **Shaped by:** `--insert-after-symbol` @@ -3359,11 +3362,11 @@ _The same plan committed: per-file locks, re-verify-before-write, atomic rename, ``` $ ./build/ripwire . --edit-plan=/aux/edit_plan.json --apply -{"schema":"ripwire.edit-plan/v1","mode":"apply","edits":1,"files":1,"callers_union":4,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"applied":1,"atomic_files":1,"atomic_scope":"per-file","rollback_on_write_error":true,"recheck_before_each_write":true,"mult … [line truncated: 584 more bytes on this line] +{"schema":"ripwire.edit-plan/v1","mode":"apply","edits":1,"files":1,"callers_union":4,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"applied":1,"atomic_files":1,"atomic_scope":"per-file","rollback_on_write_error":true,"recheck_before_each_write":true,"mult … [line truncated: 584 more bytes on this line] {"n":"benchAdaptive","p":"bench/bench_radix_ab.cpp:157","l":[162]}, {"n":"radixSortNonNegativeFloatsDesc","p":"src/infra/sortutil.h:110","l":[119]}, {"n":"radixSortByScoreDescId","p":"src/infra/sortutil.h:125","l":[185]}], -"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true}}]} +"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true}}]} ``` **Shaped by:** `--edit-check` @@ -3409,19 +3412,19 @@ _Bare --slice=SYM: the INVENTORY of sliceable locals (), so a calle ``` $ ./build/ripwire . --slice=rankGraphTeleport - - - - - - - - - - - - - + + + + + + + + + + + + + ... [3 more line(s); run it to see the whole thing] ``` @@ -3446,17 +3449,17 @@ _Forward flow: which statements the seed's value reaches, at the default depth b ``` $ ./build/ripwire . --slice=rankGraphTeleport:teleport --slice-flow=fwd - - + + - + teleport( pw.begin(), pw.end() );]]> - + - + ... [22 more line(s); run it to see the whole thing] @@ -3500,10 +3503,10 @@ $ ./build/ripwire . --slice-depth=3 _Hold a LOCATION, not a name: the enclosing-definition chain at FILE:LINE (a compiler error, a diff hunk, a stack frame), outermost -> innermost._ ``` -$ ./build/ripwire . --at=src/graph.h:14630 +$ ./build/ripwire . --at=src/graph.h:14932 - - + + ``` @@ -3527,7 +3530,7 @@ _No-LLM review-evidence bundle for the working-tree diff (clean tree = empty)._ ``` $ ./build/ripwire . --pr-context - ``` @@ -3553,11 +3556,11 @@ _Pairwise cross-arm conflict sites + suggested landing order (any committish sha ``` $ ./build/ripwire . --merge-scout=HEAD~2,HEAD~1 - - + + - + @@ -3632,7 +3635,7 @@ _A second selection, the `fix/` ref family, picked at capture time from the refs ``` $ ./build/ripwire . --stray-content=fix/ - + ``` @@ -3657,19 +3660,19 @@ _Select the genuinely-unmerged refs of the `lane/` ref family and feed them to m ``` $ ./build/ripwire . --stray-content=lane/ --plan - + - - + + - + - + ... [17 more line(s); run it to see the whole thing] ``` @@ -3693,8 +3696,8 @@ _Cross-branch ABI-break gate over the `lane/` ref family: struct byte-contract d ``` $ ./build/ripwire . --stray-content=lane/ --abi - + @@ -3728,10 +3731,10 @@ _Which ref's tree defines or mentions SYM — HEAD first, then every local branc ``` $ ./build/ripwire . --whereis=rankGraphTeleport - + - + - + + + - + - + @@ -3902,7 +3905,7 @@ _The cache-locality lens over every aggregate: fields READ TOGETHER but declared ``` $ ./build/ripwire . --field-affinity - @@ -3937,7 +3940,7 @@ _Which of this repo's doc claims are now false. CHANGED: row attribute at= renam ``` $ ./build/ripwire . --doc-drift - + @@ -3971,7 +3974,7 @@ _Which of this repo's doc claims are now false. CHANGED: row attribute at= renam ``` $ ./build/ripwire . --doc-drift - + @@ -4004,8 +4007,8 @@ _Same report, with git history splitting stale mentions into deleted-by-commit v ``` $ ./build/ripwire . --doc-drift --with-history - - + + @@ -4038,7 +4041,7 @@ _The house PLAN/DESIGN format's STRUCTURE check — never semantics; exit 2 when ``` $ ./build/ripwire . --plan-lint=test/planlintfix/wave.md - + @@ -4075,8 +4078,8 @@ $ ./build/ripwire . --from-trace=- AddressSanitizer:DEADLYSIGNAL ================================================================= ==41337==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000018 (pc 0x000102f4a1c8 bp 0x00016d2f1a40 sp 0x00016d2f19e0 T0) - #0 0x102f4a1c8 in rw::rankGraphTeleport(Graph const&, std::vector const&, float) src/graph.h:14630 - #1 0x102f3e884 in rw::rankGraph(Graph const&, float) src/graph.h:14673 + #0 0x102f4a1c8 in rw::rankGraphTeleport(Graph const&, std::vector const&, float) src/graph.h:14932 + #1 0x102f3e884 in rw::rankGraph(Graph const&, float) src/graph.h:14975 #2 0x102e11f30 in runDefaultMap(MainDispatch const&) src/main.cpp:1759 #3 0x102e01a44 in main src/main.cpp:4511 #4 0x1a2b3c0dc in start+0x9dc (dyld:arm64e+0x60dc) @@ -4105,7 +4108,7 @@ _A command that exits 0: a minimal success record (exit, measured duration, disc $ ./build/ripwire . --run-trace="true" - + ``` @@ -4195,7 +4198,7 @@ _ONE budget-shared bundle: ranking + top bodies + caller sigs + notes + tests_to ``` $ ./build/ripwire . --pack-task="add a new output format flag to the CLI" - + - + @@ -4265,7 +4268,7 @@ _Task lens + a compact Mermaid flowchart of the top anchors' 1-hop edges._ ``` $ ./build/ripwire . --for="pagerank power iteration" --with-graph - + @@ -4343,14 +4346,14 @@ _Environment self-check: binary staleness, grammars, cache dir, git, tracked-bin ``` $ ./build/ripwire . --doctor - - + - - + + - - + @@ -4377,14 +4380,14 @@ _--doctor plus a LIVE integration inspection for one agent: PATH binary, install ``` $ ./build/ripwire . --doctor --agent=claude - - + - - + + - - + @@ -4413,7 +4416,7 @@ $ ./build/ripwire . --skipped - @@ -4502,16 +4505,16 @@ $ ./build/ripwire . --rank-by=churn --top-k=5 - - + + - + - - - + + + ... [10 more line(s); run it to see the whole thing] ``` @@ -4533,22 +4536,22 @@ a trailing slash is ignored; absolute paths and '..' are refused). The global block stays byte-identical, a second page follows it — n=/of= are its counts (of= IS the total, so the paging half carries no total=), capped="1" has_more="1" next_offset= offset= limit= page it, and next= replays THIS run's own corpus flags (--since/--exclude) so the page it names is a page of the same answer. The symbol map collapses to a disclosed stub — the map was not asked for and was not ranked at all, which is why the header carries no pr_iters=. merge_bombs_skipped= stays on the global block: it counts the window's skipped commits, not the directory's._ ``` -$ ./build/ripwire . --rank-by=churn-decay --since=HEAD~6 --exclude=test --exclude=docs --exclude=skills --exclude=changelog.d --in=src --limit=3 +$ ./build/ripwire . --rank-by=churn-decay --since=HEAD~7 --exclude=test --exclude=docs --exclude=skills --exclude=changelog.d --in=src --limit=3 - - - - - - - - - + + + + + + + - -... [6 more line(s); run it to see the whole thing] + + + +... [4 more line(s); run it to see the whole thing] ``` **Shaped by:** `--external-surface`, `--doctor`, `--legend`, `--max-memory` @@ -4610,7 +4613,7 @@ _The same gating report under --legend=full — same rows, same exit 2; the defa ``` $ ./build/ripwire . --quality-delta --legend=full - @@ -4705,7 +4708,7 @@ _The family join: per function, which of four orthogonal evidence families fire, ``` $ ./build/ripwire . --ensemble --limit=8 - @@ -4743,8 +4746,8 @@ $ ./build/ripwire . --exclude=present --exclude=bench --top-k=5 - - + + @@ -4774,10 +4777,10 @@ $ ./build/ripwire . --map-diff --top-k=5 - - + + - + @@ -4808,10 +4811,10 @@ $ ./build/ripwire . --cache=/aux/warm2.ripwirecache --top-k=3 - - + + - + @@ -4858,10 +4861,10 @@ $ ./build/ripwire . --no-cache --top-k=3 - - + + - + @@ -4889,10 +4892,10 @@ $ ./build/ripwire . --no-ignore --top-k=3 - - + + - + @@ -4925,7 +4928,7 @@ $ ./build/ripwire . --max-file-size=8K --top-k=3 - + @@ -5005,10 +5008,10 @@ $ ./build/ripwire . --pin-census=/aux/pin_census.tsv --top-k=3 - - + + - + @@ -5030,7 +5033,7 @@ _initialize + tools/list: the manifest an agent host loads at session start — ``` $ ./build/ripwire '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize"}' '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | ./build/ripwire --mcp -{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","serverInfo":{"name":"ripwire","version":"0.6.10-dev.100+gda897642e"},"capabilities":{"tools":{},"resources":{}},"instructions":"Map before reading files. Start a new task with explore; use from_trace for an error; use impact plus uses … [line truncated: 760 more bytes on this line] +{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","serverInfo":{"name":"ripwire","version":"0.6.10-dev.104+gcee081132"},"capabilities":{"tools":{},"resources":{}},"instructions":"Map before reading files. Start a new task with explore; use from_trace for an error; use impact plus uses … [line truncated: 760 more bytes on this line] {"jsonrpc":"2.0","id":2,"result":{"tools":[{"name":"analyze","description":"Architecture map for a directory: signatures and the call graph for the top symbols. Use when landing cold in a repo or subdir, before reading files; for a task-scoped inventory use 'for', for one symbol's neighborhood find_ … [line truncated: 742 more bytes on this line] {"name":"rank_by","description":"The SAME architecture map 'analyze' serves, ranked by a different signal instead of plain PageRank. rank_by = pagerank (default, omit it — the CLI's own unbiased --rank-by=pagerank; 'analyze' can rank differently on a tree with uncommitted changes, where it biases … [line truncated: 1077 more bytes on this line] {"name":"find_symbol","description":"A symbol's 1-hop neighborhood: the symbol (with a fetch_body handle) plus direct callers (calledBy) and callees (calls). Full transitive reach: 'impact'. Read/write/import sites, not just calls: 'uses'. JSON {symbol, calledBy, calls, defs, count, hop_tested, hop_ … [line truncated: 1181 more bytes on this line] @@ -5056,11 +5059,11 @@ _--mcp-legend=inline: every answer of the stdio session carries its own legend ( ``` $ ./build/ripwire '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize"}' '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"whereis","arguments":{"path":".","symbol":"rankGraphTeleport"}}}' '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"whereis","arguments":{"path":".","symbol":"computeOnePairOverlap"}}}' | ./build/ripwire --mcp --mcp-legend=inline -{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","serverInfo":{"name":"ripwire","version":"0.6.10-dev.100+gda897642e"},"capabilities":{"tools":{},"resources":{}},"instructions":"Map before reading files. Start a new task with explore; use from_trace for an error; use impact plus uses … [line truncated: 757 more bytes on this line] +{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-11-25","serverInfo":{"name":"ripwire","version":"0.6.10-dev.104+gcee081132"},"capabilities":{"tools":{},"resources":{}},"instructions":"Map before reading files. Start a new task with explore; use from_trace for an error; use impact plus uses … [line truncated: 757 more bytes on this line] {"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":" @@ -31,10 +31,10 @@ - - + + - + @@ -56,24 +56,30 @@ -… [765 more display lines; full output is 26221 bytes on 1 raw line(s)] +… [767 more display lines; full output is 26365 bytes on 1 raw line(s)] +````` + +stderr: + +````` +ripwire: cache : over its 2048 MiB budget — evicted 88 blob(s) of other roots or other ripwire builds (this build's blobs for this root are kept) ````` ## `./build/ripwire . --top-k=5` *Same map, capped to the 5 highest-ranked symbols.* -**wall time: 1.55s** +**wall time: 1.58s** ````` - - + + - + @@ -89,14 +95,14 @@ - + -… [85 more display lines; full output is 10186 bytes on 1 raw line(s)] +… [86 more display lines; full output is 10233 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --top-k=5 --no-inventory` @@ -108,10 +114,10 @@ - - + + - + @@ -139,7 +145,7 @@ - - + + - + @@ -211,33 +215,33 @@ ripwire: --top-k=0 means "no ranked map, payload only" — pass a payload verb ( *GATE form: exit 3 if the map's own est_tokens exceeds the budget (over-budget failure shape).* -**exit code: 3** — **wall time: 1.57s** +**exit code: 3** ````` - + ````` stderr: ````` -ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 +ripwire: --token-budget exceeded: withheld_est_tokens=10621 > budget=100 ````` ## `./build/ripwire . --for="incremental cache invalidation when a file content hash changes"` *The task lens: ranked signatures + quality metrics framed for the task.* -**wall time: 12.57s** +**wall time: 6.74s** ````` - - + incremental cache (--cache): per-file content hash + raw facts so a re-run re-parses ONLY c…constexpr std::uint32_t kCacheMagic = 0x4b505443 - + and every file whose content hash differs is re-parsed — so a stale or foreign blob self-heals…constexpr std::uint32_t kHeadSnapCacheScheme = 1 inline McpRebuildBaseline mcpRebuildBaseline( const McpIndex& ix, bool isIncrementalPass ) inline void noteFactlessMiss( ParsePoolShared& sh, std::size_t fileId, bool nestRefused ) noexcept @@ -261,21 +265,21 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 struct IngestFileScan inline std::uint64_t byteHash( const char* data, std::size_t n ) noexcept -… [217 more display lines; full output is 24474 bytes on 8 raw line(s)] +… [216 more display lines; full output is 24383 bytes on 8 raw line(s)] ````` ## `./build/ripwire . --for="rankGraphTeleport"` *Name-shaped query: the router picks name-exact BM25 (header says which/why).* -**wall time: 7.94s** +**wall time: 2.55s** ````` - + - + PageRank with an explicit teleport / personalization vector p (Σp = 1). The prior is name-quality-biased through biasPrior() so all rank modes share one weighting seam; the transition matrix (edgesinline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>&am … [line truncated: 31 more bytes on this line] #### The convergence disclosure contract ### Wave-2 adversarial verification (2026-08-19) — six probes against `aa97c9e` @@ -287,8 +291,8 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 - - + + @@ -299,7 +303,7 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 - + & p, float alpha = 0.85f ) … [28 more display lines; full output is 6611 bytes on 29 raw line(s)] ````` @@ -308,24 +312,24 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 *Same query with routing forced OFF (plain subtoken+body BM25) — contrast with the routed run.* -**wall time: 6.17s** +**wall time: 1.67s** ````` - + - + PageRank with an explicit teleport / personalization vector p (Σp = 1). The prior is name-quali…inline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>& p, float alpha = 0.85f ) - + uniform-teleport PageRank (the default). A kRankFlagNotNamed unit (model.h) has no edge and a 0 …inline RankedGraph rankGraph( const Graph& g, float alpha = 0.85f ) The default map's PageRank — uniform teleport, the one rank that is a function of the Graph al…inline std::optional<RankedGraph>& storedDefaultRank() noexcept inline ChurnRanking churnRankedGraph( const MainDispatch& d ) inline constexpr const char* kChurnRankLegend = "<!-- rank_by=churn: k= is PageRank re-run with the teleport BIASED by git CHANGE-FREQUENCY over window= " "(a c… -struct RankedGraph -inline std::vector<float> takeRank( RankedGraph ranked, RankDisclosure& disclosureOut ) -inline std::vector<float> biasPrior( const Graph& g, const std::vector<float>& p ) +struct RankedGraph +inline std::vector<float> takeRank( RankedGraph ranked, RankDisclosure& disclosureOut ) +inline std::vector<float> biasPrior( const Graph& g, const std::vector<float>& p ) inline std::vector<float> churnTeleportWorkspace( const std::vector<std::string>& rootDirs, const IngestResult& ing, const char* since = "18 months ago … [line truncated: 21 more bytes on this line] inline ChurnRanking churnDecayRanking( const MainDispatch& d, const rw::SinceScope& sinceScope, bool isScoped, const char* verbLabel ) PageRankRun pageRankDouble( const sparseCsr<float>& inEdges, std::span<const double> weightedOutDegree, std::span<const double> teleport, std::span<double> rank… @@ -348,14 +352,14 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 *T3 opt-out: the signatures-only lens (no auto bodies, no bundle="auto" attribute) — contrast with the terminal default above.* -**wall time: 6.85s** +**wall time: 2.07s** ````` - + - + PageRank with an explicit teleport / personalization vector p (Σp = 1). The prior is name-quality-biased through biasPrior() so all rank modes share one weighting seam; the transition matrix (edgesinline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>&am … [line truncated: 31 more bytes on this line] #### The convergence disclosure contract ### Wave-2 adversarial verification (2026-08-19) — six probes against `aa97c9e` @@ -367,9 +371,9 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 - - - + + + ````` @@ -378,25 +382,25 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 *Cut the result at the relevance cliff (Adaptive-k) — on a flat ranking nothing is cut and the header says so ([adaptive: kept N of N]).* -**wall time: 7.83s** +**wall time: 2.06s** ````` - + - + inline bool topLevelEvidence( std::string_view source, const TSLanguage* language, const Predicate& predicate ) The crawl's per-file byte ceiling. A text file larger than this is skipped: at this size it is o…constexpr std::size_t kDefaultMaxFileBytes = 4u * 1024u * 1024u TSTree* parseTree( TSParser* parser, std::string_view src ) Exercise every registered grammar and its embedded query, reporting loaded and expected totalsinline DoctorGrammarProbe doctorProbeGrammars() -class SourceReader +class SourceReader constexpr std::array<LangEntry, 58> kLangTable = struct FileHealth struct SliceScan -explicit ParsedFile( std::string bytes ) : m_bytes( std::move( bytes ) ) -class ParsedFile +explicit ParsedFile( std::string bytes ) : m_bytes( std::move( bytes ) ) +class ParsedFile @@ -405,23 +409,23 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 inline ModuleScan scanModule( std::string_view source, std::string_view path ) inline bool hasMainGuard( std::string_view source ) -inline bool hasPhantomScopeSeparator( TSNode qualified ) noexcept +inline bool hasPhantomScopeSeparator( TSNode qualified ) noexcept -… [242 more display lines; full output is 26676 bytes on 44 raw line(s)] +… [242 more display lines; full output is 26876 bytes on 44 raw line(s)] ````` ## `./build/ripwire . --for="why does src/lexical.h chooseForRanker pick name-exact BM25"` *Mention anchoring (default-on): a path and a Symbol literally named in the task get lifted; the header says what anchored.* -**wall time: 7.30s** +**wall time: 1.85s** ````` - @@ -442,7 +446,7 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 inline int runEvalMined( const std::string& root, const IngestResult& ing, const Graph& g, const std::string& path ) struct LensRanking -inline bool hasIdentifierShape( std::string_view w ) noexcept +inline bool hasIdentifierShape( std::string_view w ) noexcept inline int runEvalSkills( const std::string& root, const IngestResult& ing, const Graph& g, const std::string& labelsPath ) inline std::vector<SourceSyntaxAnchor> applyAnchorHonesty( const IngestResult& ing, std::string_view task, SubjectRoute& out ) @@ -451,17 +455,17 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 inline constexpr int kLexWeightDoc = 2 inline std::vector<float> lexicalScoresNameExact( const IngestResult& ing, std::string_view query ) inline void hedgeOffTaskPick( const IngestResult& ing, ExemplarPick& pick ) -… [273 more display lines; full output is 31744 bytes on 18 raw line(s)] +… [273 more display lines; full output is 31747 bytes on 18 raw line(s)] ````` ## `./build/ripwire . --for="why does src/lexical.h chooseForRanker pick name-exact BM25" --no-mention-boost` *Same task with the anchor disabled — the contrast the flag exists for.* -**wall time: 6.71s** +**wall time: 2.06s** ````` - @@ -480,7 +484,7 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 inline RouteChoice routeAnchorFallThrough( std::string_view query, const RouteChoice& anchored ) inline int runEvalMined( const std::string& root, const IngestResult& ing, const Graph& g, const std::string& path ) struct LensRanking -inline bool hasIdentifierShape( std::string_view w ) noexcept +inline bool hasIdentifierShape( std::string_view w ) noexcept inline int runEvalSkills( const std::string& root, const IngestResult& ing, const Graph& g, const std::string& labelsPath ) inline std::vector<SourceSyntaxAnchor> applyAnchorHonesty( const IngestResult& ing, std::string_view task, SubjectRoute& out ) @@ -491,19 +495,17 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 inline constexpr int kLexWeightDoc = 2 inline std::vector<float> lexicalScoresNameExact( const IngestResult& ing, std::string_view query ) inline void hedgeOffTaskPick( const IngestResult& ing, ExemplarPick& pick ) -… [273 more display lines; full output is 31441 bytes on 18 raw line(s)] +… [273 more display lines; full output is 31444 bytes on 18 raw line(s)] ````` ## `./build/ripwire . --lego=Vehicle` *Interface -> implementors view: every existing impl of the named interface; the method contract is extracted for the C-family/Java/TS/Python tiers — for a Rust trait (this fixture) it discloses caveat="not-extracted-for-lang" rather than an empty list.* -**wall time: 1.18s** - ````` - + @@ -519,7 +521,7 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 ````` @@ -555,8 +555,6 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 *The honest half of the contract: a task with no ripwire-shaped evidence ABSTAINS with zero commands rather than guessing.* -**wall time: 2.99s** - ````` @@ -569,9 +567,9 @@ ripwire: --token-budget exceeded: withheld_est_tokens=10563 > budget=100 *Most relevant DOCS' full bodies (markdown only) — recall what is already written down.* ````` -ripwire recall — "quality delta gating exit codes" — 135 relevant of 347 document files, best-first — total=135 shown=6 capped=1 truncated=5 generated_demoted=2 generated_demoted_paths="docs/TUNING.md,docs/LIMITS.md" max_tokens=8000 share_bytes=2792 est_tokens=5385 +ripwire recall — "quality delta gating exit codes" — 135 relevant of 348 document files, best-first — total=135 shown=6 capped=1 truncated=5 generated_demoted=2 generated_demoted_paths="docs/TUNING.md,docs/LIMITS.md" max_tokens=8000 share_bytes=2792 est_tokens=5385 -━━ docs/REFERENCE_GUIDE.md (relevance 22.002) ━━ [sections: 2 of 12 selected (27 in doc), section-granular; whole doc 43914 B; lines="405-417,418-425"; dropped_by_budget=10] +━━ docs/REFERENCE_GUIDE.md (relevance 22.001) ━━ [sections: 2 of 12 selected (27 in doc), section-granular; whole doc 43914 B; lines="405-417,418-425"; dropped_by_budget=10] #### 6.2 Exit codes This is the part to wire into a script. @@ -610,12 +608,12 @@ ripwire: redacted 1 secret from emitted context (keyword-gated-secret=1) — pas ## `./build/ripwire /aux/kbcorpus --recall="field affinity cache line data layout which fields are read together" --top-k=3 --max-tokens=1200` -*The directory-as-knowledge-base pattern: --recall pointed at a 1596008-byte scratch dir of DUMPED TOOL OUTPUT (a git log, this repo's own generated command reference, --help text, an architecture doc, a fabricated JSON access log) instead of a source repo — no index to build, no daemon.* +*The directory-as-knowledge-base pattern: --recall pointed at a 1566275-byte scratch dir of DUMPED TOOL OUTPUT (a git log, this repo's own generated command reference, --help text, an architecture doc, a fabricated JSON access log) instead of a source repo — no index to build, no daemon.* ````` ripwire recall — "field affinity cache line data layout which fields are read together" — 2 relevant of 2 document files, best-first — total=2 shown=1 capped=1 truncated=1 max_tokens=1200 share_bytes=2040 est_tokens=952 -━━ commands.md (relevance 36.154) ━━ [sections: 1 of 166 selected (196 in doc), section-granular; whole doc 637290 B; lines="567-592"; dropped_by_budget=165] [truncated: 1854 of 4284 bytes] +━━ commands.md (relevance 36.099) ━━ [sections: 1 of 166 selected (196 in doc), section-granular; whole doc 638212 B; lines="567-592"; dropped_by_budget=165] [truncated: 1854 of 4284 bytes] #### Pattern: a directory of dumped tool output as a knowledge base **Answers:** can `--recall` serve as a zero-setup knowledge base over dumped tool output — a @@ -658,7 +656,7 @@ ripwire: redacted 1 secret from emitted context (keyword-gated-secret=1) — pas ````` - + @@ -677,7 +675,7 @@ ripwire: redacted 1 secret from emitted context (keyword-gated-secret=1) — pas - + @@ -687,14 +685,14 @@ ripwire: redacted 1 secret from emitted context (keyword-gated-secret=1) — pas -… [366 more display lines; full output is 11060 bytes on 1 raw line(s)] +… [366 more display lines; full output is 11081 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --html=/aux/map2.html` *Self-contained HTML force-directed call graph.* -**wall time: 6.58s** +**wall time: 2.20s** ````` (empty) @@ -703,21 +701,19 @@ ripwire: redacted 1 secret from emitted context (keyword-gated-secret=1) — pas Artifact written: ````` - 155101 /aux/map2.html + 155135 /aux/map2.html ````` ## `./build/ripwire . --order=stable --top-k=5` *Stable (path/id) emit order — provider KV-cache hits across re-runs.* -**wall time: 1.67s** - ````` - + @@ -735,7 +731,7 @@ Artifact written: - + @@ -743,7 +739,7 @@ Artifact written: -… [85 more display lines; full output is 10204 bytes on 1 raw line(s)] +… [86 more display lines; full output is 10251 bytes on 1 raw line(s)] ````` @@ -755,15 +751,13 @@ Artifact written: *Ego graph around one symbol — depth 1 BY DEFAULT now (the root's depth= says so): ~6 KB where the 2-hop neighbourhood is ~64 KB on this repo.* -**wall time: 1.06s** - ````` - + @@ -803,8 +797,8 @@ Artifact written: - - + + @@ -826,7 +820,7 @@ Artifact written: -… [2428 more display lines; full output is 73948 bytes on 1 raw line(s)] +… [2452 more display lines; full output is 74786 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --around=rankGraphTeleport --around-fanout=4` @@ -839,7 +833,7 @@ Artifact written: - + @@ -871,14 +865,12 @@ Artifact written: *Who calls SYM (1-hop in-edges).* -**wall time: 1.06s** - ````` - + - - + + @@ -893,10 +885,10 @@ Artifact written: ````` - + - - + + @@ -908,7 +900,7 @@ Artifact written: *Unknown-symbol REFUSAL shape (exit 1) with a did-you-mean from real edit distance.* -**exit code: 1** — **wall time: 5.36s** +**exit code: 1** ````` @@ -927,18 +919,18 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition ````` - - + + - - - - - - + + + + + + ````` @@ -946,14 +938,12 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition *The resolvable use-sites (call/read/write/import/extends) with file:line; count= is a floor.* -**wall time: 1.47s** - ````` - + - - + + @@ -969,10 +959,10 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition ````` - + - - + + @@ -1007,30 +997,30 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition ````` - - - - + + + + - - + + - + - - - + + + - + - + - + @@ -1045,36 +1035,36 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition ````` - - - - - - - - + + + + + + + + - - - + + + - + - - - - + + + + - + - + -… [73 more display lines; full output is 5507 bytes on 1 raw line(s)] +… [73 more display lines; full output is 5508 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --path=main,rankGraphTeleport` @@ -1083,20 +1073,20 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition ````` - - - + @@ -1124,7 +1114,7 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition - + @@ -1138,7 +1128,7 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition - + ````` @@ -1149,10 +1139,10 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition ````` - + - + @@ -1164,8 +1154,6 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition *Transitive blast radius — everything that reaches SYM. NOW carries shown/capped.* -**wall time: 1.51s** - ````` - - + + @@ -1221,11 +1209,9 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition *Test files that transitively reach the changed file.* -**wall time: 1.24s** - ````` - @@ -1243,12 +1229,12 @@ ripwire: --callers symbol not found: DoesNotExist (note: the lexical definition *Mid-task situational report for the current git diff — recorded against a CLEAN tree (contrast with the sandbox run below).* -**wall time: 4.99s** +**wall time: 1.02s** ````` ripwire situational-awareness — 0 changed file(s), 0 symbols in them root: . -at: da897642e +at: cee081132 (0 changed files — working tree is clean, nothing to analyze) ````` @@ -1256,11 +1242,11 @@ at: da897642e *Pre-PR gate on a CLEAN tree: no obligations, exit 0.* -**wall time: 12.03s** +**wall time: 5.73s** ````` - ````` @@ -1268,8 +1254,6 @@ at: da897642e *Literal trigram-indexed search. Each hit carries its MATCHED line as the element's own CDATA (the wrapper is gone), plus shown/capped/hits_capped and a pasteable next= on the root.* -**wall time: 1.27s** - ````` @@ -1447,11 +1429,11 @@ at: da897642e *The same shape query WITH an explicit capture — identical hits, no auto_captured= attribute.* -**wall time: 2.75s** +**wall time: 1.12s** ````` -if data.get( "schema" ) != SCHEMA: raise SystemExit( f"{path}: unexpected schema {data.get('schema')!r} (expecte if not str( data.get( "tasks_lock_content_sha256", "" ) ).startswith( "questions:" ): train_repos = select_tasks if train_repos: raise SystemExit( f"{path}: records from repo(s) that re-derive to LocBench @@ -1487,22 +1469,20 @@ at: da897642e *Raw BM25 ranking (debug lens; --for is the real verb).* -**wall time: 2.37s** - ````` - + - + - + @@ -1513,12 +1493,12 @@ at: da897642e - + - + … [23 more display lines; full output is 3783 bytes on 1 raw line(s)] ````` @@ -1532,10 +1512,10 @@ at: da897642e *Importance-weighted detail: FULL bodies for top-2, signatures for the rest.* -**wall time: 5.50s** +**wall time: 1.19s** ````` - + @@ -1546,21 +1526,21 @@ at: da897642e The PageRank power iteration itself — the numeric kernel every ranked document's order comes f…PageRankRun pageRankDouble( const sparseCsr<float>& inEdges, std::span<const double> weightedOutDegree, std::span<const double> teleport, std::span<double> r … [line truncated: 10 more bytes on this line] inline std::string rankByText( const std::string& root, std::string_view mode, int topK, bool stable = false ) -struct RankedGraph +struct RankedGraph inline constexpr const char* kChurnRankLegend = "<!-- rank_by=churn: k= is PageRank re-run with the teleport BIASED by git CHANGE-FREQUENCY over window= " "(a c… inline std::uint32_t sliceRdIterationCeiling() noexcept struct PageRankRun Render one form of the disclosure. Empty string whenever there is nothing to say — no power it…inline std::string renderDisclosure( const RankDisclosure& d, DiscloseAs as ) -inline std::uint32_t navRelevanceWeight( const Graph& g, NodeId n ) noexcept -inline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>& p, float alpha = 0.85f ) +inline std::uint32_t navRelevanceWeight( const Graph& g, NodeId n ) noexcept +inline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>& p, float alpha = 0.85f ) inline constexpr std::string_view kPowerShellPathPrependScope = "in PowerShell, for this window inline std::string path_prepend_hint( std::string_view dir ) -HOT_FILES = ( "src/pagerank.cpp", # the power-iteration loop — G2's no-allocation scope "src/infra/radixSort.h", # LSD radix entry points "src/infra/radixSort.inl", # the counting … [line truncated: 76 more bytes on this line] -handle_t leftmost_leaf() const +handle_t leftmost_leaf() const +HOT_FILES = ( "src/pagerank.cpp", # the power-iteration loop — G2's no-allocation scope "src/infra/radixSort.h", # LSD radix entry points "src/infra/radixSort.inl", # the counting … [line truncated: 76 more bytes on this line] inline std::string doctorPathPrependLine( const std::string& selfPath ) @@ -1570,21 +1550,19 @@ at: da897642e ## `./build/ripwire . --pack-signatures --top-k=10` -*Body-elided decl skeletons — recounted on this corpus. Measured as element bytes: the signature+doc elements --pack-signatures emits, against the SAME symbols' full bodies from --expand, with the CORPUS-ROOT PREFIX SUBTRACTED FROM BOTH SIDES. That subtraction is the whole methodology and the figure is meaningless without it: the root repeats inside every element's id= and p=, it is not what this verb elides, and counting it makes the headline a function of how deep the checkout happens to sit on disk — on one corpus, three spellings of the same root read 18.6 points apart before the subtraction and agree exactly after it. Root-neutralised on THIS repo: 89.7% fewer bytes at top-10, 88.0% at top-50, 87.8% at top-100 (re-derived 2026-10-10 when the C++ standard-member gate stopped std::vector/std::string calls such as out.push_back() and s.empty() from binding to in-tree namesakes by name: the ranked top-10/50 lost one-line container accessors (svector::push_back, WidePath::c_str, every empty) and gained one-line forwarding helpers and macros (kindIs, ASSUME, formatTo, emitTo) whose signature is nearly the whole body, so less of the set is elidable, from 92.7/88.7/87.6; before that, re-derived 2026-09-20 when the native Windows port landed: src/infra/os_win32.cpp and os_win32_logic.h are ~3,900 lines of new, heavily commented infra that the ranked top-10/50/100 now reach, and their bodies are this ratio's DENOMINATOR, so the figure rises without --pack-signatures eliding anything new, from top-50 87.1. Measured by test/showcasecapturecheck.sh's own recount arm on the combined tree, which is the gate that would otherwise report the drift; before that, re-derived 2026-09-17 at the self-check macro vocabulary rename: VERIFY/VERIFY_TEXT/VERIFY_DEBUG_ONLY/VERIFY_NOT_REACHED/VERIFY_SAME_THREAD/VERIFY_NO_ALIAS*/DYNMAP_VERIFY/DEGRADED_PATH_ALERT renamed to ASSUME/EXPECTS/ENSURES/DASSERT/UNREACHABLE/ASSUME_SAME_THREAD*/ASSUME_NO_ALIAS*/DYNMAP_ASSUME/DISCLOSE (plus new VALIDATE sites) across 839 identifier renames in 179 files, and a hand-written Diagnostics.h/diagnostics.cpp replacing the old ones outright: this moves both WHICH symbols the ranked top-10/50/100 hold and how large their bodies are, from top-50 85.2. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-12 when the rows dropped the path-repeating id= for the short sc= scope: the signature side shrank, the bodies did not; before that, 89.5% / 81.8% / 84.3% re-derived 2026-09-10 at the sibs= cap raise: kMaxExpandSibs went 8 -> 100, so --expand's bodies now carry the file context the old cap hid — 89.3% of all sibling names — and the body side is this ratio's DENOMINATOR, so the figure rises without --pack-signatures eliding anything new. Measured on a fixed tree with the top-50 membership and the signature side unchanged: top-50 from 71.0. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-09 at the printf-family -> std::print conversion: converting ~1,500 emitter call sites to rw::emitTo/emitRaw/formatTo across 93 files changes how large the ranked symbols' BODIES are, and the body side is this ratio's denominator — top-50 from 72.3. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-08 at the confident-zero round, issues #62/#63/#66: that change adds symbols to src/graphlegend.h and the new src/preprocdead.h and re-homes two long comment blocks from call sites onto the helpers they explain, which moves both WHICH symbols the ranked top-50 holds and how large their bodies are — top-50 from 74.0. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-06 at the stranger-audit fix round: the doctor, cache-sweep and html-provenance bodies grew this corpus's BODY side, moving top-50 from 75.6 — a real re-derivation, not a tolerance edit; before that, re-derived 2026-09-05 at the capture-audit close: lane L7's P16 caps --expand's sibs= at 8 names, which SHRINKS the body side of this ratio and moved the figure down from 84.5/80.2/80.6 — the V1 2026-08-15 re-center, when sibs=/inc= first grew the body side from 70.0/61.0/63.8, in reverse; both were real re-derivations, not tolerance edits). top-50 is the number to quote, because the sigs payload is top-50 regardless of --top-k and is therefore what THIS command emits. A single small/trivial body can still invert it (signature+doc bigger than the body), like the --format=columnar sibling below. test/showcasecapturecheck.sh (C) re-derives all three from this repo every run, in the same quantity, and fails if the caption and the recount drift apart.* - -**wall time: 1.15s** +*Body-elided decl skeletons — recounted on this corpus. Measured as element bytes: the signature+doc elements --pack-signatures emits, against the SAME symbols' full bodies from --expand, with the CORPUS-ROOT PREFIX SUBTRACTED FROM BOTH SIDES. That subtraction is the whole methodology and the figure is meaningless without it: the root repeats inside every element's id= and p=, it is not what this verb elides, and counting it makes the headline a function of how deep the checkout happens to sit on disk — on one corpus, three spellings of the same root read 18.6 points apart before the subtraction and agree exactly after it. Root-neutralised on THIS repo: 87.9% fewer bytes at top-10, 87.6% at top-50, 88.6% at top-100 (re-derived 2026-11-20 when train 1118a's qualified C++ calls began binding the namespace their qualifier names (qual-ns-call-bind: this repo's graph went from 43,002 to 43,540 edges): the ranked top-10 lost the RW_CHECK_ macro and gained enumcount.h's enumTableAt, whose signature is most of its short body, from 89.7/88.0/87.8; before that, re-derived 2026-10-10 when the C++ standard-member gate stopped std::vector/std::string calls such as out.push_back() and s.empty() from binding to in-tree namesakes by name: the ranked top-10/50 lost one-line container accessors (svector::push_back, WidePath::c_str, every empty) and gained one-line forwarding helpers and macros (kindIs, ASSUME, formatTo, emitTo) whose signature is nearly the whole body, so less of the set is elidable, from 92.7/88.7/87.6; before that, re-derived 2026-09-20 when the native Windows port landed: src/infra/os_win32.cpp and os_win32_logic.h are ~3,900 lines of new, heavily commented infra that the ranked top-10/50/100 now reach, and their bodies are this ratio's DENOMINATOR, so the figure rises without --pack-signatures eliding anything new, from top-50 87.1. Measured by test/showcasecapturecheck.sh's own recount arm on the combined tree, which is the gate that would otherwise report the drift; before that, re-derived 2026-09-17 at the self-check macro vocabulary rename: VERIFY/VERIFY_TEXT/VERIFY_DEBUG_ONLY/VERIFY_NOT_REACHED/VERIFY_SAME_THREAD/VERIFY_NO_ALIAS*/DYNMAP_VERIFY/DEGRADED_PATH_ALERT renamed to ASSUME/EXPECTS/ENSURES/DASSERT/UNREACHABLE/ASSUME_SAME_THREAD*/ASSUME_NO_ALIAS*/DYNMAP_ASSUME/DISCLOSE (plus new VALIDATE sites) across 839 identifier renames in 179 files, and a hand-written Diagnostics.h/diagnostics.cpp replacing the old ones outright: this moves both WHICH symbols the ranked top-10/50/100 hold and how large their bodies are, from top-50 85.2. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-12 when the rows dropped the path-repeating id= for the short sc= scope: the signature side shrank, the bodies did not; before that, 89.5% / 81.8% / 84.3% re-derived 2026-09-10 at the sibs= cap raise: kMaxExpandSibs went 8 -> 100, so --expand's bodies now carry the file context the old cap hid — 89.3% of all sibling names — and the body side is this ratio's DENOMINATOR, so the figure rises without --pack-signatures eliding anything new. Measured on a fixed tree with the top-50 membership and the signature side unchanged: top-50 from 71.0. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-09 at the printf-family -> std::print conversion: converting ~1,500 emitter call sites to rw::emitTo/emitRaw/formatTo across 93 files changes how large the ranked symbols' BODIES are, and the body side is this ratio's denominator — top-50 from 72.3. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-08 at the confident-zero round, issues #62/#63/#66: that change adds symbols to src/graphlegend.h and the new src/preprocdead.h and re-homes two long comment blocks from call sites onto the helpers they explain, which moves both WHICH symbols the ranked top-50 holds and how large their bodies are — top-50 from 74.0. A real re-derivation of a corpus that changed, not a tolerance edit; previously re-derived 2026-09-06 at the stranger-audit fix round: the doctor, cache-sweep and html-provenance bodies grew this corpus's BODY side, moving top-50 from 75.6 — a real re-derivation, not a tolerance edit; before that, re-derived 2026-09-05 at the capture-audit close: lane L7's P16 caps --expand's sibs= at 8 names, which SHRINKS the body side of this ratio and moved the figure down from 84.5/80.2/80.6 — the V1 2026-08-15 re-center, when sibs=/inc= first grew the body side from 70.0/61.0/63.8, in reverse; both were real re-derivations, not tolerance edits). top-50 is the number to quote, because the sigs payload is top-50 regardless of --top-k and is therefore what THIS command emits. A single small/trivial body can still invert it (signature+doc bigger than the body), like the --format=columnar sibling below. test/showcasecapturecheck.sh (C) re-derives all three from this repo every run, in the same quantity, and fails if the caption and the recount drift apart.* ````` - - + + - + @@ -1605,21 +1583,19 @@ at: da897642e -… [146 more display lines; full output is 15445 bytes on 1 raw line(s)] +… [145 more display lines; full output is 15481 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --outline=rankGraphTeleport --top-k=0` *Control-flow skeleton of one symbol, payload-only via the new --top-k=0.* -**wall time: 1.40s** - ````` - + & p, float alpha = 0.85f ) { PROFILE_SCOPE_DESCRIBE( "rankGraph: PageRank (power iteration)" ); @@ -1643,14 +1619,12 @@ at: da897642e *CHANGED: a line range on --outline is now STRIPPED with a stderr note (it used to refuse).* -**wall time: 1.44s** - ````` - + & p, float alpha = 0.85f ) { PROFILE_SCOPE_DESCRIBE( "rankGraph: PageRank (power iteration)" ); @@ -1680,14 +1654,12 @@ ripwire: --outline=rankGraphTeleport:1-10: --outline has no line-range form — *Full body + inline callee signatures.* -**wall time: 1.27s** - ````` - + : files the ranked rows show / do not (sum = files=), each named or counted below. : a program entry by its language's convention (C/Go/Rust main, Java/C# static main, a script main its module scope calls, __main__.py), callees as c rows; manifest entries not read. : n= unshown files under dir p=; f= names its code files, the rest (tests, docs, config, test/doc/example dirs) counted. declined=K: K call sites without edges, including inert Elixir quote sites after unquote/unquote_splicing re-entry. external=K: K calls proven outside the tree, no edge. locality_pinned=K: K calls pinned by locality alone (a guess). extent_suspect_syms=K: K defs failed containment, corpus-wide. macro_blanked_files=K: K files indexed from a macro-blanked re-parse. prov=scip|binding|import|split|final-segment: how that edge bound (absent: one unique name); split = one arm of an amb= pick; final-segment = a qualified type matched by last name only. files=/symbols=: files and symbols indexed; edges= distinct call edges; shown= symbols printed, a merged row counting each def; ambiguous= calls split over several defs, corpus-wide; unresolved= calls with in-tree evidence and no edge (every def language-filtered or unreachable, or binding refused); order= rows by rank (important-first, important-last; (auto:fill) = flipped past a size threshold) or by path (stable). skipped_oversize=K: K files over a size ceiling, not indexed. unindexed=ext:N: N text files of that extension no grammar reads (6 extensions at most). unindexed_exts=E: E such extensions in all, the list cut. : a non-test row an indexed test transitively reaches (absent otherwise, never 0). : that callee matched by name alone (receiver unproven); it does NOT mean the edge is false. sc=: enclosing scope; the full id is p::sc::n (p= of the row or its ) and selectors take it. amb=K: K calls split over several defs. locals_floor=1: locals= is a floor. role=hub: in= is 8 or more. s in= out= cx= ccx= loc= params= nest= cbo= lcom4= amp=: callers, callees, cyclomatic/cognitive complexity, lines, parameters, nesting depth, coupled types, class cohesion, callers + co-changed files. ev=/ev_why=: essential complexity (2+: jumps block extract-method; absent: 1) / the jumps behind it, tag:count. ev_floor=1: ev= is a FLOOR; noreturn calls, macro-hidden exits and unresolved gotos are unseen. layer=: built-in arch layer (game|infra|render|math|audio|ai|test) from a dir name in p=; absent if none. l=N: start line; only on a same-name overload's row, one row per body (bodyless decls fold into overloads=). f p=: a file; s t= n=: kind, name; c n=: a resolved callee. s k=: rank. --> + - - + + - + @@ -1894,7 +1862,7 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan - + @@ -1907,7 +1875,7 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan -… [108 more display lines; full output is 12758 bytes on 1 raw line(s)] +… [110 more display lines; full output is 12768 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --deps` @@ -1916,10 +1884,10 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan ````` - - - - + + + + @@ -1952,51 +1920,51 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan *Complexity x recent git churn (maintenance pain).* -**wall time: 8.62s** +**wall time: 2.18s** ````` - - - + + + - + - + + - - + - + -… [14 more display lines; full output is 5825 bytes on 1 raw line(s)] +… [14 more display lines; full output is 5831 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --clones` *Token-normalized duplicate bodies.* -**wall time: 5.57s** +**wall time: 2.35s** ````` - + @@ -2006,7 +1974,7 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan - + @@ -2016,7 +1984,7 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan - + @@ -2032,40 +2000,40 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan *Files that change together in git (hidden coupling).* -**wall time: 5.18s** +**wall time: 1.59s** ````` - - + - + + - - - + - - - - - + - + + + - - - + + - + + - - - + + + + + + + ````` @@ -2074,40 +2042,40 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan *Hotspots scoped to RECENT churn (the regression lens).* -**wall time: 7.22s** +**wall time: 2.30s** ````` - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + - + - + + -… [13 more display lines; full output is 5180 bytes on 1 raw line(s)] + +… [13 more display lines; full output is 5204 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --arch=test/archfix/rules.txt` @@ -2117,7 +2085,7 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan ````` - + @@ -2145,7 +2113,7 @@ ripwire: --pack-top-n is deprecated — use --pack-task/--detail instead (unchan -… [1391 more display lines; full output is 194120 bytes on 1 raw line(s)] +… [1392 more display lines; full output is 194260 bytes on 1 raw line(s)] ````` stderr: @@ -2158,12 +2126,12 @@ ripwire arch: 407 file(s) in go,swift,java,cs,php,dart,kt,gd,clj: this build res *Built-in AST checks (c-cast, goto, unsafe-c-fn, ...).* -**wall time: 9.74s** +**wall time: 3.05s** ````` - - + + @@ -2171,35 +2139,33 @@ ripwire arch: 407 file(s) in go,swift,java,cs,php,dart,kt,gd,clj: this build res - + - - + + - - + + - + - + - -… [680 more display lines; full output is 70978 bytes on 1 raw line(s)] + +… [679 more display lines; full output is 70931 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --lint-rules=test/lintrulesfix/rules` *User lint rules (YAML, ast-grep style) from a directory.* -**wall time: 2.23s** - ````` @@ -2225,8 +2191,6 @@ ripwire: AST query did not compile for any grammar: (this_is_not_a_real_node @x *Join MEASURED heat onto --lint findings — runs in a tiny fabricated demo corpus (one cache-pointer-chase-loop finding under a PROFILE_SCOPE site) because a real report needs a RIPWIRE_PROFILE build; the finding inside the profiled scope gains heat_* columns from the report's #PROF_TSV row.* -**wall time: 2.09s** - Input file: ````` @@ -2282,36 +2246,36 @@ The joined finding — past the display cut above, extracted so the join is visi ````` - + - - - - + + + + - + - + - - + + - + -… [189 more display lines; full output is 16631 bytes on 1 raw line(s)] +… [189 more display lines; full output is 16723 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --zoom` @@ -2320,15 +2284,15 @@ The joined finding — past the display cut above, extracted so the join is visi ````` - - + + - - + + @@ -2341,12 +2305,12 @@ The joined finding — past the display cut above, extracted so the join is visi - - + + - - + + … [137 more display lines; full output is 7611 bytes on 1 raw line(s)] @@ -2358,36 +2322,36 @@ The joined finding — past the display cut above, extracted so the join is visi ````` - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + -… [325 more display lines; full output is 14595 bytes on 1 raw line(s)] +… [321 more display lines; full output is 14438 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --report` @@ -2399,25 +2363,25 @@ The joined finding — past the display cut above, extracted so the join is visi # ripwire architecture report -4813 files · 43892 symbols · 43002 edges · 5098 modules (20772 call-graph isolated) +4825 files · 44048 symbols · 43566 edges · 5028 modules (20789 call-graph isolated) Root: `.` -Call-graph isolate provenance: 5690 declaration, 3459 header, 4579 source, 7044 document; 0 connected Louvain singletons +Call-graph isolate provenance: 5708 declaration, 3474 header, 4561 source, 7046 document; 0 connected Louvain singletons -## Modules (call-graph clusters; showing 12 of 5098) -- **src::emitTo@infra/emit.h:53:2760 [write,run,emit]** — 1598 symbols -- **src::kindIs@infra/nodekind.h:46:3271 [push,emit,read]** — 701 symbols -- **src::DISCLOSE@infra/Diagnostics.h:622:43913 [read,compute,run]** — 554 symbols +## Modules (call-graph clusters; showing 12 of 5028) +- **src::emitTo@infra/emit.h:53:2760 [write,run,emit]** — 1893 symbols +- **src::kindIs@infra/nodekind.h:46:3271 [push,emit,read]** — 706 symbols +- **src::DISCLOSE@infra/Diagnostics.h:622:43913 [read,compute,resolve]** — 546 symbols - **docs::`--top-k=N`@COMMANDS.md:59:9303 [pack,allow,insert]** — 185 symbols -- **src/infra::fail@os_win32.cpp:63:2553 [open,get,close]** — 109 symbols +- **src::close@infra/os.h:181:9420 [open,write,read]** — 109 symbols - **test/ownerhopfix/py/pkg::big_handler_001@broadcast.py:3:72** — 106 symbols - **src::trimWs@resolve.h:2003:104459 [read,scan,drop]** — 105 symbols +- **src/infra::fail@os_win32.cpp:63:2553 [get,open,release]** — 92 symbols - **src::text@ingest_valuerefs.h:805:41741 [emit,open,mark]** — 80 symbols -- **src::rowOffsets@infra/sparseCsr.h:248:8990 [connect,collect,compute]** — 76 symbols +- **src::str@infra/internedtext.h:323:16987 [resolve,call,attach]** — 79 symbols +- **src::rowOffsets@infra/sparseCsr.h:248:8990 [connect,collect,compute]** — 77 symbols - **test::no@estchargecheck.sh:52:4108 [skip]** — 63 symbols -- **src::open@helpdeadline.h:379:17028 [open,read,get]** — 60 symbols -- **src/infra::DYNMAP_ASSUME@dynamic_map.hpp:90:4411 [insert,erase,find]** — 49 symbols Not measured: 407 files in go,swift,java,cs,php,dart,kt,gd,clj (imports almost never resolved to files), so the god files and cycles below cover the resolved edges only. @@ -2425,7 +2389,7 @@ Not measured: 407 files in go,swift,java,cs,php,dart,kt,gd,clj (imports almost n - `src/model.h` — 143 dependents - `src/infra/emit.h` — 101 dependents - `src/infra/Diagnostics.h` — 78 dependents -… [38 more lines, 4323 bytes total] +… [38 more lines, 4336 bytes total] ````` ## `./build/ripwire . --seams` @@ -2434,10 +2398,10 @@ Not measured: 407 files in go,swift,java,cs,php,dart,kt,gd,clj (imports almost n ````` - + - + @@ -2474,15 +2438,15 @@ Not measured: 407 files in go,swift,java,cs,php,dart,kt,gd,clj (imports almost n %% ripwire --mermaid: module (directory) dependency graph — node = dir (symbol count), edge = inter-module calls (>= 3). Render at mermaid.live. flowchart LR subgraph sg0 ["src"] - n105["src
14247"] - n106["src/infra
1679"] + n105["src
14348"] + n106["src/infra
1680"] end subgraph sg1 ["test"] - n107["test
6942"] + n107["test
6961"] n750["test/legochargefix
546"] n472["test/fixtures/recallpassage
314"] n491["test/fnslotcpp2
285"] - n913["test/lib
235"] + n913["test/lib
242"] n712["test/ifacepeelfix/cpp
206"] n1260["test/slotjoinfix
182"] n1017["test/ownerhopfix/py/pkg
158"] @@ -2508,12 +2472,12 @@ flowchart LR *Bus-factor: recency-weighted author ownership per file.* -**wall time: 4.14s** +**wall time: 2.17s** ````` - - + + @@ -2548,40 +2512,24 @@ flowchart LR *Internal functions with no caller found in the index — a name-based graph reading, not a confidence score. NOTE the filter is a path-COMPONENT match: 'src' matches any .../src/... segment; use ./src to pin the root directory.* -**wall time: 3.75s** +**wall time: 1.67s** ````` - + - + - - - - - - - - - - - - - - - - - - - - -… [61 more display lines; full output is 16496 bytes on 1 raw line(s)] + + + + + ````` ## `./build/ripwire . --exercises=test/regression.sh` @@ -2601,7 +2549,7 @@ flowchart LR ````` - ````` @@ -2610,11 +2558,11 @@ flowchart LR *The regression-free answer on a clone whose ledger holds stale acknowledgements (its HEAD's own history plus one demo row keyed to a finding that no longer measures as worse): the verdict-only document, every stale row collapsed to stale= and stale_by_kind=, with stale_next= naming the call below. Recorded in a throwaway clean clone so the contrast is structural — not a race with the release checkout's drift — and every regeneration on every machine sees the same pair.* -**wall time: 60.14s** +**wall time: 31.50s** ````` - ````` @@ -2628,11 +2576,11 @@ ripwire: no ./.ripwire_quality_baseline — auto-comparing the working tree vs g *The same run, the same clone, the folded rows printed back: each stale acknowledgement as an row under the full header — the demo row included, and no quarter of the bytes saved by silence. Refused without --quality-delta.* -**wall time: 27.40s** +**wall time: 14.38s** ````` - @@ -2660,8 +2608,8 @@ ripwire: no ./.ripwire_quality_baseline — auto-comparing the working tree vs g - -… [151 more display lines; full output is 17482 bytes on 1 raw line(s)] + +… [153 more display lines; full output is 17691 bytes on 1 raw line(s)] ````` stderr: @@ -2674,14 +2622,14 @@ ripwire: no ./.ripwire_quality_baseline — auto-comparing the working tree vs g *Fast per-symbol post-edit contract check vs git HEAD (unchanged on a clean tree).* -**wall time: 24.24s** +**wall time: 10.17s** ````` - - - + + @@ -2693,11 +2641,11 @@ ripwire: no ./.ripwire_quality_baseline — auto-comparing the working tree vs g *No-LLM review-evidence bundle for the working-tree diff (clean tree = empty).* -**wall time: 3.85s** +**wall time: 1.53s** ````` - ````` @@ -2706,55 +2654,55 @@ ripwire: no ./.ripwire_quality_baseline — auto-comparing the working tree vs g *The BASEREF form: diffed against merge-base(BASEREF, HEAD), never the ref tip — here the previous commit on the current line (a ref with NO merge base falls back to a disclosed two-dot diff: anchor="ref-tip-two-dot").* -**wall time: 10.68s** +**wall time: 4.13s** ````` - -: n rows with equal attrs as ONE row; each path's command is run_each= with {p} replaced by that path; p= splits on ',' into exactly n= paths; shown=/total= count test FILES. est_tokens=: price as emitted (an upper bound under compact). at=: commit+dirty+shallow. root=: p= relative to it. truncated=: what the trim ladder dropped to fit budget_tokens= (budget-floor-exceeded: still over). anchor=merge-base: diffed from merge base(base, HEAD); ref-tip-two-dot = no merge base, two-dot view. base_sha=: the merge-base commit (9 hex) the diff is anchored at. base_moved=N: paths the base ref changed since the fork that this work never touched; excluded. direction=: side reviewed: worktree-since-head, head-since-fork or head-since-ref-tip. skipped_mode_only=N: mode-only (chmod) diffs left out of the changed files; renames stay in. trim_level=0-4: trim ladder step taken to fit budget_tokens= (0 none, 4 counts only); raise token-budget. budget_default=1: the default 8000-token budget applied (no token-budget or max-tokens given). commits=N: this file's commits in window=; 0 = the window could not look, not no partners. partners=N: co-change partners NOT in the diff; rows are its top shown= (the cochange verb lists all). dependents=N: distinct symbols transitively calling this file's symbols (reach set, a FLOOR). files_other=N: non-changed files among those reached; the f rows are its top shown=. authors=N: distinct authors of this file (0 = no git data). bf=1: one author holds over 80% of recency-weighted commits (bus-factor risk). no-ref-work note=: the base ref's tip is the merge base, so it has no work of its own; rows are HEAD's. files=N: changed files in the diff (shown= of them listed). file symbols=: indexed symbols in that changed file. changed-symbols count= / tests count=: that section's full count (shown= of it listed). tests count=: test files reaching this file (shown= of them listed). impact files=: files holding the transitive callers (dependents=). impactf deps=: transitive callers in that file. author email=/share=: a committer of this file / its fraction of the recency-weighted commits. s callers=N: direct callers of that changed symbol; caller rows are its top shown= (callers verb: all). s t= n= / caller t= n=: a changed symbol's / one of its callers' kind and name. (t=modscope): a file's MODULE SCOPE — where a top-level call and an anonymous callback body's calls live; a CALLER, never a callee, with no body to expand. --> + - - + + + + + + + + + + + + + + + + + + - + + - - - - - - - - - - - - - - - - - + + - - - -… [33 more display lines; full output is 6739 bytes on 1 raw line(s)] + + +… [39 more display lines; full output is 7143 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --merge-scout=HEAD~2,HEAD~1` *Pairwise cross-arm conflict sites + suggested landing order (any committish sharing a merge base with HEAD works as an arm; one that does not is reported ok="0", never compared).* -**wall time: 43.71s** +**wall time: 23.12s** ````` - - + + - + @@ -2762,15 +2710,21 @@ ripwire: no ./.ripwire_quality_baseline — auto-comparing the working tree vs g ````` +stderr: + +````` +ripwire: cache : over its 2048 MiB budget — evicted 26 blob(s) of other roots or other ripwire builds (this build's blobs for this root are kept) +````` + ## `./build/ripwire . --stray-content=lane/` *Which refs of the `lane/` ref family still hold divergent authored work vs HEAD, with verdicts.* -**wall time: 19.98s** +**wall time: 10.55s** ````` - + @@ -2799,18 +2753,18 @@ ripwire: no ./.ripwire_quality_baseline — auto-comparing the working tree vs g -… [783 more display lines; full output is 88914 bytes on 1 raw line(s)] +… [799 more display lines; full output is 90718 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --stray-content=fix/` *A second selection, the `fix/` ref family, picked at capture time from the refs this checkout really has and never the selection above: merged refs are OMITTED from the rows and counted in merged=; refs sharing no merge base with HEAD (a shallow clone, or a pre-rewrite history) land in unknown= with ok="0" — the counters always reconcile against refs=.* -**wall time: 3.21s** +**wall time: 2.82s** ````` - + ````` @@ -2818,40 +2772,40 @@ ripwire: no ./.ripwire_quality_baseline — auto-comparing the working tree vs g *Select the genuinely-unmerged refs of the `lane/` ref family and feed them to merge-scout for a landing order (a fully merged selection yields an empty landing set — still a measurement, disclosed on the root).* -**wall time: 39.11s** +**wall time: 23.35s** ````` - + - - + + - + - - - - + + + + + - - + - + -… [278 more display lines; full output is 30508 bytes on 1 raw line(s)] +… [278 more display lines; full output is 30522 bytes on 1 raw line(s)] ````` stderr: @@ -2864,7 +2818,7 @@ ripwire: warning: --plan scouted 1 of 67 unmerged branches for conflicts and lan *A --plan filter that selects NO ref REFUSES (exit 1) naming the substring — before the wave-3 close this fell through to the '>512 refs match' sentence, and --abi under the same filter answered an empty measurement at exit 0.* -**exit code: 1** — **wall time: 6.19s** +**exit code: 1** — **wall time: 2.00s** ````` (empty) @@ -2881,12 +2835,12 @@ ripwire: --plan: --stray-content=zzzz-no-such-ref matches no local ref — a zer *Cross-branch ABI-break gate over the `lane/` ref family: struct byte-contract drift on each ref's AUTHORED paths — exit 2 when any drift row is found (the only kind that gates), 0 when the compared refs are clean, and exit 1 if the --stray-content filter matches no ref at all.* -**exit code: 2** — **wall time: 41.65s** +**exit code: 2** — **wall time: 38.01s** ````` - + @@ -2914,21 +2868,21 @@ ripwire: --plan: --stray-content=zzzz-no-such-ref matches no local ref — a zer -… [642 more display lines; full output is 48111 bytes on 1 raw line(s)] +… [652 more display lines; full output is 48704 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --whereis=rankGraphTeleport` *Which ref's tree defines or mentions SYM — HEAD first, then every local branch. The default lists the kind="def" rows (here the first 60, most on branches, each carrying tip= and date=) and counts the references in : on this symbol HEAD's references would fill the 60-row cap before the branch definitions arrive, so the whole list (below) shows fewer definitions, and the default serves the page that shows more of them, whatever its bytes.* -**wall time: 28.93s** +**wall time: 21.26s** ````` - + - + - - - - - - + + + + + + @@ -2960,22 +2914,22 @@ ripwire: --plan: --stray-content=zzzz-no-such-ref matches no local ref — a zer stderr: ````` -ripwire: warning: --whereis read the newest 376 of 637 local branches; 261 older were not read (limit: 2097152 tree entries across all refs, 377 refs with HEAD at this tree's size); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter -ripwire: warning: --whereis left 398 branch blobs unparsed, their rows kind=text (limit: 256 blobs or 64 MB per answer); pass --detail=1 to parse every one +ripwire: warning: --whereis read the newest 375 of 641 local branches; 266 older were not read (limit: 2097152 tree entries across all refs, 376 refs with HEAD at this tree's size); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter +ripwire: warning: --whereis left 405 branch blobs unparsed, their rows kind=text (limit: 256 blobs or 64 MB per answer); pass --detail=1 to parse every one ````` ## `./build/ripwire . --whereis=rankGraphTeleport --whereis-listing=all` *The whole hit list asked for by name: under the same 60-row cap HEAD's references fill the list, so it shows far fewer definitions (here HEAD's one) than the default above (here 60). The default serves the all page only when it shows the same definitions as the defs page in strictly fewer bytes (a tie serves it too).* -**wall time: 30.40s** +**wall time: 19.91s** ````` - + - + - - - - - - + + + + + + @@ -3007,19 +2961,19 @@ ripwire: warning: --whereis left 398 branch blobs unparsed, their rows kind=text stderr: ````` -ripwire: warning: --whereis read the newest 376 of 637 local branches; 261 older were not read (limit: 2097152 tree entries across all refs, 377 refs with HEAD at this tree's size); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter -ripwire: warning: --whereis left 398 branch blobs unparsed, their rows kind=text (limit: 256 blobs or 64 MB per answer); pass --detail=1 to parse every one +ripwire: warning: --whereis read the newest 375 of 641 local branches; 266 older were not read (limit: 2097152 tree entries across all refs, 376 refs with HEAD at this tree's size); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter +ripwire: warning: --whereis left 405 branch blobs unparsed, their rows kind=text (limit: 256 blobs or 64 MB per answer); pass --detail=1 to parse every one ````` ## `./build/ripwire . --quality-delta=HEAD~1..HEAD --quality-kinds=complexity,dead-code` *A ref range run for two of the twelve kinds only: the named kinds' rows are exactly their rows in the full answer, the header names the others (kinds_skipped=, skipped_why="selector"), and a pass no named kind needs does not run. The replay a memory-stopped range answer hands back (kinds_next=) is this flag. Refused without --quality-delta=A..B.* -**wall time: 31.68s** +**wall time: 15.62s** ````` - - + + - - - - - - + + + + + + @@ -3066,43 +3020,43 @@ ripwire: warning: --whereis left 398 branch blobs unparsed, their rows kind=text stderr: ````` -ripwire: warning: --whereis read the newest 376 of 637 local branches; 261 older were not read (limit: 2097152 tree entries across all refs, 377 refs with HEAD at this tree's size); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter -ripwire: warning: --whereis left 398 branch blobs unparsed, their rows kind=text (limit: 256 blobs or 64 MB per answer); pass --detail=1 to parse every one +ripwire: warning: --whereis read the newest 375 of 641 local branches; 266 older were not read (limit: 2097152 tree entries across all refs, 376 refs with HEAD at this tree's size); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter +ripwire: warning: --whereis left 405 branch blobs unparsed, their rows kind=text (limit: 256 blobs or 64 MB per answer); pass --detail=1 to parse every one ````` ## `./build/ripwire . --whereis=computeOnePairOverlap --with-history` *Same, plus a git-history row (never / removed-by-commit) for names no tree carries.* -**wall time: 46.02s** +**wall time: 24.13s** ````` - - + + - - + + ````` stderr: ````` -ripwire: warning: --whereis read the newest 376 of 637 local branches; 261 older were not read (limit: 2097152 tree entries across all refs, 377 refs with HEAD at this tree's size); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter +ripwire: warning: --whereis read the newest 375 of 641 local branches; 266 older were not read (limit: 2097152 tree entries across all refs, 376 refs with HEAD at this tree's size); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter ````` ## `./build/ripwire . --flags` *The dark-content dashboard: gates BUILT but OFF. CHANGED: no longer invents gates from comments/heredocs, so the count only reflects real ifndef/define, CMake option(), and getenv gates.* -**wall time: 2.61s** +**wall time: 2.03s** ````` - + @@ -3129,18 +3083,16 @@ ripwire: warning: --whereis read the newest 376 of 637 local branches; 261 older -… [2397 more display lines; full output is 150778 bytes on 1 raw line(s)] +… [2398 more display lines; full output is 150825 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --flags --flip=RIPWIRE_ASAN` *Blast radius of turning ONE gate on: live code, symbols, transitive reach, covering tests.* -**wall time: 1.98s** - ````` - + @@ -3176,7 +3128,7 @@ ripwire: warning: --whereis read the newest 376 of 637 local branches; 261 older *Unknown-gate refusal (exit 1) with a did-you-mean from a real edit distance (one character off RIPWIRE_ASAN).* -**exit code: 1** — **wall time: 3.61s** +**exit code: 1** ````` (empty) @@ -3193,10 +3145,10 @@ ripwire: run `ripwire . --flags` for the gate table *NEW VERB: pre-hoc lane plan — which of 3 parallel worktrees would COLLIDE, before a line is written. JSON on stdout.* -**wall time: 6.92s** +**wall time: 1.83s** ````` -{"v":1,"verb":"plan-lanes","at":"da897642e","root":".","task":"add a --since filter to the doc-drift verb and cover it with tests","source":"partition","requested":3,"lane_count":3,"claim_key":"path+scope+name","on_conflict":"producing-lane-rebases","corpus":{"files":4813,"symbols":43892,"edges":430 … [line truncated: 338 more bytes on this line] +{"v":1,"verb":"plan-lanes","at":"cee081132","root":".","task":"add a --since filter to the doc-drift verb and cover it with tests","source":"partition","requested":3,"lane_count":3,"claim_key":"path+scope+name","on_conflict":"producing-lane-rebases","corpus":{"files":4825,"symbols":44048,"edges":435 … [line truncated: 338 more bytes on this line] "symbols":[{"p":"./src/docdrift.h","n":"DriftResult","scope":"DriftResult","l":286,"id":"./src/docdrift.h::DriftResult::DriftResult"}, {"p":"./src/docdrift.h","n":"computeDocDrift","scope":"docdrift","l":2441,"id":"./src/docdrift.h::docdrift::computeDocDrift"}, {"p":"./src/docdrift.h","n":"kDocDriftLegend","scope":"docdrift","l":2739,"id":"./src/docdrift.h::docdrift::kDocDriftLegend"}, @@ -3233,7 +3185,7 @@ ripwire: run `ripwire . --flags` for the gate table *NEW VERB, explicit form: one line per lane, lane boundaries are the ones you wrote (the defensible mode).* -**wall time: 12.10s** +**wall time: 2.57s** Input file: @@ -3244,7 +3196,7 @@ write regression tests for the new filter ````` ````` -{"v":1,"verb":"plan-lanes","at":"da897642e","root":".","task":null,"source":"brief","requested":3,"lane_count":3,"claim_key":"path+scope+name","on_conflict":"producing-lane-rebases","corpus":{"files":4813,"symbols":43892,"edges":43002,"ambiguous":3634,"unresolved":20011},"carve":null,"core":{"files" … [line truncated: 4 more bytes on this line] +{"v":1,"verb":"plan-lanes","at":"cee081132","root":".","task":null,"source":"brief","requested":3,"lane_count":3,"claim_key":"path+scope+name","on_conflict":"producing-lane-rebases","corpus":{"files":4825,"symbols":44048,"edges":43566,"ambiguous":3968,"unresolved":19992},"carve":null,"core":{"files" … [line truncated: 4 more bytes on this line] "symbols":[]},"lanes":[{"id":"lane-0","task":"add a --since filter to the doc-drift verb","claims":{"symbols":[{"p":"./src/docdrift.h","n":"recordUnchecked","scope":"docdrift","key":"12641dab14abc8fd","id":"./src/docdrift.h::docdrift::recordUnchecked","id_addressable":true,"id_collides_with":0,"l":2 … [line truncated: 72 more bytes on this line] {"p":"./src/docdrift.h","n":"sortWeakGroupsByPath","scope":"docdrift","key":"1944ba506280ff80","id":"./src/docdrift.h::docdrift::sortWeakGroupsByPath","id_addressable":true,"id_collides_with":0,"l":2401,"ord":0,"overloads":1,"amb":0,"cx":1,"ccx":0,"churn":37,"tested":0}, {"p":"./src/mcpverbs.h","n":"docDriftText","scope":"rw","key":"1fa68e8d93c05a59","id":"./src/mcpverbs.h::rw::docDriftText","id_addressable":true,"id_collides_with":0,"l":687,"ord":0,"overloads":1,"amb":0,"cx":1,"ccx":0,"churn":671,"tested":0}, @@ -3258,14 +3210,14 @@ write regression tests for the new filter {"p":"./src/mcpverbs.h","n":"unknownSubVerbRefusal","scope":"rw","key":"e336d39b0a6addea","id":"./src/mcpverbs.h::rw::unknownSubVerbRefusal","id_addressable":true,"id_collides_with":0,"l":6288,"ord":0,"overloads":1,"amb":0,"cx":3,"ccx":2,"churn":671,"tested":0}, {"p":"./src/docdrift.h","n":"kDocDriftLegend","scope":"docdrift","key":"ff2ba74637bbbebf","id":"./src/docdrift.h::docdrift::kDocDriftLegend","id_addressable":true,"id_collides_with":0,"l":2739,"ord":0,"overloads":1,"amb":0,"cx":0,"ccx":0,"churn":37,"tested":0}], "files":[{"p":"./src/docdrift.h","symbols":7,"churn":37,"ccx":60,"hotspot_rank":49}, -{"p":"./src/ensemble.h","symbols":1,"churn":23,"ccx":0,"hotspot_rank":127}, +{"p":"./src/ensemble.h","symbols":1,"churn":23,"ccx":0,"hotspot_rank":128}, {"p":"./src/mcpverbs.h","symbols":2,"churn":671,"ccx":2,"hotspot_rank":4}, {"p":"./src/recall.h","symbols":1,"churn":49,"ccx":4,"hotspot_rank":45}, {"p":"./src/verbs_change.h","symbols":1,"churn":92,"ccx":4,"hotspot_rank":33}], -"symbols_total":4241,"symbols_capped":true},"blast_radius":{"reaches":27,"files_total":8,"capped":false,"files":["./src/docdrift.h","./src/fordocbody.h","./src/main.cpp","./src/mcp.h","./src/mcpserver.h","./src/mcpverbs.h","./src/recall.h","./src/verbs_for.h"]},"tests_to_run":[], +"symbols_total":4242,"symbols_capped":true},"blast_radius":{"reaches":27,"files_total":8,"capped":false,"files":["./src/docdrift.h","./src/fordocbody.h","./src/main.cpp","./src/mcp.h","./src/mcpserver.h","./src/mcpverbs.h","./src/recall.h","./src/verbs_for.h"]},"tests_to_run":[], "tests_total":0,"tests_capped":false,"tests_granularity":"claimed-symbols","untested":27,"module_span":5,"notes":[], "execution":{"policy":"codex-lane/v1","model":"gpt-5.6-sol","reasoning":"xhigh","rule":"wide-contract-work","basis":"structural-only","signals":{"claims":12,"files":5,"module_span":5,"max_ccx":38,"sum_ccx":70,"ambiguous_calls":14,"blast_reaches":27,"contract_touches":1,"conflicts":0,"untested":27,"t … [line truncated: 139 more bytes on this line] -{"id":"lane-1","task":"add the CLI parse arm and help text for the new filter","claims":{"symbols":[{"p":"./scripts/optremarks.py","n":"main","scope":"","key":"01b3b880f77d1512","id":null,"id_addressable":false,"id_collides_with":186,"l":285,"ord":0,"overloads":1,"amb":0,"cx":23,"ccx":31,"churn":18, … [line truncated: 12 more bytes on this line] +{"id":"lane-1","task":"add the CLI parse arm and help text for the new filter","claims":{"symbols":[{"p":"./scripts/optremarks.py","n":"main","scope":"","key":"01b3b880f77d1512","id":null,"id_addressable":false,"id_collides_with":186,"l":286,"ord":0,"overloads":1,"amb":0,"cx":23,"ccx":31,"churn":19, … [line truncated: 12 more bytes on this line] {"p":"./scripts/merge_resolve.py","n":"main","scope":"","key":"0618162fab697309","id":null,"id_addressable":false,"id_collides_with":186,"l":208,"ord":0,"overloads":1,"amb":0,"cx":17,"ccx":34,"churn":4,"tested":0}, {"p":"./src/cli.h","n":"HelpLine","scope":"rw","key":"1489844dbc310b82","id":"./src/cli.h::rw::HelpLine","id_addressable":true,"id_collides_with":0,"l":3144,"ord":0,"overloads":1,"amb":0,"cx":0,"ccx":0,"churn":645,"tested":0}, {"p":"./src/cli.h","n":"HelpFilter","scope":"HelpFilter","key":"3103a5e8bfc33d38","id":"./src/cli.h::HelpFilter::HelpFilter","id_addressable":true,"id_collides_with":0,"l":3223,"ord":0,"overloads":1,"amb":0,"cx":0,"ccx":0,"churn":645,"tested":0}, @@ -3281,7 +3233,7 @@ write regression tests for the new filter *Out-of-range refusal shape for the lane count.* -**exit code: 1** — **wall time: 1.06s** +**exit code: 1** ````` (empty) @@ -3297,8 +3249,6 @@ ripwire: --plan-lanes=99 is out of range — N must be 2..16 (1 is not a fan-out *CPU/GPU contract view of one struct: computed offsets/sizes/padding + mirror check.* -**wall time: 1.10s** - ````` @@ -3359,11 +3309,11 @@ ripwire: --layout: 'Lang' is an enum, --layout models structs (a scoped/unscoped *Which of this repo's doc claims are now false. CHANGED: row attribute at= renamed to tgt= (at= is now only the root sha stamp).* -**wall time: 7.43s** +**wall time: 1.61s** ````` - +
@@ -3383,8 +3333,8 @@ ripwire: --layout: 'Lang' is an enum, --layout models structs (a scoped/unscoped - - + + @@ -3392,18 +3342,18 @@ ripwire: --layout: 'Lang' is an enum, --layout models structs (a scoped/unscoped -… [253 more display lines; full output is 25409 bytes on 1 raw line(s)] +… [258 more display lines; full output is 25726 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --doc-drift --gateability` *The finishable to-do list: docs whose LIVE failing anchors a date-stamp would reclassify.* -**wall time: 4.70s** +**wall time: 1.49s** ````` - + @@ -3423,8 +3373,8 @@ ripwire: --layout: 'Lang' is an enum, --layout models structs (a scoped/unscoped - - + + @@ -3432,13 +3382,13 @@ ripwire: --layout: 'Lang' is an enum, --layout models structs (a scoped/unscoped -… [283 more display lines; full output is 26789 bytes on 1 raw line(s)] +… [289 more display lines; full output is 27168 bytes on 1 raw line(s)] ````` Tail of the same output — the `` section: ````` - + @@ -3448,6 +3398,7 @@ Tail of the same output — the `` section: + @@ -3462,19 +3413,16 @@ Tail of the same output — the `` section: - ````` ## `./build/ripwire . --doc-drift --with-history` *Same report, with git history splitting stale mentions into deleted-by-commit vs never-existed.* -**wall time: 9.51s** - ````` - - + + @@ -3494,15 +3442,15 @@ Tail of the same output — the `` section: - - + + -… [232 more display lines; full output is 25615 bytes on 1 raw line(s)] +… [235 more display lines; full output is 25809 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --from-trace=-` @@ -3515,8 +3463,8 @@ Input file: AddressSanitizer:DEADLYSIGNAL ================================================================= ==41337==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000018 (pc 0x000102f4a1c8 bp 0x00016d2f1a40 sp 0x00016d2f19e0 T0) - #0 0x102f4a1c8 in rw::rankGraphTeleport(Graph const&, std::vector const&, float) src/graph.h:14630 - #1 0x102f3e884 in rw::rankGraph(Graph const&, float) src/graph.h:14673 + #0 0x102f4a1c8 in rw::rankGraphTeleport(Graph const&, std::vector const&, float) src/graph.h:14932 + #1 0x102f3e884 in rw::rankGraph(Graph const&, float) src/graph.h:14975 #2 0x102e11f30 in runDefaultMap(MainDispatch const&) src/main.cpp:1759 #3 0x102e01a44 in main src/main.cpp:4511 #4 0x1a2b3c0dc in start+0x9dc (dyld:arm64e+0x60dc) @@ -3524,25 +3472,25 @@ AddressSanitizer:DEADLYSIGNAL ````` ````` - + - - + + - + PageRank with an explicit teleport / personalization vector p (Σp = 1). The prior is name-quality-biased through biasPrior() so all rank modes share one weighting seam; the transition matrix (edgesinline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>&am … [line truncated: 31 more bytes on this line] - + uniform-teleport PageRank (the default). A kRankFlagNotNamed unit (model.h) has no edge and a 0 prior weight, so the uniform share is over the ranked nodes: every other node's teleport is the value itinline RankedGraph rankGraph( const Graph& g, float alpha = 0.85f ) int runDefaultMap( const MainDispatch& d ) int main( int argc, char** argv ) - + & p, float alpha = 0.85f ) { PROFILE_SCOPE_DESCRIBE( "rankGraph: PageRank (power iteration)" ); @@ -3584,10 +3532,8 @@ AddressSanitizer:DEADLYSIGNAL *ONE budget-shared bundle: ranking + top bodies + caller sigs + notes + tests_to_run. CHANGED: rows now carry n=/id=.* -**wall time: 1.48s** - ````` - + - + @@ -3655,17 +3601,17 @@ AddressSanitizer:DEADLYSIGNAL post.insert( post.size() - 1, " " + std::string( toolsArg ) ); } return post; -… [79 more display lines; full output is 22889 bytes on 87 raw line(s)] +… [89 more display lines; full output is 24522 bytes on 97 raw line(s)] ````` ## `./build/ripwire . --for="pagerank power iteration" --with-graph` *Task lens + a compact Mermaid flowchart of the top anchors' 1-hop edges.* -**wall time: 7.68s** +**wall time: 1.03s** ````` - + @@ -3676,21 +3622,21 @@ AddressSanitizer:DEADLYSIGNAL The PageRank power iteration itself — the numeric kernel every ranked document's order comes f…PageRankRun pageRankDouble( const sparseCsr<float>& inEdges, std::span<const double> weightedOutDegree, std::span<const double> teleport, std::span<double> r … [line truncated: 10 more bytes on this line] inline std::string rankByText( const std::string& root, std::string_view mode, int topK, bool stable = false ) -struct RankedGraph +struct RankedGraph inline constexpr const char* kChurnRankLegend = "<!-- rank_by=churn: k= is PageRank re-run with the teleport BIASED by git CHANGE-FREQUENCY over window= " "(a c… inline std::uint32_t sliceRdIterationCeiling() noexcept struct PageRankRun Render one form of the disclosure. Empty string whenever there is nothing to say — no power it…inline std::string renderDisclosure( const RankDisclosure& d, DiscloseAs as ) -inline std::uint32_t navRelevanceWeight( const Graph& g, NodeId n ) noexcept -inline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>& p, float alpha = 0.85f ) +inline std::uint32_t navRelevanceWeight( const Graph& g, NodeId n ) noexcept +inline RankedGraph rankGraphTeleport( const Graph& g, const std::vector<float>& p, float alpha = 0.85f ) inline constexpr std::string_view kPowerShellPathPrependScope = "in PowerShell, for this window inline std::string path_prepend_hint( std::string_view dir ) -HOT_FILES = ( "src/pagerank.cpp", # the power-iteration loop — G2's no-allocation scope "src/infra/radixSort.h", # LSD radix entry points "src/infra/radixSort.inl", # the counting … [line truncated: 76 more bytes on this line] -handle_t leftmost_leaf() const +handle_t leftmost_leaf() const +HOT_FILES = ( "src/pagerank.cpp", # the power-iteration loop — G2's no-allocation scope "src/infra/radixSort.h", # LSD radix entry points "src/infra/radixSort.inl", # the counting … [line truncated: 76 more bytes on this line] inline std::string doctorPathPrependLine( const std::string& selfPath ) @@ -3702,7 +3648,7 @@ AddressSanitizer:DEADLYSIGNAL *Per-file metrics as CodeCharta cc.json.* -**wall time: 7.89s** +**wall time: 1.95s** ````` (empty) @@ -3711,7 +3657,7 @@ AddressSanitizer:DEADLYSIGNAL Artifact written: ````` - 736565 /aux/ripwire2.cc.json + 738223 /aux/ripwire2.cc.json {"projectName":"project","apiVersion":"1.3","attributeDescriptors":{"loc":{"title":"Lines of Code","description":"Physical line count","direction":-1},"symbols":{"title":"Symbols","description":"Definitions in the file","direction":-1},"cx":{"title":"Cyclomatic Complexity","description":"Sum of per-symbol cyclomatic complexity","direction":-1},"cognitive_cx":{"title":"Cognitive Complexity","descri ````` @@ -3719,7 +3665,7 @@ Artifact written: *One-turn sweep: 4 newline-delimited verb:arg sub-queries answered in ONE deduped .* -**wall time: 13.04s** +**wall time: 1.93s** Input file: @@ -3734,7 +3680,7 @@ lego:Vehicle - + @@ -3749,7 +3695,7 @@ lego:Vehicle Ingest the tree at `sha`, materialized out of `root`'s object store. The HEAD side reuses the SA…inline bool ingestCommitTree( const std::string& root, const std::string& sha, const std::vector<std::string>& excludes, std::size_t maxFileBytes, IngestResult&… … [line truncated: 4 more bytes on this line] struct FileHealth inline std::vector<std::vector<NodeId>> legoImplementorsOnSurface( const IngestResult& ing, const std::vector<std::vector<NodeId>>& implementors, const std::v … [line truncated: 9 more bytes on this line] -inline std::pair<Snapshot, bool> computeHeadSnapshot( const std::string& root, const std::string_view* cacheNever = nullptr, std::size_t maxFileBytes = kDefault… +inline std::pair<Snapshot, bool> computeHeadSnapshot( const std::string& root, const std::string_view* cacheNever = nullptr, std::size_t maxFileBytes = kDefault… inline RawFacts runParsePool( IngestResult& result, const char* rootDir, std::string_view cacheFile, bool captureValueUses, CacheRecords& cache, const CacheLoadStats& cacheStats, IngestFileScan … [line truncated: 62 more bytes on this line] inline McpRebuildBaseline mcpRebuildBaseline( const McpIndex& ix, bool isIncrementalPass ) inline std::string mcpFreshFields( std::uint64_t passesAtEntry ) @@ -3761,7 +3707,7 @@ lego:Vehicle const char* cacheArtifactVerdict( const std::string& path, bool captureValueUses ) inline bool parentCacheOn() -… [236 more display lines; full output is 60644 bytes on 1 raw line(s)] +… [236 more display lines; full output is 60645 bytes on 1 raw line(s)] ````` @@ -3773,18 +3719,18 @@ lego:Vehicle *Environment self-check: binary staleness, grammars, cache dir, git, tracked-binary staleness — exit 1 when any check fails (here: the PATH install is older than ./build).* -**exit code: 1** — **wall time: 49.71s** +**exit code: 1** — **wall time: 7.52s** ````` - - + - - + + - - + @@ -3799,8 +3745,6 @@ lego:Vehicle *Scan a single skill file for injection/exfiltration patterns before installing.* -**wall time: 1.50s** - ````` @@ -3838,17 +3782,21 @@ ripwire scan: 0 finding(s) total (26 skill file(s) scanned, 0 unscannable file(s *Rank by git change-frequency prior instead of PageRank.* -**wall time: 9.68s** +**wall time: 2.31s** ````` - - + + - + + + + + @@ -3860,39 +3808,33 @@ ripwire scan: 0 finding(s) total (26 skill file(s) scanned, 0 unscannable file(s - - - - ````` -## `./build/ripwire . --rank-by=churn-decay --since=HEAD~6 --exclude=test --exclude=docs --exclude=skills --exclude=changelog.d --in=src --limit=3` +## `./build/ripwire . --rank-by=churn-decay --since=HEAD~7 --exclude=test --exclude=docs --exclude=skills --exclude=changelog.d --in=src --limit=3` *Scope the recent-changes answer to ONE directory. The global block stays byte-identical, a second page follows it — n=/of= are its counts (of= IS the total, so the paging half carries no total=), capped="1" has_more="1" next_offset= offset= limit= page it, and next= replays THIS run's own corpus flags (--since/--exclude) so the page it names is a page of the same answer. The symbol map collapses to a disclosed stub — the map was not asked for and was not ranked at all, which is why the header carries no pr_iters=. merge_bombs_skipped= stays on the global block: it counts the window's skipped commits, not the directory's.* -**wall time: 10.64s** +**wall time: 1.67s** ````` - - - - - - - - - + + + + + + + - - - - + + + + - + ````` @@ -3918,15 +3860,15 @@ ripwire: --rank-by: unknown value 'bogus' (supported: pagerank|authority|hub|rrf ````` - + 0=src/mcpindex.h 1=src/graph.h 2=src/eval.h 3=src/main.cpp 0,1,1,2,3,3,3 getIndex,rankGraph,anchoredLexicalRank,runEval,churnDecayRanking,churnRankedGraph,runDefaultMap -1224,14671,15341,171,1431,1470,1757 +1224,14973,15643,171,1431,1470,1757 fn,fn,fn,fn,fn,fn,fn 0,0,0,0,0,0,0 -1340,14675,15392,328,1445,1484 1485 1499,1877 +1340,14977,15694,328,1445,1484 1485 1499,1877 ````` @@ -3935,24 +3877,24 @@ ripwire: --rank-by: unknown value 'bogus' (supported: pagerank|authority|hub|rrf *Flat top-K export for an external reranker.* -**wall time: 5.80s** +**wall time: 1.66s** ````` - - + + inline std::string spanTierMemoPath( const std::string& diskPath ) - + inline std::vector<std::vector<NodeId>> legoImplementorsOnSurface( const IngestResult& ing, const std::vector<std::vector<NodeId>>& implementors, const std::vector<NodeId>& surfaceIds ) - + ### See the map — not just the numbers - + inline std::string receiptNextFor( const std::string& fileIdentity, const std::string& symbolName, const std::string& foldJson, const std::string& firstTestRun ) - + AncestorCacheScope( TSNode root, bool enabled ) : previous( tAncestorCache ) @@ -3979,9 +3921,9 @@ ripwire: --format: unknown value 'bogus' (supported: xml|columnar|rows|candidate *Machine-parseable JSON, same content, keys mirror the XML attrs.* ````` -{"of":"rankGraphTeleport","defs":1,"count":7,"root":".","hop_tested":0,"hop_untested":7,"graph_ambiguous":3634,"graph_unresolved":20011,"graph_unindexed":313,"counts_floor":true,"callers":[{"t":"fn","n":"getIndex","p":"src/mcpindex.h:1224","sites_at":["1340"]}, -{"t":"fn","n":"rankGraph","p":"src/graph.h:14671","sites_at":["14675"]}, -{"t":"fn","n":"anchoredLexicalRank","p":"src/graph.h:15341","sites_at":["15392"]}, +{"of":"rankGraphTeleport","defs":1,"count":7,"root":".","hop_tested":0,"hop_untested":7,"graph_ambiguous":3968,"graph_unresolved":19992,"graph_unindexed":313,"counts_floor":true,"callers":[{"t":"fn","n":"getIndex","p":"src/mcpindex.h:1224","sites_at":["1340"]}, +{"t":"fn","n":"rankGraph","p":"src/graph.h:14973","sites_at":["14977"]}, +{"t":"fn","n":"anchoredLexicalRank","p":"src/graph.h:15643","sites_at":["15694"]}, {"t":"fn","n":"runEval","p":"src/eval.h:171","sites_at":["328"]}, {"t":"fn","n":"churnDecayRanking","p":"src/main.cpp:1431","sites_at":["1445"]}, {"t":"fn","n":"churnRankedGraph","p":"src/main.cpp:1470","sites_at":["1484","1485","1499"]}, @@ -4008,12 +3950,12 @@ ripwire: --json is not yet supported for --hotspots — supported: the default m *Pagination: 3 items, skipping the first 3 (deterministic seams).* -**wall time: 10.38s** +**wall time: 2.45s** ````` - + @@ -4024,14 +3966,14 @@ ripwire: --json is not yet supported for --hotspots — supported: the default m *Drop test paths from the corpus before ranking.* -**wall time: 1.54s** +**wall time: 1.17s** ````` - + - - + + @@ -4043,21 +3985,21 @@ ripwire: --json is not yet supported for --hotspots — supported: the default m + + + - + - + - - - -… [84 more display lines; full output is 9803 bytes on 1 raw line(s)] +… [88 more display lines; full output is 9834 bytes on 1 raw line(s)] ````` stderr: @@ -4070,15 +4012,15 @@ stderr: *Drop matching paths (repeatable) before ranking.* -**wall time: 4.06s** +**wall time: 2.07s** ````` - - + + @@ -4096,31 +4038,31 @@ stderr: - + -… [83 more display lines; full output is 10029 bytes on 1 raw line(s)] +… [84 more display lines; full output is 10076 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --map-diff --top-k=5` *Full map re-ranked with teleport toward git-changed files — clean tree, so changed=0 and it degrades to the plain map.* -**wall time: 5.20s** +**wall time: 3.84s** ````` - - + + - + @@ -4149,17 +4091,17 @@ stderr: *Force a cold parse (bypass the warm TMPDIR cache) — shows the cold-vs-warm cost.* -**wall time: 4.42s** +**wall time: 4.04s** ````` - - + + - + @@ -4170,7 +4112,7 @@ stderr: - + @@ -4182,24 +4124,24 @@ stderr: -… [80 more display lines; full output is 10006 bytes on 1 raw line(s)] +… [81 more display lines; full output is 10053 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --cache=/aux/warm2.ripwirecache --top-k=3` *Explicit incremental cache at a path OUTSIDE the repo (first call writes it).* -**wall time: 7.47s** +**wall time: 6.20s** ````` - - + + - + @@ -4210,7 +4152,7 @@ stderr: - + @@ -4222,27 +4164,27 @@ stderr: -… [80 more display lines; full output is 10006 bytes on 1 raw line(s)] +… [81 more display lines; full output is 10053 bytes on 1 raw line(s)] ````` Artifact written: ````` - 39659984 /aux/warm2.ripwirecache + 39772479 /aux/warm2.ripwirecache ````` ## `./build/ripwire . --max-file-size=8K --top-k=3` *Skip files above a size bound before parsing (note the corpus shrink in the header).* -**wall time: 3.33s** +**wall time: 3.05s** ````` - + @@ -4256,7 +4198,7 @@ Artifact written: - + @@ -4265,7 +4207,7 @@ Artifact written: - + … [20 more display lines; full output is 4971 bytes on 1 raw line(s)] @@ -4291,15 +4233,15 @@ ripwire: --scip=does_not_exist.scip: cannot open the index — refusing rather t *Multi-root workspace: ONE merged graph over two roots, paths labeled /.* -**wall time: 5.70s** +**wall time: 7.57s** ````` - - + + @@ -4326,19 +4268,19 @@ ripwire: --scip=does_not_exist.scip: cannot open the index — refusing rather t *Self-eval: co-change recall vs BM25.* -**wall time: 30.81s** +**wall time: 42.42s** ````` ripwire --eval (co-change recovery, averaged over 80 historical commits) ranker recall@5 recall@10 recall@20 - ripwire 10.5% 10.7% 14.4% - BM25 13.1% 14.4% 15.4% - BM25sub 12.5% 15.6% 18.2% - BM25body 8.4% 11.6% 20.2% - fused 9.3% 11.3% 16.6% - anchored 8.3% 11.2% 19.4% - same-dir 1.6% 3.1% 3.9% - random 0.1% 0.2% 0.4% <- floor (random ranking over F=4813 files) + ripwire 15.1% 15.2% 18.9% + BM25 16.6% 18.9% 19.7% + BM25sub 15.6% 17.9% 21.8% + BM25body 8.2% 13.5% 22.1% + fused 13.9% 15.3% 19.8% + anchored 8.2% 13.5% 21.2% + same-dir 0.9% 1.4% 1.6% + random 0.1% 0.2% 0.4% <- floor (random ranking over F=4825 files) note: `ripwire` here is the DEFAULT MAP's structural-only PageRank (importance, not relatedness) — it is NOT what a --for/--query retrieval call ranks with. BM25 / BM25sub / BM25body are QUERY-TIME lexical rankers (whole-name / subtoken / @@ -4354,22 +4296,22 @@ ripwire --eval (co-change recovery, averaged over 80 historical commits) *Known-item retrieval eval: MRR + recall@k per ranker per query mode.* -**wall time: 366.20s** +**wall time: 276.84s** ````` ripwire --eval-retrieval (known-item, 4000 doc-commented symbols; gold is in-corpus by construction) - sample: population=11790 scored=4000 rule=smallest-key CAPPED — a SUBSET, not the population + sample: population=11876 scored=4000 rule=smallest-key CAPPED — a SUBSET, not the population (smallest fnv1a64(scope::name) over the population, cut on the key so an identity is never split; path- and order-independent, but a corpus this size is NOT graded exhaustively — say so when citing it) ingest: lex=rich (persisted subtoken stats; no per-query corpus re-tokenize) ranker query-mode MRR recall@1 recall@5 recall@10 - subtoken name 0.658 52.4% 82.1% 87.4% - subtoken doc-phrase 0.881 85.8% 90.1% 91.2% - name-exact name 0.874 79.4% 93.7% 96.1% - name-exact doc-phrase 0.009 0.4% 1.2% 1.7% - anchored name 0.663 53.6% 81.0% 85.9% + subtoken name 0.658 52.5% 82.2% 87.4% + subtoken doc-phrase 0.881 85.8% 90.2% 91.3% + name-exact name 0.875 79.4% 93.7% 96.1% + name-exact doc-phrase 0.008 0.3% 1.1% 1.7% + anchored name 0.662 53.5% 80.9% 85.9% anchored doc-phrase 0.874 84.8% 89.8% 90.5% - routed name 0.876 79.5% 93.8% 96.3% + routed name 0.877 79.6% 93.9% 96.3% routed doc-phrase 0.879 85.7% 89.9% 91.0% note: routing chose name-exact on 3989/4000 NAME queries (a NAME query is always identifier-shaped); the confidence gate routes doc-phrase queries to name-exact ONLY when EVERY content word names a symbol @@ -4383,7 +4325,7 @@ ripwire --eval-retrieval (known-item, 4000 doc-commented symbols; gold is in-co *Labelled verdict-accuracy eval for --stray-content — three labels over REAL local refs (names resolved at capture time); exit 3 when accuracy is under the floor. Read got= against v= in the stray-content run: a ref the verb could not analyse (unknown) must never be credited as a merged hit.* -**exit code: 3** — **wall time: 30.90s** +**exit code: 3** — **wall time: 16.97s** Input file: @@ -4406,14 +4348,14 @@ arm/orient-map-067-narrow merged stderr: ````` -ripwire: warning: --stray-content read the newest 512 of 637 local branches; 125 older were not read (limit: 512 refs); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter +ripwire: warning: --stray-content read the newest 512 of 641 local branches; 129 older were not read (limit: 512 refs); pass --detail=1 to read every branch, or narrow the branches with a ref-name filter ````` ## `./build/ripwire skills --eval-skills=/aux/skills_labels2.tsv` *Labelled skill-ROUTING eval over the repo's own skills/ directory (4 hand-labelled prompts).* -**wall time: 1.18s** +**wall time: 1.88s** Input file: @@ -4501,7 +4443,7 @@ Reach for it BEFORE blind grep + whole-file reads. First call ~1s cold; after th *Version + short build info.* ````` -ripwire 0.6.10-dev.100+gda897642e (dev, AppleClang 21.0.0.21000101, emit=std::print, built_from=da897642e) +ripwire 0.6.10-dev.104+gcee081132 (dev, AppleClang 21.0.0.21000101, emit=std::print, built_from=cee081132) ````` @@ -4509,27 +4451,31 @@ ripwire 0.6.10-dev.100+gda897642e (dev, AppleClang 21.0.0.21000101, emit=std::pr # navigate — seeds, claims, slices, shapes -## `./build/ripwire . --at=src/graph.h:14630` +## `./build/ripwire . --at=src/graph.h:14932` *Hold a LOCATION, not a name: the enclosing-definition chain at FILE:LINE (a compiler error, a diff hunk, a stack frame), outermost -> innermost.* +**wall time: 1.04s** + ````` - - + + ````` -## `./build/ripwire . --callers=@src/graph.h:14630` +## `./build/ripwire . --callers=@src/graph.h:14932` *The same seed in a SELECTOR position: @FILE:LINE resolves to the innermost enclosing definition, then --callers runs on it.* +**wall time: 1.06s** + ````` - + - - + + @@ -4550,18 +4496,20 @@ ripwire 0.6.10-dev.100+gda897642e (dev, AppleClang 21.0.0.21000101, emit=std::pr stderr: ````` -ripwire: the at flag's seed 'src/graph.h:999999' named no location (./src/graph.h has only 21063 lines — the seed asked for line 999999) +ripwire: the at flag's seed 'src/graph.h:999999' named no location (./src/graph.h has only 21365 lines — the seed asked for line 999999) ````` ## `./build/ripwire . --verify="calls(runDefaultMap, rankGraphTeleport)"` *VERIFY a closed claim in one call: three-valued verdict (confirmed / refuted / not-established) with the evidence rows inline.* +**wall time: 1.26s** + ````` - + - + ````` @@ -4571,10 +4519,10 @@ ripwire: the at flag's seed 'src/graph.h:999999' named no location (./src/graph. ````` - + - - + + @@ -4588,8 +4536,6 @@ ripwire: the at flag's seed 'src/graph.h:999999' named no location (./src/graph. *A literal-scan absence: refuted only with complete= evidence, never on a partial scan.* -**wall time: 1.29s** - ````` @@ -4616,25 +4562,25 @@ ripwire: --verify claim not recognized: 'frobnicate(x)' — unknown shape word. *Bare --slice=SYM: the INVENTORY of sliceable locals (), so a caller can pick VAR.* -**wall time: 2.93s** +**wall time: 2.70s** ````` - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + ````` @@ -4642,21 +4588,21 @@ ripwire: --verify claim not recognized: 'frobnicate(x)' — unknown shape word. *Intra-procedural def-use slice of ONE variable: one row per line touching it, k=def|use|both, reaching definitions flow-sensitive (reach=cfg).* -**wall time: 2.18s** +**wall time: 2.80s** ````` - - + + - + teleport( pw.begin(), pw.end() );]]> - + - + @@ -4666,30 +4612,30 @@ ripwire: --verify claim not recognized: 'frobnicate(x)' — unknown shape word. *TRANSITIVE backward value-flow from the seed variable, bounded BFS (depth= disclosed; a cut frontier says flow_truncated=1).* -**wall time: 2.54s** +**wall time: 4.11s** ````` - - + + - + teleport( pw.begin(), pw.end() );]]> - + - + - + pw = biasPrior( g, p );]]> - + & p, float alpha = 0.85f )]]> - + & p, float alpha = 0.85f )]]> @@ -4699,42 +4645,42 @@ ripwire: --verify claim not recognized: 'frobnicate(x)' — unknown shape word. *Forward flow: which statements the seed's value reaches, at the default depth bound.* -**wall time: 3.07s** +**wall time: 3.82s** ````` - - + + - + teleport( pw.begin(), pw.end() );]]> - + - + - + - + - + - + - + 0.0 )]]> - + - + @@ -4776,21 +4722,21 @@ ripwire: --slice-depth bounds the --slice-flow BFS — pass both (e.g. ripwire < *The compact legend posture: rows byte-identical, a versioned schema id replaces the repeated explanatory prose — for a many-small-calls loop.* -**wall time: 1.77s** +**wall time: 2.24s** ````` - - + + - + teleport( pw.begin(), pw.end() );]]> - + - + @@ -4800,12 +4746,12 @@ ripwire: --slice-depth bounds the --slice-flow BFS — pass both (e.g. ripwire < *Structural search written in CODE: $NAME binds one node; grammars=/shapes= disclose what the pattern became per grammar (a 3-argument call shape — the 2-argument spelling has no call site in this repo and correctly reports hits=0).* -**wall time: 3.28s** +**wall time: 2.73s** ````` rankGraphTeleport( g, std::vector<float>( N, ranked ? 1.0f / float( ranked ) : 0.f ), alpha ) +rankGraphTeleport( g, std::vector<float>( N, ranked ? 1.0f / float( ranked ) : 0.f ), alpha ) ````` @@ -4813,7 +4759,7 @@ ripwire: --slice-depth bounds the --slice-flow BFS — pass both (e.g. ripwire < *The ellipsis form over a macro-shaped call site; unsupported= names the families this verb does not serve.* -**wall time: 2.49s** +**wall time: 2.44s** ````` @@ -4853,7 +4799,7 @@ ripwire: --slice-depth bounds the --slice-flow BFS — pass both (e.g. ripwire < *A pattern that collapses to a bare token is REFUSED — never reported as hits=0.* -**exit code: 1** +**exit code: 1** — **wall time: 1.40s** ````` (empty) @@ -4869,32 +4815,34 @@ ripwire: --pattern: this pattern collapses to a single bare token, which is a TE *Boolean grep: hits where BOTH literals share the matched line (--grep-scope=line is the default).* +**wall time: 2.15s** + ````` - + inline bool topLevelEvidence( std::string_view source, const TSLanguage* language, const Predicate& predicate ) The crawl's per-file byte ceiling. A text file larger than this is skipped: at this size it is o…constexpr std::size_t kDefaultMaxFileBytes = 4u * 1024u * 1024u TSTree* parseTree( TSParser* parser, std::string_view src ) Exercise every registered grammar and its embedded query, reporting loaded and expected totalsinline DoctorGrammarProbe doctorProbeGrammars() -class SourceReader +class SourceReader constexpr std::array<LangEntry, 58> kLangTable = struct FileHealth struct SliceScan -explicit ParsedFile( std::string bytes ) : m_bytes( std::move( bytes ) ) -class ParsedFile +explicit ParsedFile( std::string bytes ) : m_bytes( std::move( bytes ) ) +class ParsedFile @@ -5140,38 +5088,38 @@ ripwire: --grep given twice; did you mean --grep='A' --and='B'? inline ModuleScan scanModule( std::string_view source, std::string_view path ) inline bool hasMainGuard( std::string_view source ) -inline bool hasPhantomScopeSeparator( TSNode qualified ) noexcept +inline bool hasPhantomScopeSeparator( TSNode qualified ) noexcept -… [242 more display lines; full output is 26561 bytes on 44 raw line(s)] +… [242 more display lines; full output is 26761 bytes on 44 raw line(s)] ````` ## `./build/ripwire . --for="tree-sitter parse of a source file" --sections=lego,compose` *Restore the / sections the --for bundle collapses to a counted stub by default (this is the stub's own next= spelling).* -**wall time: 5.81s** +**wall time: 6.98s** ````` - + - + inline bool topLevelEvidence( std::string_view source, const TSLanguage* language, const Predicate& predicate ) The crawl's per-file byte ceiling. A text file larger than this is skipped: at this size it is o…constexpr std::size_t kDefaultMaxFileBytes = 4u * 1024u * 1024u TSTree* parseTree( TSParser* parser, std::string_view src ) Exercise every registered grammar and its embedded query, reporting loaded and expected totalsinline DoctorGrammarProbe doctorProbeGrammars() -class SourceReader +class SourceReader constexpr std::array<LangEntry, 58> kLangTable = struct FileHealth struct SliceScan -explicit ParsedFile( std::string bytes ) : m_bytes( std::move( bytes ) ) -class ParsedFile +explicit ParsedFile( std::string bytes ) : m_bytes( std::move( bytes ) ) +class ParsedFile @@ -5180,38 +5128,38 @@ ripwire: --grep given twice; did you mean --grep='A' --and='B'? inline ModuleScan scanModule( std::string_view source, std::string_view path ) inline bool hasMainGuard( std::string_view source ) -inline bool hasPhantomScopeSeparator( TSNode qualified ) noexcept +inline bool hasPhantomScopeSeparator( TSNode qualified ) noexcept -… [264 more display lines; full output is 27931 bytes on 44 raw line(s)] +… [264 more display lines; full output is 28131 bytes on 44 raw line(s)] ````` ## `./build/ripwire . --for="tree-sitter parse of a source file" --auto-bodies` *Opt OUT of compact conceptual serving: restore the rank-first auto walk (bundle="auto").* -**wall time: 4.20s** +**wall time: 5.05s** ````` - + - + inline bool topLevelEvidence( std::string_view source, const TSLanguage* language, const Predicate& predicate ) The crawl's per-file byte ceiling. A text file larger than this is skipped: at this size it is o…constexpr std::size_t kDefaultMaxFileBytes = 4u * 1024u * 1024u TSTree* parseTree( TSParser* parser, std::string_view src ) Exercise every registered grammar and its embedded query, reporting loaded and expected totalsinline DoctorGrammarProbe doctorProbeGrammars() -class SourceReader +class SourceReader constexpr std::array<LangEntry, 58> kLangTable = struct FileHealth struct SliceScan -explicit ParsedFile( std::string bytes ) : m_bytes( std::move( bytes ) ) -class ParsedFile +explicit ParsedFile( std::string bytes ) : m_bytes( std::move( bytes ) ) +class ParsedFile @@ -5220,30 +5168,30 @@ ripwire: --grep given twice; did you mean --grep='A' --and='B'? inline ModuleScan scanModule( std::string_view source, std::string_view path ) inline bool hasMainGuard( std::string_view source ) -inline bool hasPhantomScopeSeparator( TSNode qualified ) noexcept +inline bool hasPhantomScopeSeparator( TSNode qualified ) noexcept -… [272 more display lines; full output is 28347 bytes on 96 raw line(s)] +… [272 more display lines; full output is 28545 bytes on 96 raw line(s)] ````` ## `./build/ripwire . --for="quality delta acks ledger rubber stamp"` *Doc-mention surfacing (default ON): a markdown doc naming a top-resolved symbol in a backtick rides in below that symbol — the legend's [doc mentions: …] clause says it fired.* -**wall time: 5.90s** +**wall time: 8.39s** ````` - + L2 stale acks in the range form. A changed-files answer holds no whole target tree to check the …std::vector<rw::quality::StaleAck> refPairStaleAcks( const gtl::btree_map<std::string, rw::quality::AckRecord>& acks, const RefPairDelta& refs ) inline QualityDeltaOutcome computeQualityDelta( const std::string& root ) -inline std::string staleByKindValue( const std::vector<StaleAck>& staleAcks ) +inline std::string staleByKindValue( const std::vector<StaleAck>& staleAcks ) inline constexpr const char* kAtStampLegend = "<!-- at= is the git commit these numbers were computed at std::optional<int> runForLensPosture( const MainDispatch& d, rw::ForAnswerLedger* ledger ) inline Result computeDmm( const std::string& root, std::string_view spec, const IngestResult& workingIng, const std::vector<std::string>& excludes, std::size_t maxFileBytes … [line truncated: 5 more bytes on this line] @@ -5259,11 +5207,11 @@ ripwire: --grep given twice; did you mean --grep='A' --and='B'? -inline bool writeAckRecords( const std::string& path, const gtl::btree_map<std::string, AckRecord>& acks ) +inline bool writeAckRecords( const std::string& path, const gtl::btree_map<std::string, AckRecord>& acks ) inline std::pair<std::string, std::string> qualityDeltaJson( const std::string& root, bool showStale = false ) inline std::string qualityAcksPath( const std::string& root ) -inline std::string staleAcksXml( const std::vector<StaleAck>& staleAcks, EscapeFn esc ) -inline std::string gitHeadSha( const std::string& root ) +inline std::string staleAcksXml( const std::vector<StaleAck>& staleAcks, EscapeFn esc ) +inline std::string gitHeadSha( const std::string& root ) std::optional<int> resolveDeltaBasis( const MainDispatch& d, const std::string& baselineFile, RefPairDelta& refs, DeltaBasis& out ) … [319 more display lines; full output is 31224 bytes on 46 raw line(s)] @@ -5273,17 +5221,17 @@ ripwire: --grep given twice; did you mean --grep='A' --and='B'? *The same task with doc-mention surfacing OFF — the contrast the flag exists for (no [doc mentions] clause, one fewer row).* -**wall time: 4.46s** +**wall time: 9.25s** ````` - + L2 stale acks in the range form. A changed-files answer holds no whole target tree to check the …std::vector<rw::quality::StaleAck> refPairStaleAcks( const gtl::btree_map<std::string, rw::quality::AckRecord>& acks, const RefPairDelta& refs ) inline QualityDeltaOutcome computeQualityDelta( const std::string& root ) -inline std::string staleByKindValue( const std::vector<StaleAck>& staleAcks ) +inline std::string staleByKindValue( const std::vector<StaleAck>& staleAcks ) inline constexpr const char* kAtStampLegend = "<!-- at= is the git commit these numbers were computed at std::optional<int> runForLensPosture( const MainDispatch& d, rw::ForAnswerLedger* ledger ) inline Result computeDmm( const std::string& root, std::string_view spec, const IngestResult& workingIng, const std::vector<std::string>& excludes, std::size_t maxFileBytes … [line truncated: 5 more bytes on this line] @@ -5299,11 +5247,11 @@ ripwire: --grep given twice; did you mean --grep='A' --and='B'? -inline bool writeAckRecords( const std::string& path, const gtl::btree_map<std::string, AckRecord>& acks ) +inline bool writeAckRecords( const std::string& path, const gtl::btree_map<std::string, AckRecord>& acks ) inline std::pair<std::string, std::string> qualityDeltaJson( const std::string& root, bool showStale = false ) inline std::string qualityAcksPath( const std::string& root ) -inline std::string staleAcksXml( const std::vector<StaleAck>& staleAcks, EscapeFn esc ) -inline std::string gitHeadSha( const std::string& root ) +inline std::string staleAcksXml( const std::vector<StaleAck>& staleAcks, EscapeFn esc ) +inline std::string gitHeadSha( const std::string& root ) std::optional<int> resolveDeltaBasis( const MainDispatch& d, const std::string& baselineFile, RefPairDelta& refs, DeltaBasis& out ) … [319 more display lines; full output is 30948 bytes on 46 raw line(s)] @@ -5315,10 +5263,10 @@ ripwire: --grep given twice; did you mean --grep='A' --and='B'? ````` - - - + + @@ -5330,7 +5278,7 @@ ripwire: --grep given twice; did you mean --grep='A' --and='B'? *Unknown-symbol refusal shape for --safe-delete.* -**exit code: 1** +**exit code: 1** — **wall time: 1.20s** ````` (empty) @@ -5346,22 +5294,22 @@ ripwire: --safe-delete symbol not found: DoesNotExist (note: the lexical definit *The continuation packet for the NEXT session: disk truth (branch/sha, changed symbols, blast radius, tests) + labeled suggestions. Recorded against a CLEAN tree.* -**wall time: 8.39s** +**wall time: 16.31s** ````` - + - + - - - + + + + ````` @@ -5370,16 +5318,16 @@ ripwire: --safe-delete symbol not found: DoesNotExist (note: the lexical definit *The same packet under a hard ceiling: heuristic rows drop tail-first (withheld= disclosed), verified rows never drop.* -**wall time: 9.76s** +**wall time: 7.91s** ````` - - + + - + @@ -5421,24 +5369,24 @@ ripwire: --safe-delete symbol not found: DoesNotExist (note: the lexical definit -… [561 more display lines; full output is 59444 bytes on 1 raw line(s)] +… [564 more display lines; full output is 59733 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --no-ignore --top-k=3` *Crawl paths the repo's own .gitignore covers (default honours it and discloses ignored_files=/ignored_dirs= only when it dropped anything — this repo's crawl drops nothing, so the header is identical to the default map's; --skipped's ignore_mode= says which rule applied).* -**wall time: 3.01s** +**wall time: 2.20s** ````` - - + + - + @@ -5449,7 +5397,7 @@ ripwire: --safe-delete symbol not found: DoesNotExist (note: the lexical definit - + @@ -5461,24 +5409,22 @@ ripwire: --safe-delete symbol not found: DoesNotExist (note: the lexical definit -… [80 more display lines; full output is 10006 bytes on 1 raw line(s)] +… [81 more display lines; full output is 10053 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --no-stable --top-k=3` *--no-stable outside --mcp: what the flag does (or says) when there is no stable-by-default ordering to opt out of.* -**wall time: 1.12s** - ````` - - + + - + @@ -5489,7 +5435,7 @@ ripwire: --safe-delete symbol not found: DoesNotExist (note: the lexical definit - + @@ -5501,7 +5447,7 @@ ripwire: --safe-delete symbol not found: DoesNotExist (note: the lexical definit -… [80 more display lines; full output is 10006 bytes on 1 raw line(s)] +… [81 more display lines; full output is 10053 bytes on 1 raw line(s)] ````` stderr: @@ -5514,18 +5460,18 @@ ripwire: --no-stable is read only by --mcp/--listen (it opts out of the stable o *EXEC-MODE --from-trace: run a command, and on a non-zero exit map its captured output onto indexed symbols in the same call — the whole fix-loop entry. ripwire exits 4 here because the wrapped command failed, which is the signal, not an incident.* -**exit code: 4** — **wall time: 1.02s** +**exit code: 4** ````` - + - + const&, float) src/graph.h:14630 - #1 0x102f3e884 in rw::rankGraph(Graph const&, float) src/graph.h:14673 + #0 0x102f4a1c8 in rw::rankGraphTeleport(Graph const&, std::vector const&, float) src/graph.h:14932 + #1 0x102f3e884 in rw::rankGraph(Graph const&, float) src/graph.h:14975 #2 0x102e11f30 in runDefaultMap(MainDispatch const&) src/main.cpp:1759 #3 0x102e01a44 in main src/main.cpp:4511 #4 0x1a2b3c0dc in start+0x9dc (dyld:arm64e+0x60dc)]]> r( N, 0.f ); std::transform( rankDouble.begin(), rankDouble.end(), r.begin(), []( double value ) { return float( value ); } ); return { std::move( r ), run.iterationCount, run.hasConverged }; -}]]>inline std::vector<float> biasPrior( const Graph& g, const std::vector<float>& p )#define PROFILE_SCOPE_DESCRIBE( desc )inline std::vector<float> biasPrior( const Graph& g, const std::vector<float>& p )#define PROFILE_SCOPE_DESCRIBE( desc ) - + ````` @@ -5576,12 +5522,12 @@ ripwire: --no-stable is read only by --mcp/--listen (it opts out of the stable o *A command still running at the cap: its process group is killed and the run reports timed_out=1 — an honest timeout, never an empty success.* -**exit code: 4** — **wall time: 2.46s** +**exit code: 4** — **wall time: 2.33s** ````` - + ````` @@ -5616,21 +5562,21 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir *THE single wide-angle quality read: six families in one pass, an eligible/ranked shortlist rather than a firehose.* -**wall time: 13.36s** +**wall time: 9.99s** ````` - - - + + - + @@ -5658,8 +5604,8 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir ````` - - + + @@ -5676,7 +5622,7 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir ````` - + @@ -5692,51 +5638,49 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir *The local-reasoning lens: to understand this symbol, how much must you know that is NOT in front of you (ent_ratio= edge share, read_ratio= token-weighted).* -**wall time: 1.02s** - ````` - - - - - - - - - - - - - - - - - - - - - - - - - - - - -… [21 more display lines; full output is 11233 bytes on 1 raw line(s)] + + + + + + + + + + + + + + + + + + + + + + + + + + + + +… [21 more display lines; full output is 11236 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --nonlocal-state --limit=8` *Per function, the non-local MUTABLE state it can reach (transitively), most writes first — unsound by construction, and the legend says where.* -**wall time: 6.57s** +**wall time: 3.55s** ````` - @@ -5772,11 +5716,11 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir *The family join: per function, which of four orthogonal evidence families fire, ranked by how many agree.* -**wall time: 9.52s** +**wall time: 6.52s** ````` - @@ -5790,7 +5734,7 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir - + @@ -5812,11 +5756,11 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir *The cache-locality lens over every aggregate: fields READ TOGETHER but declared FAR APART (split-line / straddle findings, Chilimbi separation weight) — advice only, never a rewrite.* -**wall time: 7.89s** +**wall time: 1.54s** ````` - @@ -5845,18 +5789,18 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir -… [1636 more display lines; full output is 154719 bytes on 1 raw line(s)] +… [1635 more display lines; full output is 154776 bytes on 1 raw line(s)] ````` ## `./build/ripwire . --field-affinity=Symbol` *The same lens narrowed to ONE struct — the one --layout=Symbol shows the offsets for.* -**wall time: 4.74s** +**wall time: 1.52s** ````` - @@ -5866,7 +5810,7 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir - + @@ -5879,18 +5823,20 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir *The corpus's OWN case-convention vote per (language, kind) group; off-convention names get a mechanical propose= (a suggestion, never a blind rename).* +**wall time: 1.60s** + ````` - - - + + + - + @@ -5917,11 +5863,11 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir *Score the naming-* rules against this repo's own rename history: proxy=old/(old+new) per rule, 0.50 = chance; read pairs= (sample size) first.* -**wall time: 20.43s** +**wall time: 27.16s** ````` - + @@ -5943,23 +5889,23 @@ ripwire: --run-timeout=SECONDS modifies --run-trace — pass it too (e.g. ripwir