Skip to content

test: add ingestion fallback contract tests#44

Merged
enlorik merged 1 commit into
mainfrom
feature/ingestion-fallback-contract-tests
Jun 8, 2026
Merged

test: add ingestion fallback contract tests#44
enlorik merged 1 commit into
mainfrom
feature/ingestion-fallback-contract-tests

Conversation

@enlorik

@enlorik enlorik commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Proves the pipeline stays notes-first and safe: local retrieval always happens before web fetch, empty/failed web providers produce a doNotSave draft without crashing (verified via BraveEvidenceProvider with network errors and HTTP errors), and the LLM receives actual gathered evidence — not invented content. 13 new tests, 229 passing before, 242 after.

Changed files: test/ingestion_fallback_contract_test.dart
Tests run: flutter analyze (clean), flutter test (242 passed, 13 added, 0 regressions)
Risks / follow-up: none — test-only change
Not changed: production ingestion behavior, Brave settings/provider code, UI, persistence, markdown generation

Proves the pipeline stays notes-first and safe when web evidence is absent or
the web provider fails: local retrieval happens before web fetch, empty/failed
providers produce a doNotSave draft without crashing, and the LLM prompt contains
only gathered evidence — not ungrounded content.
@enlorik enlorik marked this pull request as ready for review June 8, 2026 23:49
@enlorik enlorik merged commit 8fe6203 into main Jun 8, 2026
1 check passed
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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