Skip to content

Preserve manual evidence during source replacement - #49

Closed
PRADDZY wants to merge 1 commit into
hydra-db:mainfrom
PRADDZY:fix/manual-evidence-source-replacement
Closed

PRADDZY wants to merge 1 commit into
hydra-db:mainfrom
PRADDZY:fix/manual-evidence-source-replacement

Conversation

@PRADDZY

@PRADDZY PRADDZY commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Keep manually supplied evidence active when replacing a source with the same ID. Check the existing <source_id>:manual marker before generated-version matching in both SDKs; generated-only evidence still follows the existing retirement rules.

The mirrored regressions cover manual-only and mixed support, current retrieval, hidden replaced passages, and historical reads. Both new tests fail before the fix in each SDK.

Linked issue

Closes #30

Validation

Kuzu: Python 354 passed / 19 skipped; TypeScript 236 passed / 13 skipped, including Python conformance. Ruff check/format, TypeScript lint, typecheck and build pass.

AI Assistance

Codex assisted with the source audit, mirrored patch, regression tests and review.

Model Effort
GPT-6.1 Sol xhigh

Checklist

  • Implements an issue a maintainer has /approved.
  • Small and scoped to that issue.
  • Breaking changes described below, or none.

Breaking changes

None.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@github-actions

Copy link
Copy Markdown

This is PR 1 of 3 you may keep open at a time.

@arrry-hydraDB arrry-hydraDB left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add a conformance case in py_side.py and ts_side.ts for the manual evidence rule. AGENTS.md asks for one on new deterministic behaviour.

@arrry-hydraDB

Copy link
Copy Markdown
Collaborator

Are you still working on this? My review from 15 Nov is still open and the branch now conflicts with main. Please rebase and address the review, or let me know if you'd like to hand it off. I'll close this in two days if there's no update.

@arrry-hydraDB

Copy link
Copy Markdown
Collaborator

Closing as stale, no update since my 15 Nov review. @IronicRayquaza picked it up in #276 with your commit and authorship kept. Thanks @PRADDZY for the fix.

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.

Source replacement retires relations backed by manual evidence with the same source ID

2 participants