Skip to content

Waterflane/index prompt fix - #46

Merged
waterflane merged 116 commits into
devfrom
waterflane/index-prompt-fix
Oct 13, 2026
Merged

waterflane merged 116 commits into
devfrom
waterflane/index-prompt-fix

Conversation

@waterflane

@waterflane waterflane commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixed

  • Kept descriptive verbs after "which function" as topical search terms while
    retaining explicit named identifiers and directed caller/callee requests.

  • Retained verified planner discovery after later provider failures and honored
    explicitly disabled structured-response repairs without a hidden local retry.

  • Reduced planner menus and previews while retaining available required evidence,
    resolved source anchors and complete local diagnostics.

  • Materialized mandatory source above the automatic soft target when it fits
    inside the unchanged hard context budget.

  • Stabilized config-key digests, parse-error reuse, and no-op updates; added
    Kotlin structural extraction and compact bounded occurrence/card evidence.

  • Enforced source-spanning planner previews, session-wide round/action/token
    ceilings, strict whole-plan fallback, model-order materialization, and safe
    FULL → SLICE → MAP downgrade without weakening freshness or hard budgets.

  • Counted response schemas embedded by plain-JSON providers in preflight and
    bounded every agentic round against the provider's complete context window,
    shrinking candidates, module inventory, and previews before dispatch.

  • Corrected paired efficiency measurement to compare Capsule input with the
    ordinary full required/working-file payload rather than the hand-selected
    oracle, while preserving the oracle and blinded judge as quality gates.

  • Added verified non-call reference edges, module-level environment-key facts,
    scoped config-consumer projections, and centrality metrics that exclude both
    inferred and synthetic source-test relationships.

  • Grounded model-inferred relationships in supplied content-addressed targets
    and source evidence, with item-level validation and source/target rename
    rebinding. Updated semantic priority scheduling and behavioral barrel routing.

  • Prevented centrality-only task material, added bounded planner representation
    influence, and enforced a 30% automatic Capsule soft ceiling without weakening
    explicit-material or hard-budget rules.

  • Restricted retrieval graph scoring to verified/best-effort structural edges,
    while retaining inferred neighbors as non-authoritative CandidateCard context.

  • Allocated automatic capsule sections inside the post-envelope soft payload,
    seeded complementary MAPs before upgrades, and penalized duplicate concepts,
    ranges, and graph neighbors during marginal-utility selection.

  • Reported all current v3 repository maps after builds and added a digest-bound
    generated-artifact registry so unchanged package/Capsule/prompt outputs do
    not enter later index updates.

  • Serialized generated-artifact registry updates with a bounded, ownership-
    checked stale-recoverable lock so concurrent writers do not lose entries.

  • Completed twelve-language Python/Tree-sitter import/call/reference extraction,
    ambiguity-aware
    provenance, and key-digest-scoped config-consumer relationships without
    storing configuration values.

  • Sharded graph and retrieval records into digest-bound 4 MiB artifacts,
    removed duplicated generation facts, and made warm retrieval load compact
    file projections plus embedded grounded evidence instead of every CodeMap and
    Semantic Card.

  • Replaced fill-to-30% automatic compilation with minimum-sufficient Evidence
    Plan coverage; the 30% allocation is now a soft ceiling while explicit
    material remains governed by the hard budget.

  • Reused digest-matched published Semantic Cards across unrelated structural
    updates, avoiding retries of unchanged fallback/partial files while still
    rebinding or dropping inferred targets against the current snapshot.

  • Distinguished the closed Semantic Card evidence-ID set from untrusted source
    container IDs, preventing compatible providers from returning transport IDs
    that cannot ground ranking claims.

  • Decoupled Bridge progress delivery from index cancellation: queue overflow
    coalesces intermediate events, counts dropped/coalesced updates, and always
    prioritizes terminal state. A slow progress consumer cannot cancel a job.

  • Separated Bridge client wait timeout, per-provider-attempt timeout, and whole
    operation timeout. Client timeout leaves the job tracked by operation_id
    with its writer lock held through completion/cleanup; explicit cancellation
    and shutdown still cancel it.

  • Resolved relative TypeScript emitted import suffixes only through the declared
    .js/.jsx/.mjs/.cjs to source-suffix table. Exact files still win,
    package imports remain external, and ambiguity remains unresolved with
    best-effort structural provenance.

  • Replaced the isolated Python test-path policy with a declarative shared file
    policy. Source-test edges now prefer resolved test imports, calls, and
    references, carry provenance, and remain excluded from centrality.

  • Constrained entrypoint-handler edges to verified callback or direct bootstrap
    shapes instead of promoting every entrypoint import/call.

  • Made every planner action demonstrate a measurable evidence-coverage gain;
    no-gain actions cannot extend a bounded session.

  • Validated plan sufficiency after actual capsule materialization. Missing
    planned items, evidence/ranges, mandatory role coverage, or task material now
    downgrade effective sufficiency with bounded reason codes.

  • Made automatic capsule selection coverage-first and prevented upgrades from
    displacing the final evidence for a required role. Added an automatic compact
    profile for one short exact file only when it is cheaper than the ordinary
    verified capsule.

  • Bound --force-reanalyze to semantic cache/card reuse. Structural reanalysis
    has an explicit internal control, and a semantic-force no-op does not publish
    an unchanged enriched generation.

  • Strengthened paired answer evaluation: assertion evidence support and
    lexical/identifier support are distinct from citation containment, and the
    blinded judge sees only answer assertions and cited material ranges.

Type of change

  • Bug fix
  • Feature
  • Documentation
  • Refactor or maintenance
  • Security hardening without vulnerability details

Validation

  • ruff format --check .
  • ruff check .
  • mypy
  • pytest
  • Documentation/package checks, when applicable
  • Checks did not require a live local or remote model provider

Contributor confirmation

  • This pull request targets dev (unless the maintainer requested
    otherwise).
  • I have the right to submit this contribution under Apache-2.0 as
    described in CONTRIBUTING.md.
  • I did not include credentials, private source, prompts, or unsanitized
    logs.
  • New dependencies or copied assets include compatible provenance and
    licensing information.

@waterflane
waterflane merged commit 487373d into dev Oct 13, 2026
8 checks passed
@waterflane
waterflane deleted the waterflane/index-prompt-fix branch October 13, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant