Skip to content

Seeding fix 1/4: synthetic fixture + relational-intent demotion from the per-term guarantee (C1) #40

Closed

Description

@filipechagas

Parent

#37 — implements change C1 of the consolidated spec (the /to-spec comment). Follow the spec's Implementation/Testing Decisions; this ticket adds the shared fixture all later slices reuse.

What to build

Asking "callers of ChargeCustomerService"-style questions on a corpus with a relational-word decoy no longer seeds the decoy: the relational-intent term loses its unconditional per-term seat (while still scoring and competing on merit), so all ground-truth callers render within the default budget with no junk seed. Queries made only of relational words keep their guarantee (all-relational fallback), and a corpus-legit symbol literally named calls still wins seeds on exact-match merit.

Includes building the synthetic fixture from the spec's Testing Decisions (service class, three known callers, camelCase verb-prefix decoy with a busy test-method neighborhood, generic-noun hub class, doc file prefix-matching "code") as a reusable helper for tickets 2–4. The _RELATIONAL_INTENT_TERMS vocabulary definition is in the spec (prototype-derived).

Acceptance criteria

  • Red-first: fixture tests for the who-calls and callers-of phrasings fail on current v8 (decoy seeded), pass after C1
  • "callers of " end-to-end (query-pipeline text seam): all 3 fixture callers rendered, decoy absent from Start: header
  • "Who calls ?" seed-level: decoy absent from seeds (full rendering is ticket 3's criterion)
  • All-relational query (e.g. just "calls") still receives its per-term guarantee
  • A fixture node literally labelled calls with an exact match still gets seeded on merit
  • Scorer and picker signatures/semantics unchanged for existing callers; demotion wired only from the query pipeline
  • Every existing seeding sentinel green with zero baseline edits (gap window, starvation recovery, coverage scaling, label dedup, non-English, legacy-equality property tests, benchmark equality gate)

Blocked by

None — can start immediately.

Activity

  1. added
    ready-for-agent
    on Aug 6, 2026
  2. filipechagas commented on Aug 6, 2026

    @filipechagas
    CollaboratorAuthor

    Implemented on feat/seeding-fix-37 @ 87a7398 (feat(serve): demote relational-intent terms from the seed guarantee (#40)).

    All acceptance boxes green:

    • Red-first: the who-calls and callers-of fixture tests fail at ff970bb (decoy in Start: seeds) and pass after C1 — red state independently reproduced by an adversarial reviewer from a clean git archive of ff970bb.
    • "callers of ChargeCustomerService" e2e: 3/3 fixture callers rendered, decoy + junk neighborhood absent (fixture measured 15 nodes/junk seed → 6 nodes/3-of-3).
    • "Who calls …?" seed-level: Start: is ['ChargeCustomerService'] only (full rendering is Seeding fix 3/4: heuristic-context-filter starvation fallback (C3) — "Who calls X?" reaches the callers #42/C3, as scoped).
    • All-relational query keeps its guarantee — mutation-checked (removing the fallback fails exactly that test).
    • Corpus-legit calls symbol still seeded on exact-match merit.
    • Scorer/picker signatures and semantics untouched; demotion has exactly one call site, inside _query_graph_text between scoring and picking; _RELATIONAL_INTENT_TERMS verified set-equal to the spec's expression (50 words).
    • Sentinels: tests/test_serve.py 129 passed with zero edits; benchmark equality gate passes (ranked=772 seeds=3 both arms); full suite green except 4 pre-existing unrelated test_ollama_retry_cap.py env failures (missing openai, reproduced at ff970bb).

    Shared fixture for #41–#43 landed as tests/seeding_fixtures.py (undirected _src/_tgt graph matching how graphify query loads). Changelog + version bump deliberately deferred to #43 per its acceptance boxes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions