Skip to content

fix(kb): retrieve adjacent pinned guides during depth extraction - #321

Merged
tzhouam merged 2 commits into
mainfrom
fix/kb-depth-adjacent-docs-20261006
Oct 6, 2026
Merged

tzhouam merged 2 commits into
mainfrom
fix/kb-depth-adjacent-docs-20261006

Conversation

@tzhouam

@tzhouam tzhouam commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Source-only discovered features can have useful SKILL, README and reference guides beside their implementation even when the catalog has docs: []. Depth extraction previously supplied generic owner documents instead, and a second full-index selection could discard local commands and acceptance criteria.

Select nearby indexed component documents and relevant source-filename examples within the existing 8 KB document budget, then preserve the final selected packet and its context hash. Stored native payloads, source pin, model roles, acceptance rules and lifetime repair counters remain bound to the original campaign.

Validation: targeted retrieval and interrupted-resume regressions; independent fixed-source smoke checks for DOCX, PPT, trace preprocessing and audit HTML rendering in full-facet and validation-only packets. Full CI runs on this PR head.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T01:34:32.865223Z aed86ce PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aed86ceaba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +516 to +520
if context.index is not None and not guidance:
# Preserve the already selected local document ranges; a second
# full-index rerank can replace their commands/criteria. Bind
# the actual final packet, without changing any saved payload.
retrieval["docs"] = docs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve symbol-aware document ranking

When an indexed lightweight feature has a large explicit or adjacent guide whose relevant section mentions a source symbol but not the source filename or generic facet keywords, _docs() can retain only unrelated earlier slices because it ranks without the symbols that DepthContext.build() derives. build() still finds the symbol-relevant range, but this assignment overwrites it with the first-pass slices; across the four bounded repair rounds, late sections can therefore remain unavailable and a supportable facet may be exhausted as unknown. Preserve the symbol-ranked result or pass the source symbols into the initial selection.

Useful? React with 👍 / 👎.

@tzhouam
tzhouam merged commit 29f2844 into main Oct 6, 2026
2 checks passed
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