Repository navigation
Description
Upstream issue
Filed 2026-08-06: Graphify-Labs#2507 (same path fork #1 took for upstream Graphify-Labs#1682: upstream issue → fork spec → implementation → optional upstream PR). The 2026-08-06 sweep found no prior upstream issue covering demoting a relational-intent verb as a seed term.
The upstream issue references:
- Upstream issue 1445 / PR 1596 — the per-term seed guarantee. This is the amplifier: it turns the verb's junk prefix-match into a guaranteed seed slot that bypasses the gap cutoff.
- Issue 1900 / PR 1597 — the stopword precedent. Note carefully: PR 1597's tests affirmatively pinned "calls" as a kept content term, so this proposal challenges a deliberate upstream design point, not an oversight — the upstream issue must argue against that decision explicitly, not just around it.
- Open issue 2381 and open PR 2113 — the nearest live work (seed-path exclusion and per-term recovery bounding, respectively). Position term demotion as complementary: it fixes the cause (a non-content term holding a seed slot at all) where they bound the blast radius of a bad seed.
Framing hook for the upstream issue: _infer_context_filters already proves the system knows "calls" is relational intent for the query — phrasing A emitted Context: call (heuristic) — but that signal never reaches _query_terms/_pick_seeds, so the same word is simultaneously treated as an edge-filter directive and as an identifier competing for a guaranteed seat.
Related but not overlapping: open issue 2384 (node-kind priors) — adjacent seeding-quality work, distinct mechanism.
Problem Statement
When a user asks the semantic query command a natural-language impact question — the single most common question shape for an AI assistant consuming the graph — the answer is wrong or buried, and it fails silently: output renders, fills the token budget, and looks authoritative while containing zero of the correct nodes.
Measured 2026-08-06 on fork v0.9.34 against the api.lawnstarter.com graph @ d2d4bed7ae (46,406 nodes / 139,497 edges). Ground truth, grep-verified: ChargeCustomerService has exactly 3 production callers — ChargeCustomerCancellationFee, Jobs/Customer/BillingCharge, BalanceCustomerAccountService.
| Phrasing | Seeds chosen | Result |
|---|---|---|
| "Who calls ChargeCustomerService?" | ['ChargeCustomerService', '.callStoreWithAmount()'] + Context: call (heuristic) |
0/3 callers; 15 nodes, all test noise from the junk seed's neighborhood, ~1,583 tok |
| "callers of ChargeCustomerService" | ['ChargeCustomerService', '.it_ignores_initiator_for_non_ops_callers()'] |
3/3 present but buried in 42 shown of 147 nodes, ~1,617 tok |
| "what code uses ChargeCustomerService to charge a customer" | 5 seeds incl. .charge(), coder.md, a test method |
0/3; 2,307-node explosion, 52 shown, ~1,600 tok |
This is not a regression from the fork's PHP call-edge work: baseline v0.9.28 failed the same phrasings with the same .callStoreWithAmount() junk anchor. The fork's richer calls edge set just raises the stakes — good seeds now lead somewhere, so bad seeds cost more.
It is failure mode #2 of 3 that the PE-78803 spike's Recommendation 2 requires resolved before adoption (#1, the PHP calls gap, is fixed and shipped; #3, node-identity stub shadowing, is a separate problem — do not conflate).
Repro (~60s, no LLM cost — never run graphify update in ~/working/lawn/api itself; its graphify-out/ is the preserved v0.9.28 baseline):
cd ~/working/lawn/api && git worktree add --detach /tmp/api-sq d2d4bed7ae
cd /tmp/api-sq && graphify update . --no-cluster
graphify query "Who calls ChargeCustomerService?" # observe the .callStoreWithAmount() seedRoot-cause hypothesis
⚠️ This is a code-read hypothesis corroborated by the observed seed lists. It has NOT been stepped through (no instrumented run of_score_query/_pick_seedson the repro graph yet). Verify before building — thediagnosing-bugsloop on the repro graph is the intended first implementation step.
All line references are to graphify/serve.py on fork branch origin/v8.
- Relational verbs survive as content terms.
_query_terms(line 253) drops_QUERY_STOPWORDS(line 221) — a question-word/filler list. "calls", "callers", "uses", "listens" are not in it, so they flow into scoring as if they were identifiers. - "calls" prefix-matches a junk anchor. Scoring tiers (lines 275–277): exact 1000 / prefix 100 / substring 1.0, IDF-weighted (
_compute_idf, line 281). The normalized labelcallstorewithamountliterally starts withcalls, so.callStoreWithAmount()takes the prefix tier for the term "calls" (line 559; amplified ×10 in the per-term singleton tier, line 583). Similarly "callers" substring-matches.it_ignores_initiator_for_non_ops_callers()— the singleton score also accumulates substring hits (line 590), so a junk node can win a term'sbest_seed_by_termslot on substring alone. - The BFS path drift on vague Chinese queries: 40-node corpus, 12 unrelated nodes returned for "rate_limit_check 怎么用?" Graphify-Labs/graphify#1445 per-term guarantee then locks the junk in.
_pick_seeds(line 633) first applies the top-score + 20%-gap window with label dedup (query: homonymous generic symbols (e.g. many GET() route handlers) all get seeded, flooding results — related to #1303 Graphify-Labs/graphify#1766), then — lines 702–722 — appendsbest_seed_by_term[term]for every distinct query term, bypassing the gap cutoff entirely. The guarantee that protects real multi-term queries from starvation also guarantees the verb's junk anchor a seed slot no matter how dominant the real identifier's score was. - BFS floods the budget from the junk seed. The pipeline (
_query_graph_text, line 1090:_query_terms→_score_query→_pick_seedsat line 1108 →_bfs/_dfs→_subgraph_to_text, default 2,000-token budget) then spends the budget on the junk seed's test-file neighborhood. - The sharp asymmetry:
_infer_context_filters(line 789,_CONTEXT_HINTSline 727) already recognizes "calls"/"callers"/"uses"-adjacent words as relational intent — phrasing A emittedContext: call (heuristic). But that recognition only filters traversal edges; it never demotes the same word as a seed term. A term consumed as relation intent arguably should not also compete as an identifier — or at minimum should lose the per-term guarantee.
Constraints on any fix
- Must not break the BFS path drift on vague Chinese queries: 40-node corpus, 12 unrelated nodes returned for "rate_limit_check 怎么用?" Graphify-Labs/graphify#1445 per-term seed guarantee. It exists so one term's incidental exact match can't starve the other terms' seeds. Regression sentinel:
tests/test_serve.py:810(test_pick_seeds_diversity_recovers_starved_term). - No blanket stopwording of "calls"/"callers"/"uses". These can be legitimate identifiers in some corpus (a
callstable, acallers()method); adding them to_QUERY_STOPWORDSis the naive fix that regresses someone. Any demotion must be conditional (e.g. only when the term was consumed as relational intent by_resolve_context_filters, or only when other terms produced strong identifier matches). - Protected behavior is defined by the existing tests around
_pick_seedsand_score_query, all onorigin/v8:tests/test_serve.py:772–807— core_pick_seedsgap-window behavior (graphify query: seed scoring returns low-relevance nodes, causing multi-call token cascade Graphify-Labs/graphify#897)tests/test_serve.py:810— BFS path drift on vague Chinese queries: 40-node corpus, 12 unrelated nodes returned for "rate_limit_check 怎么用?" Graphify-Labs/graphify#1445 starvation recovery (see above)tests/test_serve.py:135, 180— query: single generic term exact-matching a short leaf label hijacks seed selection in multi-term queries Graphify-Labs/graphify#1602 coverage scaling; single-identifier queries stay byte-identicaltests/test_serve.py:845, 862, 873— query: homonymous generic symbols (e.g. many GET() route handlers) all get seeded, flooding results — related to #1303 Graphify-Labs/graphify#1766 homonymous-label seed dedup, incl. that the per-term guarantee cannot reintroduce a deduped generic labeltests/test_serve.py:385— non-English (German) query seeds a content node, not heading noisetests/test_serve.py:1119, 1128, 1138— property tests pinning_score_query's ranked output andbest_seed_by_termto the legacy per-token semantics (via the_reference_best_seed_by_termoracle at line 1054)tests/bench_query_scoring.py— non-CI microbenchmark that asserts equality of ranked/best_seed_by_term/seeds between legacy and single-pass paths before timing; a fix that changes seeding semantics must update its equality baseline deliberately, not accidentally
- The fix lands on a branch off
v8. The graph is rebuilt fresh in a throwaway worktree for grading (see repro); the preserved v0.9.28 baseline graph in~/working/lawn/api/graphify-out/must not be touched.
Acceptance Criteria
Graded on the repro graph (api.lawnstarter.com @ d2d4bed7ae, fork build reinstalled from current v8 head first):
- "Who calls ChargeCustomerService?" → output contains all 3 known callers (
ChargeCustomerCancellationFee,Jobs/Customer/BillingCharge,BalanceCustomerAccountService), within the default 2,000-token budget, without the.callStoreWithAmount()(or equivalent verb-prefix junk) seed. - "callers of ChargeCustomerService" → all 3 callers present and not buried: they appear in the shown portion of the output, and the shown node set is not dominated by an unrelated seed's neighborhood (the ~147-node / 42-shown haystack shrinks materially).
- "what code uses ChargeCustomerService to charge a customer" → all 3 callers found; no multi-thousand-node explosion (the 2,307-node traversal is the failure bar), within budget.
- No-regression check:
graphify explainfor "What listens to CustomerWasCharged?" — passed pre-fix at ~417 tokens — still returns the correct listener(s) at comparable token cost. - Full existing pytest suite green, explicitly including every test cited in Constraints above.
- New red-→-green tests derived from the 3-phrasing table (the fork has a pytest suite; the table converts directly into fixtures — a corpus with a
ChargeX-like service, a verb-prefix decoy likecallStoreWithAmount, and 3 known callers).
"Low noise" operationally: the 3 correct callers are within the rendered (shown) node list, and no single junk seed contributes the majority of shown nodes.
Suggested labels
needs-triage— now: the hypothesis is unverified and the new upstream issue is not yet filed; perdocs/agents/triage-labels.mdthis is "maintainer needs to evaluate".- Promote to
ready-for-agentonce (a) the hypothesis is confirmed by an instrumented step-through on the repro graph, (b) the new upstream issue is filed and linked above, and (c) a Solution/Implementation Decisions spec is added — the same bar fork issue PHP: resolve instance-method calls edges from typed receivers (upstream Graphify-Labs#1682) #1 met before it carried that label.
Prior art / references
- Fork issue PHP: resolve instance-method calls edges from typed receivers (upstream Graphify-Labs#1682) #1 + fork PR feat(php): resolve instance-method calls edges from typed receivers (#1) #17 + upstream PR 2492 — the spec-first path this issue imitates.
- Follow-up spike (Finding 5 is the semantic-query evidence):
brain/eng/docs/spikes/2026-08-06-PE-78803-re-run-the-graphify-poc-gate-with-the-lawnstarter-fork.md. - Original spike (baseline numbers, Recommendation 2 adoption bar): Confluence page 6517260331.
- Seeding lineage referenced in code: upstream BFS path drift on vague Chinese queries: 40-node corpus, 12 unrelated nodes returned for "rate_limit_check 怎么用?" Graphify-Labs/graphify#1445 (per-term guarantee), query: single generic term exact-matching a short leaf label hijacks seed selection in multi-term queries Graphify-Labs/graphify#1602 (coverage scaling), query: homonymous generic symbols (e.g. many GET() route handlers) all get seeded, flooding results — related to #1303 Graphify-Labs/graphify#1766 (label dedup), perf(serve): collapse T+1 per-term scoring passes into one traversal Graphify-Labs/graphify#1918 (single-pass refactor).
Activity
filipechagas commentedon Aug 6, 2026
Instrumented step-through results (2026-08-06)
Verified on the pinned repro graph (
/tmp/api-d2d4bed, 48,529 nodes / 139,497 edges, installed 0.9.34 build — seeding functions byte-identical toorigin/v8; driver scripts in/tmp/gfy-diag/). The live CLI reproduced the measured 3-phrasing table exactly (same seeds, 15 nodes, 0/3 callers).Per-step verdicts on the root-cause hypothesis above:
calls,callers,uses,listensall absent from_QUERY_STOPWORDS;_query_termsreturned['calls', 'chargecustomerservice']etc..callstorewithamount()has a leading dot. It fires in the joined-singlet tier (serve.py:577–587) vialabel_tokens.startswith('calls'), worth 100×10×IDF(5.776) = 5,775.7. That tier exists only to feedbest_seed_by_term. Thecallersjunk won on substring alone (singleton 9.691). The real identifier ranks PHP: resolve instance-method calls edges from typed receivers (upstream Graphify-Labs#1682) #1 combined at 97,290 — junk never outranks it anywhere except in its own term's slot.['ChargeCustomerService']. Every junk seed entered solely viabest_seed_by_term, with combined scores 5.78–103.5 vs gap floors 443.1–673.9.customer→ Customer hub, 2,206 of 2,307 nodes. Verb demotion alone does not fix C.callersandusesappear in neither_CONTEXT_HINTSnor its aliases (B and C infer[]). A fix keyed on "term consumed as relational intent" coverscallsbut notcallers/uses.Co-causes discovered (affect the acceptance criteria):
callsedges land on method nodes, and the class→method edge hascontext=None, so thecallcontext filter disconnects a class from its own methods — even with perfect seeding, phrasing A finds 0/3 under the current filter.BalanceCustomerAccountServicehas nocallsedge toChargeCustomerServiceat all (reachable at depth 2 only viareferences/importedges) — acceptance criterion 1 cannot be met by call-filtered traversal alone..parent() --calls--> .setUp(),.handle() --calls--> test methods) — failure-mode-PHP: (new Service())->method() resolves as EXTRACTED with FQN corroboration #3 territory, feeding the "all test noise" impression.Implication for the fix design: demoting relational verbs from the per-term guarantee is necessary but not sufficient — the design must also handle guarantee-seeded generic nouns (phrasing C) and the context-filter class/method disconnection (phrasing A).
filipechagas commentedon Aug 6, 2026
Solution / Implementation Decisions spec
Prototype of the full design measured 2026-08-06 on the pinned repro graph (48,529 nodes / 139,497 edges, CLI-faithful undirected load + BFS depth 2, 2,000-token budget; driver
/tmp/gfy-diag/proto.py). All line references aregraphify/serve.pyonv8head (ff970bb, 0.9.35), which is byte-identical in the seeding functions to the code the step-through comment above verified..callStoreWithAmount()seededcoder.mdseed, ~10 nodes — below the "majority of shown nodes" bar)Solution
Three surgical changes to the
querypipeline, each independently toggleable and default-inert outside_query_graph_text:_RELATIONAL_INTENT_TERMSvocabulary (all_CONTEXT_HINTSwords + all_CONTEXT_FILTER_ALIASESkeys + the caller/use/listen families)._query_graph_textfilters these terms out ofbest_seed_by_termbefore calling_pick_seeds. The term still competes in scoring and the gap window — this is not stopwording; a corpus-legitcallsidentifier with a real exact match stays seedable on merit, and stays fully reachable viaexplain/path(which never take this code path)._pick_seeds' guarantee loop (line 714), skip termtwhentis a substring of an already-selected seed'snorm_label(the scorer's own weakest-tier predicate). This implements the guarantee's stated purpose literally: it exists so no term is starved (BFS path drift on vague Chinese queries: 40-node corpus, 12 unrelated nodes returned for "rate_limit_check 怎么用?" Graphify-Labs/graphify#1445, line 658); a term the seed list already matches is not starved. This is what kills phrasing C'scustomer→hub explosion (2,206 of 2,307 nodes) and thecharge→.charge()junk —ChargeCustomerService's own label covers both terms._query_graph_text(line 1113), when the resolved filter came from the heuristic (filter_source == "heuristic") and the filtered traversal discovers no nodes beyond the seeds, retraverse unfiltered and annotate the header (Context: call (heuristic; relaxed — no matches beyond seeds)). Explicit--contextfilters never fall back. This rescues phrasing A from the measured co-cause: the class node has zero call-context edges of its own (calls land on method nodes; class→method edges carrycontext=None), so thecallfilter strands a perfectly-seeded class at exactly 1 node. Precedent: upstream query seeds can be hijacked by test/doc rationale nodes — make seed-path exclusion configurable with tests/ as the default Graphify-Labs/graphify#2381 specifies the same "retry unfiltered once" shape for its seed-path filter.Implementation Decisions
_query_graph_text, not_score_queryor_pick_seeds. Filteringbest_seed_by_termbetween the two calls leaves_score_querybyte-identical (protects thetests/test_serve.py:1119/1128legacy-equality property tests outright) and leaves_pick_seeds' signature/semantics unchanged for every existing caller (protects:1138andtests/bench_query_scoring.py, whose legacy and optimized arms both route through the same_pick_seeds).best_seed_by_term(query consists only of relational-intent words, e.g.graphify query "calls"), keep the unfiltered map — mirroring_query_terms' existing all-stopword fallback (line 271). The gap window seeds such queries anyway; this just preserves the guarantee for them._RELATIONAL_INTENT_TERMS = {hint words} ∪ {alias keys} ∪ {caller, callers, use, uses, used, using, usage, listen, listens, listener, listeners}. The extension exists because the step-through showedcallers/usesappear in neither_CONTEXT_HINTS(line 725) nor_CONTEXT_FILTER_ALIASES(line 735) — an intent-consumed-only rule misses 2 of the 3 measured phrasings._CONTEXT_HINTSitself is deliberately untouched: extending it would change traversal-filter inference for phrasings B/C, a separate behavior with its own blast radius._pick_seedsparameter, default off (e.g.skip_covered_terms: bool = False), passedTrueonly by_query_graph_text. Every existing direct caller and test sees identical behavior. The coverage predicate isterm in seed_norm_label— exactly the substring tier_score_queryuses (line 561), so "covered" means "this seed would have matched the term in scoring".len(nodes) <= len(start_nodes)), not on "few nodes" — a conservative threshold with no tuning constant, applied identically to BFS and DFS modes. The header annotation keeps the failure mode visible instead of silent._QUERY_STOPWORDS(the "no blanket stopwording" constraint —test_query_terms_strips_search_punctuationstill pins"what calls extract?" → ['calls', 'extract']), all scoring tiers and IDF,_CONTEXT_HINTS,_filter_graph_by_context,explain/path/find_node(verified:explainresolves via_find_node, cli.py:1342–1369 — none of the changed code).Testing Decisions
_query_graph_text/_pick_seeds/_score_querythrough their public shapes, same as the existing seeding tests.callStoreWithAmountdecoy + busy test neighborhood + aCustomer-style hub +coder.md-style prefix decoy):context=Nonemember edges) → unfiltered fallback, header annotated (C3).--contextnever falls back (C3 guard)."calls") keeps its guarantee (C1 fallback).tests/test_serve.py:772–807(graphify query: seed scoring returns low-relevance nodes, causing multi-call token cascade Graphify-Labs/graphify#897),:810(BFS path drift on vague Chinese queries: 40-node corpus, 12 unrelated nodes returned for "rate_limit_check 怎么用?" Graphify-Labs/graphify#1445),:135/:180(query: single generic term exact-matching a short leaf label hijacks seed selection in multi-term queries Graphify-Labs/graphify#1602),:845/:862/:873(query: homonymous generic symbols (e.g. many GET() route handlers) all get seeded, flooding results — related to #1303 Graphify-Labs/graphify#1766),:385(query: German full-sentence questions pick wrong BFS seeds — stopwords outscore the actual keyword Graphify-Labs/graphify#1900),:1119/:1128/:1138(perf(serve): collapse T+1 per-term scoring passes into one traversal Graphify-Labs/graphify#1918 equality), plustests/bench_query_scoring.py's equality gate — all pass on v8 head today (129/129 in test_serve.py) and none needs a baseline change under this design, because every new behavior is opt-in at the_query_graph_textlayer.~/working/lawn/apiitself), re-run the 3-phrasing table + theexplain "What listens to CustomerWasCharged?"no-regression check (~417 tok pre-fix; structurally unaffected but re-graded anyway).Out of Scope
BalanceCustomerAccountService → ChargeCustomerServicecalls edge (co-cause 2). Root-caused: the receiver property is declared untyped with a@vardocblock and assigned in the constructor body (BalanceCustomerAccountService.php:14–20);_resolve_php_member_callsbindsthis.<prop>only from typed properties and constructor-promoted params (extract.py:3346), and docblock receivers are documented out-of-scope of PHP: resolve instance-method calls edges from typed receivers (upstream Graphify-Labs#1682) #1's spec. Filed separately as PHP: docblock-typed property assigned in the constructor body binds no receiver type — missing calls edge (co-cause 2 of #37) #38. Acceptance criterion 1 does not depend on it: with C3's unfiltered fallback the caller is reachable (and measured rendered) via itsreferences/importedges..parent() --calls--> .setUp(),.handle() --calls--> <test methods>) — failure mode PHP: (new Service())->method() resolves as EXTRACTED with FQN corroboration #3 territory; filed separately as PHP: clearly-wrong calls edges in the repro neighborhood (.parent() --calls--> .setUp(); .handle() --calls--> test methods) — failure mode #3 evidence #39 with the probe evidence; deliberately not conflated here.contains/methodedges pass acallfilter so class seeds can traverse to their methods) — the deeper fix behind C3's fallback; even with it, criterion 1 stays unreachable under a hard filter until the extraction gap above is fixed, so it is follow-up work, likely upstream.codestill earns a guarantee seed (coder.md, prefix match). Accepted residual: not relational intent, not covered by the identifier seed; measured blast radius ~10 of 138 nodes, below every acceptance bar. Upstream query seeds can be hijacked by test/doc rationale nodes — make seed-path exclusion configurable with tests/ as the default Graphify-Labs/graphify#2381/feat(query): exclude test paths from default seeds Graphify-Labs/graphify#2403 (test-path seed exclusion) and fix: bound per-term query seed recovery Graphify-Labs/graphify#2113 (bounded recovery) are complementary if they land.callintent to rank inbound callers first). Phrasing B's residual 128-node haystack is the real seed's own neighborhood; shrinking it is this future work, not seed hygiene.Further Notes
callsas a kept content term — C1 honors that decision (the word still scores; it only loses its unconditional seat)./tmp/gfy-diag/proto.py(volatile; the fixture-based tests supersede it).filipechagas commentedon Aug 6, 2026
Spec: demote relational-intent terms from seed guarantee, skip covered terms, relax starving heuristic context filters
Problem Statement
When someone asks the knowledge graph a natural-language impact question — "Who calls ChargeCustomerService?", "callers of X", "what code uses X" — the answer comes back wrong or buried, and it fails silently: the output renders, fills the token budget, and looks authoritative while containing zero (or a buried fraction) of the correct nodes. This is the single most common question shape for an AI assistant consuming the graph, and it is failure mode #2 of 3 blocking the PE-78803 adoption gate.
The verified mechanism (step-through comment above): relational verbs and generic nouns survive stopwording, their junk matches lose everywhere on merit, but the per-term seed guarantee grants each query term an unconditional seed slot — so a verb's prefix-decoy, a test method, or a hub class enters the traversal anyway and floods or starves the output. A co-cause compounds it: when the question triggers the heuristic
callcontext filter, the filtered traversal cannot leave a class-node seed at all (calls attach to method nodes; class-to-member edges carry no context), so even perfect seeding returns a near-empty answer.Solution
Ask the same three questions and get the right answer within the default token budget:
ChargeCustomerService) no longer spawns a redundant hub seed.calls/usesremain findable.Measured on the pinned 48.5k-node api.lawnstarter.com repro graph, the prototyped design takes the three acceptance phrasings from 0/3, 3/3-buried, 0/3-exploded to 3/3 rendered, 3/3 rendered, 3/3 rendered with the 2,307-node explosion reduced to 138 nodes.
User Stories
callStoreWithAmountfor "calls") to never enter the seed list through the per-term guarantee, so that the budget isn't spent on an unrelated test neighborhood..charge()and theCustomerhub whenChargeCustomerServiceis already seeded.callsoruses, I want that symbol to keep scoring and to win seeds on merit (exact-match dominance intact), so that the fix doesn't blanket-stopword my identifiers.calls/uses/codeto stay fully findable through node lookup and path tools, so that demotion in one pipeline never hides a node elsewhere.code→coder.mdguarantee seed; the real seed's own 128-node haystack), so that I don't chase them as bugs in this change.Implementation Decisions
C1 — relational-intent demotion. A module-level frozenset of relational-intent terms; the query pipeline removes these terms from the per-term winner map between scoring and seed selection. The scorer's and picker's public signatures and semantics are unchanged for all existing callers. From the prototype, the vocabulary definition (the decision-rich part):
The extension set exists because the step-through proved "callers" and "uses" appear in neither existing table, so an intent-consumed-only rule misses two of the three measured phrasings.
C1 all-relational fallback: if demotion would empty a non-empty winner map, keep it unfiltered — mirroring the existing all-stopword fallback in query-term extraction.
C2 — covered-term guarantee skip. A new keyword-only, default-off parameter on the seed picker. In the guarantee loop, a term is skipped when it is a substring of an already-picked seed's normalized label — the same predicate as the scorer's weakest match tier, so "covered" means "this seed would have matched the term in scoring". Runs in the existing sorted-term order, after the existing label-dedup gate. This refines the starvation invariant to: every term with any match is matched by at least one seed (previously: every term's own singleton winner gets a slot).
C3 — heuristic-filter starvation fallback. After traversal, when the active context filters came from the heuristic (not explicit arguments) and the traversal discovered no nodes beyond the seeds, retraverse the unfiltered graph and append a relaxation note to the
Context:header. Applies identically to both traversal modes. Explicit filters never fall back. Threshold is deliberately "zero expansion" — no tuning constant.Testing Decisions
Start:header, caller presence via rendered node lines, node counts and the relaxation note via the header. All three phrasing tests, the fallback tests, and the explicit-filter guard test live here.Out of Scope
callfilter) — the deeper fix behind C3's fallback; insufficient on its own until PHP: docblock-typed property assigned in the constructor body binds no receiver type — missing calls edge (co-cause 2 of #37) #38 lands, so deferred, likely upstream.codeterm's residual guarantee seed (a doc-file prefix decoy, measured ~10 of 138 nodes) — below every acceptance bar; complementary upstream work (test-path seed exclusion, bounded recovery) would shrink it further if it lands.callfilter) — separate behavior change with its own blast radius.Further Notes
chore: bump to 0.9.36; changelog for the query seeding fix (#40/#41/#42/
filipechagas commentedon Aug 6, 2026
Fresh acceptance grading — measured on the pinned repro corpus, superseding the prototype table
Implementation complete on
feat/seeding-fix-37@ 457b31e (v0.9.36; C1 #40, C2 #41, C3 #42, release+grading #43 — all closed). CLI reinstalled from the branch (graphify --version→ 0.9.36), graded against/tmp/api-d2d4bedat the pinned revd2d4bed7ae(no rebuild — zero extraction changes; the preserved baseline graph was never touched). Ground truth re-verified independently:grep -rln ChargeCustomerService app/returns exactly the 3 known production callers.Start:)['ChargeCustomerService']call (heuristic; relaxed — no matches beyond seeds)['ChargeCustomerService']['ChargeCustomerService', 'coder.md']explainlistener no-regression):explain "CustomerWasCharged"→RefreshCustomerPropertiesCanSelfReactivate(imports +.handle()references), 417 tok — identical to the pre-fix figure.callStoreWithAmount,it_ignores_initiator_for_non_ops_callers) still exist as graph nodes; they just no longer get guarantee seats.code→coder.mdguarantee seed contributes 10/138 traversed, 6/44 shown (14%) in phrasing 3 — below every acceptance bar, per the spec's Out of Scope.git diff --stat 725d082..HEAD -- tests/= 2 new files only); every Constraints sentinel re-run by name; bench equality gate holds.Next: fork PR merging
feat/seeding-fix-37intov8, then the upstream PR against Graphify-Labs referencing upstream Graphify-Labs#2507.Merge pull request #44 from lawnstarter/feat/seeding-fix-37
filipechagas commentedon Aug 6, 2026
Landed: merged into
v8via #44 (release 0.9.36, commits 87a7398 / cebf231 / 635db73 / 4e8ff46 / ebe7b67 / 457b31e). Child tickets #40–#43 all closed with red-first + adversarial-review evidence; fresh grading table in the comment above. Follow-ups deliberately out of scope and still open: #38 (extraction: ctor-assigned docblock-typed property receiver), #39 (wrong call edges). Upstream PR against Graphify-Labs referencing Graphify-Labs#2507 is next.