merge: incorporate upstream/master (2026-04-27 release) - #42
Merged
Conversation
…idation, dynamic-test hardening (#29)
…h validation, dynamic-test hardening) Merges upstream commits 3d2e058 (README clarity) and ec5213b (the 2026-04-27 release) into the fork. Conflict resolutions: - core/scanner.py: kept the fork's resume/checkpoint scaffolding for build-output and adopted upstream's repo_name/repo_url/commit_sha threading into build_pipeline_output, plus the "no API calls succeeded" warning in _print_summary. - core/verifier.py: kept code_by_route propagation and adopted upstream's verdict-based filter for confirmed_findings. - report/generator.py: kept the SDK port (analyze_sync) and layered upstream's _splice_code_section + payload sanitization on top so the vulnerable-code block is never sent to the LLM. Follow-ups required for the merge to function: - core/reporter.py: re-added "import json" (used by upstream's new caller/callee dedup code; auto-merge dropped it). - core/schemas.py: declared the resumed_steps field on ScanResult (the fork's resume code referenced it without it being declared, and upstream's new test_silent_401 trips over the AttributeError). - tests/report/test_disclosure_source_fidelity.py: adapted to patch AnthropicClient instead of generator.anthropic.Anthropic, since the fork no longer imports the anthropic SDK directly. - tests/test_silent_401.py: rewrote test_analyze_sync_raises_on_auth_error to match the SDK error surface (sdk_errors.AuthError raised from _run_query_sync) instead of the legacy anthropic.AuthenticationError.
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
Incorporates the two new upstream commits from
knostic/OpenAntinto the fork without rewriting any of the fork's 47 already-published commits.Upstream commits merged:
3d2e058fix: Revise description of OpenAnt for clarity (docs: update PIPELINE_MANUAL.md for generate-context CLI command #28)ec5213bfeature: release: 2026-04-27 — KIR-0000 disclosure fidelity, auth validation, dynamic-test hardening (merge: incorporate upstream parallelization, Zig parser, and report overhaul #29)A merge (not a rebase) was used — consistent with prior upstream incorporations (
a565352,46531ee) and avoids rewriting published history.Conflict resolutions
core/scanner.py— kept the fork's resume/checkpoint scaffolding aroundbuild-output; adopted upstream'srepo_name/repo_url/commit_shaplumbing intobuild_pipeline_outputand the "no API calls succeeded" warning in_print_summary.core/verifier.py— keptcode_by_routepropagation; adopted upstream's verdict-based filter forconfirmed_findings.report/generator.py— kept the SDK port (analyze_sync); layered upstream's_splice_code_section+ payload sanitization on top so the verbatim vulnerable-code block is never sent to the LLM.Follow-ups required to keep the merge green
core/reporter.py— auto-merge droppedimport json; re-added it (used by upstream's new caller/callee dedup code).core/schemas.py— declared the missingresumed_stepsfield onScanResult. The fork's resume code already referenced it without it being declared; upstream's newtest_silent_401exposes the latentAttributeError.tests/report/test_disclosure_source_fidelity.py— adapted to patchAnthropicClientinstead ofgenerator.anthropic.Anthropic, since the fork no longer imports theanthropicSDK directly.tests/test_silent_401.py::test_analyze_sync_raises_on_auth_error— rewrote to assertsdk_errors.AuthErrorpropagates from_run_query_sync, matching the fork's SDK error surface (was asserting legacyanthropic.AuthenticationError).Test plan
pytest tests/— 260 passed locallyopenant scanon a small repo to confirmbuild_pipeline_outputaccepts the newrepo_url/commit_shafields end-to-endGenerated by Claude Code