fix(coding-agents): keep knowledge pages current - #3483
Open
Sanderhoff-alt wants to merge 1 commit into
Open
Conversation
Sanderhoff-alt
force-pushed
the
fix/knowledge-pages-current-state
branch
3 times, most recently
from
August 14, 2026 08:46
3abeba9 to
d23129b
Compare
Knowledge pages can present historical facts as current guidance when later evidence replaces, removes, or supersedes those facts. Record full refresh mode explicitly for the five seeded knowledge pages and dynamic initiative pages so their behavior does not rely on the API default. Add a shared current-state policy to their source queries so synthesis prefers later evidence, labels historical or superseded facts, and reports uncertainty when the current state is unclear. Expose one helper for applying that policy so seeded and dynamic page queries use the same prompt construction. Reuse the shared page trigger for both creation paths to prevent refresh configuration drift. Extend page seeding tests to verify the full refresh mode and policy marker for both page creation paths. Tests: npm test Build: npm run build
Sanderhoff-alt
force-pushed
the
fix/knowledge-pages-current-state
branch
from
August 14, 2026 09:45
d23129b to
8f18178
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Knowledge pages can keep presenting facts that were true in the past but were later replaced, removed, or superseded. This is especially risky for coding agents because the pages are injected as current repository guidance.
This change addresses the issue by making coding-agent knowledge page refreshes explicitly use full mode and by adding a shared current-state policy to the page queries. The policy asks synthesis to prefer later evidence and label historical or superseded facts instead of presenting them as current.
Changes
mode: "full"for the five seeded knowledge pages and dynamically created initiative pages.This is a focused mitigation. It does not introduce fact validity windows or a new supersession data model.
Verification
npm testinhindsight-integrations/coding-agents: 499 tests passed.npm run buildinhindsight-integrations/coding-agents: passed.git diff --check: passed.Fixes #3475